@soton.ac.uk/cape3 0.31.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cape3.css +1 -1
- package/dist/cape3.es.js +3656 -3630
- package/dist/cape3.umd.js +25 -25
- package/dist/components/local/CapeAboutPage.vue.d.ts.map +1 -1
- package/dist/components/local/CapeFooter.vue.d.ts.map +1 -1
- package/dist/components/local/CapeHeader.vue.d.ts.map +1 -1
- package/dist/components/local/CapeHomepageLayout.vue.d.ts.map +1 -1
- package/dist/components/local/CapeIntro.vue.d.ts.map +1 -1
- package/dist/components/local/CapeNavigation.vue.d.ts.map +1 -1
- package/dist/components/local/CapeRecordCard.vue.d.ts.map +1 -1
- package/dist/components/local/CapeSummaryCard.vue.d.ts.map +1 -1
- package/dist/components/user/CapeSoftware.vue.d.ts.map +1 -1
- package/dist/components/user/CapeVersion.vue.d.ts +3 -0
- package/dist/components/user/CapeVersion.vue.d.ts.map +1 -0
- package/dist/plugins/cape/CapePlugin.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cape3.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(Ke,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ke=typeof globalThis<"u"?globalThis:Ke||self,o(Ke.Cape3={},Ke.Vue))})(this,function(Ke,o){"use strict";var
|
|
1
|
+
(function(Ke,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ke=typeof globalThis<"u"?globalThis:Ke||self,o(Ke.Cape3={},Ke.Vue))})(this,function(Ke,o){"use strict";var xL=Object.defineProperty;var VL=(Ke,o,Wa)=>o in Ke?xL(Ke,o,{enumerable:!0,configurable:!0,writable:!0,value:Wa}):Ke[o]=Wa;var Pe=(Ke,o,Wa)=>VL(Ke,typeof o!="symbol"?o+"":o,Wa);function Wa(){return ov().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ov(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const FE=typeof Proxy=="function",YE="devtools-plugin:setup",$E="plugin:settings:set";let ja,Pf;function BE(){var e;return ja!==void 0||(typeof window<"u"&&window.performance?(ja=!0,Pf=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ja=!0,Pf=globalThis.perf_hooks.performance):ja=!1),ja}function UE(){return BE()?Pf.now():Date.now()}class HE{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const s=localStorage.getItem(i),l=JSON.parse(s);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}a=s},now(){return UE()}},n&&n.on($E,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,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 Af(e,t){const n=e,r=ov(),i=Wa(),a=FE&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(YE,e,t);else{const s=a?new HE(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
2
2
|
* vue-router v4.5.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const
|
|
5
|
+
*/const _r=typeof document<"u";function sv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function GE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sv(e.default)}const He=Object.assign;function Mf(e,t){const n={};for(const r in t){const i=t[r];n[r]=rn(i)?i.map(e):e(i)}return n}const hs=()=>{},rn=Array.isArray;function Re(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const lv=/#/g,WE=/&/g,jE=/\//g,zE=/=/g,KE=/\?/g,cv=/\+/g,qE=/%5B/g,XE=/%5D/g,uv=/%5E/g,JE=/%60/g,fv=/%7B/g,QE=/%7C/g,dv=/%7D/g,ZE=/%20/g;function xf(e){return encodeURI(""+e).replace(QE,"|").replace(qE,"[").replace(XE,"]")}function eT(e){return xf(e).replace(fv,"{").replace(dv,"}").replace(uv,"^")}function Vf(e){return xf(e).replace(cv,"%2B").replace(ZE,"+").replace(lv,"%23").replace(WE,"%26").replace(JE,"`").replace(fv,"{").replace(dv,"}").replace(uv,"^")}function tT(e){return Vf(e).replace(zE,"%3D")}function nT(e){return xf(e).replace(lv,"%23").replace(KE,"%3F")}function rT(e){return e==null?"":nT(e).replace(jE,"%2F")}function za(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&Re(`Error decoding "${e}". Using original value`)}return""+e}const iT=/\/$/,aT=e=>e.replace(iT,"");function Lf(e,t,n="/"){let r,i={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),i=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=lT(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:za(s)}}function oT(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function hv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pv(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Xr(t.matched[r],n.matched[i])&&mv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!sT(e[n],t[n]))return!1;return!0}function sT(e,t){return rn(e)?vv(e,t):rn(t)?vv(t,e):e===t}function vv(e,t){return rn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function lT(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return Re(`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 a=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Jr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ps;(function(e){e.pop="pop",e.push="push"})(ps||(ps={}));var ms;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ms||(ms={}));function cT(e){if(!e)if(_r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aT(e)}const uT=/^[^#]+#/;function fT(e,t){return e.replace(uT,"#")+t}function dT(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 Jl=()=>({left:window.scrollX,top:window.scrollY});function hT(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 a=document.querySelector(e.el);if(r&&a){Re(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Re(`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"&&Re(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=dT(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _v(e,t){return(history.state?history.state.position-t:-1)+e}const Ff=new Map;function pT(e,t){Ff.set(e,t)}function mT(e){const t=Ff.get(e);return Ff.delete(e),t}let vT=()=>location.protocol+"//"+location.host;function gv(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let l=i.includes(e.slice(a))?e.slice(a).length:1,c=i.slice(l);return c[0]!=="/"&&(c="/"+c),hv(c,"")}return hv(n,e)+r+i}function _T(e,t,n,r){let i=[],a=[],s=null;const l=({state:p})=>{const h=gv(e,location),m=n.value,v=t.value;let _=0;if(p){if(n.value=h,t.value=p,s&&s===m){s=null;return}_=v?p.position-v.position:0}else r(h);i.forEach(g=>{g(n.value,m,{delta:_,type:ps.pop,direction:_?_>0?ms.forward:ms.back:ms.unknown})})};function c(){s=n.value}function u(p){i.push(p);const h=()=>{const m=i.indexOf(p);m>-1&&i.splice(m,1)};return a.push(h),h}function f(){const{history:p}=window;p.state&&p.replaceState(He({},p.state,{scroll:Jl()}),"")}function d(){for(const p of a)p();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function yv(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Jl():null}}function gT(e){const{history:t,location:n}=window,r={value:gv(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,u,f){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:vT()+e+c;try{t[f?"replaceState":"pushState"](u,"",p),i.value=u}catch(h){process.env.NODE_ENV!=="production"?Re("Error with push/replace State",h):console.error(h),n[f?"replace":"assign"](p)}}function s(c,u){const f=He({},t.state,yv(i.value.back,c,i.value.forward,!0),u,{position:i.value.position});a(c,f,!0),r.value=c}function l(c,u){const f=He({},i.value,t.state,{forward:c,scroll:Jl()});process.env.NODE_ENV!=="production"&&!t.state&&Re(`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
6
|
|
|
7
7
|
history.replaceState(history.state, '', url)
|
|
8
8
|
|
|
@@ -10,57 +10,57 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
|
|
|
10
10
|
"${e}" should be "${e.replace(/#.*$/,"#")}".`),yT(e)}function Ql(e){return typeof e=="string"||e&&typeof e=="object"}function Sv(e){return typeof e=="string"||typeof e=="symbol"}const Yf=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Ev;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ev||(Ev={}));const ET={1({location:e,currentLocation:t}){return`No match for
|
|
11
11
|
${JSON.stringify(e)}${t?`
|
|
12
12
|
while being at
|
|
13
|
-
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${NT(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 Ka(e,t){return process.env.NODE_ENV!=="production"?He(new Error(ET[e](t)),{type:e,[Yf]:!0},t):He(new Error,{type:e,[Yf]:!0},t)}function
|
|
14
|
-
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=OT(
|
|
13
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${NT(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 Ka(e,t){return process.env.NODE_ENV!=="production"?He(new Error(ET[e](t)),{type:e,[Yf]:!0},t):He(new Error,{type:e,[Yf]:!0},t)}function gr(e,t){return e instanceof Error&&Yf in e&&(t==null||!!(e.type&t))}const TT=["params","query","hash"];function NT(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of TT)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Tv="[^/]+?",wT={sensitive:!1,strict:!1,start:!0,end:!0},bT=/[.+*?^${}()[\]/\\]/g;function DT(e,t){const n=He({},wT,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const p=u[d];let h=40+(n.sensitive?.25:0);if(p.type===0)d||(i+="/"),i+=p.value.replace(bT,"\\$&"),h+=40;else if(p.type===1){const{value:m,repeatable:v,optional:_,regexp:g}=p;a.push({name:m,repeatable:v,optional:_});const S=g||Tv;if(S!==Tv){h+=10;try{new RegExp(`(${S})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${m}" (${S}): `+A.message)}}let C=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;d||(C=_&&u.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),i+=C,h+=20,_&&(h+=-8),v&&(h+=-20),S===".*"&&(h+=-50)}f.push(h)}r.push(f)}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.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function l(u){const f=u.match(s),d={};if(!f)return null;for(let p=1;p<f.length;p++){const h=f[p]||"",m=a[p-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function c(u){let f="",d=!1;for(const p of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const h of p)if(h.type===0)f+=h.value;else if(h.type===1){const{value:m,repeatable:v,optional:_}=h,g=m in u?u[m]:"";if(rn(g)&&!v)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const S=rn(g)?g.join("/"):g;if(!S)if(_)p.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);f+=S}}return f||"/"}return{re:s,score:r,keys:a,parse:l,stringify:c}}function kT(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 Nv(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=kT(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(wv(r))return 1;if(wv(i))return-1}return i.length-r.length}function wv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const CT={type:0,value:""},IT=/[a-zA-Z0-9_]/;function RT(e){if(!e)return[[]];if(e==="/")return[[CT]];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(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let l=0,c,u="",f="";function d(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&d(),s()):c===":"?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:c==="("?n=2:IT.test(c)?p():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=3:f+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),i}function OT(e,t,n){const r=DT(RT(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const s of r.keys)a.has(s.name)&&Re(`Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(s.name)}const i=He(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function PT(e,t){const n=[],r=new Map;t=Cv({strict:!1,end:!0,sensitive:!1},t);function i(d){return r.get(d)}function a(d,p,h){const m=!h,v=Dv(d);process.env.NODE_ENV!=="production"&&VT(v,p),v.aliasOf=h&&h.record;const _=Cv(t,d),g=[v];if("alias"in d){const A=typeof d.alias=="string"?[d.alias]:d.alias;for(const V of A)g.push(Dv(He({},v,{components:h?h.record.components:v.components,path:V,aliasOf:h?h.record:v})))}let S,C;for(const A of g){const{path:V}=A;if(p&&V[0]!=="/"){const z=p.record.path,b=z[z.length-1]==="/"?"":"/";A.path=p.record.path+(V&&b+V)}if(process.env.NODE_ENV!=="production"&&A.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
14
|
+
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=OT(A,p,_),process.env.NODE_ENV!=="production"&&p&&V[0]==="/"&&FT(S,p),h?(h.alias.push(S),process.env.NODE_ENV!=="production"&&xT(h,S)):(C=C||S,C!==S&&C.alias.push(S),m&&d.name&&!kv(S)&&(process.env.NODE_ENV!=="production"&<(d,p),s(d.name))),Iv(S)&&c(S),v.children){const z=v.children;for(let b=0;b<z.length;b++)a(z[b],S,h&&h.children[b])}h=h||S}return C?()=>{s(C)}:hs}function s(d){if(Sv(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function l(){return n}function c(d){const p=YT(d,n);n.splice(p,0,d),d.record.name&&!kv(d)&&r.set(d.record.name,d)}function u(d,p){let h,m={},v,_;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Ka(1,{location:d});if(process.env.NODE_ENV!=="production"){const C=Object.keys(d.params||{}).filter(A=>!h.keys.find(V=>V.name===A));C.length&&Re(`Discarded invalid param(s) "${C.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}_=h.record.name,m=He(bv(p.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&bv(d.params,h.keys.map(C=>C.name))),v=h.stringify(m)}else if(d.path!=null)v=d.path,process.env.NODE_ENV!=="production"&&!v.startsWith("/")&&Re(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(C=>C.re.test(v)),h&&(m=h.parse(v),_=h.record.name);else{if(h=p.name?r.get(p.name):n.find(C=>C.re.test(p.path)),!h)throw Ka(1,{location:d,currentLocation:p});_=h.record.name,m=He({},p.params,d.params),v=h.stringify(m)}const g=[];let S=h;for(;S;)g.unshift(S.record),S=S.parent;return{name:_,path:v,params:m,matched:g,meta:MT(g)}}e.forEach(d=>a(d));function f(){n.length=0,r.clear()}return{addRoute:a,resolve:u,removeRoute:s,clearRoutes:f,getRoutes:l,getRecordMatcher:i}}function bv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Dv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:AT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function AT(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 kv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function MT(e){return e.reduce((t,n)=>He(t,n.meta),{})}function Cv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function $f(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function xT(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find($f.bind(null,n)))return Re(`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($f.bind(null,n)))return Re(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function VT(e,t){t&&t.record.name&&!e.name&&!e.path&&Re(`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 LT(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function FT(e,t){for(const n of t.keys)if(!e.keys.find($f.bind(null,n)))return Re(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function YT(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Nv(e,t[a])<0?r=a:n=a+1}const i=$T(e);return i&&(r=t.lastIndexOf(i,r-1),process.env.NODE_ENV!=="production"&&r<0&&Re(`Finding ancestor route "${i.record.path}" failed for "${e.record.path}"`)),r}function $T(e){let t=e;for(;t=t.parent;)if(Iv(t)&&Nv(e,t)===0)return t}function Iv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function BT(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 a=r[i].replace(cv," "),s=a.indexOf("="),l=za(s<0?a:a.slice(0,s)),c=s<0?null:za(a.slice(s+1));if(l in t){let u=t[l];rn(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function Rv(e){let t="";for(let n in e){const r=e[n];if(n=tT(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(rn(r)?r.map(a=>a&&Vf(a)):[r&&Vf(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function UT(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=rn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const HT=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Ov=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Zl=Symbol(process.env.NODE_ENV!=="production"?"router":""),Bf=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Uf=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function vs(){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 Qr(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Ka(4,{from:n,to:t})):p instanceof Error?c(p):Ql(p)?c(Ka(2,{from:t,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),l())},f=a(()=>e.call(r&&r.instances[i],t,n,process.env.NODE_ENV!=="production"?GT(u,t,n):u));let d=Promise.resolve(f);if(e.length<3&&(d=d.then(u)),process.env.NODE_ENV!=="production"&&e.length>2){const p=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
15
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 f=="object"&&"then"in f)d=d.then(h=>u._called?h:(Re(p),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!u._called){Re(p),c(new Error("Invalid navigation guard"));return}}d.catch(p=>c(p))})}function GT(e,t,n){let r=0;return function(){r++===1&&Re(`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 Hf(e,t,n,r,i=a=>a()){const a=[];for(const s of e){process.env.NODE_ENV!=="production"&&!s.components&&!s.children.length&&Re(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);for(const l in s.components){let c=s.components[l];if(process.env.NODE_ENV!=="production"){if(!c||typeof c!="object"&&typeof c!="function")throw Re(`Component "${l}" in record with path "${s.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){Re(`Component "${l}" in record with path "${s.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 u=c;c=()=>u}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,Re(`Component "${l}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(sv(c)){const f=(c.__vccOpts||c)[t];f&&a.push(
|
|
16
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)d=d.then(h=>u._called?h:(Re(p),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!u._called){Re(p),c(new Error("Invalid navigation guard"));return}}d.catch(p=>c(p))})}function GT(e,t,n){let r=0;return function(){r++===1&&Re(`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 Hf(e,t,n,r,i=a=>a()){const a=[];for(const s of e){process.env.NODE_ENV!=="production"&&!s.components&&!s.children.length&&Re(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);for(const l in s.components){let c=s.components[l];if(process.env.NODE_ENV!=="production"){if(!c||typeof c!="object"&&typeof c!="function")throw Re(`Component "${l}" in record with path "${s.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){Re(`Component "${l}" in record with path "${s.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 u=c;c=()=>u}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,Re(`Component "${l}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(sv(c)){const f=(c.__vccOpts||c)[t];f&&a.push(Qr(f,n,r,s,l,i))}else{let u=c();process.env.NODE_ENV!=="production"&&!("catch"in u)&&(Re(`Component "${l}" in record with path "${s.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.`),u=Promise.resolve(u)),a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const d=GE(f)?f.default:f;s.mods[l]=f,s.components[l]=d;const h=(d.__vccOpts||d)[t];return h&&Qr(h,n,r,s,l,i)()}))}}}return a}function Pv(e){const t=o.inject(Zl),n=o.inject(Bf);let r=!1,i=null;const a=o.computed(()=>{const f=o.unref(e.to);return process.env.NODE_ENV!=="production"&&(!r||f!==i)&&(Ql(f)||(r?Re(`Invalid value for prop "to" in useLink()
|
|
17
17
|
- to:`,f,`
|
|
18
18
|
- previous to:`,i,`
|
|
19
19
|
- props:`,e):Re(`Invalid value for prop "to" in useLink()
|
|
20
20
|
- to:`,f,`
|
|
21
|
-
- props:`,e)),i=f,r=!0),t.resolve(f)}),s=o.computed(()=>{const{matched:f}=a.value,{length:d}=f,p=f[d-1],h=n.matched;if(!p||!h.length)return-1;const m=h.findIndex(
|
|
21
|
+
- props:`,e)),i=f,r=!0),t.resolve(f)}),s=o.computed(()=>{const{matched:f}=a.value,{length:d}=f,p=f[d-1],h=n.matched;if(!p||!h.length)return-1;const m=h.findIndex(Xr.bind(null,p));if(m>-1)return m;const v=Av(f[d-2]);return d>1&&Av(p)===v&&h[h.length-1].path!==v?h.findIndex(Xr.bind(null,f[d-2])):m}),l=o.computed(()=>s.value>-1&&KT(n.params,a.value.params)),c=o.computed(()=>s.value>-1&&s.value===n.matched.length-1&&mv(n.params,a.value.params));function u(f={}){if(zT(f)){const d=t[o.unref(e.replace)?"replace":"push"](o.unref(e.to)).catch(hs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&_r){const f=o.getCurrentInstance();if(f){const d={route:a.value,isActive:l.value,isExactActive:c.value,error:null};f.__vrl_devtools=f.__vrl_devtools||[],f.__vrl_devtools.push(d),o.watchEffect(()=>{d.route=a.value,d.isActive=l.value,d.isExactActive=c.value,d.error=Ql(o.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:o.computed(()=>a.value.href),isActive:l,isExactActive:c,navigate:u}}function WT(e){return e.length===1?e[0]:e}const jT=o.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"},viewTransition:Boolean},useLink:Pv,setup(e,{slots:t}){const n=o.reactive(Pv(e)),{options:r}=o.inject(Zl),i=o.computed(()=>({[Mv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Mv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&WT(t.default(n));return e.custom?a:o.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function zT(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 KT(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(!rn(i)||i.length!==r.length||r.some((a,s)=>a!==i[s]))return!1}return!0}function Av(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Mv=(e,t,n)=>e??t??n,qT=o.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"&&JT();const r=o.inject(Uf),i=o.computed(()=>e.route||r.value),a=o.inject(Ov,0),s=o.computed(()=>{let u=o.unref(a);const{matched:f}=i.value;let d;for(;(d=f[u])&&!d.components;)u++;return u}),l=o.computed(()=>i.value.matched[s.value]);o.provide(Ov,o.computed(()=>s.value+1)),o.provide(HT,l),o.provide(Uf,i);const c=o.ref();return o.watch(()=>[c.value,l.value,e.name],([u,f,d],[p,h,m])=>{f&&(f.instances[d]=u,h&&h!==f&&u&&u===p&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Xr(f,h)||!p)&&(f.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,d=l.value,p=d&&d.components[f];if(!p)return xv(n.default,{Component:p,route:u});const h=d.props[f],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=g=>{g.component.isUnmounted&&(d.instances[f]=null)},_=o.h(p,He({},m,t,{onVnodeUnmounted:v,ref:c}));if(process.env.NODE_ENV!=="production"&&_r&&_.ref){const g={depth:s.value,name:d.name,path:d.path,meta:d.meta};(rn(_.ref)?_.ref.map(C=>C.i):[_.ref.i]).forEach(C=>{C.__vrv_devtools=g})}return xv(n.default,{Component:_,route:u})||_}}});function xv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const XT=qT;function JT(){const e=o.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";Re(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
22
22
|
Use slot props instead:
|
|
23
23
|
|
|
24
24
|
<router-view v-slot="{ Component }">
|
|
25
25
|
<${r}>
|
|
26
26
|
<component :is="Component" />
|
|
27
27
|
</${r}>
|
|
28
|
-
</router-view>`)}}function _s(e,t){const n=He({},e,{matched:e.matched.map(r=>lN(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ec(e){return{_custom:{display:e}}}let QT=0;function ZT(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=QT++;Af({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((f,d)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_s(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:d})=>{if(d.__vrv_devtools){const p=d.__vrv_devtools;f.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:Vv})}rn(d.__vrl_devtools)&&(d.__devtoolsApi=i,d.__vrl_devtools.forEach(p=>{let h=p.route.path,m=Yv,v="",_=0;p.error?(h=p.error,m=iN,_=aN):p.isExactActive?(m=Fv,v="This is exactly active"):p.isActive&&(m=Lv,v="This link is active"),f.tags.push({label:h,textColor:_,tooltip:v,backgroundColor:m})}))}),o.watch(t.currentRoute,()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const a="router:navigations:"+r;i.addTimelineLayer({id:a,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((f,d)=>{i.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:d.meta.__navigationId}})});let s=0;t.beforeEach((f,d)=>{const p={guard:ec("beforeEach"),from:_s(d,"Current Location during this navigation"),to:_s(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:s++}),i.addTimelineEvent({layerId:a,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:p,groupId:f.meta.__navigationId}})}),t.afterEach((f,d,p)=>{const h={guard:ec("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=ec("❌")):h.status=ec("✅"),h.from=_s(d,"Current Location during this navigation"),h.to=_s(f,"Target location"),i.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:h,logType:p?"warning":"default",groupId:f.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 f=u;let d=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);d.forEach(Uv),f.filter&&(d=d.filter(p=>Gf(p,f.filter.toLowerCase()))),d.forEach(p=>Bv(p,t.currentRoute.value)),f.rootNodes=d.map($v)}let u;i.on.getInspectorTree(f=>{u=f,f.app===e&&f.inspectorId===l&&c()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const p=n.getRoutes().find(h=>h.record.__vd_id===f.nodeId);p&&(f.state={options:tN(p)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function eN(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function tN(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}${eN(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 Vv=15485081,Lv=2450411,Fv=8702998,nN=2282478,Yv=16486972,rN=6710886,iN=16704226,aN=12131356;function $v(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:nN}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Yv}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Vv}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Fv}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Lv}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:rN});let r=n.__vd_id;return r==null&&(r=String(oN++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map($v)}}let oN=0;const sN=/^\/(.*)\/([a-z]*)$/;function Bv(e,t){const n=t.matched.length&&
|
|
29
|
-
- Location:`,w),g({});let Y;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&Re(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),Y=He({},w,{path:Lf(n,w.path,H.path).path});else{const ce=He({},w.params);for(const Ae in ce)ce[Ae]==null&&delete ce[Ae];Y=He({},w,{params:d(ce)}),H.params=d(H.params)}const Q=t.resolve(Y,H),Ee=w.hash||"";process.env.NODE_ENV!=="production"&&Ee&&!Ee.startsWith("#")&&Re(`A \`hash\` should always start with the character "#". Replace "${Ee}" with "#${Ee}".`),Q.params=f(p(Q.params));const Ye=oT(r,He({},w,{hash:eT(Ee),path:Q.path})),fe=i.createHref(Ye);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?Re(`Location "${w}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):Q.matched.length||Re(`No match found for location with path "${w.path!=null?w.path:w}"`)),He({fullPath:Ye,hash:Ee,query:r===Rv?UT(w.query):w.query||{}},Q,{redirectedFrom:void 0,href:fe})}function S(w){return typeof w=="string"?Lf(n,w,c.value.path):He({},w)}function
|
|
28
|
+
</router-view>`)}}function _s(e,t){const n=He({},e,{matched:e.matched.map(r=>lN(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ec(e){return{_custom:{display:e}}}let QT=0;function ZT(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=QT++;Af({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((f,d)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_s(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:d})=>{if(d.__vrv_devtools){const p=d.__vrv_devtools;f.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:Vv})}rn(d.__vrl_devtools)&&(d.__devtoolsApi=i,d.__vrl_devtools.forEach(p=>{let h=p.route.path,m=Yv,v="",_=0;p.error?(h=p.error,m=iN,_=aN):p.isExactActive?(m=Fv,v="This is exactly active"):p.isActive&&(m=Lv,v="This link is active"),f.tags.push({label:h,textColor:_,tooltip:v,backgroundColor:m})}))}),o.watch(t.currentRoute,()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const a="router:navigations:"+r;i.addTimelineLayer({id:a,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((f,d)=>{i.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:d.meta.__navigationId}})});let s=0;t.beforeEach((f,d)=>{const p={guard:ec("beforeEach"),from:_s(d,"Current Location during this navigation"),to:_s(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:s++}),i.addTimelineEvent({layerId:a,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:p,groupId:f.meta.__navigationId}})}),t.afterEach((f,d,p)=>{const h={guard:ec("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=ec("❌")):h.status=ec("✅"),h.from=_s(d,"Current Location during this navigation"),h.to=_s(f,"Target location"),i.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:h,logType:p?"warning":"default",groupId:f.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 f=u;let d=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);d.forEach(Uv),f.filter&&(d=d.filter(p=>Gf(p,f.filter.toLowerCase()))),d.forEach(p=>Bv(p,t.currentRoute.value)),f.rootNodes=d.map($v)}let u;i.on.getInspectorTree(f=>{u=f,f.app===e&&f.inspectorId===l&&c()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const p=n.getRoutes().find(h=>h.record.__vd_id===f.nodeId);p&&(f.state={options:tN(p)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function eN(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function tN(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}${eN(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 Vv=15485081,Lv=2450411,Fv=8702998,nN=2282478,Yv=16486972,rN=6710886,iN=16704226,aN=12131356;function $v(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:nN}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Yv}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Vv}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Fv}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Lv}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:rN});let r=n.__vd_id;return r==null&&(r=String(oN++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map($v)}}let oN=0;const sN=/^\/(.*)\/([a-z]*)$/;function Bv(e,t){const n=t.matched.length&&Xr(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Xr(r,e.record))),e.children.forEach(r=>Bv(r,t))}function Uv(e){e.__vd_match=!1,e.children.forEach(Uv)}function Gf(e,t){const n=String(e.re).match(sN);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(s=>Gf(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),a=za(i);return!t.startsWith("/")&&(a.includes(t)||i.includes(t))||a.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>Gf(s,t))}function lN(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function cN(e){const t=PT(e.routes,e),n=e.parseQuery||BT,r=e.stringifyQuery||Rv,i=e.history;if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=vs(),s=vs(),l=vs(),c=o.shallowRef(Jr);let u=Jr;_r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Mf.bind(null,w=>""+w),d=Mf.bind(null,rT),p=Mf.bind(null,za);function h(w,H){let Y,Q;return Sv(w)?(Y=t.getRecordMatcher(w),process.env.NODE_ENV!=="production"&&!Y&&Re(`Parent route "${String(w)}" not found when adding child route`,H),Q=H):Q=w,t.addRoute(Q,Y)}function m(w){const H=t.getRecordMatcher(w);H?t.removeRoute(H):process.env.NODE_ENV!=="production"&&Re(`Cannot remove non-existent route "${String(w)}"`)}function v(){return t.getRoutes().map(w=>w.record)}function _(w){return!!t.getRecordMatcher(w)}function g(w,H){if(H=He({},H||c.value),typeof w=="string"){const ce=Lf(n,w,H.path),Ae=t.resolve({path:ce.path},H),Mt=i.createHref(ce.fullPath);return process.env.NODE_ENV!=="production"&&(Mt.startsWith("//")?Re(`Location "${w}" resolved to "${Mt}". A resolved location cannot start with multiple slashes.`):Ae.matched.length||Re(`No match found for location with path "${w}"`)),He(ce,Ae,{params:p(Ae.params),hash:za(ce.hash),redirectedFrom:void 0,href:Mt})}if(process.env.NODE_ENV!=="production"&&!Ql(w))return Re(`router.resolve() was passed an invalid location. This will fail in production.
|
|
29
|
+
- Location:`,w),g({});let Y;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&Re(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),Y=He({},w,{path:Lf(n,w.path,H.path).path});else{const ce=He({},w.params);for(const Ae in ce)ce[Ae]==null&&delete ce[Ae];Y=He({},w,{params:d(ce)}),H.params=d(H.params)}const Q=t.resolve(Y,H),Ee=w.hash||"";process.env.NODE_ENV!=="production"&&Ee&&!Ee.startsWith("#")&&Re(`A \`hash\` should always start with the character "#". Replace "${Ee}" with "#${Ee}".`),Q.params=f(p(Q.params));const Ye=oT(r,He({},w,{hash:eT(Ee),path:Q.path})),fe=i.createHref(Ye);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?Re(`Location "${w}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):Q.matched.length||Re(`No match found for location with path "${w.path!=null?w.path:w}"`)),He({fullPath:Ye,hash:Ee,query:r===Rv?UT(w.query):w.query||{}},Q,{redirectedFrom:void 0,href:fe})}function S(w){return typeof w=="string"?Lf(n,w,c.value.path):He({},w)}function C(w,H){if(u!==w)return Ka(8,{from:H,to:w})}function A(w){return b(w)}function V(w){return A(He(S(w),{replace:!0}))}function z(w){const H=w.matched[w.matched.length-1];if(H&&H.redirect){const{redirect:Y}=H;let Q=typeof Y=="function"?Y(w):Y;if(typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=S(Q):{path:Q},Q.params={}),process.env.NODE_ENV!=="production"&&Q.path==null&&!("name"in Q))throw Re(`Invalid redirect found:
|
|
30
30
|
${JSON.stringify(Q,null,2)}
|
|
31
|
-
when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return He({query:w.query,hash:w.hash,params:Q.path!=null?{}:w.params},Q)}}function b(w,H){const Y=u=g(w),Q=c.value,Ee=w.state,Ye=w.force,fe=w.replace===!0,ce=z(Y);if(ce)return b(He(S(ce),{state:typeof ce=="object"?He({},Ee,ce.state):Ee,force:Ye,replace:fe}),H||Y);const Ae=Y;Ae.redirectedFrom=H;let
|
|
32
|
-
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"))):b(He({replace:fe},S(Je.to),{state:typeof Je.to=="object"?He({},Ee,Je.to.state):Ee,force:Ye}),H||Ae)}else Je=q(Ae,Q,!0,fe,Ee);return P(Ae,Q,Je),Je})}function I(w,H){const Y=
|
|
31
|
+
when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return He({query:w.query,hash:w.hash,params:Q.path!=null?{}:w.params},Q)}}function b(w,H){const Y=u=g(w),Q=c.value,Ee=w.state,Ye=w.force,fe=w.replace===!0,ce=z(Y);if(ce)return b(He(S(ce),{state:typeof ce=="object"?He({},Ee,ce.state):Ee,force:Ye,replace:fe}),H||Y);const Ae=Y;Ae.redirectedFrom=H;let Mt;return!Ye&&pv(r,Q,Y)&&(Mt=Ka(16,{to:Ae,from:Q}),ve(Q,Q,!0,!1)),(Mt?Promise.resolve(Mt):k(Ae,Q)).catch(Je=>gr(Je)?gr(Je,2)?Je:ue(Je):O(Je,Ae,Q)).then(Je=>{if(Je){if(gr(Je,2))return process.env.NODE_ENV!=="production"&&pv(r,g(Je.to),Ae)&&H&&(H._count=H._count?H._count+1:1)>30?(Re(`Detected a possibly infinite redirection in a navigation guard when going from "${Q.fullPath}" to "${Ae.fullPath}". Aborting to avoid a Stack Overflow.
|
|
32
|
+
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"))):b(He({replace:fe},S(Je.to),{state:typeof Je.to=="object"?He({},Ee,Je.to.state):Ee,force:Ye}),H||Ae)}else Je=q(Ae,Q,!0,fe,Ee);return P(Ae,Q,Je),Je})}function I(w,H){const Y=C(w,H);return Y?Promise.reject(Y):Promise.resolve()}function B(w){const H=T.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(w):w()}function k(w,H){let Y;const[Q,Ee,Ye]=uN(w,H);Y=Hf(Q.reverse(),"beforeRouteLeave",w,H);for(const ce of Q)ce.leaveGuards.forEach(Ae=>{Y.push(Qr(Ae,w,H))});const fe=I.bind(null,w,H);return Y.push(fe),ie(Y).then(()=>{Y=[];for(const ce of a.list())Y.push(Qr(ce,w,H));return Y.push(fe),ie(Y)}).then(()=>{Y=Hf(Ee,"beforeRouteUpdate",w,H);for(const ce of Ee)ce.updateGuards.forEach(Ae=>{Y.push(Qr(Ae,w,H))});return Y.push(fe),ie(Y)}).then(()=>{Y=[];for(const ce of Ye)if(ce.beforeEnter)if(rn(ce.beforeEnter))for(const Ae of ce.beforeEnter)Y.push(Qr(Ae,w,H));else Y.push(Qr(ce.beforeEnter,w,H));return Y.push(fe),ie(Y)}).then(()=>(w.matched.forEach(ce=>ce.enterCallbacks={}),Y=Hf(Ye,"beforeRouteEnter",w,H,B),Y.push(fe),ie(Y))).then(()=>{Y=[];for(const ce of s.list())Y.push(Qr(ce,w,H));return Y.push(fe),ie(Y)}).catch(ce=>gr(ce,8)?ce:Promise.reject(ce))}function P(w,H,Y){l.list().forEach(Q=>B(()=>Q(w,H,Y)))}function q(w,H,Y,Q,Ee){const Ye=C(w,H);if(Ye)return Ye;const fe=H===Jr,ce=_r?history.state:{};Y&&(Q||fe?i.replace(w.fullPath,He({scroll:fe&&ce&&ce.scroll},Ee)):i.push(w.fullPath,Ee)),c.value=w,ve(w,H,Y,fe),ue()}let te;function E(){te||(te=i.listen((w,H,Y)=>{if(!U.listening)return;const Q=g(w),Ee=z(Q);if(Ee){b(He(Ee,{replace:!0,force:!0}),Q).catch(hs);return}u=Q;const Ye=c.value;_r&&pT(_v(Ye.fullPath,Y.delta),Jl()),k(Q,Ye).catch(fe=>gr(fe,12)?fe:gr(fe,2)?(b(He(S(fe.to),{force:!0}),Q).then(ce=>{gr(ce,20)&&!Y.delta&&Y.type===ps.pop&&i.go(-1,!1)}).catch(hs),Promise.reject()):(Y.delta&&i.go(-Y.delta,!1),O(fe,Q,Ye))).then(fe=>{fe=fe||q(Q,Ye,!1),fe&&(Y.delta&&!gr(fe,8)?i.go(-Y.delta,!1):Y.type===ps.pop&&gr(fe,20)&&i.go(-1,!1)),P(Q,Ye,fe)}).catch(hs)}))}let D=vs(),j=vs(),x;function O(w,H,Y){ue(w);const Q=j.list();return Q.length?Q.forEach(Ee=>Ee(w,H,Y)):(process.env.NODE_ENV!=="production"&&Re("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function re(){return x&&c.value!==Jr?Promise.resolve():new Promise((w,H)=>{D.add([w,H])})}function ue(w){return x||(x=!w,E(),D.list().forEach(([H,Y])=>w?Y(w):H()),D.reset()),w}function ve(w,H,Y,Q){const{scrollBehavior:Ee}=e;if(!_r||!Ee)return Promise.resolve();const Ye=!Y&&mT(_v(w.fullPath,0))||(Q||!Y)&&history.state&&history.state.scroll||null;return o.nextTick().then(()=>Ee(w,H,Ye)).then(fe=>fe&&hT(fe)).catch(fe=>O(fe,w,H))}const y=w=>i.go(w);let M;const T=new Set,U={currentRoute:c,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:g,options:e,push:A,replace:V,go:y,back:()=>y(-1),forward:()=>y(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:j.add,isReady:re,install(w){const H=this;w.component("RouterLink",jT),w.component("RouterView",XT),w.config.globalProperties.$router=H,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>o.unref(c)}),_r&&!M&&c.value===Jr&&(M=!0,A(i.location).catch(Ee=>{process.env.NODE_ENV!=="production"&&Re("Unexpected error when starting the router:",Ee)}));const Y={};for(const Ee in Jr)Object.defineProperty(Y,Ee,{get:()=>c.value[Ee],enumerable:!0});w.provide(Zl,H),w.provide(Bf,o.shallowReactive(Y)),w.provide(Uf,c);const Q=w.unmount;T.add(w),w.unmount=function(){T.delete(w),T.size<1&&(u=Jr,te&&te(),te=null,c.value=Jr,M=!1,x=!1),Q()},process.env.NODE_ENV!=="production"&&_r&&ZT(w,H,t)}};function ie(w){return w.reduce((H,Y)=>H.then(()=>B(Y)),Promise.resolve())}return U}function uN(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const l=t.matched[s];l&&(e.matched.find(u=>Xr(u,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(u=>Xr(u,c))||i.push(c))}return[n,r,i]}function fN(){return o.inject(Zl)}function Hv(e){return o.inject(Bf)}function tc(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 Wf(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
33
33
|
* pinia v2.3.1
|
|
34
34
|
* (c) 2025 Eduardo San Martin Morote
|
|
35
35
|
* @license MIT
|
|
36
|
-
*/let gs;const ys=e=>gs=e,Gv=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function
|
|
36
|
+
*/let gs;const ys=e=>gs=e,Gv=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Fi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gn||(Gn={}));const Zr=typeof window<"u",Wv=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 dN(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 jf(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Kv(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function jv(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function nc(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 rc=typeof navigator=="object"?navigator:{userAgent:""},zv=/Macintosh/.test(rc.userAgent)&&/AppleWebKit/.test(rc.userAgent)&&!/Safari/.test(rc.userAgent),Kv=Zr?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!zv?hN:"msSaveOrOpenBlob"in rc?pN:mN:()=>{};function hN(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?jv(r.href)?jf(e,t,n):(r.target="_blank",nc(r)):nc(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){nc(r)},0))}function pN(e,t="download",n){if(typeof e=="string")if(jv(e))jf(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){nc(r)})}else navigator.msSaveOrOpenBlob(dN(e,n),t)}function mN(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return jf(e,t,n);const i=e.type==="application/octet-stream",a=/constructor/i.test(String(Wv.HTMLElement))||"safari"in Wv,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a||zv)&&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=s?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 bt(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 zf(e){return"_a"in e&&"install"in e}function qv(){if(!("clipboard"in navigator))return bt("Your browser doesn't support the Clipboard API","error"),!0}function Xv(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(bt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function vN(e){if(!qv())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),bt("Global state copied to clipboard.")}catch(t){if(Xv(t))return;bt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function _N(e){if(!qv())try{Jv(e,JSON.parse(await navigator.clipboard.readText())),bt("Global state pasted from clipboard.")}catch(t){if(Xv(t))return;bt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function gN(e){try{Kv(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){bt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let yr;function yN(){yr||(yr=document.createElement("input"),yr.type="file",yr.accept=".json");function e(){return new Promise((t,n)=>{yr.onchange=async()=>{const r=yr.files;if(!r)return t(null);const i=r.item(0);return t(i?{text:await i.text(),file:i}:null)},yr.oncancel=()=>t(null),yr.onerror=n,yr.click()})}return e}async function SN(e){try{const n=await yN()();if(!n)return;const{text:r,file:i}=n;Jv(e,JSON.parse(r)),bt(`Global state imported from "${i.name}".`)}catch(t){bt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Jv(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 Cn(e){return{_custom:{display:e}}}const Qv="🍍 Pinia (root)",ic="_root";function EN(e){return zf(e)?{id:ic,label:Qv}:{id:e.$id,label:e.$id}}function TN(e){if(zf(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>r.get(a)._getters).map(a=>{const s=r.get(a);return{editable:!1,key:a,value:s._getters.reduce((l,c)=>(l[c]=s[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 NN(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:Cn(e.type),key:Cn(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function wN(e){switch(e){case Gn.direct:return"mutation";case Gn.patchFunction:return"$patch";case Gn.patchObject:return"$patch";default:return"unknown"}}let qa=!0;const ac=[],Yi="pinia:mutations",Vt="pinia",{assign:bN}=Object,oc=e=>"🍍 "+e;function DN(e,t){Af({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ac,app:e},n=>{typeof n.now!="function"&&bt("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:Yi,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Vt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{vN(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await _N(t),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{gN(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await SN(t),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)},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"?bt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(i.$reset(),bt(`Store "${r}" reset.`)):bt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,i)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(l=>{r.instanceData.state.push({type:oc(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:o.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:oc(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,u)=>{try{c[u]=l[u]}catch(f){c[u]=f}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===Vt){let i=[t];i=i.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?i.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):Qv.toLowerCase().includes(r.filter.toLowerCase())):i).map(EN)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===Vt){const i=r.nodeId===ic?t:t._s.get(r.nodeId);if(!i)return;i&&(r.nodeId!==ic&&(globalThis.$store=o.toRaw(i)),r.state=TN(i))}}),n.on.editInspectorState((r,i)=>{if(r.app===e&&r.inspectorId===Vt){const a=r.nodeId===ic?t:t._s.get(r.nodeId);if(!a)return bt(`store "${r.nodeId}" not found`,"error");const{path:s}=r;zf(a)?s.unshift("state"):(s.length!==1||!a._customProperties.has(s[0])||s[0]in a.$state)&&s.unshift("$state"),qa=!1,r.set(a,s,r.state.value),qa=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const i=r.type.replace(/^🍍\s*/,""),a=t._s.get(i);if(!a)return bt(`store "${i}" not found`,"error");const{path:s}=r;if(s[0]!=="state")return bt(`Invalid path for store "${i}":
|
|
37
37
|
${s}
|
|
38
|
-
Only state can be modified.`);s[0]="$state",qa=!1,r.set(a,s,r.state.value),qa=!0}})})}function kN(e,t){ac.includes(oc(t.$id))||ac.push(oc(t.$id)),Af({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ac,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:s,onError:l,name:c,args:u})=>{const f=Zv++;n.addTimelineEvent({layerId
|
|
38
|
+
Only state can be modified.`);s[0]="$state",qa=!1,r.set(a,s,r.state.value),qa=!0}})})}function kN(e,t){ac.includes(oc(t.$id))||ac.push(oc(t.$id)),Af({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ac,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:s,onError:l,name:c,args:u})=>{const f=Zv++;n.addTimelineEvent({layerId:Yi,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:Cn(t.$id),action:Cn(c),args:u},groupId:f}}),s(d=>{ei=void 0,n.addTimelineEvent({layerId:Yi,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:Cn(t.$id),action:Cn(c),args:u,result:d},groupId:f}})}),l(d=>{ei=void 0,n.addTimelineEvent({layerId:Yi,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Cn(t.$id),action:Cn(c),args:u,error:d},groupId:f}})})},!0),t._customProperties.forEach(s=>{o.watch(()=>o.unref(t[s]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(Vt),qa&&n.addTimelineEvent({layerId:Yi,event:{time:r(),title:"Change",subtitle:s,data:{newValue:l,oldValue:c},groupId:ei}})},{deep:!0})}),t.$subscribe(({events:s,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Vt),!qa)return;const u={time:r(),title:wN(l),data:bN({store:Cn(t.$id)},NN(s)),groupId:ei};l===Gn.patchFunction?u.subtitle="⤵️":l===Gn.patchObject?u.subtitle="🧩":s&&!Array.isArray(s)&&(u.subtitle=s.type),s&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),n.addTimelineEvent({layerId:Yi,event:u})},{detached:!0,flush:"sync"});const i=t._hotUpdate;t._hotUpdate=o.markRaw(s=>{i(s),n.addTimelineEvent({layerId:Yi,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Cn(t.$id),info:Cn("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt),n.getSettings().logStoreChanges&&bt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt),n.getSettings().logStoreChanges&&bt(`"${t.$id}" store installed 🆕`)})}let Zv=0,ei;function e_(e,t,n){const r=t.reduce((i,a)=>(i[a]=o.toRaw(e)[a],i),{});for(const i in r)e[i]=function(){const a=Zv,s=n?new Proxy(e,{get(...c){return ei=a,Reflect.get(...c)},set(...c){return ei=a,Reflect.set(...c)}}):e;ei=a;const l=r[i].apply(s,arguments);return ei=void 0,l}}function CN({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){e_(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;o.toRaw(t)._hotUpdate=function(i){r.apply(this,arguments),e_(t,Object.keys(i._hmrPayload.actions),!!t._isOptionsAPI)}}kN(e,t)}}function IN(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],r=[];const i=o.markRaw({install(a){ys(i),i._a=a,a.provide(Gv,i),a.config.globalProperties.$pinia=i,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr&&DN(a,i),r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr&&typeof Proxy<"u"&&i.use(CN),i}function t_(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const i=e[n];Fi(i)&&Fi(r)&&!o.isRef(r)&&!o.isReactive(r)?e[n]=t_(i,r):e[n]=r}return e}const n_=()=>{};function r_(e,t,n,r=n_){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&o.getCurrentScope()&&o.onScopeDispose(i),i}function Xa(e,...t){e.slice().forEach(n=>{n(...t)})}const RN=e=>e(),i_=Symbol(),Kf=Symbol();function qf(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];Fi(i)&&Fi(r)&&e.hasOwnProperty(n)&&!o.isRef(r)&&!o.isReactive(r)?e[n]=qf(i,r):e[n]=r}return e}const ON=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function PN(e){return!Fi(e)||!e.hasOwnProperty(ON)}const{assign:pn}=Object;function a_(e){return!!(o.isRef(e)&&e.effect)}function o_(e,t,n,r){const{state:i,actions:a,getters:s}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=i?i():{});const f=process.env.NODE_ENV!=="production"&&r?o.toRefs(o.ref(i?i():{}).value):o.toRefs(n.state.value[e]);return pn(f,a,Object.keys(s||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=o.markRaw(o.computed(()=>{ys(n);const h=n._s.get(e);return s[p].call(h,h)})),d),{}))}return c=Xf(e,u,t,n,r,!0),c}function Xf(e,t,n={},r,i,a){let s;const l=pn({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"&&(c.onTrigger=k=>{u?h=k:u==!1&&!b._hotUpdating&&(Array.isArray(h)?h.push(k):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,f,d=[],p=[],h;const m=r.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]={});const v=o.ref({});let _;function g(k){let P;u=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof k=="function"?(k(r.state.value[e]),P={type:Gn.patchFunction,storeId:e,events:h}):(qf(r.state.value[e],k),P={type:Gn.patchObject,payload:k,storeId:e,events:h});const q=_=Symbol();o.nextTick().then(()=>{_===q&&(u=!0)}),f=!0,Xa(d,P,r.state.value[e])}const S=a?function(){const{state:P}=n,q=P?P():{};this.$patch(te=>{pn(te,q)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:n_;function C(){s.stop(),d=[],p=[],r._s.delete(e)}const A=(k,P="")=>{if(i_ in k)return k[Kf]=P,k;const q=function(){ys(r);const te=Array.from(arguments),E=[],D=[];function j(re){E.push(re)}function x(re){D.push(re)}Xa(p,{args:te,name:q[Kf],store:b,after:j,onError:x});let O;try{O=k.apply(this&&this.$id===e?this:b,te)}catch(re){throw Xa(D,re),re}return O instanceof Promise?O.then(re=>(Xa(E,re),re)).catch(re=>(Xa(D,re),Promise.reject(re))):(Xa(E,O),O)};return q[i_]=!0,q[Kf]=P,q},V=o.markRaw({actions:{},getters:{},state:[],hotState:v}),z={_p:r,$id:e,$onAction:r_.bind(null,p),$patch:g,$reset:S,$subscribe(k,P={}){const q=r_(d,k,P.detached,()=>te()),te=s.run(()=>o.watch(()=>r.state.value[e],E=>{(P.flush==="sync"?f:u)&&k({storeId:e,type:Gn.direct,events:h},E)},pn({},c,P)));return q},$dispose:C},b=o.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr?pn({_hmrPayload:V,_customProperties:o.markRaw(new Set)},z):z);r._s.set(e,b);const B=(r._a&&r._a.runWithContext||RN)(()=>r._e.run(()=>(s=o.effectScope()).run(()=>t({action:A}))));for(const k in B){const P=B[k];if(o.isRef(P)&&!a_(P)||o.isReactive(P))process.env.NODE_ENV!=="production"&&i?tc(v.value,k,o.toRef(B,k)):a||(m&&PN(P)&&(o.isRef(P)?P.value=m[k]:qf(P,m[k])),r.state.value[e][k]=P),process.env.NODE_ENV!=="production"&&V.state.push(k);else if(typeof P=="function"){const q=process.env.NODE_ENV!=="production"&&i?P:A(P,k);B[k]=q,process.env.NODE_ENV!=="production"&&(V.actions[k]=P),l.actions[k]=P}else process.env.NODE_ENV!=="production"&&a_(P)&&(V.getters[k]=a?n.getters[k]:P,Zr&&(B._getters||(B._getters=o.markRaw([]))).push(k))}if(pn(b,B),pn(o.toRaw(b),B),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&i?v.value:r.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&i)throw new Error("cannot set hotState");g(P=>{pn(P,k)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=o.markRaw(k=>{b._hotUpdating=!0,k._hmrPayload.state.forEach(P=>{if(P in b.$state){const q=k.$state[P],te=b.$state[P];typeof q=="object"&&Fi(q)&&Fi(te)?t_(q,te):k.$state[P]=te}tc(b,P,o.toRef(k.$state,P))}),Object.keys(b.$state).forEach(P=>{P in k.$state||Wf(b,P)}),u=!1,f=!1,r.state.value[e]=o.toRef(k._hmrPayload,"hotState"),f=!0,o.nextTick().then(()=>{u=!0});for(const P in k._hmrPayload.actions){const q=k[P];tc(b,P,A(q,P))}for(const P in k._hmrPayload.getters){const q=k._hmrPayload.getters[P],te=a?o.computed(()=>(ys(r),q.call(b,b))):q;tc(b,P,te)}Object.keys(b._hmrPayload.getters).forEach(P=>{P in k._hmrPayload.getters||Wf(b,P)}),Object.keys(b._hmrPayload.actions).forEach(P=>{P in k._hmrPayload.actions||Wf(b,P)}),b._hmrPayload=k._hmrPayload,b._getters=k._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(P=>{Object.defineProperty(b,P,pn({value:b[P]},k))})}return r._p.forEach(k=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr){const P=s.run(()=>k({store:b,app:r._a,pinia:r,options:l}));Object.keys(P||{}).forEach(q=>b._customProperties.add(q)),pn(b,P)}else pn(b,s.run(()=>k({store:b,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
39
39
|
state: () => new MyClass()
|
|
40
40
|
Found in store "${b.$id}".`),m&&a&&n.hydrate&&n.hydrate(b.$state,m),u=!0,f=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Ja(e,t,n){let r,i;const a=typeof t=="function";if(typeof e=="string")r=e,i=a?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 s(l,c){const u=o.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&gs&&gs._testing?null:l)||(u?o.inject(Gv,null):null),l&&ys(l),process.env.NODE_ENV!=="production"&&!gs)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
41
41
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
42
|
-
This will fail in production.`);l=gs,l._s.has(r)||(a?Xf(r,t,i,l):o_(r,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const f=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const d="__hot:"+r,p=a?Xf(d,t,i,l,!0):o_(d,pn({},i),l,!0);c._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ei){const d=o.getCurrentInstance();if(d&&d.proxy&&!c){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[r]=f}}return f}return s.$id=r,s}function Jf(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),a=t[r];return typeof a=="function"?a.call(this,i):i[a]},n),{})}class AN extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}class Qf{constructor(t,n,r,i){Pe(this,"id");Pe(this,"componentId");Pe(this,"displayPosition");Pe(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!")}}const qr=class qr{static register(t){qr.providers.push(t)}static clear(){qr.providers=[]}static trackPageView(t){qr.providers.forEach(n=>n.trackPageView(t))}static trackSearch(t){qr.providers.forEach(n=>n.trackSearch(t))}static trackSort(t){qr.providers.forEach(n=>n.trackSort(t))}static trackApplicationStart(){qr.providers.forEach(t=>t.trackApplicationStart())}};Pe(qr,"providers",[]);let Qa=qr;class MN extends Error{constructor(t){super(`The record ${t} was not found.`)}}function s_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function l_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}class Zf extends Error{constructor(t){super(`The field ${t} was not found.`)}}const c_={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class u_ extends Error{constructor(n,r){super(n);Pe(this,"innerError");r&&(this.innerError=r)}}class xN{async getData(){try{const t=await fetch(c_.SourceDataFile);if(!t.ok)throw new u_(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new u_("Failed to read source data.",t)}}}function VN(e){const t={},n=Za();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Zf(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function LN(e){return e.map(t=>VN(t))}const ni=Ja("dataset",()=>{const e=o.ref(!1),t=o.ref(""),n=o.ref(!1),r=o.ref(),i=[];async function a(){try{n.value=!1,e.value=!0;const c=new xN;r.value=await c.getData(),Er().set(LN(r.value.records)),e.value=!1,n.value=!0,i.forEach(u=>{u()})}catch(c){t.value=`Failed to fetch or process site-data.json from the website root. ${c}`}finally{e.value=!1}}const s=o.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:s,loadData:a,dataset:r,onLoaded:c=>{s.value=="OK"?c():i.push(c)},onLoadedEvents:i}}),Za=Ja("fields",()=>{const e=ni(),t=o.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=o.computed(()=>t.value.length);function r(i){const a=t.value.find(s=>s.id===i);if(a===void 0)throw new Zf(i);return a}return{all:t,count:n,byId:r}}),Vt=Ja("properties",()=>{const e=Za(),t=ni(),n=o.ref({}),r=o.computed(()=>{var _;return(_=t.dataset)==null?void 0:_.properties}),i=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.metadata)??void 0}),a=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.title)??"Loading..."}),s=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.resultMode)??"filter"}),l=o.computed(()=>{var _,g;return(_=r==null?void 0:r.value)!=null&&_.sortableFields?(g=r==null?void 0:r.value)==null?void 0:g.sortableFields.map(S=>e.byId(S)):[]}),c=o.computed(()=>{var _,g;if((_=r==null?void 0:r.value)!=null&&_.idField)return e.byId((g=r==null?void 0:r.value)==null?void 0:g.idField);throw new Zf("UNDEFINED")});function u(_){n.value=_}const f=o.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),d=o.ref(!1),p=[],h=_=>{d.value?_():p.push(_)},m=o.computed(()=>d.value);return{pages:f,metadata:i,title:a,idField:c,sortableFields:l,resultMode:s,setOptions:u,options:n,areStoresReady:m,onStoresReady:h,setStoresReady:_=>{if(d.value=_,_)for(;p.length>0;){const g=p.shift();g&&g()}}}}),Er=Ja("records",()=>{const e=o.ref([]),t=o.computed(()=>e.value.length),n=o.computed(()=>[...e.value]),r=Vt();function i(c){const u=e.value.find(f=>f[r.idField.id].value==c);if(u===void 0)throw new MN(c);return u}function a(c){e.value=c}function s(c){return s_(n.value,c)}function l(c){return l_(n.value,c)}return{all:n,count:t,byId:i,set:a,next:s,previous:l,records:e}});var ri=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(ri||{});function FN(e,t,n,r){var l,c;if(!n||!r)return 0;const i=(l=e[n])==null?void 0:l.value,a=(c=t[n])==null?void 0:c.value;if(!i&&!a)return 0;if(!i&&a)return r===ri.Ascending?1:-1;if(i&&!a)return r===ri.Ascending?-1:1;const s=i.toString().localeCompare(a.toString(),void 0,{numeric:!0});return s<0?r===ri.Ascending?-1:1:s>0?r===ri.Ascending?1:-1:0}const Bt=Ja("searchResults",()=>{const e=Er(),t=Vt(),n=_t(),r=o.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((S,R)=>R.filterRecords(S),e.all)),i=o.computed(()=>{Qa.trackSort({SortField:f.value,SortDirection:d.value});const S=[...r.value];return u.value&&S.sort((R,M)=>FN(R,M,f.value,d.value)),S.slice()}),a=o.computed(()=>{let S=i.value;return S=p.value?S:S.slice(0,c_.ShortenedRecordCount),S}),s=o.computed(()=>r.value.length),l=o.computed(()=>a.value.length),c=o.computed(()=>l.value===s.value),u=o.computed(()=>t.sortableFields.length>0),f=o.ref(),d=o.ref(),p=o.ref(!1);function h(){f.value=g(),d.value=_()}function m(S){return s_(i.value,S)}function v(S){return l_(i.value,S)}function _(){return u.value?ri.Ascending:void 0}function g(){var S;return u.value?(S=t.sortableFields[0])==null?void 0:S.id:void 0}return{all:r,totalCount:s,visible:a,visibleCount:l,showAllResults:p,allResultsAreVisible:c,hasSortFields:u,sortFieldId:f,sortDirection:d,reset:h,next:m,previous:v}}),_t=Ja("filter",()=>{const e=o.ref(!1),t=o.ref([]),n=o.computed(()=>t.value),r=o.computed(()=>n.value.length),i=v=>{t.value.push(v)},a=()=>{t.value=[]};function s(){t.value.forEach(v=>v.reset())}const l=o.computed(()=>{const v=f.value.filter(_=>_.isActive());return Qa.trackSearch(v),v}),c=o.computed(()=>l.value.length>0),u=o.computed(()=>t.value.sort((v,_)=>v.displayPosition<_.displayPosition?-1:v.displayPosition>_.displayPosition?1:0)),f=o.computed(()=>e.value===!0?u.value:u.value.filter(v=>v.display==="quick")),d=v=>{const _=t.value.find(g=>g.id===v);if(_===void 0)throw new AN(v);return _},p=o.computed(()=>{const v=Bt(),_={};return e.value===!0&&(_.advanced="true"),v.sortFieldId&&(_.sort=v.sortFieldId.toString()),v.sortDirection&&(_["sort-dir"]=v.sortDirection.toString()),f.value.filter(S=>!S.isDefault()).forEach(S=>{const R=S.stateToQueryParameters();Object.keys(R).forEach(M=>{_[`${S.id}-${M}`]=R[M]})}),_});function h(v){const _={};for(const[g,S]of Object.entries(v))typeof S=="string"&&(_[g]=S);return _}return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:f,parameters:p,updateFromQuery:v=>{const _=h(v),g=Bt(),S=Vt();s(),e.value=_.advanced==="true",_.sort&&S.sortableFields.map(R=>R.id).includes(_.sort)&&(g.sortFieldId=_.sort),["Ascending","Descending"].includes(_["sort-dir"])&&(g.sortDirection=_["sort-dir"]),t.value.forEach(R=>{const M={};Object.keys(_).filter(V=>V.startsWith(`${R.id}-`)).forEach(V=>{M[V.substring(R.id.length+1)]=_[V]}),R.queryParametersToState(M)})},byId:d,reset:s,add:i,clear:a}});function YN(e,t){if(e!=="/")return;const n=Hv(),r=_t(),i=Vt();Object.keys(n.query).length>0?i.onStoresReady(()=>r.updateFromQuery(n.query)):Object.keys(r.parameters).length>0&&t.push({path:"/",query:r.parameters}).then()}async function $N(e){await e.isReady(),await o.nextTick(),await new Promise(n=>setTimeout(n,100));const t=document.querySelector(".cape-results");t&&t.scrollIntoView({behavior:"smooth"})}const ed=(e=>{const t=cN({history:e,routes:[],linkActiveClass:"active",linkExactActiveClass:"active"});return t.afterEach(n=>{YN(n.path,t),n.path==="/"&&n.query.jump&&$N(t)}),t})(ST("/"));function f_(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(a){return t[a.toUpperCase()]??a},i=n.replace(/\S/g,r);return new RegExp(i,"g")}function eo(e){return Array.isArray(e)?e:[e]}class BN extends Qf{constructor(n,r,i,a,s,l){super(n,r,i,a);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"placeholder");this.defaultTerm=s,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 a=f_(i);return this.termRegexpMatchesRecord(a,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return eo(r).some(a=>`${a}`.match(n))}summariseStateAsText(){return`any field contains '${this.term}'`}summariseStateAsObject(){return{id:this.id,term:this.term}}stateToQueryParameters(){return{term:this.term}}queryParametersToState(n){this.term=n.term??""}}class sc extends Qf{constructor(n,r,i,a,s){super(n,r,i,a);Pe(this,"field");s.changeFilterMode||(s.changeFilterMode=!0),this.field=s}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function UN(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=eo(e);return n.every(i=>{const a=f_(i);return r.some(s=>`${s}`.match(a))})}function Ss(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function lc(e){return!Ss(e)}function td(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class HN extends sc{constructor(n,r,i,a,s,l,c){super(n,r,i,a,s);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"mode");Pe(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 UN(n,this.term);case"is":return td(n,this.term);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,term:this.term}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":case"contains":n.term=this.term??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.term=n.term;break;case"contains":this.mode="contains",this.term=n.term;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function d_(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`===t)!==void 0}function GN(e,t){return t.find(r=>d_(e,r))!==void 0}class WN extends sc{constructor(n,r,i,a,s,l,c,u){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"oneOfTerms");Pe(this,"mode");Pe(this,"defaultIsTerm");Pe(this,"defaultOneOfTerms");Pe(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 GN(n,this.oneOfTerms);case"is":return d_(n,this.isTerm);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,oneOfTerms:this.oneOfTerms}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"oneOf":n.terms=this.oneOfTerms.join(";");break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"oneOf":this.mode="oneOf",this.oneOfTerms=(n.terms??"").split(/\s*;\s*/);break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function jN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>a>=t&&a<=n)!==void 0}function Bi(e){if(e!="")return e}function h_(e,t){const n=Bi(e);return n??t}class zN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,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&&Bi(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Bi(this.lowerBoundTerm)==this.defaultLowerBound&&Bi(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Bi(this.isTerm)!==void 0;case"between":return Bi(this.lowerBoundTerm)!==void 0||Bi(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return td(n,`${this.isTerm}`);case"between":{const r=h_(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=h_(this.upperBoundTerm,Number.POSITIVE_INFINITY);return jN(n,r,i)}case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=`${this.isTerm}`;break;case"between":n.upper=`${this.upperBoundTerm}`,n.lower=`${this.lowerBoundTerm}`;break}return n}queryParametersToState(n){switch(n.mode){case"is":{const r=parseInt(n.term);isNaN(r)||(this.mode="is",this.isTerm=r)}break;case"between":{const r=parseInt(n.lower),i=parseInt(n.upper);!isNaN(r)&&!isNaN(i)&&(this.mode="between",this.lowerBoundTerm=r,this.upperBoundTerm=i)}break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function KN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>(t===void 0||a>=t)&&(n===void 0||a<=n))!==void 0}class qN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,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&&this.isTerm===this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&this.lowerBoundTerm===this.defaultLowerBound&&this.upperBoundTerm===this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}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}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"between":n.upper=this.upperBoundTerm??"",n.lower=this.lowerBoundTerm??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"between":this.mode="between",this.lowerBoundTerm=n.lower,this.upperBoundTerm=n.upper;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}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 td(n,this.termToISO(this.isTerm)??"");case"between":return KN(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Ss(n);case"notSet":return lc(n)}}}function XN({filterStore:e=_t(),fieldStore:t=Za(),propertyStore:n=Vt()}={}){JN(e),QN(e),ZN(t,e),iw(e,n)}function JN(e){e.clear()}function QN(e){e.add(new BN("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function ZN(e,t){let n=0;e.all.forEach(r=>{if(r.filterDisplay==="hide")return;const i=r.filterDisplay??"advanced";switch(n+=100,r.type){case"text":ew(n,r,i,t);break;case"enum":tw(n,r,i,t);break;case"integer":nw(n,r,i,t);break;case"date":rw(n,r,i,t);break}})}function ew(e,t,n,r){r.add(new HN("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function tw(e,t,n,r){r.add(new WN("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function nw(e,t,n,r){r.add(new zN("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function rw(e,t,n,r){r.add(new qN("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function iw(e,t){var n;((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}async function aw(){const e=ni(),t=Bt(),n=Vt();await e.loadData(),XN(),t.reset(),n.setStoresReady(!0)}const ow={key:2},sw=o.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=ni();return[t,n]=o.withAsyncContext(()=>aw()),await t,n(),(i,a)=>{const s=o.resolveComponent("cape-load-error"),l=o.resolveComponent("cape-navigation");return o.openBlock(),o.createElementBlock("div",null,[o.unref(r).status==="ERROR"?(o.openBlock(),o.createBlock(s,{key:0})):o.createCommentVNode("",!0),o.unref(r).status==="OK"?(o.openBlock(),o.createBlock(l,{key:1})):(o.openBlock(),o.createElementBlock("div",ow,"Unknown status ["+o.toDisplayString(o.unref(r).status)+"]",1))])}}}),lw={class:"cape-record-count"},cw=o.defineComponent({__name:"CapeRecordCount",setup(e){const t=Er();return(n,r)=>(o.openBlock(),o.createElementBlock("span",lw,o.toDisplayString(o.unref(t).count),1))}}),uw={__name:"CapeAdvancedSearchToggle",setup(e){const t=_t();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAdvanced]])}},fw={class:"cape-filters"},dw=o.defineComponent({__name:"CapeFilters",setup(e){const t=_t();return(n,r)=>(o.openBlock(),o.createElementBlock("div",fw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).forDisplay,i=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),hw={__name:"CapeFormResetButton",setup(e){const t=_t(),n=Bt();function r(){t.reset(),n.reset()}return(i,a)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[o.renderSlot(i.$slots,"default",{},()=>[a[0]||(a[0]=o.createTextVNode(" New search "))])]))}},pw={class:"cape-home-page"},mw=o.defineComponent({__name:"CapeHomePage",setup(e){const t=fN(),n=_t();return o.watch(()=>n.parameters,(r,i)=>{JSON.stringify(r)!==JSON.stringify(i)&&t.push({path:"/",query:r})}),(r,i)=>{const a=o.resolveComponent("cape-homepage-layout");return o.openBlock(),o.createElementBlock("form",pw,[o.createVNode(a)])}}}),vw={class:"cape-load-error cape-error"},_w={class:"cape-load-error-message"},gw=o.defineComponent({__name:"CapeLoadError",setup(e){const t=ni();return(n,r)=>(o.openBlock(),o.createElementBlock("div",vw,[r[2]||(r[2]=o.createElementVNode("h2",null,"Unable to load data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" An error has occurred. The error was: ")),o.createElementVNode("span",_w,o.toDisplayString(o.unref(t).errorMessage),1),r[1]||(r[1]=o.createTextVNode(". "))])]))}}),Wn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},yw={},Sw={class:"cape-loading"};function Ew(e,t){return o.openBlock(),o.createElementBlock("div",Sw,t[0]||(t[0]=[o.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[o.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),o.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)]))}const Tw=Wn(yw,[["render",Ew]]),Nw=function(){var n;const e=Vt(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},ww={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},bw={class:"cape-non-prod-warning-environment"},Dw={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},kw=o.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Nw(),n=o.ref(!1),r=o.computed(()=>t!="PROD"&&!n.value),i=o.computed(()=>t==="UNKNOWN"),a=function(){n.value=!0};return(s,l)=>r.value?(o.openBlock(),o.createElementBlock("div",ww,[l[0]||(l[0]=o.createElementVNode("strong",null,"WARNING",-1)),l[1]||(l[1]=o.createTextVNode(': This is a "')),o.createElementVNode("span",bw,o.toDisplayString(o.unref(t)),1),l[2]||(l[2]=o.createTextVNode('" instance of this service. ')),i.value?(o.openBlock(),o.createElementBlock("div",Dw," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):o.createCommentVNode("",!0),o.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:a,onKeyup:o.withKeys(a,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):o.createCommentVNode("",!0)}}),Cw={key:0,class:"cape-record-page-record-not-found"},Iw={class:"cape-record-page-record-id"},Rw=o.defineComponent({__name:"CapeRecordPage",setup(e){const t=Hv(),n=Er(),r=Bt(),i=o.computed(()=>t.params.id),a=o.computed(()=>{try{return n.byId(i.value)}catch{return}}),s=o.computed(()=>{if(a.value!==void 0)return r.previous(a.value)}),l=o.computed(()=>{if(a.value!==void 0)return r.next(a.value)}),c=o.computed(()=>{if(a.value!==void 0)return n.previous(a.value)}),u=o.computed(()=>{if(a.value!==void 0)return n.next(a.value)});return(f,d)=>{const p=o.resolveComponent("cape-record-card");return a.value===void 0?(o.openBlock(),o.createElementBlock("div",Cw,[d[0]||(d[0]=o.createTextVNode(" The record with Record ID ")),o.createElementVNode("span",Iw,o.toDisplayString(i.value),1),d[1]||(d[1]=o.createTextVNode(" does not exist. "))])):(o.openBlock(),o.createBlock(p,{key:1,class:"cape-record-card",record:a.value,previousInResults:s.value,nextInResults:l.value,previousInDataset:c.value,nextInDataset:u.value},null,8,["record","previousInResults","nextInResults","previousInDataset","nextInDataset"]))}}}),Ow={class:"cape-results"},Pw={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},Aw=o.defineComponent({__name:"CapeResults",setup(e){const t=Bt();return(n,r)=>{const i=o.resolveComponent("cape-results-controls"),a=o.resolveComponent("cape-summary-card");return o.openBlock(),o.createElementBlock("div",Ow,[o.unref(t).totalCount===0?(o.openBlock(),o.createElementBlock("div",Pw," No matches ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(i,{class:"cape-results-controls-top","id-distinguisher":"top"}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).visible,(s,l)=>(o.openBlock(),o.createBlock(a,{key:l,record:s},null,8,["record"]))),128)),o.createVNode(i,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))])}}}),Mw={key:0,class:"cape-error cape-value-error"},xw={key:1,class:"cape-value"},Vw={key:0,class:"cape-value-null"},Lw={key:0,class:"cape-value-multiple"},Fw=o.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.value}),r=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.field}),i=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(a,s)=>{const l=o.resolveComponent("cape-single-value");return!a.fieldValue||!r.value?(o.openBlock(),o.createElementBlock("div",Mw," [Error: field value pair does not exist!] ")):!a.hideIfEmpty||!i.value?(o.openBlock(),o.createElementBlock("div",xw,[i.value?(o.openBlock(),o.createElementBlock("div",Vw,"undefined")):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(o.openBlock(),o.createElementBlock("ol",Lw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(c,u)=>(o.openBlock(),o.createElementBlock("li",{key:u},[o.createVNode(l,{"field-value-pair":{field:r.value,value:c},link:a.link},null,8,["field-value-pair","link"])]))),128))])):(o.openBlock(),o.createBlock(l,{key:1,"field-value-pair":a.fieldValue,link:a.link},null,8,["field-value-pair","link"]))],2))])):o.createCommentVNode("",!0)}}}),Yw=o.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>{const s=o.resolveComponent("cape-value"),l=o.resolveComponent("cape-labelled-content");return!i.hideIfEmpty||!r.value?(o.openBlock(),o.createBlock(l,{key:0,"field-value":i.fieldValue},{default:o.withCtx(()=>[o.createVNode(s,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])]),_:1},8,["field-value"])):o.createCommentVNode("",!0)}}});//! moment.js
|
|
42
|
+
This will fail in production.`);l=gs,l._s.has(r)||(a?Xf(r,t,i,l):o_(r,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const f=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const d="__hot:"+r,p=a?Xf(d,t,i,l,!0):o_(d,pn({},i),l,!0);c._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Zr){const d=o.getCurrentInstance();if(d&&d.proxy&&!c){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[r]=f}}return f}return s.$id=r,s}function Jf(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),a=t[r];return typeof a=="function"?a.call(this,i):i[a]},n),{})}class AN extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}class Qf{constructor(t,n,r,i){Pe(this,"id");Pe(this,"componentId");Pe(this,"displayPosition");Pe(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!")}}const Kr=class Kr{static register(t){Kr.providers.push(t)}static clear(){Kr.providers=[]}static trackPageView(t){Kr.providers.forEach(n=>n.trackPageView(t))}static trackSearch(t){Kr.providers.forEach(n=>n.trackSearch(t))}static trackSort(t){Kr.providers.forEach(n=>n.trackSort(t))}static trackApplicationStart(){Kr.providers.forEach(t=>t.trackApplicationStart())}};Pe(Kr,"providers",[]);let Qa=Kr;class MN extends Error{constructor(t){super(`The record ${t} was not found.`)}}function s_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function l_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}class Zf extends Error{constructor(t){super(`The field ${t} was not found.`)}}const c_={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class u_ extends Error{constructor(n,r){super(n);Pe(this,"innerError");r&&(this.innerError=r)}}class xN{async getData(){try{const t=await fetch(c_.SourceDataFile);if(!t.ok)throw new u_(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new u_("Failed to read source data.",t)}}}function VN(e){const t={},n=Za();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Zf(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function LN(e){return e.map(t=>VN(t))}const ti=Ja("dataset",()=>{const e=o.ref(!1),t=o.ref(""),n=o.ref(!1),r=o.ref(),i=[];async function a(){try{n.value=!1,e.value=!0;const c=new xN;r.value=await c.getData(),Sr().set(LN(r.value.records)),e.value=!1,n.value=!0,i.forEach(u=>{u()})}catch(c){t.value=`Failed to fetch or process site-data.json from the website root. ${c}`}finally{e.value=!1}}const s=o.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:s,loadData:a,dataset:r,onLoaded:c=>{s.value=="OK"?c():i.push(c)},onLoadedEvents:i}}),Za=Ja("fields",()=>{const e=ti(),t=o.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=o.computed(()=>t.value.length);function r(i){const a=t.value.find(s=>s.id===i);if(a===void 0)throw new Zf(i);return a}return{all:t,count:n,byId:r}}),It=Ja("properties",()=>{const e=Za(),t=ti(),n=o.ref({}),r=o.computed(()=>{var _;return(_=t.dataset)==null?void 0:_.properties}),i=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.metadata)??void 0}),a=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.title)??"Loading..."}),s=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.resultMode)??"filter"}),l=o.computed(()=>{var _,g;return(_=r==null?void 0:r.value)!=null&&_.sortableFields?(g=r==null?void 0:r.value)==null?void 0:g.sortableFields.map(S=>e.byId(S)):[]}),c=o.computed(()=>{var _,g;if((_=r==null?void 0:r.value)!=null&&_.idField)return e.byId((g=r==null?void 0:r.value)==null?void 0:g.idField);throw new Zf("UNDEFINED")});function u(_){n.value=_}const f=o.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),d=o.ref(!1),p=[],h=_=>{d.value?_():p.push(_)},m=o.computed(()=>d.value);return{pages:f,metadata:i,title:a,idField:c,sortableFields:l,resultMode:s,setOptions:u,options:n,areStoresReady:m,onStoresReady:h,setStoresReady:_=>{if(d.value=_,_)for(;p.length>0;){const g=p.shift();g&&g()}}}}),Sr=Ja("records",()=>{const e=o.ref([]),t=o.computed(()=>e.value.length),n=o.computed(()=>[...e.value]),r=It();function i(c){const u=e.value.find(f=>f[r.idField.id].value==c);if(u===void 0)throw new MN(c);return u}function a(c){e.value=c}function s(c){return s_(n.value,c)}function l(c){return l_(n.value,c)}return{all:n,count:t,byId:i,set:a,next:s,previous:l,records:e}});var ni=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(ni||{});function FN(e,t,n,r){var l,c;if(!n||!r)return 0;const i=(l=e[n])==null?void 0:l.value,a=(c=t[n])==null?void 0:c.value;if(!i&&!a)return 0;if(!i&&a)return r===ni.Ascending?1:-1;if(i&&!a)return r===ni.Ascending?-1:1;const s=i.toString().localeCompare(a.toString(),void 0,{numeric:!0});return s<0?r===ni.Ascending?-1:1:s>0?r===ni.Ascending?1:-1:0}const Bt=Ja("searchResults",()=>{const e=Sr(),t=It(),n=_t(),r=o.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((S,C)=>C.filterRecords(S),e.all)),i=o.computed(()=>{Qa.trackSort({SortField:f.value,SortDirection:d.value});const S=[...r.value];return u.value&&S.sort((C,A)=>FN(C,A,f.value,d.value)),S.slice()}),a=o.computed(()=>{let S=i.value;return S=p.value?S:S.slice(0,c_.ShortenedRecordCount),S}),s=o.computed(()=>r.value.length),l=o.computed(()=>a.value.length),c=o.computed(()=>l.value===s.value),u=o.computed(()=>t.sortableFields.length>0),f=o.ref(),d=o.ref(),p=o.ref(!1);function h(){f.value=g(),d.value=_()}function m(S){return s_(i.value,S)}function v(S){return l_(i.value,S)}function _(){return u.value?ni.Ascending:void 0}function g(){var S;return u.value?(S=t.sortableFields[0])==null?void 0:S.id:void 0}return{all:r,totalCount:s,visible:a,visibleCount:l,showAllResults:p,allResultsAreVisible:c,hasSortFields:u,sortFieldId:f,sortDirection:d,reset:h,next:m,previous:v}}),_t=Ja("filter",()=>{const e=o.ref(!1),t=o.ref([]),n=o.computed(()=>t.value),r=o.computed(()=>n.value.length),i=v=>{t.value.push(v)},a=()=>{t.value=[]};function s(){t.value.forEach(v=>v.reset())}const l=o.computed(()=>{const v=f.value.filter(_=>_.isActive());return Qa.trackSearch(v),v}),c=o.computed(()=>l.value.length>0),u=o.computed(()=>t.value.sort((v,_)=>v.displayPosition<_.displayPosition?-1:v.displayPosition>_.displayPosition?1:0)),f=o.computed(()=>e.value===!0?u.value:u.value.filter(v=>v.display==="quick")),d=v=>{const _=t.value.find(g=>g.id===v);if(_===void 0)throw new AN(v);return _},p=o.computed(()=>{const v=Bt(),_={};return e.value===!0&&(_.advanced="true"),v.sortFieldId&&(_.sort=v.sortFieldId.toString()),v.sortDirection&&(_["sort-dir"]=v.sortDirection.toString()),f.value.filter(S=>!S.isDefault()).forEach(S=>{const C=S.stateToQueryParameters();Object.keys(C).forEach(A=>{_[`${S.id}-${A}`]=C[A]})}),_});function h(v){const _={};for(const[g,S]of Object.entries(v))typeof S=="string"&&(_[g]=S);return _}return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:f,parameters:p,updateFromQuery:v=>{const _=h(v),g=Bt(),S=It();s(),e.value=_.advanced==="true",_.sort&&S.sortableFields.map(C=>C.id).includes(_.sort)&&(g.sortFieldId=_.sort),["Ascending","Descending"].includes(_["sort-dir"])&&(g.sortDirection=_["sort-dir"]),t.value.forEach(C=>{const A={};Object.keys(_).filter(V=>V.startsWith(`${C.id}-`)).forEach(V=>{A[V.substring(C.id.length+1)]=_[V]}),C.queryParametersToState(A)})},byId:d,reset:s,add:i,clear:a}});function YN(e,t){if(e!=="/")return;const n=Hv(),r=_t(),i=It();Object.keys(n.query).length>0?i.onStoresReady(()=>r.updateFromQuery(n.query)):Object.keys(r.parameters).length>0&&t.push({path:"/",query:r.parameters}).then()}async function $N(e){await e.isReady(),await o.nextTick(),await new Promise(n=>setTimeout(n,100));const t=document.querySelector(".cape-results");t&&t.scrollIntoView({behavior:"smooth"})}const ed=(e=>{const t=cN({history:e,routes:[],linkActiveClass:"active",linkExactActiveClass:"active"});return t.afterEach(n=>{YN(n.path,t),n.path==="/"&&n.query.jump&&$N(t)}),t})(ST("/"));function f_(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(a){return t[a.toUpperCase()]??a},i=n.replace(/\S/g,r);return new RegExp(i,"g")}function eo(e){return Array.isArray(e)?e:[e]}class BN extends Qf{constructor(n,r,i,a,s,l){super(n,r,i,a);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"placeholder");this.defaultTerm=s,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 a=f_(i);return this.termRegexpMatchesRecord(a,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return eo(r).some(a=>`${a}`.match(n))}summariseStateAsText(){return`any field contains '${this.term}'`}summariseStateAsObject(){return{id:this.id,term:this.term}}stateToQueryParameters(){return{term:this.term}}queryParametersToState(n){this.term=n.term??""}}class sc extends Qf{constructor(n,r,i,a,s){super(n,r,i,a);Pe(this,"field");s.changeFilterMode||(s.changeFilterMode=!0),this.field=s}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function UN(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=eo(e);return n.every(i=>{const a=f_(i);return r.some(s=>`${s}`.match(a))})}function Ss(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function lc(e){return!Ss(e)}function td(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class HN extends sc{constructor(n,r,i,a,s,l,c){super(n,r,i,a,s);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"mode");Pe(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 UN(n,this.term);case"is":return td(n,this.term);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,term:this.term}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":case"contains":n.term=this.term??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.term=n.term;break;case"contains":this.mode="contains",this.term=n.term;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function d_(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`===t)!==void 0}function GN(e,t){return t.find(r=>d_(e,r))!==void 0}class WN extends sc{constructor(n,r,i,a,s,l,c,u){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"oneOfTerms");Pe(this,"mode");Pe(this,"defaultIsTerm");Pe(this,"defaultOneOfTerms");Pe(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 GN(n,this.oneOfTerms);case"is":return d_(n,this.isTerm);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,oneOfTerms:this.oneOfTerms}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"oneOf":n.terms=this.oneOfTerms.join(";");break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"oneOf":this.mode="oneOf",this.oneOfTerms=(n.terms??"").split(/\s*;\s*/);break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function jN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>a>=t&&a<=n)!==void 0}function $i(e){if(e!="")return e}function h_(e,t){const n=$i(e);return n??t}class zN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,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&&$i(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&$i(this.lowerBoundTerm)==this.defaultLowerBound&&$i(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return $i(this.isTerm)!==void 0;case"between":return $i(this.lowerBoundTerm)!==void 0||$i(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return td(n,`${this.isTerm}`);case"between":{const r=h_(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=h_(this.upperBoundTerm,Number.POSITIVE_INFINITY);return jN(n,r,i)}case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=`${this.isTerm}`;break;case"between":n.upper=`${this.upperBoundTerm}`,n.lower=`${this.lowerBoundTerm}`;break}return n}queryParametersToState(n){switch(n.mode){case"is":{const r=parseInt(n.term);isNaN(r)||(this.mode="is",this.isTerm=r)}break;case"between":{const r=parseInt(n.lower),i=parseInt(n.upper);!isNaN(r)&&!isNaN(i)&&(this.mode="between",this.lowerBoundTerm=r,this.upperBoundTerm=i)}break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function KN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>(t===void 0||a>=t)&&(n===void 0||a<=n))!==void 0}class qN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,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&&this.isTerm===this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&this.lowerBoundTerm===this.defaultLowerBound&&this.upperBoundTerm===this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}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}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"between":n.upper=this.upperBoundTerm??"",n.lower=this.lowerBoundTerm??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"between":this.mode="between",this.lowerBoundTerm=n.lower,this.upperBoundTerm=n.upper;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}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 td(n,this.termToISO(this.isTerm)??"");case"between":return KN(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Ss(n);case"notSet":return lc(n)}}}function XN({filterStore:e=_t(),fieldStore:t=Za(),propertyStore:n=It()}={}){JN(e),QN(e),ZN(t,e),iw(e,n)}function JN(e){e.clear()}function QN(e){e.add(new BN("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function ZN(e,t){let n=0;e.all.forEach(r=>{if(r.filterDisplay==="hide")return;const i=r.filterDisplay??"advanced";switch(n+=100,r.type){case"text":ew(n,r,i,t);break;case"enum":tw(n,r,i,t);break;case"integer":nw(n,r,i,t);break;case"date":rw(n,r,i,t);break}})}function ew(e,t,n,r){r.add(new HN("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function tw(e,t,n,r){r.add(new WN("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function nw(e,t,n,r){r.add(new zN("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function rw(e,t,n,r){r.add(new qN("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function iw(e,t){var n;((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}async function aw(){const e=ti(),t=Bt(),n=It();await e.loadData(),XN(),t.reset(),n.setStoresReady(!0)}const ow={key:2},sw=o.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=ti();return[t,n]=o.withAsyncContext(()=>aw()),await t,n(),(i,a)=>{const s=o.resolveComponent("cape-load-error"),l=o.resolveComponent("cape-navigation");return o.openBlock(),o.createElementBlock("div",null,[o.unref(r).status==="ERROR"?(o.openBlock(),o.createBlock(s,{key:0})):o.createCommentVNode("",!0),o.unref(r).status==="OK"?(o.openBlock(),o.createBlock(l,{key:1})):(o.openBlock(),o.createElementBlock("div",ow,"Unknown status ["+o.toDisplayString(o.unref(r).status)+"]",1))])}}}),lw={class:"cape-record-count"},cw=o.defineComponent({__name:"CapeRecordCount",setup(e){const t=Sr();return(n,r)=>(o.openBlock(),o.createElementBlock("span",lw,o.toDisplayString(o.unref(t).count),1))}}),uw={__name:"CapeAdvancedSearchToggle",setup(e){const t=_t();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAdvanced]])}},fw={class:"cape-filters"},dw=o.defineComponent({__name:"CapeFilters",setup(e){const t=_t();return(n,r)=>(o.openBlock(),o.createElementBlock("div",fw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).forDisplay,i=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),hw={__name:"CapeFormResetButton",setup(e){const t=_t(),n=Bt();function r(){t.reset(),n.reset()}return(i,a)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[o.renderSlot(i.$slots,"default",{},()=>[a[0]||(a[0]=o.createTextVNode(" New search "))])]))}},pw={class:"cape-home-page"},mw=o.defineComponent({__name:"CapeHomePage",setup(e){const t=fN(),n=_t();return o.watch(()=>n.parameters,(r,i)=>{JSON.stringify(r)!==JSON.stringify(i)&&t.push({path:"/",query:r})}),(r,i)=>{const a=o.resolveComponent("cape-homepage-layout");return o.openBlock(),o.createElementBlock("form",pw,[o.createVNode(a)])}}}),vw={class:"cape-load-error cape-error"},_w={class:"cape-load-error-message"},gw=o.defineComponent({__name:"CapeLoadError",setup(e){const t=ti();return(n,r)=>(o.openBlock(),o.createElementBlock("div",vw,[r[2]||(r[2]=o.createElementVNode("h2",null,"Unable to load data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" An error has occurred. The error was: ")),o.createElementVNode("span",_w,o.toDisplayString(o.unref(t).errorMessage),1),r[1]||(r[1]=o.createTextVNode(". "))])]))}}),Bi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},yw={},Sw={class:"cape-loading"};function Ew(e,t){return o.openBlock(),o.createElementBlock("div",Sw,t[0]||(t[0]=[o.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[o.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),o.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)]))}const Tw=Bi(yw,[["render",Ew]]),Nw=function(){var n;const e=It(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},ww={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},bw={class:"cape-non-prod-warning-environment"},Dw={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},kw=o.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Nw(),n=o.ref(!1),r=o.computed(()=>t!="PROD"&&!n.value),i=o.computed(()=>t==="UNKNOWN"),a=function(){n.value=!0};return(s,l)=>r.value?(o.openBlock(),o.createElementBlock("div",ww,[l[0]||(l[0]=o.createElementVNode("strong",null,"WARNING",-1)),l[1]||(l[1]=o.createTextVNode(': This is a "')),o.createElementVNode("span",bw,o.toDisplayString(o.unref(t)),1),l[2]||(l[2]=o.createTextVNode('" instance of this service. ')),i.value?(o.openBlock(),o.createElementBlock("div",Dw," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):o.createCommentVNode("",!0),o.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:a,onKeyup:o.withKeys(a,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):o.createCommentVNode("",!0)}}),Cw={key:0,class:"cape-record-page-record-not-found"},Iw={class:"cape-record-page-record-id"},Rw=o.defineComponent({__name:"CapeRecordPage",setup(e){const t=Hv(),n=Sr(),r=Bt(),i=o.computed(()=>t.params.id),a=o.computed(()=>{try{return n.byId(i.value)}catch{return}}),s=o.computed(()=>{if(a.value!==void 0)return r.previous(a.value)}),l=o.computed(()=>{if(a.value!==void 0)return r.next(a.value)}),c=o.computed(()=>{if(a.value!==void 0)return n.previous(a.value)}),u=o.computed(()=>{if(a.value!==void 0)return n.next(a.value)});return(f,d)=>{const p=o.resolveComponent("cape-record-card");return a.value===void 0?(o.openBlock(),o.createElementBlock("div",Cw,[d[0]||(d[0]=o.createTextVNode(" The record with Record ID ")),o.createElementVNode("span",Iw,o.toDisplayString(i.value),1),d[1]||(d[1]=o.createTextVNode(" does not exist. "))])):(o.openBlock(),o.createBlock(p,{key:1,class:"cape-record-card",record:a.value,previousInResults:s.value,nextInResults:l.value,previousInDataset:c.value,nextInDataset:u.value},null,8,["record","previousInResults","nextInResults","previousInDataset","nextInDataset"]))}}}),Ow={class:"cape-results"},Pw={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},Aw=o.defineComponent({__name:"CapeResults",setup(e){const t=Bt();return(n,r)=>{const i=o.resolveComponent("cape-results-controls"),a=o.resolveComponent("cape-summary-card");return o.openBlock(),o.createElementBlock("div",Ow,[o.unref(t).totalCount===0?(o.openBlock(),o.createElementBlock("div",Pw," No matches ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(i,{class:"cape-results-controls-top","id-distinguisher":"top"}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).visible,(s,l)=>(o.openBlock(),o.createBlock(a,{key:l,record:s},null,8,["record"]))),128)),o.createVNode(i,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))])}}}),Mw={key:0,class:"cape-error cape-value-error"},xw={key:1,class:"cape-value"},Vw={key:0,class:"cape-value-null"},Lw={key:0,class:"cape-value-multiple"},Fw=o.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.value}),r=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.field}),i=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(a,s)=>{const l=o.resolveComponent("cape-single-value");return!a.fieldValue||!r.value?(o.openBlock(),o.createElementBlock("div",Mw," [Error: field value pair does not exist!] ")):!a.hideIfEmpty||!i.value?(o.openBlock(),o.createElementBlock("div",xw,[i.value?(o.openBlock(),o.createElementBlock("div",Vw,"undefined")):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(o.openBlock(),o.createElementBlock("ol",Lw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(c,u)=>(o.openBlock(),o.createElementBlock("li",{key:u},[o.createVNode(l,{"field-value-pair":{field:r.value,value:c},link:a.link},null,8,["field-value-pair","link"])]))),128))])):(o.openBlock(),o.createBlock(l,{key:1,"field-value-pair":a.fieldValue,link:a.link},null,8,["field-value-pair","link"]))],2))])):o.createCommentVNode("",!0)}}}),Yw=o.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>{const s=o.resolveComponent("cape-value"),l=o.resolveComponent("cape-labelled-content");return!i.hideIfEmpty||!r.value?(o.openBlock(),o.createBlock(l,{key:0,"field-value":i.fieldValue},{default:o.withCtx(()=>[o.createVNode(s,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])]),_:1},8,["field-value"])):o.createCommentVNode("",!0)}}});//! moment.js
|
|
43
43
|
//! version : 2.30.1
|
|
44
44
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
45
45
|
//! license : MIT
|
|
46
46
|
//! momentjs.com
|
|
47
|
-
var p_;function ae(){return p_.apply(null,arguments)}function $w(e){p_=e}function In(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ui(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function Jt(e){return e===void 0}function
|
|
47
|
+
var p_;function ae(){return p_.apply(null,arguments)}function $w(e){p_=e}function In(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ui(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function Jt(e){return e===void 0}function Er(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Es(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function m_(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function ri(e,t){for(var n in t)Ge(t,n)&&(e[n]=t[n]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Wn(e,t,n,r){return U_(e,t,n,r,!0).utc()}function Bw(){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 Ce(e){return e._pf==null&&(e._pf=Bw()),e._pf}var rd;Array.prototype.some?rd=Array.prototype.some:rd=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 id(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Ce(e),n=rd.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 cc(e){var t=Wn(NaN);return e!=null?ri(Ce(t),e):Ce(t).userInvalidated=!0,t}var v_=ae.momentProperties=[],ad=!1;function od(e,t){var n,r,i,a=v_.length;if(Jt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Jt(t._i)||(e._i=t._i),Jt(t._f)||(e._f=t._f),Jt(t._l)||(e._l=t._l),Jt(t._strict)||(e._strict=t._strict),Jt(t._tzm)||(e._tzm=t._tzm),Jt(t._isUTC)||(e._isUTC=t._isUTC),Jt(t._offset)||(e._offset=t._offset),Jt(t._pf)||(e._pf=Ce(t)),Jt(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=v_[n],i=t[r],Jt(i)||(e[r]=i);return e}function Ts(e){od(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ad===!1&&(ad=!0,ae.updateOffset(this),ad=!1)}function Rn(e){return e instanceof Ts||e!=null&&e._isAMomentObject!=null}function __(e){ae.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function mn(e,t){var n=!0;return ri(function(){if(ae.deprecationHandler!=null&&ae.deprecationHandler(null,e),n){var r=[],i,a,s,l=arguments.length;for(a=0;a<l;a++){if(i="",typeof arguments[a]=="object"){i+=`
|
|
48
48
|
[`+a+"] ";for(s in arguments[0])Ge(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}__(e+`
|
|
49
49
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
50
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var g_={};function y_(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),g_[e]||(__(t),g_[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function zn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Uw(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],zn(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 sd(e,t){var n=ii({},e),r;for(r in t)Ge(t,r)&&(Ui(e[r])&&Ui(t[r])?(n[r]={},ii(n[r],e[r]),ii(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Ui(e[r])&&(n[r]=ii({},n[r]));return n}function ld(e){e!=null&&this.set(e)}var cd;Object.keys?cd=Object.keys:cd=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var Hw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return zn(r)?r.call(t,n):r}function Kn(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ud=/(\[[^\[]*\])|(\\)?([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,uc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},to={};function ge(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(to[e]=i),t&&(to[t[0]]=function(){return Kn(i.apply(this,arguments),t[1],t[2])}),n&&(to[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Ww(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function jw(e){var t=e.match(ud),n,r;for(n=0,r=t.length;n<r;n++)to[t[n]]?t[n]=to[t[n]]:t[n]=Ww(t[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=zn(t[s])?t[s].call(i,e):t[s];return a}}function fc(e,t){return e.isValid()?(t=S_(t,e.localeData()),fd[t]=fd[t]||jw(t),fd[t](e)):e.localeData().invalidDate()}function S_(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(uc.lastIndex=0;n>=0&&uc.test(e);)e=e.replace(uc,r),uc.lastIndex=0,n-=1;return e}var zw={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 Kw(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ud).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qw="Invalid date";function Xw(){return this._invalidDate}var Jw="%d",Qw=/\d{1,2}/;function Zw(e){return this._ordinal.replace("%d",e)}var eb={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 tb(e,t,n,r){var i=this._relativeTime[n];return zn(i)?i(e,t,n,r):i.replace(/%d/i,e)}function nb(e,t){var n=this._relativeTime[e>0?"future":"past"];return zn(n)?n(t):n.replace(/%s/i,t)}var E_={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 vn(e){return typeof e=="string"?E_[e]||E_[e.toLowerCase()]:void 0}function dd(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=vn(r),n&&(t[n]=e[r]));return t}var rb={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 ib(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:rb[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var T_=/\d/,an=/\d\d/,N_=/\d{3}/,hd=/\d{4}/,dc=/[+-]?\d{6}/,it=/\d\d?/,w_=/\d\d\d\d?/,b_=/\d\d\d\d\d\d?/,hc=/\d{1,3}/,pd=/\d{1,4}/,pc=/[+-]?\d{1,6}/,no=/\d+/,mc=/[+-]?\d+/,ab=/Z|[+-]\d\d:?\d\d/gi,vc=/Z|[+-]\d\d(?::?\d\d)?/gi,ob=/[+-]?\d+(\.\d{1,3})?/,Ns=/[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,ro=/^[1-9]\d?/,md=/^([1-9]\d|\d)/,_c;_c={};function le(e,t,n){_c[e]=zn(t)?t:function(r,i){return r&&n?n:t}}function sb(e,t){return Ge(_c,e)?_c[e](t._strict,t._locale):new RegExp(lb(e))}function lb(e){return Nr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Nr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=_n(t)),n}var vd={};function qe(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Tr(t)&&(r=function(a,s){s[t]=Ve(a)}),i=e.length,n=0;n<i;n++)vd[e[n]]=r}function ws(e,t){qe(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function cb(e,t,n){t!=null&&Ge(vd,e)&&vd[e](t,n._a,n,e)}function gc(e){return e%4===0&&e%100!==0||e%400===0}var Lt=0,wr=1,qn=2,Tt=3,On=4,br=5,Hi=6,ub=7,fb=8;ge("Y",0,0,function(){var e=this.year();return e<=9999?Kn(e,4):"+"+e}),ge(0,["YY",2],0,function(){return this.year()%100}),ge(0,["YYYY",4],0,"year"),ge(0,["YYYYY",5],0,"year"),ge(0,["YYYYYY",6,!0],0,"year"),le("Y",mc),le("YY",it,an),le("YYYY",pd,hd),le("YYYYY",pc,dc),le("YYYYYY",pc,dc),qe(["YYYYY","YYYYYY"],Lt),qe("YYYY",function(e,t){t[Lt]=e.length===2?ae.parseTwoDigitYear(e):Ve(e)}),qe("YY",function(e,t){t[Lt]=ae.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[Lt]=parseInt(e,10)});function bs(e){return gc(e)?366:365}ae.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var D_=io("FullYear",!0);function db(){return gc(this.year())}function io(e,t){return function(n){return n!=null?(k_(this,e,n),ae.updateOffset(this,t),this):Ds(this,e)}}function Ds(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 k_(e,t,n){var r,i,a,s,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}a=n,s=e.month(),l=e.date(),l=l===29&&s===1&&!gc(a)?28:l,i?r.setUTCFullYear(a,s,l):r.setFullYear(a,s,l)}}function hb(e){return e=vn(e),zn(this[e])?this[e]():this}function pb(e,t){if(typeof e=="object"){e=dd(e);var n=ib(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=vn(e),zn(this[e]))return this[e](t);return this}function mb(e,t){return(e%t+t)%t}var pt;Array.prototype.indexOf?pt=Array.prototype.indexOf:pt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function _d(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=mb(t,12);return e+=(t-n)/12,n===1?gc(e)?29:28:31-n%7%2}ge("M",["MM",2],"Mo",function(){return this.month()+1}),ge("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ge("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",it,ro),le("MM",it,an),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[wr]=Ve(e)-1}),qe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[wr]=i:Ce(n).invalidMonth=e});var vb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),C_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),I_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_b=Ns,gb=Ns;function yb(e,t){return e?In(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||I_).test(t)?"format":"standalone"][e.month()]:In(this._months)?this._months:this._months.standalone}function Sb(e,t){return e?In(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[I_.test(t)?"format":"standalone"][e.month()]:In(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=jn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null):(i=pt.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:(i=pt.call(this._longMonthsParse,s),i!==-1?i:null)):(i=pt.call(this._longMonthsParse,s),i!==-1?i:(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null))}function Tb(e,t,n){var r,i,a;if(this._monthsParseExact)return Eb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=jn([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]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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 R_(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!Tr(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,_d(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function O_(e){return e!=null?(R_(this,e),ae.updateOffset(this,!0),this):Ds(this,"Month")}function Nb(){return _d(this.year(),this.month())}function wb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=_b),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=gb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function P_(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,a,s,l;for(i=0;i<12;i++)a=jn([2e3,i]),s=Nr(this.monthsShort(a,"")),l=Nr(this.months(a,"")),t.push(s),n.push(l),r.push(l),r.push(s);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 Db(e,t,n,r,i,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,a,s),l}function ks(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 yc(e,t,n){var r=7+t-n,i=(7+ks(e,0,r).getUTCDay()-t)%7;return-i+r-1}function A_(e,t,n,r,i){var a=(7+n-r)%7,s=yc(e,r,i),l=1+7*(t-1)+a+s,c,u;return l<=0?(c=e-1,u=bs(c)+l):l>bs(e)?(c=e+1,u=l-bs(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Cs(e,t,n){var r=yc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Dr(s,t,n)):i>Dr(e.year(),t,n)?(a=i-Dr(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Dr(e,t,n){var r=yc(e,t,n),i=yc(e+1,t,n);return(bs(e)-r+i)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),le("w",it,ro),le("ww",it,an),le("W",it,ro),le("WW",it,an),ws(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ve(e)});function kb(e){return Cs(e,this._week.dow,this._week.doy).week}var Cb={dow:0,doy:6};function Ib(){return this._week.dow}function Rb(){return this._week.doy}function Ob(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pb(e){var t=Cs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ge("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ge("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),le("d",it),le("e",it),le("E",it),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ws(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ce(n).invalidWeekday=e}),ws(["d","e","E"],function(e,t,n,r){t[r]=Ve(e)});function Ab(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Mb(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var xb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),M_="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lb=Ns,Fb=Ns,Yb=Ns;function $b(e,t){var n=In(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gd(n,this._week.dow):e?n[e.day()]:n}function Bb(e){return e===!0?gd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ub(e){return e===!0?gd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=jn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1||(i=pt.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=pt.call(this._minWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Gb(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Hb.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=jn([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]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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 Wb(e){if(!this.isValid())return e!=null?this:NaN;var t=Ds(this,"Day");return e!=null?(e=Ab(e,this.localeData()),this.add(e-t,"d")):t}function jb(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 zb(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mb(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Kb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Lb),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fb),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yb),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yd(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],i=[],a,s,l,c,u;for(a=0;a<7;a++)s=jn([2e3,1]).day(a),l=Nr(this.weekdaysMin(s,"")),c=Nr(this.weekdaysShort(s,"")),u=Nr(this.weekdays(s,"")),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 Sd(){return this.hours()%12||12}function Jb(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Sd),ge("k",["kk",2],0,Jb),ge("hmm",0,0,function(){return""+Sd.apply(this)+Kn(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Sd.apply(this)+Kn(this.minutes(),2)+Kn(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)+Kn(this.seconds(),2)});function x_(e,t){ge(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x_("a",!0),x_("A",!1);function V_(e,t){return t._meridiemParse}le("a",V_),le("A",V_),le("H",it,md),le("h",it,ro),le("k",it,ro),le("HH",it,an),le("hh",it,an),le("kk",it,an),le("hmm",w_),le("hmmss",b_),le("Hmm",w_),le("Hmmss",b_),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,n){var r=Ve(e);t[Tt]=r===24?0:r}),qe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),qe(["h","hh"],function(e,t,n){t[Tt]=Ve(e),Ce(n).bigHour=!0}),qe("hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r)),Ce(n).bigHour=!0}),qe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[br]=Ve(e.substr(i)),Ce(n).bigHour=!0}),qe("Hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r))}),qe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[br]=Ve(e.substr(i))});function Qb(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zb=/[ap]\.?m?\.?/i,eD=io("Hours",!0);function tD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var L_={calendar:Hw,longDateFormat:zw,invalidDate:qw,ordinal:Jw,dayOfMonthOrdinalParse:Qw,relativeTime:eb,months:vb,monthsShort:C_,week:Cb,weekdays:xb,weekdaysMin:Vb,weekdaysShort:M_,meridiemParse:Zb},st={},Is={},Rs;function nD(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 F_(e){return e&&e.toLowerCase().replace("_","-")}function rD(e){for(var t=0,n,r,i,a;t<e.length;){for(a=F_(e[t]).split("-"),n=a.length,r=F_(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=Sc(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&nD(a,r)>=n-1)break;n--}t++}return Rs}function iD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&iD(e))try{t=Rs._abbr,n=require,n("./locale/"+e),ai(t)}catch{st[e]=null}return st[e]}function ai(e,t){var n;return e&&(Jt(t)?n=kr(e):n=Ed(e,t),n?Rs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rs._abbr}function Ed(e,t){if(t!==null){var n,r=L_;if(t.abbr=e,st[e]!=null)y_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)r=st[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)r=n._config;else return Is[t.parentLocale]||(Is[t.parentLocale]=[]),Is[t.parentLocale].push({name:e,config:t}),null;return st[e]=new ld(sd(r,t)),Is[e]&&Is[e].forEach(function(i){Ed(i.name,i.config)}),ai(e),st[e]}else return delete st[e],null}function aD(e,t){if(t!=null){var n,r,i=L_;st[e]!=null&&st[e].parentLocale!=null?st[e].set(sd(st[e]._config,t)):(r=Sc(e),r!=null&&(i=r._config),t=sd(i,t),r==null&&(t.abbr=e),n=new ld(t),n.parentLocale=st[e],st[e]=n),ai(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ai()&&ai(e)):st[e]!=null&&delete st[e]);return st[e]}function kr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rs;if(!In(e)){if(t=Sc(e),t)return t;e=[e]}return rD(e)}function oD(){return cd(st)}function Td(e){var t,n=e._a;return n&&Ce(e).overflow===-2&&(t=n[wr]<0||n[wr]>11?wr:n[qn]<1||n[qn]>_d(n[Lt],n[wr])?qn:n[Tt]<0||n[Tt]>24||n[Tt]===24&&(n[On]!==0||n[br]!==0||n[Hi]!==0)?Tt:n[On]<0||n[On]>59?On:n[br]<0||n[br]>59?br:n[Hi]<0||n[Hi]>999?Hi:-1,Ce(e)._overflowDayOfYear&&(t<Lt||t>qn)&&(t=qn),Ce(e)._overflowWeeks&&t===-1&&(t=ub),Ce(e)._overflowWeekday&&t===-1&&(t=fb),Ce(e).overflow=t),e}var sD=/^\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)?)?$/,lD=/^\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)?/,Ec=[["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]],Nd=[["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/]],uD=/^\/?Date\((-?\d+)/i,fD=/^(?:(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}))$/,dD={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 Y_(e){var t,n,r=e._i,i=sD.exec(r)||lD.exec(r),a,s,l,c,u=Ec.length,f=Nd.length;if(i){for(Ce(e).iso=!0,t=0,n=u;t<n;t++)if(Ec[t][1].exec(i[1])){s=Ec[t][0],a=Ec[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(Nd[t][1].exec(i[3])){l=(i[2]||" ")+Nd[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(i[4])if(cD.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),bd(e)}else e._isValid=!1}function hD(e,t,n,r,i,a){var s=[pD(e),C_.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function pD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vD(e,t,n){if(e){var r=M_.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ce(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _D(e,t,n){if(e)return dD[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function $_(e){var t=fD.exec(mD(e._i)),n;if(t){if(n=hD(t[4],t[3],t[2],t[5],t[6],t[7]),!vD(t[1],n,e))return;e._a=n,e._tzm=_D(t[8],t[9],t[10]),e._d=ks.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ce(e).rfc2822=!0}else e._isValid=!1}function gD(e){var t=uD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Y_(e),e._isValid===!1)delete e._isValid;else return;if($_(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ae.createFromInputFallback(e)}ae.createFromInputFallback=mn("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 ao(e,t,n){return e??t??n}function yD(e){var t=new Date(ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wd(e){var t,n,r=[],i,a,s;if(!e._d){for(i=yD(e),e._w&&e._a[qn]==null&&e._a[wr]==null&&SD(e),e._dayOfYear!=null&&(s=ao(e._a[Lt],i[Lt]),(e._dayOfYear>bs(s)||e._dayOfYear===0)&&(Ce(e)._overflowDayOfYear=!0),n=ks(s,0,e._dayOfYear),e._a[wr]=n.getUTCMonth(),e._a[qn]=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[Tt]===24&&e._a[On]===0&&e._a[br]===0&&e._a[Hi]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?ks:Db).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ce(e).weekdayMismatch=!0)}}function SD(e){var t,n,r,i,a,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=ao(t.GG,e._a[Lt],Cs(at(),1,4).year),r=ao(t.W,1),i=ao(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Cs(at(),a,s),n=ao(t.gg,e._a[Lt],u.year),r=ao(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a),r<1||r>Dr(n,a,s)?Ce(e)._overflowWeeks=!0:c!=null?Ce(e)._overflowWeekday=!0:(l=A_(n,r,i,a,s),e._a[Lt]=l.year,e._dayOfYear=l.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function bd(e){if(e._f===ae.ISO_8601){Y_(e);return}if(e._f===ae.RFC_2822){$_(e);return}e._a=[],Ce(e).empty=!0;var t=""+e._i,n,r,i,a,s,l=t.length,c=0,u,f;for(i=S_(e._f,e._locale).match(ud)||[],f=i.length,n=0;n<f;n++)a=i[n],r=(t.match(sb(a,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Ce(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),to[a]?(r?Ce(e).empty=!1:Ce(e).unusedTokens.push(a),cb(a,r,e)):e._strict&&!r&&Ce(e).unusedTokens.push(a);Ce(e).charsLeftOver=l-c,t.length>0&&Ce(e).unusedInput.push(t),e._a[Tt]<=12&&Ce(e).bigHour===!0&&e._a[Tt]>0&&(Ce(e).bigHour=void 0),Ce(e).parsedDateParts=e._a.slice(0),Ce(e).meridiem=e._meridiem,e._a[Tt]=ED(e._locale,e._a[Tt],e._meridiem),u=Ce(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),wd(e),Td(e)}function ED(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 TD(e){var t,n,r,i,a,s,l=!1,c=e._f.length;if(c===0){Ce(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,s=!1,t=od({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],bd(t),id(t)&&(s=!0),a+=Ce(t).charsLeftOver,a+=Ce(t).unusedTokens.length*10,Ce(t).score=a,l?a<r&&(r=a,n=t):(r==null||a<r||s)&&(r=a,n=t,s&&(l=!0));ii(e,n||t)}function ND(e){if(!e._d){var t=dd(e._i),n=t.day===void 0?t.date:t.day;e._a=m_([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wd(e)}}function wD(e){var t=new Ts(Td(B_(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function B_(e){var t=e._i,n=e._f;return e._locale=e._locale||kr(e._l),t===null||n===void 0&&t===""?cc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Rn(t)?new Ts(Td(t)):(Es(t)?e._d=t:In(n)?TD(e):n?bd(e):bD(e),id(e)||(e._d=null),e))}function bD(e){var t=e._i;Jt(t)?e._d=new Date(ae.now()):Es(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gD(e):In(t)?(e._a=m_(t.slice(0),function(n){return parseInt(n,10)}),wd(e)):Ui(t)?ND(e):Tr(t)?e._d=new Date(t):ae.createFromInputFallback(e)}function U_(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ui(e)&&nd(e)||In(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,wD(a)}function at(e,t,n,r){return U_(e,t,n,r,!1)}var DD=mn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cc()}),kD=mn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cc()});function H_(e,t){var n,r;if(t.length===1&&In(t[0])&&(t=t[0]),!t.length)return at();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function CD(){var e=[].slice.call(arguments,0);return H_("isBefore",e)}function ID(){var e=[].slice.call(arguments,0);return H_("isAfter",e)}var RD=function(){return Date.now?Date.now():+new Date},Os=["year","quarter","month","week","day","hour","minute","second","millisecond"];function OD(e){var t,n=!1,r,i=Os.length;for(t in e)if(Ge(e,t)&&!(pt.call(Os,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Os[r]]){if(n)return!1;parseFloat(e[Os[r]])!==Ve(e[Os[r]])&&(n=!0)}return!0}function PD(){return this._isValid}function AD(){return Pn(NaN)}function Tc(e){var t=dd(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=OD(t),this._milliseconds=+f+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=kr(),this._bubble()}function Nc(e){return e instanceof Tc}function Dd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MD(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,s;for(s=0;s<r;s++)Ve(e[s])!==Ve(t[s])&&a++;return a+i}function G_(e,t){ge(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Kn(~~(n/60),2)+t+Kn(~~n%60,2)})}G_("Z",":"),G_("ZZ",""),le("Z",vc),le("ZZ",vc),qe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kd(vc,e)});var xD=/([\+\-]|\d\d)/gi;function kd(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(xD)||["-",0,0],a=+(i[1]*60)+Ve(i[2]),a===0?0:i[0]==="+"?a:-a)}function Cd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Rn(e)||Es(e)?e.valueOf():at(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ae.updateOffset(n,!1),n):at(e).local()}function Id(e){return-Math.round(e._d.getTimezoneOffset())}ae.updateOffset=function(){};function VD(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=kd(vc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Id(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?K_(this,Pn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Id(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FD(e){return this.utcOffset(0,e)}function YD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Id(this),"m")),this}function $D(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(ab,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function BD(e){return this.isValid()?(e=e?at(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function UD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HD(){if(!Jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return od(e,this),e=B_(e),e._a?(t=e._isUTC?jn(e._a):at(e._a),this._isDSTShifted=this.isValid()&&MD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GD(){return this.isValid()?!this._isUTC:!1}function WD(){return this.isValid()?this._isUTC:!1}function W_(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(e,t){var n=e,r=null,i,a,s;return Nc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Tr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=jD.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Ve(r[qn])*i,h:Ve(r[Tt])*i,m:Ve(r[On])*i,s:Ve(r[br])*i,ms:Ve(Dd(r[Hi]*1e3))*i}):(r=zD.exec(e))?(i=r[1]==="-"?-1:1,n={y:Gi(r[2],i),M:Gi(r[3],i),w:Gi(r[4],i),d:Gi(r[5],i),h:Gi(r[6],i),m:Gi(r[7],i),s:Gi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=KD(at(n.from),at(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new Tc(n),Nc(e)&&Ge(e,"_locale")&&(a._locale=e._locale),Nc(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}Pn.fn=Tc.prototype,Pn.invalid=AD;function Gi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function j_(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 KD(e,t){var n;return e.isValid()&&t.isValid()?(t=Cd(t,e),e.isBefore(t)?n=j_(e,t):(n=j_(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function z_(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(y_(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."),a=n,n=r,r=a),i=Pn(n,r),K_(this,i,e),this}}function K_(e,t,n,r){var i=t._milliseconds,a=Dd(t._days),s=Dd(t._months);e.isValid()&&(r=r??!0,s&&R_(e,Ds(e,"Month")+s*n),a&&k_(e,"Date",Ds(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ae.updateOffset(e,a||s))}var qD=z_(1,"add"),XD=z_(-1,"subtract");function q_(e){return typeof e=="string"||e instanceof String}function JD(e){return Rn(e)||Es(e)||q_(e)||Tr(e)||ZD(e)||QD(e)||e===null||e===void 0}function QD(e){var t=Ui(e)&&!nd(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,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function ZD(e){var t=In(e),n=!1;return t&&(n=e.filter(function(r){return!Tr(r)&&q_(e)}).length===0),t&&n}function ek(e){var t=Ui(e)&&!nd(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function tk(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 nk(e,t){arguments.length===1&&(arguments[0]?JD(arguments[0])?(e=arguments[0],t=void 0):ek(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||at(),r=Cd(n,this).startOf("day"),i=ae.calendarFormat(this,r)||"sameElse",a=t&&(zn(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,at(n)))}function rk(){return new Ts(this)}function ik(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ak(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ok(e,t,n,r){var i=Rn(e)?e:at(e),a=Rn(t)?t:at(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function sk(e,t){var n=Rn(e)?e:at(e),r;return this.isValid()&&n.isValid()?(t=vn(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 lk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ck(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uk(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=Cd(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=vn(t),t){case"year":a=wc(this,r)/12;break;case"month":a=wc(this,r);break;case"quarter":a=wc(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:_n(a)}function wc(e,t){if(e.date()<t.date())return-wc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dk(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):zn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fc(n,"Z")):fc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;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",a=t+'[")]',this.format(n+r+i+a)}function pk(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=fc(this,e);return this.localeData().postformat(t)}function mk(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vk(e){return this.from(at(),e)}function _k(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gk(e){return this.to(at(),e)}function X_(e){var t;return e===void 0?this._locale._abbr:(t=kr(e),t!=null&&(this._locale=t),this)}var J_=mn("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 Q_(){return this._locale}var bc=1e3,oo=60*bc,Dc=60*oo,Z_=(365*400+97)*24*Dc;function so(e,t){return(e%t+t)%t}function eg(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Z_:new Date(e,t,n).valueOf()}function tg(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Z_:Date.UTC(e,t,n)}function yk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,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-=so(t+(this._isUTC?0:this.utcOffset()*oo),Dc);break;case"minute":t=this._d.valueOf(),t-=so(t,oo);break;case"second":t=this._d.valueOf(),t-=so(t,bc);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Sk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,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+=Dc-so(t+(this._isUTC?0:this.utcOffset()*oo),Dc)-1;break;case"minute":t=this._d.valueOf(),t+=oo-so(t,oo)-1;break;case"second":t=this._d.valueOf(),t+=bc-so(t,bc)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Ek(){return this._d.valueOf()-(this._offset||0)*6e4}function Tk(){return Math.floor(this.valueOf()/1e3)}function Nk(){return new Date(this.valueOf())}function wk(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bk(){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 Dk(){return this.isValid()?this.toISOString():null}function kk(){return id(this)}function Ck(){return ii({},Ce(this))}function Ik(){return Ce(this).overflow}function Rk(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),le("N",Rd),le("NN",Rd),le("NNN",Rd),le("NNNN",Bk),le("NNNNN",Uk),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ce(n).era=i:Ce(n).invalidEra=e}),le("y",no),le("yy",no),le("yyy",no),le("yyyy",no),le("yo",Hk),qe(["y","yy","yyy","yyyy"],Lt),qe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lt]=n._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function Ok(e,t){var n,r,i,a=this._eras||kr("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ae(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ae(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function Pk(e,t,n){var r,i,a=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(s===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([s,l,c].indexOf(e)>=0)return a[r]}function Ak(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*n}function Mk(){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 xk(){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 Vk(){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 Lk(){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()-ae(i[e].since).year())*n+i[e].offset;return this.year()}function Fk(e){return Ge(this,"_erasNameRegex")||Od.call(this),e?this._erasNameRegex:this._erasRegex}function Yk(e){return Ge(this,"_erasAbbrRegex")||Od.call(this),e?this._erasAbbrRegex:this._erasRegex}function $k(e){return Ge(this,"_erasNarrowRegex")||Od.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rd(e,t){return t.erasAbbrRegex(e)}function Bk(e,t){return t.erasNameRegex(e)}function Uk(e,t){return t.erasNarrowRegex(e)}function Hk(e,t){return t._eraYearOrdinalRegex||no}function Od(){var e=[],t=[],n=[],r=[],i,a,s,l,c,u=this.eras();for(i=0,a=u.length;i<a;++i)s=Nr(u[i].name),l=Nr(u[i].abbr),c=Nr(u[i].narrow),t.push(s),e.push(l),n.push(c),r.push(s),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")}ge(0,["gg",2],0,function(){return this.weekYear()%100}),ge(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kc(e,t){ge(0,[e,e.length],0,t)}kc("gggg","weekYear"),kc("ggggg","weekYear"),kc("GGGG","isoWeekYear"),kc("GGGGG","isoWeekYear"),le("G",mc),le("g",mc),le("GG",it,an),le("gg",it,an),le("GGGG",pd,hd),le("gggg",pd,hd),le("GGGGG",pc,dc),le("ggggg",pc,dc),ws(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ve(e)}),ws(["gg","GG"],function(e,t,n,r){t[r]=ae.parseTwoDigitYear(e)});function Gk(e){return ng.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wk(e){return ng.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function jk(){return Dr(this.year(),1,4)}function zk(){return Dr(this.isoWeekYear(),1,4)}function Kk(){var e=this.localeData()._week;return Dr(this.year(),e.dow,e.doy)}function qk(){var e=this.localeData()._week;return Dr(this.weekYear(),e.dow,e.doy)}function ng(e,t,n,r,i){var a;return e==null?Cs(this,r,i).year:(a=Dr(e,r,i),t>a&&(t=a),Xk.call(this,e,t,n,r,i))}function Xk(e,t,n,r,i){var a=A_(e,t,n,r,i),s=ks(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ge("Q",0,"Qo","quarter"),le("Q",T_),qe("Q",function(e,t){t[wr]=(Ve(e)-1)*3});function Jk(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),le("D",it,ro),le("DD",it,an),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],qn),qe("Do",function(e,t){t[qn]=Ve(e.match(it)[0])});var rg=io("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",hc),le("DDDD",N_),qe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ve(e)});function Qk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ge("m",["mm",2],0,"minute"),le("m",it,md),le("mm",it,an),qe(["m","mm"],On);var Zk=io("Minutes",!1);ge("s",["ss",2],0,"second"),le("s",it,md),le("ss",it,an),qe(["s","ss"],br);var eC=io("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),le("S",hc,T_),le("SS",hc,an),le("SSS",hc,N_);var oi,ig;for(oi="SSSS";oi.length<=9;oi+="S")le(oi,no);function tC(e,t){t[Hi]=Ve(("0."+e)*1e3)}for(oi="S";oi.length<=9;oi+="S")qe(oi,tC);ig=io("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function nC(){return this._isUTC?"UTC":""}function rC(){return this._isUTC?"Coordinated Universal Time":""}var J=Ts.prototype;J.add=qD,J.calendar=nk,J.clone=rk,J.diff=uk,J.endOf=Sk,J.format=pk,J.from=mk,J.fromNow=vk,J.to=_k,J.toNow=gk,J.get=hb,J.invalidAt=Ik,J.isAfter=ik,J.isBefore=ak,J.isBetween=ok,J.isSame=sk,J.isSameOrAfter=lk,J.isSameOrBefore=ck,J.isValid=kk,J.lang=J_,J.locale=X_,J.localeData=Q_,J.max=kD,J.min=DD,J.parsingFlags=Ck,J.set=pb,J.startOf=yk,J.subtract=XD,J.toArray=wk,J.toObject=bk,J.toDate=Nk,J.toISOString=dk,J.inspect=hk,typeof Symbol<"u"&&Symbol.for!=null&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=Dk,J.toString=fk,J.unix=Tk,J.valueOf=Ek,J.creationData=Rk,J.eraName=Mk,J.eraNarrow=xk,J.eraAbbr=Vk,J.eraYear=Lk,J.year=D_,J.isLeapYear=db,J.weekYear=Gk,J.isoWeekYear=Wk,J.quarter=J.quarters=Jk,J.month=O_,J.daysInMonth=Nb,J.week=J.weeks=Ob,J.isoWeek=J.isoWeeks=Pb,J.weeksInYear=Kk,J.weeksInWeekYear=qk,J.isoWeeksInYear=jk,J.isoWeeksInISOWeekYear=zk,J.date=rg,J.day=J.days=Wb,J.weekday=jb,J.isoWeekday=zb,J.dayOfYear=Qk,J.hour=J.hours=eD,J.minute=J.minutes=Zk,J.second=J.seconds=eC,J.millisecond=J.milliseconds=ig,J.utcOffset=VD,J.utc=FD,J.local=YD,J.parseZone=$D,J.hasAlignedHourOffset=BD,J.isDST=UD,J.isLocal=GD,J.isUtcOffset=WD,J.isUtc=W_,J.isUTC=W_,J.zoneAbbr=nC,J.zoneName=rC,J.dates=mn("dates accessor is deprecated. Use date instead.",rg),J.months=mn("months accessor is deprecated. Use month instead",O_),J.years=mn("years accessor is deprecated. Use year instead",D_),J.zone=mn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),J.isDSTShifted=mn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HD);function iC(e){return at(e*1e3)}function aC(){return at.apply(null,arguments).parseZone()}function ag(e){return e}var We=ld.prototype;We.calendar=Gw,We.longDateFormat=Kw,We.invalidDate=Xw,We.ordinal=Zw,We.preparse=ag,We.postformat=ag,We.relativeTime=tb,We.pastFuture=nb,We.set=Uw,We.eras=Ok,We.erasParse=Pk,We.erasConvertYear=Ak,We.erasAbbrRegex=Yk,We.erasNameRegex=Fk,We.erasNarrowRegex=$k,We.months=yb,We.monthsShort=Sb,We.monthsParse=Tb,We.monthsRegex=bb,We.monthsShortRegex=wb,We.week=kb,We.firstDayOfYear=Rb,We.firstDayOfWeek=Ib,We.weekdays=$b,We.weekdaysMin=Ub,We.weekdaysShort=Bb,We.weekdaysParse=Gb,We.weekdaysRegex=Kb,We.weekdaysShortRegex=qb,We.weekdaysMinRegex=Xb,We.isPM=Qb,We.meridiem=tD;function Cc(e,t,n,r){var i=kr(),a=jn().set(r,t);return i[n](a,e)}function og(e,t,n){if(Tr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cc(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Cc(e,r,n,"month");return i}function Pd(e,t,n,r){typeof e=="boolean"?(Tr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Tr(t)&&(n=t,t=void 0),t=t||"");var i=kr(),a=e?i._week.dow:0,s,l=[];if(n!=null)return Cc(t,(n+a)%7,r,"day");for(s=0;s<7;s++)l[s]=Cc(t,(s+a)%7,r,"day");return l}function oC(e,t){return og(e,t,"months")}function sC(e,t){return og(e,t,"monthsShort")}function lC(e,t,n){return Pd(e,t,n,"weekdays")}function cC(e,t,n){return Pd(e,t,n,"weekdaysShort")}function uC(e,t,n){return Pd(e,t,n,"weekdaysMin")}ai("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=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ae.lang=mn("moment.lang is deprecated. Use moment.locale instead.",ai),ae.langData=mn("moment.langData is deprecated. Use moment.localeData instead.",kr);var Cr=Math.abs;function fC(){var e=this._data;return this._milliseconds=Cr(this._milliseconds),this._days=Cr(this._days),this._months=Cr(this._months),e.milliseconds=Cr(e.milliseconds),e.seconds=Cr(e.seconds),e.minutes=Cr(e.minutes),e.hours=Cr(e.hours),e.months=Cr(e.months),e.years=Cr(e.years),this}function sg(e,t,n,r){var i=Pn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dC(e,t){return sg(this,e,t,1)}function hC(e,t){return sg(this,e,t,-1)}function lg(e){return e<0?Math.floor(e):Math.ceil(e)}function pC(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=lg(Ad(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=_n(e/1e3),r.seconds=i%60,a=_n(i/60),r.minutes=a%60,s=_n(a/60),r.hours=s%24,t+=_n(s/24),c=_n(cg(t)),n+=c,t-=lg(Ad(c)),l=_n(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function cg(e){return e*4800/146097}function Ad(e){return e*146097/4800}function mC(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=vn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cg(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ad(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 Ir(e){return function(){return this.as(e)}}var ug=Ir("ms"),vC=Ir("s"),_C=Ir("m"),gC=Ir("h"),yC=Ir("d"),SC=Ir("w"),EC=Ir("M"),TC=Ir("Q"),NC=Ir("y"),wC=ug;function bC(){return Pn(this)}function DC(e){return e=vn(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var kC=Wi("milliseconds"),CC=Wi("seconds"),IC=Wi("minutes"),RC=Wi("hours"),OC=Wi("days"),PC=Wi("months"),AC=Wi("years");function MC(){return _n(this.days()/7)}var Rr=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xC(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function VC(e,t,n,r){var i=Pn(e).abs(),a=Rr(i.as("s")),s=Rr(i.as("m")),l=Rr(i.as("h")),c=Rr(i.as("d")),u=Rr(i.as("M")),f=Rr(i.as("w")),d=Rr(i.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,xC.apply(null,p)}function LC(e){return e===void 0?Rr:typeof e=="function"?(Rr=e,!0):!1}function FC(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function YC(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=lo,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=VC(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Md=Math.abs;function co(e){return(e>0)-(e<0)||+e}function Ic(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,i,a,s,l=this.asSeconds(),c,u,f,d;return l?(r=_n(e/60),i=_n(r/60),e%=60,r%=60,a=_n(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=co(this._months)!==co(l)?"-":"",f=co(this._days)!==co(l)?"-":"",d=co(this._milliseconds)!==co(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var $e=Tc.prototype;$e.isValid=PD,$e.abs=fC,$e.add=dC,$e.subtract=hC,$e.as=mC,$e.asMilliseconds=ug,$e.asSeconds=vC,$e.asMinutes=_C,$e.asHours=gC,$e.asDays=yC,$e.asWeeks=SC,$e.asMonths=EC,$e.asQuarters=TC,$e.asYears=NC,$e.valueOf=wC,$e._bubble=pC,$e.clone=bC,$e.get=DC,$e.milliseconds=kC,$e.seconds=CC,$e.minutes=IC,$e.hours=RC,$e.days=OC,$e.weeks=MC,$e.months=PC,$e.years=AC,$e.humanize=YC,$e.toISOString=Ic,$e.toString=Ic,$e.toJSON=Ic,$e.locale=X_,$e.localeData=Q_,$e.toIsoString=mn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ic),$e.lang=J_,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),le("x",mc),le("X",ob),qe("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,n){n._d=new Date(Ve(e))});//! moment.js
|
|
51
|
-
ae.version="2.30.1",$w(at),ae.fn=J,ae.min=CD,ae.max=ID,ae.now=RD,ae.utc=jn,ae.unix=iC,ae.months=oC,ae.isDate=Es,ae.locale=ai,ae.invalid=cc,ae.duration=Pn,ae.isMoment=Rn,ae.weekdays=lC,ae.parseZone=aC,ae.localeData=kr,ae.isDuration=Nc,ae.monthsShort=sC,ae.weekdaysMin=uC,ae.defineLocale=Ed,ae.updateLocale=aD,ae.locales=oD,ae.weekdaysShort=cC,ae.normalizeUnits=vn,ae.relativeTimeRounding=LC,ae.relativeTimeThreshold=FC,ae.calendarFormat=tk,ae.prototype=J,ae.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 $C=["title"],BC=o.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=o.computed(()=>t.fieldValuePair.field),r=o.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=ae(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const s=o.resolveComponent("cape-link-value");return o.openBlock(),o.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[i.link?(o.openBlock(),o.createBlock(s,{key:0,"field-value-pair":i.fieldValuePair},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.value),1)]),_:1},8,["field-value-pair"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(r.value),1)],64))],8,$C)}}}),UC={class:"cape-filter-label"},HC=["for"],GC={class:"cape-filter-mode"},WC={class:"cape-filter-term"},jC=["id","placeholder"],zC=["id","placeholder"],KC=o.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",UC,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,HC)]),o.createElementVNode("div",GC,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[3]||(s[3]=[o.createElementVNode("option",{value:"contains"},"contains",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",WC,[r.value.mode==="contains"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,jC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,zC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0)])],64))}}),qC={class:"cape-filter-label"},XC=["for"],JC={class:"cape-filter-wide-term"},QC=["id","placeholder"],ZC=o.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId));return(i,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",qC,[o.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,XC)]),o.createElementVNode("div",JC,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.term=s),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,QC),[[o.vModelText,r.value.term]])])],64))}}),eI={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},tI=["for"],nI={class:"cape-sort-order-controls"},rI=["id"],iI=["value"],aI=["id"],oI=["value"],sI=["value"],lI=o.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=Vt(),n=Bt(),r=e,i=o.computed(()=>`cape-sort-order-${r.idDistinguisher}`),a=o.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(s,l)=>o.unref(n).hasSortFields&&o.unref(n).visibleCount>0?(o.openBlock(),o.createElementBlock("div",eI,[o.createElementVNode("label",{for:i.value},"Order results by: ",8,tI),o.createElementVNode("div",nI,[o.withDirectives(o.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>o.unref(n).sortFieldId=c)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).sortableFields,c=>(o.openBlock(),o.createElementBlock("option",{key:c.id,value:c.id},o.toDisplayString(c.label),9,iI))),128))],8,rI),[[o.vModelSelect,o.unref(n).sortFieldId]]),o.withDirectives(o.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>o.unref(n).sortDirection=c),"aria-label":"Sort direction",id:a.value},[o.createElementVNode("option",{value:o.unref(ri).Ascending},"Ascending",8,oI),o.createElementVNode("option",{value:o.unref(ri).Descending},"Descending",8,sI)],8,aI),[[o.vModelSelect,o.unref(n).sortDirection]])])])):o.createCommentVNode("",!0)}}),cI={class:"cape-filter-label"},uI=["for"],fI={class:"cape-filter-mode"},dI={class:"cape-filter-term"},hI=o.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>{const l=o.resolveComponent("cape-filter-field-enum-one-of-checkbox"),c=o.resolveComponent("cape-filter-field-enum-one-of-multiselect"),u=o.resolveComponent("cape-filter-field-enum-is-select"),f=o.resolveComponent("cape-filter-field-enum-is-radio");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",cI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id,"data-test":"filter-label"},o.toDisplayString(o.unref(r).field.label),9,uI)]),o.createElementVNode("div",fI,[o.unref(r).field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(r).mode=d),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[1]||(s[1]=[o.createElementVNode("option",{value:"oneOf"},"is one of",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,o.unref(r).mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",dI,[o.unref(r).mode==="oneOf"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.unref(i).filterInputStyleOnOneOf==="checkbox"?(o.openBlock(),o.createBlock(l,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(c,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0),o.unref(r).mode==="is"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.unref(i).filterInputStyleOnIs==="select"?(o.openBlock(),o.createBlock(u,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(f,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0)])],64)}}}),pI={class:"cape-filter-label"},mI=["for"],vI={class:"cape-filter-mode"},_I={class:"cape-filter-term"},gI=["id","placeholder","min","max","step"],yI=["id","placeholder","min","max","step"],SI=["id","placeholder","min","max","step"],EI=o.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",pI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,mI)]),o.createElementVNode("div",vI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",_I,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[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,gI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[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,yI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[3]||(s[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,SI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),TI={class:"cape-filter-label"},NI=["for"],wI={class:"cape-filter-mode"},bI={class:"cape-filter-term"},DI=["id","placeholder"],kI=["id","placeholder"],CI=["id","placeholder"],II=o.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",TI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,NI)]),o.createElementVNode("div",wI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",bI,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[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,DI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[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,kI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,CI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),RI={class:"cape-results-controls flex justify-between"},OI={class:"flex justify-start"},PI={key:0,class:"cape-show-all-results-toggle switch switch-sm"},AI=["for"],MI=o.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Bt(),r=o.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=o.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(a,s)=>{const l=o.resolveComponent("cape-results-info"),c=o.resolveComponent("cape-show-all-results-toggle"),u=o.resolveComponent("cape-sort-order");return o.openBlock(),o.createElementBlock("div",RI,[o.createElementVNode("div",OI,[o.createVNode(l),r.value?(o.openBlock(),o.createElementBlock("div",PI,[o.createVNode(c,{class:"cape-results-toggle",id:i.value},null,8,["id"]),o.createElementVNode("label",{for:i.value},"Show All Results",8,AI)])):o.createCommentVNode("",!0)]),o.createVNode(u,{"id-distinguisher":a.idDistinguisher},null,8,["id-distinguisher"])])}}});function xI(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function VI(){const e=[[]],t=Za(),n=Er();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const a=r[i.id].value??"";return i.isMultiple&&Array.isArray(a)?a.join("; "):`${a}`}))}),e}function LI(e){return e.map(n=>'"'+n.map(i=>{let a="";return i!=null&&(a=i.toString()),a.replace(/"/g,'""').replace(/\r\n/g,`
|
|
50
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var g_={};function y_(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),g_[e]||(__(t),g_[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function jn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Uw(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],jn(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 sd(e,t){var n=ri({},e),r;for(r in t)Ge(t,r)&&(Ui(e[r])&&Ui(t[r])?(n[r]={},ri(n[r],e[r]),ri(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Ui(e[r])&&(n[r]=ri({},n[r]));return n}function ld(e){e!=null&&this.set(e)}var cd;Object.keys?cd=Object.keys:cd=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var Hw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return jn(r)?r.call(t,n):r}function zn(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ud=/(\[[^\[]*\])|(\\)?([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,uc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},to={};function ge(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(to[e]=i),t&&(to[t[0]]=function(){return zn(i.apply(this,arguments),t[1],t[2])}),n&&(to[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Ww(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function jw(e){var t=e.match(ud),n,r;for(n=0,r=t.length;n<r;n++)to[t[n]]?t[n]=to[t[n]]:t[n]=Ww(t[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=jn(t[s])?t[s].call(i,e):t[s];return a}}function fc(e,t){return e.isValid()?(t=S_(t,e.localeData()),fd[t]=fd[t]||jw(t),fd[t](e)):e.localeData().invalidDate()}function S_(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(uc.lastIndex=0;n>=0&&uc.test(e);)e=e.replace(uc,r),uc.lastIndex=0,n-=1;return e}var zw={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 Kw(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ud).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qw="Invalid date";function Xw(){return this._invalidDate}var Jw="%d",Qw=/\d{1,2}/;function Zw(e){return this._ordinal.replace("%d",e)}var eb={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 tb(e,t,n,r){var i=this._relativeTime[n];return jn(i)?i(e,t,n,r):i.replace(/%d/i,e)}function nb(e,t){var n=this._relativeTime[e>0?"future":"past"];return jn(n)?n(t):n.replace(/%s/i,t)}var E_={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 vn(e){return typeof e=="string"?E_[e]||E_[e.toLowerCase()]:void 0}function dd(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=vn(r),n&&(t[n]=e[r]));return t}var rb={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 ib(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:rb[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var T_=/\d/,an=/\d\d/,N_=/\d{3}/,hd=/\d{4}/,dc=/[+-]?\d{6}/,it=/\d\d?/,w_=/\d\d\d\d?/,b_=/\d\d\d\d\d\d?/,hc=/\d{1,3}/,pd=/\d{1,4}/,pc=/[+-]?\d{1,6}/,no=/\d+/,mc=/[+-]?\d+/,ab=/Z|[+-]\d\d:?\d\d/gi,vc=/Z|[+-]\d\d(?::?\d\d)?/gi,ob=/[+-]?\d+(\.\d{1,3})?/,Ns=/[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,ro=/^[1-9]\d?/,md=/^([1-9]\d|\d)/,_c;_c={};function le(e,t,n){_c[e]=jn(t)?t:function(r,i){return r&&n?n:t}}function sb(e,t){return Ge(_c,e)?_c[e](t._strict,t._locale):new RegExp(lb(e))}function lb(e){return Tr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Tr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=_n(t)),n}var vd={};function qe(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Er(t)&&(r=function(a,s){s[t]=Ve(a)}),i=e.length,n=0;n<i;n++)vd[e[n]]=r}function ws(e,t){qe(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function cb(e,t,n){t!=null&&Ge(vd,e)&&vd[e](t,n._a,n,e)}function gc(e){return e%4===0&&e%100!==0||e%400===0}var Lt=0,Nr=1,Kn=2,Tt=3,On=4,wr=5,Hi=6,ub=7,fb=8;ge("Y",0,0,function(){var e=this.year();return e<=9999?zn(e,4):"+"+e}),ge(0,["YY",2],0,function(){return this.year()%100}),ge(0,["YYYY",4],0,"year"),ge(0,["YYYYY",5],0,"year"),ge(0,["YYYYYY",6,!0],0,"year"),le("Y",mc),le("YY",it,an),le("YYYY",pd,hd),le("YYYYY",pc,dc),le("YYYYYY",pc,dc),qe(["YYYYY","YYYYYY"],Lt),qe("YYYY",function(e,t){t[Lt]=e.length===2?ae.parseTwoDigitYear(e):Ve(e)}),qe("YY",function(e,t){t[Lt]=ae.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[Lt]=parseInt(e,10)});function bs(e){return gc(e)?366:365}ae.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var D_=io("FullYear",!0);function db(){return gc(this.year())}function io(e,t){return function(n){return n!=null?(k_(this,e,n),ae.updateOffset(this,t),this):Ds(this,e)}}function Ds(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 k_(e,t,n){var r,i,a,s,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}a=n,s=e.month(),l=e.date(),l=l===29&&s===1&&!gc(a)?28:l,i?r.setUTCFullYear(a,s,l):r.setFullYear(a,s,l)}}function hb(e){return e=vn(e),jn(this[e])?this[e]():this}function pb(e,t){if(typeof e=="object"){e=dd(e);var n=ib(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=vn(e),jn(this[e]))return this[e](t);return this}function mb(e,t){return(e%t+t)%t}var pt;Array.prototype.indexOf?pt=Array.prototype.indexOf:pt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function _d(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=mb(t,12);return e+=(t-n)/12,n===1?gc(e)?29:28:31-n%7%2}ge("M",["MM",2],"Mo",function(){return this.month()+1}),ge("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ge("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",it,ro),le("MM",it,an),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[Nr]=Ve(e)-1}),qe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Nr]=i:Ce(n).invalidMonth=e});var vb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),C_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),I_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_b=Ns,gb=Ns;function yb(e,t){return e?In(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||I_).test(t)?"format":"standalone"][e.month()]:In(this._months)?this._months:this._months.standalone}function Sb(e,t){return e?In(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[I_.test(t)?"format":"standalone"][e.month()]:In(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Wn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null):(i=pt.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:(i=pt.call(this._longMonthsParse,s),i!==-1?i:null)):(i=pt.call(this._longMonthsParse,s),i!==-1?i:(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null))}function Tb(e,t,n){var r,i,a;if(this._monthsParseExact)return Eb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Wn([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]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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 R_(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!Er(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,_d(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function O_(e){return e!=null?(R_(this,e),ae.updateOffset(this,!0),this):Ds(this,"Month")}function Nb(){return _d(this.year(),this.month())}function wb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=_b),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=gb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function P_(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,a,s,l;for(i=0;i<12;i++)a=Wn([2e3,i]),s=Tr(this.monthsShort(a,"")),l=Tr(this.months(a,"")),t.push(s),n.push(l),r.push(l),r.push(s);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 Db(e,t,n,r,i,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,a,s),l}function ks(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 yc(e,t,n){var r=7+t-n,i=(7+ks(e,0,r).getUTCDay()-t)%7;return-i+r-1}function A_(e,t,n,r,i){var a=(7+n-r)%7,s=yc(e,r,i),l=1+7*(t-1)+a+s,c,u;return l<=0?(c=e-1,u=bs(c)+l):l>bs(e)?(c=e+1,u=l-bs(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Cs(e,t,n){var r=yc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+br(s,t,n)):i>br(e.year(),t,n)?(a=i-br(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function br(e,t,n){var r=yc(e,t,n),i=yc(e+1,t,n);return(bs(e)-r+i)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),le("w",it,ro),le("ww",it,an),le("W",it,ro),le("WW",it,an),ws(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ve(e)});function kb(e){return Cs(e,this._week.dow,this._week.doy).week}var Cb={dow:0,doy:6};function Ib(){return this._week.dow}function Rb(){return this._week.doy}function Ob(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pb(e){var t=Cs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ge("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ge("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),le("d",it),le("e",it),le("E",it),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ws(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ce(n).invalidWeekday=e}),ws(["d","e","E"],function(e,t,n,r){t[r]=Ve(e)});function Ab(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Mb(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var xb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),M_="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lb=Ns,Fb=Ns,Yb=Ns;function $b(e,t){var n=In(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gd(n,this._week.dow):e?n[e.day()]:n}function Bb(e){return e===!0?gd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ub(e){return e===!0?gd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Wn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1||(i=pt.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=pt.call(this._minWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Gb(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Hb.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wn([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]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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 Wb(e){if(!this.isValid())return e!=null?this:NaN;var t=Ds(this,"Day");return e!=null?(e=Ab(e,this.localeData()),this.add(e-t,"d")):t}function jb(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 zb(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mb(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Kb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Lb),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fb),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yb),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yd(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],i=[],a,s,l,c,u;for(a=0;a<7;a++)s=Wn([2e3,1]).day(a),l=Tr(this.weekdaysMin(s,"")),c=Tr(this.weekdaysShort(s,"")),u=Tr(this.weekdays(s,"")),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 Sd(){return this.hours()%12||12}function Jb(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Sd),ge("k",["kk",2],0,Jb),ge("hmm",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)+zn(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+zn(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+zn(this.minutes(),2)+zn(this.seconds(),2)});function x_(e,t){ge(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x_("a",!0),x_("A",!1);function V_(e,t){return t._meridiemParse}le("a",V_),le("A",V_),le("H",it,md),le("h",it,ro),le("k",it,ro),le("HH",it,an),le("hh",it,an),le("kk",it,an),le("hmm",w_),le("hmmss",b_),le("Hmm",w_),le("Hmmss",b_),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,n){var r=Ve(e);t[Tt]=r===24?0:r}),qe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),qe(["h","hh"],function(e,t,n){t[Tt]=Ve(e),Ce(n).bigHour=!0}),qe("hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r)),Ce(n).bigHour=!0}),qe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i)),Ce(n).bigHour=!0}),qe("Hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r))}),qe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i))});function Qb(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zb=/[ap]\.?m?\.?/i,eD=io("Hours",!0);function tD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var L_={calendar:Hw,longDateFormat:zw,invalidDate:qw,ordinal:Jw,dayOfMonthOrdinalParse:Qw,relativeTime:eb,months:vb,monthsShort:C_,week:Cb,weekdays:xb,weekdaysMin:Vb,weekdaysShort:M_,meridiemParse:Zb},st={},Is={},Rs;function nD(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 F_(e){return e&&e.toLowerCase().replace("_","-")}function rD(e){for(var t=0,n,r,i,a;t<e.length;){for(a=F_(e[t]).split("-"),n=a.length,r=F_(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=Sc(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&nD(a,r)>=n-1)break;n--}t++}return Rs}function iD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&iD(e))try{t=Rs._abbr,n=require,n("./locale/"+e),ii(t)}catch{st[e]=null}return st[e]}function ii(e,t){var n;return e&&(Jt(t)?n=Dr(e):n=Ed(e,t),n?Rs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rs._abbr}function Ed(e,t){if(t!==null){var n,r=L_;if(t.abbr=e,st[e]!=null)y_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)r=st[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)r=n._config;else return Is[t.parentLocale]||(Is[t.parentLocale]=[]),Is[t.parentLocale].push({name:e,config:t}),null;return st[e]=new ld(sd(r,t)),Is[e]&&Is[e].forEach(function(i){Ed(i.name,i.config)}),ii(e),st[e]}else return delete st[e],null}function aD(e,t){if(t!=null){var n,r,i=L_;st[e]!=null&&st[e].parentLocale!=null?st[e].set(sd(st[e]._config,t)):(r=Sc(e),r!=null&&(i=r._config),t=sd(i,t),r==null&&(t.abbr=e),n=new ld(t),n.parentLocale=st[e],st[e]=n),ii(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ii()&&ii(e)):st[e]!=null&&delete st[e]);return st[e]}function Dr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rs;if(!In(e)){if(t=Sc(e),t)return t;e=[e]}return rD(e)}function oD(){return cd(st)}function Td(e){var t,n=e._a;return n&&Ce(e).overflow===-2&&(t=n[Nr]<0||n[Nr]>11?Nr:n[Kn]<1||n[Kn]>_d(n[Lt],n[Nr])?Kn:n[Tt]<0||n[Tt]>24||n[Tt]===24&&(n[On]!==0||n[wr]!==0||n[Hi]!==0)?Tt:n[On]<0||n[On]>59?On:n[wr]<0||n[wr]>59?wr:n[Hi]<0||n[Hi]>999?Hi:-1,Ce(e)._overflowDayOfYear&&(t<Lt||t>Kn)&&(t=Kn),Ce(e)._overflowWeeks&&t===-1&&(t=ub),Ce(e)._overflowWeekday&&t===-1&&(t=fb),Ce(e).overflow=t),e}var sD=/^\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)?)?$/,lD=/^\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)?/,Ec=[["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]],Nd=[["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/]],uD=/^\/?Date\((-?\d+)/i,fD=/^(?:(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}))$/,dD={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 Y_(e){var t,n,r=e._i,i=sD.exec(r)||lD.exec(r),a,s,l,c,u=Ec.length,f=Nd.length;if(i){for(Ce(e).iso=!0,t=0,n=u;t<n;t++)if(Ec[t][1].exec(i[1])){s=Ec[t][0],a=Ec[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(Nd[t][1].exec(i[3])){l=(i[2]||" ")+Nd[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(i[4])if(cD.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),bd(e)}else e._isValid=!1}function hD(e,t,n,r,i,a){var s=[pD(e),C_.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function pD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vD(e,t,n){if(e){var r=M_.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ce(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _D(e,t,n){if(e)return dD[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function $_(e){var t=fD.exec(mD(e._i)),n;if(t){if(n=hD(t[4],t[3],t[2],t[5],t[6],t[7]),!vD(t[1],n,e))return;e._a=n,e._tzm=_D(t[8],t[9],t[10]),e._d=ks.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ce(e).rfc2822=!0}else e._isValid=!1}function gD(e){var t=uD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Y_(e),e._isValid===!1)delete e._isValid;else return;if($_(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ae.createFromInputFallback(e)}ae.createFromInputFallback=mn("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 ao(e,t,n){return e??t??n}function yD(e){var t=new Date(ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wd(e){var t,n,r=[],i,a,s;if(!e._d){for(i=yD(e),e._w&&e._a[Kn]==null&&e._a[Nr]==null&&SD(e),e._dayOfYear!=null&&(s=ao(e._a[Lt],i[Lt]),(e._dayOfYear>bs(s)||e._dayOfYear===0)&&(Ce(e)._overflowDayOfYear=!0),n=ks(s,0,e._dayOfYear),e._a[Nr]=n.getUTCMonth(),e._a[Kn]=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[Tt]===24&&e._a[On]===0&&e._a[wr]===0&&e._a[Hi]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?ks:Db).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ce(e).weekdayMismatch=!0)}}function SD(e){var t,n,r,i,a,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=ao(t.GG,e._a[Lt],Cs(at(),1,4).year),r=ao(t.W,1),i=ao(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Cs(at(),a,s),n=ao(t.gg,e._a[Lt],u.year),r=ao(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a),r<1||r>br(n,a,s)?Ce(e)._overflowWeeks=!0:c!=null?Ce(e)._overflowWeekday=!0:(l=A_(n,r,i,a,s),e._a[Lt]=l.year,e._dayOfYear=l.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function bd(e){if(e._f===ae.ISO_8601){Y_(e);return}if(e._f===ae.RFC_2822){$_(e);return}e._a=[],Ce(e).empty=!0;var t=""+e._i,n,r,i,a,s,l=t.length,c=0,u,f;for(i=S_(e._f,e._locale).match(ud)||[],f=i.length,n=0;n<f;n++)a=i[n],r=(t.match(sb(a,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Ce(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),to[a]?(r?Ce(e).empty=!1:Ce(e).unusedTokens.push(a),cb(a,r,e)):e._strict&&!r&&Ce(e).unusedTokens.push(a);Ce(e).charsLeftOver=l-c,t.length>0&&Ce(e).unusedInput.push(t),e._a[Tt]<=12&&Ce(e).bigHour===!0&&e._a[Tt]>0&&(Ce(e).bigHour=void 0),Ce(e).parsedDateParts=e._a.slice(0),Ce(e).meridiem=e._meridiem,e._a[Tt]=ED(e._locale,e._a[Tt],e._meridiem),u=Ce(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),wd(e),Td(e)}function ED(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 TD(e){var t,n,r,i,a,s,l=!1,c=e._f.length;if(c===0){Ce(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,s=!1,t=od({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],bd(t),id(t)&&(s=!0),a+=Ce(t).charsLeftOver,a+=Ce(t).unusedTokens.length*10,Ce(t).score=a,l?a<r&&(r=a,n=t):(r==null||a<r||s)&&(r=a,n=t,s&&(l=!0));ri(e,n||t)}function ND(e){if(!e._d){var t=dd(e._i),n=t.day===void 0?t.date:t.day;e._a=m_([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wd(e)}}function wD(e){var t=new Ts(Td(B_(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function B_(e){var t=e._i,n=e._f;return e._locale=e._locale||Dr(e._l),t===null||n===void 0&&t===""?cc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Rn(t)?new Ts(Td(t)):(Es(t)?e._d=t:In(n)?TD(e):n?bd(e):bD(e),id(e)||(e._d=null),e))}function bD(e){var t=e._i;Jt(t)?e._d=new Date(ae.now()):Es(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gD(e):In(t)?(e._a=m_(t.slice(0),function(n){return parseInt(n,10)}),wd(e)):Ui(t)?ND(e):Er(t)?e._d=new Date(t):ae.createFromInputFallback(e)}function U_(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ui(e)&&nd(e)||In(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,wD(a)}function at(e,t,n,r){return U_(e,t,n,r,!1)}var DD=mn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cc()}),kD=mn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cc()});function H_(e,t){var n,r;if(t.length===1&&In(t[0])&&(t=t[0]),!t.length)return at();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function CD(){var e=[].slice.call(arguments,0);return H_("isBefore",e)}function ID(){var e=[].slice.call(arguments,0);return H_("isAfter",e)}var RD=function(){return Date.now?Date.now():+new Date},Os=["year","quarter","month","week","day","hour","minute","second","millisecond"];function OD(e){var t,n=!1,r,i=Os.length;for(t in e)if(Ge(e,t)&&!(pt.call(Os,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Os[r]]){if(n)return!1;parseFloat(e[Os[r]])!==Ve(e[Os[r]])&&(n=!0)}return!0}function PD(){return this._isValid}function AD(){return Pn(NaN)}function Tc(e){var t=dd(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=OD(t),this._milliseconds=+f+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Dr(),this._bubble()}function Nc(e){return e instanceof Tc}function Dd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MD(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,s;for(s=0;s<r;s++)Ve(e[s])!==Ve(t[s])&&a++;return a+i}function G_(e,t){ge(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+zn(~~(n/60),2)+t+zn(~~n%60,2)})}G_("Z",":"),G_("ZZ",""),le("Z",vc),le("ZZ",vc),qe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kd(vc,e)});var xD=/([\+\-]|\d\d)/gi;function kd(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(xD)||["-",0,0],a=+(i[1]*60)+Ve(i[2]),a===0?0:i[0]==="+"?a:-a)}function Cd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Rn(e)||Es(e)?e.valueOf():at(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ae.updateOffset(n,!1),n):at(e).local()}function Id(e){return-Math.round(e._d.getTimezoneOffset())}ae.updateOffset=function(){};function VD(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=kd(vc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Id(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?K_(this,Pn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Id(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FD(e){return this.utcOffset(0,e)}function YD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Id(this),"m")),this}function $D(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(ab,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function BD(e){return this.isValid()?(e=e?at(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function UD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HD(){if(!Jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return od(e,this),e=B_(e),e._a?(t=e._isUTC?Wn(e._a):at(e._a),this._isDSTShifted=this.isValid()&&MD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GD(){return this.isValid()?!this._isUTC:!1}function WD(){return this.isValid()?this._isUTC:!1}function W_(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(e,t){var n=e,r=null,i,a,s;return Nc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Er(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=jD.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Ve(r[Kn])*i,h:Ve(r[Tt])*i,m:Ve(r[On])*i,s:Ve(r[wr])*i,ms:Ve(Dd(r[Hi]*1e3))*i}):(r=zD.exec(e))?(i=r[1]==="-"?-1:1,n={y:Gi(r[2],i),M:Gi(r[3],i),w:Gi(r[4],i),d:Gi(r[5],i),h:Gi(r[6],i),m:Gi(r[7],i),s:Gi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=KD(at(n.from),at(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new Tc(n),Nc(e)&&Ge(e,"_locale")&&(a._locale=e._locale),Nc(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}Pn.fn=Tc.prototype,Pn.invalid=AD;function Gi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function j_(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 KD(e,t){var n;return e.isValid()&&t.isValid()?(t=Cd(t,e),e.isBefore(t)?n=j_(e,t):(n=j_(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function z_(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(y_(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."),a=n,n=r,r=a),i=Pn(n,r),K_(this,i,e),this}}function K_(e,t,n,r){var i=t._milliseconds,a=Dd(t._days),s=Dd(t._months);e.isValid()&&(r=r??!0,s&&R_(e,Ds(e,"Month")+s*n),a&&k_(e,"Date",Ds(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ae.updateOffset(e,a||s))}var qD=z_(1,"add"),XD=z_(-1,"subtract");function q_(e){return typeof e=="string"||e instanceof String}function JD(e){return Rn(e)||Es(e)||q_(e)||Er(e)||ZD(e)||QD(e)||e===null||e===void 0}function QD(e){var t=Ui(e)&&!nd(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,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function ZD(e){var t=In(e),n=!1;return t&&(n=e.filter(function(r){return!Er(r)&&q_(e)}).length===0),t&&n}function ek(e){var t=Ui(e)&&!nd(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function tk(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 nk(e,t){arguments.length===1&&(arguments[0]?JD(arguments[0])?(e=arguments[0],t=void 0):ek(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||at(),r=Cd(n,this).startOf("day"),i=ae.calendarFormat(this,r)||"sameElse",a=t&&(jn(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,at(n)))}function rk(){return new Ts(this)}function ik(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ak(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ok(e,t,n,r){var i=Rn(e)?e:at(e),a=Rn(t)?t:at(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function sk(e,t){var n=Rn(e)?e:at(e),r;return this.isValid()&&n.isValid()?(t=vn(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 lk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ck(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uk(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=Cd(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=vn(t),t){case"year":a=wc(this,r)/12;break;case"month":a=wc(this,r);break;case"quarter":a=wc(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:_n(a)}function wc(e,t){if(e.date()<t.date())return-wc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dk(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fc(n,"Z")):fc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;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",a=t+'[")]',this.format(n+r+i+a)}function pk(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=fc(this,e);return this.localeData().postformat(t)}function mk(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vk(e){return this.from(at(),e)}function _k(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gk(e){return this.to(at(),e)}function X_(e){var t;return e===void 0?this._locale._abbr:(t=Dr(e),t!=null&&(this._locale=t),this)}var J_=mn("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 Q_(){return this._locale}var bc=1e3,oo=60*bc,Dc=60*oo,Z_=(365*400+97)*24*Dc;function so(e,t){return(e%t+t)%t}function eg(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Z_:new Date(e,t,n).valueOf()}function tg(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Z_:Date.UTC(e,t,n)}function yk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,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-=so(t+(this._isUTC?0:this.utcOffset()*oo),Dc);break;case"minute":t=this._d.valueOf(),t-=so(t,oo);break;case"second":t=this._d.valueOf(),t-=so(t,bc);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Sk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,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+=Dc-so(t+(this._isUTC?0:this.utcOffset()*oo),Dc)-1;break;case"minute":t=this._d.valueOf(),t+=oo-so(t,oo)-1;break;case"second":t=this._d.valueOf(),t+=bc-so(t,bc)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Ek(){return this._d.valueOf()-(this._offset||0)*6e4}function Tk(){return Math.floor(this.valueOf()/1e3)}function Nk(){return new Date(this.valueOf())}function wk(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bk(){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 Dk(){return this.isValid()?this.toISOString():null}function kk(){return id(this)}function Ck(){return ri({},Ce(this))}function Ik(){return Ce(this).overflow}function Rk(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),le("N",Rd),le("NN",Rd),le("NNN",Rd),le("NNNN",Bk),le("NNNNN",Uk),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ce(n).era=i:Ce(n).invalidEra=e}),le("y",no),le("yy",no),le("yyy",no),le("yyyy",no),le("yo",Hk),qe(["y","yy","yyy","yyyy"],Lt),qe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lt]=n._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function Ok(e,t){var n,r,i,a=this._eras||Dr("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ae(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ae(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function Pk(e,t,n){var r,i,a=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(s===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([s,l,c].indexOf(e)>=0)return a[r]}function Ak(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*n}function Mk(){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 xk(){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 Vk(){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 Lk(){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()-ae(i[e].since).year())*n+i[e].offset;return this.year()}function Fk(e){return Ge(this,"_erasNameRegex")||Od.call(this),e?this._erasNameRegex:this._erasRegex}function Yk(e){return Ge(this,"_erasAbbrRegex")||Od.call(this),e?this._erasAbbrRegex:this._erasRegex}function $k(e){return Ge(this,"_erasNarrowRegex")||Od.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rd(e,t){return t.erasAbbrRegex(e)}function Bk(e,t){return t.erasNameRegex(e)}function Uk(e,t){return t.erasNarrowRegex(e)}function Hk(e,t){return t._eraYearOrdinalRegex||no}function Od(){var e=[],t=[],n=[],r=[],i,a,s,l,c,u=this.eras();for(i=0,a=u.length;i<a;++i)s=Tr(u[i].name),l=Tr(u[i].abbr),c=Tr(u[i].narrow),t.push(s),e.push(l),n.push(c),r.push(s),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")}ge(0,["gg",2],0,function(){return this.weekYear()%100}),ge(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kc(e,t){ge(0,[e,e.length],0,t)}kc("gggg","weekYear"),kc("ggggg","weekYear"),kc("GGGG","isoWeekYear"),kc("GGGGG","isoWeekYear"),le("G",mc),le("g",mc),le("GG",it,an),le("gg",it,an),le("GGGG",pd,hd),le("gggg",pd,hd),le("GGGGG",pc,dc),le("ggggg",pc,dc),ws(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ve(e)}),ws(["gg","GG"],function(e,t,n,r){t[r]=ae.parseTwoDigitYear(e)});function Gk(e){return ng.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wk(e){return ng.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function jk(){return br(this.year(),1,4)}function zk(){return br(this.isoWeekYear(),1,4)}function Kk(){var e=this.localeData()._week;return br(this.year(),e.dow,e.doy)}function qk(){var e=this.localeData()._week;return br(this.weekYear(),e.dow,e.doy)}function ng(e,t,n,r,i){var a;return e==null?Cs(this,r,i).year:(a=br(e,r,i),t>a&&(t=a),Xk.call(this,e,t,n,r,i))}function Xk(e,t,n,r,i){var a=A_(e,t,n,r,i),s=ks(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ge("Q",0,"Qo","quarter"),le("Q",T_),qe("Q",function(e,t){t[Nr]=(Ve(e)-1)*3});function Jk(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),le("D",it,ro),le("DD",it,an),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],Kn),qe("Do",function(e,t){t[Kn]=Ve(e.match(it)[0])});var rg=io("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",hc),le("DDDD",N_),qe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ve(e)});function Qk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ge("m",["mm",2],0,"minute"),le("m",it,md),le("mm",it,an),qe(["m","mm"],On);var Zk=io("Minutes",!1);ge("s",["ss",2],0,"second"),le("s",it,md),le("ss",it,an),qe(["s","ss"],wr);var eC=io("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),le("S",hc,T_),le("SS",hc,an),le("SSS",hc,N_);var ai,ig;for(ai="SSSS";ai.length<=9;ai+="S")le(ai,no);function tC(e,t){t[Hi]=Ve(("0."+e)*1e3)}for(ai="S";ai.length<=9;ai+="S")qe(ai,tC);ig=io("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function nC(){return this._isUTC?"UTC":""}function rC(){return this._isUTC?"Coordinated Universal Time":""}var J=Ts.prototype;J.add=qD,J.calendar=nk,J.clone=rk,J.diff=uk,J.endOf=Sk,J.format=pk,J.from=mk,J.fromNow=vk,J.to=_k,J.toNow=gk,J.get=hb,J.invalidAt=Ik,J.isAfter=ik,J.isBefore=ak,J.isBetween=ok,J.isSame=sk,J.isSameOrAfter=lk,J.isSameOrBefore=ck,J.isValid=kk,J.lang=J_,J.locale=X_,J.localeData=Q_,J.max=kD,J.min=DD,J.parsingFlags=Ck,J.set=pb,J.startOf=yk,J.subtract=XD,J.toArray=wk,J.toObject=bk,J.toDate=Nk,J.toISOString=dk,J.inspect=hk,typeof Symbol<"u"&&Symbol.for!=null&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=Dk,J.toString=fk,J.unix=Tk,J.valueOf=Ek,J.creationData=Rk,J.eraName=Mk,J.eraNarrow=xk,J.eraAbbr=Vk,J.eraYear=Lk,J.year=D_,J.isLeapYear=db,J.weekYear=Gk,J.isoWeekYear=Wk,J.quarter=J.quarters=Jk,J.month=O_,J.daysInMonth=Nb,J.week=J.weeks=Ob,J.isoWeek=J.isoWeeks=Pb,J.weeksInYear=Kk,J.weeksInWeekYear=qk,J.isoWeeksInYear=jk,J.isoWeeksInISOWeekYear=zk,J.date=rg,J.day=J.days=Wb,J.weekday=jb,J.isoWeekday=zb,J.dayOfYear=Qk,J.hour=J.hours=eD,J.minute=J.minutes=Zk,J.second=J.seconds=eC,J.millisecond=J.milliseconds=ig,J.utcOffset=VD,J.utc=FD,J.local=YD,J.parseZone=$D,J.hasAlignedHourOffset=BD,J.isDST=UD,J.isLocal=GD,J.isUtcOffset=WD,J.isUtc=W_,J.isUTC=W_,J.zoneAbbr=nC,J.zoneName=rC,J.dates=mn("dates accessor is deprecated. Use date instead.",rg),J.months=mn("months accessor is deprecated. Use month instead",O_),J.years=mn("years accessor is deprecated. Use year instead",D_),J.zone=mn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),J.isDSTShifted=mn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HD);function iC(e){return at(e*1e3)}function aC(){return at.apply(null,arguments).parseZone()}function ag(e){return e}var We=ld.prototype;We.calendar=Gw,We.longDateFormat=Kw,We.invalidDate=Xw,We.ordinal=Zw,We.preparse=ag,We.postformat=ag,We.relativeTime=tb,We.pastFuture=nb,We.set=Uw,We.eras=Ok,We.erasParse=Pk,We.erasConvertYear=Ak,We.erasAbbrRegex=Yk,We.erasNameRegex=Fk,We.erasNarrowRegex=$k,We.months=yb,We.monthsShort=Sb,We.monthsParse=Tb,We.monthsRegex=bb,We.monthsShortRegex=wb,We.week=kb,We.firstDayOfYear=Rb,We.firstDayOfWeek=Ib,We.weekdays=$b,We.weekdaysMin=Ub,We.weekdaysShort=Bb,We.weekdaysParse=Gb,We.weekdaysRegex=Kb,We.weekdaysShortRegex=qb,We.weekdaysMinRegex=Xb,We.isPM=Qb,We.meridiem=tD;function Cc(e,t,n,r){var i=Dr(),a=Wn().set(r,t);return i[n](a,e)}function og(e,t,n){if(Er(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cc(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Cc(e,r,n,"month");return i}function Pd(e,t,n,r){typeof e=="boolean"?(Er(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Er(t)&&(n=t,t=void 0),t=t||"");var i=Dr(),a=e?i._week.dow:0,s,l=[];if(n!=null)return Cc(t,(n+a)%7,r,"day");for(s=0;s<7;s++)l[s]=Cc(t,(s+a)%7,r,"day");return l}function oC(e,t){return og(e,t,"months")}function sC(e,t){return og(e,t,"monthsShort")}function lC(e,t,n){return Pd(e,t,n,"weekdays")}function cC(e,t,n){return Pd(e,t,n,"weekdaysShort")}function uC(e,t,n){return Pd(e,t,n,"weekdaysMin")}ii("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=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ae.lang=mn("moment.lang is deprecated. Use moment.locale instead.",ii),ae.langData=mn("moment.langData is deprecated. Use moment.localeData instead.",Dr);var kr=Math.abs;function fC(){var e=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),e.milliseconds=kr(e.milliseconds),e.seconds=kr(e.seconds),e.minutes=kr(e.minutes),e.hours=kr(e.hours),e.months=kr(e.months),e.years=kr(e.years),this}function sg(e,t,n,r){var i=Pn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dC(e,t){return sg(this,e,t,1)}function hC(e,t){return sg(this,e,t,-1)}function lg(e){return e<0?Math.floor(e):Math.ceil(e)}function pC(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=lg(Ad(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=_n(e/1e3),r.seconds=i%60,a=_n(i/60),r.minutes=a%60,s=_n(a/60),r.hours=s%24,t+=_n(s/24),c=_n(cg(t)),n+=c,t-=lg(Ad(c)),l=_n(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function cg(e){return e*4800/146097}function Ad(e){return e*146097/4800}function mC(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=vn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cg(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ad(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 Cr(e){return function(){return this.as(e)}}var ug=Cr("ms"),vC=Cr("s"),_C=Cr("m"),gC=Cr("h"),yC=Cr("d"),SC=Cr("w"),EC=Cr("M"),TC=Cr("Q"),NC=Cr("y"),wC=ug;function bC(){return Pn(this)}function DC(e){return e=vn(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var kC=Wi("milliseconds"),CC=Wi("seconds"),IC=Wi("minutes"),RC=Wi("hours"),OC=Wi("days"),PC=Wi("months"),AC=Wi("years");function MC(){return _n(this.days()/7)}var Ir=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xC(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function VC(e,t,n,r){var i=Pn(e).abs(),a=Ir(i.as("s")),s=Ir(i.as("m")),l=Ir(i.as("h")),c=Ir(i.as("d")),u=Ir(i.as("M")),f=Ir(i.as("w")),d=Ir(i.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,xC.apply(null,p)}function LC(e){return e===void 0?Ir:typeof e=="function"?(Ir=e,!0):!1}function FC(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function YC(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=lo,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=VC(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Md=Math.abs;function co(e){return(e>0)-(e<0)||+e}function Ic(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,i,a,s,l=this.asSeconds(),c,u,f,d;return l?(r=_n(e/60),i=_n(r/60),e%=60,r%=60,a=_n(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=co(this._months)!==co(l)?"-":"",f=co(this._days)!==co(l)?"-":"",d=co(this._milliseconds)!==co(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var $e=Tc.prototype;$e.isValid=PD,$e.abs=fC,$e.add=dC,$e.subtract=hC,$e.as=mC,$e.asMilliseconds=ug,$e.asSeconds=vC,$e.asMinutes=_C,$e.asHours=gC,$e.asDays=yC,$e.asWeeks=SC,$e.asMonths=EC,$e.asQuarters=TC,$e.asYears=NC,$e.valueOf=wC,$e._bubble=pC,$e.clone=bC,$e.get=DC,$e.milliseconds=kC,$e.seconds=CC,$e.minutes=IC,$e.hours=RC,$e.days=OC,$e.weeks=MC,$e.months=PC,$e.years=AC,$e.humanize=YC,$e.toISOString=Ic,$e.toString=Ic,$e.toJSON=Ic,$e.locale=X_,$e.localeData=Q_,$e.toIsoString=mn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ic),$e.lang=J_,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),le("x",mc),le("X",ob),qe("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,n){n._d=new Date(Ve(e))});//! moment.js
|
|
51
|
+
ae.version="2.30.1",$w(at),ae.fn=J,ae.min=CD,ae.max=ID,ae.now=RD,ae.utc=Wn,ae.unix=iC,ae.months=oC,ae.isDate=Es,ae.locale=ii,ae.invalid=cc,ae.duration=Pn,ae.isMoment=Rn,ae.weekdays=lC,ae.parseZone=aC,ae.localeData=Dr,ae.isDuration=Nc,ae.monthsShort=sC,ae.weekdaysMin=uC,ae.defineLocale=Ed,ae.updateLocale=aD,ae.locales=oD,ae.weekdaysShort=cC,ae.normalizeUnits=vn,ae.relativeTimeRounding=LC,ae.relativeTimeThreshold=FC,ae.calendarFormat=tk,ae.prototype=J,ae.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 $C=["title"],BC=o.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=o.computed(()=>t.fieldValuePair.field),r=o.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=ae(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const s=o.resolveComponent("cape-link-value");return o.openBlock(),o.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[i.link?(o.openBlock(),o.createBlock(s,{key:0,"field-value-pair":i.fieldValuePair},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.value),1)]),_:1},8,["field-value-pair"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(r.value),1)],64))],8,$C)}}}),UC={class:"cape-filter-label"},HC=["for"],GC={class:"cape-filter-mode"},WC={class:"cape-filter-term"},jC=["id","placeholder"],zC=["id","placeholder"],KC=o.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",UC,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,HC)]),o.createElementVNode("div",GC,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[3]||(s[3]=[o.createElementVNode("option",{value:"contains"},"contains",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",WC,[r.value.mode==="contains"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,jC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,zC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0)])],64))}}),qC={class:"cape-filter-label"},XC=["for"],JC={class:"cape-filter-wide-term"},QC=["id","placeholder"],ZC=o.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId));return(i,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",qC,[o.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,XC)]),o.createElementVNode("div",JC,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.term=s),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,QC),[[o.vModelText,r.value.term]])])],64))}}),eI={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},tI=["for"],nI={class:"cape-sort-order-controls"},rI=["id"],iI=["value"],aI=["id"],oI=["value"],sI=["value"],lI=o.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=It(),n=Bt(),r=e,i=o.computed(()=>`cape-sort-order-${r.idDistinguisher}`),a=o.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(s,l)=>o.unref(n).hasSortFields&&o.unref(n).visibleCount>0?(o.openBlock(),o.createElementBlock("div",eI,[o.createElementVNode("label",{for:i.value},"Order results by: ",8,tI),o.createElementVNode("div",nI,[o.withDirectives(o.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>o.unref(n).sortFieldId=c)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).sortableFields,c=>(o.openBlock(),o.createElementBlock("option",{key:c.id,value:c.id},o.toDisplayString(c.label),9,iI))),128))],8,rI),[[o.vModelSelect,o.unref(n).sortFieldId]]),o.withDirectives(o.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>o.unref(n).sortDirection=c),"aria-label":"Sort direction",id:a.value},[o.createElementVNode("option",{value:o.unref(ni).Ascending},"Ascending",8,oI),o.createElementVNode("option",{value:o.unref(ni).Descending},"Descending",8,sI)],8,aI),[[o.vModelSelect,o.unref(n).sortDirection]])])])):o.createCommentVNode("",!0)}}),cI={class:"cape-filter-label"},uI=["for"],fI={class:"cape-filter-mode"},dI={class:"cape-filter-term"},hI=o.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>{const l=o.resolveComponent("cape-filter-field-enum-one-of-checkbox"),c=o.resolveComponent("cape-filter-field-enum-one-of-multiselect"),u=o.resolveComponent("cape-filter-field-enum-is-select"),f=o.resolveComponent("cape-filter-field-enum-is-radio");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",cI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id,"data-test":"filter-label"},o.toDisplayString(o.unref(r).field.label),9,uI)]),o.createElementVNode("div",fI,[o.unref(r).field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(r).mode=d),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[1]||(s[1]=[o.createElementVNode("option",{value:"oneOf"},"is one of",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,o.unref(r).mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",dI,[o.unref(r).mode==="oneOf"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.unref(i).filterInputStyleOnOneOf==="checkbox"?(o.openBlock(),o.createBlock(l,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(c,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0),o.unref(r).mode==="is"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.unref(i).filterInputStyleOnIs==="select"?(o.openBlock(),o.createBlock(u,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(f,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0)])],64)}}}),pI={class:"cape-filter-label"},mI=["for"],vI={class:"cape-filter-mode"},_I={class:"cape-filter-term"},gI=["id","placeholder","min","max","step"],yI=["id","placeholder","min","max","step"],SI=["id","placeholder","min","max","step"],EI=o.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",pI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,mI)]),o.createElementVNode("div",vI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",_I,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[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,gI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[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,yI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[3]||(s[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,SI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),TI={class:"cape-filter-label"},NI=["for"],wI={class:"cape-filter-mode"},bI={class:"cape-filter-term"},DI=["id","placeholder"],kI=["id","placeholder"],CI=["id","placeholder"],II=o.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",TI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,NI)]),o.createElementVNode("div",wI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",bI,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[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,DI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[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,kI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,CI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),RI={class:"cape-results-controls flex justify-between"},OI={class:"flex justify-start"},PI={key:0,class:"cape-show-all-results-toggle switch switch-sm"},AI=["for"],MI=o.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Bt(),r=o.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=o.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(a,s)=>{const l=o.resolveComponent("cape-results-info"),c=o.resolveComponent("cape-show-all-results-toggle"),u=o.resolveComponent("cape-sort-order");return o.openBlock(),o.createElementBlock("div",RI,[o.createElementVNode("div",OI,[o.createVNode(l),r.value?(o.openBlock(),o.createElementBlock("div",PI,[o.createVNode(c,{class:"cape-results-toggle",id:i.value},null,8,["id"]),o.createElementVNode("label",{for:i.value},"Show All Results",8,AI)])):o.createCommentVNode("",!0)]),o.createVNode(u,{"id-distinguisher":a.idDistinguisher},null,8,["id-distinguisher"])])}}});function xI(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function VI(){const e=[[]],t=Za(),n=Sr();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const a=r[i.id].value??"";return i.isMultiple&&Array.isArray(a)?a.join("; "):`${a}`}))}),e}function LI(e){return e.map(n=>'"'+n.map(i=>{let a="";return i!=null&&(a=i.toString()),a.replace(/"/g,'""').replace(/\r\n/g,`
|
|
52
52
|
`)}).join('","')+`"
|
|
53
|
-
`).join("")}const FI=o.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=VI(),r=LI(n);xI("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(o.openBlock(),o.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),YI={},$I={href:"/site-data.json",class:"cape-button"};function BI(e,t){return o.openBlock(),o.createElementBlock("a",$I,"Download JSON")}const UI=Wn(YI,[["render",BI]]),HI={class:"cape-fields-table"},GI={key:0},WI=o.defineComponent({__name:"CapeFieldsTable",setup(e){const t=Za(),n=o.computed(()=>t.all);return(r,i)=>(o.openBlock(),o.createElementBlock("table",HI,[i[0]||(i[0]=o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{scope:"col"},"Field id"),o.createElementVNode("th",{scope:"col"},"Field name"),o.createElementVNode("th",{scope:"col"},"Field type"),o.createElementVNode("th",{scope:"col"},"Description")])],-1)),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("tr",{key:a.id},[o.createElementVNode("td",null,o.toDisplayString(a.id),1),o.createElementVNode("td",null,o.toDisplayString(a.label),1),o.createElementVNode("td",null,[o.createTextVNode(o.toDisplayString(a.type)+" ",1),a.isMultiple?(o.openBlock(),o.createElementBlock("span",GI," list")):o.createCommentVNode("",!0)]),o.createElementVNode("td",null,o.toDisplayString(a.description),1)]))),128))])]))}});function jI(e){const n=Vt().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const zI=o.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=o.computed(()=>jI(t.record));return(r,i)=>{const a=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(a,{to:n.value},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["to"])}}}),KI={key:0,class:"cape-next-result"},qI={key:1,class:"cape-next-result cape-next-result-null"},XI=o.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",KI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",qI,[o.renderSlot(i.$slots,"otherwise")]))}}}),JI={key:0,class:"cape-previous-result"},QI={key:1,class:"cape-previous-result cape-previous-result-null"},ZI=o.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",JI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",QI,[o.renderSlot(i.$slots,"otherwise")]))}}}),eR={key:0,class:"cape-previous-record"},tR={key:1,class:"cape-previous-record cape-previous-record-null"},nR=o.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Er(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",eR,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",tR,[o.renderSlot(i.$slots,"otherwise")]))}}}),rR={key:0,class:"cape-next-record"},iR={key:1,class:"cape-next-record cape-next-record-null"},aR=o.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=Er(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",rR,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",iR,[o.renderSlot(i.$slots,"otherwise")]))}}}),us=class us{static add(t){us.functions.push(t)}static all(){return us.functions}static async execute(t,n){for(const r of us.all().sort((i,a)=>i.priority-a.priority))try{await r.action(t,n)}catch(i){console.error("Error executing action:",i);return}}};Pe(us,"functions",[]);let Ps=us;const fg={High:10,Low:1e3},Ha=class Ha{static async fetchIndexPageTitle(){if(Ha.indexHtmlTitle)return Ha.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),a=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ha.indexHtmlTitle=(a==null?void 0:a.text)||void 0,Ha.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:r,params:i,meta:a}=t;if(r==="record"&&n.recordPageTitleExpression){const c=i==null?void 0:i.id;if(!c)throw new Error("Record ID is required but not specified.");if(ni().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const d=Er().byId(c);return n.recordPageTitleExpression(d)}if(a!=null&&a.title)return a.title;const s=await this.fetchIndexPageTitle();return s||Vt().title}};Pe(Ha,"indexHtmlTitle");let xd=Ha;const oR={class:"cape-labelled-value"},sR={key:0,class:"cape-error cape-labelled-value-error"},lR=["title"],cR={key:1,class:"cape-labelled-value-label"},uR=o.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=o.computed(()=>{var r;return(r=t.fieldValue)==null?void 0:r.field});return(r,i)=>(o.openBlock(),o.createElementBlock("div",oR,[!r.fieldValue||!n.value?(o.openBlock(),o.createElementBlock("div",sR," [Error, trying to render label for a non-existent field] ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(o.openBlock(),o.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},o.toDisplayString(n.value.label),9,lR)):(o.openBlock(),o.createElementBlock("div",cR,o.toDisplayString(n.value.label),1)),o.renderSlot(r.$slots,"default")],64))]))}}),fR=o.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>t.fieldValuePair.value),i=o.computed(()=>t.fieldValuePair.field),a=o.computed(()=>{const s="/",l={};try{n.byId(`field-${i.value.id}`).display==="advanced"&&(l.advanced="true"),l.jump="true",l[`field-${i.value.id}-mode`]="is",l[`field-${i.value.id}-term`]=`${r.value}`}catch{console.error(`Attempt to create link from field ${i.value.id} which has no related filter.`)}return{path:s,query:l}});return(s,l)=>{const c=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(c,{to:a.value},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["to"])}}}),dR=o.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r*100+"%"});return(r,i)=>o.toDisplayString(n.value)}}),hR=o.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r.toFixed(t.digits)});return(r,i)=>o.toDisplayString(n.value)}}),pR={__name:"CapeShowAllResultsToggle",setup(e){const t=Bt();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAllResults]])}},mR={key:0,class:"cape-results-info"},vR={key:0},_R={key:1},gR={key:1,class:"cape-results-count"},yR=o.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Bt();return(n,r)=>o.unref(t).allResultsAreVisible?(o.openBlock(),o.createElementBlock("div",mR,[o.unref(t).visibleCount==1?(o.openBlock(),o.createElementBlock("div",vR,"Showing 1 matching record.")):(o.openBlock(),o.createElementBlock("div",_R,"Showing all "+o.toDisplayString(o.unref(t).visibleCount)+" matching records.",1))])):(o.openBlock(),o.createElementBlock("div",gR," Showing first "+o.toDisplayString(o.unref(t).visibleCount)+" of "+o.toDisplayString(o.unref(t).totalCount)+" matching records. ",1))}}),SR={class:"cape-results-count"},ER=o.defineComponent({__name:"CapeResultsCount",setup(e){const t=Bt();return(n,r)=>(o.openBlock(),o.createElementBlock("span",SR,o.toDisplayString(o.unref(t).totalCount),1))}}),TR={class:"cape-filter-field-enum-is-radio"},NR={class:"form-check form-check-inline"},wR=["id"],bR=["for"],DR=["id","value"],kR=["for"],CR=o.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",TR,[o.createElementVNode("li",NR,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),type:"radio",value:""},null,8,wR),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"},s[2]||(s[2]=[o.createElementVNode("em",null,"any",-1)]),8,bR)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[1]||(s[1]=c=>o.unref(r).isTerm=c),value:l,type:"radio"},null,8,DR),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,kR)]))),128))]))}}),IR=["aria-label"],RR=["value"],OR=o.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),"aria-label":"Select "+o.unref(i).label+" value."},[s[1]||(s[1]=o.createElementVNode("option",{key:"",value:""},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("option",{key:l,value:l},o.toDisplayString(l),9,RR))),128))],8,IR)),[[o.vModelSelect,o.unref(r).isTerm]])}}),PR={class:"cape-filter-field-enum-one-of-checkbox"},AR=["id","value"],MR=["for"],xR=o.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",PR,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[0]||(s[0]=c=>o.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,AR),[[o.vModelCheckbox,o.unref(r).oneOfTerms]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,MR)]))),128))]))}});function Vd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function VR(e){return(...t)=>!e(...t)}function LR(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function FR(e){return e.filter(t=>!t.$isLabel)}function Ld(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,[])}const dg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var YR={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 Vd(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},filteringSortFunc:{type:Function,default:null}},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):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(VR(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 dg(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return dg(Ld(this.groupValues,this.groupLabel),FR)(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(Vd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Vd(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.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(i=>n.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",r)}else{const 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))},filterOptions(e,t,n,r){return t?e.filter(i=>LR(r(i,n),t)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):r(i,n).length-r(a,n).length):e},filterGroups(e,t,n,r,i){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(s[n],e,t,i);return l.length?{[r]:s[r],[n]:l}:[]})}}},$R={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}}},hg={name:"vue-multiselect",mixins:[YR,$R],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},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const BR=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],UR={ref:"tags",class:"multiselect__tags"},HR={class:"multiselect__tags-wrap"},GR=["textContent"],WR=["onKeypress","onMousedown"],jR=["textContent"],zR={class:"multiselect__spinner"},KR=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],qR=["id","aria-multiselectable"],XR={key:0},JR={class:"multiselect__option"},QR=["aria-selected","id","role"],ZR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],eO=["data-select","data-deselect","onMouseenter","onMousedown"],tO={class:"multiselect__option"},nO={class:"multiselect__option"};function rO(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=o.withKeys(s=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",UR,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",HR,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.visibleValues,(s,l)=>o.renderSlot(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(s))},null,8,GR),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,WR)],32))])),256))],512),[[o.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,jR)]):o.createCommentVNode("v-if",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",zR,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:o.normalizeStyle(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=o.withModifiers(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=o.withModifiers(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=o.withKeys(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=o.withKeys(o.withModifiers(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,KR)):o.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("v-if",!0)],512),o.createVNode(o.Transition,{name:"multiselect",persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",XR,[o.createElementVNode("span",JR,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(s,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(s),id:e.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,s),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(s),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,ZR)),s&&(s.$isLabel||s.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,s),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(s),["prevent"])},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,eO)):o.createCommentVNode("v-if",!0)],8,QR))),128)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",tO,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=o.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",nO,[o.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=o.createTextVNode("List is empty."))])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,qR)],36),[[o.vShow,e.isOpen]])]),_:3})],42,BR)}hg.render=rO;const iO=o.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createBlock(o.unref(hg),{id:"filter-multiselect-"+o.unref(i).id,modelValue:o.unref(r).oneOfTerms,"onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:o.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),aO={};function oO(e,t){return o.openBlock(),o.createElementBlock("p",null,t[0]||(t[0]=[o.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called "),o.createElementVNode("i",null,"CAPE",-1),o.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the "),o.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1),o.createTextVNode(" team at the "),o.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1),o.createTextVNode(", UK. ")]))}const sO=Wn(aO,[["render",oO]]),lO={},cO={class:"border border-black p-1 fixed right-1 top-1"};function uO(e,t){return o.openBlock(),o.createElementBlock("div",cO,t[0]||(t[0]=[o.createStaticVNode('<span class="block sm:hidden"><sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const fO=Wn(lO,[["render",uO]]),dO={class:"cape-content-page"},hO=["href"],pO=["href"],mO={key:0},vO=["href"],_O={__name:"CapeAboutPage",setup(e){const{metadata:t}=Vt();return(n,r)=>{var u,f,d,p,h,m,v;const i=o.resolveComponent("cape-record-count"),a=o.resolveComponent("cape-download-json-button"),s=o.resolveComponent("cape-download-csv-button"),l=o.resolveComponent("cape-software"),c=o.resolveComponent("cape-fields-table");return o.openBlock(),o.createElementBlock("div",dO,[r[8]||(r[8]=o.createElementVNode("h2",null,"About the data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),o.createVNode(i),r[1]||(r[1]=o.createTextVNode(" records. The fields in the dataset are described below. "))]),o.createElementVNode("p",null,[r[2]||(r[2]=o.createTextVNode(" This data is copyright ")),o.createElementVNode("a",{href:(u=o.unref(t).copyright)==null?void 0:u.url},o.toDisplayString(((f=o.unref(t).copyright)==null?void 0:f.name)??"MISSING DATA"),9,hO),r[3]||(r[3]=o.createTextVNode(" and may be reused under the ")),o.createElementVNode("a",{href:(d=o.unref(t).license)==null?void 0:d.url},o.toDisplayString(((p=o.unref(t).license)==null?void 0:p.name)??"MISSING DATA"),9,pO),r[4]||(r[4]=o.createTextVNode(" license. "))]),o.createElementVNode("p",null,[r[5]||(r[5]=o.createTextVNode(" This dataset was created by ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).creators,(_,g)=>{var S;return o.openBlock(),o.createElementBlock("span",{key:g},[o.createElementVNode("span",null,o.toDisplayString(_.name),1),g+1<((S=o.unref(t).creators)==null?void 0:S.length)?(o.openBlock(),o.createElementBlock("span",mO,", ")):o.createCommentVNode("",!0)])}),128)),r[6]||(r[6]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createTextVNode(' If using this data, please attribute it as "'+o.toDisplayString(((h=o.unref(t).attribution)==null?void 0:h.text)??"MISSING DATA")+'" with a link to ',1),o.createElementVNode("a",{href:(m=o.unref(t).attribution)==null?void 0:m.url},o.toDisplayString(((v=o.unref(t).attribution)==null?void 0:v.url)??"MISSING DATA"),9,vO),r[7]||(r[7]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createVNode(a,{style:{"margin-right":"1rem"}}),o.createVNode(s)]),r[9]||(r[9]=o.createElementVNode("h2",null,"About this software",-1)),o.createVNode(l),r[10]||(r[10]=o.createElementVNode("h2",null,"Schema",-1)),r[11]||(r[11]=o.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),o.createVNode(c)])}}},gO=Wn(o.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value"),i=o.resolveComponent("cape-record-link");return o.openBlock(),o.createBlock(i,{class:"cape-summary-card",record:t.record},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),[["__scopeId","data-v-72b11579"]]),yO={class:"cape-navigation"},SO={class:"cape-navigation-items"},EO={class:"cape-navigation-item"},TO=o.defineComponent({__name:"CapeNavigation",setup(e){const t=Vt(),n=o.computed(()=>t.pages);return(r,i)=>{const a=o.resolveComponent("router-link"),s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",yO,[o.createElementVNode("nav",null,[o.createElementVNode("ul",SO,[o.createElementVNode("li",EO,[o.createVNode(a,{class:"cape-navigation-link",to:"/"},{default:o.withCtx(()=>i[0]||(i[0]=[o.createTextVNode("Search")])),_:1,__:[0]})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,l=>(o.openBlock(),o.createElementBlock("li",{class:"cape-navigation-item",key:l.path},[o.createVNode(a,{class:"cape-navigation-link",to:l.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label),1)]),_:2},1032,["to"])]))),128))])]),o.createElementVNode("main",null,[o.createVNode(s)])])}}}),NO={class:"cape-record-card"},wO={class:"cape-record-card-nav"},bO={class:"cape-record-card-nav-inner"},DO={class:"cape-record-card-nav"},kO={class:"cape-record-card-nav-inner"},CO={class:"cape-record-card-data"},IO=Wn(o.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-previous-result"),i=o.resolveComponent("cape-next-result"),a=o.resolveComponent("cape-previous-record"),s=o.resolveComponent("cape-next-record"),l=o.resolveComponent("cape-labelled-value");return o.openBlock(),o.createElementBlock("div",NO,[o.createElementVNode("h2",null,"RecordCard Placeholder ID: "+o.toDisplayString(t.record.record_number.value),1),o.createElementVNode("div",wO,[o.createElementVNode("div",bO,[o.createVNode(r,{record:t.record},{before:o.withCtx(()=>n[0]||(n[0]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[1]||(n[1]=[o.createTextVNode("[start of results]")])),_:1},8,["record"]),o.createVNode(i,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[3]||(n[3]=[o.createTextVNode("[end of results]")])),_:1},8,["record"])])]),o.createElementVNode("div",DO,[o.createElementVNode("div",kO,[o.createVNode(a,{record:t.record},{before:o.withCtx(()=>n[4]||(n[4]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[5]||(n[5]=[o.createTextVNode("[start of dataset]")])),_:1},8,["record"]),o.createVNode(s,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[6]||(n[6]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[7]||(n[7]=[o.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),o.createElementVNode("div",CO,[o.createElementVNode("ul",null,[o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])])])])}}}),[["__scopeId","data-v-aaca064a"]]),RO={};function OO(e,t){const n=o.resolveComponent("cape-page-width-indicator"),r=o.resolveComponent("cape-non-prod-warning");return o.openBlock(),o.createElementBlock("header",null,[o.createVNode(n),t[0]||(t[0]=o.createElementVNode("h1",null,[o.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),o.createVNode(r)])}const PO=Wn(RO,[["render",OO],["__scopeId","data-v-e10b774b"]]),AO={};function MO(e,t){return o.openBlock(),o.createElementBlock("footer",null,t[0]||(t[0]=[o.createElementVNode("p",null,null,-1)]))}const xO=Wn(AO,[["render",MO],["__scopeId","data-v-9811b96f"]]),VO={class:"cape-record-label"},LO=o.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value");return o.openBlock(),o.createElementBlock("span",VO,[o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" # ")),o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),FO={class:"cape-filter-controls cape-filter-controls-top"},YO={class:"cape-advanced-search-toggle-control switch switch-sm"},$O={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},BO={class:"cape-advanced-search-toggle-control switch switch-sm"},UO=o.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=_t(),n=o.computed(()=>t.showAdvanced);return(r,i)=>{const a=o.resolveComponent("cape-intro"),s=o.resolveComponent("cape-advanced-search-toggle"),l=o.resolveComponent("cape-form-reset-button"),c=o.resolveComponent("cape-filters"),u=o.resolveComponent("cape-results");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(a),o.createElementVNode("div",FO,[o.createElementVNode("div",YO,[o.createVNode(s,{id:"cape-advanced-search-toggle-top"}),i[0]||(i[0]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),o.createVNode(l)]),o.createElementVNode("div",null,[o.createVNode(c)]),n.value?(o.openBlock(),o.createElementBlock("div",$O,[o.createElementVNode("div",BO,[o.createVNode(s,{id:"cape-advanced-search-toggle-bottom"}),i[1]||(i[1]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),o.createVNode(l)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(u)])],64)}}}),HO={},GO={class:"cape-intro"};function WO(e,t){const n=o.resolveComponent("cape-record-count");return o.openBlock(),o.createElementBlock("p",GO,[t[0]||(t[0]=o.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=o.createTextVNode(" This repository contains ")),o.createVNode(n),t[2]||(t[2]=o.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const jO=Wn(HO,[["render",WO]]),zO=o.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return Vt().metadata}}}),KO={template:"#templateCapeSummaryCard",props:["record"]},qO={template:"#templateCapeNavigation",computed:{...Jf(Vt,["pages"])}},XO={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},JO={template:"#templateCapeHeader"},QO={template:"#templateCapeFooter"},ZO={template:"#templateCapeRecordLabel",props:["record"]},e1={template:"#templateCapeHomepageLayout",computed:{...Jf(_t,["showAdvanced"]),...Jf(Bt,{hasMatches:e=>e.totalCount>0})}},pg={install:function(e,t){e.use(IN());const n=this.makeComponentMap(t);this.registerComponents(e,n),Vt().setOptions(t),this.registerRoutes(e,t.pages,ed);const i=async a=>{const s=await xd.getPageTitle(a,t);s&&(document.title=s)};Ps.add({priority:fg.High,action:i}),ed.afterEach(async(a,s)=>{ni().onLoaded(async()=>{await Ps.execute(a,s)})}),e.use(ed)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&o.toRaw(t).forEach(r=>{const i={path:r.path,component:e.component(r.component)};r.title&&(i.meta={title:r.title}),n.addRoute(i)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=zO,t.CapeFooter=QO,t.CapeHeader=JO,t.CapeHomepageLayout=e1,t.CapeNavigation=qO,t.CapeRecordCard=XO,t.CapeRecordLabel=ZO,t.CapeSummaryCard=KO),e.additionalComponents!==void 0)for(const[n,r]of Object.entries(e.additionalComponents))t[n]=r;return t},builtInComponentsMap(){return{CapeFilterFieldDate:II,CapeFilterFieldEnum:hI,CapeFilterFieldEnumIsRadio:CR,CapeFilterFieldEnumIsSelect:OR,CapeFilterFieldEnumOneOfCheckbox:xR,CapeFilterFieldEnumOneOfMultiselect:iO,CapeFilterFieldInteger:EI,CapeFilterFieldText:KC,CapeFilterFreeText:ZC,CapeAboutPage:_O,CapeFooter:xO,CapeHeader:PO,CapeHomepageLayout:UO,CapeIntro:jO,CapeNavigation:TO,CapeRecordCard:IO,CapeRecordLabel:LO,CapeSummaryCard:gO,CapeAdvancedSearchToggle:uw,CapeFilters:dw,CapeFormResetButton:hw,CapeResults:Aw,CapeResultsControls:MI,CapeResultsCount:ER,CapeResultsInfo:yR,CapeShowAllResultsToggle:pR,CapeSortOrder:lI,CapeDownloadCsvButton:FI,CapeDownloadJsonButton:UI,CapeFieldsTable:WI,CapeFixedNumericValue:hR,CapeLabelledContent:uR,CapeLabelledValue:Yw,CapeLinkValue:fR,CapeNextRecord:aR,CapeNextResult:XI,CapePercentageValue:dR,CapePreviousRecord:nR,CapePreviousResult:ZI,CapeRecordCount:cw,CapeRecordLink:zI,CapeSingleValue:BC,CapeSoftware:sO,CapeValue:Fw,CapeHomePage:mw,CapeLoadError:gw,CapeLoading:Tw,CapeNonProdWarning:kw,CapePageWidthIndicator:fO,CapeRecordPage:Rw,CapeRoot:sw}}},t1={};function n1(e,t){const n=o.resolveComponent("CapeHeader"),r=o.resolveComponent("CapeRoot"),i=o.resolveComponent("CapeLoading"),a=o.resolveComponent("CapeFooter");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(n),(o.openBlock(),o.createBlock(o.Suspense,null,{default:o.withCtx(()=>[o.createVNode(r)]),fallback:o.withCtx(()=>[o.createVNode(i)]),_:1})),o.createVNode(a)],64)}const r1=Wn(t1,[["render",n1]]),i1=e=>{const t=o.createApp(r1);return t.use(pg,e),t},Xr=class Xr{static register(t){Xr.loggers.push(t)}static clear(){Xr.loggers=[]}static debug(t,n){Xr.loggers.forEach(r=>r.debug(t,n))}static info(t,n){Xr.loggers.forEach(r=>r.info(t,n))}static warn(t,n){Xr.loggers.forEach(r=>r.warn(t,n))}static error(t,n){Xr.loggers.forEach(r=>r.error(t,n))}};Pe(Xr,"loggers",[]);let As=Xr;var Qt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Qt||{});class a1{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Qt.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Qt.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Qt.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Qt.Error&&console.error(t,n??"")}}const o1={install:function(e,t){const n=new a1(t.loggingLevel);As.register(n)}};class s1{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Qt.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Debug}})}info(t,n){this.loggingLevel>=Qt.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Info}})}warn(t,n){this.loggingLevel>=Qt.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Warn}})}error(t,n){this.loggingLevel>=Qt.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function Zt(e,t){return e||t}function ut(e,t){return e[t]}var Ut=void 0,Nt=null,Fd="",Rc="function",Ms="object",Or="prototype",Oc="__proto__",ji="undefined",Pc="constructor",Yd="Symbol",uo="length",Ac="name",It="call",xs="toString",$d="getOwnPropertyDescriptor",Ht=Zt(Object),Bd=ut(Ht,Or),mg=Zt(String),zi=ut(mg,Or),Vs=Zt(Math),vg=Zt(Array),Mc=ut(vg,Or),Pr=ut(Mc,"slice"),_g="_polyfill",gg="__nw21$polytype__";function ft(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function l1(e,t,n){var r=ft(e,n);return r.e?t:r.v}var Ud;function xc(e){return function(t){return typeof t===e}}function yg(e){var t="[object "+e+"]";return function(n){return!!(n&&c1(n)===t)}}function c1(e){return Bd[xs].call(e)}function dt(e){return typeof e===ji||e===ji}function u1(e){return e===Ut}function K(e){return e===Nt||dt(e)}function Hd(e){return e===Nt||e===Ut}function f1(e){return!!e||e!==Ut}function d1(e){return!Ud&&(Ud=["string","number","boolean",ji,"symbol","bigint"]),e!==Ms&&Ud.indexOf(e)!==-1}var ye=xc("string"),Se=xc(Rc);function en(e){return!e&&K(e)?!1:!!e&&typeof e===Ms}var ke=ut(vg,"isArray"),h1=yg("Date"),Ls=xc("number"),Sg=xc("boolean"),Gd=yg("Error");function si(e){return!!(e&&e.then&&Se(e.then))}function Vc(e){return!(!e||l1(function(){return!(e&&0+e)},!e))}function Wd(){}function p1(){return!1}var Gt=Zt(mg),m1="[object Error]";function se(e,t){var n=Fd,r=Bd[xs][It](e);r===m1&&(e={stack:Gt(e.stack),message:Gt(e.message),name:Gt(e.name)});try{n=JSON.stringify(e,Nt,t?typeof t=="number"?t:4:Ut),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Nt)||Gt(e)}catch(i){n=" - "+se(i,t)}return r+": "+n}function on(e){throw new Error(e)}function Xn(e){throw new TypeError(e)}function Lc(e){Hd(e)&&Xn("Cannot convert undefined or null to object")}function v1(e){ye(e)||Xn("'"+se(e)+"' is not a string")}function gn(e,t){return!!e&&Bd.hasOwnProperty[It](e,t)}var _1=Zt(ut(Ht,$d),Wd),li=Zt(ut(Ht,"hasOwn"),g1);function g1(e,t){return Lc(e),gn(e,t)||!!_1(e,t)}function Me(e,t,n){if(e&&(en(e)||Se(e))){for(var r in e)if(li(e,r)&&t[It](e,r,e[r])===-1)break}}function oe(e,t,n){if(e)for(var r=e[uo]>>>0,i=0;i<r&&!(i in e&&t[It](e,e[i],i,e)===-1);i++);}var Ki=Fc;function Fc(e,t,n){var r=t?t[e]:Nt;return function(i){var a=(i?i[e]:Nt)||r;if(a||n){var s=arguments;return(a||n).apply(i,a?Pr[It](s,1):s)}Xn('"'+Gt(e)+'" not defined for '+se(i))}}function y1(e){return function(t){return t[e]}}var S1=Zt(ut(Ht,$d),Wd),Yc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function E1(e){var t={};if(t[Yc.c]=!0,t[Yc.e]=!0,e.l){t.get=function(){return e.l.v};var n=S1(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Yc[r]]=u1(i)?t[Yc[r]]:i}),t}var Ar=ut(Ht,"defineProperty"),T1=ut(Ht,"defineProperties");function Le(e,t,n){return Ar(e,t,E1(n))}function Eg(e,t,n,r,i){var a={};return Me(e,function(s,l){$c(a,s,t?l:s),$c(a,l,s)}),r?r(a):a}function $c(e,t,n,r){Ar(e,t,{value:n,enumerable:!0,writable:!1})}var N1=Zt(ut(Ht,"isFrozen"),p1),Tg=ut(Ht,"freeze");function w1(e){return e}function b1(e){return Lc(e),e[Oc]||Nt}var jd=ut(Ht,"assign"),Mr=ut(Ht,"keys");function Ng(e,t){if((ke(e)||en(e)||Se(e))&&!N1(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Me(e,function(r,i){Ng(i,t)}),An(e)}return e}function Fs(e){return Tg?Ng(e,[]):e}var An=Zt(Tg,w1),zd=Zt(ut(Ht,"getPrototypeOf"),b1);function D1(e){return Eg(e,1,0,An)}function k1(e){return Eg(e,0,0,An)}function C1(e){var t={};return Me(e,function(n,r){$c(t,n,r[1]),$c(t,r[0],r[1])}),An(t)}function I1(e){return C1(e)}var wg=k1({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),bg="__tsUtils$gblCfg",Kd;function Dg(){var e;return typeof globalThis!==ji&&(e=globalThis),!e&&typeof self!==ji&&(e=self),!e&&typeof window!==ji&&(e=window),!e&&typeof global!==ji&&(e=global),e}function Bc(){if(!Kd){var e=ft(Dg).v||{};Kd=e[bg]=e[bg]||{}}return Kd}var kg=ut(Vs,"min"),Ys=ut(Vs,"max"),Cg=Ki("slice",zi),Jn=Ki("substring",zi),ci=Fc("substr",zi,R1);function R1(e,t,n){return Lc(e),n<0?Fd:(t=t||0,t<0&&(t=Ys(t+e[uo],0)),dt(n)?Cg(e,t):Cg(e,t,t+n))}function qd(e,t){return Jn(e,0,t)}function O1(e,t){return e&&(ft(function(){e[_g]=!0,e[gg]=t}),ft(Le,[e,_g,{v:!0,w:!1,e:!1}]),ft(Le,[e,gg,{v:t,w:!1,e:!1}])),e}var xr=Zt(ut(Ht,"create"),P1);function P1(e,t){var n=null;function r(){}if(Hd(e))n={};else{var i=typeof e;i!==Ms&&i!==Rc&&Xn("Prototype must be an Object or function: "+se(e)),r[Or]=e,ft(function(){r[Oc]=e}),n=new r}return t&&ft(T1,[n,t]),n}function Mn(){return(Date.now||A1)()}function A1(){return new Date().getTime()}function qi(e,t,n){return e.apply(t,n)}var gt;function ui(){gt=Bc()}function Ig(e,t){var n={};return!gt&&ui(),n.b=gt.lzy,Ar(n,"v",{configurable:!0,get:function(){var r=qi(e,null,t);return gt.lzy||Ar(n,"v",{value:r}),n.b=gt.lzy,r}}),n}var M1=ut(Vs,"random"),x1=Ig(function(){for(var e=Mn().toString(36).slice(2);e.length<16;)e+=M1().toString(36).slice(2);return e=e.substring(0,16),e}),Rg="_urid",V1="$nw21sym",Xd,L1=0;function F1(){if(!Xd){var e=Bc();Xd=e.gblSym=e.gblSym||{k:{},s:{}}}return Xd}var Uc;function Jd(e){var t="_"+L1+++"_"+x1.v,n=Yd+"("+e+")";function r(a,s){Le(i,a,{v:s,e:!1,w:!1})}var i=xr(null);return r("description",Gt(e)),r(xs,function(){return n+V1+t}),r("valueOf",function(){return i}),r("v",n),r("_uid",t),O1(i,"symbol")}function Y1(e){var t=F1();if(!li(t.k,e)){var n=Jd(e),r=Mr(t.s).length;n[Rg]=function(){return r+"_"+n[xs]()},t.k[e]=n,t.s[n[Rg]()]=Gt(e)}return t.k[e]}function $1(e){!Uc&&(Uc={});var t,n=wg[e];return n&&(t=Uc[n]=Uc[n]||Jd(Yd+"."+n)),t}function yn(e){return Ar({toJSON:function(){return e}},"v",{value:e})}var Og="window",$s;function fo(e,t){var n;return function(){return!gt&&ui(),(!n||gt.lzy)&&(n=yn(ft(e,t).v)),n.v}}function Sn(e){return!gt&&ui(),(!$s||e===!1||gt.lzy)&&($s=yn(ft(Dg).v||Nt)),$s.v}function ot(e,t){var n;if(!$s||t===!1?n=Sn(t):n=$s.v,n&&n[e])return n[e];if(e===Og)try{return window}catch{}return Nt}function Pg(){return!!Rt()}var Rt=fo(ot,["document"]);function Hc(){return!!sn()}var sn=fo(ot,[Og]);function B1(){return!!Qn()}var Qn=fo(ot,["navigator"]);function U1(){return!!Ag()}var Ag=fo(ot,["history"]),H1=fo(function(){return!!ft(function(){return process&&(process.versions||{}).node}).v}),Mg=fo(function(){return!!ft(function(){return self&&self instanceof WorkerGlobalScope}).v}),ho,Qd;function Gc(){return ho=yn(ft(ot,[Yd]).v),ho}function G1(e){var t=(gt.lzy?0:ho)||Gc();return t.v?t.v[e]:Ut}function W1(){return!!j1()}function j1(){return!gt&&ui(),((gt.lzy?0:ho)||Gc()).v}function Zd(e,t){var n=wg[e];!gt&&ui();var r=(gt.lzy?0:ho)||Gc();return r.v?r.v[n||e]:$1(e)}function Bs(e,t){!gt&&ui();var n=(gt.lzy?0:ho)||Gc();return n.v?n.v(e):Jd(e)}function eh(e){return!gt&&ui(),Qd=(gt.lzy?0:Qd)||yn(ft(G1,["for"]).v),(Qd.v||Y1)(e)}function th(e){return!!e&&Se(e.next)}function xg(e){return!Hd(e)&&Se(e[Zd(3)])}var Wc;function nh(e,t,n){if(e&&(th(e)||(!Wc&&(Wc=yn(Zd(3))),e=e[Wc.v]?e[Wc.v]():Nt),th(e))){var r=Ut,i=Ut;try{for(var a=0;!(i=e.next()).done&&t[It](n||e,i.value,a,e)!==-1;)a++}catch(s){r={e:s},e.throw&&(i=Nt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function po(e,t){return!dt(t)&&e&&(ke(t)?qi(e.push,e,t):th(t)||xg(t)?nh(t,function(n){e.push(n)}):e.push(t)),e}var Ft=Ki("indexOf",Mc),Us=Ki("map",Mc);function jc(e,t,n){return((e?e.slice:Nt)||Pr).apply(e,Pr[It](arguments,1))}var z1=Ki("reduce",Mc),rh,Vg=Zt(ut(Ht,"setPrototypeOf"),K1);function K1(e,t){var n;return!rh&&(rh=yn((n={},n[Oc]=[],n instanceof Array))),rh.v?e[Oc]=t:Me(t,function(r,i){return e[r]=i}),e}function q1(e,t,n){ft(Le,[t,Ac,{v:e,c:!0,e:!1}]),t=Vg(t,n);function r(){this[Pc]=t,ft(Le,[this,Ac,{v:e,c:!0,e:!1}])}return t[Or]=n===Nt?xr(n):(r[Or]=n[Or],new r),t}function Lg(e,t){t&&(e[Ac]=t)}function Fg(e,t,n){var r=Error,i=r[Or][Ac],a=Error.captureStackTrace;return q1(e,function(){var s=this,l=arguments;try{ft(Lg,[r,e]);var c=qi(r,s,Pr[It](l))||s;if(c!==s){var u=zd(s);u!==zd(c)&&Vg(c,u)}return a&&a(c,s[Pc]),t&&t(c,l),c}finally{ft(Lg,[r,i])}},r)}var ih;function X1(e){throw ih||(ih=Fg("UnsupportedError")),new ih(e)}function J1(e){return function(n){return Lc(n),n&&n.replace&&(n=n.replace(e,Fd)),n}}var Q1=J1(/^\s+|(?=\s)\s+$/g),Ze=Fc("trim",zi,Q1),ln=ut(Vs,"floor"),ah,oh,sh;function Wt(e){if(!e||typeof e!==Ms)return!1;sh||(sh=Hc()?sn():!0);var t=!1;if(e!==sh){oh||(ah=Function[Or][xs],oh=ah[It](Ht));try{var n=zd(e);t=!n,t||(gn(n,Pc)&&(n=n[Pc]),t=!!(n&&typeof n===Rc&&ah[It](n)===oh))}catch{}}return t}function Z1(e){return e.value&&Bg(e),!0}var Yg=[rP,Bg,aP,iP];function eP(e,t,n,r){var i;return oe(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function lh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],s={handler:n.handler,src:n.src,path:a},l=typeof t,c=!1,u=t===Nt;u||(t&&l===Ms?c=Wt(t):u=d1(l));var f={type:l,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,p){return lh(e,d,p?s:n,p)},copyTo:function(d,p){return $g(e,d,p,s)}};return f.isPrim?i&&i[It](n,f)?f.result:t:eP(e,t,a,function(d){Le(f,"result",{g:function(){return d.v},s:function(m){d.v=m}});for(var p=0,h=i;!(h||(p<Yg.length?Yg[p++]:Z1))[It](n,f);)h=Nt})}function $g(e,t,n,r){if(!K(n))for(var i in n)t[i]=lh(e,n[i],r,i);return t}function tP(e,t,n){var r={handler:n,src:t,path:[]};return $g([],e,t,r)}function nP(e,t){var n={handler:t,src:e};return lh([],e,n)}function rP(e){var t=e.value;if(ke(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function iP(e){var t=e.value;return h1(t)?(e.result=new Date(t.getTime()),!0):!1}function aP(e){return e.type===Rc}function Bg(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function Ug(e,t){return oe(t,function(n){tP(e,n)}),e}function Hg(e,t,n,r,i,a,s){return Ug(nP(e)||{},Pr[It](arguments))}function oP(e,t,n,r,i,a,s){return Ug(e||{},Pr[It](arguments))}var Gg=Ki("split",zi);function Wg(e,t,n){if(e&&t){var r=Gg(t,"."),i=r.pop();oe(r,function(a){K(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var sP=y1(uo),ch;function Vr(){return!gt&&ui(),(!ch||gt.lzy)&&(ch=yn(ft(ot,["performance"]).v)),ch.v}var jg=ut(Vs,"round"),lP=Zt(ut(Ht,$d),Wd),zg=Fc("endsWith",zi,cP);function cP(e,t,n){v1(e);var r=ye(t)?t:Gt(t),i=!dt(n)&&n<e[uo]?n:e[uo];return Jn(e,i-r[uo],i)===r}var jt=Ki("indexOf",zi),uh="ref",fh="unref",dh="hasRef",uP="enabled";function fP(e,t,n){var r=!0,i=e?t(Nt):Nt,a;function s(){return r=!1,i&&i[fh]&&i[fh](),a}function l(){i&&n(i),i=Nt}function c(){return i=t(i),r||s(),a}function u(f){!f&&i&&l(),f&&!i&&c()}return a={cancel:l,refresh:c},a[dh]=function(){return i&&i[dh]?i[dh]():r},a[uh]=function(){return r=!0,i&&i[uh]&&i[uh](),a},a[fh]=s,a=Ar(a,uP,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Nt}}}var dP,hP;function pP(e){var t=Se(e)?e:dP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>0&&Se(n[0])&&(t=n[0])}return t||setTimeout}function mP(e){var t=Se(e)?e:hP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>1&&Se(n[1])&&(t=n[1])}return t||clearTimeout}function Kg(e,t,n){var r=ke(t),i=r?t.length:0,a=pP(i>0?t[0]:r?Ut:t),s=mP(i>1?t[1]:Ut),l=n[0];n[0]=function(){c.dn(),qi(l,Ut,Pr[It](arguments))};var c=fP(e,function(u){if(u){if(u.refresh)return u.refresh(),u;qi(s,Ut,[u])}return qi(a,Ut,n)},function(u){qi(s,Ut,[u])});return c.h}function En(e,t){return Kg(!0,Ut,Pr[It](arguments))}function vP(e,t){return Kg(!1,Ut,Pr[It](arguments))}var zc,Kc="constructor",Lr="prototype",qc="function",Xc="_dynInstFuncs",hh="_isDynProxy",mo="_dynClass",_P="_dynCls$",ph="_dynInstChk",Hs=ph,qg="_dfOpts",Xg="_unknown_",mh="__proto__",Jc="_dyn"+mh,Jg="__dynProto$Gbl",vh="_dynInstProto",Qc="useBaseInst",_h="setInstFuncs",gh=Object,Gs=gh.getPrototypeOf,Qg=gh.getOwnPropertyNames,Zg=Sn(),yh=Zg[Jg]||(Zg[Jg]={o:(zc={},zc[_h]=!0,zc[Qc]=!0,zc),n:1e3});function Zc(e){return e&&(e===gh[Lr]||e===Array[Lr])}function Sh(e){return Zc(e)||e===Function[Lr]}function Xi(e){var t;if(e){if(Gs)return Gs(e);var n=e[mh]||e[Lr]||(e[Kc]?e[Kc][Lr]:null);t=e[Jc]||n,gn(e,Jc)||(delete e[vh],t=e[Jc]=e[vh]||e[Jc],e[vh]=n)}return t}function eu(e,t){var n=[];if(Qg)n=Qg(e);else for(var r in e)typeof r=="string"&&gn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Kc&&typeof e[t]===qc&&(n||gn(e,t))&&t!==mh&&t!==Lr}function tu(e){Xn("DynamicProto: "+e)}function gP(e){var t=xr(null);return eu(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Th(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function yP(e,t,n,r){function i(c,u,f){var d=u[f];if(d[hh]&&r){var p=c[Xc]||{};p[Hs]!==!1&&(d=(p[u[mo]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=xr(null);eu(n,function(c){a[c]=i(t,n,c)});for(var s=Xi(e),l=[];s&&!Sh(s)&&!Th(l,s);)eu(s,function(c){!a[c]&&Eh(s,c,!Gs)&&(a[c]=i(t,s,c))}),l.push(s),s=Xi(s);return a}function SP(e,t,n,r){var i=null;if(e&&gn(n,mo)){var a=e[Xc]||xr(null);if(i=(a[n[mo]]||xr(null))[t],i||tu("Missing ["+t+"] "+qc),!i[ph]&&a[Hs]!==!1){for(var s=!gn(e,t),l=Xi(e),c=[];s&&l&&!Sh(l)&&!Th(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=Xi(l)}try{s&&(e[t]=i),i[ph]=1}catch{a[Hs]=!1}}}return i}function EP(e,t,n){var r=t[e];return r===n&&(r=Xi(t)[e]),typeof r!==qc&&tu("["+e+"] is not a "+qc),r}function TP(e,t,n,r,i){function a(c,u){var f=function(){var d=SP(this,u,c,f)||EP(u,c,f);return d.apply(this,arguments)};return f[hh]=1,f}if(!Zc(e)){var s=n[Xc]=n[Xc]||xr(null);if(!Zc(s)){var l=s[t]=s[t]||xr(null);s[Hs]!==!1&&(s[Hs]=!!i),Zc(l)||eu(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(l[c]=n[c],delete n[c],(!gn(e,c)||e[c]&&!e[c][hh])&&(e[c]=a(e,c)))})}}}function NP(e,t){if(Gs){for(var n=[],r=Xi(t);r&&!Sh(r)&&!Th(n,r);){if(r===e)return!0;n.push(r),r=Xi(r)}return!1}return!0}function Nh(e,t){return gn(e,Lr)?e.name||t||Xg:((e||{})[Kc]||{}).name||t||Xg}function et(e,t,n,r){gn(e,Lr)||tu("theClass is an invalid class definition.");var i=e[Lr];NP(i,t)||tu("["+Nh(e)+"] not in hierarchy of ["+Nh(t)+"]");var a=null;gn(i,mo)?a=i[mo]:(a=_P+Nh(e,"_")+"$"+yh.n,yh.n++,i[mo]=a);var s=et[qg],l=!!s[Qc];l&&r&&r[Qc]!==void 0&&(l=!!r[Qc]);var c=gP(t),u=yP(i,t,c,l);n(t,u);var f=!!Gs&&!!s[_h];f&&r&&(f=!!r[_h]),TP(i,a,t,c,f!==!1)}et[qg]=yh.o;var ey="function",ty="object",wh="undefined",Zn="prototype",bh=Object,wP=bh[Zn];(Sn()||{}).Symbol,(Sn()||{}).Reflect;var ny="hasOwnProperty",bP=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)wP[ny].call(t,i)&&(e[i]=t[i])}return e},zt=jd||bP,Dh=function(e,t){return Dh=bh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[ny](i)&&(n[i]=r[i])},Dh(e,t)};function Fr(e,t){typeof t!==ey&&t!==null&&Xn("Class extends value "+String(t)+" is not a constructor or null"),Dh(e,t);function n(){this.constructor=e}e[Zn]=t===null?xr(t):(n[Zn]=t[Zn],new n)}function ry(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iy=D1,DP=I1,fi=iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),vo="toLowerCase",we="length",nu="warnToConsole",Ws="throwInternal",Ji="watch",Qi="apply",Be="push",_o="splice",yt="logger",Zi="cancel",js="initialize",di="identifier",ru="removeNotificationListener",iu="addNotificationListener",er="isInitialized",au="getNotifyMgr",zs="getPlugin",ea="name",Kt="processNext",ay="getProcessTelContext",ta="value",go="enabled",oy="stopPollingInternalLogs",na="unload",ou="onComplete",kh="version",sy="loggingLevelConsole",ra="createNew",Yr="teardown",su="messageId",ia="message",$r="diagLog",lu="_doTeardown",Ks="update",tr="getNext",qs="setNextPlugin",Ch="userAgent",yo="split",aa="replace",hi="type",ly="evtName",Br="status",kP="indexOf",cy="getAllResponseHeaders",Ih="isChildEvt",xn="data",So="getCtx",nr="setCtx",uy="itemsReceived",cu="headers",Xs="urlString",Eo="timeout",Rh="traceFlags",Oh="getAttribute",Ph;function CP(e,t){Ph||(Ph=Fg("AggregationError",function(r,i){i[we]>1&&(r.errors=i[1])}));var n=e;throw oe(t,function(r,i){n+=`
|
|
53
|
+
`).join("")}const FI=o.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=VI(),r=LI(n);xI("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(o.openBlock(),o.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),YI={},$I={href:"/site-data.json",class:"cape-button"};function BI(e,t){return o.openBlock(),o.createElementBlock("a",$I,"Download JSON")}const UI=Bi(YI,[["render",BI]]),HI={class:"cape-fields-table"},GI={key:0},WI=o.defineComponent({__name:"CapeFieldsTable",setup(e){const t=Za(),n=o.computed(()=>t.all);return(r,i)=>(o.openBlock(),o.createElementBlock("table",HI,[i[0]||(i[0]=o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{scope:"col"},"Field id"),o.createElementVNode("th",{scope:"col"},"Field name"),o.createElementVNode("th",{scope:"col"},"Field type"),o.createElementVNode("th",{scope:"col"},"Description")])],-1)),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("tr",{key:a.id},[o.createElementVNode("td",null,o.toDisplayString(a.id),1),o.createElementVNode("td",null,o.toDisplayString(a.label),1),o.createElementVNode("td",null,[o.createTextVNode(o.toDisplayString(a.type)+" ",1),a.isMultiple?(o.openBlock(),o.createElementBlock("span",GI," list")):o.createCommentVNode("",!0)]),o.createElementVNode("td",null,o.toDisplayString(a.description),1)]))),128))])]))}});function jI(e){const n=It().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const zI=o.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=o.computed(()=>jI(t.record));return(r,i)=>{const a=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(a,{to:n.value},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["to"])}}}),KI={key:0,class:"cape-next-result"},qI={key:1,class:"cape-next-result cape-next-result-null"},XI=o.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",KI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",qI,[o.renderSlot(i.$slots,"otherwise")]))}}}),JI={key:0,class:"cape-previous-result"},QI={key:1,class:"cape-previous-result cape-previous-result-null"},ZI=o.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",JI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",QI,[o.renderSlot(i.$slots,"otherwise")]))}}}),e1={key:0,class:"cape-previous-record"},t1={key:1,class:"cape-previous-record cape-previous-record-null"},n1=o.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",e1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(i.$slots,"otherwise")]))}}}),r1={key:0,class:"cape-next-record"},i1={key:1,class:"cape-next-record cape-next-record-null"},a1=o.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",r1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",i1,[o.renderSlot(i.$slots,"otherwise")]))}}}),us=class us{static add(t){us.functions.push(t)}static all(){return us.functions}static async execute(t,n){for(const r of us.all().sort((i,a)=>i.priority-a.priority))try{await r.action(t,n)}catch(i){console.error("Error executing action:",i);return}}};Pe(us,"functions",[]);let Ps=us;const fg={High:10,Low:1e3},Ha=class Ha{static async fetchIndexPageTitle(){if(Ha.indexHtmlTitle)return Ha.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),a=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ha.indexHtmlTitle=(a==null?void 0:a.text)||void 0,Ha.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:r,params:i,meta:a}=t;if(r==="record"&&n.recordPageTitleExpression){const c=i==null?void 0:i.id;if(!c)throw new Error("Record ID is required but not specified.");if(ti().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const d=Sr().byId(c);return n.recordPageTitleExpression(d)}if(a!=null&&a.title)return a.title;const s=await this.fetchIndexPageTitle();return s||It().title}};Pe(Ha,"indexHtmlTitle");let xd=Ha;const o1={class:"cape-labelled-value"},s1={key:0,class:"cape-error cape-labelled-value-error"},l1=["title"],c1={key:1,class:"cape-labelled-value-label"},u1=o.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=o.computed(()=>{var r;return(r=t.fieldValue)==null?void 0:r.field});return(r,i)=>(o.openBlock(),o.createElementBlock("div",o1,[!r.fieldValue||!n.value?(o.openBlock(),o.createElementBlock("div",s1," [Error, trying to render label for a non-existent field] ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(o.openBlock(),o.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},o.toDisplayString(n.value.label),9,l1)):(o.openBlock(),o.createElementBlock("div",c1,o.toDisplayString(n.value.label),1)),o.renderSlot(r.$slots,"default")],64))]))}}),f1=o.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>t.fieldValuePair.value),i=o.computed(()=>t.fieldValuePair.field),a=o.computed(()=>{const s="/",l={};try{n.byId(`field-${i.value.id}`).display==="advanced"&&(l.advanced="true"),l.jump="true",l[`field-${i.value.id}-mode`]="is",l[`field-${i.value.id}-term`]=`${r.value}`}catch{console.error(`Attempt to create link from field ${i.value.id} which has no related filter.`)}return{path:s,query:l}});return(s,l)=>{const c=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(c,{to:a.value},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["to"])}}}),d1=o.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r*100+"%"});return(r,i)=>o.toDisplayString(n.value)}}),h1=o.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r.toFixed(t.digits)});return(r,i)=>o.toDisplayString(n.value)}}),p1={__name:"CapeShowAllResultsToggle",setup(e){const t=Bt();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAllResults]])}},m1={key:0,class:"cape-results-info"},v1={key:0},_1={key:1},g1={key:1,class:"cape-results-count"},y1=o.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Bt();return(n,r)=>o.unref(t).allResultsAreVisible?(o.openBlock(),o.createElementBlock("div",m1,[o.unref(t).visibleCount==1?(o.openBlock(),o.createElementBlock("div",v1,"Showing 1 matching record.")):(o.openBlock(),o.createElementBlock("div",_1,"Showing all "+o.toDisplayString(o.unref(t).visibleCount)+" matching records.",1))])):(o.openBlock(),o.createElementBlock("div",g1," Showing first "+o.toDisplayString(o.unref(t).visibleCount)+" of "+o.toDisplayString(o.unref(t).totalCount)+" matching records. ",1))}}),S1={class:"cape-results-count"},E1=o.defineComponent({__name:"CapeResultsCount",setup(e){const t=Bt();return(n,r)=>(o.openBlock(),o.createElementBlock("span",S1,o.toDisplayString(o.unref(t).totalCount),1))}}),T1={class:"cape-filter-field-enum-is-radio"},N1={class:"form-check form-check-inline"},w1=["id"],b1=["for"],D1=["id","value"],k1=["for"],C1=o.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",T1,[o.createElementVNode("li",N1,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),type:"radio",value:""},null,8,w1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"},s[2]||(s[2]=[o.createElementVNode("em",null,"any",-1)]),8,b1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[1]||(s[1]=c=>o.unref(r).isTerm=c),value:l,type:"radio"},null,8,D1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,k1)]))),128))]))}}),I1=["aria-label"],R1=["value"],O1=o.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),"aria-label":"Select "+o.unref(i).label+" value."},[s[1]||(s[1]=o.createElementVNode("option",{key:"",value:""},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("option",{key:l,value:l},o.toDisplayString(l),9,R1))),128))],8,I1)),[[o.vModelSelect,o.unref(r).isTerm]])}}),P1={class:"cape-filter-field-enum-one-of-checkbox"},A1=["id","value"],M1=["for"],x1=o.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",P1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[0]||(s[0]=c=>o.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,A1),[[o.vModelCheckbox,o.unref(r).oneOfTerms]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,M1)]))),128))]))}});function Vd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function V1(e){return(...t)=>!e(...t)}function L1(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function F1(e){return e.filter(t=>!t.$isLabel)}function Ld(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,[])}const dg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Y1={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 Vd(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},filteringSortFunc:{type:Function,default:null}},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):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(V1(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 dg(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return dg(Ld(this.groupValues,this.groupLabel),F1)(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(Vd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Vd(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.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(i=>n.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",r)}else{const 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))},filterOptions(e,t,n,r){return t?e.filter(i=>L1(r(i,n),t)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):r(i,n).length-r(a,n).length):e},filterGroups(e,t,n,r,i){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(s[n],e,t,i);return l.length?{[r]:s[r],[n]:l}:[]})}}},$1={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}}},hg={name:"vue-multiselect",mixins:[Y1,$1],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},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const B1=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],U1={ref:"tags",class:"multiselect__tags"},H1={class:"multiselect__tags-wrap"},G1=["textContent"],W1=["onKeypress","onMousedown"],j1=["textContent"],z1={class:"multiselect__spinner"},K1=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],q1=["id","aria-multiselectable"],X1={key:0},J1={class:"multiselect__option"},Q1=["aria-selected","id","role"],Z1=["onClick","onMouseenter","data-select","data-selected","data-deselect"],eR=["data-select","data-deselect","onMouseenter","onMousedown"],tR={class:"multiselect__option"},nR={class:"multiselect__option"};function rR(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=o.withKeys(s=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",U1,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",H1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.visibleValues,(s,l)=>o.renderSlot(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(s))},null,8,G1),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,W1)],32))])),256))],512),[[o.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,j1)]):o.createCommentVNode("v-if",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",z1,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:o.normalizeStyle(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=o.withModifiers(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=o.withModifiers(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=o.withKeys(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=o.withKeys(o.withModifiers(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,K1)):o.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("v-if",!0)],512),o.createVNode(o.Transition,{name:"multiselect",persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",X1,[o.createElementVNode("span",J1,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(s,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(s),id:e.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,s),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(s),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,Z1)),s&&(s.$isLabel||s.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,s),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(s),["prevent"])},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,eR)):o.createCommentVNode("v-if",!0)],8,Q1))),128)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",tR,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=o.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",nR,[o.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=o.createTextVNode("List is empty."))])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,q1)],36),[[o.vShow,e.isOpen]])]),_:3})],42,B1)}hg.render=rR;const iR=o.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createBlock(o.unref(hg),{id:"filter-multiselect-"+o.unref(i).id,modelValue:o.unref(r).oneOfTerms,"onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:o.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),aR={};function oR(e,t){const n=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("p",null,[t[0]||(t[0]=o.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=o.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=o.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=o.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=o.createTextVNode(" team at the ")),t[5]||(t[5]=o.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=o.createTextVNode(", UK. This site uses Cape ")),o.createVNode(n),t[7]||(t[7]=o.createTextVNode(". "))])}const sR=Bi(aR,[["render",oR]]),lR={},cR={class:"border border-black p-1 fixed right-1 top-1"};function uR(e,t){return o.openBlock(),o.createElementBlock("div",cR,t[0]||(t[0]=[o.createStaticVNode('<span class="block sm:hidden"><sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const fR=Bi(lR,[["render",uR]]),dR="3.0.0",hR={class:"cape-plugin-version"},pR=o.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("span",hR,"v"+o.toDisplayString(o.unref(dR)),1))}}),mR={class:"cape-content-page"},vR=["href"],_R=["href"],gR={key:0},yR={key:0},SR=["href"],ER=o.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=It();return(n,r)=>{var u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;const i=o.resolveComponent("cape-record-count"),a=o.resolveComponent("cape-download-json-button"),s=o.resolveComponent("cape-download-csv-button"),l=o.resolveComponent("cape-software"),c=o.resolveComponent("cape-fields-table");return o.openBlock(),o.createElementBlock("div",mR,[r[8]||(r[8]=o.createElementVNode("h2",null,"About the data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),o.createVNode(i),r[1]||(r[1]=o.createTextVNode(" records. The fields in the dataset are described below. "))]),o.createElementVNode("p",null,[r[2]||(r[2]=o.createTextVNode(" This data is copyright ")),o.createElementVNode("a",{href:(f=(u=o.unref(t))==null?void 0:u.copyright)==null?void 0:f.url},o.toDisplayString(((p=(d=o.unref(t))==null?void 0:d.copyright)==null?void 0:p.title)??"MISSING DATA"),9,vR),r[3]||(r[3]=o.createTextVNode(" and may be reused under the ")),o.createElementVNode("a",{href:(m=(h=o.unref(t))==null?void 0:h.license)==null?void 0:m.url},o.toDisplayString(((_=(v=o.unref(t))==null?void 0:v.license)==null?void 0:_.title)??"MISSING DATA"),9,_R),r[4]||(r[4]=o.createTextVNode(" license. "))]),(g=o.unref(t))!=null&&g.creators?(o.openBlock(),o.createElementBlock("p",gR,[r[5]||(r[5]=o.createTextVNode(" This dataset was created by ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).creators,(I,B)=>{var k;return o.openBlock(),o.createElementBlock("span",{key:B},[o.createElementVNode("span",null,o.toDisplayString(I.name),1),B+1<((k=o.unref(t).creators)==null?void 0:k.length)?(o.openBlock(),o.createElementBlock("span",yR,", ")):o.createCommentVNode("",!0)])}),128)),r[6]||(r[6]=o.createTextVNode(". "))])):o.createCommentVNode("",!0),o.createElementVNode("p",null,[o.createTextVNode(' If using this data, please attribute it as "'+o.toDisplayString(((C=(S=o.unref(t))==null?void 0:S.attribution)==null?void 0:C.title)??"MISSING DATA")+'" with a link to ',1),o.createElementVNode("a",{href:(V=(A=o.unref(t))==null?void 0:A.attribution)==null?void 0:V.url},o.toDisplayString(((b=(z=o.unref(t))==null?void 0:z.attribution)==null?void 0:b.url)??"MISSING DATA"),9,SR),r[7]||(r[7]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createVNode(a,{style:{"margin-right":"1rem"}}),o.createVNode(s)]),r[9]||(r[9]=o.createElementVNode("h2",null,"About this software",-1)),o.createVNode(l),r[10]||(r[10]=o.createElementVNode("h2",null,"Schema",-1)),r[11]||(r[11]=o.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),o.createVNode(c)])}}}),TR=o.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value"),i=o.resolveComponent("cape-record-link");return o.openBlock(),o.createBlock(i,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),NR={class:"cape-navigation"},wR={class:"cape-navigation-items"},bR={class:"cape-navigation-item"},DR=o.defineComponent({__name:"CapeNavigation",setup(e){const t=It(),n=o.computed(()=>t.pages);return(r,i)=>{const a=o.resolveComponent("router-link"),s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",NR,[o.createElementVNode("nav",null,[o.createElementVNode("ul",wR,[o.createElementVNode("li",bR,[o.createVNode(a,{class:"cape-navigation-link",to:"/"},{default:o.withCtx(()=>i[0]||(i[0]=[o.createTextVNode("Search")])),_:1,__:[0]})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,l=>(o.openBlock(),o.createElementBlock("li",{class:"cape-navigation-item",key:l.path},[o.createVNode(a,{class:"cape-navigation-link",to:l.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label),1)]),_:2},1032,["to"])]))),128))])]),o.createElementVNode("main",null,[o.createVNode(s)])])}}}),kR={class:"cape-record-card bg-blue-100 py-2 px-4"},CR={class:"text-xl border-black border-b mb-4"},IR={class:"border-b mb-4 pb-4 border-b-black"},RR={class:"md:grid md:grid-cols-2 md:gap-4"},OR={class:"border-b mb-4 pb-4 border-b-black"},PR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"md:grid md:grid-cols-2 md:gap-4"},MR={class:"mb-5"},xR=o.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-previous-result"),i=o.resolveComponent("cape-next-result"),a=o.resolveComponent("cape-previous-record"),s=o.resolveComponent("cape-next-record"),l=o.resolveComponent("cape-labelled-value");return o.openBlock(),o.createElementBlock("div",kR,[o.createElementVNode("h2",CR,"RecordCard Placeholder ID: "+o.toDisplayString(t.record.record_number.value),1),o.createElementVNode("div",IR,[o.createElementVNode("div",RR,[o.createVNode(r,{record:t.record},{before:o.withCtx(()=>n[0]||(n[0]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[1]||(n[1]=[o.createTextVNode("[start of results]")])),_:1},8,["record"]),o.createVNode(i,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[3]||(n[3]=[o.createTextVNode("[end of results]")])),_:1},8,["record"])])]),o.createElementVNode("div",OR,[o.createElementVNode("div",PR,[o.createVNode(a,{record:t.record},{before:o.withCtx(()=>n[4]||(n[4]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[5]||(n[5]=[o.createTextVNode("[start of dataset]")])),_:1},8,["record"]),o.createVNode(s,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[6]||(n[6]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[7]||(n[7]=[o.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),o.createElementVNode("div",AR,[o.createElementVNode("ul",MR,[o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=o.createElementVNode("div",null," Column 2 ",-1))])])}}}),VR={};function LR(e,t){const n=o.resolveComponent("cape-page-width-indicator"),r=o.resolveComponent("cape-non-prod-warning");return o.openBlock(),o.createElementBlock("header",null,[o.createVNode(n),t[0]||(t[0]=o.createElementVNode("h1",{class:"text-4xl"},[o.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),o.createVNode(r)])}const FR=Bi(VR,[["render",LR]]),YR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},$R={class:"text-left"},BR=["href"],UR={class:"text-right"},HR={__name:"CapeFooter",setup(e){const{metadata:t}=It();return(n,r)=>{var a,s,l,c;const i=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("footer",YR,[o.createElementVNode("div",$R,[r[0]||(r[0]=o.createTextVNode(" © ")),o.createElementVNode("a",{href:(s=(a=o.unref(t))==null?void 0:a.copyright)==null?void 0:s.url},o.toDisplayString(((c=(l=o.unref(t))==null?void 0:l.copyright)==null?void 0:c.title)??"MISSING COPYRIGHT METADATA"),9,BR)]),r[2]||(r[2]=o.createElementVNode("div",{class:"text-center"},null,-1)),o.createElementVNode("div",UR,[r[1]||(r[1]=o.createTextVNode(" Powered by Cape ")),o.createVNode(i)])])}}},GR={class:"cape-record-label"},WR=o.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value");return o.openBlock(),o.createElementBlock("span",GR,[o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" # ")),o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),jR={class:"cape-filter-controls cape-filter-controls-top"},zR={class:"cape-advanced-search-toggle-control switch switch-sm"},KR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},qR={class:"cape-advanced-search-toggle-control switch switch-sm"},XR=o.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=_t(),n=o.computed(()=>t.showAdvanced);return(r,i)=>{const a=o.resolveComponent("cape-intro"),s=o.resolveComponent("cape-advanced-search-toggle"),l=o.resolveComponent("cape-form-reset-button"),c=o.resolveComponent("cape-filters"),u=o.resolveComponent("cape-results");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(a),o.createElementVNode("div",jR,[o.createElementVNode("div",zR,[o.createVNode(s,{id:"cape-advanced-search-toggle-top"}),i[0]||(i[0]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),o.createVNode(l)]),o.createElementVNode("div",null,[o.createVNode(c)]),n.value?(o.openBlock(),o.createElementBlock("div",KR,[o.createElementVNode("div",qR,[o.createVNode(s,{id:"cape-advanced-search-toggle-bottom"}),i[1]||(i[1]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),o.createVNode(l)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(u)])],64)}}}),JR={},QR={class:"cape-intro mb-10"};function ZR(e,t){const n=o.resolveComponent("cape-record-count");return o.openBlock(),o.createElementBlock("p",QR,[t[0]||(t[0]=o.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=o.createTextVNode(" This repository contains ")),o.createVNode(n),t[2]||(t[2]=o.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const eO=Bi(JR,[["render",ZR]]),tO=o.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return It().metadata}}}),nO={template:"#templateCapeSummaryCard",props:["record"]},rO={template:"#templateCapeNavigation",computed:{...Jf(It,["pages"])}},iO={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},aO={template:"#templateCapeHeader"},oO={template:"#templateCapeFooter"},sO={template:"#templateCapeRecordLabel",props:["record"]},lO={template:"#templateCapeHomepageLayout",computed:{...Jf(_t,["showAdvanced"]),...Jf(Bt,{hasMatches:e=>e.totalCount>0})}},pg={install:function(e,t){e.use(IN());const n=this.makeComponentMap(t);this.registerComponents(e,n),It().setOptions(t),this.registerRoutes(e,t.pages,ed);const i=async a=>{const s=await xd.getPageTitle(a,t);s&&(document.title=s)};Ps.add({priority:fg.High,action:i}),ed.afterEach(async(a,s)=>{ti().onLoaded(async()=>{await Ps.execute(a,s)})}),e.use(ed)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&o.toRaw(t).forEach(r=>{const i={path:r.path,component:e.component(r.component)};r.title&&(i.meta={title:r.title}),n.addRoute(i)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=tO,t.CapeFooter=oO,t.CapeHeader=aO,t.CapeHomepageLayout=lO,t.CapeNavigation=rO,t.CapeRecordCard=iO,t.CapeRecordLabel=sO,t.CapeSummaryCard=nO),e.additionalComponents!==void 0)for(const[n,r]of Object.entries(e.additionalComponents))t[n]=r;return t},builtInComponentsMap(){return{CapeFilterFieldDate:II,CapeFilterFieldEnum:hI,CapeFilterFieldEnumIsRadio:C1,CapeFilterFieldEnumIsSelect:O1,CapeFilterFieldEnumOneOfCheckbox:x1,CapeFilterFieldEnumOneOfMultiselect:iR,CapeFilterFieldInteger:EI,CapeFilterFieldText:KC,CapeFilterFreeText:ZC,CapeAboutPage:ER,CapeFooter:HR,CapeHeader:FR,CapeHomepageLayout:XR,CapeIntro:eO,CapeNavigation:DR,CapeRecordCard:xR,CapeRecordLabel:WR,CapeSummaryCard:TR,CapeAdvancedSearchToggle:uw,CapeFilters:dw,CapeFormResetButton:hw,CapeResults:Aw,CapeResultsControls:MI,CapeResultsCount:E1,CapeResultsInfo:y1,CapeShowAllResultsToggle:p1,CapeSortOrder:lI,CapeDownloadCsvButton:FI,CapeDownloadJsonButton:UI,CapeFieldsTable:WI,CapeFixedNumericValue:h1,CapeLabelledContent:u1,CapeLabelledValue:Yw,CapeLinkValue:f1,CapeNextRecord:a1,CapeNextResult:XI,CapePercentageValue:d1,CapePreviousRecord:n1,CapePreviousResult:ZI,CapeRecordCount:cw,CapeRecordLink:zI,CapeSingleValue:BC,CapeSoftware:sR,CapeValue:Fw,CapeVersion:pR,CapeHomePage:mw,CapeLoadError:gw,CapeLoading:Tw,CapeNonProdWarning:kw,CapePageWidthIndicator:fR,CapeRecordPage:Rw,CapeRoot:sw}}},cO={};function uO(e,t){const n=o.resolveComponent("CapeHeader"),r=o.resolveComponent("CapeRoot"),i=o.resolveComponent("CapeLoading"),a=o.resolveComponent("CapeFooter");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(n),(o.openBlock(),o.createBlock(o.Suspense,null,{default:o.withCtx(()=>[o.createVNode(r)]),fallback:o.withCtx(()=>[o.createVNode(i)]),_:1})),o.createVNode(a)],64)}const fO=Bi(cO,[["render",uO]]),dO=e=>{const t=o.createApp(fO);return t.use(pg,e),t},qr=class qr{static register(t){qr.loggers.push(t)}static clear(){qr.loggers=[]}static debug(t,n){qr.loggers.forEach(r=>r.debug(t,n))}static info(t,n){qr.loggers.forEach(r=>r.info(t,n))}static warn(t,n){qr.loggers.forEach(r=>r.warn(t,n))}static error(t,n){qr.loggers.forEach(r=>r.error(t,n))}};Pe(qr,"loggers",[]);let As=qr;var Qt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Qt||{});class hO{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Qt.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Qt.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Qt.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Qt.Error&&console.error(t,n??"")}}const pO={install:function(e,t){const n=new hO(t.loggingLevel);As.register(n)}};class mO{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Qt.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Debug}})}info(t,n){this.loggingLevel>=Qt.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Info}})}warn(t,n){this.loggingLevel>=Qt.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Warn}})}error(t,n){this.loggingLevel>=Qt.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function Zt(e,t){return e||t}function ut(e,t){return e[t]}var Ut=void 0,Nt=null,Fd="",Rc="function",Ms="object",Rr="prototype",Oc="__proto__",ji="undefined",Pc="constructor",Yd="Symbol",uo="length",Ac="name",Rt="call",xs="toString",$d="getOwnPropertyDescriptor",Ht=Zt(Object),Bd=ut(Ht,Rr),mg=Zt(String),zi=ut(mg,Rr),Vs=Zt(Math),vg=Zt(Array),Mc=ut(vg,Rr),Or=ut(Mc,"slice"),_g="_polyfill",gg="__nw21$polytype__";function ft(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function vO(e,t,n){var r=ft(e,n);return r.e?t:r.v}var Ud;function xc(e){return function(t){return typeof t===e}}function yg(e){var t="[object "+e+"]";return function(n){return!!(n&&_O(n)===t)}}function _O(e){return Bd[xs].call(e)}function dt(e){return typeof e===ji||e===ji}function gO(e){return e===Ut}function K(e){return e===Nt||dt(e)}function Hd(e){return e===Nt||e===Ut}function yO(e){return!!e||e!==Ut}function SO(e){return!Ud&&(Ud=["string","number","boolean",ji,"symbol","bigint"]),e!==Ms&&Ud.indexOf(e)!==-1}var ye=xc("string"),Se=xc(Rc);function en(e){return!e&&K(e)?!1:!!e&&typeof e===Ms}var ke=ut(vg,"isArray"),EO=yg("Date"),Ls=xc("number"),Sg=xc("boolean"),Gd=yg("Error");function oi(e){return!!(e&&e.then&&Se(e.then))}function Vc(e){return!(!e||vO(function(){return!(e&&0+e)},!e))}function Wd(){}function TO(){return!1}var Gt=Zt(mg),NO="[object Error]";function se(e,t){var n=Fd,r=Bd[xs][Rt](e);r===NO&&(e={stack:Gt(e.stack),message:Gt(e.message),name:Gt(e.name)});try{n=JSON.stringify(e,Nt,t?typeof t=="number"?t:4:Ut),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Nt)||Gt(e)}catch(i){n=" - "+se(i,t)}return r+": "+n}function on(e){throw new Error(e)}function qn(e){throw new TypeError(e)}function Lc(e){Hd(e)&&qn("Cannot convert undefined or null to object")}function wO(e){ye(e)||qn("'"+se(e)+"' is not a string")}function gn(e,t){return!!e&&Bd.hasOwnProperty[Rt](e,t)}var bO=Zt(ut(Ht,$d),Wd),si=Zt(ut(Ht,"hasOwn"),DO);function DO(e,t){return Lc(e),gn(e,t)||!!bO(e,t)}function Me(e,t,n){if(e&&(en(e)||Se(e))){for(var r in e)if(si(e,r)&&t[Rt](e,r,e[r])===-1)break}}function oe(e,t,n){if(e)for(var r=e[uo]>>>0,i=0;i<r&&!(i in e&&t[Rt](e,e[i],i,e)===-1);i++);}var Ki=Fc;function Fc(e,t,n){var r=t?t[e]:Nt;return function(i){var a=(i?i[e]:Nt)||r;if(a||n){var s=arguments;return(a||n).apply(i,a?Or[Rt](s,1):s)}qn('"'+Gt(e)+'" not defined for '+se(i))}}function kO(e){return function(t){return t[e]}}var CO=Zt(ut(Ht,$d),Wd),Yc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function IO(e){var t={};if(t[Yc.c]=!0,t[Yc.e]=!0,e.l){t.get=function(){return e.l.v};var n=CO(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Yc[r]]=gO(i)?t[Yc[r]]:i}),t}var Pr=ut(Ht,"defineProperty"),RO=ut(Ht,"defineProperties");function Le(e,t,n){return Pr(e,t,IO(n))}function Eg(e,t,n,r,i){var a={};return Me(e,function(s,l){$c(a,s,t?l:s),$c(a,l,s)}),r?r(a):a}function $c(e,t,n,r){Pr(e,t,{value:n,enumerable:!0,writable:!1})}var OO=Zt(ut(Ht,"isFrozen"),TO),Tg=ut(Ht,"freeze");function PO(e){return e}function AO(e){return Lc(e),e[Oc]||Nt}var jd=ut(Ht,"assign"),Ar=ut(Ht,"keys");function Ng(e,t){if((ke(e)||en(e)||Se(e))&&!OO(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Me(e,function(r,i){Ng(i,t)}),An(e)}return e}function Fs(e){return Tg?Ng(e,[]):e}var An=Zt(Tg,PO),zd=Zt(ut(Ht,"getPrototypeOf"),AO);function MO(e){return Eg(e,1,0,An)}function xO(e){return Eg(e,0,0,An)}function VO(e){var t={};return Me(e,function(n,r){$c(t,n,r[1]),$c(t,r[0],r[1])}),An(t)}function LO(e){return VO(e)}var wg=xO({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),bg="__tsUtils$gblCfg",Kd;function Dg(){var e;return typeof globalThis!==ji&&(e=globalThis),!e&&typeof self!==ji&&(e=self),!e&&typeof window!==ji&&(e=window),!e&&typeof global!==ji&&(e=global),e}function Bc(){if(!Kd){var e=ft(Dg).v||{};Kd=e[bg]=e[bg]||{}}return Kd}var kg=ut(Vs,"min"),Ys=ut(Vs,"max"),Cg=Ki("slice",zi),Xn=Ki("substring",zi),li=Fc("substr",zi,FO);function FO(e,t,n){return Lc(e),n<0?Fd:(t=t||0,t<0&&(t=Ys(t+e[uo],0)),dt(n)?Cg(e,t):Cg(e,t,t+n))}function qd(e,t){return Xn(e,0,t)}function YO(e,t){return e&&(ft(function(){e[_g]=!0,e[gg]=t}),ft(Le,[e,_g,{v:!0,w:!1,e:!1}]),ft(Le,[e,gg,{v:t,w:!1,e:!1}])),e}var Mr=Zt(ut(Ht,"create"),$O);function $O(e,t){var n=null;function r(){}if(Hd(e))n={};else{var i=typeof e;i!==Ms&&i!==Rc&&qn("Prototype must be an Object or function: "+se(e)),r[Rr]=e,ft(function(){r[Oc]=e}),n=new r}return t&&ft(RO,[n,t]),n}function Mn(){return(Date.now||BO)()}function BO(){return new Date().getTime()}function qi(e,t,n){return e.apply(t,n)}var gt;function ci(){gt=Bc()}function Ig(e,t){var n={};return!gt&&ci(),n.b=gt.lzy,Pr(n,"v",{configurable:!0,get:function(){var r=qi(e,null,t);return gt.lzy||Pr(n,"v",{value:r}),n.b=gt.lzy,r}}),n}var UO=ut(Vs,"random"),HO=Ig(function(){for(var e=Mn().toString(36).slice(2);e.length<16;)e+=UO().toString(36).slice(2);return e=e.substring(0,16),e}),Rg="_urid",GO="$nw21sym",Xd,WO=0;function jO(){if(!Xd){var e=Bc();Xd=e.gblSym=e.gblSym||{k:{},s:{}}}return Xd}var Uc;function Jd(e){var t="_"+WO+++"_"+HO.v,n=Yd+"("+e+")";function r(a,s){Le(i,a,{v:s,e:!1,w:!1})}var i=Mr(null);return r("description",Gt(e)),r(xs,function(){return n+GO+t}),r("valueOf",function(){return i}),r("v",n),r("_uid",t),YO(i,"symbol")}function zO(e){var t=jO();if(!si(t.k,e)){var n=Jd(e),r=Ar(t.s).length;n[Rg]=function(){return r+"_"+n[xs]()},t.k[e]=n,t.s[n[Rg]()]=Gt(e)}return t.k[e]}function KO(e){!Uc&&(Uc={});var t,n=wg[e];return n&&(t=Uc[n]=Uc[n]||Jd(Yd+"."+n)),t}function yn(e){return Pr({toJSON:function(){return e}},"v",{value:e})}var Og="window",$s;function fo(e,t){var n;return function(){return!gt&&ci(),(!n||gt.lzy)&&(n=yn(ft(e,t).v)),n.v}}function Sn(e){return!gt&&ci(),(!$s||e===!1||gt.lzy)&&($s=yn(ft(Dg).v||Nt)),$s.v}function ot(e,t){var n;if(!$s||t===!1?n=Sn(t):n=$s.v,n&&n[e])return n[e];if(e===Og)try{return window}catch{}return Nt}function Pg(){return!!Ot()}var Ot=fo(ot,["document"]);function Hc(){return!!sn()}var sn=fo(ot,[Og]);function qO(){return!!Jn()}var Jn=fo(ot,["navigator"]);function XO(){return!!Ag()}var Ag=fo(ot,["history"]),JO=fo(function(){return!!ft(function(){return process&&(process.versions||{}).node}).v}),Mg=fo(function(){return!!ft(function(){return self&&self instanceof WorkerGlobalScope}).v}),ho,Qd;function Gc(){return ho=yn(ft(ot,[Yd]).v),ho}function QO(e){var t=(gt.lzy?0:ho)||Gc();return t.v?t.v[e]:Ut}function ZO(){return!!eP()}function eP(){return!gt&&ci(),((gt.lzy?0:ho)||Gc()).v}function Zd(e,t){var n=wg[e];!gt&&ci();var r=(gt.lzy?0:ho)||Gc();return r.v?r.v[n||e]:KO(e)}function Bs(e,t){!gt&&ci();var n=(gt.lzy?0:ho)||Gc();return n.v?n.v(e):Jd(e)}function eh(e){return!gt&&ci(),Qd=(gt.lzy?0:Qd)||yn(ft(QO,["for"]).v),(Qd.v||zO)(e)}function th(e){return!!e&&Se(e.next)}function xg(e){return!Hd(e)&&Se(e[Zd(3)])}var Wc;function nh(e,t,n){if(e&&(th(e)||(!Wc&&(Wc=yn(Zd(3))),e=e[Wc.v]?e[Wc.v]():Nt),th(e))){var r=Ut,i=Ut;try{for(var a=0;!(i=e.next()).done&&t[Rt](n||e,i.value,a,e)!==-1;)a++}catch(s){r={e:s},e.throw&&(i=Nt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function po(e,t){return!dt(t)&&e&&(ke(t)?qi(e.push,e,t):th(t)||xg(t)?nh(t,function(n){e.push(n)}):e.push(t)),e}var Ft=Ki("indexOf",Mc),Us=Ki("map",Mc);function jc(e,t,n){return((e?e.slice:Nt)||Or).apply(e,Or[Rt](arguments,1))}var tP=Ki("reduce",Mc),rh,Vg=Zt(ut(Ht,"setPrototypeOf"),nP);function nP(e,t){var n;return!rh&&(rh=yn((n={},n[Oc]=[],n instanceof Array))),rh.v?e[Oc]=t:Me(t,function(r,i){return e[r]=i}),e}function rP(e,t,n){ft(Le,[t,Ac,{v:e,c:!0,e:!1}]),t=Vg(t,n);function r(){this[Pc]=t,ft(Le,[this,Ac,{v:e,c:!0,e:!1}])}return t[Rr]=n===Nt?Mr(n):(r[Rr]=n[Rr],new r),t}function Lg(e,t){t&&(e[Ac]=t)}function Fg(e,t,n){var r=Error,i=r[Rr][Ac],a=Error.captureStackTrace;return rP(e,function(){var s=this,l=arguments;try{ft(Lg,[r,e]);var c=qi(r,s,Or[Rt](l))||s;if(c!==s){var u=zd(s);u!==zd(c)&&Vg(c,u)}return a&&a(c,s[Pc]),t&&t(c,l),c}finally{ft(Lg,[r,i])}},r)}var ih;function iP(e){throw ih||(ih=Fg("UnsupportedError")),new ih(e)}function aP(e){return function(n){return Lc(n),n&&n.replace&&(n=n.replace(e,Fd)),n}}var oP=aP(/^\s+|(?=\s)\s+$/g),Ze=Fc("trim",zi,oP),ln=ut(Vs,"floor"),ah,oh,sh;function Wt(e){if(!e||typeof e!==Ms)return!1;sh||(sh=Hc()?sn():!0);var t=!1;if(e!==sh){oh||(ah=Function[Rr][xs],oh=ah[Rt](Ht));try{var n=zd(e);t=!n,t||(gn(n,Pc)&&(n=n[Pc]),t=!!(n&&typeof n===Rc&&ah[Rt](n)===oh))}catch{}}return t}function sP(e){return e.value&&Bg(e),!0}var Yg=[fP,Bg,hP,dP];function lP(e,t,n,r){var i;return oe(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function lh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],s={handler:n.handler,src:n.src,path:a},l=typeof t,c=!1,u=t===Nt;u||(t&&l===Ms?c=Wt(t):u=SO(l));var f={type:l,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,p){return lh(e,d,p?s:n,p)},copyTo:function(d,p){return $g(e,d,p,s)}};return f.isPrim?i&&i[Rt](n,f)?f.result:t:lP(e,t,a,function(d){Le(f,"result",{g:function(){return d.v},s:function(m){d.v=m}});for(var p=0,h=i;!(h||(p<Yg.length?Yg[p++]:sP))[Rt](n,f);)h=Nt})}function $g(e,t,n,r){if(!K(n))for(var i in n)t[i]=lh(e,n[i],r,i);return t}function cP(e,t,n){var r={handler:n,src:t,path:[]};return $g([],e,t,r)}function uP(e,t){var n={handler:t,src:e};return lh([],e,n)}function fP(e){var t=e.value;if(ke(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function dP(e){var t=e.value;return EO(t)?(e.result=new Date(t.getTime()),!0):!1}function hP(e){return e.type===Rc}function Bg(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function Ug(e,t){return oe(t,function(n){cP(e,n)}),e}function Hg(e,t,n,r,i,a,s){return Ug(uP(e)||{},Or[Rt](arguments))}function pP(e,t,n,r,i,a,s){return Ug(e||{},Or[Rt](arguments))}var Gg=Ki("split",zi);function Wg(e,t,n){if(e&&t){var r=Gg(t,"."),i=r.pop();oe(r,function(a){K(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var mP=kO(uo),ch;function xr(){return!gt&&ci(),(!ch||gt.lzy)&&(ch=yn(ft(ot,["performance"]).v)),ch.v}var jg=ut(Vs,"round"),vP=Zt(ut(Ht,$d),Wd),zg=Fc("endsWith",zi,_P);function _P(e,t,n){wO(e);var r=ye(t)?t:Gt(t),i=!dt(n)&&n<e[uo]?n:e[uo];return Xn(e,i-r[uo],i)===r}var jt=Ki("indexOf",zi),uh="ref",fh="unref",dh="hasRef",gP="enabled";function yP(e,t,n){var r=!0,i=e?t(Nt):Nt,a;function s(){return r=!1,i&&i[fh]&&i[fh](),a}function l(){i&&n(i),i=Nt}function c(){return i=t(i),r||s(),a}function u(f){!f&&i&&l(),f&&!i&&c()}return a={cancel:l,refresh:c},a[dh]=function(){return i&&i[dh]?i[dh]():r},a[uh]=function(){return r=!0,i&&i[uh]&&i[uh](),a},a[fh]=s,a=Pr(a,gP,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Nt}}}var SP,EP;function TP(e){var t=Se(e)?e:SP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>0&&Se(n[0])&&(t=n[0])}return t||setTimeout}function NP(e){var t=Se(e)?e:EP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>1&&Se(n[1])&&(t=n[1])}return t||clearTimeout}function Kg(e,t,n){var r=ke(t),i=r?t.length:0,a=TP(i>0?t[0]:r?Ut:t),s=NP(i>1?t[1]:Ut),l=n[0];n[0]=function(){c.dn(),qi(l,Ut,Or[Rt](arguments))};var c=yP(e,function(u){if(u){if(u.refresh)return u.refresh(),u;qi(s,Ut,[u])}return qi(a,Ut,n)},function(u){qi(s,Ut,[u])});return c.h}function En(e,t){return Kg(!0,Ut,Or[Rt](arguments))}function wP(e,t){return Kg(!1,Ut,Or[Rt](arguments))}var zc,Kc="constructor",Vr="prototype",qc="function",Xc="_dynInstFuncs",hh="_isDynProxy",mo="_dynClass",bP="_dynCls$",ph="_dynInstChk",Hs=ph,qg="_dfOpts",Xg="_unknown_",mh="__proto__",Jc="_dyn"+mh,Jg="__dynProto$Gbl",vh="_dynInstProto",Qc="useBaseInst",_h="setInstFuncs",gh=Object,Gs=gh.getPrototypeOf,Qg=gh.getOwnPropertyNames,Zg=Sn(),yh=Zg[Jg]||(Zg[Jg]={o:(zc={},zc[_h]=!0,zc[Qc]=!0,zc),n:1e3});function Zc(e){return e&&(e===gh[Vr]||e===Array[Vr])}function Sh(e){return Zc(e)||e===Function[Vr]}function Xi(e){var t;if(e){if(Gs)return Gs(e);var n=e[mh]||e[Vr]||(e[Kc]?e[Kc][Vr]:null);t=e[Jc]||n,gn(e,Jc)||(delete e[vh],t=e[Jc]=e[vh]||e[Jc],e[vh]=n)}return t}function eu(e,t){var n=[];if(Qg)n=Qg(e);else for(var r in e)typeof r=="string"&&gn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Kc&&typeof e[t]===qc&&(n||gn(e,t))&&t!==mh&&t!==Vr}function tu(e){qn("DynamicProto: "+e)}function DP(e){var t=Mr(null);return eu(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Th(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function kP(e,t,n,r){function i(c,u,f){var d=u[f];if(d[hh]&&r){var p=c[Xc]||{};p[Hs]!==!1&&(d=(p[u[mo]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=Mr(null);eu(n,function(c){a[c]=i(t,n,c)});for(var s=Xi(e),l=[];s&&!Sh(s)&&!Th(l,s);)eu(s,function(c){!a[c]&&Eh(s,c,!Gs)&&(a[c]=i(t,s,c))}),l.push(s),s=Xi(s);return a}function CP(e,t,n,r){var i=null;if(e&&gn(n,mo)){var a=e[Xc]||Mr(null);if(i=(a[n[mo]]||Mr(null))[t],i||tu("Missing ["+t+"] "+qc),!i[ph]&&a[Hs]!==!1){for(var s=!gn(e,t),l=Xi(e),c=[];s&&l&&!Sh(l)&&!Th(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=Xi(l)}try{s&&(e[t]=i),i[ph]=1}catch{a[Hs]=!1}}}return i}function IP(e,t,n){var r=t[e];return r===n&&(r=Xi(t)[e]),typeof r!==qc&&tu("["+e+"] is not a "+qc),r}function RP(e,t,n,r,i){function a(c,u){var f=function(){var d=CP(this,u,c,f)||IP(u,c,f);return d.apply(this,arguments)};return f[hh]=1,f}if(!Zc(e)){var s=n[Xc]=n[Xc]||Mr(null);if(!Zc(s)){var l=s[t]=s[t]||Mr(null);s[Hs]!==!1&&(s[Hs]=!!i),Zc(l)||eu(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(l[c]=n[c],delete n[c],(!gn(e,c)||e[c]&&!e[c][hh])&&(e[c]=a(e,c)))})}}}function OP(e,t){if(Gs){for(var n=[],r=Xi(t);r&&!Sh(r)&&!Th(n,r);){if(r===e)return!0;n.push(r),r=Xi(r)}return!1}return!0}function Nh(e,t){return gn(e,Vr)?e.name||t||Xg:((e||{})[Kc]||{}).name||t||Xg}function et(e,t,n,r){gn(e,Vr)||tu("theClass is an invalid class definition.");var i=e[Vr];OP(i,t)||tu("["+Nh(e)+"] not in hierarchy of ["+Nh(t)+"]");var a=null;gn(i,mo)?a=i[mo]:(a=bP+Nh(e,"_")+"$"+yh.n,yh.n++,i[mo]=a);var s=et[qg],l=!!s[Qc];l&&r&&r[Qc]!==void 0&&(l=!!r[Qc]);var c=DP(t),u=kP(i,t,c,l);n(t,u);var f=!!Gs&&!!s[_h];f&&r&&(f=!!r[_h]),RP(i,a,t,c,f!==!1)}et[qg]=yh.o;var ey="function",ty="object",wh="undefined",Qn="prototype",bh=Object,PP=bh[Qn];(Sn()||{}).Symbol,(Sn()||{}).Reflect;var ny="hasOwnProperty",AP=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)PP[ny].call(t,i)&&(e[i]=t[i])}return e},zt=jd||AP,Dh=function(e,t){return Dh=bh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[ny](i)&&(n[i]=r[i])},Dh(e,t)};function Lr(e,t){typeof t!==ey&&t!==null&&qn("Class extends value "+String(t)+" is not a constructor or null"),Dh(e,t);function n(){this.constructor=e}e[Qn]=t===null?Mr(t):(n[Qn]=t[Qn],new n)}function ry(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iy=MO,MP=LO,ui=iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),vo="toLowerCase",we="length",nu="warnToConsole",Ws="throwInternal",Ji="watch",Qi="apply",Be="push",_o="splice",yt="logger",Zi="cancel",js="initialize",fi="identifier",ru="removeNotificationListener",iu="addNotificationListener",Zn="isInitialized",au="getNotifyMgr",zs="getPlugin",ea="name",Kt="processNext",ay="getProcessTelContext",ta="value",go="enabled",oy="stopPollingInternalLogs",na="unload",ou="onComplete",kh="version",sy="loggingLevelConsole",ra="createNew",Fr="teardown",su="messageId",ia="message",Yr="diagLog",lu="_doTeardown",Ks="update",er="getNext",qs="setNextPlugin",Ch="userAgent",yo="split",aa="replace",di="type",ly="evtName",$r="status",xP="indexOf",cy="getAllResponseHeaders",Ih="isChildEvt",xn="data",So="getCtx",tr="setCtx",uy="itemsReceived",cu="headers",Xs="urlString",Eo="timeout",Rh="traceFlags",Oh="getAttribute",Ph;function VP(e,t){Ph||(Ph=Fg("AggregationError",function(r,i){i[we]>1&&(r.errors=i[1])}));var n=e;throw oe(t,function(r,i){n+=`
|
|
54
54
|
`.concat(i," > ").concat(se(r))}),new Ph(n,t||[])}/*!
|
|
55
55
|
* NevWare21 Solutions LLC - ts-async, 0.5.4
|
|
56
56
|
* https://github.com/nevware21/ts-async
|
|
57
57
|
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
|
|
58
58
|
* Licensed under the MIT license.
|
|
59
|
-
*/var uu="Promise",Ah="rejected";function cn(e,t){return fy(e,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Ah,rejected:!0,reason:n}):n})}function fy(e,t,n,r){var i=e;try{if(si(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(a){if(n)i=n(a);else throw a}}finally{}return i}var dy=["pending","resolving","resolved",Ah],hy="dispatchEvent",fu;function IP(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}function RP(e,t,n,r){var i=Rt();!fu&&(fu=yn(!!ft(IP,[i]).v));var a=fu.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),fu.v&&a.initEvent(t,!1,!0),a&&e[hy])e[hy](a);else{var s=e["on"+t];if(s)s(a);else{var l=ot("console");l&&(l.error||l.log)(t,se(a))}}}var py="unhandledRejection",OP=py.toLowerCase(),my=[],PP=0,AP=10,Mh;function vy(e){return Se(e)?e.toString():se(e)}function _y(e,t,n){var r=jc(arguments,3),i=0,a=!1,s,l=[],c=PP++,u=!1,f=null,d;function p(M,V){try{my.push(c),u=!0,f&&f.cancel(),f=null;var z=e(function(b,I){l.push(function(){try{var U=i===2?M:V,C=dt(U)?s:Se(U)?U(s):U;si(C)?C.then(b,I):U?b(C):i===3?I(C):b(C)}catch(P){I(P)}}),a&&_()},r);return z}finally{my.pop()}}function h(M){return p(void 0,M)}function m(M){var V=M,z=M;return Se(M)&&(V=function(b){return M&&M(),b},z=function(b){throw M&&M(),b}),p(V,z)}function v(){return dy[i]}function _(){if(l.length>0){var M=l.slice();l=[],u=!0,f&&f.cancel(),f=null,t(M)}}function g(M,V){return function(z){if(i===V){if(M===2&&si(z)){i=1,z.then(g(2,1),g(3,1));return}i=M,a=!0,s=z,_(),!u&&M===3&&!f&&(f=En(S,AP))}}}function S(){if(!u)if(u=!0,H1())process.emit(py,s,d);else{var M=sn()||Sn();!Mh&&(Mh=yn(ft(ot,[uu+"RejectionEvent"]).v)),RP(M,OP,function(V){return Le(V,"promise",{g:function(){return d}}),V.reason=s,V},!!Mh.v)}}d={then:p,catch:h,finally:m},Ar(d,"state",{get:v}),W1()&&(d[Zd(11)]="IPromise");function R(){return"IPromise "+v()+(a?" - "+vy(s):"")}return d.toString=R,function(){Se(n)||Xn(uu+": executor is not a function - "+vy(n));var V=g(3,0);try{n.call(d,g(2,0),V)}catch(z){V(z)}}(),d}function MP(e){return function(t){var n=jc(arguments,1);return e(function(r,i){try{var a=[],s=1;nh(t,function(l,c){l&&(s++,fy(l,function(u){a[c]=u,--s===0&&r(a)},i))}),s--,s===0&&r(a)}catch(l){i(l)}},n)}}function xP(e){return yn(function(t){var n=jc(arguments,1);return e(function(r,i){var a=[],s=1;function l(c,u){s++,cn(c,function(f){f.rejected?a[u]={status:Ah,reason:f.reason}:a[u]={status:"fulfilled",value:f.value},--s===0&&r(a)})}try{ke(t)?oe(t,l):xg(t)?nh(t,l):Xn("Input is not an iterable"),s--,s===0&&r(a)}catch(c){i(c)}},n)})}function gy(e){oe(e,function(t){try{t()}catch{}})}function VP(e){var t=Ls(e)?e:0;return function(n){En(function(){gy(n)},t)}}function yy(e,t){return _y(yy,VP(t),e,t)}var xh;function LP(e,t){!xh&&(xh=yn(ft(ot,[uu]).v||null));var n=xh.v;if(!n)return yy(e);Se(e)||Xn(uu+": executor is not a function - "+se(e));var r=0;function i(){return dy[r]}var a=new n(function(s,l){function c(f){r=2,s(f)}function u(f){r=3,l(f)}e(c,u)});return Ar(a,"state",{get:i}),a}var Vh;function Js(e){return _y(Js,gy,e)}function FP(e,t){return!Vh&&(Vh=xP(Js)),Vh.v(e,t)}var Lh;function pi(e,t){return!Lh&&(Lh=yn(LP)),Lh.v.call(this,e,t)}var YP=MP(pi),rr=void 0,Fe="",To="channels",Dt="core",Fh="createPerfMgr",Yh="disabled",No="extensionConfig",wo="extensions",ir="processTelemetry",du="priority",hu="eventsSent",Qs="eventsDiscarded",pu="eventsSendRequest",oa="perfEvent",$h="offlineEventsStored",Bh="offlineBatchSent",Uh="offlineBatchDrop",mu="getPerfMgr",Hh="domain",Gh="path",$P="Not dynamic - ",BP="getPrototypeOf",UP=/-([a-z])/g,HP=/([^\w\d_$])/g,GP=/^(\d+[\w\d_$])/,WP=Object[BP];function sa(e){return!K(e)}function vu(e){var t=e;return t&&ye(t)&&(t=t[aa](UP,function(n,r){return r.toUpperCase()}),t=t[aa](HP,"_"),t=t[aa](GP,function(n,r){return"_"+r})),t}function Yt(e,t){return e&&t?jt(e,t)!==-1:!1}function bo(e){return e&&e.toISOString()||""}function je(e){return Gd(e)?e[ea]:Fe}function Qe(e,t,n,r,i){var a=n;return e&&(a=e[t],a!==n&&(!i||i(a))&&(!r||r(n))&&(a=n,e[t]=a)),a}function qt(e,t,n){var r;return e?(r=e[t],!r&&K(r)&&(r=dt(n)?{}:n,e[t]=r)):r=dt(n)?{}:n,r}function Sy(e,t){var n=null,r=null;return Se(e)?n=e:r=e,function(){var i=arguments;if(n&&(r=n()),r)return r[t][Qi](r,i)}}function jP(e,t,n){if(e&&t&&en(e)&&en(t)){var r=function(a){if(ye(a)){var s=t[a];Se(s)?(!n||n(a,!0,t,e))&&(e[a]=Sy(t,a)):(!n||n(a,!1,t,e))&&(li(e,a)&&delete e[a],Le(e,a,{g:function(){return t[a]},s:function(l){t[a]=l}}))}};for(var i in t)r(i)}return e}function _u(e,t,n,r,i){e&&t&&n&&(e[t]=Sy(n,r))}function Zs(e,t,n,r){return e&&t&&en(e)&&ke(n)&&oe(n,function(i){ye(i)&&_u(e,i,t,i)}),e}function zP(e){return function(){function t(){var n=this;e&&Me(e,function(r,i){n[r]=i})}return t}()}function Ey(e){return e&&jd&&(e=bh(jd({},e))),e}function Ty(e,t,n,r,i,a){var s=arguments,l=s[0]||{},c=s[we],u=!1,f=1;for(c>0&&Sg(l)&&(u=l,l=s[f]||{},f++),en(l)||(l={});f<c;f++){var d=s[f],p=ke(d),h=en(d);for(var m in d){var v=p&&m in d||h&&li(d,m);if(v){var _=d[m],g=void 0;if(u&&_&&((g=ke(_))||Wt(_))){var S=l[m];g?ke(S)||(S=[]):Wt(S)||(S={}),_=Ty(u,S,_)}_!==void 0&&(l[m]=_)}}}return l}function gu(e,t,n){var r=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&r){var i=r.mode;if(i===3)return!0;if(i===2)return!1}return n}function yu(e){try{return e.responseText}catch{}return null}function Ny(e,t){return e?"XDomainRequest,Response:"+yu(e)||"":t}function Su(e,t){return e?"XMLHttpRequest,Status:"+e[Br]+",Response:"+yu(e)||e.response||"":t}function wy(e,t){return t&&(Ls(t)?e=[t].concat(e):ke(t)&&(e=t.concat(e))),e}var KP="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",by="withCredentials",qP="timeout";function XP(e,t,n,r,i,a){i===void 0&&(i=!1);function s(c,u,f){try{c[u]=f}catch{}}var l=new XMLHttpRequest;return s(l,KP,r),n&&s(l,by,n),l.open(e,t,!i),n&&s(l,by,n),!i&&a&&s(l,qP,a),l}function JP(e){var t={};if(ye(e)){var n=Ze(e)[yo](/[\r\n]+/);oe(n,function(r){if(r){var i=r[kP](": ");if(i!==-1){var a=Ze(r.substring(0,i))[vo](),s=Ze(r.substring(i+1));t[a]=s}else t[Ze(r)]=1}})}return t}function Wh(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=Ze(r))}return e}var QP="kill-duration",ZP="kill-duration-seconds",eA="time-delta-millis";function jh(e,t){var n={};return e[cy]?n=JP(e[cy]()):t&&(n=Wh(n,e,eA),n=Wh(n,e,QP),n=Wh(n,e,ZP)),n}var tA="documentMode",nA="location",rA="console",Dy="JSON",iA="crypto",aA="msCrypto",oA="ReactNative",zh="msie",Kh="trident/",ky="XMLHttpRequest",qh=null,Xh=null,sA=!1,Do=null,Jh=null;function Cy(e,t){var n=!1;if(e){try{if(n=t in e,!n){var r=e[Zn];r&&(n=t in r)}}catch{}if(!n)try{var i=new e;n=!dt(i[t])}catch{}}return n}function ar(e){if(e&&sA){var t=ot("__mockLocation");if(t)return t}return typeof location===ty&&location?location:ot(nA)}function lA(){return typeof console!==wh?console:ot(rA)}function el(){return!!(typeof JSON===ty&&JSON||ot(Dy)!==null)}function Vn(){return el()?JSON||ot(Dy):null}function cA(){return ot(iA)}function uA(){return ot(aA)}function fA(){var e=Qn();return e&&e.product?e.product===oA:!1}function Qh(){var e=Qn();if(e&&(e[Ch]!==Xh||qh===null)){Xh=e[Ch];var t=(Xh||Fe)[vo]();qh=Yt(t,zh)||Yt(t,Kh)}return qh}function Iy(e){if(e===void 0&&(e=null),!e){var t=Qn()||{};e=t?(t.userAgent||Fe)[vo]():Fe}var n=(e||Fe)[vo]();if(Yt(n,zh)){var r=Rt()||{};return Ys(parseInt(n[yo](zh)[1]),r[tA]||0)}else if(Yt(n,Kh)){var i=parseInt(n[yo](Kh)[1]);if(i)return i+4}return null}function tl(e){return(Jh===null||e===!1)&&(Jh=B1()&&!!Qn().sendBeacon),Jh}function Zh(e){var t=!1;try{t=!!ot("fetch");var n=ot("Request");t&&e&&n&&(t=Cy(n,"keepalive"))}catch{}return t}function dA(){return Do===null&&(Do=typeof XDomainRequest!==wh,Do&&Eu()&&(Do=Do&&!Cy(ot(ky),"withCredentials"))),Do}function Eu(){var e=!1;try{var t=ot(ky);e=!!t}catch{}return e}function hA(e,t){return e&&e.dispatchEvent&&t?(e.dispatchEvent(t),!0):!1}function pA(e,t){var n=null,r={detail:t||null};if(Se(CustomEvent))n=new CustomEvent(e,r);else{var i=Rt();i&&i.createEvent&&(n=i.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,r))}return n}function mA(e,t,n){var r=Sn();if(r&&r.CustomEvent)try{var i={cfg:t||null,customDetails:n||null};return hA(r,pA(e,i))}catch{}return!1}var Ry=4294967296,mi=4294967295,Oy=123456789,Py=987654321,Ay=!1,nl=Oy,rl=Py;function vA(e){e<0&&(e>>>=0),nl=Oy+e&mi,rl=Py-e&mi,Ay=!0}function _A(){try{var e=Mn()&2147483647;vA((Math.random()*Ry^e)+e)}catch{}}function gA(e){return ln(il()/mi*(e+1))>>>0}function il(e){var t=0,n=cA()||uA();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&mi),t===0&&Qh()&&(Ay||_A(),t=yA()&mi),t===0&&(t=ln(Ry*Math.random()|0)),t>>>=0,t}function yA(e){rl=36969*(rl&65535)+(rl>>16)&mi,nl=18e3*(nl&65535)+(nl>>16)&mi;var t=(rl<<16)+(nl&65535)>>>0&mi|0;return t>>>=0,t}function ep(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=il()>>>0,r=0,i=Fe;i[we]<e;)r++,i+=t.charAt(n&63),n>>>=6,r===5&&(n=(il()<<2&4294967295|n&3)>>>0,r=0);return i}var My="3.3.7",SA="."+ep(6),EA=0;function xy(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function TA(e,t){var n=t[e.id];if(!n){n={};try{xy(t)&&Le(t,e.id,{e:!1,v:n})}catch{}}return n}function Tn(e,t){return t===void 0&&(t=!1),vu(e+EA+++(t?"."+My:Fe)+SA)}function Vy(e){var t={id:Tn("_aiData-"+(e||Fe)+"."+My),accept:function(n){return xy(n)},get:function(n,r,i,a){var s=n[t.id];return s?s[vu(r)]:(a&&(s=TA(t,n),s[vu(r)]=i),i)},kill:function(n,r){if(n&&n[r])try{delete n[r]}catch{}}};return t}function Tu(e){return e&&en(e)&&(e.isVal||e.fb||li(e,"v")||li(e,"mrg")||li(e,"ref")||e.set)}function Ly(e,t,n){var r,i=n.dfVal||f1;if(t&&n.fb){var a=n.fb;ke(a)||(a=[a]);for(var s=0;s<a[we];s++){var l=a[s],c=t[l];if(i(c)?r=c:e&&(c=e.cfg[l],i(c)&&(r=c),e.set(e.cfg,Gt(l),c)),i(r))break}}return!i(r)&&i(n.v)&&(r=n.v),r}function tp(e,t,n){var r=n;if(n&&Tu(n)&&(r=Ly(e,t,n)),r){Tu(r)&&(r=tp(e,t,r));var i;ke(r)?(i=[],i[we]=r[we]):Wt(r)&&(i={}),i&&(Me(r,function(a,s){s&&Tu(s)&&(s=tp(e,t,s)),i[a]=s}),r=i)}return r}function np(e,t,n,r){var i,a,s,l=r,c,u,f,d;Tu(l)?(i=l.isVal,a=l.set,f=l.rdOnly,d=l.blkVal,c=l.mrg,u=l.ref,!u&&dt(u)&&(u=!!c),s=Ly(e,t,l)):s=r,d&&e.blkVal(t,n);var p,h=!0,m=t[n];(m||!K(m))&&(p=m,h=!1,i&&p!==s&&!i(p)&&(p=s,h=!0),a&&(p=a(p,s,t),h=p===s)),h?s?p=tp(e,t,s):p=s:(Wt(p)||ke(s))&&c&&s&&(Wt(s)||ke(s))&&Me(s,function(v,_){np(e,p,v,_)}),e.set(t,n,p),u&&e.ref(t,n),f&&e.rdOnly(t,n)}var vi=eh("[[ai_dynCfg_1]]"),Fy=eh("[[ai_blkDynCfg_1]]"),NA=eh("[[ai_frcDynCfg_1]]");function Yy(e){if(e){var t;if(ke(e)?(t=[],t[we]=e[we]):Wt(e)&&(t={}),t)return Me(e,function(n,r){t[n]=Yy(r)}),t}return e}function wA(e){if(e){var t=e[vi]||e;if(t.cfg&&(t.cfg===e||t.cfg[vi]===t))return t}return null}function bA(e){if(e&&(Wt(e)||ke(e)))try{e[Fy]=!0}catch{}return e}function rp(e,t,n){var r=!1;return n&&!e[t.blkVal]&&(r=n[NA],!r&&!n[Fy]&&(r=Wt(n)||ke(n))),r}function $y(e){Xn("InvalidAccess:"+e)}var DA=["push","pop","shift","unshift","splice"],al=function(e,t,n,r){e&&e[Ws](3,108,"".concat(n," [").concat(t,"] failed - ")+se(r))};function kA(e,t,n){ke(t)&&oe(DA,function(r){var i=t[r];t[r]=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=i[Qi](this,a);return bu(e,t,n,"Patching"),l}})}function Nu(e,t){var n=lP(e,t);return n&&n.get}function CA(e,t,n,r){var i={n,h:[],trk:function(u){u&&u.fn&&(Ft(i.h,u)===-1&&i.h[Be](u),e.trk(u,i))},clr:function(u){var f=Ft(i.h,u);f!==-1&&i.h[_o](f,1)}},a=!0,s=!1;function l(){a&&(s=s||rp(l,e,r),r&&!r[vi]&&s&&(r=bu(e,r,n,"Converting")),a=!1);var u=e.act;return u&&i.trk(u),r}l[e.prop]={chng:function(){e.add(i)}};function c(u){if(r!==u){l[e.ro]&&!e.upd&&$y("["+n+"] is read-only:"+se(t)),a&&(s=s||rp(l,e,r),a=!1);var f=s&&l[e.rf];if(s)if(f){Me(r,function(p){r[p]=u?u[p]:rr});try{Me(u,function(p,h){wu(e,r,p,h)}),u=r}catch(p){al((e.hdlr||{})[yt],n,"Assigning",p),s=!1}}else r&&r[vi]&&Me(r,function(p){var h=Nu(r,p);if(h){var m=h[e.prop];m&&m.chng()}});if(u!==r){var d=u&&rp(l,e,u);!f&&d&&(u=bu(e,u,n,"Converting")),r=u,s=d}e.add(i)}}Le(t,i.n,{g:l,s:c})}function wu(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop];a?t[n]=r:CA(e,t,n,r)}return t}function ip(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop],s=r&&r[0],l=r&&r[1],c=r&&r[2];if(!a){if(c)try{bA(t)}catch(u){al((e.hdlr||{})[yt],n,"Blocking",u)}try{wu(e,t,n,t[n]),i=Nu(t,n)}catch(u){al((e.hdlr||{})[yt],n,"State",u)}}s&&(i[e.rf]=s),l&&(i[e.ro]=l),c&&(i[e.blkVal]=!0)}return t}function bu(e,t,n,r){try{Me(t,function(i,a){wu(e,t,i,a)}),t[vi]||(Ar(t,vi,{get:function(){return e.hdlr}}),kA(e,t,n))}catch(i){al((e.hdlr||{})[yt],n,r,i)}return t}var ol="[[ai_",sl="]]";function IA(e){var t=Bs(ol+"get"+e.uid+sl),n=Bs(ol+"ro"+e.uid+sl),r=Bs(ol+"rf"+e.uid+sl),i=Bs(ol+"blkVal"+e.uid+sl),a=Bs(ol+"dtl"+e.uid+sl),s=null,l=null,c;function u(h,m){var v=c.act;try{c.act=h,h&&h[a]&&(oe(h[a],function(g){g.clr(h)}),h[a]=[]),m({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(g){var _=e[yt];throw _&&_[Ws](1,107,se(g)),g}finally{c.act=v||null}}function f(){if(s){var h=s;s=null,l&&l[Zi](),l=null;var m=[];if(oe(h,function(v){if(v&&(v[a]&&(oe(v[a],function(_){_.clr(v)}),v[a]=null),v.fn))try{u(v,v.fn)}catch(_){m[Be](_)}}),s)try{f()}catch(v){m[Be](v)}m[we]>0&&CP("Watcher error(s): ",m)}}function d(h){if(h&&h.h[we]>0){s||(s=[]),l||(l=En(function(){l=null,f()},0));for(var m=0;m<h.h[we];m++){var v=h.h[m];v&&Ft(s,v)===-1&&s[Be](v)}}}function p(h,m){if(h){var v=h[a]=h[a]||[];Ft(v,m)===-1&&v[Be](m)}}return c={prop:t,ro:n,rf:r,blkVal:i,hdlr:e,add:d,notify:f,use:u,trk:p},c}function RA(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return Le(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),e.use(n,t),n}function OA(e,t,n){var r=wA(t);if(r)return r;var i=Tn("dyncfg",!0),a=t&&n!==!1?t:Yy(t),s;function l(){s.notify()}function c(_,g,S){try{_=wu(s,_,g,S)}catch(R){al(e,g,"Setting value",R)}return _[g]}function u(_){return RA(s,_)}function f(_,g){s.use(null,function(S){var R=s.upd;try{dt(g)||(s.upd=g),_(S)}finally{s.upd=R}})}function d(_,g){var S;return ip(s,_,g,(S={},S[0]=!0,S))[g]}function p(_,g){var S;return ip(s,_,g,(S={},S[1]=!0,S))[g]}function h(_,g){var S;return ip(s,_,g,(S={},S[2]=!0,S))[g]}function m(_,g){return g&&Me(g,function(S,R){np(v,_,S,R)}),_}var v={uid:null,cfg:a,logger:e,notify:l,set:c,setDf:m,watch:u,ref:d,rdOnly:p,blkVal:h,_block:f};return Le(v,"uid",{c:!1,e:!1,w:!1,v:i}),s=IA(v),bu(s,a,"config","Creating"),v}function PA(e,t){e?(e[nu](t),e[Ws](2,108,t)):$y(t)}function Nn(e,t,n,r){var i=OA(n,e||{},r);return t&&i.setDf(i.cfg,t),i}function mt(e,t,n){var r=e[vi]||e;return r.cfg&&(r.cfg===e||r.cfg[vi]===r)?r[Ji](t):(PA(n,$P+se(e)),Nn(e,null,n)[Ji](t))}function ko(e,t){if(e&&e[na])return e[na](t)}function By(e,t,n){var r;return n||(r=pi(function(i){n=i})),e&&sP(e)>0?cn(ko(e[0],t),function(){By(jc(e,1),t,n)}):n(),r}var AA=500,Uy="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function MA(e,t,n){return!e&&K(e)?t:Sg(e)?e:Gt(e)[vo]()==="true"}function Ln(e){return{mrg:!0,v:e}}function Hy(e,t){return{set:e,v:t}}function Du(e,t,n){return{fb:n,isVal:e,v:t}}function St(e,t){return{fb:t,set:MA,v:!!e}}function xA(e){return{isVal:ye,v:Gt(Fe)}}var ap=[hu,Qs,pu,oa],ku=null,Cu;function VA(e,t){return function(){var n=arguments,r=Gy(t);if(r){var i=r.listener;i&&i[e]&&i[e][Qi](i,n)}}}function LA(){var e=ot("Microsoft");return e&&(ku=e.ApplicationInsights),ku}function Gy(e){var t=ku;return!t&&e.disableDbgExt!==!0&&(t=ku||LA()),t?t.ChromeDbgExt:null}function FA(e){if(!Cu){Cu={};for(var t=0;t<ap[we];t++)Cu[ap[t]]=VA(ap[t],e)}return Cu}var Co,Wy="warnToConsole",YA="AI (Internal): ",$A="AI: ",BA="AITR_",UA={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},HA=(Co={},Co[0]=null,Co[1]="errorToConsole",Co[2]=Wy,Co[3]="debugToConsole",Co);function jy(e){return e?'"'+e[aa](/\"/g,Fe)+'"':Fe}function op(e,t){var n=lA();if(n){var r="log";n[e]&&(r=e),Se(n[r])&&n[r](t)}}var ll=function(){function e(t,n,r,i){r===void 0&&(r=!1);var a=this;a[su]=t,a[ia]=(r?$A:YA)+t;var s=Fe;el()&&(s=Vn().stringify(i));var l=(n?" message:"+jy(n):Fe)+(i?" props:"+jy(s):Fe);a[ia]+=l}return e.dataType="MessageData",e}();function la(e,t){return(e||{})[yt]||new Iu(t)}var Iu=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={},i,a,s,l,c;et(e,this,function(u){c=d(t||{}),u.consoleLoggingLevel=function(){return i},u[Ws]=function(m,v,_,g,S){S===void 0&&(S=!1);var R=new ll(v,_,S,g);if(l)throw se(R);var M=HA[m]||Wy;if(dt(R[ia]))h("throw"+(m===1?"Critical":"Warning"),R);else{if(S){var V=+R[su];!r[V]&&i>=m&&(u[M](R[ia]),r[V]=!0)}else i>=m&&u[M](R[ia]);f(m,R)}},u.debugToConsole=function(m){op("debug",m),h("warning",m)},u[nu]=function(m){op("warn",m),h("warning",m)},u.errorToConsole=function(m){op("error",m),h("error",m)},u.resetInternalMessageCount=function(){n=0,r={}},u.logInternalMessage=f,u[na]=function(m){c&&c.rm(),c=null};function f(m,v){if(!p()){var _=!0,g=BA+v[su];if(r[g]?_=!1:r[g]=!0,_&&(m<=a&&(u.queue[Be](v),n++,h(m===1?"error":"warn",v)),n===s)){var S="Internal events throttle limit per PageView reached for this app.",R=new ll(23,S,!1);u.queue[Be](R),m===1?u.errorToConsole(S):u[nu](S)}}}function d(m){return mt(Nn(m,UA,u).cfg,function(v){var _=v.cfg;i=_[sy],a=_.loggingLevelTelemetry,s=_.maxMessageLimit,l=_.enableDebug})}function p(){return n>=s}function h(m,v){var _=Gy(t||{});_&&_[$r]&&_[$r](m,v)}})}return e.__ieDyn=1,e}();function sp(e){return e||new Iu}function Z(e,t,n,r,i,a){a===void 0&&(a=!1),sp(e)[Ws](t,n,r,i,a)}function ca(e,t){sp(e)[nu](t)}function GA(e,t,n){sp(e).logInternalMessage(t,n)}var lp,ua,zy="toGMTString",Ky="toUTCString",cp="cookie",up="expires",qy="isCookieUseDisabled",fp="disableCookiesUsage",Io="_ckMgr",Ru=null,dp=null,Xy=null,or,Jy={},Ou={},WA=(lp={cookieCfg:Ln((ua={},ua[Hh]={fb:"cookieDomain",dfVal:sa},ua.path={fb:"cookiePath",dfVal:sa},ua.enabled=rr,ua.ignoreCookies=rr,ua.blockedCookies=rr,ua)),cookieDomain:rr,cookiePath:rr},lp[fp]=rr,lp);function hp(){!or&&(or=Ig(function(){return Rt()}))}function jA(e,t){var n=Au[Io]||Ou[Io];return n||(n=Au[Io]=Au(e,t),Ou[Io]=n),n}function Pu(e){return e?e.isEnabled():!0}function Qy(e,t){return t&&e&&ke(e.ignoreCookies)?Ft(e.ignoreCookies,t)!==-1:!1}function zA(e,t){return t&&e&&ke(e.blockedCookies)&&Ft(e.blockedCookies,t)!==-1?!0:Qy(e,t)}function Zy(e,t){var n=t[go];if(K(n)){var r=void 0;dt(e[qy])||(r=!e[qy]),dt(e[fp])||(r=!e[fp]),n=r}return n}function pp(e,t){var n;return e&&(n=e.getCookieMgr()),n||(n=jA(t,(e||{})[yt])),n}function Au(e,t){var n,r,i,a,s,l,c,u;e=Nn(e||Ou,null,t).cfg,a=mt(e,function(d){d.setDf(d.cfg,WA),n=d.ref(d.cfg,"cookieCfg"),r=n[Gh]||"/",i=n[Hh],s=Zy(e,n)!==!1,l=n.getCookie||KA,c=n.setCookie||iS,u=n.delCookie||iS},t);var f={isEnabled:function(){var d=Zy(e,n)!==!1&&s&&eS(t),p=Ou[Io];return d&&p&&f!==p&&(d=Pu(p)),d},setEnabled:function(d){s=d!==!1,n[go]=d},set:function(d,p,h,m,v){var _=!1;if(Pu(f)&&!zA(n,d)){var g={},S=Ze(p||Fe),R=jt(S,";");if(R!==-1&&(S=Ze(qd(p,R)),g=tS(Jn(p,R+1))),Qe(g,Hh,m||i,Vc,dt),!K(h)){var M=Qh();if(dt(g[up])){var V=Mn(),z=V+h*1e3;if(z>0){var b=new Date;b.setTime(z),Qe(g,up,nS(b,M?zy:Ky)||nS(b,M?zy:Ky)||Fe,Vc)}}M||Qe(g,"max-age",Fe+h,null,dt)}var I=ar();I&&I.protocol==="https:"&&(Qe(g,"secure",null,null,dt),dp===null&&(dp=!qA((Qn()||{})[Ch])),dp&&Qe(g,"SameSite","None",null,dt)),Qe(g,Gh,v||r,null,dt),c(d,rS(S,g)),_=!0}return _},get:function(d){var p=Fe;return Pu(f)&&!Qy(n,d)&&(p=l(d)),p},del:function(d,p){var h=!1;return Pu(f)&&(h=f.purge(d,p)),h},purge:function(d,p){var h,m=!1;if(eS(t)){var v=(h={},h[Gh]=p||"/",h[up]="Thu, 01 Jan 1970 00:00:01 GMT",h);Qh()||(v["max-age"]="0"),u(d,rS(Fe,v)),m=!0}return m},unload:function(d){a&&a.rm(),a=null}};return f[Io]=f,f}function eS(e){if(Ru===null){Ru=!1,!or&&hp();try{var t=or.v||{};Ru=t[cp]!==void 0}catch(n){Z(e,2,68,"Cannot access document.cookie - "+je(n),{exception:se(n)})}}return Ru}function tS(e){var t={};if(e&&e[we]){var n=Ze(e)[yo](";");oe(n,function(r){if(r=Ze(r||Fe),r){var i=jt(r,"=");i===-1?t[r]=null:t[Ze(qd(r,i))]=Ze(Jn(r,i+1))}})}return t}function nS(e,t){return Se(e[t])?e[t]():null}function rS(e,t){var n=e||Fe;return Me(t,function(r,i){n+="; "+r+(K(i)?Fe:"="+i)}),n}function KA(e){var t=Fe;if(!or&&hp(),or.v){var n=or.v[cp]||Fe;Xy!==n&&(Jy=tS(n),Xy=n),t=Ze(Jy[e]||Fe)}return t}function iS(e,t){!or&&hp(),or.v&&(or.v[cp]=e+"="+t)}function qA(e){return ye(e)?!!(Yt(e,"CPU iPhone OS 12")||Yt(e,"iPad; CPU OS 12")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&Yt(e,"Version/")&&Yt(e,"Safari")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&zg(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Yt(e,"Chrome/5")||Yt(e,"Chrome/6")||Yt(e,"UnrealEngine")&&!Yt(e,"Chrome")||Yt(e,"UCBrowser/12")||Yt(e,"UCBrowser/11")):!1}var XA={perfEvtsSendAll:!1};function JA(e){e.h=null;var t=e.cb;e.cb=[],oe(t,function(n){ft(n.fn,[n.arg])})}function _i(e,t,n,r){oe(e,function(i){i&&i[t]&&(n?(n.cb[Be]({fn:r,arg:i}),n.h=n.h||En(JA,0,n)):ft(r,[i]))})}var QA=function(){function e(t){this.listeners=[];var n,r,i=[],a={h:null,cb:[]},s=Nn(t,XA);r=s[Ji](function(l){n=!!l.cfg.perfEvtsSendAll}),et(e,this,function(l){Le(l,"listeners",{g:function(){return i}}),l[iu]=function(c){i[Be](c)},l[ru]=function(c){for(var u=Ft(i,c);u>-1;)i[_o](u,1),u=Ft(i,c)},l[hu]=function(c){_i(i,hu,a,function(u){u[hu](c)})},l[Qs]=function(c,u){_i(i,Qs,a,function(f){f[Qs](c,u)})},l[pu]=function(c,u){_i(i,pu,u?a:null,function(f){f[pu](c,u)})},l[oa]=function(c){c&&(n||!c[Ih]())&&_i(i,oa,null,function(u){c.isAsync?En(function(){return u[oa](c)},0):u[oa](c)})},l[$h]=function(c){c&&c[we]&&_i(i,$h,a,function(u){u[$h](c)})},l[Bh]=function(c){c&&c[xn]&&_i(i,Bh,a,function(u){u[Bh](c)})},l[Uh]=function(c,u){if(c>0){var f=u||0;_i(i,Uh,a,function(d){d[Uh](c,f)})}},l[na]=function(c){var u=function(){r&&r.rm(),r=null,i=[],a.h&&a.h[Zi](),a.h=null,a.cb=[]},f;if(_i(i,"unload",null,function(d){var p=d[na](c);p&&(f||(f=[]),f[Be](p))}),f)return pi(function(d){return cn(YP(f),function(){u(),d()})});u()}})}return e.__ieDyn=1,e}(),Ro="ctx",mp="ParentContextKey",cl="ChildrenContextKey",ZA=null,Mu=function(){function e(t,n,r){var i=this;if(i.start=Mn(),i[ea]=t,i.isAsync=r,i[Ih]=function(){return!1},Se(n)){var a;Le(i,"payload",{g:function(){return!a&&Se(n)&&(a=n(),n=null),a}})}i[So]=function(s){return s?s===e[mp]||s===e[cl]?i[s]:(i[Ro]||{})[s]:null},i[nr]=function(s,l){if(s)if(s===e[mp])i[s]||(i[Ih]=function(){return!0}),i[s]=l;else if(s===e[cl])i[s]=l;else{var c=i[Ro]=i[Ro]||{};c[s]=l}},i.complete=function(){var s=0,l=i[So](e[cl]);if(ke(l))for(var c=0;c<l[we];c++){var u=l[c];u&&(s+=u.time)}i.time=Mn()-i.start,i.exTime=i.time-s,i.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),eM=function(){function e(t){this.ctx={},et(e,this,function(n){n.create=function(r,i,a){return new Mu(r,i,a)},n.fire=function(r){r&&(r.complete(),t&&Se(t[oa])&&t[oa](r))},n[nr]=function(r,i){if(r){var a=n[Ro]=n[Ro]||{};a[r]=i}},n[So]=function(r){return(n[Ro]||{})[r]}})}return e.__ieDyn=1,e}(),vp="CoreUtils.doPerf";function xu(e,t,n,r,i){if(e){var a=e;if(a[mu]&&(a=a[mu]()),a){var s=void 0,l=a[So](vp);try{if(s=a.create(t(),r,i),s){if(l&&s[nr]&&(s[nr](Mu[mp],l),l[So]&&l[nr])){var c=l[So](Mu[cl]);c||(c=[],l[nr](Mu[cl],c)),c[Be](s)}return a[nr](vp,s),n(s)}}catch(u){s&&s[nr]&&s[nr]("exception",u)}finally{s&&a.fire(s),a[nr](vp,l)}}}return n()}function tM(){return ZA}function gi(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=Fe,n,r=0;r<4;r++)n=il(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(il()&3)|0];return ci(t,0,8)+ci(t,9,4)+"4"+ci(t,13,3)+i+ci(t,16,3)+ci(t,19,12)}var _p="00",nM="ff",aS="00000000000000000000000000000000",oS="0000000000000000";function ul(e,t,n){return e&&e[we]===t&&e!==n?!!e.match(/^[\da-f]*$/i):!1}function sS(e,t,n){return ul(e,t)?e:n}function rM(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[we]<2;)t="0"+t;return t}function lS(e,t,n,r){return{version:ul(r,2,nM)?r:_p,traceId:gp(e)?e:gi(),spanId:yp(t)?t:qd(gi(),16),traceFlags:n>=0&&n<=255?n:1}}function gp(e){return ul(e,32,aS)}function yp(e){return ul(e,16,oS)}function cS(e){if(e){var t=rM(e[Rh]);ul(t,2)||(t="01");var n=e[kh]||_p;return n!=="00"&&n!=="ff"&&(n=_p),"".concat(n.toLowerCase(),"-").concat(sS(e.traceId,32,aS).toLowerCase(),"-").concat(sS(e.spanId,16,oS).toLowerCase(),"-").concat(t.toLowerCase())}return""}function iM(e){var t=e.getElementsByTagName("script"),n=[];return oe(t,function(r){var i=r[Oh]("src");if(i){var a=r[Oh]("crossorigin"),s=r.hasAttribute("async")===!0,l=r.hasAttribute("defer")===!0,c=r[Oh]("referrerpolicy"),u={url:i};a&&(u.crossOrigin=a),s&&(u.async=s),l&&(u.defer=l),c&&(u.referrerPolicy=c),n[Be](u)}}),n}var aM=Vy("plugin");function fa(e){return aM.get(e,"state",{},!0)}function uS(e,t){for(var n=[],r=null,i=e[tr](),a;i;){var s=i[zs]();if(s){r&&r[qs]&&s[ir]&&r[qs](s),a=fa(s);var l=!!a[er];s[er]&&(l=s[er]()),l||n[Be](s),r=s,i=i[tr]()}}oe(n,function(c){var u=e[Dt]();c[js](e.getCfg(),u,t,e[tr]()),a=fa(c),!c[Dt]&&!a[Dt]&&(a[Dt]=u),a[er]=!0,delete a[Yr]})}function Sp(e){return e.sort(function(t,n){var r=0;if(n){var i=n[ir];t[ir]?r=i?t[du]-n[du]:1:i&&(r=-1)}else r=t?1:-1;return r})}function oM(e){var t={};return{getName:function(){return t[ea]},setName:function(n){t[ea]=n},getTraceId:function(){return t.traceId},setTraceId:function(n){gp(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){yp(n)&&(t.spanId=n)},getTraceFlags:function(){return t[Rh]},setTraceFlags:function(n){t[Rh]=n}}}var sM="TelemetryPluginChain",fS="_hasRun",dS="_getTelCtx",hS=0;function lM(e,t,n){for(;e;){if(e[zs]()===n)return e;e=e[tr]()}return da([n],t.config||{},t)}function Ep(e,t,n,r){var i=null,a=[];t||(t=Nn({},null,n[yt])),r!==null&&(i=r?lM(e,n,r):e);var s={_next:c,ctx:{core:function(){return n},diagLog:function(){return la(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:f,getConfig:d,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(h){i=h},iterate:p,onComplete:l}};function l(h,m){for(var v=[],_=2;_<arguments.length;_++)v[_-2]=arguments[_];h&&a[Be]({func:h,self:dt(m)?s.ctx:m,args:v})}function c(){var h=i;if(i=h?h[tr]():null,!h){var m=a;m&&m[we]>0&&(oe(m,function(v){try{v.func.call(v.self,v.args)}catch(_){Z(n[yt],2,73,"Unexpected Exception during onComplete - "+se(_))}}),a=[])}return h}function u(h,m){var v=null,_=t.cfg;if(_&&h){var g=_[No];!g&&m&&(g={}),_[No]=g,g=t.ref(_,No),g&&(v=g[h],!v&&m&&(v={}),g[h]=v,v=t.ref(g,h))}return v}function f(h,m){var v=u(h,!0);return m&&Me(m,function(_,g){if(K(v[_])){var S=t.cfg[_];(S||!K(S))&&(v[_]=S)}np(t,v,_,g)}),t.setDf(v,m)}function d(h,m,v){v===void 0&&(v=!1);var _,g=u(h,!1),S=t.cfg;return g&&(g[m]||!K(g[m]))?_=g[m]:(S[m]||!K(S[m]))&&(_=S[m]),_||!K(_)?_:v}function p(h){for(var m;m=s._next();){var v=m[zs]();v&&h(v)}}return s}function Fn(e,t,n,r){var i=Nn(t),a=Ep(e,i,n,r),s=a.ctx;function l(u){var f=a._next();return f&&f[ir](u,s),!f}function c(u,f){return u===void 0&&(u=null),ke(u)&&(u=da(u,i.cfg,n,f)),Fn(u||s[tr](),i.cfg,n,f)}return s[Kt]=l,s[ra]=c,s}function Vu(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){var u=i._next();return u&&u[na](a,c),!u}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Vu(c||a[tr](),t,u)}return a[Kt]=s,a[ra]=l,a}function Tp(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){return a.iterate(function(u){Se(u[Ks])&&u[Ks](a,c)})}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Tp(c||a[tr](),t,u)}return a[Kt]=s,a[ra]=l,a}function da(e,t,n,r){var i=null,a=!r;if(ke(e)&&e[we]>0){var s=null;oe(e,function(l){if(!a&&r===l&&(a=!0),a&&l&&Se(l[ir])){var c=cM(l,t,n);i||(i=c),s&&s._setNext(c),s=c}})}return r&&!i?da([r],t,n):i}function cM(e,t,n){var r=null,i=Se(e[ir]),a=Se(e[qs]),s;e?s=e[di]+"-"+e[du]+"-"+hS++:s="Unknown-0-"+hS++;var l={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:f,unload:d,update:p,_id:s,_setNext:function(h){r=h}};function c(){var h;return e&&Se(e[dS])&&(h=e[dS]()),h||(h=Fn(l,t,n)),h}function u(h,m,v,_,g){var S=!1,R=e?e[di]:sM,M=h[fS];return M||(M=h[fS]={}),h.setNext(r),e&&xu(h[Dt](),function(){return R+":"+v},function(){M[s]=!0;try{var V=r?r._id:Fe;V&&(M[V]=!1),S=m(h)}catch(b){var z=r?M[r._id]:!0;z&&(S=!0),(!r||!z)&&Z(h[$r](),1,73,"Plugin ["+R+"] failed during "+v+" - "+se(b)+", run flags: "+se(M))}},_,g),S}function f(h,m){m=m||c();function v(_){if(!e||!i)return!1;var g=fa(e);return g[Yr]||g[Yh]?!1:(a&&e[qs](r),e[ir](h,_),!0)}u(m,v,"processTelemetry",function(){return{item:h}},!h.sync)||m[Kt](h)}function d(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Yr]&&(g[Dt]=null,g[Yr]=!0,g[er]=!1,e[Yr]&&e[Yr](h,m)===!0&&(_=!0))}return _}u(h,v,"unload",function(){},m.isAsync)||h[Kt](m)}function p(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Yr]&&e[Ks]&&e[Ks](h,m)===!0&&(_=!0)}return _}u(h,v,"update",function(){},!1)||h[Kt](m)}return An(l)}function pS(){var e=[];function t(r){r&&e[Be](r)}function n(r,i){oe(e,function(a){try{a(r,i)}catch(s){Z(r[$r](),2,73,"Unexpected error calling unload handler - "+se(s))}}),e=[]}return{add:t,run:n}}function mS(){var e=[];function t(r){var i=e;e=[],oe(i,function(a){try{(a.rm||a.remove).call(a)}catch(s){Z(r,2,73,"Unloading:"+se(s))}})}function n(r){r&&po(e,r)}return{run:t,add:n}}var Np,yi="getPlugin",uM=(Np={},Np[No]={isVal:sa,v:{}},Np),Oo=function(){function e(){var t=this,n,r,i,a,s;u(),et(e,t,function(f){f[js]=function(d,p,h,m){c(d,p,m),n=!0},f[Yr]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Vu(null,h,i&&i[yi]?i[yi]():i),g=p||{reason:0,isAsync:!1};function S(){v||(v=!0,a.run(_,p),s.run(_[$r]()),m===!0&&_[Kt](g),u())}return!f[lu]||f[lu](_,g,S)!==!0?S():m=!0,m},f[Ks]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Tp(null,h,i&&i[yi]?i[yi]():i),g=p||{reason:0};function S(){v||(v=!0,c(_.getCfg(),_.core(),_[tr]()))}return!f._doUpdate||f._doUpdate(_,g,S)!==!0?S():m=!0,m},_u(f,"_addUnloadCb",function(){return a},"add"),_u(f,"_addHook",function(){return s},"add"),Le(f,"_unloadHooks",{g:function(){return s}})}),t[$r]=function(f){return l(f)[$r]()},t[er]=function(){return n},t.setInitialized=function(f){n=f},t[qs]=function(f){i=f},t[Kt]=function(f,d){d?d[Kt](f):i&&Se(i[ir])&&i[ir](f,null)},t._getTelCtx=l;function l(f){f===void 0&&(f=null);var d=f;if(!d){var p=r||Fn(null,{},t[Dt]);i&&i[yi]?d=p[ra](null,i[yi]):d=p[ra](null,i)}return d}function c(f,d,p){Nn(f,uM,la(d)),!p&&d&&(p=d[ay]()[tr]());var h=i;i&&i[yi]&&(h=i[yi]()),t[Dt]=d,r=Fn(p,f,d,h)}function u(){n=!1,t[Dt]=null,r=null,i=null,s=mS(),a=pS()}}return e.__ieDyn=1,e}();function fM(e,t,n){var r={id:t,fn:n};po(e,r);var i={remove:function(){oe(e,function(a,s){if(a.id===r.id)return e[_o](s,1),-1})}};return i}function dM(e,t,n){for(var r=!1,i=e[we],a=0;a<i;++a){var s=e[a];if(s)try{if(s.fn[Qi](null,[t])===!1){r=!0;break}}catch(l){Z(n,2,64,"Telemetry initializer failed: "+je(l),{exception:se(l)},!0)}}return!r}var hM=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var r,i;a(),et(t,n,function(s,l){s.addTelemetryInitializer=function(c){return fM(i,r++,c)},s[ir]=function(c,u){dM(i,c,u?u[$r]():s[$r]())&&s[Kt](c,u)},s[lu]=function(){a()}});function a(){r=0,i=[]}return n}return t.__ieDyn=1,t}(Oo),Si,vS="Plugins must provide initialize method",pM="_notificationManager",_S="SDK is still unloading...",mM="SDK is not initialized",vM=100,_M=5e4,wp=Fs((Si={cookieCfg:{}},Si[wo]={rdOnly:!0,ref:!0,v:[]},Si[To]={rdOnly:!0,ref:!0,v:[]},Si[No]={ref:!0,v:{}},Si[Fh]=rr,Si.loggingLevelConsole=0,Si.diagnosticLogInterval=rr,Si));function gM(e,t){return new eM(t)}function yM(e,t,n){var r=[],i=[],a={};return oe(n,function(s){(K(s)||K(s[js]))&&on(vS);var l=s[du],c=s[di];s&&l&&(K(a[l])?a[l]=c:ca(e,"Two extensions have same priority #"+l+" - "+a[l]+", "+c)),!l||l<t?r[Be](s):i[Be](s)}),{core:r,channels:i}}function gS(e,t){var n=!1;return oe(t,function(r){if(r===e)return n=!0,-1}),n}function bp(e,t,n,r){n&&Me(n,function(i,a){r&&Wt(a)&&Wt(t[i])&&bp(e,t[i],a,r),r&&Wt(a)&&Wt(t[i])?bp(e,t[i],a,r):e.set(t,i,a)})}function yS(e,t){var n=null,r=-1;return oe(e,function(i,a){if(i.w===t)return n=i,r=a,-1}),{i:r,l:n}}function SM(e,t){var n=yS(e,t).l;return n||(n={w:t,rm:function(){var r=yS(e,t);r.i!==-1&&e[_o](r.i,1)}},e[Be](n)),n}function EM(e,t,n){oe(t,function(r){var i=mt(e,r.w,n);delete r.w,r.rm=function(){i.rm()}})}function TM(e,t,n,r){return t.add(e[Ji](function(i){var a=i.cfg.disableDbgExt;a===!0&&r&&(n[ru](r),r=null),n&&!r&&a!==!0&&(r=FA(i.cfg),n[iu](r))})),r}function NM(e){return Le({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}var wM=function(){function e(){var t,n,r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,R,M,V,z,b,I,U,C,P,q,te,E,D,j,x;et(e,this,function(O){B(),O._getDbgPlgTargets=function(){return[b,i]},O[er]=function(){return n},O.activeStatus=function(){return C},O._setPendingStatus=function(){C=3},O[js]=function(F,ne,me,de){h&&on(_S),O[er]()&&on("Core cannot be initialized more than once"),t=Nn(F,wp,me||O[yt],!1),F=t.cfg,Je(t[Ji](function(W){var G=W.cfg;q=G.initInMemoMaxSize||vM,re(G);var X=W.ref(W.cfg,No);Me(X,function(he){W.ref(X,he)})})),a=de,R=TM(t,S,a&&O[au](),R),fe(),O[yt]=me;var N=F[wo];if(f=[],f[Be].apply(f,ry(ry([],ne,!1),N)),d=F[To],w(null),(!p||p[we]===0)&&on("No "+To+" available"),d&&d[we]>1){var L=O[zs]("TeeChannelController");(!L||!L.plugin)&&Z(r,1,28,"TeeChannel required")}EM(F,z,r),z=null,n=!0,C===fi.ACTIVE&&y()},O.getChannels=function(){var F=[];return p&&oe(p,function(ne){F[Be](ne)}),An(F)},O.track=function(F){xu(O[mu](),function(){return"AppInsightsCore:track"},function(){F===null&&(At(F),on("Invalid telemetry item")),!F[ea]&&K(F[ea])&&(At(F),on("telemetry name required")),F.iKey=F.iKey||V,F.time=F.time||bo(new Date),F.ver=F.ver||"4.0",!h&&O[er]()&&C===fi.ACTIVE?ie()[Kt](F):C!==fi.INACTIVE&&i[we]<=q&&i[Be](F)},function(){return{item:F}},!F.sync)},O[ay]=ie,O[au]=function(){return a||(a=new QA(t.cfg),O[pM]=a),a},O[iu]=function(F){O.getNotifyMgr()[iu](F)},O[ru]=function(F){a&&a[ru](F)},O.getCookieMgr=function(){return c||(c=Au(t.cfg,O[yt])),c},O.setCookieMgr=function(F){c!==F&&(ko(c,!1),c=F)},O[mu]=function(){return s||l||tM()},O.setPerfMgr=function(F){s=F},O.eventCnt=function(){return i[we]},O.releaseQueue=function(){if(n&&i[we]>0){var F=i;i=[],C===2?oe(F,function(ne){ne.iKey=ne.iKey||V,ie()[Kt](ne)}):Z(r,2,20,"core init status is not active")}},O.pollInternalLogs=function(F){return v=F||null,x=!1,D&&D[Zi](),A(!0)};function re(F){var ne=F.instrumentationKey,me=F.endpointUrl;if(C!==3){if(K(ne)){V=null,C=fi.INACTIVE;var de="Please provide instrumentation key";n?(Z(r,1,100,de),y()):on(de);return}var N=[];si(ne)?(N[Be](ne),V=null):V=ne,si(me)?(N[Be](me),P=null):P=me,N[we]?ue(F,N):ve()}}function ue(F,ne){te=!1,C=3;var me=sa(F.initTimeOut)?F.initTimeOut:_M,de=FP(ne);E&&E[Zi](),E=En(function(){E=null,te||ve()},me),cn(de,function(N){try{if(te)return;if(!N.rejected){var L=N[ta];if(L&&L[we]){var W=L[0];if(V=W&&W[ta],L[we]>1){var G=L[1];P=G&&G[ta]}}V&&(F.instrumentationKey=V,F.endpointUrl=P)}ve()}catch{te||ve()}})}function ve(){te=!0,K(V)?(C=fi.INACTIVE,Z(r,1,112,"ikey can't be resolved from promises")):C=fi.ACTIVE,y()}function y(){n&&(O.releaseQueue(),O.pollInternalLogs())}function A(F){if((!D||!D[go])&&!x){var ne=F||r&&r.queue[we]>0;ne&&(j||(j=!0,Je(t[Ji](function(me){var de=me.cfg.diagnosticLogInterval;(!de||!(de>0))&&(de=1e4);var N=!1;D&&(N=D[go],D[Zi]()),D=vP(Ee,de),D.unref(),D[go]=N}))),D[go]=!0)}return D}O[oy]=function(){x=!0,D&&D[Zi](),Ee()},Zs(O,function(){return m},["addTelemetryInitializer"]),O[na]=function(F,ne,me){F===void 0&&(F=!0),n||on(mM),h&&on(_S);var de={reason:50,isAsync:F,flushComplete:!1},N;F&&!ne&&(N=pi(function(G){ne=G}));var L=Vu(Y(),O);L[ou](function(){S.run(O[yt]),By([c,a,r],F,function(){B(),ne&&ne(de)})},O);function W(G){de.flushComplete=G,h=!0,g.run(L,de),O[oy](),L[Kt](de)}return Ee(),Ye(F,W,6,me),N},O[zs]=H,O.addPlugin=function(F,ne,me,de){if(!F){de&&de(!1),Ae(vS);return}var N=H(F[di]);if(N&&!ne){de&&de(!1),Ae("Plugin ["+F[di]+"] is already loaded!");return}var L={reason:16};function W(he){f[Be](F),L.added=[F],w(L),de&&de(!0)}if(N){var G=[N.plugin],X={reason:2,isAsync:!!me};Q(G,X,function(he){he?(L.removed=G,L.reason|=32,W()):de&&de(!1)})}else W()},O.updateCfg=function(F,ne){ne===void 0&&(ne=!0);var me;if(O[er]()){me={reason:1,cfg:t.cfg,oldCfg:Hg({},t.cfg),newConfig:Hg({},F),merge:ne},F=me.newConfig;var de=t.cfg;F[wo]=de[wo],F[To]=de[To]}t._block(function(N){var L=N.cfg;bp(N,L,F,ne),ne||Me(L,function(W){li(F,W)||N.set(L,W,rr)}),N.setDf(L,wp)},!0),t.notify(),me&&ce(me)},O.evtNamespace=function(){return _},O.flush=Ye,O.getTraceCtx=function(F){return M||(M=oM()),M},O.setTraceCtx=function(F){M=F||null},O.addUnloadHook=Je,_u(O,"addUnloadCb",function(){return g},"add"),O.onCfgChange=function(F){var ne;return n?ne=mt(t.cfg,F,O[yt]):ne=SM(z,F),NM(ne)},O.getWParam=function(){return Pg()||t.cfg.enableWParam?0:-1};function T(){var F={};I=[];var ne=function(me){me&&oe(me,function(de){if(de[di]&&de[kh]&&!F[de.identifier]){var N=de[di]+"="+de[kh];I[Be](N),F[de.identifier]=de}})};ne(p),d&&oe(d,function(me){ne(me)}),ne(f)}function B(){n=!1,t=Nn({},wp,O[yt]),t.cfg[sy]=1,Le(O,"config",{g:function(){return t.cfg},s:function(ne){O.updateCfg(ne,!1)}}),Le(O,"pluginVersionStringArr",{g:function(){return I||T(),I}}),Le(O,"pluginVersionString",{g:function(){return U||(I||T(),U=I.join(";")),U||Fe}}),Le(O,"logger",{g:function(){return r||(r=new Iu(t.cfg),t[yt]=r),r},s:function(ne){t[yt]=ne,r!==ne&&(ko(r,!1),r=ne)}}),O[yt]=new Iu(t.cfg),b=[];var F=O.config[wo]||[];F.splice(0,F[we]),po(F,b),m=new hM,i=[],ko(a,!1),a=null,s=null,l=null,ko(c,!1),c=null,u=null,f=[],d=null,p=null,h=!1,v=null,_=Tn("AIBaseCore",!0),g=pS(),M=null,V=null,S=mS(),z=[],U=null,I=null,x=!1,D=null,j=!1,C=0,P=null,q=null,te=!1,E=null}function ie(){var F=Fn(Y(),t.cfg,O);return F[ou](A),F}function w(F){var ne=yM(O[yt],AA,f);u=null,U=null,I=null,p=(d||[])[0]||[],p=Sp(po(p,ne[To]));var me=po(Sp(ne[Dt]),p);b=An(me);var de=O.config[wo]||[];de.splice(0,de[we]),po(de,b);var N=ie();p&&p[we]>0&&uS(N[ra](p),me),uS(N,me),F&&ce(F)}function H(F){var ne=null,me=null,de=[];return oe(b,function(N){if(N[di]===F&&N!==m)return me=N,-1;N.getChannel&&de[Be](N)}),!me&&de[we]>0&&oe(de,function(N){if(me=N.getChannel(F),!me)return-1}),me&&(ne={plugin:me,setEnabled:function(N){fa(me)[Yh]=!N},isEnabled:function(){var N=fa(me);return!N[Yr]&&!N[Yh]},remove:function(N,L){N===void 0&&(N=!0);var W=[me],G={reason:1,isAsync:N};Q(W,G,function(X){X&&w({reason:32,removed:W}),L&&L(X)})}}),ne}function Y(){if(!u){var F=(b||[]).slice();Ft(F,m)===-1&&F[Be](m),u=da(Sp(F),t.cfg,O)}return u}function Q(F,ne,me){if(F&&F[we]>0){var de=da(F,t.cfg,O),N=Vu(de,O);N[ou](function(){var L=!1,W=[];oe(f,function(X,he){gS(X,F)?L=!0:W[Be](X)}),f=W,U=null,I=null;var G=[];d&&(oe(d,function(X,he){var _e=[];oe(X,function(Oe){gS(Oe,F)?L=!0:_e[Be](Oe)}),G[Be](_e)}),d=G),me&&me(L),A()}),N[Kt](ne)}else me(!1)}function Ee(){if(r&&r.queue){var F=r.queue.slice(0);r.queue[we]=0,oe(F,function(ne){var me={name:v||"InternalMessageId: "+ne[su],iKey:V,time:bo(new Date),baseType:ll.dataType,baseData:{message:ne[ia]}};O.track(me)})}}function Ye(F,ne,me,de){var N=1,L=!1,W=null;de=de||5e3;function G(){N--,L&&N===0&&(W&&W[Zi](),W=null,ne&&ne(L),ne=null)}if(p&&p[we]>0){var X=ie()[ra](p);X.iterate(function(he){if(he.flush){N++;var _e=!1;he.flush(F,function(){_e=!0,G()},me)||_e||(F&&W==null?W=En(function(){W=null,G()},de):G())}})}return L=!0,G(),!0}function fe(){var F;Je(t[Ji](function(ne){var me=ne.cfg.enablePerfMgr;if(me){var de=ne.cfg[Fh];(F!==de||!F)&&(de||(de=gM),qt(ne.cfg,Fh,de),F=de,l=null),!s&&!l&&Se(de)&&(l=de(O,O[au]()))}else l=null,F=null}))}function ce(F){var ne=Tp(Y(),O);ne[ou](A),(!O._updateHook||O._updateHook(ne,F)!==!0)&&ne[Kt](F)}function Ae(F){var ne=O[yt];ne?(Z(ne,2,73,F),A()):on(F)}function At(F){var ne=O[au]();ne&&ne[Qs]([F],2)}function Je(F){S.add(F)}})}return e.__ieDyn=1,e}();function Dp(e,t){try{if(e&&e!==""){var n=Vn().parse(e);if(n&&n[uy]&&n[uy]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[we])return n}}catch(r){Z(t,1,43,"Cannot parse the response. "+(r[ea]||se(r)),{response:e})}return null}var Yn="",bM="NoResponseBody",SS="&"+bM+"=true",kp="POST",DM=function(){function e(){var t=0,n,r,i,a,s,l,c,u,f,d,p,h,m,v;et(e,this,function(_,g){var S=!0;te(),_[js]=function(E,D){i=D,r&&Z(i,1,28,"Sender is already initialized"),_.SetConfig(E),r=!0},_._getDbgPlgTargets=function(){return[r,a,l,n]},_.SetConfig=function(E){try{if(s=E.senderOnCompleteCallBack||{},l=!!E.disableCredentials,c=E.fetchCredentials,a=!!E.isOneDs,n=!!E.enableSendPromise,f=!!E.disableXhr,d=!!E.disableBeacon,p=!!E.disableBeaconSync,v=E.timeWrapper,m=!!E.addNoResponse,h=!!E.disableFetchKeepAlive,u={sendPOST:C},a||(S=!1),l){var D=ar();D&&D.protocol&&D.protocol[vo]()==="file:"&&(S=!1)}return!0}catch{}return!1},_.getSyncFetchPayload=function(){return t},_.getSenderInst=function(E,D){return E&&E[we]?z(E,D):null},_.getFallbackInst=function(){return u},_[lu]=function(E,D){te()},_.preparePayload=function(E,D,j,x){if(!D||x||!j[xn]){E(j);return}try{var O=ot("CompressionStream");if(!Se(O)){E(j);return}var re=new ReadableStream({start:function(B){B.enqueue(ye(j[xn])?new TextEncoder().encode(j[xn]):j[xn]),B.close()}}),ue=re.pipeThrough(new O("gzip")),ve=ue.getReader(),y=[],A=0,T=!1;return cn(ve.read(),function B(ie){if(!T&&!ie.rejected){var w=ie[ta];if(!w.done)return y[Be](w[ta]),A+=w.value[we],cn(ve.read(),B);for(var H=new Uint8Array(A),Y=0,Q=0,Ee=y;Q<Ee.length;Q++){var Ye=Ee[Q];H.set(Ye,Y),Y+=Ye[we]}j[xn]=H,j[cu]["Content-Encoding"]="gzip",j._chunkCount=y[we]}T||(T=!0,E(j))}),ve}catch{E(j);return}};function R(E,D){b(D,200,{},E)}function M(E,D){Z(i,2,26,"Failed to send telemetry.",{message:E}),b(D,400,{})}function V(E){M("No endpoint url is provided for the batch",E)}function z(E,D){for(var j=0,x=null,O=0;x==null&&O<E[we];)j=E[O],!f&&j===1?dA()?x=q:Eu()&&(x=C):j===2&&Zh(D)&&(!D||!h)?x=P:j===3&&tl()&&(D?!p:!d)&&(x=U),O++;return x?{_transport:j,_isSync:D,sendPOST:x}:null}function b(E,D,j,x){try{E&&E(D,j,x)}catch{}}function I(E,D){var j=Qn(),x=E[Xs];if(!x)return V(D),!0;x=E[Xs]+(m?SS:Yn);var O=E[xn],re=a?O:new Blob([O],{type:"text/plain;charset=UTF-8"}),ue=j.sendBeacon(x,re);return ue}function U(E,D,j){var x=E[xn];try{if(x)if(I(E,D))R(Yn,D);else{var O=s&&s.beaconOnRetry;O&&Se(O)?O(E,D,I):(u&&u.sendPOST(E,D,!0),Z(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(re){a&&ca(i,"Failed to send telemetry using sendBeacon API. Ex:"+se(re)),b(D,a?0:400,{},Yn)}}function C(E,D,j){var x,O,re,ue=E[cu]||{};!j&&n&&(x=pi(function(T,B){O=T,re=B})),a&&j&&E.disableXhrSync&&(j=!1);var ve=E[Xs];if(!ve){V(D),O&&O(!1);return}var y=XP(kp,ve,S,!0,j,E[Eo]);a||y.setRequestHeader("Content-type","application/json"),oe(Mr(ue),function(T){y.setRequestHeader(T,ue[T])}),y.onreadystatechange=function(){a||(A(y),y.readyState===4&&O&&O(!0))},y.onload=function(){a&&A(y)};function A(T){var B=s&&s.xhrOnComplete,ie=B&&Se(B);if(ie)B(T,D,E);else{var w=yu(T);b(D,T[Br],jh(T,a),w)}}return y.onerror=function(T){b(D,a?y[Br]:400,jh(y,a),a?Yn:Su(y)),re&&re(T)},y.ontimeout=function(){b(D,a?y[Br]:500,jh(y,a),a?Yn:Su(y)),O&&O(!1)},y.send(E[xn]),x}function P(E,D,j){var x,O=E[Xs],re=E[xn],ue=a?re:new Blob([re],{type:"application/json"}),ve,y,A,T=new Headers,B=re[we],ie=!1,w=!1,H=E[cu]||{},Y=(x={method:kp,body:ue},x[Uy]=!0,x);E.headers&&Mr(E.headers)[we]>0&&(oe(Mr(H),function(fe){T.append(fe,H[fe])}),Y[cu]=T),c?Y.credentials=c:S&&a&&(Y.credentials="include"),j&&(Y.keepalive=!0,t+=B,a?E._sendReason===2&&(ie=!0,m&&(O+=SS)):ie=!0);var Q=new Request(O,Y);try{Q[Uy]=!0}catch{}if(!j&&n&&(ve=pi(function(fe,ce){y=fe,A=ce})),!O){V(D),y&&y(!1);return}function Ee(fe,ce){ce?b(D,a?0:ce,{},a?Yn:fe):b(D,a?0:400,{},a?Yn:fe)}function Ye(fe,ce,Ae){var At=fe[Br],Je=s.fetchOnComplete;Je&&Se(Je)?Je(fe,D,Ae||Yn,ce):b(D,At,{},Ae||Yn)}try{cn(fetch(a?O:Q,a?Y:null),function(fe){if(j&&(t-=B,B=0),!w)if(w=!0,fe.rejected)Ee(fe.reason&&fe.reason[ia],499),A&&A(fe.reason);else{var ce=fe[ta];try{!a&&!ce.ok?(ce[Br]?Ee(ce.statusText,ce[Br]):Ee(ce.statusText,499),y&&y(!1)):a&&!ce.body?(Ye(ce,null,Yn),y&&y(!0)):cn(ce.text(),function(Ae){Ye(ce,E,Ae[ta]),y&&y(!0)})}catch(Ae){ce&&ce[Br]?Ee(se(Ae),ce[Br]):Ee(se(Ae),499),A&&A(Ae)}}})}catch(fe){w||(Ee(se(fe),499),A&&A(fe))}return ie&&!w&&(w=!0,b(D,200,{}),y&&y(!0)),a&&!w&&E[Eo]>0&&v&&v.set(function(){w||(w=!0,b(D,500,{}),y&&y(!0))},E[Eo]),ve}function q(E,D,j){var x=sn(),O=new XDomainRequest,re=E[xn];O.onload=function(){var T=yu(O),B=s&&s.xdrOnComplete;B&&Se(B)?B(O,D,E):b(D,200,{},T)},O.onerror=function(){b(D,400,{},a?Yn:Ny(O))},O.ontimeout=function(){b(D,500,{})},O.onprogress=function(){};var ue=x&&x.location&&x.location.protocol||"",ve=E[Xs];if(!ve){V(D);return}if(!a&&ve.lastIndexOf(ue,0)!==0){var y="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Z(i,2,40,". "+y),M(y,D);return}var A=a?ve:ve[aa](/^(https?:)/,"");O.open(kp,A),E[Eo]&&(O[Eo]=E[Eo]),O.send(re),a&&j?v&&v.set(function(){O.send(re)},0):O.send(re)}function te(){t=0,r=!1,n=!1,i=null,a=null,s=null,l=null,c=null,u=null,f=!1,d=!1,p=!1,h=!1,m=!1,v=null}})}return e.__ieDyn=1,e}(),ES="on",TS="attachEvent",NS="addEventListener",wS="detachEvent",bS="removeEventListener",Cp="events",Ip="visibilitychange",Lu="pagehide",DS="unload",kS="beforeunload",CS=Tn("aiEvtPageHide");Tn("aiEvtPageShow");var kM=/\.[\.]+/g,CM=/[\.]+$/,IM=1,Fu=Vy("events"),RM=/^([^.]*)(?:\.(.+)|)/;function IS(e){return e&&e[aa]?e[aa](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Fe):e}function Rp(e,t){if(t){var n=Fe;ke(t)?(n=Fe,oe(t,function(i){i=IS(i),i&&(i[0]!=="."&&(i="."+i),n+=i)})):n=IS(t),n&&(n[0]!=="."&&(n="."+n),e=(e||Fe)+n)}var r=RM.exec(e||Fe)||[];return{type:r[1],ns:(r[2]||Fe).replace(kM,".").replace(CM,Fe)[yo](".").sort().join(".")}}function RS(e,t,n){n===void 0&&(n=!0);var r=Fu.get(e,Cp,{},n),i=r[t];return i||(i=r[t]=[]),i}function OS(e,t,n,r){e&&t&&t[hi]&&(e[bS]?e[bS](t[hi],n,r):e[wS]&&e[wS](ES+t[hi],n))}function OM(e,t,n,r){var i=!1;return e&&t&&t[hi]&&n&&(e[NS]?(e[NS](t[hi],n,r),i=!0):e[TS]&&(e[TS](ES+t[hi],n),i=!0)),i}function PS(e,t,n,r){for(var i=t[we];i--;){var a=t[i];a&&(!n.ns||n.ns===a[ly].ns)&&(!r||r(a))&&(OS(e,a[ly],a.handler,a.capture),t[_o](i,1))}}function PM(e,t,n){if(t[hi])PS(e,RS(e,t[hi]),t,n);else{var r=Fu.get(e,Cp,{});Me(r,function(i,a){PS(e,a,t,n)}),Mr(r)[we]===0&&Fu.kill(e,Cp)}}function Ei(e,t){var n;return t?(ke(t)?n=[e].concat(t):n=[e,t],n=Rp("xx",n).ns[yo](".")):n=e,n}function Ur(e,t,n,r,i){i===void 0&&(i=!1);var a=!1;if(e)try{var s=Rp(t,r);if(a=OM(e,s,n,i),a&&Fu.accept(e)){var l={guid:IM++,evtName:s,handler:n,capture:i};RS(e,s.type)[Be](l)}}catch{}return a}function Po(e,t,n,r,i){if(i===void 0&&(i=!1),e)try{var a=Rp(t,r),s=!1;PM(e,a,function(l){return a.ns&&!n||l.handler===n?(s=!0,!0):!1}),s||OS(e,a,n,i)}catch{}}function AM(e,t,n){var r=!1,i=sn();i&&(r=Ur(i,e,t,n),r=Ur(i.body,e,t,n)||r);var a=Rt();return a&&(r=Ur(a,e,t,n)||r),r}function MM(e,t,n){var r=sn();r&&(Po(r,e,t,n),Po(r.body,e,t,n));var i=Rt();i&&Po(i,e,t,n)}function Yu(e,t,n,r){var i=!1;return t&&e&&e[we]>0&&oe(e,function(a){a&&(!n||Ft(n,a)===-1)&&(i=AM(a,t,r)||i)}),i}function xM(e,t,n,r){var i=!1;return t&&e&&ke(e)&&(i=Yu(e,t,n,r),!i&&n&&n[we]>0&&(i=Yu(e,t,null,r))),i}function Op(e,t,n){e&&ke(e)&&oe(e,function(r){r&&MM(r,t,n)})}function VM(e,t,n){return xM([kS,DS,Lu],e,t,n)}function LM(e,t){Op([kS,DS,Lu],e,t)}function Pp(e,t,n){function r(s){var l=Rt();e&&l&&l.visibilityState==="hidden"&&e(s)}var i=Ei(CS,n),a=Yu([Lu],e,t,i);return(!t||Ft(t,Ip)===-1)&&(a=Yu([Ip],r,t,i)||a),!a&&t&&(a=Pp(e,null,n)),a}function FM(e,t){var n=Ei(CS,t);Op([Lu],e,n),Op([Ip],null,n)}var AS="_aiHooks",MS=["req","rsp","hkErr","fnErr"];function Ap(e,t){if(e)for(var n=0;n<e[we]&&!t(e[n],n);n++);}function Mp(e,t,n,r,i){i>=0&&i<=2&&Ap(e,function(a,s){var l=a.cbks,c=l[MS[i]];if(c){t.ctx=function(){var d=r[s]=r[s]||{};return d};try{c[Qi](t.inst,n)}catch(d){var u=t.err;try{var f=l[MS[2]];f&&(t.err=d,f[Qi](t.inst,n))}catch{}finally{t.err=u}}}})}function YM(e){return function(){var t=this,n=arguments,r=e.h,i={name:e.n,inst:t,ctx:null,set:c},a=[],s=l([i],n);i.evt=ot("event");function l(f,d){return Ap(d,function(p){f[Be](p)}),f}function c(f,d){n=l([],n),n[f]=d,s=l([i],n)}Mp(r,i,s,a,0);var u=e.f;if(u)try{i.rslt=u[Qi](t,n)}catch(f){throw i.err=f,Mp(r,i,s,a,3),f}return Mp(r,i,s,a,1),i.rslt}}function xp(e,t,n,r){var i=null;return e&&(gn(e,t)?i=e:n&&(i=xp(WP(e),t,r,!1))),i}function $M(e,t,n){return e?Vp(e[Zn],t,n,!1):null}function xS(e,t,n,r){var i=n&&n[AS];if(!i){i={i:0,n:t,f:n,h:[]};var a=YM(i);a[AS]=i,e[t]=a}var s={id:i.i,cbks:r,rm:function(){var l=this.id;Ap(i.h,function(c,u){if(c.id===l)return i.h[_o](u,1),1})}};return i.i++,i.h[Be](s),s}function Vp(e,t,n,r,i){if(r===void 0&&(r=!0),e&&t&&n){var a=xp(e,t,r,i);if(a){var s=a[t];if(typeof s===ey)return xS(a,t,s,n)}}return null}function $u(e,t,n,r,i){if(e&&t&&n){var a=xp(e,t,r,i)||e;if(a)return xS(a,t,a[t],n)}return null}var ha="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",VS="sampleRate",Lp="ProcessLegacy",LS="http.method",Fp="https://dc.services.visualstudio.com",Ao="/v2/track",sr="not_specified",Yp="iKey",Xe=DP({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Mo="split",De="length",fl="toLowerCase",pa="ingestionendpoint",dl="toString",$p="removeItem",hl="message",xo="count",Bp="preTriggerDate",Up="getUTCDate",Bu="stringify",Hp="pathname",pl="match",FS="correlationHeaderExcludePatterns",lr="name",cr="properties",Hr="measurements",Uu="sizeInBytes",Hu="typeName",ml="exceptions",vl="severityLevel",Gp="problemGroup",Vo="parsedStack",Gu="hasFullStack",Wu="assembly",Gr="fileName",Lo="line",ju="aiDataContract",zu="duration";function YS(e,t,n){var r=t[De],i=BM(e,t);if(i[De]!==r){for(var a=0,s=i;n[s]!==void 0;)a++,s=Jn(i,0,147)+GM(a);i=s}return i}function BM(e,t){var n;return t&&(t=Ze(Gt(t)),t[De]>150&&(n=Jn(t,0,150),Z(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function Et(e,t,n){n===void 0&&(n=1024);var r;return t&&(n=n||1024,t=Ze(Gt(t)),t[De]>n&&(r=Jn(t,0,n),Z(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ku(e,t){return BS(e,t,2048,66)}function $S(e,t){var n;return t&&t[De]>32768&&(n=Jn(t,0,32768),Z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function UM(e,t){var n;if(t){var r=""+t;r[De]>32768&&(n=Jn(r,0,32768),Z(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function ma(e,t){if(t){var n={};Me(t,function(r,i){if(en(i)&&el())try{i=Vn()[Bu](i)}catch(a){Z(e,2,49,"custom property is not valid",{exception:a},!0)}i=Et(e,i,8192),r=YS(e,r,n),n[r]=i}),t=n}return t}function va(e,t){if(t){var n={};Me(t,function(r,i){r=YS(e,r,n),n[r]=i}),t=n}return t}function HM(e,t){return t&&BS(e,t,128,69)[dl]()}function BS(e,t,n,r){var i;return t&&(t=Ze(Gt(t)),t[De]>n&&(i=Jn(t,0,n),Z(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),i||t}function GM(e){var t="00"+e;return ci(t,t[De]-3)}var US=Rt()||{},HS=0,WM=[null,null,null,null,null];function Wp(e){var t=HS,n=WM,r=n[t];return US.createElement?n[t]||(r=n[t]=US.createElement("a")):r={host:KM(e)},r.href=e,t++,t>=n[De]&&(t=0),HS=t,r}function jM(e){var t,n=Wp(e);return n&&(t=n.href),t}function zM(e,t){return e?e.toUpperCase()+" "+t:t}function KM(e,t){var n=GS(e)||"";if(n){var r=n[pl](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>3&&ye(r[2])&&r[2][De]>0)return r[2]+(r[3]||"")}return n}function GS(e,t){var n=null;if(e){var r=e[pl](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>2&&ye(r[2])&&r[2][De]>0&&(n=r[2]||"",r[De]>2)){var i=(r[1]||"")[fl](),a=r[3]||"";(i==="http"&&a===":80"||i==="https"&&a===":443")&&(a=""),n+=a}}return n}var qM=[Fp+Ao,"https://breeze.aimon.applicationinsights.io"+Ao,"https://dc-int.services.visualstudio.com"+Ao],XM="cid-v1:";function jp(e){return Ft(qM,e[fl]())!==-1}function WS(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[FS]){for(var r=0;r<e.correlationHeaderExcludePatterns[De];r++)if(e[FS][r].test(t))return!1}var i=Wp(t).host[fl]();if(i&&(jt(i,":443")!==-1||jt(i,":80")!==-1)&&(i=(GS(t)||"")[fl]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a=e&&e.correlationHeaderDomains;if(a){var s;if(oe(a,function(u){var f=new RegExp(u.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));s=s||f.test(i)}),!s)return!1}var l=e&&e.correlationHeaderExcludedDomains;if(!l||l[De]===0)return!0;for(var r=0;r<l[De];r++){var c=new RegExp(l[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(c.test(i))return!1}return i&&i[De]>0}function jS(e){if(e){var t=JM(e,Xe[1]);if(t&&t!==XM)return t}}function JM(e,t){if(e)for(var n=e[Mo](","),r=0;r<n[De];++r){var i=n[r][Mo]("=");if(i[De]===2&&i[0]===t)return i[1]}}function QM(e,t,n,r){var i,a=r,s=r;if(t&&t[De]>0){var l=Wp(t);if(i=l.host,!a)if(l[Hp]!=null){var c=l.pathname[De]===0?"/":l[Hp];c.charAt(0)!=="/"&&(c="/"+c),s=l[Hp],a=Et(e,n?n+" "+c:c)}else a=Et(e,t)}else i=r,a=r;return{target:i,name:a,data:s}}function qu(){var e=Vr();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Mn()}function tn(e,t){var n=null;return e!==0&&t!==0&&!K(e)&&!K(t)&&(n=t-e),n}function zp(e,t){var n=e||{};return{getName:function(){return n[lr]},setName:function(r){t&&t.setName(r),n[lr]=r},getTraceId:function(){return n.traceID},setTraceId:function(r){t&&t.setTraceId(r),gp(r)&&(n.traceID=r)},getSpanId:function(){return n.parentID},setSpanId:function(r){t&&t.setSpanId(r),yp(r)&&(n.parentID=r)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(r){t&&t.setTraceFlags(r),n.traceFlags=r}}}var _l=iy({LocalStorage:0,SessionStorage:1}),Ti=void 0,Ni=void 0,zS="";function Kp(){return Ju()?Xu(_l.LocalStorage):null}function Xu(e){try{if(K(Sn()))return null;var t=new Date()[dl](),n=ot(e===_l.LocalStorage?"localStorage":"sessionStorage"),r=zS+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[$p](r),!i)return n}catch{}return null}function qp(){return gl()?Xu(_l.SessionStorage):null}function ZM(){Ti=!1,Ni=!1}function Xp(e){zS=e||""}function ex(){Ti=Ju(!0),Ni=gl(!0)}function Ju(e){return(e||Ti===void 0)&&(Ti=!!Xu(_l.LocalStorage)),Ti}function KS(e,t){var n=Kp();if(n!==null)try{return n.getItem(t)}catch(r){Ti=!1,Z(e,2,1,"Browser failed read of local storage. "+je(r),{exception:se(r)})}return null}function qS(e,t,n){var r=Kp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ti=!1,Z(e,2,3,"Browser failed write to local storage. "+je(i),{exception:se(i)})}return!1}function tx(e,t){var n=Kp();if(n!==null)try{return n[$p](t),!0}catch(r){Ti=!1,Z(e,2,5,"Browser failed removal of local storage item. "+je(r),{exception:se(r)})}return!1}function gl(e){return(e||Ni===void 0)&&(Ni=!!Xu(_l.SessionStorage)),Ni}function Jp(e,t){var n=qp();if(n!==null)try{return n.getItem(t)}catch(r){Ni=!1,Z(e,2,2,"Browser failed read of session storage. "+je(r),{exception:se(r)})}return null}function XS(e,t,n){var r=qp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ni=!1,Z(e,2,4,"Browser failed write to session storage. "+je(i),{exception:se(i)})}return!1}function JS(e,t){var n=qp();if(n!==null)try{return n[$p](t),!0}catch(r){Ni=!1,Z(e,2,6,"Browser failed removal of session storage item. "+je(r),{exception:se(r)})}return!1}var nx="appInsightsThrottle",rx=function(){function e(t,n){var r=this,i,a,s,l,c,u,f,d=!1,p=!1;m(),r._getDbgPlgTargets=function(){return[f]},r.getConfig=function(){return s},r.canThrottle=function(E){var D=P(E),j=v(E);return S(j,i,D)},r.isTriggered=function(E){return q(E)},r.isReady=function(){return d},r.flush=function(E){try{var D=te(E);if(D&&D[De]>0){var j=D.slice(0);return f[E]=[],oe(j,function(x){h(x.msgID,x[hl],x.severity,!1)}),!0}}catch{}return!1},r.flushAll=function(){try{if(f){var E=!0;return Me(f,function(D){var j=r.flush(parseInt(D));E=E&&j}),E}}catch{}return!1},r.onReadyState=function(E,D){return D===void 0&&(D=!0),d=K(E)?!0:E,d&&D?r.flushAll():null},r.sendMessage=function(E,D,j){return h(E,D,j,!0)};function h(E,D,j,x){if(d){var O=C(E);if(!O)return;var re=v(E),ue=P(E),ve=S(re,i,ue),y=!1,A=0,T=q(E);try{ve&&!T?(A=kg(re.limit.maxSendNumber,ue[xo]+1),ue[xo]=0,y=!0,c[E]=!0,ue[Bp]=new Date):(c[E]=ve,ue[xo]+=1);var B=R(E);b(a,B,ue);for(var ie=0;ie<A;ie++)U(E,a,D,j)}catch{}return{isThrottled:y,throttleNum:A}}else if(x){var w=te(E);w.push({msgID:E,message:D,severity:j})}return null}function m(){a=la(t),c={},l={},f={},s={},_(109),u=sa(n)?n:"",t.addUnloadHook(mt(t.config,function(E){var D=E.cfg;i=Ju();var j=D.throttleMgrCfg||{};Me(j,function(x,O){_(parseInt(x),O)})}))}function v(E){return s[E]||s[109]}function _(E,D){var j,x;try{var O=D||{},re={};re.disabled=!!O.disabled;var ue=O.interval||{};p=(ue==null?void 0:ue.daysOfMonth)&&(ue==null?void 0:ue.daysOfMonth[De])>0,re.interval=g(ue);var ve={samplingRate:((j=O.limit)===null||j===void 0?void 0:j.samplingRate)||100,maxSendNumber:((x=O.limit)===null||x===void 0?void 0:x.maxSendNumber)||1};re.limit=ve,s[E]=re}catch{}}function g(E){E=E||{};var D=E==null?void 0:E.monthInterval,j=E==null?void 0:E.dayInterval;return K(D)&&K(j)&&(E.monthInterval=3,p||(E.daysOfMonth=[28],p=!0)),E={monthInterval:E==null?void 0:E.monthInterval,dayInterval:E==null?void 0:E.dayInterval,daysOfMonth:E==null?void 0:E.daysOfMonth},E}function S(E,D,j){if(E&&!E.disabled&&D&&sa(j)){var x=z(),O=j.date,re=E.interval,ue=1;if(re!=null&&re.monthInterval){var ve=(x.getUTCFullYear()-O.getUTCFullYear())*12+x.getUTCMonth()-O.getUTCMonth();ue=I(re.monthInterval,0,ve)}var y=1;if(p)y=Ft(re.daysOfMonth,x[Up]());else if(re!=null&&re.dayInterval){var A=ln((x.getTime()-O.getTime())/864e5);y=I(re.dayInterval,0,A)}return ue>=0&&y>=0}return!1}function R(E,D){var j=sa(D)?D:"";return E?nx+j+"-"+E:null}function M(E){try{if(E){var D=new Date;return E.getUTCFullYear()===D.getUTCFullYear()&&E.getUTCMonth()===D.getUTCMonth()&&E[Up]()===D[Up]()}}catch{}return!1}function V(E,D,j){try{var x={date:z(),count:0};if(E){var O=JSON.parse(E),re={date:z(O.date)||x.date,count:O[xo]||x[xo],preTriggerDate:O.preTriggerDate?z(O[Bp]):void 0};return re}else return b(D,j,x),x}catch{}return null}function z(E){try{if(E){var D=new Date(E);if(!isNaN(D.getDate()))return D}else return new Date}catch{}return null}function b(E,D,j){try{return qS(E,D,Ze(JSON[Bu](j)))}catch{}return!1}function I(E,D,j){return E<=0?1:j>=D&&(j-D)%E==0?ln((j-D)/E)+1:-1}function U(E,D,j,x){Z(D,x||1,E,j)}function C(E){try{var D=v(E);return gA(1e6)<=D.limit.samplingRate}catch{}return!1}function P(E){try{var D=l[E];if(!D){var j=R(E,u);D=V(KS(a,j),a,j),l[E]=D}return l[E]}catch{}return null}function q(E){var D=c[E];if(K(D)){D=!1;var j=P(E);j&&(D=M(j[Bp])),c[E]=D}return c[E]}function te(E){return f=f||{},K(f[E])&&(f[E]=[]),f[E]}}return e}(),ix=";",ax="=";function QS(e){if(!e)return{};var t=e[Mo](ix),n=z1(t,function(i,a){var s=a[Mo](ax);if(s[De]===2){var l=s[0][fl](),c=s[1];i[l]=c}return i},{});if(Mr(n)[De]>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n[pa]=n[pa]||"https://"+r+"dc."+n.endpointsuffix}n[pa]=n[pa]||Fp,zg(n[pa],"/")&&(n[pa]=n[pa].slice(0,-1))}return n}var ox=function(){function e(t,n,r){var i=this,a=this;a.ver=1,a.sampleRate=100,a.tags={},a[lr]=Et(t,r)||sr,a.data=n,a.time=bo(new Date),a[ju]={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return e}(),wi=function(){function e(t,n,r,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[lr]=Et(t,n)||sr,a[cr]=ma(t,r),a[Hr]=va(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),sx=58,lx=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,cx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,ux=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,fx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,dx=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,hx=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,px=/([^\(\s\n]+):([0-9]+)$/,ZS="<no_method>",Fo="error",wn="stack",Qp="stackDetails",e0="errorSrc",Zp="message",t0="description",n0=[{re:cx,len:5,m:1,fn:2,ln:3,col:4},{chk:vx,pre:mx,re:ux,len:4,m:1,fn:2,ln:3},{re:fx,len:3,m:1,fn:2,hdl:l0},{re:dx,len:2,fn:1,hdl:l0}];function mx(e){return e.replace(/(\(anonymous\))/,"<anonymous>")}function vx(e){return jt(e,"[native")<0}function em(e,t){var n=e;return n&&!ye(n)&&(JSON&&JSON[Bu]?(n=JSON[Bu](e),t&&(!n||n==="{}")&&(Se(e[dl])?n=e[dl]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function r0(e,t){var n=e;return e&&(n&&!ye(n)&&(n=e[Zp]||e[t0]||n),n&&!ye(n)&&(n=em(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&jt(n||"",t)===-1&&(n=t+": "+n),n||""}function _x(e){try{if(en(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function gx(e){try{if(en(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function i0(e){return e&&e.src&&ye(e.src)&&e.obj&&ke(e.obj)}function _a(e){var t=e||"";ye(t)||(ye(t[wn])?t=t[wn]:t=""+t);var n=t[Mo](`
|
|
60
|
-
`);return{src:t,obj:n}}function
|
|
61
|
-
`),r=0;r<n[De];r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}function a0(e){var t=null;if(e)try{if(e[wn])t=_a(e[wn]);else if(e[Fo]&&e[Fo][wn])t=_a(e[Fo][wn]);else if(e.exception&&e.exception[wn])t=_a(e.exception[wn]);else if(i0(e))t=e;else if(i0(e[Qp]))t=e[Qp];else if(sn()&&sn().opera&&e[Zp])t=
|
|
62
|
-
`),n+=" from "+e[e0]),n&&(t=_a(n))}}catch(r){t=_a(r)}return t||{src:"",obj:null}}function
|
|
63
|
-
`):t=e.src||""),t}function Ex(e){var t,n=e.obj;if(n&&n[De]>0){t=[];var r=0,i=!1,a=0;oe(n,function(v){if(i||bx(v)){var _=Gt(v);i=!0;var g=Dx(_,r);g&&(a+=g[Uu],t.push(g),r++)}});var s=32*1024;if(a>s)for(var l=0,c=t[De]-1,u=0,f=l,d=c;l<c;){var p=t[l][Uu],h=t[c][Uu];if(u+=p+h,u>s){var m=d-f+1;t.splice(f,m);break}f=l,d=c,l++,c--}}return t}function Qu(e){var t="";if(e&&(t=e.typeName||e[lr]||"",!t))try{var n=/function (.{1,200})\(/,r=n.exec(e.constructor[dl]());t=r&&r[De]>1?r[1]:""}catch{}return t}function tm(e){if(e)try{if(!ye(e)){var t=Qu(e),n=em(e,!1);return(!n||n==="{}")&&(e[Fo]&&(e=e[Fo],t=Qu(e)),n=em(e,!0)),jt(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var bn=function(){function e(t,n,r,i,a,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var l=this;l.ver=2,gx(n)?(l[ml]=n[ml]||[],l[cr]=n[cr],l[Hr]=n[Hr],n[vl]&&(l[vl]=n[vl]),n.id&&(l.id=n.id,n[cr].id=n.id),n[Gp]&&(l[Gp]=n[Gp]),K(n.isManual)||(l.isManual=n.isManual)):(r||(r={}),s&&(r.id=s),l[ml]=[o0(t,n,r)],l[cr]=ma(t,r),l[Hr]=va(t,i),a&&(l[vl]=a),s&&(l.id=s))}return e.CreateAutoException=function(t,n,r,i,a,s,l,c){var u=Qu(a||s||t);return{message:r0(t,u),url:n,lineNumber:r,columnNumber:i,error:tm(a||s||t),evt:tm(s||t),typeName:u,stackDetails:a0(l||a||s),errorSrc:c}},e.CreateFromInterface=function(t,n,r,i){var a=n[ml]&&Us(n[ml],function(l){return wx(t,l)}),s=new e(t,zt(zt({},n),{exceptions:a}),r,i);return s},e.prototype.toInterface=function(){var t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&Us(n,function(f){return f.toInterface()})||void 0;return{ver:"4.0",exceptions:u,severityLevel:a,properties:r,measurements:i,problemGroup:s,id:l,isManual:c}},e.CreateSimpleException=function(t,n,r,i,a,s){var l;return{exceptions:[(l={},l[Gu]=!0,l.message=t,l.stack=a,l.typeName=n,l)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=tm,e}(),Tx=An({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function Nx(){var e=this,t=ke(e[Vo])&&Us(e[Vo],function(r){return Cx(r)}),n={id:e.id,outerId:e.outerId,typeName:e[Hu],message:e[hl],hasFullStack:e[Gu],stack:e[wn],parsedStack:t||void 0};return n}function o0(e,t,n){var r,i,a,s,l,c,u,f;if(_x(t))s=t[Hu],l=t[hl],u=t[wn],f=t[Vo]||[],c=t[Gu];else{var d=t,p=d&&d.evt;Gd(d)||(d=d[Fo]||p||d),s=Et(e,Qu(d))||sr,l=$S(e,r0(t||d,s))||sr;var h=t[Qp]||a0(t);f=Ex(h),ke(f)&&Us(f,function(m){m[Wu]=Et(e,m[Wu]),m[Gr]=Et(e,m[Gr])}),u=UM(e,Sx(h)),c=ke(f)&&f[De]>0,n&&(n[Hu]=n[Hu]||s)}return r={},r[ju]=Tx,r.id=i,r.outerId=a,r.typeName=s,r.message=l,r[Gu]=c,r.stack=u,r.parsedStack=f,r.toInterface=Nx,r}function wx(e,t){var n=ke(t[Vo])&&Us(t[Vo],function(i){return kx(i)})||t[Vo],r=o0(e,zt(zt({},t),{parsedStack:n}));return r}function s0(e,t){var n=t[pl](hx);if(n&&n[De]>=4)e[Gr]=n[1],e[Lo]=parseInt(n[2]);else{var r=t[pl](px);r&&r[De]>=3?(e[Gr]=r[1],e[Lo]=parseInt(r[2])):e[Gr]=t}}function l0(e,t,n){var r=e[Gr];t.fn&&n&&n[De]>t.fn&&(t.ln&&n[De]>t.ln?(r=Ze(n[t.fn]||""),e[Lo]=parseInt(Ze(n[t.ln]||""))||0):r=Ze(n[t.fn]||"")),r&&s0(e,r)}function bx(e){var t=!1;if(e&&ye(e)){var n=Ze(e);n&&(t=lx.test(n))}return t}var c0=An({level:1,method:1,assembly:0,fileName:0,line:0});function Dx(e,t){var n,r;if(e&&ye(e)&&Ze(e)){r=(n={},n[ju]=c0,n.level=t,n.assembly=Ze(e),n.method=ZS,n.fileName="",n.line=0,n.sizeInBytes=0,n);for(var i=0;i<n0[De];){var a=n0[i];if(a.chk&&!a.chk(e))break;a.pre&&(e=a.pre(e));var s=e[pl](a.re);if(s&&s[De]>=a.len){a.m&&(r.method=Ze(s[a.m]||ZS)),a.hdl?a.hdl(r,a,s):a.fn&&(a.ln?(r[Gr]=Ze(s[a.fn]||""),r[Lo]=parseInt(Ze(s[a.ln]||""))||0):s0(r,s[a.fn]||""));break}i++}}return u0(r)}function kx(e){var t,n=(t={},t[ju]=c0,t.level=e.level,t.method=e.method,t.assembly=e[Wu],t.fileName=e[Gr],t.line=e[Lo],t.sizeInBytes=0,t);return u0(n)}function u0(e){var t=sx;return e&&(t+=e.method[De],t+=e.assembly[De],t+=e.fileName[De],t+=e.level.toString()[De],t+=e.line.toString()[De],e[Uu]=t),e}function Cx(e){return{level:e.level,method:e.method,assembly:e[Wu],fileName:e[Gr],line:e[Lo]}}var Ix=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),ga=function(){function e(t,n,r,i,a,s,l,c,u){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var d=new Ix;d[xo]=i>0?i:void 0,d.max=isNaN(s)||s===null?void 0:s,d.min=isNaN(a)||a===null?void 0:a,d[lr]=Et(t,n)||sr,d.value=r,d.stdDev=isNaN(l)||l===null?void 0:l,f.metrics=[d],f[cr]=ma(t,c),f[Hr]=va(t,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),yl="";function bi(e){(isNaN(e)||e<0)&&(e=0),e=jg(e);var t=yl+e%1e3,n=yl+ln(e/1e3)%60,r=yl+ln(e/(1e3*60))%60,i=yl+ln(e/(1e3*60*60))%24,a=ln(e/(1e3*60*60*24));return t=t[De]===1?"00"+t:t[De]===2?"0"+t:t,n=n[De]<2?"0"+n:n,r=r[De]<2?"0"+r:r,i=i[De]<2?"0"+i:i,(a>0?a+".":yl)+i+":"+r+":"+n+"."+t}function Rx(e,t,n,r,i){return!i&&ye(e)&&(e==="Script error."||e==="Script error")}var Di=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var c=this;c.ver=2,c.id=HM(t,l),c.url=Ku(t,r),c[lr]=Et(t,n)||sr,isNaN(i)||(c[zu]=bi(i)),c[cr]=ma(t,a),c[Hr]=va(t,s)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),ya=function(){function e(t,n,r,i,a,s,l,c,u,f,d,p){u===void 0&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var h=this;h.ver=2,h.id=n,h[zu]=bi(a),h.success=s,h.resultCode=l+"",h.type=Et(t,u);var m=QM(t,r,c,i);h.data=Ku(t,i)||m.data,h.target=Et(t,m.target),f&&(h.target="".concat(h.target," | ").concat(f)),h[lr]=Et(t,m[lr]),h[cr]=ma(t,d),h[Hr]=va(t,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Yo=function(){function e(t,n,r,i,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var s=this;s.ver=2,n=n||sr,s[hl]=$S(t,n),s[cr]=ma(t,i),s[Hr]=va(t,a),r&&(s[vl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),$o=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var c=this;c.ver=2,c.url=Ku(t,r),c[lr]=Et(t,n)||sr,c[cr]=ma(t,a),c[Hr]=va(t,s),l&&(c.domProcessing=l.domProcessing,c[zu]=l[zu],c.networkConnect=l.networkConnect,c.perfTotal=l.perfTotal,c.receivedResponse=l.receivedResponse,c.sentRequest=l.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Sa=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function ki(e){var t="ai."+e+".";return function(n){return t+n}}var Sl=ki("application"),wt=ki("device"),Zu=ki("location"),Bo=ki("operation"),nm=ki("session"),Ci=ki("user"),Ea=ki("cloud"),El=ki("internal"),f0=function(e){Fr(t,e);function t(){return e.call(this)||this}return t}(zP({applicationVersion:Sl("ver"),applicationBuild:Sl("build"),applicationTypeId:Sl("typeId"),applicationId:Sl("applicationId"),applicationLayer:Sl("layer"),deviceId:wt("id"),deviceIp:wt("ip"),deviceLanguage:wt("language"),deviceLocale:wt("locale"),deviceModel:wt("model"),deviceFriendlyName:wt("friendlyName"),deviceNetwork:wt("network"),deviceNetworkName:wt("networkName"),deviceOEMName:wt("oemName"),deviceOS:wt("os"),deviceOSVersion:wt("osVersion"),deviceRoleInstance:wt("roleInstance"),deviceRoleName:wt("roleName"),deviceScreenResolution:wt("screenResolution"),deviceType:wt("type"),deviceMachineName:wt("machineName"),deviceVMName:wt("vmName"),deviceBrowser:wt("browser"),deviceBrowserVersion:wt("browserVersion"),locationIp:Zu("ip"),locationCountry:Zu("country"),locationProvince:Zu("province"),locationCity:Zu("city"),operationId:Bo("id"),operationName:Bo("name"),operationParentId:Bo("parentId"),operationRootId:Bo("rootId"),operationSyntheticSource:Bo("syntheticSource"),operationCorrelationVector:Bo("correlationVector"),sessionId:nm("id"),sessionIsFirst:nm("isFirst"),sessionIsNew:nm("isNew"),userAccountAcquisitionDate:Ci("accountAcquisitionDate"),userAccountId:Ci("accountId"),userAgent:Ci("userAgent"),userId:Ci("id"),userStoreRegion:Ci("storeRegion"),userAuthUserId:Ci("authUserId"),userAnonymousUserAcquisitionDate:Ci("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Ci("authUserAcquisitionDate"),cloudName:Ea("name"),cloudRole:Ea("role"),cloudRoleVer:Ea("roleVer"),cloudRoleInstance:Ea("roleInstance"),cloudEnvironment:Ea("environment"),cloudLocation:Ea("location"),cloudDeploymentUnit:Ea("deploymentUnit"),internalNodeName:El("nodeName"),internalSdkVersion:El("sdkVersion"),internalAgentVersion:El("agentVersion"),internalSnippet:El("snippet"),internalSdkSrc:El("sdkSrc")}));function Ii(e,t,n,r,i,a){n=Et(r,n)||sr,(K(e)||K(t)||K(n))&&on("Input doesn't contain all required fields");var s="";e[Yp]&&(s=e[Yp],delete e[Yp]);var l={name:n,time:bo(new Date),iKey:s,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return K(i)||Me(i,function(c,u){l.data[c]=u}),l}var un={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},tt=new f0;function Tl(e){var t=null;if(Se(Event))t=new Event(e);else{var n=Rt();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function d0(e,t){Po(e,null,null,t)}function Ox(e){var t=Rt(),n=Qn(),r=!1,i=[],a=1;n&&!K(n.onLine)&&!n.onLine&&(a=2);var s=0,l=p(),c=Ei(Tn("OfflineListener"),e);try{if(f(sn())&&(r=!0),t){var u=t.body||t;u.ononline&&f(u)&&(r=!0)}}catch{r=!1}function f(R){var M=!1;return R&&(M=Ur(R,"online",v,c),M&&Ur(R,"offline",_,c)),M}function d(){return l}function p(){return!(s===2||a===2)}function h(){var R=p();l!==R&&(l=R,oe(i,function(M){var V={isOnline:l,rState:a,uState:s};try{M(V)}catch{}}))}function m(R){s=R,h()}function v(){a=1,h()}function _(){a=2,h()}function g(){var R=sn();if(R&&r){if(d0(R,c),t){var M=t.body||t;dt(M.ononline)||d0(M,c)}r=!1}}function S(R){return i.push(R),{rm:function(){var M=i.indexOf(R);if(M>-1)return i.splice(M,1)}}}return{isOnline:d,isListening:function(){return r},unload:g,addListener:S,setOnlineState:m}}var ef="AppInsightsPropertiesPlugin",h0="AppInsightsChannelPlugin",p0="ApplicationInsightsAnalytics",tf="toString",rm="isStorageUseDisabled",Uo="_addHook",Ot="core",Ri="dataType",Ta="envelopeType",fn="diagLog",Na="track",nf="trackPageView",im="trackPreviousPageVisit",wa="sendPageViewInternal",Ho="startTime",Nl="properties",ur="duration",am="sendPageViewPerformanceInternal",om="populatePageViewPerformanceEvent",Go="href",m0="sendExceptionInternal",wl="error",sm="lineNumber",lm="columnNumber",cm="CreateAutoException",rf="addTelemetryInitializer",Px="overridePageViewDuration",um="autoExceptionInstrumented",v0="autoTrackPageVisitTime",_0="isBrowserLinkTrackingEnabled",bl="length",g0="enableAutoRouteTracking",y0="enableUnhandledPromiseRejectionTracking",fm="autoUnhandledPromiseInstrumented",dm="getEntriesByType",S0="isPerformanceTimingSupported",E0="getPerformanceTiming",af="navigationStart",hm="shouldCollectDuration",T0="isPerformanceTimingDataReady",Dl="responseStart",Ax="requestStart",of="loadEventEnd",pm="responseEnd",sf="connectEnd",Mx=function(){function e(t,n,r,i){et(e,this,function(a){var s=null,l=[],c=!1,u=!1,f;r&&(f=r.logger);function d(m){r&&r.flush(m,function(){})}function p(){s||(s=En(function(){s=null;var m=l.slice(0),v=!1;l=[],oe(m,function(_){_()?v=!0:l.push(_)}),l[bl]>0&&p(),v&&d(!0)},100))}function h(m){l.push(m),p()}a[nf]=function(m,v){var _=m.name;if(K(_)||typeof _!="string"){var g=Rt();_=m.name=g&&g.title||""}var S=m.uri;if(K(S)||typeof S!="string"){var R=ar();S=m.uri=R&&R[Go]||""}if(!u){var M=Vr(),V=M&&M[dm]&&M[dm]("navigation");if(V&&V[0]&&!dt(M.timeOrigin)){var z=V[0].loadEventStart;m[Ho]=new Date(M.timeOrigin+z)}else{var b=(v||m[Nl]||{})[ur]||0;m[Ho]=new Date(new Date().getTime()-b)}u=!0}if(!i[S0]()){t[wa](m,v),d(!0),Mg()||Z(f,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var I=!1,U,C=i[E0]()[af];C>0&&(U=tn(C,+new Date),i[hm](U)||(U=void 0));var P;!K(v)&&!K(v[ur])&&(P=v[ur]),(n||!isNaN(P))&&(isNaN(P)&&(v||(v={}),v[ur]=U),t[wa](m,v),d(!0),I=!0);var q=6e4;v||(v={}),h(function(){var te=!1;try{if(i[T0]()){te=!0;var E={name:_,uri:S};i[om](E),!E.isValid&&!I?(v[ur]=U,t[wa](m,v)):(I||(v[ur]=E.durationMs,t[wa](m,v)),c||(t[am](E,v),c=!0))}else C>0&&tn(C,+new Date)>q&&(te=!0,I||(v[ur]=q,t[wa](m,v)))}catch(D){Z(f,1,38,"trackPageView failed on page load calculation: "+je(D),{exception:se(D)})}return te})},a.teardown=function(m,v){if(s){s.cancel(),s=null;var _=l.slice(0);l=[],oe(_,function(g){g()})}}})}return e.__ieDyn=1,e}(),xx=36e5,N0=["googlebot","adsbot-google","apis-google","mediapartners-google"];function w0(){var e=Vr();return e&&!!e.timing}function Vx(){var e=Vr();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[bl]>0}function Lx(){var e=Vr(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[af]>0&&t[Dl]>0&&t[Ax]>0&&t[of]>0&&t[pm]>0&&t[sf]>0&&t.domLoading>0}function b0(){return w0()?Vr().timing:null}function Fx(){return Vx()?Vr()[dm]("navigation")[0]:null}function Yx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Qn()||{},r=n.userAgent,i=!1;if(r)for(var a=0;a<N0[bl];a++)i=i||jt(r.toLowerCase(),N0[a])!==-1;if(i)return!1;for(var a=0;a<e[bl];a++)if(e[a]<0||e[a]>=xx)return!1;return!0}var $x=function(){function e(t){var n=la(t);et(e,this,function(r){r[om]=function(i){i.isValid=!1;var a=Fx(),s=b0(),l=0,c=0,u=0,f=0,d=0;(a||s)&&(a?(l=a[ur],c=a[Ho]===0?a[sf]:tn(a[Ho],a[sf]),u=tn(a.requestStart,a[Dl]),f=tn(a[Dl],a[pm]),d=tn(a.responseEnd,a[of])):(l=tn(s[af],s[of]),c=tn(s[af],s[sf]),u=tn(s.requestStart,s[Dl]),f=tn(s[Dl],s[pm]),d=tn(s.responseEnd,s[of])),l===0?Z(n,2,10,"error calculating page view performance.",{total:l,network:c,request:u,response:f,dom:d}):r[hm](l,c,u,f,d)?l<ln(c)+ln(u)+ln(f)+ln(d)?Z(n,2,8,"client performance math error.",{total:l,network:c,request:u,response:f,dom:d}):(i.durationMs=l,i.perfTotal=i[ur]=bi(l),i.networkConnect=bi(c),i.sentRequest=bi(u),i.receivedResponse=bi(f),i.domProcessing=bi(d),i.isValid=!0):Z(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:l,network:c,request:u,response:f,dom:d}))},r[E0]=b0,r[S0]=w0,r[T0]=Lx,r[hm]=Yx})}return e.__ieDyn=1,e}(),Bx=function(){function e(t,n){var r="prevPageVisitData";et(e,this,function(i){i[im]=function(l,c){try{var u=a(l,c);u&&n(u.pageName,u.pageUrl,u.pageVisitTime)}catch(f){ca(t,"Auto track page visit time failed, metric will not be collected: "+se(f))}};function a(l,c){var u=null;try{if(u=s(),gl()){Jp(t,r)!=null&&on("Cannot call startPageVisit consecutively without first calling stopPageVisit");var f=Vn().stringify(new Ux(l,c));XS(t,r,f)}}catch(d){ca(t,"Call to restart failed: "+se(d)),u=null}return u}function s(){var l=null;try{if(gl()){var c=Mn(),u=Jp(t,r);u&&el()&&(l=Vn().parse(u),l.pageVisitTime=c-l.pageVisitStartTime,JS(t,r))}}catch(f){ca(t,"Stop page visit timer failed: "+se(f)),l=null}return l}Le(i,"_logger",{g:function(){return t}}),Le(i,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),Ux=function(){function e(t,n){this.pageVisitStartTime=Mn(),this.pageName=t,this.pageUrl=n}return e}(),D0=function(){function e(t,n){var r=this,i={};r.start=function(a){typeof i[a]<"u"&&Z(t,2,62,"start was called more than once for this event without calling stop.",{name:a,key:a},!0),i[a]=+new Date},r.stop=function(a,s,l,c){var u=i[a];if(isNaN(u))Z(t,2,63,"stop was called without a corresponding start.",{name:a,key:a},!0);else{var f=+new Date,d=tn(u,f);r.action(a,s,d,l,c)}delete i[a],i[a]=void 0}}return e}(),Xt,Hx="event";function kl(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Gx(e){if(e&&e.reason){var t=e.reason;return!ye(t)&&Se(t[tf])?t[tf]():se(t)}return e||""}var k0=6e4,Wx=Fs((Xt={sessionRenewalMs:Hy(C0,30*60*1e3),sessionExpirationMs:Hy(C0,24*60*60*1e3),disableExceptionTracking:St()},Xt[v0]=St(),Xt[Px]=St(),Xt[y0]=St(),Xt[fm]=!1,Xt.samplingPercentage=Du(jx,100),Xt[rm]=St(),Xt[_0]=St(),Xt[g0]=St(),Xt.namePrefix=xA(),Xt.enableDebug=St(),Xt.disableFlushOnBeforeUnload=St(),Xt.disableFlushOnUnload=St(!1,"disableFlushOnBeforeUnload"),Xt.expCfg=Ln({inclScripts:!1,expLog:void 0,maxLogs:50}),Xt));function C0(e,t){return e=e||t,e<k0&&(e=k0),+e}function jx(e){return!isNaN(e)&&e>0&&e<=100}function zx(e){dt(e[rm])||(e[rm]?ZM():ex())}var Kx=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.identifier=p0,n.priority=180,n.autoRoutePVDelay=500;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,R,M,V,z,b;return et(t,n,function(I,U){var C=U[Uo];ve(),I.getCookieMgr=function(){return pp(I[Ot])},I.processTelemetry=function(y,A){I.processNext(y,A)},I.trackEvent=function(y,A){try{var T=Ii(y,wi[Ri],wi[Ta],I[fn](),A);I[Ot][Na](T)}catch(B){ue(2,39,"trackTrace failed, trace will not be collected: "+je(B),{exception:se(B)})}},I.startTrackEvent=function(y){try{r.start(y)}catch(A){ue(1,29,"startTrackEvent failed, event will not be collected: "+je(A),{exception:se(A)})}},I.stopTrackEvent=function(y,A,T){try{r.stop(y,void 0,A,T)}catch(B){ue(1,30,"stopTrackEvent failed, event will not be collected: "+je(B),{exception:se(B)})}},I.trackTrace=function(y,A){try{var T=Ii(y,Yo[Ri],Yo[Ta],I[fn](),A);I[Ot][Na](T)}catch(B){ue(2,39,"trackTrace failed, trace will not be collected: "+je(B),{exception:se(B)})}},I.trackMetric=function(y,A){try{var T=Ii(y,ga[Ri],ga[Ta],I[fn](),A);I[Ot][Na](T)}catch(B){ue(1,36,"trackMetric failed, metric will not be collected: "+je(B),{exception:se(B)})}},I[nf]=function(y,A){try{var T=y||{};a[nf](T,zt(zt(zt({},T.properties),T.measurements),A)),S&&l[im](T.name,T.uri)}catch(B){ue(1,37,"trackPageView failed, page view will not be collected: "+je(B),{exception:se(B)})}},I[wa]=function(y,A,T){var B=Rt();if(B&&(y.refUri=y.refUri===void 0?B.referrer:y.refUri),K(y[Ho])){var ie=(A||y[Nl]||{})[ur]||0;y[Ho]=new Date(new Date().getTime()-ie)}var w=Ii(y,Di[Ri],Di[Ta],I[fn](),A,T);I[Ot][Na](w)},I[am]=function(y,A,T){var B=Ii(y,$o[Ri],$o[Ta],I[fn](),A,T);I[Ot][Na](B)},I.trackPageViewPerformance=function(y,A){var T=y||{};try{s[om](T),I[am](T,A)}catch(B){ue(1,37,"trackPageViewPerformance failed, page view will not be collected: "+je(B),{exception:se(B)})}},I.startTrackPage=function(y){try{if(typeof y!="string"){var A=Rt();y=A&&A.title||""}i.start(y)}catch(T){ue(1,31,"startTrackPage failed, page view may not be collected: "+je(T),{exception:se(T)})}},I.stopTrackPage=function(y,A,T,B){try{if(typeof y!="string"){var ie=Rt();y=ie&&ie.title||""}if(typeof A!="string"){var w=ar();A=w&&w[Go]||""}i.stop(y,A,T,B),S&&l[im](y,A)}catch(H){ue(1,32,"stopTrackPage failed, page view will not be collected: "+je(H),{exception:se(H)})}},I[m0]=function(y,A,T){var B=y&&(y.exception||y[wl])||Gd(y)&&y||{name:y&&typeof y,message:y||sr};y=y||{};var ie=new bn(I[fn](),B,y[Nl]||A,y.measurements,y.severityLevel,y.id).toInterface(),w=Rt();if(w&&(R!=null&&R.inclScripts)){var H=iM(w);ie[Nl].exceptionScripts=JSON.stringify(H)}if(R!=null&&R.expLog){var Y=R.expLog();Y&&Y.logs&&ke(Y.logs)&&(ie[Nl].exceptionLog=Y.logs.slice(0,R.maxLogs).join(`
|
|
64
|
-
`))}var Q=Ii(ie,bn[Ri],bn[Ta],I[fn](),A,T);I[Ot][Na](Q)},I.trackException=function(y,A){y&&!y.exception&&y[wl]&&(y.exception=y[wl]);try{I[m0](y,A)}catch(T){ue(1,35,"trackException failed, exception will not be collected: "+je(T),{exception:se(T)})}},I._onerror=function(y){var A=y&&y[wl],T=y&&y.evt;try{if(!T){var B=sn();B&&(T=B[Hx])}var ie=y&&y.url||(Rt()||{}).URL,w=y.errorSrc||"window.onerror@"+ie+":"+(y[sm]||0)+":"+(y[lm]||0),H={errorSrc:w,url:ie,lineNumber:y[sm]||0,columnNumber:y[lm]||0,message:y.message};Rx(y.message,y.url,y.lineNumber,y.columnNumber,y[wl])?E(bn[cm]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ie,y[sm]||0,y[lm]||0,A,T,null,w),H):(y.errorSrc||(y.errorSrc=w),I.trackException({exception:y,severityLevel:3},H))}catch(Q){var Y=A?A.name+", "+A.message:"null";ue(1,11,"_onError threw exception while logging error, error will not be collected: "+je(Q),{exception:se(Q),errorString:Y})}},I[rf]=function(y){if(I[Ot])return I[Ot][rf](y);c||(c=[]),c.push(y)},I.initialize=function(y,A,T,B){if(!I.isInitialized()){K(A)&&on("Error initializing"),U.initialize(y,A,T,B);try{z=Ei(Tn(I.identifier),A.evtNamespace&&A.evtNamespace()),c&&(oe(c,function(ie){A[rf](ie)}),c=null),P(y),s=new $x(I[Ot]),a=new Mx(I,g.overridePageViewDuration,I[Ot],s),l=new Bx(I[fn](),function(ie,w,H){return q(ie,w,H)}),r=new D0(I[fn](),"trackEvent"),r.action=function(ie,w,H,Y,Q){Y||(Y={}),Q||(Q={}),Y.duration=H[tf](),I.trackEvent({name:ie,properties:Y,measurements:Q})},i=new D0(I[fn](),"trackPageView"),i.action=function(ie,w,H,Y,Q){K(Y)&&(Y={}),Y.duration=H[tf]();var Ee={name:ie,uri:w,properties:Y,measurements:Q};I[wa](Ee,Y)},Hc()&&(D(),j())}catch(ie){throw I.setInitialized(!1),ie}}},I._doTeardown=function(y,A){a&&a.teardown(y,A),Po(window,null,null,z),ve()},I._getDbgPlgTargets=function(){return[b,m]};function P(y){var A=I.identifier,T=I[Ot];I[Uo](mt(y,function(){var B=Fn(null,y,T);g=B.getExtCfg(A,Wx),m=m||y[um]||g[um],R=g.expCfg,S=g[v0],y.storagePrefix&&Xp(y.storagePrefix),zx(g),u=g[_0],te()}))}function q(y,A,T){var B={PageName:y,PageUrl:A};I.trackMetric({name:"PageVisitTime",average:T,max:T,min:T,sampleCount:1},B)}function te(){if(!f&&u){var y=["/browserLinkSignalR/","/__browserLink/"],A=function(T){if(u&&T.baseType===ya[Ri]){var B=T.baseData;if(B){for(var ie=0;ie<y[bl];ie++)if(B.target&&jt(B.target,y[ie])>=0)return!1}}return!0};I[Uo](I[rf](A)),f=!0}}function E(y,A){var T=Ii(y,bn[Ri],bn[Ta],I[fn](),A);I[Ot][Na](T)}function D(){var y=sn(),A=ar(!0);I[Uo](mt(g,function(){h=g.disableExceptionTracking,!h&&!m&&!g[um]&&(C($u(y,"onerror",{ns:z,rsp:function(T,B,ie,w,H,Y){!h&&T.rslt!==!0&&I._onerror(bn[cm](B,ie,w,H,Y,T.evt))}},!1)),b++,m=!0)})),re(y,A)}function j(){var y=sn(),A=ar(!0);I[Uo](mt(g,function(){if(d=g[g0]===!0,y&&d&&!p&&U1()){var T=Ag();Se(T.pushState)&&Se(T.replaceState)&&typeof Event!==wh&&O(y,T,A)}}))}function x(){var y=null;if(I[Ot]&&I[Ot].getTraceCtx&&(y=I[Ot].getTraceCtx(!1)),!y){var A=I[Ot].getPlugin(ef);if(A){var T=A.plugin.context;T&&(y=zp(T.telemetryTrace))}}return y}function O(y,A,T){if(p)return;var B=g.namePrefix||"";function ie(){d&&kl(y,Tl(B+"locationchange"))}function w(){if(V&&(M=V),V=T&&T[Go]||"",d){var H=x();if(H){H.setTraceId(gi());var Y="_unknown_";T&&T.pathname&&(Y=T.pathname+(T.hash||"")),H.setName(Et(I[fn](),Y))}En((function(Q){I[nf]({refUri:Q,properties:{duration:0}})}).bind(I,M),I.autoRoutePVDelay)}}C($u(A,"pushState",{ns:z,rsp:function(){d&&(kl(y,Tl(B+"pushState")),kl(y,Tl(B+"locationchange")))}},!0)),C($u(A,"replaceState",{ns:z,rsp:function(){d&&(kl(y,Tl(B+"replaceState")),kl(y,Tl(B+"locationchange")))}},!0)),Ur(y,B+"popstate",ie,z),Ur(y,B+"locationchange",w,z),p=!0}function re(y,A){I[Uo](mt(g,function(){v=g[y0]===!0,m=m||g[fm],v&&!_&&(C($u(y,"onunhandledrejection",{ns:z,rsp:function(T,B){v&&T.rslt!==!0&&I._onerror(bn[cm](Gx(B),A?A[Go]:"",0,0,B,T.evt))}},!1)),b++,g[fm]=_=!0)}))}function ue(y,A,T,B,ie){I[fn]().throwInternal(y,A,T,B,ie)}function ve(){r=null,i=null,a=null,s=null,l=null,c=null,u=!1,f=!1,d=!1,p=!1,h=!1,m=!1,v=!1,_=!1,S=!1;var y=ar(!0);M=y&&y[Go]||"",V=null,z=null,g=null,b=0,Le(I,"config",{g:function(){return g}})}Le(I,"_pageViewManager",{g:function(){return a}}),Le(I,"_pageViewPerformanceManager",{g:function(){return s}}),Le(I,"_pageVisitTimeManager",{g:function(){return l}}),Le(I,"_evtNamespace",{g:function(){return"."+z}})}),n}return t.Version="3.3.7",t}(Oo),lf="featureOptIn",I0="scheduleFetchTimeout";function R0(e,t,n,r){try{var i=n>r;i&&(e=null);var a=n==0?oP({},e):e;return a&&t&&!i&&Me(a,function(s){var l=t[s];l&&(en(a[s])&&en(l)?a[s]=R0(a[s],l,++n,r):delete a[s])}),a}catch{}return e}var Wo="featureOptIn.",O0=".mode",P0=".onCfg",A0=".offCfg";function qx(e,t,n){var r;if(!t||!t.enabled)return null;var i=(t[lf]||{})[e]||{mode:1},a=i.mode,s=i.onCfg,l=i.offCfg,c=(n||{})[e]||{mode:2},u=c.mode,f=c.onCfg,d=c.offCfg,p=!!c.blockCdnCfg,h=Wo+e+O0,m=Wo+e+P0,v=Wo+e+A0,_=u,g=f,S=d;return p||(a===4||a===5?(_=a==4?3:2,g=s||f,S=l||d):a===2||u===2?(_=2,g=f||s,S=d||l):a===3?(_=3,g=f||s,S=d||l):a===1&&u===1&&(_=1)),r={},r[h]=_,r[m]=g,r[v]=S,r}function Xx(e,t){try{if(!e||!e.enabled)return null;if(!e[lf])return e.config;var n=e[lf],r=e.config||{};return Me(n,function(i){var a=qx(i,e,t.config[lf]);K(a)||(Me(a,function(s,l){Wg(r,s,l)}),Jx(i,a,r))}),r}catch{}return null}function Jx(e,t,n){var r=t[Wo+e+O0],i=t[Wo+e+P0],a=t[Wo+e+A0],s=null;r===3&&(s=i),r===2&&(s=a),s&&Me(s,function(l,c){Wg(n,l,c)})}var Cl,Qx="ai_cfgsync",M0="GET",Zx=18e5,jo=void 0,eV={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},tV=Fs((Cl={syncMode:1,blkCdnCfg:jo,customEvtName:jo,cfgUrl:jo,overrideSyncFn:jo,overrideFetchFn:jo,onCfgChangeReceive:jo},Cl[I0]=Zx,Cl.nonOverrideConfigs=eV,Cl.enableAjax=!1,Cl)),nV=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,R=!1,M;return et(t,n,function(V,z){b(),V.initialize=function(y,A,T,B){z.initialize(y,A,T,B),s=Ei(Tn(V.identifier),A.evtNamespace&&A.evtNamespace()),I(y)},V.getCfg=function(){return i},V.pause=function(){R=!0,ve()},V.resume=function(){R=!1,ue()},V.setCfg=function(y){return U(y)},V.sync=function(y){return P(y)},V.updateEventListenerName=function(y){return q(y)},V._doTeardown=function(y,A){C(),ve(),b()},V._getDbgPlgTargets=function(){return[f,u,a,d,v]};function b(){i=null,a=null,s=null,l=null,u=null,f=null,v=null,c=null,p=null,h=null,d=null,M=!1,g=null,S=null,m=null}function I(y){var A=V.identifier,T=V.core;V._addHook(mt(y,function(){var B=Fn(null,y,T);r=B.getExtCfg(A,tV);var ie=d;d=!!r.blkCdnCfg,M=!!r.enableAjax,!K(ie)&&ie!==d&&(!d&&l?_&&_(l,j,f):ve()),K(u)&&(u=r.syncMode===2),K(f)&&(f=r.syncMode===1);var w=r.customEvtName||Qx;a!==w&&(u?q(w):(C(),a=w)),K(l)&&(l=r.cfgUrl),l||(i=y,f&&P())})),S=r.overrideSyncFn,g=r.overrideFetchFn,m=r.onCfgChangeReceive,v=r.nonOverrideConfigs,p=r[I0],_=te(),h=0,l&&!d&&_&&_(l,j,f)}function U(y,A){if(y){if(i=y,A&&!R)return P();if(u&&!R)return V.core.updateCfg(y),!0}return!1}function C(){try{var y=Sn();y&&Po(y,null,null,s)}catch{}}function P(y){try{return S&&Se(S)?S(i,y):mA(a,i,y)}catch{}return!1}function q(y){try{return C(),y&&(a=y,O()),!0}catch{}return!1}function te(){var y=g;return K(y)&&(Zh()?y=E:Eu()&&(y=D)),y}function E(y,A,T){var B=Sn(),ie=B&&B.fetch||null;if(y&&ie&&Se(ie))try{var w={method:M0};M||(w[ha]=!0);var H=new Request(y,w);if(!M)try{H[ha]=!0}catch{}cn(fetch(H),function(Y){var Q=Y.value;Y.rejected?x(A,400):Q.ok?cn(Q.text(),function(Ee){x(A,Q.status,Ee.value,T)}):x(A,Q.status,null,T)})}catch{}}function D(y,A,T){try{var B=new XMLHttpRequest;M||(B[ha]=!0),B.open(M0,y),B.onreadystatechange=function(){B.readyState===XMLHttpRequest.DONE&&x(A,B.status,B.responseText,T)},B.onerror=function(){x(A,400)},B.ontimeout=function(){x(A,400)},B.send()}catch{}}function j(y,A,T){try{if(y>=200&&y<400&&A){h=0;var B=Vn();if(B){var ie=B.parse(A),w=Xx(ie,V.core),H=w&&Wt(w)&&re(w);H&&U(H,T)}}else h++;h<3&&ue()}catch{}}function x(y,A,T,B){try{y(A,T,B)}catch{}}function O(){if(u){var y=Sn();if(y)try{Ur(y,a,function(A){var T=A&&A.detail;if(m&&T)m(T);else{var B=T&&T.cfg,ie=B&&Wt(B)&&re(B);ie&&U(ie)}},s,!0)}catch{}}}function re(y,A){var T=null;try{y&&(T=R0(y,v,0,5))}catch{}return T}function ue(){!c&&p&&(c=En(function(){c=null,_(l,j,f)},p),c.unref())}function ve(){c&&c.cancel(),c=null,h=0}V.processTelemetry=function(y,A){V.processNext(y,A)}}),n}return t.__ieDyn=1,t}(Oo),ba="duration",Pt="tags",mm="deviceType",dn="data",Wr="name",Il="traceID",xe="length",Rl="stringify",Da="measurements",fr="dataType",ka="envelopeType",Ca="toString",Ia="enqueue",Ra="count",jr="push",vm="emitLineDelimitedJson",zo="clear",cf="markAsSent",Ol="clearSent",_m="bufferOverride",Pl="BUFFER_KEY",Oi="SENT_BUFFER_KEY",Ko="concat",Al="MAX_BUFFER_SIZE",Ml="triggerSend",$t="diagLog",gm="initialize",xl="_sender",Vl="endpointUrl",Ll="instrumentationKey",ym="customHeaders",x0="maxBatchSizeInBytes",Sm="onunloadDisableBeacon",Em="isBeaconApiDisabled",V0="alwaysUseXhrOverride",L0="enableSessionStorageBuffer",dr="_buffer",F0="onunloadDisableFetch",Y0="disableSendBeaconSplit",uf="getSenderInst",Oa="_onError",Tm="_onPartialSuccess",ff="_onSuccess",Nm="itemsReceived",wm="itemsAccepted",bm="baseType",df="sampleRate",rV="getHashCodeScore",Dm="baseType",lt="baseData",kt="properties",$0="true";function vt(e,t,n){return Qe(e,t,n,Vc)}function iV(e,t,n){var r=n[Pt]=n[Pt]||{},i=t.ext=t.ext||{},a=t[Pt]=t[Pt]||[],s=i.user;s&&(vt(r,tt.userAuthUserId,s.authId),vt(r,tt.userId,s.id||s.localId));var l=i.app;l&&vt(r,tt.sessionId,l.sesId);var c=i.device;c&&(vt(r,tt.deviceId,c.id||c.localId),vt(r,tt[mm],c.deviceClass),vt(r,tt.deviceIp,c.ip),vt(r,tt.deviceModel,c.model),vt(r,tt[mm],c[mm]));var u=t.ext.web;if(u){vt(r,tt.deviceLanguage,u.browserLang),vt(r,tt.deviceBrowserVersion,u.browserVer),vt(r,tt.deviceBrowser,u.browser);var f=n[dn]=n[dn]||{},d=f[lt]=f[lt]||{},p=d[kt]=d[kt]||{};vt(p,"domain",u.domain),vt(p,"isManual",u.isManual?$0:null),vt(p,"screenRes",u.screenRes),vt(p,"userConsent",u.userConsent?$0:null)}var h=i.os;h&&(vt(r,tt.deviceOS,h[Wr]),vt(r,tt.deviceOSVersion,h.osVer));var m=i.trace;m&&(vt(r,tt.operationParentId,m.parentID),vt(r,tt.operationName,Et(e,m[Wr])),vt(r,tt.operationId,m[Il]));for(var v={},_=a[xe]-1;_>=0;_--){var g=a[_];Me(g,function(R,M){v[R]=M}),a.splice(_,1)}Me(a,function(R,M){v[R]=M});var S=zt(zt({},r),v);S[tt.internalSdkVersion]||(S[tt.internalSdkVersion]=Et(e,"javascript:".concat(aV.Version),64)),n[Pt]=Ey(S)}function Pi(e,t,n){K(e)||Me(e,function(r,i){Ls(i)?n[r]=i:ye(i)?t[r]=i:el()&&(t[r]=Vn()[Rl](i))})}function Pa(e,t){K(e)||Me(e,function(n,r){e[n]=r||t})}function Aa(e,t,n,r){var i=new ox(e,r,t);vt(i,"sampleRate",n[VS]),(n[lt]||{}).startTime&&(i.time=bo(n[lt].startTime)),i.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return i[Wr]=i[Wr].replace("{0}",a),iV(e,n,i),n[Pt]=n[Pt]||[],Ey(i)}function Ma(e,t){K(t[lt])&&Z(e,1,46,"telemetryItem.baseData cannot be null.")}var aV={Version:"3.3.7"};function oV(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Pi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt];if(K(a))return ca(e,"Invalid input for dependency data"),null;var s=a[kt]&&a[kt][LS]?a[kt][LS]:"GET",l=new ya(e,a.id,a.target,a[Wr],a[ba],a.success,a.responseCode,s,a.type,a.correlationContext,i,r),c=new Sa(ya[fr],l);return Aa(e,ya[ka],t,c)}function B0(e,t,n){Ma(e,t);var r={},i={};t[Dm]!==wi[fr]&&(r.baseTypeSource=t[Dm]),t[Dm]===wi[fr]?(r=t[lt][kt]||{},i=t[lt][Da]||{}):t[lt]&&Pi(t[lt],r,i),Pi(t[dn],r,i),K(n)||Pa(r,n);var a=t[lt][Wr],s=new wi(e,a,r,i),l=new Sa(wi[fr],s);return Aa(e,wi[ka],t,l)}function sV(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Pi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt],s=bn.CreateFromInterface(e,a,i,r),l=new Sa(bn[fr],s);return Aa(e,bn[ka],t,l)}function lV(e,t,n){Ma(e,t);var r=t[lt],i=r[kt]||{},a=r[Da]||{};Pi(t[dn],i,a),K(n)||Pa(i,n);var s=new ga(e,r[Wr],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),l=new Sa(ga[fr],s);return Aa(e,ga[ka],t,l)}function cV(e,t,n){Ma(e,t);var r,i=t[lt];!K(i)&&!K(i[kt])&&!K(i[kt][ba])?(r=i[kt][ba],delete i[kt][ba]):!K(t[dn])&&!K(t[dn][ba])&&(r=t[dn][ba],delete t[dn][ba]);var a=t[lt],s;((t.ext||{}).trace||{})[Il]&&(s=t.ext.trace[Il]);var l=a.id||s,c=a[Wr],u=a.uri,f=a[kt]||{},d=a[Da]||{};if(K(a.refUri)||(f.refUri=a.refUri),K(a.pageType)||(f.pageType=a.pageType),K(a.isLoggedIn)||(f.isLoggedIn=a.isLoggedIn[Ca]()),!K(a[kt])){var p=a[kt];Me(p,function(v,_){f[v]=_})}Pi(t[dn],f,d),K(n)||Pa(f,n);var h=new Di(e,c,u,r,f,d,l),m=new Sa(Di[fr],h);return Aa(e,Di[ka],t,m)}function uV(e,t,n){Ma(e,t);var r=t[lt],i=r[Wr],a=r.uri||r.url,s=r[kt]||{},l=r[Da]||{};Pi(t[dn],s,l),K(n)||Pa(s,n);var c=new $o(e,i,a,void 0,s,l,r),u=new Sa($o[fr],c);return Aa(e,$o[ka],t,u)}function fV(e,t,n){Ma(e,t);var r=t[lt].message,i=t[lt].severityLevel,a=t[lt][kt]||{},s=t[lt][Da]||{};Pi(t[dn],a,s),K(n)||Pa(a,n);var l=new Yo(e,r,i,a,s),c=new Sa(Yo[fr],l);return Aa(e,Yo[ka],t,c)}var U0=function(){function e(t,n){var r=[],i=!1,a=n.maxRetryCnt;this._get=function(){return r},this._set=function(s){return r=s,r},et(e,this,function(s){s[Ia]=function(l){if(s[Ra]()>=n.eventsLimitInMem){i||(Z(t,2,105,"Maximum in-memory buffer size reached: "+s[Ra](),!0),i=!0);return}l.cnt=l.cnt||0,!(!K(a)&&l.cnt>a)&&r[jr](l)},s[Ra]=function(){return r[xe]},s.size=function(){for(var l=r[xe],c=0;c<r[xe];c++)l+=r[c].item[xe];return n[vm]||(l+=2),l},s[zo]=function(){r=[],i=!1},s.getItems=function(){return r.slice(0)},s.batchPayloads=function(l){if(l&&l[xe]>0){var c=[];oe(l,function(f){c[jr](f.item)});var u=n[vm]?c.join(`
|
|
65
|
-
`):"["+c.join(",")+"]";return u}return null},s.createNew=function(l,c,u){var f=r.slice(0);l=l||t,c=c||{};var d=u?new H0(l,c):new km(l,c);return oe(f,function(p){d[Ia](p)}),d}})}return e.__ieDyn=1,e}(),km=function(e){
|
|
66
|
-
`,{name:l},!0);else{c=[];for(var u=0;u<s[xe];u++){var f=s[u],d=r(f,l+"["+u+"]");c[jr](d)}}return c}function a(s,l,c){var u;return s&&(u={},Me(s,function(f,d){if(l==="string")d===void 0?u[f]="undefined":d===null?u[f]="null":d[Ca]?u[f]=d[Ca]():u[f]="invalid field: toString() is not defined.";else if(l==="number")if(d===void 0)u[f]="undefined";else if(d===null)u[f]="null";else{var p=parseFloat(d);u[f]=p}else u[f]="invalid field: "+c+" is of unknown type.",Z(t,1,u[f],null,!0)})),u}})}return e.__ieDyn=1,e}(),pV=8,mV=function(){function e(){}return e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[xe]<pV;)t=t[Ko](t);for(var n=5381,r=0;r<t[xe];++r)n=(n<<5)+n+t.charCodeAt(r),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),vV=function(){function e(){var t=this,n=new mV,r=new f0;t.getSamplingScore=function(i){var a=0;return i[Pt]&&i[Pt][r.userId]?a=n.getHashCodeScore(i[Pt][r.userId]):i.ext&&i.ext.user&&i.ext.user.id?a=n[rV](i.ext.user.id):i[Pt]&&i[Pt][r.operationId]?a=n.getHashCodeScore(i[Pt][r.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Il]?a=n.getHashCodeScore(i.ext.telemetryTrace[Il]):a=Math.random()*100,a}}return e}(),_V=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var r=n||la(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[df]=t,this.samplingScoreGenerator=new vV}return e.prototype.isSampledIn=function(t){var n=this[df],r=!1;return n==null||n>=100||t.baseType===ga[fr]?!0:(r=this.samplingScoreGenerator.getSamplingScore(t)<n,r)},e}(),nt,zr,$n=void 0,G0="",gV=65e3;function W0(e){try{return e.responseText}catch{}return null}function yV(e){return e&&e.sendPOST}var j0=Fs((nt={endpointUrl:Du(Vc,Fp+Ao)},nt[vm]=St(),nt.maxBatchInterval=15e3,nt[x0]=102400,nt.disableTelemetry=St(),nt[L0]=St(!0),nt.isRetryDisabled=St(),nt[Em]=St(!0),nt[Y0]=St(!0),nt.disableXhr=St(),nt[F0]=St(),nt[Sm]=St(),nt[Ll]=$n,nt.namePrefix=$n,nt.samplingPercentage=Du(SV,100),nt[ym]=$n,nt.convertUndefined=$n,nt.eventsLimitInMem=1e4,nt[_m]=!1,nt.httpXHROverride={isVal:yV,v:$n},nt[V0]=St(),nt.transports=$n,nt.retryCodes=$n,nt.corsPolicy=$n,nt.maxRetryCnt={isVal:Ls,v:10},nt)),z0="X-Set-Cross-Origin-Resource-Policy";function SV(e){return!isNaN(e)&&e>0&&e<=100}var EV=(zr={},zr[wi.dataType]=B0,zr[Yo.dataType]=fV,zr[Di.dataType]=cV,zr[$o.dataType]=uV,zr[bn.dataType]=sV,zr[ga.dataType]=lV,zr[ya.dataType]=oV,zr),TV=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=h0;var r,i,a,s,l,c,u,f,d=0,p,h,m,v,_,g,S,R,M,V,z,b,I,U,C,P,q,te,E,D,j,x,O,re,ue,ve,y,A;return et(t,n,function(T,B){If(),T.pause=function(){Ct(),s=!0},T.resume=function(){s&&(s=!1,i=null,L(),rt())},T.flush=function(k,$,ee){if(k===void 0&&(k=!0),!s){Ct();try{return T[Ml](k,null,ee||1)}catch(pe){Z(T[$t](),1,22,"flush failed, telemetry will not be collected: "+je(pe),{exception:se(pe)})}}},T.onunloadFlush=function(){if(!s)if(S||D)try{return T[Ml](!0,X,2)}catch(k){Z(T[$t](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+je(k),{exception:se(k)})}else T.flush(!1)},T.addHeader=function(k,$){f[k]=$},T[gm]=function(k,$,ee,pe){T.isInitialized()&&Z(T[$t](),1,28,"Sender is already initialized"),B[gm](k,$,ee,pe);var be=T.identifier;c=new hV($.logger),r=0,i=null,a=0,T[xl]=null,u=0;var Ne=T[$t]();m=Ei(Tn("Sender"),$.evtNamespace&&$.evtNamespace()),h=Ox(m),T._addHook(mt(k,function(Ue){var ct=Ue.cfg;ct.storagePrefix&&Xp(ct.storagePrefix);var hn=Fn(null,ct,$),Ie=hn.getExtCfg(be,j0),xE=Ie[Vl];if(v&&xE===v){var nv=ct[Vl];nv&&nv!==xE&&(Ie[Vl]=nv)}var wL=ot("CompressionStream");A=gu("zipPayload",ct,!1),Se(wL)||(A=!1);var ql=Ie.corsPolicy;ql?(ql==="same-origin"||ql==="same-site"||ql==="cross-origin")&&n.addHeader(z0,ql):delete f[z0],si(Ie[Ll])&&(Ie[Ll]=ct[Ll]),Le(T,"_senderConfig",{g:function(){return Ie}}),_!==Ie[Vl]&&(v=_=Ie[Vl]),$.activeStatus()===fi.PENDING?T.pause():$.activeStatus()===fi.ACTIVE&&T.resume(),V&&V!==Ie[ym]&&oe(V,function(Mt){delete f[Mt.header]}),g=Ie[x0],S=(Ie[Sm]===!1||Ie[Em]===!1)&&tl(),R=Ie[Sm]===!1&&tl(),M=Ie[Em]===!1&&tl(),D=Ie[V0],j=!!Ie.disableXhr,y=Ie.retryCodes;var rv=Ie[_m],ds=!!Ie[L0]&&(!!rv||gl()),VE=Ie.namePrefix,bL=ds!==P||ds&&te!==VE||ds&&q!==rv;if(T[dr]){if(bL)try{T[dr]=T[dr].createNew(Ne,Ie,ds)}catch(Mt){Z(T[$t](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+je(Mt),{exception:se(Mt)})}L()}else T[dr]=ds?new H0(Ne,Ie):new km(Ne,Ie);te=VE,P=ds,q=rv,x=!Ie[F0]&&Zh(!0),ue=!!Ie[Y0],T._sample=new _V(Ie.samplingPercentage,Ne),b=Ie[Ll],!si(b)&&!fs(b,ct)&&Z(Ne,1,100,"Invalid Instrumentation key "+b),V=Ie[ym],ye(v)&&!jp(v)&&V&&V[xe]>0?oe(V,function(Mt){n.addHeader(Mt.header,Mt.value)}):V=null,E=Ie.enableSendPromise;var LE=w();ve?ve.SetConfig(LE):(ve=new DM,ve[gm](LE,Ne));var Rf=Ie.httpXHROverride,Of=null,Xl=null,DL=wy([3,1,2],Ie.transports);Of=ve&&ve[uf](DL,!1);var iv=ve&&ve.getFallbackInst();O=function(Mt,Ga){return me(iv,Mt,Ga)},re=function(Mt,Ga){return me(iv,Mt,Ga,!1)},Of=D?Rf:Of||Rf||iv,T[xl]=function(Mt,Ga){return me(Of,Mt,Ga)},x&&(p=Oe);var av=wy([3,1],Ie.unloadTransports);x||(av=av.filter(function(Mt){return Mt!==2})),Xl=ve&&ve[uf](av,!0),Xl=D?Rf:Xl||Rf,(D||Ie.unloadTransports||!p)&&Xl&&(p=function(Mt,Ga){return me(Xl,Mt,Ga)}),p||(p=O),z=Ie.disableTelemetry,I=Ie.convertUndefined||$n,U=Ie.isRetryDisabled,C=Ie.maxBatchInterval}))},T.processTelemetry=function(k,$){$=T._getTelCtx($);var ee=$[$t]();try{var pe=fe(k,ee);if(!pe)return;var be=ce(k,ee);if(!be)return;var Ne=c.serialize(be),Ue=T[dr];L(Ne);var ct={item:Ne,cnt:0};Ue[Ia](ct),rt()}catch(hn){Z(ee,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+je(hn),{exception:se(hn)})}T.processNext(k,$)},T.isCompletelyIdle=function(){return!s&&d===0&&T._buffer[Ra]()===0},T.getOfflineListener=function(){return h},T._xhrReadyStateChange=function(k,$,ee){if(!_e($))return H(k,$,ee)},T[Ml]=function(k,$,ee){k===void 0&&(k=!0);var pe;if(!s)try{var be=T[dr];if(z)be[zo]();else{if(be[Ra]()>0){var Ne=be.getItems();nn(ee||0,k),$?pe=$.call(T,Ne,k):pe=T[xl](Ne,k)}a=+new Date}Ct()}catch(ct){var Ue=Iy();(!Ue||Ue>9)&&Z(T[$t](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+je(ct),{exception:se(ct)})}return pe},T.getOfflineSupport=function(){return{getUrl:function(){return v},createPayload:Je,serialize:Ae,batch:At,shouldProcess:function(k){return!!fe(k)}}},T._doTeardown=function(k,$){T.onunloadFlush(),ko(h,!1),If()},T[Oa]=function(k,$,ee){if(!_e(k))return Y(k,$)},T[Tm]=function(k,$){if(!_e(k))return Q(k,$)},T[ff]=function(k,$){if(!_e(k))return Ee(k)},T._xdrOnLoad=function(k,$){if(!_e($))return ie(k,$)};function ie(k,$){var ee=W0(k);if(k&&(ee+""=="200"||ee===""))r=0,T[ff]($,0);else{var pe=Dp(ee);pe&&pe[Nm]&&pe[Nm]>pe[wm]&&!U?T[Tm]($,pe):T[Oa]($,Ny(k))}}function w(){try{var k={xdrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return ie(ee,Ne)},fetchOnComplete:function(ee,pe,be,Ne){var Ue=Ye(Ne);if(Ue)return W(ee.status,Ue,ee.url,Ue[xe],ee.statusText,be||"")},xhrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return H(ee,Ne,Ne[xe])},beaconOnRetry:function(ee,pe,be){return he(ee,pe,be)}},$={enableSendPromise:E,isOneDs:!1,disableCredentials:!1,disableXhr:j,disableBeacon:!M,disableBeaconSync:!R,senderOnCompleteCallBack:k};return $}catch{}return null}function H(k,$,ee){k.readyState===4&&W(k.status,$,k.responseURL,ee,Su(k),W0(k)||k.response)}function Y(k,$,ee){Z(T[$t](),2,26,"Failed to send telemetry.",{message:$}),T._buffer&&T._buffer[Ol](k)}function Q(k,$){for(var ee=[],pe=[],be=$.errors.reverse(),Ne=0,Ue=be;Ne<Ue.length;Ne++){var ct=Ue[Ne],hn=k.splice(ct.index,1)[0];vr(ct.statusCode)?pe[jr](hn):ee[jr](hn)}k[xe]>0&&T[ff](k,$[wm]),ee[xe]>0&&T[Oa](ee,Su(null,["partial success",$[wm],"of",$.itemsReceived].join(" "))),pe[xe]>0&&(Te(pe),Z(T[$t](),2,40,"Partial success. Delivered: "+k[xe]+", Failed: "+ee[xe]+". Will retry to send "+pe[xe]+" our of "+$[Nm]+" items"))}function Ee(k,$){T._buffer&&T._buffer[Ol](k)}function Ye(k){try{if(k){var $=k,ee=$.oriPayload;return ee&&ee[xe]?ee:null}}catch{}return null}function fe(k,$){if(z)return!1;if(!k)return $&&Z($,1,7,"Cannot send empty telemetry"),!1;if(k.baseData&&!k[bm])return $&&Z($,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(k[bm]||(k[bm]="EventData"),!T[xl])return $&&Z($,1,28,"Sender was not initialized"),!1;if(F(k))k[VS]=T._sample[df];else return $&&Z($,2,33,"Telemetry item was sampled out and not sent",{SampleRate:T._sample[df]}),!1;return!0}function ce(k,$){var ee=k.iKey||b,pe=t.constructEnvelope(k,ee,$,I);if(!pe){Z($,1,47,"Unable to create an AppInsights envelope");return}var be=!1;if(k[Pt]&&k[Pt][Lp]&&(oe(k[Pt][Lp],function(Ne){try{Ne&&Ne(pe)===!1&&(be=!0,ca($,"Telemetry processor check returns false"))}catch(Ue){Z($,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+je(Ue),{exception:se(Ue)},!0)}}),delete k[Pt][Lp]),!be)return pe}function Ae(k){var $=G0,ee=T[$t]();try{var pe=fe(k,ee),be=null;pe&&(be=ce(k,ee)),be&&($=c.serialize(be))}catch{}return $}function At(k){var $=G0;return k&&k[xe]&&($="["+k.join(",")+"]"),$}function Je(k){var $=N();return{urlString:v,data:k,headers:$}}function F(k){return T._sample.isSampledIn(k)}function ne(k,$,ee,pe){$===200&&k?T._onSuccess(k,k[xe]):pe&&T[Oa](k,pe)}function me(k,$,ee,pe){pe===void 0&&(pe=!0);var be=function(ct,hn,Ie){return ne($,ct,hn,Ie)},Ne=de($),Ue=k&&k.sendPOST;return Ue&&Ne&&(pe&&T._buffer[cf]($),ve.preparePayload(function(ct){return Ue(ct,be,!ee)},A,Ne,!ee)),null}function de(k){if(ke(k)&&k[xe]>0){var $=T[dr].batchPayloads(k),ee=N(),pe={data:$,urlString:v,headers:ee,disableXhrSync:j,disableFetchKeepAlive:!x,oriPayload:k};return pe}return null}function N(){try{var k=f||{};return jp(v)&&(k[Xe[6]]=Xe[7]),k}catch{}return null}function L(k){var $=k?k[xe]:0;return T[dr].size()+$>g?((!h||h.isOnline())&&T[Ml](!0,null,10),!0):!1}function W(k,$,ee,pe,be,Ne){var Ue=null;if(T._appId||(Ue=Dp(Ne),Ue&&Ue.appId&&(T._appId=Ue.appId)),(k<200||k>=300)&&k!==0){if((k===301||k===307||k===308)&&!G(ee)){T[Oa]($,be);return}if(h&&!h.isOnline()){if(!U){var ct=10;Te($,ct),Z(T[$t](),2,40,". Offline - Response Code: ".concat(k,". Offline status: ").concat(!h.isOnline(),". Will retry to send ").concat($.length," items."))}return}!U&&vr(k)?(Te($),Z(T[$t](),2,40,". Response code "+k+". Will retry to send "+$[xe]+" items.")):T[Oa]($,be)}else G(ee),k===206?(Ue||(Ue=Dp(Ne)),Ue&&!U?T[Tm]($,Ue):T[Oa]($,be)):(r=0,T[ff]($,pe))}function G(k){return u>=10?!1:!K(k)&&k!==""&&k!==v?(v=k,++u,!0):!1}function X(k,$){if(p)p(k,!1);else{var ee=ve&&ve[uf]([3],!0);return me(ee,k,$)}}function he(k,$,ee){var pe=k,be=pe&&pe.oriPayload;if(ue)re&&re(be,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ne=[],Ue=0;Ue<be[xe];Ue++){var ct=be[Ue],hn=[ct],Ie=de(hn);ee(Ie,$)?T._onSuccess(hn,hn[xe]):Ne[jr](ct)}Ne[xe]>0&&(re&&re(Ne,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function _e(k){try{if(k&&k[xe])return ye(k[0])}catch{}return null}function Oe(k,$){var ee=null;if(ke(k)){for(var pe=k[xe],be=0;be<k[xe];be++)pe+=k[be].item[xe];var Ne=ve.getSyncFetchPayload();Ne+pe<=gV?ee=2:tl()?ee=3:(ee=1,Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var Ue=ve&&ve[uf]([ee],!0);return me(Ue,k,$)}return null}function Te(k,$){if($===void 0&&($=1),!(!k||k[xe]===0)){var ee=T[dr];ee[Ol](k),r++;for(var pe=0,be=k;pe<be.length;pe++){var Ne=be[pe];Ne.cnt=Ne.cnt||0,Ne.cnt++,ee[Ia](Ne)}ze($),rt()}}function ze(k){var $=10,ee;if(r<=1)ee=$;else{var pe=(Math.pow(2,r)-1)/2,be=ln(Math.random()*pe*$)+1;be=k*be,ee=Ys(kg(be,3600),$)}var Ne=Mn()+ee*1e3;i=Ne}function rt(){if(!l&&!s){var k=i?Ys(0,i-Mn()):0,$=Ys(C,k);l=En(function(){l=null,T[Ml](!0,null,1)},$)}}function Ct(){l&&l.cancel(),l=null,i=null}function vr(k){return K(y)?k===401||k===408||k===429||k===500||k===502||k===503||k===504:y[xe]&&y.indexOf(k)>-1}function _r(){var k="getNotifyMgr",$,ee=T.core;return ee&&(ee[k]?$=ee[k]():$=ee._notificationManager),$}function nn(k,$){var ee=_r();if(ee&&ee.eventsSendRequest)try{ee.eventsSendRequest(k,$)}catch(pe){Z(T[$t](),1,74,"send request notification failed: "+je(pe),{exception:se(pe)})}}function fs(k,$){var ee=$.disableInstrumentationKeyValidation,pe=K(ee)?!1:ee;if(pe)return!0;var be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ne=new RegExp(be);return Ne.test(k)}function If(){T[xl]=null,T[dr]=null,T._appId=null,T._sample=null,f={},h=null,r=0,i=null,a=null,s=!1,l=null,c=null,u=0,d=0,p=null,m=null,v=null,_=null,g=0,S=!1,V=null,z=!1,b=null,I=$n,U=!1,P=null,te=$n,j=!1,x=!1,ue=!1,O=null,re=null,ve=null,Le(T,"_senderConfig",{g:function(){return Ty({},j0)}})}}),n}return t.constructEnvelope=function(n,r,i,a){var s;r!==n.iKey&&!K(r)?s=zt(zt({},n),{iKey:r}):s=n;var l=EV[s.baseType]||B0;return l(i,s,a)},t}(Oo),K0="duration",qo="properties",Bn="requestUrl",xa="length",Ai="traceID",Mi="spanID",Un="traceFlags",Fl="context",Xo="aborted",hf="_addHook",hr="core",Cm="includeCorrelationHeaders",Im="getAbsoluteUrl",Va="headers",Dn="requestHeaders",Rm="setRequestHeader",q0="trackDependencyDataInternal",Jo="startTime",Qo="toLowerCase",Om="enableRequestHeaderTracking",X0="enableAjaxErrorStatusText",J0="enableAjaxPerfTracking",Q0="maxAjaxCallsPerView",Z0="excludeRequestFromAutoTrackingPatterns",Pm="disableAjaxTracking",eE="ajaxPerfLookupDelay",tE="disableFetchTracking",nE="enableResponseHeaderTracking",Hn="status",La="statusText",pf="headerMap",Fa="requestSentTime",Am="getTraceId",Mm="getTraceFlags",xi="method",xm="errorStatusText",rE="stateChangeAttached",iE="responseText",Yl="responseFinishedTime",Vm="CreateTrackItem",aE="getAllResponseHeaders",Lm="getPartAProps",mf="perfMark",Fm="perfTiming",Ym="ajaxDiagnosticsMessage",$m="correlationContext",Bm="ajaxTotalDuration",Um="eventTraceCtx";function oE(e,t,n){var r=0,i=e[t],a=e[n];return i&&a&&(r=tn(i,a)),r}function Ya(e,t,n,r,i){var a=0,s=oE(n,r,i);return s&&(a=Vi(e,t,bi(s))),a}function Vi(e,t,n){var r="ajaxPerf",i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n,i=1}return i}function NV(e,t){var n=e[Fm],r=t[qo]||{},i=0,a="name",s="Start",l="End",c="domainLookup",u="connect",f="redirect",d="request",p="response",h="startTime",m=c+s,v=c+l,_=u+s,g=u+l,S=d+s,R=d+l,M=p+s,V=p+l,z=f+s,b=f=l,I="transferSize",U="encodedBodySize",C="decodedBodySize",P="serverTiming";if(n){i|=Ya(r,f,n,z,b),i|=Ya(r,c,n,m,v),i|=Ya(r,u,n,_,g),i|=Ya(r,d,n,S,R),i|=Ya(r,p,n,M,V),i|=Ya(r,"networkConnect",n,h,g),i|=Ya(r,"sentRequest",n,S,V);var q=n[K0];q||(q=oE(n,h,V)||0),i|=Vi(r,K0,q),i|=Vi(r,"perfTotal",q);var te=n[P];if(te){var E={};oe(te,function(D,j){var x=vu(D[a]||""+j),O=E[x]||{};Me(D,function(re,ue){(re!==a&&ye(ue)||Ls(ue))&&(O[re]&&(ue=O[re]+";"+ue),(ue||!ye(ue))&&(O[re]=ue))}),E[x]=O}),i|=Vi(r,P,E)}i|=Vi(r,I,n[I]),i|=Vi(r,U,n[U]),i|=Vi(r,C,n[C])}else e[mf]&&(i|=Vi(r,"missing",e.perfAttempts));i&&(t[qo]=r)}var wV=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[rE]=!1}return e}(),sE=function(){function e(t,n,r,i){var a=this,s=r,l="responseText";a[mf]=null,a.completed=!1,a.requestHeadersSize=null,a[Dn]=null,a.responseReceivingDuration=null,a.callbackDuration=null,a[Bm]=null,a[Xo]=0,a.pageUrl=null,a[Bn]=null,a.requestSize=0,a[xi]=null,a[Hn]=null,a[Fa]=null,a.responseStartedTime=null,a[Yl]=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new wV,a.clientFailure=0,a[Ai]=t,a[Mi]=n,a[Un]=i==null?void 0:i.getTraceFlags(),i?a[Um]={traceId:i[Am](),spanId:i.getSpanId(),traceFlags:i[Mm]()}:a[Um]=null,et(e,a,function(c){c.getAbsoluteUrl=function(){return c[Bn]?jM(c[Bn]):null},c.getPathName=function(){return c[Bn]?Ku(s,zM(c[xi],c[Bn])):null},c[Vm]=function(u,f,d){var p;if(c.ajaxTotalDuration=jg(tn(c.requestSentTime,c.responseFinishedTime)*1e3)/1e3,c[Bm]<0)return null;var h=(p={id:"|"+c[Ai]+"."+c[Mi],target:c[Im](),name:c.getPathName(),type:u,startTime:null,duration:c[Bm],success:+c[Hn]>=200&&+c[Hn]<400,responseCode:+c[Hn]},p[qo]={HttpMethod:c[xi]},p),m=h[qo];if(c[Xo]&&(m[Xo]=!0),c[Fa]&&(h[Jo]=new Date,h[Jo].setTime(c[Fa])),NV(c,h),f&&Mr(c.requestHeaders)[xa]>0&&(m[Dn]=c[Dn]),d){var v=d();if(v){var _=v[$m];if(_&&(h.correlationContext=_),v[pf]&&Mr(v.headerMap)[xa]>0&&(m.responseHeaders=v[pf]),c[xm])if(c[Hn]>=400){var g=v.type;(g===""||g==="text")&&(m.responseText=v.responseText?v[La]+" - "+v[l]:v[La]),g==="json"&&(m.responseText=v.response?v[La]+" - "+JSON.stringify(v.response):v[La])}else c[Hn]===0&&(m.responseText=v[La]||"")}}return h},c[Lm]=function(){var u=null,f=c[Um];if(f&&(f.traceId||f.spanId)){u={};var d=u[un.TraceExt]={traceID:f.traceId,parentID:f.spanId};K(f[Un])||(d[Un]=f[Un])}return u}})}return e.__ieDyn=1,e}(),ht,$l="diagLog",Li="_ajaxData",$a="fetch",Bl="Failed to monitor XMLHttpRequest",lE=", monitoring data for this ajax call ",Zo=lE+"may be incorrect.",cE=lE+"won't be sent.",uE="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",fE="Failed to add custom defined request context as configured call back may missing a null check.",dE="Failed to calculate the duration of the ",hE=0;function bV(){var e=Sn();return!e||K(e.Request)||K(e.Request[Zn])||K(e[$a])?null:e[$a]}function DV(e,t){var n,r=!1;if(Eu()){var i=XMLHttpRequest[Zn];r=!K(i)&&!K(i.open)&&!K(i.send)&&!K(i.abort)}var a=Iy();if(a&&a<9&&(r=!1),r)try{var s=new XMLHttpRequest,l={xh:[],i:(n={},n[t]={},n)};s[Li]=l;var c=XMLHttpRequest[Zn].open;XMLHttpRequest[Zn].open=c}catch(u){r=!1,Ul(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:se(u)})}return r}var es=function(e,t){return e&&t&&e[Li]?(e[Li].i||{})[t]:null},kV=function(e,t,n){if(e){var r=(e[Li]||{}).xh;r&&r.push({n:t,v:n})}},Hm=function(e,t){var n=!1;if(e){var r=(e[Li]||{}).xh;r&&oe(r,function(i){if(i.n===t)return n=!0,-1})}return n};function vf(e,t){var n="";try{var r=es(e,t);r&&r[Bn]&&(n+="(url: '"+r[Bn]+"')")}catch{}return n}function Ul(e,t,n,r,i){Z(e[$l](),1,t,n,r,i)}function Kr(e,t,n,r,i){Z(e[$l](),2,t,n,r,i)}function Hl(e,t,n){return function(r){var i;Ul(e,t,n,(i={},i[Ym]=vf(r.inst,e._ajaxDataId),i.exception=se(r.err),i))}}function ts(e,t){return e&&t?jt(e,t):-1}function pE(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){oe(e,function(i,a){if(i.id===r.id)return e.splice(a,1),-1})}}}function mE(e,t,n,r){var i=!0;return oe(t,function(a,s){try{a.fn.call(null,n)===!1&&(i=!1)}catch(l){Z(e&&e.logger,1,64,"Dependency "+r+" [#"+s+"] failed: "+je(l),{exception:se(l)},!0)}}),i}function CV(e,t,n,r,i,a){var s=e[xa],l=!0;if(s>0){var c={core:t,xhr:r,input:i,init:a,traceId:n[Ai],spanId:n[Mi],traceFlags:n[Un],context:n[Fl]||{},aborted:!!n[Xo]};l=mE(t,e,c,"listener"),n[Ai]=c.traceId,n[Mi]=c.spanId,n[Un]=c[Un],n[Fl]=c[Fl]}return l}var _f="*.blob.core.",IV=An([_f+"windows.net",_f+"chinacloudapi.cn",_f+"cloudapi.de",_f+"usgovcloudapi.net"]),RV=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],OV=An((ht={},ht[Q0]=500,ht[Pm]=!1,ht[tE]=!1,ht[Z0]=void 0,ht.disableCorrelationHeaders=!1,ht.distributedTracingMode=1,ht.correlationHeaderExcludedDomains=IV,ht.correlationHeaderDomains=void 0,ht.correlationHeaderExcludePatterns=void 0,ht.appId=void 0,ht.enableCorsCorrelation=!1,ht[Om]=!1,ht[nE]=!1,ht[X0]=!1,ht[J0]=!1,ht.maxAjaxPerfLookupAttempts=3,ht[eE]=25,ht.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],ht.addRequestContext=void 0,ht.addIntEndpoints=!0,ht)),PV=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,R,M,V,z,b,I,U,C,P,q,te,E,D,j;return et(t,n,function(x,O){var re=O[hf];ue(),x.initialize=function(N,L,W,G){x.isInitialized()||(O.initialize(N,L,W,G),z=Ei(Tn("ajax"),L&&L.evtNamespace&&L.evtNamespace()),ve(N),ie(),T(),y())},x._doTeardown=function(){ue()},x.trackDependencyData=function(N,L){de(C,x[hr],null,N,L)},x[Cm]=function(N,L,W,G){var X=x._currentWindowHost||a;if(CV(U,x[hr],N,G,L,W)){if(L||L===""){if(WS(s,N[Im](),X)){W||(W={});var he=new Headers(W[Va]||(L instanceof Request?L[Va]||{}:{}));if(p){var _e="|"+N[Ai]+"."+N[Mi];he.set(Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(he.set(Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe)),d){var Te=N[Un];K(Te)&&(Te=1);var ze=cS(lS(N[Ai],N[Mi],Te));he.set(Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}W[Va]=he}return W}else if(G){if(WS(s,N[Im](),X)){if(p)if(Hm(G,Xe[3]))Kr(x,71,"Unable to set ["+Xe[3]+"] as it has already been set by another instance");else{var _e="|"+N[Ai]+"."+N[Mi];G[Rm](Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(Hm(G,Xe[0])?Kr(x,71,"Unable to set ["+Xe[0]+"] as it has already been set by another instance"):(G[Rm](Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe))),d){var Te=N[Un];if(K(Te)&&(Te=1),Hm(G,Xe[4]))Kr(x,71,"Unable to set ["+Xe[4]+"] as it has already been set by another instance");else{var ze=cS(lS(N[Ai],N[Mi],Te));G[Rm](Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}}}return G}}},x[q0]=function(N,L,W){if(v===-1||u<v){(E===2||E===1)&&typeof N.id=="string"&&N.id[N.id[xa]-1]!=="."&&(N.id+="."),K(N[Jo])&&(N[Jo]=new Date);var G=Ii(N,ya.dataType,ya.envelopeType,x[$l](),L,W);x[hr].track(G)}else u===v&&Ul(x,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++u},x.addDependencyListener=function(N){return pE(U,I++,N)},x.addDependencyInitializer=function(N){return pE(C,I++,N)};function ue(){var N=ar();r=!1,i=!1,j=!1,a=N&&N.host&&N.host[Qo](),s=null,l=!1,c=!1,u=0,f=null,d=!1,p=!1,h=null,m=!1,v=0,_=!1,g={},S=!1,R=!1,M=null,V=null,z=null,I=0,U=[],C=[],b=Tn("ajaxData"),x._ajaxDataId=b,P=null,q=1,te=1,E=1,D=null}function ve(N){x[hf](mt(N,function(L){var W=L.cfg,G=Fn(null,W,x[hr]);s=G.getExtCfg(t.identifier,OV),E=s.distributedTracingMode,l=s[Om],c=s[X0],m=s[J0],v=s[Q0],M=[].concat(s[Z0]||[],s.addIntEndpoints!==!1?RV:[]),V=s.addRequestContext,p=E===0||E===1,d=E===1||E===2,m&&(h=b),S=!!s[Pm],q=s.maxAjaxPerfLookupAttempts,te=s[eE],P=s.ignoreHeaders,D=s.appId}))}function y(){var N=x[hr].getPlugin(ef);N&&(f=N.plugin[Fl])}function A(N){var L=!0;return(N||P)&&oe(P,function(W){if(W[Qo]()===N[Qo]())return L=!1,-1}),L}function T(){var N=bV();if(N){var L=Sn(),W=N.polyfill;x[hf](mt(s,function(){R=!!s[tE],_=s[nE],!R&&!r?(re(Vp(L,$a,{ns:z,req:function(G,X,he){var _e;if(!R&&r&&!w(null,X,he)&&!(W&&i)){var Oe=G.ctx();_e=Je(X,he);var Te=x[Cm](_e,X,he);Te!==he&&G.set(1,Te),Oe.data=_e}},rsp:function(G,X){if(!R){var he=G.ctx().data;he&&(G.rslt=G.rslt.then(function(_e){return ne(G,(_e||{})[Hn],X,_e,he,function(){var Oe,Te=(Oe={statusText:(_e||{})[La],headerMap:null},Oe[$m]=me(_e),Oe);if(_&&_e){var ze={};_e.headers.forEach(function(rt,Ct){A(Ct)&&(ze[Ct]=rt)}),Te[pf]=ze}return Te}),_e}).catch(function(_e){throw ne(G,0,X,null,he,null,{error:_e.message||se(_e)}),_e}))}},hkErr:Hl(x,15,"Failed to monitor Window.fetch"+Zo)},!0,Mg())),r=!0):W&&!j&&(re(Vp(L,$a,{ns:z,req:function(G,X,he){w(null,X,he)}})),j=!0)})),W&&(L[$a].polyfill=W)}}function B(N,L,W){re($M(N,L,W))}function ie(){DV(x,b)&&x[hf](mt(s,function(){S=!!s[Pm],l=s[Om],!S&&!i&&(B(XMLHttpRequest,"open",{ns:z,req:function(N,L,W,G){if(!S){var X=N.inst,he=es(X,b);!w(X,W)&&H(X,he,!0)&&((!he||!he.xhrMonitoringState.openDone)&&(he=Q(X,L,W,G)),Ee(X,he))}},hkErr:Hl(x,15,Bl+".open"+Zo)}),B(XMLHttpRequest,"send",{ns:z,req:function(N,L){if(!S){var W=N.inst,G=es(W,b);H(W,G)&&!G.xhrMonitoringState.sendDone&&(Ae("xhr",G),G[Fa]=qu(),x[Cm](G,void 0,void 0,W),G.xhrMonitoringState.sendDone=!0)}},hkErr:Hl(x,17,Bl+Zo)}),B(XMLHttpRequest,"abort",{ns:z,req:function(N){if(!S){var L=N.inst,W=es(L,b);H(L,W)&&!W.xhrMonitoringState.abortDone&&(W[Xo]=1,W.xhrMonitoringState.abortDone=!0)}},hkErr:Hl(x,13,Bl+".abort"+Zo)}),B(XMLHttpRequest,"setRequestHeader",{ns:z,req:function(N,L,W){if(!S){var G=N.inst,X=es(G,b);X&&H(G,X)&&(kV(G,L,W),l&&A(L)&&(X[Dn][L]=W))}},hkErr:Hl(x,71,Bl+".setRequestHeader"+Zo)}),i=!0)}))}function w(N,L,W){var G=!1,X=((ye(L)?L:(L||{}).url||"")||"")[Qo]();if(oe(M,function(Oe){var Te=Oe;ye(Oe)&&(Te=new RegExp(Oe)),G||(G=Te.test(X))}),G)return G;var he=ts(X,"?"),_e=ts(X,"#");return(he===-1||_e!==-1&&_e<he)&&(he=_e),he!==-1&&(X=X.substring(0,he)),K(N)?K(L)||(G=(typeof L=="object"?L[ha]===!0:!1)||(W?W[ha]===!0:!1)):G=N[ha]===!0||X[ha]===!0,!G&&X&&jp(X)&&(G=!0),G?g[X]||(g[X]=1):g[X]&&(G=!0),G}function H(N,L,W){var G=!0,X=i;return K(N)||(G=W===!0||!K(L)),X&&G}function Y(){var N=null;return x[hr]&&x[hr].getTraceCtx&&(N=x[hr].getTraceCtx(!1)),!N&&f&&f.telemetryTrace&&(N=zp(f.telemetryTrace)),N}function Q(N,L,W,G){var X,he=Y(),_e=he&&he[Am]()||gi(),Oe=ci(gi(),0,16),Te=N[Li]=N[Li]||{xh:[],i:{}},ze=Te.i=Te.i||{},rt=ze[b]=ze[b]||new sE(_e,Oe,x[$l](),(X=x.core)===null||X===void 0?void 0:X.getTraceCtx());return rt[Un]=he&&he[Mm](),rt[xi]=L,rt[Bn]=W,rt.xhrMonitoringState.openDone=!0,rt[Dn]={},rt.async=G,rt[xm]=c,rt}function Ee(N,L){L.xhrMonitoringState[rE]=Ur(N,"readystatechange",function(){var W;try{N&&N.readyState===4&&H(N,L)&&fe(N)}catch(X){var G=se(X);(!G||ts(G[Qo](),"c00c023f")===-1)&&Ul(x,16,Bl+" 'readystatechange' event handler"+Zo,(W={},W[Ym]=vf(N,b),W.exception=G,W))}},z)}function Ye(N){try{var L=N.responseType;if(L===""||L==="text")return N[iE]}catch{}return null}function fe(N){var L=es(N,b);L[Yl]=qu(),L[Hn]=N[Hn];function W(G,X){var he=X||{};he.ajaxDiagnosticsMessage=vf(N,b),G&&(he.exception=se(G)),Kr(x,14,dE+"ajax call"+cE,he)}At("xmlhttprequest",L,function(){try{var G=L[Vm]("Ajax",l,function(){var Te,ze=(Te={statusText:N[La],headerMap:null},Te[$m]=ce(N),Te.type=N.responseType,Te[iE]=Ye(N),Te.response=N.response,Te);if(_){var rt=N[aE]();if(rt){var Ct=Ze(rt).split(/[\r\n]+/),vr={};oe(Ct,function(_r){var nn=_r.split(": "),fs=nn.shift(),If=nn.join(": ");A(fs)&&(vr[fs]=If)}),ze[pf]=vr}}return ze}),X=void 0;try{V&&(X=V({status:N[Hn],xhr:N}))}catch{Kr(x,104,fE)}if(G){X!==void 0&&(G[qo]=zt(zt({},G.properties),X));var he=L[Lm]();de(C,x[hr],L,G,null,he)}else W(null,{requestSentTime:L[Fa],responseFinishedTime:L[Yl]})}finally{try{var _e=N[Li]||{i:{}},Oe=_e.i||{};Oe[b]&&(Oe[b]=null)}catch{}}},function(G){W(G,null)})}function ce(N){var L;try{var W=N[aE]();if(W!==null){var G=ts(W[Qo](),Xe[8]);if(G!==-1){var X=N.getResponseHeader(Xe[0]);return jS(X)}}}catch(he){Kr(x,18,uE,(L={},L[Ym]=vf(N,b),L.exception=se(he),L))}}function Ae(N,L){if(L[Bn]&&h&&m){var W=Vr();if(W&&Se(W.mark)){hE++;var G=h+N+"#"+hE;W.mark(G);var X=W.getEntriesByName(G);X&&X[xa]===1&&(L[mf]=X[0])}}}function At(N,L,W,G){var X=L[mf],he=Vr(),_e=q,Oe=te,Te=L[Bn],ze=0;(function rt(){try{if(he&&X){ze++;for(var Ct=null,vr=he.getEntries(),_r=vr[xa]-1;_r>=0;_r--){var nn=vr[_r];if(nn){if(nn.entryType==="resource")nn.initiatorType===N&&(ts(nn.name,Te)!==-1||ts(Te,nn.name)!==-1)&&(Ct=nn);else if(nn.entryType==="mark"&&nn.name===X.name){L[Fm]=Ct;break}if(nn[Jo]<X[Jo]-1e3)break}}}!X||L[Fm]||ze>=_e||L.async===!1?(X&&Se(he.clearMarks)&&he.clearMarks(X.name),L.perfAttempts=ze,W()):En(rt,Oe)}catch(fs){G(fs)}})()}function Je(N,L){var W,G=Y(),X=G&&G[Am]()||gi(),he=ci(gi(),0,16),_e=new sE(X,he,x[$l](),(W=x.core)===null||W===void 0?void 0:W.getTraceCtx());_e[Un]=G&&G[Mm](),_e[Fa]=qu(),_e[xm]=c;var Oe;if(N instanceof Request?Oe=(N||{}).url||"":Oe=N,Oe===""){var Te=ar();Te&&Te.href&&(Oe=Gg(Te.href,"#")[0])}_e[Bn]=Oe;var ze="GET";L&&L[xi]?ze=L[xi]:N&&N instanceof Request&&(ze=N[xi]),_e[xi]=ze;var rt={};if(l){var Ct=new Headers((L?L[Va]:0)||(N instanceof Request?N[Va]||{}:{}));Ct.forEach(function(vr,_r){A(_r)&&(rt[_r]=vr)})}return _e[Dn]=rt,Ae($a,_e),_e}function F(N){var L="";try{K(N)||(typeof N=="string"?L+="(url: '".concat(N,"')"):L+="(url: '".concat(N.url,"')"))}catch(W){Ul(x,15,"Failed to grab failed fetch diagnostics message",{exception:se(W)})}return L}function ne(N,L,W,G,X,he,_e){if(!X)return;function Oe(Te,ze,rt){var Ct=rt||{};Ct.fetchDiagnosticsMessage=F(W),ze&&(Ct.exception=se(ze)),Kr(x,Te,dE+"fetch call"+cE,Ct)}X[Yl]=qu(),X[Hn]=L,At($a,X,function(){var Te=X[Vm]("Fetch",l,he),ze;try{V&&(ze=V({status:L,request:W,response:G}))}catch{Kr(x,104,fE)}if(Te){ze!==void 0&&(Te[qo]=zt(zt({},Te.properties),ze));var rt=X[Lm]();de(C,x[hr],X,Te,null,rt)}else Oe(14,null,{requestSentTime:X[Fa],responseFinishedTime:X[Yl]})},function(Te){Oe(18,Te,null)})}function me(N){if(N&&N[Va])try{var L=N[Va].get(Xe[0]);return jS(L)}catch(W){Kr(x,18,uE,{fetchDiagnosticsMessage:F(N),exception:se(W)})}}function de(N,L,W,G,X,he){var _e=!0,Oe=N[xa];if(Oe>0){var Te={item:G,properties:X,sysProperties:he,context:W?W[Fl]:null,aborted:W?!!W[Xo]:!1};_e=mE(L,N,Te,"initializer")}_e&&x[q0](G,X,he)}}),n}return t.prototype.processTelemetry=function(n,r){this.processNext(n,r)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Oo),AV=function(){function e(){}return e}(),MV=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),xV="3.3.7",VV=function(){function e(t,n){var r=this,i=mt(t,function(){var a=t.sdkExtension;r.sdkVersion=(a?a+"_":"")+"javascript:"+xV});n&&n.add(i)}return e}(),LV=function(){function e(){}return e}(),gf="session",yf="sessionManager",Sf="isUserCookieSet",Ef="isNewUser",Gm="getTraceCtx",Wm="telemetryTrace",vE="applySessionContext",_E="applyApplicationContext",gE="applyOperationContext",yE="applyOperatingSystemContxt",SE="applyLocationContext",EE="applyInternalContext",Tf="getSessionId",TE="sessionCookiePostfix",Ba="automaticSession",ns="accountId",rs="authenticatedId",Gl="acquisitionDate",Nf="renewalDate",Wl="cookieSeparator",jm="authUserCookieName",FV="ai_session",YV=864e5,$V=18e5,BV=6e4,NE=function(){function e(){}return e}(),UV=function(){function e(t,n,r){var i=this,a,s,l=la(n),c=pp(n),u,f;et(e,i,function(d){t||(t={});var p=mt(t,function(S){u=t.sessionExpirationMs||YV,f=t.sessionRenewalMs||$V;var R=t[TE]||t.namePrefix||"";a=FV+R});r&&r.add(p),d[Ba]=new NE,d.update=function(){var S=Mn(),R=!1,M=d[Ba];if(M.id||(R=!h(M)),!R&&u>0){var V=S-M[Gl],z=S-M[Nf];R=V<0||z<0,R=R||V>u,R=R||z>f}R?v(S):(!s||S-s>BV)&&_(M,S)},d.backup=function(){var S=d[Ba];g(S.id,S[Gl],S[Nf])};function h(S,R){var M=!1,V=c.get(a);if(V&&Se(V.split))M=m(S,V);else{var z=KS(l,a);z&&(M=m(S,z))}return M||!!S.id}function m(S,R){var M=!1,V=", session will be reset",z=R.split("|");if(z.length>=2)try{var b=+z[1]||0,I=+z[2]||0;isNaN(b)||b<=0?Z(l,2,27,"AI session acquisition date is 0"+V):isNaN(I)||I<=0?Z(l,2,27,"AI session renewal date is 0"+V):z[0]&&(S.id=z[0],S[Gl]=b,S[Nf]=I,M=!0)}catch(U){Z(l,1,9,"Error parsing ai_session value ["+(R||"")+"]"+V+" - "+je(U),{exception:se(U)})}return M}function v(S){var R=t.getNewId||ep;d[Ba].id=R(t.idLength||22),d[Ba][Gl]=S,_(d[Ba],S),Ju()||Z(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function _(S,R){var M=S[Gl];S[Nf]=R;var V=f,z=M+u-R,b=[S.id,M,R],I=0;z<V?I=z/1e3:I=V/1e3;var U=t.cookieDomain||null;c.set(a,b.join("|"),u>0?I:null,U),s=R}function g(S,R,M){qS(l,a,[S,R,M].join("|"))}})}return e.__ieDyn=1,e}(),HV=function(){function e(t,n,r,i){var a=this;a.traceID=t||gi(),a.parentID=n;var s=ar();!r&&s&&s.pathname&&(r=s.pathname),a.name=Et(i,r)}return e}();function wE(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var GV=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var i=la(n),a=pp(n),s;et(e,this,function(l){Le(l,"config",{g:function(){return t}});var c=mt(t,function(){var p=t.userCookiePostfix||"";s=e.userCookieName+p;var h=a.get(s);if(h){l[Ef]=!1;var m=h.split(e[Wl]);m.length>0&&(l.id=m[0],l[Sf]=!!l.id)}if(!l.id){l.id=u();var v=f(l.id);d(v.join(e[Wl]));var _=(t.namePrefix||"")+"ai_session";tx(i,_)}l[ns]=t[ns]||void 0;var g=a.get(e[jm]);if(g){g=decodeURI(g);var S=g.split(e[Wl]);S[0]&&(l[rs]=S[0]),S.length>1&&S[1]&&(l[ns]=S[1])}});r&&r.add(c);function u(){var p=t||{},h=p.getNewId||ep,m=h(p.idLength?t.idLength:22);return m}function f(p){var h=bo(new Date);l.accountAcquisitionDate=h,l[Ef]=!0;var m=[p,h];return m}function d(p){var h=31536e3;l[Sf]=a.set(s,p,h)}l.setAuthenticatedUserContext=function(p,h,m){m===void 0&&(m=!1);var v=!wE(p)||h&&!wE(h);if(v){Z(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}l[rs]=p;var _=l[rs];h&&(l[ns]=h,_=[l[rs],l.accountId].join(e[Wl])),m&&a.set(e[jm],encodeURI(_))},l.clearAuthenticatedUserContext=function(){l[rs]=null,l[ns]=null,a.del(e[jm])},l.update=function(p){if(l.id!==p||!l[Sf]){var h=p||u(),m=f(h);d(m.join(e[Wl]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),wf="ext",bf="tags";function is(e,t){e&&e[t]&&Mr(e[t]).length===0&&delete e[t]}function bE(){return null}var WV=function(){function e(t,n,r,i){var a=this,s=t.logger;et(e,this,function(l){if(l.appId=bE,l[Tf]=bE,l.application=new AV,l.internal=new VV(n,i),Hc()){l[yf]=new UV(n,t,i),l.device=new MV,l.location=new LV,l.user=new GV(n,t,i);var c=void 0,u=void 0,f;r&&(c=r.getTraceId(),u=r.getSpanId(),f=r.getName()),l[Wm]=new HV(c,u,f,s),l[gf]=new NE}l[Tf]=function(){var d=l[gf],p=null;if(d&&ye(d.id))p=d.id;else{var h=(l[yf]||{})[Ba];p=h&&ye(h.id)?h.id:null}return p},l[vE]=function(d,p){Qe(qt(d.ext,un.AppExt),"sesId",l[Tf](),ye)},l[yE]=function(d,p){Qe(d.ext,un.OSExt,l.os)},l[_E]=function(d,p){var h=l.application;if(h){var m=qt(d,bf);Qe(m,tt.applicationVersion,h.ver,ye),Qe(m,tt.applicationBuild,h.build,ye)}},l.applyDeviceContext=function(d,p){var h=l.device;if(h){var m=qt(qt(d,wf),un.DeviceExt);Qe(m,"localId",h.id,ye),Qe(m,"ip",h.ip,ye),Qe(m,"model",h.model,ye),Qe(m,"deviceClass",h.deviceClass,ye)}},l[EE]=function(d,p){var h=l.internal;if(h){var m=qt(d,bf);Qe(m,tt.internalAgentVersion,h.agentVersion,ye),Qe(m,tt.internalSdkVersion,Et(s,h.sdkVersion,64),ye),(d.baseType===ll.dataType||d.baseType===Di.dataType)&&(Qe(m,tt.internalSnippet,h.snippetVer,ye),Qe(m,tt.internalSdkSrc,h.sdkSrc,ye))}},l[SE]=function(d,p){var h=a.location;h&&Qe(qt(d,bf,[]),tt.locationIp,h.ip,ye)},l[gE]=function(d,p){var h=l[Wm];if(h){var m=qt(qt(d,wf),un.TraceExt,{traceID:void 0,parentID:void 0});Qe(m,"traceID",h.traceID,ye,K),Qe(m,"name",h.name,ye,K),Qe(m,"parentID",h.parentID,ye,K)}},l.applyWebContext=function(d,p){var h=a.web;h&&Qe(qt(d,wf),un.WebExt,h)},l.applyUserContext=function(d,p){var h=l.user;if(h){var m=qt(d,bf,[]);Qe(m,tt.userAccountId,h[ns],ye);var v=qt(qt(d,wf),un.UserExt);Qe(v,"id",h.id,ye),Qe(v,"authId",h[rs],ye)}},l.cleanUp=function(d,p){var h=d.ext;h&&(is(h,un.DeviceExt),is(h,un.UserExt),is(h,un.WebExt),is(h,un.OSExt),is(h,un.AppExt),is(h,un.TraceExt))}})}return e.__ieDyn=1,e}(),Fi,zm,as=null,jV=Fs((Fi={accountId:as,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:as,sdkExtension:as,isBrowserLinkTrackingEnabled:!1,appId:as},Fi[Tf]=as,Fi.namePrefix=zm,Fi[TE]=zm,Fi.userCookiePostfix=zm,Fi.idLength=22,Fi.getNewId=as,Fi)),zV=function(e){Fr(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=ef;var r,i,a,s,l;return et(t,n,function(c,u){f(),Le(c,"context",{g:function(){return s}}),c.initialize=function(h,m,v,_){u.initialize(h,m,v,_),d(h)},c.processTelemetry=function(h,m){if(!K(h)){m=c._getTelCtx(m),h.name===Di.envelopeType&&m.diagLog().resetInternalMessageCount();var v=s||{};v[gf]&&typeof s[gf].id!="string"&&v[yf]&&v[yf].update();var _=v.user;if(_&&!_[Sf]&&_.update(v.user.id),p(h,m),_&&_[Ef]&&(_[Ef]=!1,!l)){var g=new ll(72,(Qn()||{}).userAgent||"");GA(m.diagLog(),1,g)}c.processNext(h,m)}},c._doTeardown=function(h,m){var v=(h||{}).core();if(v&&v[Gm]){var _=v[Gm](!1);_===i&&v.setTraceCtx(a)}f()};function f(){r=null,i=null,a=null,s=null,l=!0}function d(h){var m=c.identifier,v=c.core;c._addHook(mt(h,function(){var _=Fn(null,h,v);h.storagePrefix&&Xp(h.storagePrefix),l=h.disableUserInitMessage!==!1,r=_.getExtCfg(m,jV),c._extConfig=r})),a=v[Gm](!1),s=new WV(v,r,a,c._unloadHooks),i=zp(c.context[Wm],a),v.setTraceCtx(i),c.context.appId=function(){var _=v.getPlugin(h0);return _?_.plugin._appId:null}}function p(h,m){qt(h,"tags",[]),qt(h,"ext",{});var v=c.context;v[vE](h,m),v[_E](h,m),v.applyDeviceContext(h,m),v[gE](h,m),v.applyUserContext(h,m),v[yE](h,m),v.applyWebContext(h,m),v[SE](h,m),v[EE](h,m),v.cleanUp(h,m)}}),n}return t.__ieDyn=1,t}(Oo),DE="AuthenticatedUserContext",os="track",Km="snippet",KV="getCookieMgr",qV="startTrackPage",XV="stopTrackPage",qm="flush",JV="startTrackEvent",QV="stopTrackEvent",ZV="addTelemetryInitializer",kE="pollInternalLogs",Xm="getPlugin",Jm="evtNamespace",eL=os+"Event",tL=os+"Trace",nL=os+"Metric",rL=os+"PageView",iL=os+"Exception",aL=os+"DependencyData",oL="set"+DE,sL="clear"+DE,lL="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Df="connectionString",Qm="version",Ua="queue",jl="instrumentationKey",ss="userOverrideEndpointUrl",Zm="endpointUrl",zl="onunloadFlush",kn="context",CE="addHousekeepingBeforeUnload",ev="sendMessage",cL="updateSnippetDefinitions",pr,ls,cs,tv,Kl,IE=[Km,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],RE="iKeyUsage",OE="CdnUsage",PE="SdkLoaderVer",uL="zipPayload",kf=void 0,fL={samplingRate:100,maxSendNumber:1},dL={monthInterval:3,daysOfMonth:[28]},Cf={disabled:!0,limit:Ln(fL),interval:Ln(dL)},hL=(pr={},pr[Df]=kf,pr.endpointUrl=kf,pr[jl]=kf,pr[ss]=kf,pr.diagnosticLogInterval=Du(pL,1e4),pr.featureOptIn=(ls={},ls[RE]={mode:3},ls[OE]={mode:2},ls[PE]={mode:2},ls[uL]={mode:1},ls),pr.throttleMgrCfg=Ln((cs={},cs[109]=Ln(Cf),cs[106]=Ln(Cf),cs[111]=Ln(Cf),cs[110]=Ln(Cf),cs)),pr.extensionConfig=Ln((tv={},tv.AppInsightsCfgSyncPlugin=Ln({cfgUrl:lL,syncMode:2}),tv)),pr);function pL(e){return e&&e>0}function AE(e,t){return Js(function(n,r){cn(t,function(i){var a=i&&i.value,s=null;!i.rejected&&a&&(e[Df]=a,s=QS(a)),n(s)})})}var mL=function(){function e(t){var n=this,r,i,a,s,l,c,u,f,d,p,h,m,v,_;et(e,this,function(g){M(),Le(g,"config",{g:function(){return f}}),oe(["pluginVersionStringArr","pluginVersionString"],function(b){Le(g,b,{g:function(){return u?u[b]:null}})}),s=""+(t.sv||t[Qm]||""),t[Ua]=t[Ua]||[],t[Qm]=t[Qm]||2;var S=Nn(t.config||{},hL);f=S.cfg,d=new Kx,Le(g,"appInsights",{g:function(){return d}}),i=new zV,r=new PV,a=new TV,u=new wM,Le(g,"core",{g:function(){return u}}),z(mt(S,function(){var b=f[Df];if(si(b)){var I=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[jl],j=E.value;D=j&&j.instrumentationkey||D,q(D)}})}),U=f[ss];K(U)&&(U=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[Zm],j=E.value,x=j&&j.ingestionendpoint;D=x?x+Ao:D,q(D)}})})),f[jl]=I,f[Zm]=U}if(ye(b)&&b){var C=QS(b),P=C.ingestionendpoint;f.endpointUrl=f[ss]?f[ss]:P+Ao,f[jl]=C.instrumentationkey||f[jl]}f.endpointUrl=f[ss]?f[ss]:f[Zm]})),g[Km]=t,g[qm]=function(b,I){b===void 0&&(b=!0);var U;return xu(u,function(){return"AISKU.flush"},function(){b&&!I&&(U=pi(function(q){I=q}));var C=1,P=function(){C--,C===0&&I()};oe(u.getChannels(),function(q){q&&(C++,q[qm](b,P))}),P()},null,b),U},g[zl]=function(b){b===void 0&&(b=!0),oe(u.getChannels(),function(I){I[zl]?I[zl]():I[qm](b)})},g.loadAppInsights=function(b,I,U){b===void 0&&(b=!1),b&&X1("Legacy Mode is no longer supported");function C(P){if(P){var q="";K(s)||(q+=s),g[kn]&&g[kn].internal&&(g[kn].internal.snippetVer=q||"-"),Me(g,function(te,E){ye(te)&&!Se(E)&&te&&te[0]!=="_"&&Ft(IE,te)===-1&&P[te]!==E&&(P[te]=E)})}}return xu(g.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(f,[a,i,r,d,p],I,U),Le(g,"context",{g:function(){return i[kn]}}),h||(h=new rx(u));var P=vL();P&&g[kn]&&(g[kn].internal.sdkSrc=P),C(g[Km]),g.emptyQueue(),g[kE](),g[CE](g),z(mt(S,function(){var q=!1;f.throttleMgrCfg[109]&&(q=!f.throttleMgrCfg[109].disabled),!h.isReady()&&f.extensionConfig&&f.extensionConfig[p.identifier]&&q&&h.onReadyState(!0),!m&&!f[Df]&&gu(RE,f,!0)&&(h[ev](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),m=!0),!v&&g[kn].internal.sdkSrc&&g[kn].internal.sdkSrc.indexOf("az416426")!=-1&&gu(OE,f,!0)&&(h[ev](110,"See Cdn support notice at aka.ms/JsActiveCdn"),v=!0),!_&&parseInt(s)<6&&gu(PE,f,!0)&&(h[ev](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),_=!0)}))}),g},g[cL]=function(b){jP(b,g,function(I){return I&&Ft(IE,I)===-1})},g.emptyQueue=function(){try{if(ke(g.snippet[Ua])){for(var b=g.snippet[Ua].length,I=0;I<b;I++){var U=g.snippet[Ua][I];U()}g.snippet[Ua]=void 0,delete g.snippet[Ua]}}catch(P){var C={};P&&Se(P.toString)&&(C.exception=P.toString())}},g[CE]=function(b){if(Hc()||Pg()){var I=function(){if(b[zl](!1),Se(g.core[Xm])){var C=n.core[Xm](ef);if(C){var P=C.plugin;P&&P[kn]&&P[kn]._sessionManager&&P[kn]._sessionManager.backup()}}},U=!1;c||(c=Ei(l,u[Jm]&&u[Jm]())),z(mt(f,function(C){var P=C.cfg,q=b.appInsights,te=Fn(null,P,q.core),E=te.getExtCfg(q.identifier||p0);V();var D=P.disablePageUnloadEvents;E.disableFlushOnBeforeUnload||(VM(I,D,c)&&(U=!0),Pp(I,D,c)&&(U=!0),!U&&!fA()&&Z(u.logger,1,19,"Could not add handler for beforeunload and pagehide")),!U&&!E.disableFlushOnUnload&&Pp(I,D,c)}))}},g.getSender=function(){return a},g.unload=function(b,I,U){var C=!1,P;b&&!I&&(P=pi(function(te){I=te}));function q(te){C||(C=!0,M(),I&&I(te))}return g[zl](b),V(),u.unload&&u.unload(b,q,U),P},Zs(g,d,[KV,eL,rL,"trackPageViewPerformance",iL,"_onerror",tL,nL,qV,XV,JV,QV]),Zs(g,R,[aL,"addDependencyListener","addDependencyInitializer"]),Zs(g,u,[ZV,kE,"stopPollingInternalLogs",Xm,"addPlugin",Jm,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Zs(g,function(){var b=i[kn];return b?b.user:null},[oL,sL]);function R(){return r}function M(){l=Tn("AISKU"),c=null,r=null,i=null,a=null,s=null,h=null,m=!1,v=!1,_=!1,p=new nV}function V(){c&&(LM(null,c),FM(null,c))}function z(b){u.addUnloadHook(b)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function vL(){if(Kl)return Kl;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var r=(document||{}).currentScript;r&&(e=r.src)}catch{}if(e){try{var i=e.toLowerCase();if(i){var a="";oe(n,function(s,l){if(jt(i,s)!==-1)return a="cdn"+(l+1),jt(i,"/scripts/")===-1&&(jt(i,"/next/")!==-1?a+="-next":jt(i,"/beta/")!==-1&&(a+="-beta")),Kl=a+(t?".mod":""),-1})}}catch{}Kl=e}return Kl}function ME(e){const t=new mL({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const _L={install:function(e,t){const n=ME(t.instrumentationKey),r=new s1(t.loggingLevel,n);As.register(r)}};var mr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(mr||{});function gL(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function yL(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class SL{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(mr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(mr.Search)){const n=yL(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(mr.Sort)){const n=gL(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(mr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const EL={install:function(e,t){const n=new SL(t.eventsToLog);e.config.globalProperties.$router.afterEach(i=>{var a;n.trackPageView({name:(a=i.name)==null?void 0:a.toString(),uri:i.fullPath})}),Qa.register(n)}};class TL{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){this.eventShouldBeRecorded(mr.PageView)&&this.appInsights.trackPageView()}trackSearch(t){if(this.eventShouldBeRecorded(mr.Search)){const n=t.map(i=>i.summariseStateAsObject()),r=t.map(i=>i.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:r}})}}trackSort(t){this.eventShouldBeRecorded(mr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(mr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const NL={install:function(e,t){const n=ME(t.instrumentationKey),r=new TL(t.eventsToLog,n),i=a=>{var l;const s=(l=a.name)==null?void 0:l.valueOf();r.trackPageView({name:s,uri:a.path})};Ps.add({priority:fg.Low,action:i}),Qa.register(r)}};Ke.CapeApplicationInsightsAnalyticsPlugin=NL,Ke.CapeApplicationInsightsLoggingPlugin=_L,Ke.CapeConsoleAnalyticsPlugin=EL,Ke.CapeConsoleLoggingPlugin=o1,Ke.CapeEvent=mr,Ke.CapeLogger=As,Ke.CapePlugin=pg,Ke.Filter=Qf,Ke.LoggingLevel=Qt,Ke.createCapeApp=i1,Ke.useDatasetStore=ni,Ke.useFieldStore=Za,Ke.useFilterStore=_t,Ke.usePropertyStore=Vt,Ke.useRecordStore=Er,Ke.useSearchResultsStore=Bt,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
|
|
59
|
+
*/var uu="Promise",Ah="rejected";function cn(e,t){return fy(e,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Ah,rejected:!0,reason:n}):n})}function fy(e,t,n,r){var i=e;try{if(oi(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(a){if(n)i=n(a);else throw a}}finally{}return i}var dy=["pending","resolving","resolved",Ah],hy="dispatchEvent",fu;function LP(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}function FP(e,t,n,r){var i=Ot();!fu&&(fu=yn(!!ft(LP,[i]).v));var a=fu.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),fu.v&&a.initEvent(t,!1,!0),a&&e[hy])e[hy](a);else{var s=e["on"+t];if(s)s(a);else{var l=ot("console");l&&(l.error||l.log)(t,se(a))}}}var py="unhandledRejection",YP=py.toLowerCase(),my=[],$P=0,BP=10,Mh;function vy(e){return Se(e)?e.toString():se(e)}function _y(e,t,n){var r=jc(arguments,3),i=0,a=!1,s,l=[],c=$P++,u=!1,f=null,d;function p(A,V){try{my.push(c),u=!0,f&&f.cancel(),f=null;var z=e(function(b,I){l.push(function(){try{var B=i===2?A:V,k=dt(B)?s:Se(B)?B(s):B;oi(k)?k.then(b,I):B?b(k):i===3?I(k):b(k)}catch(P){I(P)}}),a&&_()},r);return z}finally{my.pop()}}function h(A){return p(void 0,A)}function m(A){var V=A,z=A;return Se(A)&&(V=function(b){return A&&A(),b},z=function(b){throw A&&A(),b}),p(V,z)}function v(){return dy[i]}function _(){if(l.length>0){var A=l.slice();l=[],u=!0,f&&f.cancel(),f=null,t(A)}}function g(A,V){return function(z){if(i===V){if(A===2&&oi(z)){i=1,z.then(g(2,1),g(3,1));return}i=A,a=!0,s=z,_(),!u&&A===3&&!f&&(f=En(S,BP))}}}function S(){if(!u)if(u=!0,JO())process.emit(py,s,d);else{var A=sn()||Sn();!Mh&&(Mh=yn(ft(ot,[uu+"RejectionEvent"]).v)),FP(A,YP,function(V){return Le(V,"promise",{g:function(){return d}}),V.reason=s,V},!!Mh.v)}}d={then:p,catch:h,finally:m},Pr(d,"state",{get:v}),ZO()&&(d[Zd(11)]="IPromise");function C(){return"IPromise "+v()+(a?" - "+vy(s):"")}return d.toString=C,function(){Se(n)||qn(uu+": executor is not a function - "+vy(n));var V=g(3,0);try{n.call(d,g(2,0),V)}catch(z){V(z)}}(),d}function UP(e){return function(t){var n=jc(arguments,1);return e(function(r,i){try{var a=[],s=1;nh(t,function(l,c){l&&(s++,fy(l,function(u){a[c]=u,--s===0&&r(a)},i))}),s--,s===0&&r(a)}catch(l){i(l)}},n)}}function HP(e){return yn(function(t){var n=jc(arguments,1);return e(function(r,i){var a=[],s=1;function l(c,u){s++,cn(c,function(f){f.rejected?a[u]={status:Ah,reason:f.reason}:a[u]={status:"fulfilled",value:f.value},--s===0&&r(a)})}try{ke(t)?oe(t,l):xg(t)?nh(t,l):qn("Input is not an iterable"),s--,s===0&&r(a)}catch(c){i(c)}},n)})}function gy(e){oe(e,function(t){try{t()}catch{}})}function GP(e){var t=Ls(e)?e:0;return function(n){En(function(){gy(n)},t)}}function yy(e,t){return _y(yy,GP(t),e,t)}var xh;function WP(e,t){!xh&&(xh=yn(ft(ot,[uu]).v||null));var n=xh.v;if(!n)return yy(e);Se(e)||qn(uu+": executor is not a function - "+se(e));var r=0;function i(){return dy[r]}var a=new n(function(s,l){function c(f){r=2,s(f)}function u(f){r=3,l(f)}e(c,u)});return Pr(a,"state",{get:i}),a}var Vh;function Js(e){return _y(Js,gy,e)}function jP(e,t){return!Vh&&(Vh=HP(Js)),Vh.v(e,t)}var Lh;function hi(e,t){return!Lh&&(Lh=yn(WP)),Lh.v.call(this,e,t)}var zP=UP(hi),nr=void 0,Fe="",To="channels",Dt="core",Fh="createPerfMgr",Yh="disabled",No="extensionConfig",wo="extensions",rr="processTelemetry",du="priority",hu="eventsSent",Qs="eventsDiscarded",pu="eventsSendRequest",oa="perfEvent",$h="offlineEventsStored",Bh="offlineBatchSent",Uh="offlineBatchDrop",mu="getPerfMgr",Hh="domain",Gh="path",KP="Not dynamic - ",qP="getPrototypeOf",XP=/-([a-z])/g,JP=/([^\w\d_$])/g,QP=/^(\d+[\w\d_$])/,ZP=Object[qP];function sa(e){return!K(e)}function vu(e){var t=e;return t&&ye(t)&&(t=t[aa](XP,function(n,r){return r.toUpperCase()}),t=t[aa](JP,"_"),t=t[aa](QP,function(n,r){return"_"+r})),t}function Yt(e,t){return e&&t?jt(e,t)!==-1:!1}function bo(e){return e&&e.toISOString()||""}function je(e){return Gd(e)?e[ea]:Fe}function Qe(e,t,n,r,i){var a=n;return e&&(a=e[t],a!==n&&(!i||i(a))&&(!r||r(n))&&(a=n,e[t]=a)),a}function qt(e,t,n){var r;return e?(r=e[t],!r&&K(r)&&(r=dt(n)?{}:n,e[t]=r)):r=dt(n)?{}:n,r}function Sy(e,t){var n=null,r=null;return Se(e)?n=e:r=e,function(){var i=arguments;if(n&&(r=n()),r)return r[t][Qi](r,i)}}function eA(e,t,n){if(e&&t&&en(e)&&en(t)){var r=function(a){if(ye(a)){var s=t[a];Se(s)?(!n||n(a,!0,t,e))&&(e[a]=Sy(t,a)):(!n||n(a,!1,t,e))&&(si(e,a)&&delete e[a],Le(e,a,{g:function(){return t[a]},s:function(l){t[a]=l}}))}};for(var i in t)r(i)}return e}function _u(e,t,n,r,i){e&&t&&n&&(e[t]=Sy(n,r))}function Zs(e,t,n,r){return e&&t&&en(e)&&ke(n)&&oe(n,function(i){ye(i)&&_u(e,i,t,i)}),e}function tA(e){return function(){function t(){var n=this;e&&Me(e,function(r,i){n[r]=i})}return t}()}function Ey(e){return e&&jd&&(e=bh(jd({},e))),e}function Ty(e,t,n,r,i,a){var s=arguments,l=s[0]||{},c=s[we],u=!1,f=1;for(c>0&&Sg(l)&&(u=l,l=s[f]||{},f++),en(l)||(l={});f<c;f++){var d=s[f],p=ke(d),h=en(d);for(var m in d){var v=p&&m in d||h&&si(d,m);if(v){var _=d[m],g=void 0;if(u&&_&&((g=ke(_))||Wt(_))){var S=l[m];g?ke(S)||(S=[]):Wt(S)||(S={}),_=Ty(u,S,_)}_!==void 0&&(l[m]=_)}}}return l}function gu(e,t,n){var r=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&r){var i=r.mode;if(i===3)return!0;if(i===2)return!1}return n}function yu(e){try{return e.responseText}catch{}return null}function Ny(e,t){return e?"XDomainRequest,Response:"+yu(e)||"":t}function Su(e,t){return e?"XMLHttpRequest,Status:"+e[$r]+",Response:"+yu(e)||e.response||"":t}function wy(e,t){return t&&(Ls(t)?e=[t].concat(e):ke(t)&&(e=t.concat(e))),e}var nA="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",by="withCredentials",rA="timeout";function iA(e,t,n,r,i,a){i===void 0&&(i=!1);function s(c,u,f){try{c[u]=f}catch{}}var l=new XMLHttpRequest;return s(l,nA,r),n&&s(l,by,n),l.open(e,t,!i),n&&s(l,by,n),!i&&a&&s(l,rA,a),l}function aA(e){var t={};if(ye(e)){var n=Ze(e)[yo](/[\r\n]+/);oe(n,function(r){if(r){var i=r[xP](": ");if(i!==-1){var a=Ze(r.substring(0,i))[vo](),s=Ze(r.substring(i+1));t[a]=s}else t[Ze(r)]=1}})}return t}function Wh(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=Ze(r))}return e}var oA="kill-duration",sA="kill-duration-seconds",lA="time-delta-millis";function jh(e,t){var n={};return e[cy]?n=aA(e[cy]()):t&&(n=Wh(n,e,lA),n=Wh(n,e,oA),n=Wh(n,e,sA)),n}var cA="documentMode",uA="location",fA="console",Dy="JSON",dA="crypto",hA="msCrypto",pA="ReactNative",zh="msie",Kh="trident/",ky="XMLHttpRequest",qh=null,Xh=null,mA=!1,Do=null,Jh=null;function Cy(e,t){var n=!1;if(e){try{if(n=t in e,!n){var r=e[Qn];r&&(n=t in r)}}catch{}if(!n)try{var i=new e;n=!dt(i[t])}catch{}}return n}function ir(e){if(e&&mA){var t=ot("__mockLocation");if(t)return t}return typeof location===ty&&location?location:ot(uA)}function vA(){return typeof console!==wh?console:ot(fA)}function el(){return!!(typeof JSON===ty&&JSON||ot(Dy)!==null)}function Vn(){return el()?JSON||ot(Dy):null}function _A(){return ot(dA)}function gA(){return ot(hA)}function yA(){var e=Jn();return e&&e.product?e.product===pA:!1}function Qh(){var e=Jn();if(e&&(e[Ch]!==Xh||qh===null)){Xh=e[Ch];var t=(Xh||Fe)[vo]();qh=Yt(t,zh)||Yt(t,Kh)}return qh}function Iy(e){if(e===void 0&&(e=null),!e){var t=Jn()||{};e=t?(t.userAgent||Fe)[vo]():Fe}var n=(e||Fe)[vo]();if(Yt(n,zh)){var r=Ot()||{};return Ys(parseInt(n[yo](zh)[1]),r[cA]||0)}else if(Yt(n,Kh)){var i=parseInt(n[yo](Kh)[1]);if(i)return i+4}return null}function tl(e){return(Jh===null||e===!1)&&(Jh=qO()&&!!Jn().sendBeacon),Jh}function Zh(e){var t=!1;try{t=!!ot("fetch");var n=ot("Request");t&&e&&n&&(t=Cy(n,"keepalive"))}catch{}return t}function SA(){return Do===null&&(Do=typeof XDomainRequest!==wh,Do&&Eu()&&(Do=Do&&!Cy(ot(ky),"withCredentials"))),Do}function Eu(){var e=!1;try{var t=ot(ky);e=!!t}catch{}return e}function EA(e,t){return e&&e.dispatchEvent&&t?(e.dispatchEvent(t),!0):!1}function TA(e,t){var n=null,r={detail:t||null};if(Se(CustomEvent))n=new CustomEvent(e,r);else{var i=Ot();i&&i.createEvent&&(n=i.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,r))}return n}function NA(e,t,n){var r=Sn();if(r&&r.CustomEvent)try{var i={cfg:t||null,customDetails:n||null};return EA(r,TA(e,i))}catch{}return!1}var Ry=4294967296,pi=4294967295,Oy=123456789,Py=987654321,Ay=!1,nl=Oy,rl=Py;function wA(e){e<0&&(e>>>=0),nl=Oy+e&pi,rl=Py-e&pi,Ay=!0}function bA(){try{var e=Mn()&2147483647;wA((Math.random()*Ry^e)+e)}catch{}}function DA(e){return ln(il()/pi*(e+1))>>>0}function il(e){var t=0,n=_A()||gA();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&pi),t===0&&Qh()&&(Ay||bA(),t=kA()&pi),t===0&&(t=ln(Ry*Math.random()|0)),t>>>=0,t}function kA(e){rl=36969*(rl&65535)+(rl>>16)&pi,nl=18e3*(nl&65535)+(nl>>16)πvar t=(rl<<16)+(nl&65535)>>>0&pi|0;return t>>>=0,t}function ep(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=il()>>>0,r=0,i=Fe;i[we]<e;)r++,i+=t.charAt(n&63),n>>>=6,r===5&&(n=(il()<<2&4294967295|n&3)>>>0,r=0);return i}var My="3.3.7",CA="."+ep(6),IA=0;function xy(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function RA(e,t){var n=t[e.id];if(!n){n={};try{xy(t)&&Le(t,e.id,{e:!1,v:n})}catch{}}return n}function Tn(e,t){return t===void 0&&(t=!1),vu(e+IA+++(t?"."+My:Fe)+CA)}function Vy(e){var t={id:Tn("_aiData-"+(e||Fe)+"."+My),accept:function(n){return xy(n)},get:function(n,r,i,a){var s=n[t.id];return s?s[vu(r)]:(a&&(s=RA(t,n),s[vu(r)]=i),i)},kill:function(n,r){if(n&&n[r])try{delete n[r]}catch{}}};return t}function Tu(e){return e&&en(e)&&(e.isVal||e.fb||si(e,"v")||si(e,"mrg")||si(e,"ref")||e.set)}function Ly(e,t,n){var r,i=n.dfVal||yO;if(t&&n.fb){var a=n.fb;ke(a)||(a=[a]);for(var s=0;s<a[we];s++){var l=a[s],c=t[l];if(i(c)?r=c:e&&(c=e.cfg[l],i(c)&&(r=c),e.set(e.cfg,Gt(l),c)),i(r))break}}return!i(r)&&i(n.v)&&(r=n.v),r}function tp(e,t,n){var r=n;if(n&&Tu(n)&&(r=Ly(e,t,n)),r){Tu(r)&&(r=tp(e,t,r));var i;ke(r)?(i=[],i[we]=r[we]):Wt(r)&&(i={}),i&&(Me(r,function(a,s){s&&Tu(s)&&(s=tp(e,t,s)),i[a]=s}),r=i)}return r}function np(e,t,n,r){var i,a,s,l=r,c,u,f,d;Tu(l)?(i=l.isVal,a=l.set,f=l.rdOnly,d=l.blkVal,c=l.mrg,u=l.ref,!u&&dt(u)&&(u=!!c),s=Ly(e,t,l)):s=r,d&&e.blkVal(t,n);var p,h=!0,m=t[n];(m||!K(m))&&(p=m,h=!1,i&&p!==s&&!i(p)&&(p=s,h=!0),a&&(p=a(p,s,t),h=p===s)),h?s?p=tp(e,t,s):p=s:(Wt(p)||ke(s))&&c&&s&&(Wt(s)||ke(s))&&Me(s,function(v,_){np(e,p,v,_)}),e.set(t,n,p),u&&e.ref(t,n),f&&e.rdOnly(t,n)}var mi=eh("[[ai_dynCfg_1]]"),Fy=eh("[[ai_blkDynCfg_1]]"),OA=eh("[[ai_frcDynCfg_1]]");function Yy(e){if(e){var t;if(ke(e)?(t=[],t[we]=e[we]):Wt(e)&&(t={}),t)return Me(e,function(n,r){t[n]=Yy(r)}),t}return e}function PA(e){if(e){var t=e[mi]||e;if(t.cfg&&(t.cfg===e||t.cfg[mi]===t))return t}return null}function AA(e){if(e&&(Wt(e)||ke(e)))try{e[Fy]=!0}catch{}return e}function rp(e,t,n){var r=!1;return n&&!e[t.blkVal]&&(r=n[OA],!r&&!n[Fy]&&(r=Wt(n)||ke(n))),r}function $y(e){qn("InvalidAccess:"+e)}var MA=["push","pop","shift","unshift","splice"],al=function(e,t,n,r){e&&e[Ws](3,108,"".concat(n," [").concat(t,"] failed - ")+se(r))};function xA(e,t,n){ke(t)&&oe(MA,function(r){var i=t[r];t[r]=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=i[Qi](this,a);return bu(e,t,n,"Patching"),l}})}function Nu(e,t){var n=vP(e,t);return n&&n.get}function VA(e,t,n,r){var i={n,h:[],trk:function(u){u&&u.fn&&(Ft(i.h,u)===-1&&i.h[Be](u),e.trk(u,i))},clr:function(u){var f=Ft(i.h,u);f!==-1&&i.h[_o](f,1)}},a=!0,s=!1;function l(){a&&(s=s||rp(l,e,r),r&&!r[mi]&&s&&(r=bu(e,r,n,"Converting")),a=!1);var u=e.act;return u&&i.trk(u),r}l[e.prop]={chng:function(){e.add(i)}};function c(u){if(r!==u){l[e.ro]&&!e.upd&&$y("["+n+"] is read-only:"+se(t)),a&&(s=s||rp(l,e,r),a=!1);var f=s&&l[e.rf];if(s)if(f){Me(r,function(p){r[p]=u?u[p]:nr});try{Me(u,function(p,h){wu(e,r,p,h)}),u=r}catch(p){al((e.hdlr||{})[yt],n,"Assigning",p),s=!1}}else r&&r[mi]&&Me(r,function(p){var h=Nu(r,p);if(h){var m=h[e.prop];m&&m.chng()}});if(u!==r){var d=u&&rp(l,e,u);!f&&d&&(u=bu(e,u,n,"Converting")),r=u,s=d}e.add(i)}}Le(t,i.n,{g:l,s:c})}function wu(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop];a?t[n]=r:VA(e,t,n,r)}return t}function ip(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop],s=r&&r[0],l=r&&r[1],c=r&&r[2];if(!a){if(c)try{AA(t)}catch(u){al((e.hdlr||{})[yt],n,"Blocking",u)}try{wu(e,t,n,t[n]),i=Nu(t,n)}catch(u){al((e.hdlr||{})[yt],n,"State",u)}}s&&(i[e.rf]=s),l&&(i[e.ro]=l),c&&(i[e.blkVal]=!0)}return t}function bu(e,t,n,r){try{Me(t,function(i,a){wu(e,t,i,a)}),t[mi]||(Pr(t,mi,{get:function(){return e.hdlr}}),xA(e,t,n))}catch(i){al((e.hdlr||{})[yt],n,r,i)}return t}var ol="[[ai_",sl="]]";function LA(e){var t=Bs(ol+"get"+e.uid+sl),n=Bs(ol+"ro"+e.uid+sl),r=Bs(ol+"rf"+e.uid+sl),i=Bs(ol+"blkVal"+e.uid+sl),a=Bs(ol+"dtl"+e.uid+sl),s=null,l=null,c;function u(h,m){var v=c.act;try{c.act=h,h&&h[a]&&(oe(h[a],function(g){g.clr(h)}),h[a]=[]),m({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(g){var _=e[yt];throw _&&_[Ws](1,107,se(g)),g}finally{c.act=v||null}}function f(){if(s){var h=s;s=null,l&&l[Zi](),l=null;var m=[];if(oe(h,function(v){if(v&&(v[a]&&(oe(v[a],function(_){_.clr(v)}),v[a]=null),v.fn))try{u(v,v.fn)}catch(_){m[Be](_)}}),s)try{f()}catch(v){m[Be](v)}m[we]>0&&VP("Watcher error(s): ",m)}}function d(h){if(h&&h.h[we]>0){s||(s=[]),l||(l=En(function(){l=null,f()},0));for(var m=0;m<h.h[we];m++){var v=h.h[m];v&&Ft(s,v)===-1&&s[Be](v)}}}function p(h,m){if(h){var v=h[a]=h[a]||[];Ft(v,m)===-1&&v[Be](m)}}return c={prop:t,ro:n,rf:r,blkVal:i,hdlr:e,add:d,notify:f,use:u,trk:p},c}function FA(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return Le(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),e.use(n,t),n}function YA(e,t,n){var r=PA(t);if(r)return r;var i=Tn("dyncfg",!0),a=t&&n!==!1?t:Yy(t),s;function l(){s.notify()}function c(_,g,S){try{_=wu(s,_,g,S)}catch(C){al(e,g,"Setting value",C)}return _[g]}function u(_){return FA(s,_)}function f(_,g){s.use(null,function(S){var C=s.upd;try{dt(g)||(s.upd=g),_(S)}finally{s.upd=C}})}function d(_,g){var S;return ip(s,_,g,(S={},S[0]=!0,S))[g]}function p(_,g){var S;return ip(s,_,g,(S={},S[1]=!0,S))[g]}function h(_,g){var S;return ip(s,_,g,(S={},S[2]=!0,S))[g]}function m(_,g){return g&&Me(g,function(S,C){np(v,_,S,C)}),_}var v={uid:null,cfg:a,logger:e,notify:l,set:c,setDf:m,watch:u,ref:d,rdOnly:p,blkVal:h,_block:f};return Le(v,"uid",{c:!1,e:!1,w:!1,v:i}),s=LA(v),bu(s,a,"config","Creating"),v}function $A(e,t){e?(e[nu](t),e[Ws](2,108,t)):$y(t)}function Nn(e,t,n,r){var i=YA(n,e||{},r);return t&&i.setDf(i.cfg,t),i}function mt(e,t,n){var r=e[mi]||e;return r.cfg&&(r.cfg===e||r.cfg[mi]===r)?r[Ji](t):($A(n,KP+se(e)),Nn(e,null,n)[Ji](t))}function ko(e,t){if(e&&e[na])return e[na](t)}function By(e,t,n){var r;return n||(r=hi(function(i){n=i})),e&&mP(e)>0?cn(ko(e[0],t),function(){By(jc(e,1),t,n)}):n(),r}var BA=500,Uy="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function UA(e,t,n){return!e&&K(e)?t:Sg(e)?e:Gt(e)[vo]()==="true"}function Ln(e){return{mrg:!0,v:e}}function Hy(e,t){return{set:e,v:t}}function Du(e,t,n){return{fb:n,isVal:e,v:t}}function St(e,t){return{fb:t,set:UA,v:!!e}}function HA(e){return{isVal:ye,v:Gt(Fe)}}var ap=[hu,Qs,pu,oa],ku=null,Cu;function GA(e,t){return function(){var n=arguments,r=Gy(t);if(r){var i=r.listener;i&&i[e]&&i[e][Qi](i,n)}}}function WA(){var e=ot("Microsoft");return e&&(ku=e.ApplicationInsights),ku}function Gy(e){var t=ku;return!t&&e.disableDbgExt!==!0&&(t=ku||WA()),t?t.ChromeDbgExt:null}function jA(e){if(!Cu){Cu={};for(var t=0;t<ap[we];t++)Cu[ap[t]]=GA(ap[t],e)}return Cu}var Co,Wy="warnToConsole",zA="AI (Internal): ",KA="AI: ",qA="AITR_",XA={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},JA=(Co={},Co[0]=null,Co[1]="errorToConsole",Co[2]=Wy,Co[3]="debugToConsole",Co);function jy(e){return e?'"'+e[aa](/\"/g,Fe)+'"':Fe}function op(e,t){var n=vA();if(n){var r="log";n[e]&&(r=e),Se(n[r])&&n[r](t)}}var ll=function(){function e(t,n,r,i){r===void 0&&(r=!1);var a=this;a[su]=t,a[ia]=(r?KA:zA)+t;var s=Fe;el()&&(s=Vn().stringify(i));var l=(n?" message:"+jy(n):Fe)+(i?" props:"+jy(s):Fe);a[ia]+=l}return e.dataType="MessageData",e}();function la(e,t){return(e||{})[yt]||new Iu(t)}var Iu=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={},i,a,s,l,c;et(e,this,function(u){c=d(t||{}),u.consoleLoggingLevel=function(){return i},u[Ws]=function(m,v,_,g,S){S===void 0&&(S=!1);var C=new ll(v,_,S,g);if(l)throw se(C);var A=JA[m]||Wy;if(dt(C[ia]))h("throw"+(m===1?"Critical":"Warning"),C);else{if(S){var V=+C[su];!r[V]&&i>=m&&(u[A](C[ia]),r[V]=!0)}else i>=m&&u[A](C[ia]);f(m,C)}},u.debugToConsole=function(m){op("debug",m),h("warning",m)},u[nu]=function(m){op("warn",m),h("warning",m)},u.errorToConsole=function(m){op("error",m),h("error",m)},u.resetInternalMessageCount=function(){n=0,r={}},u.logInternalMessage=f,u[na]=function(m){c&&c.rm(),c=null};function f(m,v){if(!p()){var _=!0,g=qA+v[su];if(r[g]?_=!1:r[g]=!0,_&&(m<=a&&(u.queue[Be](v),n++,h(m===1?"error":"warn",v)),n===s)){var S="Internal events throttle limit per PageView reached for this app.",C=new ll(23,S,!1);u.queue[Be](C),m===1?u.errorToConsole(S):u[nu](S)}}}function d(m){return mt(Nn(m,XA,u).cfg,function(v){var _=v.cfg;i=_[sy],a=_.loggingLevelTelemetry,s=_.maxMessageLimit,l=_.enableDebug})}function p(){return n>=s}function h(m,v){var _=Gy(t||{});_&&_[Yr]&&_[Yr](m,v)}})}return e.__ieDyn=1,e}();function sp(e){return e||new Iu}function Z(e,t,n,r,i,a){a===void 0&&(a=!1),sp(e)[Ws](t,n,r,i,a)}function ca(e,t){sp(e)[nu](t)}function QA(e,t,n){sp(e).logInternalMessage(t,n)}var lp,ua,zy="toGMTString",Ky="toUTCString",cp="cookie",up="expires",qy="isCookieUseDisabled",fp="disableCookiesUsage",Io="_ckMgr",Ru=null,dp=null,Xy=null,ar,Jy={},Ou={},ZA=(lp={cookieCfg:Ln((ua={},ua[Hh]={fb:"cookieDomain",dfVal:sa},ua.path={fb:"cookiePath",dfVal:sa},ua.enabled=nr,ua.ignoreCookies=nr,ua.blockedCookies=nr,ua)),cookieDomain:nr,cookiePath:nr},lp[fp]=nr,lp);function hp(){!ar&&(ar=Ig(function(){return Ot()}))}function eM(e,t){var n=Au[Io]||Ou[Io];return n||(n=Au[Io]=Au(e,t),Ou[Io]=n),n}function Pu(e){return e?e.isEnabled():!0}function Qy(e,t){return t&&e&&ke(e.ignoreCookies)?Ft(e.ignoreCookies,t)!==-1:!1}function tM(e,t){return t&&e&&ke(e.blockedCookies)&&Ft(e.blockedCookies,t)!==-1?!0:Qy(e,t)}function Zy(e,t){var n=t[go];if(K(n)){var r=void 0;dt(e[qy])||(r=!e[qy]),dt(e[fp])||(r=!e[fp]),n=r}return n}function pp(e,t){var n;return e&&(n=e.getCookieMgr()),n||(n=eM(t,(e||{})[yt])),n}function Au(e,t){var n,r,i,a,s,l,c,u;e=Nn(e||Ou,null,t).cfg,a=mt(e,function(d){d.setDf(d.cfg,ZA),n=d.ref(d.cfg,"cookieCfg"),r=n[Gh]||"/",i=n[Hh],s=Zy(e,n)!==!1,l=n.getCookie||nM,c=n.setCookie||iS,u=n.delCookie||iS},t);var f={isEnabled:function(){var d=Zy(e,n)!==!1&&s&&eS(t),p=Ou[Io];return d&&p&&f!==p&&(d=Pu(p)),d},setEnabled:function(d){s=d!==!1,n[go]=d},set:function(d,p,h,m,v){var _=!1;if(Pu(f)&&!tM(n,d)){var g={},S=Ze(p||Fe),C=jt(S,";");if(C!==-1&&(S=Ze(qd(p,C)),g=tS(Xn(p,C+1))),Qe(g,Hh,m||i,Vc,dt),!K(h)){var A=Qh();if(dt(g[up])){var V=Mn(),z=V+h*1e3;if(z>0){var b=new Date;b.setTime(z),Qe(g,up,nS(b,A?zy:Ky)||nS(b,A?zy:Ky)||Fe,Vc)}}A||Qe(g,"max-age",Fe+h,null,dt)}var I=ir();I&&I.protocol==="https:"&&(Qe(g,"secure",null,null,dt),dp===null&&(dp=!rM((Jn()||{})[Ch])),dp&&Qe(g,"SameSite","None",null,dt)),Qe(g,Gh,v||r,null,dt),c(d,rS(S,g)),_=!0}return _},get:function(d){var p=Fe;return Pu(f)&&!Qy(n,d)&&(p=l(d)),p},del:function(d,p){var h=!1;return Pu(f)&&(h=f.purge(d,p)),h},purge:function(d,p){var h,m=!1;if(eS(t)){var v=(h={},h[Gh]=p||"/",h[up]="Thu, 01 Jan 1970 00:00:01 GMT",h);Qh()||(v["max-age"]="0"),u(d,rS(Fe,v)),m=!0}return m},unload:function(d){a&&a.rm(),a=null}};return f[Io]=f,f}function eS(e){if(Ru===null){Ru=!1,!ar&&hp();try{var t=ar.v||{};Ru=t[cp]!==void 0}catch(n){Z(e,2,68,"Cannot access document.cookie - "+je(n),{exception:se(n)})}}return Ru}function tS(e){var t={};if(e&&e[we]){var n=Ze(e)[yo](";");oe(n,function(r){if(r=Ze(r||Fe),r){var i=jt(r,"=");i===-1?t[r]=null:t[Ze(qd(r,i))]=Ze(Xn(r,i+1))}})}return t}function nS(e,t){return Se(e[t])?e[t]():null}function rS(e,t){var n=e||Fe;return Me(t,function(r,i){n+="; "+r+(K(i)?Fe:"="+i)}),n}function nM(e){var t=Fe;if(!ar&&hp(),ar.v){var n=ar.v[cp]||Fe;Xy!==n&&(Jy=tS(n),Xy=n),t=Ze(Jy[e]||Fe)}return t}function iS(e,t){!ar&&hp(),ar.v&&(ar.v[cp]=e+"="+t)}function rM(e){return ye(e)?!!(Yt(e,"CPU iPhone OS 12")||Yt(e,"iPad; CPU OS 12")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&Yt(e,"Version/")&&Yt(e,"Safari")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&zg(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Yt(e,"Chrome/5")||Yt(e,"Chrome/6")||Yt(e,"UnrealEngine")&&!Yt(e,"Chrome")||Yt(e,"UCBrowser/12")||Yt(e,"UCBrowser/11")):!1}var iM={perfEvtsSendAll:!1};function aM(e){e.h=null;var t=e.cb;e.cb=[],oe(t,function(n){ft(n.fn,[n.arg])})}function vi(e,t,n,r){oe(e,function(i){i&&i[t]&&(n?(n.cb[Be]({fn:r,arg:i}),n.h=n.h||En(aM,0,n)):ft(r,[i]))})}var oM=function(){function e(t){this.listeners=[];var n,r,i=[],a={h:null,cb:[]},s=Nn(t,iM);r=s[Ji](function(l){n=!!l.cfg.perfEvtsSendAll}),et(e,this,function(l){Le(l,"listeners",{g:function(){return i}}),l[iu]=function(c){i[Be](c)},l[ru]=function(c){for(var u=Ft(i,c);u>-1;)i[_o](u,1),u=Ft(i,c)},l[hu]=function(c){vi(i,hu,a,function(u){u[hu](c)})},l[Qs]=function(c,u){vi(i,Qs,a,function(f){f[Qs](c,u)})},l[pu]=function(c,u){vi(i,pu,u?a:null,function(f){f[pu](c,u)})},l[oa]=function(c){c&&(n||!c[Ih]())&&vi(i,oa,null,function(u){c.isAsync?En(function(){return u[oa](c)},0):u[oa](c)})},l[$h]=function(c){c&&c[we]&&vi(i,$h,a,function(u){u[$h](c)})},l[Bh]=function(c){c&&c[xn]&&vi(i,Bh,a,function(u){u[Bh](c)})},l[Uh]=function(c,u){if(c>0){var f=u||0;vi(i,Uh,a,function(d){d[Uh](c,f)})}},l[na]=function(c){var u=function(){r&&r.rm(),r=null,i=[],a.h&&a.h[Zi](),a.h=null,a.cb=[]},f;if(vi(i,"unload",null,function(d){var p=d[na](c);p&&(f||(f=[]),f[Be](p))}),f)return hi(function(d){return cn(zP(f),function(){u(),d()})});u()}})}return e.__ieDyn=1,e}(),Ro="ctx",mp="ParentContextKey",cl="ChildrenContextKey",sM=null,Mu=function(){function e(t,n,r){var i=this;if(i.start=Mn(),i[ea]=t,i.isAsync=r,i[Ih]=function(){return!1},Se(n)){var a;Le(i,"payload",{g:function(){return!a&&Se(n)&&(a=n(),n=null),a}})}i[So]=function(s){return s?s===e[mp]||s===e[cl]?i[s]:(i[Ro]||{})[s]:null},i[tr]=function(s,l){if(s)if(s===e[mp])i[s]||(i[Ih]=function(){return!0}),i[s]=l;else if(s===e[cl])i[s]=l;else{var c=i[Ro]=i[Ro]||{};c[s]=l}},i.complete=function(){var s=0,l=i[So](e[cl]);if(ke(l))for(var c=0;c<l[we];c++){var u=l[c];u&&(s+=u.time)}i.time=Mn()-i.start,i.exTime=i.time-s,i.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),lM=function(){function e(t){this.ctx={},et(e,this,function(n){n.create=function(r,i,a){return new Mu(r,i,a)},n.fire=function(r){r&&(r.complete(),t&&Se(t[oa])&&t[oa](r))},n[tr]=function(r,i){if(r){var a=n[Ro]=n[Ro]||{};a[r]=i}},n[So]=function(r){return(n[Ro]||{})[r]}})}return e.__ieDyn=1,e}(),vp="CoreUtils.doPerf";function xu(e,t,n,r,i){if(e){var a=e;if(a[mu]&&(a=a[mu]()),a){var s=void 0,l=a[So](vp);try{if(s=a.create(t(),r,i),s){if(l&&s[tr]&&(s[tr](Mu[mp],l),l[So]&&l[tr])){var c=l[So](Mu[cl]);c||(c=[],l[tr](Mu[cl],c)),c[Be](s)}return a[tr](vp,s),n(s)}}catch(u){s&&s[tr]&&s[tr]("exception",u)}finally{s&&a.fire(s),a[tr](vp,l)}}}return n()}function cM(){return sM}function _i(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=Fe,n,r=0;r<4;r++)n=il(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(il()&3)|0];return li(t,0,8)+li(t,9,4)+"4"+li(t,13,3)+i+li(t,16,3)+li(t,19,12)}var _p="00",uM="ff",aS="00000000000000000000000000000000",oS="0000000000000000";function ul(e,t,n){return e&&e[we]===t&&e!==n?!!e.match(/^[\da-f]*$/i):!1}function sS(e,t,n){return ul(e,t)?e:n}function fM(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[we]<2;)t="0"+t;return t}function lS(e,t,n,r){return{version:ul(r,2,uM)?r:_p,traceId:gp(e)?e:_i(),spanId:yp(t)?t:qd(_i(),16),traceFlags:n>=0&&n<=255?n:1}}function gp(e){return ul(e,32,aS)}function yp(e){return ul(e,16,oS)}function cS(e){if(e){var t=fM(e[Rh]);ul(t,2)||(t="01");var n=e[kh]||_p;return n!=="00"&&n!=="ff"&&(n=_p),"".concat(n.toLowerCase(),"-").concat(sS(e.traceId,32,aS).toLowerCase(),"-").concat(sS(e.spanId,16,oS).toLowerCase(),"-").concat(t.toLowerCase())}return""}function dM(e){var t=e.getElementsByTagName("script"),n=[];return oe(t,function(r){var i=r[Oh]("src");if(i){var a=r[Oh]("crossorigin"),s=r.hasAttribute("async")===!0,l=r.hasAttribute("defer")===!0,c=r[Oh]("referrerpolicy"),u={url:i};a&&(u.crossOrigin=a),s&&(u.async=s),l&&(u.defer=l),c&&(u.referrerPolicy=c),n[Be](u)}}),n}var hM=Vy("plugin");function fa(e){return hM.get(e,"state",{},!0)}function uS(e,t){for(var n=[],r=null,i=e[er](),a;i;){var s=i[zs]();if(s){r&&r[qs]&&s[rr]&&r[qs](s),a=fa(s);var l=!!a[Zn];s[Zn]&&(l=s[Zn]()),l||n[Be](s),r=s,i=i[er]()}}oe(n,function(c){var u=e[Dt]();c[js](e.getCfg(),u,t,e[er]()),a=fa(c),!c[Dt]&&!a[Dt]&&(a[Dt]=u),a[Zn]=!0,delete a[Fr]})}function Sp(e){return e.sort(function(t,n){var r=0;if(n){var i=n[rr];t[rr]?r=i?t[du]-n[du]:1:i&&(r=-1)}else r=t?1:-1;return r})}function pM(e){var t={};return{getName:function(){return t[ea]},setName:function(n){t[ea]=n},getTraceId:function(){return t.traceId},setTraceId:function(n){gp(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){yp(n)&&(t.spanId=n)},getTraceFlags:function(){return t[Rh]},setTraceFlags:function(n){t[Rh]=n}}}var mM="TelemetryPluginChain",fS="_hasRun",dS="_getTelCtx",hS=0;function vM(e,t,n){for(;e;){if(e[zs]()===n)return e;e=e[er]()}return da([n],t.config||{},t)}function Ep(e,t,n,r){var i=null,a=[];t||(t=Nn({},null,n[yt])),r!==null&&(i=r?vM(e,n,r):e);var s={_next:c,ctx:{core:function(){return n},diagLog:function(){return la(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:f,getConfig:d,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(h){i=h},iterate:p,onComplete:l}};function l(h,m){for(var v=[],_=2;_<arguments.length;_++)v[_-2]=arguments[_];h&&a[Be]({func:h,self:dt(m)?s.ctx:m,args:v})}function c(){var h=i;if(i=h?h[er]():null,!h){var m=a;m&&m[we]>0&&(oe(m,function(v){try{v.func.call(v.self,v.args)}catch(_){Z(n[yt],2,73,"Unexpected Exception during onComplete - "+se(_))}}),a=[])}return h}function u(h,m){var v=null,_=t.cfg;if(_&&h){var g=_[No];!g&&m&&(g={}),_[No]=g,g=t.ref(_,No),g&&(v=g[h],!v&&m&&(v={}),g[h]=v,v=t.ref(g,h))}return v}function f(h,m){var v=u(h,!0);return m&&Me(m,function(_,g){if(K(v[_])){var S=t.cfg[_];(S||!K(S))&&(v[_]=S)}np(t,v,_,g)}),t.setDf(v,m)}function d(h,m,v){v===void 0&&(v=!1);var _,g=u(h,!1),S=t.cfg;return g&&(g[m]||!K(g[m]))?_=g[m]:(S[m]||!K(S[m]))&&(_=S[m]),_||!K(_)?_:v}function p(h){for(var m;m=s._next();){var v=m[zs]();v&&h(v)}}return s}function Fn(e,t,n,r){var i=Nn(t),a=Ep(e,i,n,r),s=a.ctx;function l(u){var f=a._next();return f&&f[rr](u,s),!f}function c(u,f){return u===void 0&&(u=null),ke(u)&&(u=da(u,i.cfg,n,f)),Fn(u||s[er](),i.cfg,n,f)}return s[Kt]=l,s[ra]=c,s}function Vu(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){var u=i._next();return u&&u[na](a,c),!u}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Vu(c||a[er](),t,u)}return a[Kt]=s,a[ra]=l,a}function Tp(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){return a.iterate(function(u){Se(u[Ks])&&u[Ks](a,c)})}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Tp(c||a[er](),t,u)}return a[Kt]=s,a[ra]=l,a}function da(e,t,n,r){var i=null,a=!r;if(ke(e)&&e[we]>0){var s=null;oe(e,function(l){if(!a&&r===l&&(a=!0),a&&l&&Se(l[rr])){var c=_M(l,t,n);i||(i=c),s&&s._setNext(c),s=c}})}return r&&!i?da([r],t,n):i}function _M(e,t,n){var r=null,i=Se(e[rr]),a=Se(e[qs]),s;e?s=e[fi]+"-"+e[du]+"-"+hS++:s="Unknown-0-"+hS++;var l={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:f,unload:d,update:p,_id:s,_setNext:function(h){r=h}};function c(){var h;return e&&Se(e[dS])&&(h=e[dS]()),h||(h=Fn(l,t,n)),h}function u(h,m,v,_,g){var S=!1,C=e?e[fi]:mM,A=h[fS];return A||(A=h[fS]={}),h.setNext(r),e&&xu(h[Dt](),function(){return C+":"+v},function(){A[s]=!0;try{var V=r?r._id:Fe;V&&(A[V]=!1),S=m(h)}catch(b){var z=r?A[r._id]:!0;z&&(S=!0),(!r||!z)&&Z(h[Yr](),1,73,"Plugin ["+C+"] failed during "+v+" - "+se(b)+", run flags: "+se(A))}},_,g),S}function f(h,m){m=m||c();function v(_){if(!e||!i)return!1;var g=fa(e);return g[Fr]||g[Yh]?!1:(a&&e[qs](r),e[rr](h,_),!0)}u(m,v,"processTelemetry",function(){return{item:h}},!h.sync)||m[Kt](h)}function d(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Fr]&&(g[Dt]=null,g[Fr]=!0,g[Zn]=!1,e[Fr]&&e[Fr](h,m)===!0&&(_=!0))}return _}u(h,v,"unload",function(){},m.isAsync)||h[Kt](m)}function p(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Fr]&&e[Ks]&&e[Ks](h,m)===!0&&(_=!0)}return _}u(h,v,"update",function(){},!1)||h[Kt](m)}return An(l)}function pS(){var e=[];function t(r){r&&e[Be](r)}function n(r,i){oe(e,function(a){try{a(r,i)}catch(s){Z(r[Yr](),2,73,"Unexpected error calling unload handler - "+se(s))}}),e=[]}return{add:t,run:n}}function mS(){var e=[];function t(r){var i=e;e=[],oe(i,function(a){try{(a.rm||a.remove).call(a)}catch(s){Z(r,2,73,"Unloading:"+se(s))}})}function n(r){r&&po(e,r)}return{run:t,add:n}}var Np,gi="getPlugin",gM=(Np={},Np[No]={isVal:sa,v:{}},Np),Oo=function(){function e(){var t=this,n,r,i,a,s;u(),et(e,t,function(f){f[js]=function(d,p,h,m){c(d,p,m),n=!0},f[Fr]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Vu(null,h,i&&i[gi]?i[gi]():i),g=p||{reason:0,isAsync:!1};function S(){v||(v=!0,a.run(_,p),s.run(_[Yr]()),m===!0&&_[Kt](g),u())}return!f[lu]||f[lu](_,g,S)!==!0?S():m=!0,m},f[Ks]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Tp(null,h,i&&i[gi]?i[gi]():i),g=p||{reason:0};function S(){v||(v=!0,c(_.getCfg(),_.core(),_[er]()))}return!f._doUpdate||f._doUpdate(_,g,S)!==!0?S():m=!0,m},_u(f,"_addUnloadCb",function(){return a},"add"),_u(f,"_addHook",function(){return s},"add"),Le(f,"_unloadHooks",{g:function(){return s}})}),t[Yr]=function(f){return l(f)[Yr]()},t[Zn]=function(){return n},t.setInitialized=function(f){n=f},t[qs]=function(f){i=f},t[Kt]=function(f,d){d?d[Kt](f):i&&Se(i[rr])&&i[rr](f,null)},t._getTelCtx=l;function l(f){f===void 0&&(f=null);var d=f;if(!d){var p=r||Fn(null,{},t[Dt]);i&&i[gi]?d=p[ra](null,i[gi]):d=p[ra](null,i)}return d}function c(f,d,p){Nn(f,gM,la(d)),!p&&d&&(p=d[ay]()[er]());var h=i;i&&i[gi]&&(h=i[gi]()),t[Dt]=d,r=Fn(p,f,d,h)}function u(){n=!1,t[Dt]=null,r=null,i=null,s=mS(),a=pS()}}return e.__ieDyn=1,e}();function yM(e,t,n){var r={id:t,fn:n};po(e,r);var i={remove:function(){oe(e,function(a,s){if(a.id===r.id)return e[_o](s,1),-1})}};return i}function SM(e,t,n){for(var r=!1,i=e[we],a=0;a<i;++a){var s=e[a];if(s)try{if(s.fn[Qi](null,[t])===!1){r=!0;break}}catch(l){Z(n,2,64,"Telemetry initializer failed: "+je(l),{exception:se(l)},!0)}}return!r}var EM=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var r,i;a(),et(t,n,function(s,l){s.addTelemetryInitializer=function(c){return yM(i,r++,c)},s[rr]=function(c,u){SM(i,c,u?u[Yr]():s[Yr]())&&s[Kt](c,u)},s[lu]=function(){a()}});function a(){r=0,i=[]}return n}return t.__ieDyn=1,t}(Oo),yi,vS="Plugins must provide initialize method",TM="_notificationManager",_S="SDK is still unloading...",NM="SDK is not initialized",wM=100,bM=5e4,wp=Fs((yi={cookieCfg:{}},yi[wo]={rdOnly:!0,ref:!0,v:[]},yi[To]={rdOnly:!0,ref:!0,v:[]},yi[No]={ref:!0,v:{}},yi[Fh]=nr,yi.loggingLevelConsole=0,yi.diagnosticLogInterval=nr,yi));function DM(e,t){return new lM(t)}function kM(e,t,n){var r=[],i=[],a={};return oe(n,function(s){(K(s)||K(s[js]))&&on(vS);var l=s[du],c=s[fi];s&&l&&(K(a[l])?a[l]=c:ca(e,"Two extensions have same priority #"+l+" - "+a[l]+", "+c)),!l||l<t?r[Be](s):i[Be](s)}),{core:r,channels:i}}function gS(e,t){var n=!1;return oe(t,function(r){if(r===e)return n=!0,-1}),n}function bp(e,t,n,r){n&&Me(n,function(i,a){r&&Wt(a)&&Wt(t[i])&&bp(e,t[i],a,r),r&&Wt(a)&&Wt(t[i])?bp(e,t[i],a,r):e.set(t,i,a)})}function yS(e,t){var n=null,r=-1;return oe(e,function(i,a){if(i.w===t)return n=i,r=a,-1}),{i:r,l:n}}function CM(e,t){var n=yS(e,t).l;return n||(n={w:t,rm:function(){var r=yS(e,t);r.i!==-1&&e[_o](r.i,1)}},e[Be](n)),n}function IM(e,t,n){oe(t,function(r){var i=mt(e,r.w,n);delete r.w,r.rm=function(){i.rm()}})}function RM(e,t,n,r){return t.add(e[Ji](function(i){var a=i.cfg.disableDbgExt;a===!0&&r&&(n[ru](r),r=null),n&&!r&&a!==!0&&(r=jA(i.cfg),n[iu](r))})),r}function OM(e){return Le({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}var PM=function(){function e(){var t,n,r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j,x;et(e,this,function(O){U(),O._getDbgPlgTargets=function(){return[b,i]},O[Zn]=function(){return n},O.activeStatus=function(){return k},O._setPendingStatus=function(){k=3},O[js]=function(F,ne,me,de){h&&on(_S),O[Zn]()&&on("Core cannot be initialized more than once"),t=Nn(F,wp,me||O[yt],!1),F=t.cfg,Je(t[Ji](function(W){var G=W.cfg;q=G.initInMemoMaxSize||wM,re(G);var X=W.ref(W.cfg,No);Me(X,function(he){W.ref(X,he)})})),a=de,C=RM(t,S,a&&O[au](),C),fe(),O[yt]=me;var N=F[wo];if(f=[],f[Be].apply(f,ry(ry([],ne,!1),N)),d=F[To],w(null),(!p||p[we]===0)&&on("No "+To+" available"),d&&d[we]>1){var L=O[zs]("TeeChannelController");(!L||!L.plugin)&&Z(r,1,28,"TeeChannel required")}IM(F,z,r),z=null,n=!0,k===ui.ACTIVE&&y()},O.getChannels=function(){var F=[];return p&&oe(p,function(ne){F[Be](ne)}),An(F)},O.track=function(F){xu(O[mu](),function(){return"AppInsightsCore:track"},function(){F===null&&(Mt(F),on("Invalid telemetry item")),!F[ea]&&K(F[ea])&&(Mt(F),on("telemetry name required")),F.iKey=F.iKey||V,F.time=F.time||bo(new Date),F.ver=F.ver||"4.0",!h&&O[Zn]()&&k===ui.ACTIVE?ie()[Kt](F):k!==ui.INACTIVE&&i[we]<=q&&i[Be](F)},function(){return{item:F}},!F.sync)},O[ay]=ie,O[au]=function(){return a||(a=new oM(t.cfg),O[TM]=a),a},O[iu]=function(F){O.getNotifyMgr()[iu](F)},O[ru]=function(F){a&&a[ru](F)},O.getCookieMgr=function(){return c||(c=Au(t.cfg,O[yt])),c},O.setCookieMgr=function(F){c!==F&&(ko(c,!1),c=F)},O[mu]=function(){return s||l||cM()},O.setPerfMgr=function(F){s=F},O.eventCnt=function(){return i[we]},O.releaseQueue=function(){if(n&&i[we]>0){var F=i;i=[],k===2?oe(F,function(ne){ne.iKey=ne.iKey||V,ie()[Kt](ne)}):Z(r,2,20,"core init status is not active")}},O.pollInternalLogs=function(F){return v=F||null,x=!1,D&&D[Zi](),M(!0)};function re(F){var ne=F.instrumentationKey,me=F.endpointUrl;if(k!==3){if(K(ne)){V=null,k=ui.INACTIVE;var de="Please provide instrumentation key";n?(Z(r,1,100,de),y()):on(de);return}var N=[];oi(ne)?(N[Be](ne),V=null):V=ne,oi(me)?(N[Be](me),P=null):P=me,N[we]?ue(F,N):ve()}}function ue(F,ne){te=!1,k=3;var me=sa(F.initTimeOut)?F.initTimeOut:bM,de=jP(ne);E&&E[Zi](),E=En(function(){E=null,te||ve()},me),cn(de,function(N){try{if(te)return;if(!N.rejected){var L=N[ta];if(L&&L[we]){var W=L[0];if(V=W&&W[ta],L[we]>1){var G=L[1];P=G&&G[ta]}}V&&(F.instrumentationKey=V,F.endpointUrl=P)}ve()}catch{te||ve()}})}function ve(){te=!0,K(V)?(k=ui.INACTIVE,Z(r,1,112,"ikey can't be resolved from promises")):k=ui.ACTIVE,y()}function y(){n&&(O.releaseQueue(),O.pollInternalLogs())}function M(F){if((!D||!D[go])&&!x){var ne=F||r&&r.queue[we]>0;ne&&(j||(j=!0,Je(t[Ji](function(me){var de=me.cfg.diagnosticLogInterval;(!de||!(de>0))&&(de=1e4);var N=!1;D&&(N=D[go],D[Zi]()),D=wP(Ee,de),D.unref(),D[go]=N}))),D[go]=!0)}return D}O[oy]=function(){x=!0,D&&D[Zi](),Ee()},Zs(O,function(){return m},["addTelemetryInitializer"]),O[na]=function(F,ne,me){F===void 0&&(F=!0),n||on(NM),h&&on(_S);var de={reason:50,isAsync:F,flushComplete:!1},N;F&&!ne&&(N=hi(function(G){ne=G}));var L=Vu(Y(),O);L[ou](function(){S.run(O[yt]),By([c,a,r],F,function(){U(),ne&&ne(de)})},O);function W(G){de.flushComplete=G,h=!0,g.run(L,de),O[oy](),L[Kt](de)}return Ee(),Ye(F,W,6,me),N},O[zs]=H,O.addPlugin=function(F,ne,me,de){if(!F){de&&de(!1),Ae(vS);return}var N=H(F[fi]);if(N&&!ne){de&&de(!1),Ae("Plugin ["+F[fi]+"] is already loaded!");return}var L={reason:16};function W(he){f[Be](F),L.added=[F],w(L),de&&de(!0)}if(N){var G=[N.plugin],X={reason:2,isAsync:!!me};Q(G,X,function(he){he?(L.removed=G,L.reason|=32,W()):de&&de(!1)})}else W()},O.updateCfg=function(F,ne){ne===void 0&&(ne=!0);var me;if(O[Zn]()){me={reason:1,cfg:t.cfg,oldCfg:Hg({},t.cfg),newConfig:Hg({},F),merge:ne},F=me.newConfig;var de=t.cfg;F[wo]=de[wo],F[To]=de[To]}t._block(function(N){var L=N.cfg;bp(N,L,F,ne),ne||Me(L,function(W){si(F,W)||N.set(L,W,nr)}),N.setDf(L,wp)},!0),t.notify(),me&&ce(me)},O.evtNamespace=function(){return _},O.flush=Ye,O.getTraceCtx=function(F){return A||(A=pM()),A},O.setTraceCtx=function(F){A=F||null},O.addUnloadHook=Je,_u(O,"addUnloadCb",function(){return g},"add"),O.onCfgChange=function(F){var ne;return n?ne=mt(t.cfg,F,O[yt]):ne=CM(z,F),OM(ne)},O.getWParam=function(){return Pg()||t.cfg.enableWParam?0:-1};function T(){var F={};I=[];var ne=function(me){me&&oe(me,function(de){if(de[fi]&&de[kh]&&!F[de.identifier]){var N=de[fi]+"="+de[kh];I[Be](N),F[de.identifier]=de}})};ne(p),d&&oe(d,function(me){ne(me)}),ne(f)}function U(){n=!1,t=Nn({},wp,O[yt]),t.cfg[sy]=1,Le(O,"config",{g:function(){return t.cfg},s:function(ne){O.updateCfg(ne,!1)}}),Le(O,"pluginVersionStringArr",{g:function(){return I||T(),I}}),Le(O,"pluginVersionString",{g:function(){return B||(I||T(),B=I.join(";")),B||Fe}}),Le(O,"logger",{g:function(){return r||(r=new Iu(t.cfg),t[yt]=r),r},s:function(ne){t[yt]=ne,r!==ne&&(ko(r,!1),r=ne)}}),O[yt]=new Iu(t.cfg),b=[];var F=O.config[wo]||[];F.splice(0,F[we]),po(F,b),m=new EM,i=[],ko(a,!1),a=null,s=null,l=null,ko(c,!1),c=null,u=null,f=[],d=null,p=null,h=!1,v=null,_=Tn("AIBaseCore",!0),g=pS(),A=null,V=null,S=mS(),z=[],B=null,I=null,x=!1,D=null,j=!1,k=0,P=null,q=null,te=!1,E=null}function ie(){var F=Fn(Y(),t.cfg,O);return F[ou](M),F}function w(F){var ne=kM(O[yt],BA,f);u=null,B=null,I=null,p=(d||[])[0]||[],p=Sp(po(p,ne[To]));var me=po(Sp(ne[Dt]),p);b=An(me);var de=O.config[wo]||[];de.splice(0,de[we]),po(de,b);var N=ie();p&&p[we]>0&&uS(N[ra](p),me),uS(N,me),F&&ce(F)}function H(F){var ne=null,me=null,de=[];return oe(b,function(N){if(N[fi]===F&&N!==m)return me=N,-1;N.getChannel&&de[Be](N)}),!me&&de[we]>0&&oe(de,function(N){if(me=N.getChannel(F),!me)return-1}),me&&(ne={plugin:me,setEnabled:function(N){fa(me)[Yh]=!N},isEnabled:function(){var N=fa(me);return!N[Fr]&&!N[Yh]},remove:function(N,L){N===void 0&&(N=!0);var W=[me],G={reason:1,isAsync:N};Q(W,G,function(X){X&&w({reason:32,removed:W}),L&&L(X)})}}),ne}function Y(){if(!u){var F=(b||[]).slice();Ft(F,m)===-1&&F[Be](m),u=da(Sp(F),t.cfg,O)}return u}function Q(F,ne,me){if(F&&F[we]>0){var de=da(F,t.cfg,O),N=Vu(de,O);N[ou](function(){var L=!1,W=[];oe(f,function(X,he){gS(X,F)?L=!0:W[Be](X)}),f=W,B=null,I=null;var G=[];d&&(oe(d,function(X,he){var _e=[];oe(X,function(Oe){gS(Oe,F)?L=!0:_e[Be](Oe)}),G[Be](_e)}),d=G),me&&me(L),M()}),N[Kt](ne)}else me(!1)}function Ee(){if(r&&r.queue){var F=r.queue.slice(0);r.queue[we]=0,oe(F,function(ne){var me={name:v||"InternalMessageId: "+ne[su],iKey:V,time:bo(new Date),baseType:ll.dataType,baseData:{message:ne[ia]}};O.track(me)})}}function Ye(F,ne,me,de){var N=1,L=!1,W=null;de=de||5e3;function G(){N--,L&&N===0&&(W&&W[Zi](),W=null,ne&&ne(L),ne=null)}if(p&&p[we]>0){var X=ie()[ra](p);X.iterate(function(he){if(he.flush){N++;var _e=!1;he.flush(F,function(){_e=!0,G()},me)||_e||(F&&W==null?W=En(function(){W=null,G()},de):G())}})}return L=!0,G(),!0}function fe(){var F;Je(t[Ji](function(ne){var me=ne.cfg.enablePerfMgr;if(me){var de=ne.cfg[Fh];(F!==de||!F)&&(de||(de=DM),qt(ne.cfg,Fh,de),F=de,l=null),!s&&!l&&Se(de)&&(l=de(O,O[au]()))}else l=null,F=null}))}function ce(F){var ne=Tp(Y(),O);ne[ou](M),(!O._updateHook||O._updateHook(ne,F)!==!0)&&ne[Kt](F)}function Ae(F){var ne=O[yt];ne?(Z(ne,2,73,F),M()):on(F)}function Mt(F){var ne=O[au]();ne&&ne[Qs]([F],2)}function Je(F){S.add(F)}})}return e.__ieDyn=1,e}();function Dp(e,t){try{if(e&&e!==""){var n=Vn().parse(e);if(n&&n[uy]&&n[uy]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[we])return n}}catch(r){Z(t,1,43,"Cannot parse the response. "+(r[ea]||se(r)),{response:e})}return null}var Yn="",AM="NoResponseBody",SS="&"+AM+"=true",kp="POST",MM=function(){function e(){var t=0,n,r,i,a,s,l,c,u,f,d,p,h,m,v;et(e,this,function(_,g){var S=!0;te(),_[js]=function(E,D){i=D,r&&Z(i,1,28,"Sender is already initialized"),_.SetConfig(E),r=!0},_._getDbgPlgTargets=function(){return[r,a,l,n]},_.SetConfig=function(E){try{if(s=E.senderOnCompleteCallBack||{},l=!!E.disableCredentials,c=E.fetchCredentials,a=!!E.isOneDs,n=!!E.enableSendPromise,f=!!E.disableXhr,d=!!E.disableBeacon,p=!!E.disableBeaconSync,v=E.timeWrapper,m=!!E.addNoResponse,h=!!E.disableFetchKeepAlive,u={sendPOST:k},a||(S=!1),l){var D=ir();D&&D.protocol&&D.protocol[vo]()==="file:"&&(S=!1)}return!0}catch{}return!1},_.getSyncFetchPayload=function(){return t},_.getSenderInst=function(E,D){return E&&E[we]?z(E,D):null},_.getFallbackInst=function(){return u},_[lu]=function(E,D){te()},_.preparePayload=function(E,D,j,x){if(!D||x||!j[xn]){E(j);return}try{var O=ot("CompressionStream");if(!Se(O)){E(j);return}var re=new ReadableStream({start:function(U){U.enqueue(ye(j[xn])?new TextEncoder().encode(j[xn]):j[xn]),U.close()}}),ue=re.pipeThrough(new O("gzip")),ve=ue.getReader(),y=[],M=0,T=!1;return cn(ve.read(),function U(ie){if(!T&&!ie.rejected){var w=ie[ta];if(!w.done)return y[Be](w[ta]),M+=w.value[we],cn(ve.read(),U);for(var H=new Uint8Array(M),Y=0,Q=0,Ee=y;Q<Ee.length;Q++){var Ye=Ee[Q];H.set(Ye,Y),Y+=Ye[we]}j[xn]=H,j[cu]["Content-Encoding"]="gzip",j._chunkCount=y[we]}T||(T=!0,E(j))}),ve}catch{E(j);return}};function C(E,D){b(D,200,{},E)}function A(E,D){Z(i,2,26,"Failed to send telemetry.",{message:E}),b(D,400,{})}function V(E){A("No endpoint url is provided for the batch",E)}function z(E,D){for(var j=0,x=null,O=0;x==null&&O<E[we];)j=E[O],!f&&j===1?SA()?x=q:Eu()&&(x=k):j===2&&Zh(D)&&(!D||!h)?x=P:j===3&&tl()&&(D?!p:!d)&&(x=B),O++;return x?{_transport:j,_isSync:D,sendPOST:x}:null}function b(E,D,j,x){try{E&&E(D,j,x)}catch{}}function I(E,D){var j=Jn(),x=E[Xs];if(!x)return V(D),!0;x=E[Xs]+(m?SS:Yn);var O=E[xn],re=a?O:new Blob([O],{type:"text/plain;charset=UTF-8"}),ue=j.sendBeacon(x,re);return ue}function B(E,D,j){var x=E[xn];try{if(x)if(I(E,D))C(Yn,D);else{var O=s&&s.beaconOnRetry;O&&Se(O)?O(E,D,I):(u&&u.sendPOST(E,D,!0),Z(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(re){a&&ca(i,"Failed to send telemetry using sendBeacon API. Ex:"+se(re)),b(D,a?0:400,{},Yn)}}function k(E,D,j){var x,O,re,ue=E[cu]||{};!j&&n&&(x=hi(function(T,U){O=T,re=U})),a&&j&&E.disableXhrSync&&(j=!1);var ve=E[Xs];if(!ve){V(D),O&&O(!1);return}var y=iA(kp,ve,S,!0,j,E[Eo]);a||y.setRequestHeader("Content-type","application/json"),oe(Ar(ue),function(T){y.setRequestHeader(T,ue[T])}),y.onreadystatechange=function(){a||(M(y),y.readyState===4&&O&&O(!0))},y.onload=function(){a&&M(y)};function M(T){var U=s&&s.xhrOnComplete,ie=U&&Se(U);if(ie)U(T,D,E);else{var w=yu(T);b(D,T[$r],jh(T,a),w)}}return y.onerror=function(T){b(D,a?y[$r]:400,jh(y,a),a?Yn:Su(y)),re&&re(T)},y.ontimeout=function(){b(D,a?y[$r]:500,jh(y,a),a?Yn:Su(y)),O&&O(!1)},y.send(E[xn]),x}function P(E,D,j){var x,O=E[Xs],re=E[xn],ue=a?re:new Blob([re],{type:"application/json"}),ve,y,M,T=new Headers,U=re[we],ie=!1,w=!1,H=E[cu]||{},Y=(x={method:kp,body:ue},x[Uy]=!0,x);E.headers&&Ar(E.headers)[we]>0&&(oe(Ar(H),function(fe){T.append(fe,H[fe])}),Y[cu]=T),c?Y.credentials=c:S&&a&&(Y.credentials="include"),j&&(Y.keepalive=!0,t+=U,a?E._sendReason===2&&(ie=!0,m&&(O+=SS)):ie=!0);var Q=new Request(O,Y);try{Q[Uy]=!0}catch{}if(!j&&n&&(ve=hi(function(fe,ce){y=fe,M=ce})),!O){V(D),y&&y(!1);return}function Ee(fe,ce){ce?b(D,a?0:ce,{},a?Yn:fe):b(D,a?0:400,{},a?Yn:fe)}function Ye(fe,ce,Ae){var Mt=fe[$r],Je=s.fetchOnComplete;Je&&Se(Je)?Je(fe,D,Ae||Yn,ce):b(D,Mt,{},Ae||Yn)}try{cn(fetch(a?O:Q,a?Y:null),function(fe){if(j&&(t-=U,U=0),!w)if(w=!0,fe.rejected)Ee(fe.reason&&fe.reason[ia],499),M&&M(fe.reason);else{var ce=fe[ta];try{!a&&!ce.ok?(ce[$r]?Ee(ce.statusText,ce[$r]):Ee(ce.statusText,499),y&&y(!1)):a&&!ce.body?(Ye(ce,null,Yn),y&&y(!0)):cn(ce.text(),function(Ae){Ye(ce,E,Ae[ta]),y&&y(!0)})}catch(Ae){ce&&ce[$r]?Ee(se(Ae),ce[$r]):Ee(se(Ae),499),M&&M(Ae)}}})}catch(fe){w||(Ee(se(fe),499),M&&M(fe))}return ie&&!w&&(w=!0,b(D,200,{}),y&&y(!0)),a&&!w&&E[Eo]>0&&v&&v.set(function(){w||(w=!0,b(D,500,{}),y&&y(!0))},E[Eo]),ve}function q(E,D,j){var x=sn(),O=new XDomainRequest,re=E[xn];O.onload=function(){var T=yu(O),U=s&&s.xdrOnComplete;U&&Se(U)?U(O,D,E):b(D,200,{},T)},O.onerror=function(){b(D,400,{},a?Yn:Ny(O))},O.ontimeout=function(){b(D,500,{})},O.onprogress=function(){};var ue=x&&x.location&&x.location.protocol||"",ve=E[Xs];if(!ve){V(D);return}if(!a&&ve.lastIndexOf(ue,0)!==0){var y="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Z(i,2,40,". "+y),A(y,D);return}var M=a?ve:ve[aa](/^(https?:)/,"");O.open(kp,M),E[Eo]&&(O[Eo]=E[Eo]),O.send(re),a&&j?v&&v.set(function(){O.send(re)},0):O.send(re)}function te(){t=0,r=!1,n=!1,i=null,a=null,s=null,l=null,c=null,u=null,f=!1,d=!1,p=!1,h=!1,m=!1,v=null}})}return e.__ieDyn=1,e}(),ES="on",TS="attachEvent",NS="addEventListener",wS="detachEvent",bS="removeEventListener",Cp="events",Ip="visibilitychange",Lu="pagehide",DS="unload",kS="beforeunload",CS=Tn("aiEvtPageHide");Tn("aiEvtPageShow");var xM=/\.[\.]+/g,VM=/[\.]+$/,LM=1,Fu=Vy("events"),FM=/^([^.]*)(?:\.(.+)|)/;function IS(e){return e&&e[aa]?e[aa](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Fe):e}function Rp(e,t){if(t){var n=Fe;ke(t)?(n=Fe,oe(t,function(i){i=IS(i),i&&(i[0]!=="."&&(i="."+i),n+=i)})):n=IS(t),n&&(n[0]!=="."&&(n="."+n),e=(e||Fe)+n)}var r=FM.exec(e||Fe)||[];return{type:r[1],ns:(r[2]||Fe).replace(xM,".").replace(VM,Fe)[yo](".").sort().join(".")}}function RS(e,t,n){n===void 0&&(n=!0);var r=Fu.get(e,Cp,{},n),i=r[t];return i||(i=r[t]=[]),i}function OS(e,t,n,r){e&&t&&t[di]&&(e[bS]?e[bS](t[di],n,r):e[wS]&&e[wS](ES+t[di],n))}function YM(e,t,n,r){var i=!1;return e&&t&&t[di]&&n&&(e[NS]?(e[NS](t[di],n,r),i=!0):e[TS]&&(e[TS](ES+t[di],n),i=!0)),i}function PS(e,t,n,r){for(var i=t[we];i--;){var a=t[i];a&&(!n.ns||n.ns===a[ly].ns)&&(!r||r(a))&&(OS(e,a[ly],a.handler,a.capture),t[_o](i,1))}}function $M(e,t,n){if(t[di])PS(e,RS(e,t[di]),t,n);else{var r=Fu.get(e,Cp,{});Me(r,function(i,a){PS(e,a,t,n)}),Ar(r)[we]===0&&Fu.kill(e,Cp)}}function Si(e,t){var n;return t?(ke(t)?n=[e].concat(t):n=[e,t],n=Rp("xx",n).ns[yo](".")):n=e,n}function Br(e,t,n,r,i){i===void 0&&(i=!1);var a=!1;if(e)try{var s=Rp(t,r);if(a=YM(e,s,n,i),a&&Fu.accept(e)){var l={guid:LM++,evtName:s,handler:n,capture:i};RS(e,s.type)[Be](l)}}catch{}return a}function Po(e,t,n,r,i){if(i===void 0&&(i=!1),e)try{var a=Rp(t,r),s=!1;$M(e,a,function(l){return a.ns&&!n||l.handler===n?(s=!0,!0):!1}),s||OS(e,a,n,i)}catch{}}function BM(e,t,n){var r=!1,i=sn();i&&(r=Br(i,e,t,n),r=Br(i.body,e,t,n)||r);var a=Ot();return a&&(r=Br(a,e,t,n)||r),r}function UM(e,t,n){var r=sn();r&&(Po(r,e,t,n),Po(r.body,e,t,n));var i=Ot();i&&Po(i,e,t,n)}function Yu(e,t,n,r){var i=!1;return t&&e&&e[we]>0&&oe(e,function(a){a&&(!n||Ft(n,a)===-1)&&(i=BM(a,t,r)||i)}),i}function HM(e,t,n,r){var i=!1;return t&&e&&ke(e)&&(i=Yu(e,t,n,r),!i&&n&&n[we]>0&&(i=Yu(e,t,null,r))),i}function Op(e,t,n){e&&ke(e)&&oe(e,function(r){r&&UM(r,t,n)})}function GM(e,t,n){return HM([kS,DS,Lu],e,t,n)}function WM(e,t){Op([kS,DS,Lu],e,t)}function Pp(e,t,n){function r(s){var l=Ot();e&&l&&l.visibilityState==="hidden"&&e(s)}var i=Si(CS,n),a=Yu([Lu],e,t,i);return(!t||Ft(t,Ip)===-1)&&(a=Yu([Ip],r,t,i)||a),!a&&t&&(a=Pp(e,null,n)),a}function jM(e,t){var n=Si(CS,t);Op([Lu],e,n),Op([Ip],null,n)}var AS="_aiHooks",MS=["req","rsp","hkErr","fnErr"];function Ap(e,t){if(e)for(var n=0;n<e[we]&&!t(e[n],n);n++);}function Mp(e,t,n,r,i){i>=0&&i<=2&&Ap(e,function(a,s){var l=a.cbks,c=l[MS[i]];if(c){t.ctx=function(){var d=r[s]=r[s]||{};return d};try{c[Qi](t.inst,n)}catch(d){var u=t.err;try{var f=l[MS[2]];f&&(t.err=d,f[Qi](t.inst,n))}catch{}finally{t.err=u}}}})}function zM(e){return function(){var t=this,n=arguments,r=e.h,i={name:e.n,inst:t,ctx:null,set:c},a=[],s=l([i],n);i.evt=ot("event");function l(f,d){return Ap(d,function(p){f[Be](p)}),f}function c(f,d){n=l([],n),n[f]=d,s=l([i],n)}Mp(r,i,s,a,0);var u=e.f;if(u)try{i.rslt=u[Qi](t,n)}catch(f){throw i.err=f,Mp(r,i,s,a,3),f}return Mp(r,i,s,a,1),i.rslt}}function xp(e,t,n,r){var i=null;return e&&(gn(e,t)?i=e:n&&(i=xp(ZP(e),t,r,!1))),i}function KM(e,t,n){return e?Vp(e[Qn],t,n,!1):null}function xS(e,t,n,r){var i=n&&n[AS];if(!i){i={i:0,n:t,f:n,h:[]};var a=zM(i);a[AS]=i,e[t]=a}var s={id:i.i,cbks:r,rm:function(){var l=this.id;Ap(i.h,function(c,u){if(c.id===l)return i.h[_o](u,1),1})}};return i.i++,i.h[Be](s),s}function Vp(e,t,n,r,i){if(r===void 0&&(r=!0),e&&t&&n){var a=xp(e,t,r,i);if(a){var s=a[t];if(typeof s===ey)return xS(a,t,s,n)}}return null}function $u(e,t,n,r,i){if(e&&t&&n){var a=xp(e,t,r,i)||e;if(a)return xS(a,t,a[t],n)}return null}var ha="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",VS="sampleRate",Lp="ProcessLegacy",LS="http.method",Fp="https://dc.services.visualstudio.com",Ao="/v2/track",or="not_specified",Yp="iKey",Xe=MP({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Mo="split",De="length",fl="toLowerCase",pa="ingestionendpoint",dl="toString",$p="removeItem",hl="message",xo="count",Bp="preTriggerDate",Up="getUTCDate",Bu="stringify",Hp="pathname",pl="match",FS="correlationHeaderExcludePatterns",sr="name",lr="properties",Ur="measurements",Uu="sizeInBytes",Hu="typeName",ml="exceptions",vl="severityLevel",Gp="problemGroup",Vo="parsedStack",Gu="hasFullStack",Wu="assembly",Hr="fileName",Lo="line",ju="aiDataContract",zu="duration";function YS(e,t,n){var r=t[De],i=qM(e,t);if(i[De]!==r){for(var a=0,s=i;n[s]!==void 0;)a++,s=Xn(i,0,147)+QM(a);i=s}return i}function qM(e,t){var n;return t&&(t=Ze(Gt(t)),t[De]>150&&(n=Xn(t,0,150),Z(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function Et(e,t,n){n===void 0&&(n=1024);var r;return t&&(n=n||1024,t=Ze(Gt(t)),t[De]>n&&(r=Xn(t,0,n),Z(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ku(e,t){return BS(e,t,2048,66)}function $S(e,t){var n;return t&&t[De]>32768&&(n=Xn(t,0,32768),Z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function XM(e,t){var n;if(t){var r=""+t;r[De]>32768&&(n=Xn(r,0,32768),Z(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function ma(e,t){if(t){var n={};Me(t,function(r,i){if(en(i)&&el())try{i=Vn()[Bu](i)}catch(a){Z(e,2,49,"custom property is not valid",{exception:a},!0)}i=Et(e,i,8192),r=YS(e,r,n),n[r]=i}),t=n}return t}function va(e,t){if(t){var n={};Me(t,function(r,i){r=YS(e,r,n),n[r]=i}),t=n}return t}function JM(e,t){return t&&BS(e,t,128,69)[dl]()}function BS(e,t,n,r){var i;return t&&(t=Ze(Gt(t)),t[De]>n&&(i=Xn(t,0,n),Z(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),i||t}function QM(e){var t="00"+e;return li(t,t[De]-3)}var US=Ot()||{},HS=0,ZM=[null,null,null,null,null];function Wp(e){var t=HS,n=ZM,r=n[t];return US.createElement?n[t]||(r=n[t]=US.createElement("a")):r={host:nx(e)},r.href=e,t++,t>=n[De]&&(t=0),HS=t,r}function ex(e){var t,n=Wp(e);return n&&(t=n.href),t}function tx(e,t){return e?e.toUpperCase()+" "+t:t}function nx(e,t){var n=GS(e)||"";if(n){var r=n[pl](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>3&&ye(r[2])&&r[2][De]>0)return r[2]+(r[3]||"")}return n}function GS(e,t){var n=null;if(e){var r=e[pl](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>2&&ye(r[2])&&r[2][De]>0&&(n=r[2]||"",r[De]>2)){var i=(r[1]||"")[fl](),a=r[3]||"";(i==="http"&&a===":80"||i==="https"&&a===":443")&&(a=""),n+=a}}return n}var rx=[Fp+Ao,"https://breeze.aimon.applicationinsights.io"+Ao,"https://dc-int.services.visualstudio.com"+Ao],ix="cid-v1:";function jp(e){return Ft(rx,e[fl]())!==-1}function WS(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[FS]){for(var r=0;r<e.correlationHeaderExcludePatterns[De];r++)if(e[FS][r].test(t))return!1}var i=Wp(t).host[fl]();if(i&&(jt(i,":443")!==-1||jt(i,":80")!==-1)&&(i=(GS(t)||"")[fl]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a=e&&e.correlationHeaderDomains;if(a){var s;if(oe(a,function(u){var f=new RegExp(u.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));s=s||f.test(i)}),!s)return!1}var l=e&&e.correlationHeaderExcludedDomains;if(!l||l[De]===0)return!0;for(var r=0;r<l[De];r++){var c=new RegExp(l[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(c.test(i))return!1}return i&&i[De]>0}function jS(e){if(e){var t=ax(e,Xe[1]);if(t&&t!==ix)return t}}function ax(e,t){if(e)for(var n=e[Mo](","),r=0;r<n[De];++r){var i=n[r][Mo]("=");if(i[De]===2&&i[0]===t)return i[1]}}function ox(e,t,n,r){var i,a=r,s=r;if(t&&t[De]>0){var l=Wp(t);if(i=l.host,!a)if(l[Hp]!=null){var c=l.pathname[De]===0?"/":l[Hp];c.charAt(0)!=="/"&&(c="/"+c),s=l[Hp],a=Et(e,n?n+" "+c:c)}else a=Et(e,t)}else i=r,a=r;return{target:i,name:a,data:s}}function qu(){var e=xr();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Mn()}function tn(e,t){var n=null;return e!==0&&t!==0&&!K(e)&&!K(t)&&(n=t-e),n}function zp(e,t){var n=e||{};return{getName:function(){return n[sr]},setName:function(r){t&&t.setName(r),n[sr]=r},getTraceId:function(){return n.traceID},setTraceId:function(r){t&&t.setTraceId(r),gp(r)&&(n.traceID=r)},getSpanId:function(){return n.parentID},setSpanId:function(r){t&&t.setSpanId(r),yp(r)&&(n.parentID=r)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(r){t&&t.setTraceFlags(r),n.traceFlags=r}}}var _l=iy({LocalStorage:0,SessionStorage:1}),Ei=void 0,Ti=void 0,zS="";function Kp(){return Ju()?Xu(_l.LocalStorage):null}function Xu(e){try{if(K(Sn()))return null;var t=new Date()[dl](),n=ot(e===_l.LocalStorage?"localStorage":"sessionStorage"),r=zS+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[$p](r),!i)return n}catch{}return null}function qp(){return gl()?Xu(_l.SessionStorage):null}function sx(){Ei=!1,Ti=!1}function Xp(e){zS=e||""}function lx(){Ei=Ju(!0),Ti=gl(!0)}function Ju(e){return(e||Ei===void 0)&&(Ei=!!Xu(_l.LocalStorage)),Ei}function KS(e,t){var n=Kp();if(n!==null)try{return n.getItem(t)}catch(r){Ei=!1,Z(e,2,1,"Browser failed read of local storage. "+je(r),{exception:se(r)})}return null}function qS(e,t,n){var r=Kp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ei=!1,Z(e,2,3,"Browser failed write to local storage. "+je(i),{exception:se(i)})}return!1}function cx(e,t){var n=Kp();if(n!==null)try{return n[$p](t),!0}catch(r){Ei=!1,Z(e,2,5,"Browser failed removal of local storage item. "+je(r),{exception:se(r)})}return!1}function gl(e){return(e||Ti===void 0)&&(Ti=!!Xu(_l.SessionStorage)),Ti}function Jp(e,t){var n=qp();if(n!==null)try{return n.getItem(t)}catch(r){Ti=!1,Z(e,2,2,"Browser failed read of session storage. "+je(r),{exception:se(r)})}return null}function XS(e,t,n){var r=qp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ti=!1,Z(e,2,4,"Browser failed write to session storage. "+je(i),{exception:se(i)})}return!1}function JS(e,t){var n=qp();if(n!==null)try{return n[$p](t),!0}catch(r){Ti=!1,Z(e,2,6,"Browser failed removal of session storage item. "+je(r),{exception:se(r)})}return!1}var ux="appInsightsThrottle",fx=function(){function e(t,n){var r=this,i,a,s,l,c,u,f,d=!1,p=!1;m(),r._getDbgPlgTargets=function(){return[f]},r.getConfig=function(){return s},r.canThrottle=function(E){var D=P(E),j=v(E);return S(j,i,D)},r.isTriggered=function(E){return q(E)},r.isReady=function(){return d},r.flush=function(E){try{var D=te(E);if(D&&D[De]>0){var j=D.slice(0);return f[E]=[],oe(j,function(x){h(x.msgID,x[hl],x.severity,!1)}),!0}}catch{}return!1},r.flushAll=function(){try{if(f){var E=!0;return Me(f,function(D){var j=r.flush(parseInt(D));E=E&&j}),E}}catch{}return!1},r.onReadyState=function(E,D){return D===void 0&&(D=!0),d=K(E)?!0:E,d&&D?r.flushAll():null},r.sendMessage=function(E,D,j){return h(E,D,j,!0)};function h(E,D,j,x){if(d){var O=k(E);if(!O)return;var re=v(E),ue=P(E),ve=S(re,i,ue),y=!1,M=0,T=q(E);try{ve&&!T?(M=kg(re.limit.maxSendNumber,ue[xo]+1),ue[xo]=0,y=!0,c[E]=!0,ue[Bp]=new Date):(c[E]=ve,ue[xo]+=1);var U=C(E);b(a,U,ue);for(var ie=0;ie<M;ie++)B(E,a,D,j)}catch{}return{isThrottled:y,throttleNum:M}}else if(x){var w=te(E);w.push({msgID:E,message:D,severity:j})}return null}function m(){a=la(t),c={},l={},f={},s={},_(109),u=sa(n)?n:"",t.addUnloadHook(mt(t.config,function(E){var D=E.cfg;i=Ju();var j=D.throttleMgrCfg||{};Me(j,function(x,O){_(parseInt(x),O)})}))}function v(E){return s[E]||s[109]}function _(E,D){var j,x;try{var O=D||{},re={};re.disabled=!!O.disabled;var ue=O.interval||{};p=(ue==null?void 0:ue.daysOfMonth)&&(ue==null?void 0:ue.daysOfMonth[De])>0,re.interval=g(ue);var ve={samplingRate:((j=O.limit)===null||j===void 0?void 0:j.samplingRate)||100,maxSendNumber:((x=O.limit)===null||x===void 0?void 0:x.maxSendNumber)||1};re.limit=ve,s[E]=re}catch{}}function g(E){E=E||{};var D=E==null?void 0:E.monthInterval,j=E==null?void 0:E.dayInterval;return K(D)&&K(j)&&(E.monthInterval=3,p||(E.daysOfMonth=[28],p=!0)),E={monthInterval:E==null?void 0:E.monthInterval,dayInterval:E==null?void 0:E.dayInterval,daysOfMonth:E==null?void 0:E.daysOfMonth},E}function S(E,D,j){if(E&&!E.disabled&&D&&sa(j)){var x=z(),O=j.date,re=E.interval,ue=1;if(re!=null&&re.monthInterval){var ve=(x.getUTCFullYear()-O.getUTCFullYear())*12+x.getUTCMonth()-O.getUTCMonth();ue=I(re.monthInterval,0,ve)}var y=1;if(p)y=Ft(re.daysOfMonth,x[Up]());else if(re!=null&&re.dayInterval){var M=ln((x.getTime()-O.getTime())/864e5);y=I(re.dayInterval,0,M)}return ue>=0&&y>=0}return!1}function C(E,D){var j=sa(D)?D:"";return E?ux+j+"-"+E:null}function A(E){try{if(E){var D=new Date;return E.getUTCFullYear()===D.getUTCFullYear()&&E.getUTCMonth()===D.getUTCMonth()&&E[Up]()===D[Up]()}}catch{}return!1}function V(E,D,j){try{var x={date:z(),count:0};if(E){var O=JSON.parse(E),re={date:z(O.date)||x.date,count:O[xo]||x[xo],preTriggerDate:O.preTriggerDate?z(O[Bp]):void 0};return re}else return b(D,j,x),x}catch{}return null}function z(E){try{if(E){var D=new Date(E);if(!isNaN(D.getDate()))return D}else return new Date}catch{}return null}function b(E,D,j){try{return qS(E,D,Ze(JSON[Bu](j)))}catch{}return!1}function I(E,D,j){return E<=0?1:j>=D&&(j-D)%E==0?ln((j-D)/E)+1:-1}function B(E,D,j,x){Z(D,x||1,E,j)}function k(E){try{var D=v(E);return DA(1e6)<=D.limit.samplingRate}catch{}return!1}function P(E){try{var D=l[E];if(!D){var j=C(E,u);D=V(KS(a,j),a,j),l[E]=D}return l[E]}catch{}return null}function q(E){var D=c[E];if(K(D)){D=!1;var j=P(E);j&&(D=A(j[Bp])),c[E]=D}return c[E]}function te(E){return f=f||{},K(f[E])&&(f[E]=[]),f[E]}}return e}(),dx=";",hx="=";function QS(e){if(!e)return{};var t=e[Mo](dx),n=tP(t,function(i,a){var s=a[Mo](hx);if(s[De]===2){var l=s[0][fl](),c=s[1];i[l]=c}return i},{});if(Ar(n)[De]>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n[pa]=n[pa]||"https://"+r+"dc."+n.endpointsuffix}n[pa]=n[pa]||Fp,zg(n[pa],"/")&&(n[pa]=n[pa].slice(0,-1))}return n}var px=function(){function e(t,n,r){var i=this,a=this;a.ver=1,a.sampleRate=100,a.tags={},a[sr]=Et(t,r)||or,a.data=n,a.time=bo(new Date),a[ju]={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return e}(),Ni=function(){function e(t,n,r,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[sr]=Et(t,n)||or,a[lr]=ma(t,r),a[Ur]=va(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),mx=58,vx=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,_x=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,gx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,yx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,Sx=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,Ex=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,Tx=/([^\(\s\n]+):([0-9]+)$/,ZS="<no_method>",Fo="error",wn="stack",Qp="stackDetails",e0="errorSrc",Zp="message",t0="description",n0=[{re:_x,len:5,m:1,fn:2,ln:3,col:4},{chk:wx,pre:Nx,re:gx,len:4,m:1,fn:2,ln:3},{re:yx,len:3,m:1,fn:2,hdl:l0},{re:Sx,len:2,fn:1,hdl:l0}];function Nx(e){return e.replace(/(\(anonymous\))/,"<anonymous>")}function wx(e){return jt(e,"[native")<0}function em(e,t){var n=e;return n&&!ye(n)&&(JSON&&JSON[Bu]?(n=JSON[Bu](e),t&&(!n||n==="{}")&&(Se(e[dl])?n=e[dl]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function r0(e,t){var n=e;return e&&(n&&!ye(n)&&(n=e[Zp]||e[t0]||n),n&&!ye(n)&&(n=em(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&jt(n||"",t)===-1&&(n=t+": "+n),n||""}function bx(e){try{if(en(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function Dx(e){try{if(en(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function i0(e){return e&&e.src&&ye(e.src)&&e.obj&&ke(e.obj)}function _a(e){var t=e||"";ye(t)||(ye(t[wn])?t=t[wn]:t=""+t);var n=t[Mo](`
|
|
60
|
+
`);return{src:t,obj:n}}function kx(e){for(var t=[],n=e[Mo](`
|
|
61
|
+
`),r=0;r<n[De];r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}function a0(e){var t=null;if(e)try{if(e[wn])t=_a(e[wn]);else if(e[Fo]&&e[Fo][wn])t=_a(e[Fo][wn]);else if(e.exception&&e.exception[wn])t=_a(e.exception[wn]);else if(i0(e))t=e;else if(i0(e[Qp]))t=e[Qp];else if(sn()&&sn().opera&&e[Zp])t=kx(e[hl]);else if(e.reason&&e.reason[wn])t=_a(e.reason[wn]);else if(ye(e))t=_a(e);else{var n=e[Zp]||e[t0]||"";ye(e[e0])&&(n&&(n+=`
|
|
62
|
+
`),n+=" from "+e[e0]),n&&(t=_a(n))}}catch(r){t=_a(r)}return t||{src:"",obj:null}}function Cx(e){var t="";return e&&(e.obj?t=e.obj.join(`
|
|
63
|
+
`):t=e.src||""),t}function Ix(e){var t,n=e.obj;if(n&&n[De]>0){t=[];var r=0,i=!1,a=0;oe(n,function(v){if(i||Ax(v)){var _=Gt(v);i=!0;var g=Mx(_,r);g&&(a+=g[Uu],t.push(g),r++)}});var s=32*1024;if(a>s)for(var l=0,c=t[De]-1,u=0,f=l,d=c;l<c;){var p=t[l][Uu],h=t[c][Uu];if(u+=p+h,u>s){var m=d-f+1;t.splice(f,m);break}f=l,d=c,l++,c--}}return t}function Qu(e){var t="";if(e&&(t=e.typeName||e[sr]||"",!t))try{var n=/function (.{1,200})\(/,r=n.exec(e.constructor[dl]());t=r&&r[De]>1?r[1]:""}catch{}return t}function tm(e){if(e)try{if(!ye(e)){var t=Qu(e),n=em(e,!1);return(!n||n==="{}")&&(e[Fo]&&(e=e[Fo],t=Qu(e)),n=em(e,!0)),jt(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var bn=function(){function e(t,n,r,i,a,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var l=this;l.ver=2,Dx(n)?(l[ml]=n[ml]||[],l[lr]=n[lr],l[Ur]=n[Ur],n[vl]&&(l[vl]=n[vl]),n.id&&(l.id=n.id,n[lr].id=n.id),n[Gp]&&(l[Gp]=n[Gp]),K(n.isManual)||(l.isManual=n.isManual)):(r||(r={}),s&&(r.id=s),l[ml]=[o0(t,n,r)],l[lr]=ma(t,r),l[Ur]=va(t,i),a&&(l[vl]=a),s&&(l.id=s))}return e.CreateAutoException=function(t,n,r,i,a,s,l,c){var u=Qu(a||s||t);return{message:r0(t,u),url:n,lineNumber:r,columnNumber:i,error:tm(a||s||t),evt:tm(s||t),typeName:u,stackDetails:a0(l||a||s),errorSrc:c}},e.CreateFromInterface=function(t,n,r,i){var a=n[ml]&&Us(n[ml],function(l){return Px(t,l)}),s=new e(t,zt(zt({},n),{exceptions:a}),r,i);return s},e.prototype.toInterface=function(){var t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&Us(n,function(f){return f.toInterface()})||void 0;return{ver:"4.0",exceptions:u,severityLevel:a,properties:r,measurements:i,problemGroup:s,id:l,isManual:c}},e.CreateSimpleException=function(t,n,r,i,a,s){var l;return{exceptions:[(l={},l[Gu]=!0,l.message=t,l.stack=a,l.typeName=n,l)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=tm,e}(),Rx=An({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function Ox(){var e=this,t=ke(e[Vo])&&Us(e[Vo],function(r){return Vx(r)}),n={id:e.id,outerId:e.outerId,typeName:e[Hu],message:e[hl],hasFullStack:e[Gu],stack:e[wn],parsedStack:t||void 0};return n}function o0(e,t,n){var r,i,a,s,l,c,u,f;if(bx(t))s=t[Hu],l=t[hl],u=t[wn],f=t[Vo]||[],c=t[Gu];else{var d=t,p=d&&d.evt;Gd(d)||(d=d[Fo]||p||d),s=Et(e,Qu(d))||or,l=$S(e,r0(t||d,s))||or;var h=t[Qp]||a0(t);f=Ix(h),ke(f)&&Us(f,function(m){m[Wu]=Et(e,m[Wu]),m[Hr]=Et(e,m[Hr])}),u=XM(e,Cx(h)),c=ke(f)&&f[De]>0,n&&(n[Hu]=n[Hu]||s)}return r={},r[ju]=Rx,r.id=i,r.outerId=a,r.typeName=s,r.message=l,r[Gu]=c,r.stack=u,r.parsedStack=f,r.toInterface=Ox,r}function Px(e,t){var n=ke(t[Vo])&&Us(t[Vo],function(i){return xx(i)})||t[Vo],r=o0(e,zt(zt({},t),{parsedStack:n}));return r}function s0(e,t){var n=t[pl](Ex);if(n&&n[De]>=4)e[Hr]=n[1],e[Lo]=parseInt(n[2]);else{var r=t[pl](Tx);r&&r[De]>=3?(e[Hr]=r[1],e[Lo]=parseInt(r[2])):e[Hr]=t}}function l0(e,t,n){var r=e[Hr];t.fn&&n&&n[De]>t.fn&&(t.ln&&n[De]>t.ln?(r=Ze(n[t.fn]||""),e[Lo]=parseInt(Ze(n[t.ln]||""))||0):r=Ze(n[t.fn]||"")),r&&s0(e,r)}function Ax(e){var t=!1;if(e&&ye(e)){var n=Ze(e);n&&(t=vx.test(n))}return t}var c0=An({level:1,method:1,assembly:0,fileName:0,line:0});function Mx(e,t){var n,r;if(e&&ye(e)&&Ze(e)){r=(n={},n[ju]=c0,n.level=t,n.assembly=Ze(e),n.method=ZS,n.fileName="",n.line=0,n.sizeInBytes=0,n);for(var i=0;i<n0[De];){var a=n0[i];if(a.chk&&!a.chk(e))break;a.pre&&(e=a.pre(e));var s=e[pl](a.re);if(s&&s[De]>=a.len){a.m&&(r.method=Ze(s[a.m]||ZS)),a.hdl?a.hdl(r,a,s):a.fn&&(a.ln?(r[Hr]=Ze(s[a.fn]||""),r[Lo]=parseInt(Ze(s[a.ln]||""))||0):s0(r,s[a.fn]||""));break}i++}}return u0(r)}function xx(e){var t,n=(t={},t[ju]=c0,t.level=e.level,t.method=e.method,t.assembly=e[Wu],t.fileName=e[Hr],t.line=e[Lo],t.sizeInBytes=0,t);return u0(n)}function u0(e){var t=mx;return e&&(t+=e.method[De],t+=e.assembly[De],t+=e.fileName[De],t+=e.level.toString()[De],t+=e.line.toString()[De],e[Uu]=t),e}function Vx(e){return{level:e.level,method:e.method,assembly:e[Wu],fileName:e[Hr],line:e[Lo]}}var Lx=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),ga=function(){function e(t,n,r,i,a,s,l,c,u){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var d=new Lx;d[xo]=i>0?i:void 0,d.max=isNaN(s)||s===null?void 0:s,d.min=isNaN(a)||a===null?void 0:a,d[sr]=Et(t,n)||or,d.value=r,d.stdDev=isNaN(l)||l===null?void 0:l,f.metrics=[d],f[lr]=ma(t,c),f[Ur]=va(t,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),yl="";function wi(e){(isNaN(e)||e<0)&&(e=0),e=jg(e);var t=yl+e%1e3,n=yl+ln(e/1e3)%60,r=yl+ln(e/(1e3*60))%60,i=yl+ln(e/(1e3*60*60))%24,a=ln(e/(1e3*60*60*24));return t=t[De]===1?"00"+t:t[De]===2?"0"+t:t,n=n[De]<2?"0"+n:n,r=r[De]<2?"0"+r:r,i=i[De]<2?"0"+i:i,(a>0?a+".":yl)+i+":"+r+":"+n+"."+t}function Fx(e,t,n,r,i){return!i&&ye(e)&&(e==="Script error."||e==="Script error")}var bi=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var c=this;c.ver=2,c.id=JM(t,l),c.url=Ku(t,r),c[sr]=Et(t,n)||or,isNaN(i)||(c[zu]=wi(i)),c[lr]=ma(t,a),c[Ur]=va(t,s)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),ya=function(){function e(t,n,r,i,a,s,l,c,u,f,d,p){u===void 0&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var h=this;h.ver=2,h.id=n,h[zu]=wi(a),h.success=s,h.resultCode=l+"",h.type=Et(t,u);var m=ox(t,r,c,i);h.data=Ku(t,i)||m.data,h.target=Et(t,m.target),f&&(h.target="".concat(h.target," | ").concat(f)),h[sr]=Et(t,m[sr]),h[lr]=ma(t,d),h[Ur]=va(t,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Yo=function(){function e(t,n,r,i,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var s=this;s.ver=2,n=n||or,s[hl]=$S(t,n),s[lr]=ma(t,i),s[Ur]=va(t,a),r&&(s[vl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),$o=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var c=this;c.ver=2,c.url=Ku(t,r),c[sr]=Et(t,n)||or,c[lr]=ma(t,a),c[Ur]=va(t,s),l&&(c.domProcessing=l.domProcessing,c[zu]=l[zu],c.networkConnect=l.networkConnect,c.perfTotal=l.perfTotal,c.receivedResponse=l.receivedResponse,c.sentRequest=l.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Sa=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function Di(e){var t="ai."+e+".";return function(n){return t+n}}var Sl=Di("application"),wt=Di("device"),Zu=Di("location"),Bo=Di("operation"),nm=Di("session"),ki=Di("user"),Ea=Di("cloud"),El=Di("internal"),f0=function(e){Lr(t,e);function t(){return e.call(this)||this}return t}(tA({applicationVersion:Sl("ver"),applicationBuild:Sl("build"),applicationTypeId:Sl("typeId"),applicationId:Sl("applicationId"),applicationLayer:Sl("layer"),deviceId:wt("id"),deviceIp:wt("ip"),deviceLanguage:wt("language"),deviceLocale:wt("locale"),deviceModel:wt("model"),deviceFriendlyName:wt("friendlyName"),deviceNetwork:wt("network"),deviceNetworkName:wt("networkName"),deviceOEMName:wt("oemName"),deviceOS:wt("os"),deviceOSVersion:wt("osVersion"),deviceRoleInstance:wt("roleInstance"),deviceRoleName:wt("roleName"),deviceScreenResolution:wt("screenResolution"),deviceType:wt("type"),deviceMachineName:wt("machineName"),deviceVMName:wt("vmName"),deviceBrowser:wt("browser"),deviceBrowserVersion:wt("browserVersion"),locationIp:Zu("ip"),locationCountry:Zu("country"),locationProvince:Zu("province"),locationCity:Zu("city"),operationId:Bo("id"),operationName:Bo("name"),operationParentId:Bo("parentId"),operationRootId:Bo("rootId"),operationSyntheticSource:Bo("syntheticSource"),operationCorrelationVector:Bo("correlationVector"),sessionId:nm("id"),sessionIsFirst:nm("isFirst"),sessionIsNew:nm("isNew"),userAccountAcquisitionDate:ki("accountAcquisitionDate"),userAccountId:ki("accountId"),userAgent:ki("userAgent"),userId:ki("id"),userStoreRegion:ki("storeRegion"),userAuthUserId:ki("authUserId"),userAnonymousUserAcquisitionDate:ki("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ki("authUserAcquisitionDate"),cloudName:Ea("name"),cloudRole:Ea("role"),cloudRoleVer:Ea("roleVer"),cloudRoleInstance:Ea("roleInstance"),cloudEnvironment:Ea("environment"),cloudLocation:Ea("location"),cloudDeploymentUnit:Ea("deploymentUnit"),internalNodeName:El("nodeName"),internalSdkVersion:El("sdkVersion"),internalAgentVersion:El("agentVersion"),internalSnippet:El("snippet"),internalSdkSrc:El("sdkSrc")}));function Ci(e,t,n,r,i,a){n=Et(r,n)||or,(K(e)||K(t)||K(n))&&on("Input doesn't contain all required fields");var s="";e[Yp]&&(s=e[Yp],delete e[Yp]);var l={name:n,time:bo(new Date),iKey:s,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return K(i)||Me(i,function(c,u){l.data[c]=u}),l}var un={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},tt=new f0;function Tl(e){var t=null;if(Se(Event))t=new Event(e);else{var n=Ot();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function d0(e,t){Po(e,null,null,t)}function Yx(e){var t=Ot(),n=Jn(),r=!1,i=[],a=1;n&&!K(n.onLine)&&!n.onLine&&(a=2);var s=0,l=p(),c=Si(Tn("OfflineListener"),e);try{if(f(sn())&&(r=!0),t){var u=t.body||t;u.ononline&&f(u)&&(r=!0)}}catch{r=!1}function f(C){var A=!1;return C&&(A=Br(C,"online",v,c),A&&Br(C,"offline",_,c)),A}function d(){return l}function p(){return!(s===2||a===2)}function h(){var C=p();l!==C&&(l=C,oe(i,function(A){var V={isOnline:l,rState:a,uState:s};try{A(V)}catch{}}))}function m(C){s=C,h()}function v(){a=1,h()}function _(){a=2,h()}function g(){var C=sn();if(C&&r){if(d0(C,c),t){var A=t.body||t;dt(A.ononline)||d0(A,c)}r=!1}}function S(C){return i.push(C),{rm:function(){var A=i.indexOf(C);if(A>-1)return i.splice(A,1)}}}return{isOnline:d,isListening:function(){return r},unload:g,addListener:S,setOnlineState:m}}var ef="AppInsightsPropertiesPlugin",h0="AppInsightsChannelPlugin",p0="ApplicationInsightsAnalytics",tf="toString",rm="isStorageUseDisabled",Uo="_addHook",Pt="core",Ii="dataType",Ta="envelopeType",fn="diagLog",Na="track",nf="trackPageView",im="trackPreviousPageVisit",wa="sendPageViewInternal",Ho="startTime",Nl="properties",cr="duration",am="sendPageViewPerformanceInternal",om="populatePageViewPerformanceEvent",Go="href",m0="sendExceptionInternal",wl="error",sm="lineNumber",lm="columnNumber",cm="CreateAutoException",rf="addTelemetryInitializer",$x="overridePageViewDuration",um="autoExceptionInstrumented",v0="autoTrackPageVisitTime",_0="isBrowserLinkTrackingEnabled",bl="length",g0="enableAutoRouteTracking",y0="enableUnhandledPromiseRejectionTracking",fm="autoUnhandledPromiseInstrumented",dm="getEntriesByType",S0="isPerformanceTimingSupported",E0="getPerformanceTiming",af="navigationStart",hm="shouldCollectDuration",T0="isPerformanceTimingDataReady",Dl="responseStart",Bx="requestStart",of="loadEventEnd",pm="responseEnd",sf="connectEnd",Ux=function(){function e(t,n,r,i){et(e,this,function(a){var s=null,l=[],c=!1,u=!1,f;r&&(f=r.logger);function d(m){r&&r.flush(m,function(){})}function p(){s||(s=En(function(){s=null;var m=l.slice(0),v=!1;l=[],oe(m,function(_){_()?v=!0:l.push(_)}),l[bl]>0&&p(),v&&d(!0)},100))}function h(m){l.push(m),p()}a[nf]=function(m,v){var _=m.name;if(K(_)||typeof _!="string"){var g=Ot();_=m.name=g&&g.title||""}var S=m.uri;if(K(S)||typeof S!="string"){var C=ir();S=m.uri=C&&C[Go]||""}if(!u){var A=xr(),V=A&&A[dm]&&A[dm]("navigation");if(V&&V[0]&&!dt(A.timeOrigin)){var z=V[0].loadEventStart;m[Ho]=new Date(A.timeOrigin+z)}else{var b=(v||m[Nl]||{})[cr]||0;m[Ho]=new Date(new Date().getTime()-b)}u=!0}if(!i[S0]()){t[wa](m,v),d(!0),Mg()||Z(f,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var I=!1,B,k=i[E0]()[af];k>0&&(B=tn(k,+new Date),i[hm](B)||(B=void 0));var P;!K(v)&&!K(v[cr])&&(P=v[cr]),(n||!isNaN(P))&&(isNaN(P)&&(v||(v={}),v[cr]=B),t[wa](m,v),d(!0),I=!0);var q=6e4;v||(v={}),h(function(){var te=!1;try{if(i[T0]()){te=!0;var E={name:_,uri:S};i[om](E),!E.isValid&&!I?(v[cr]=B,t[wa](m,v)):(I||(v[cr]=E.durationMs,t[wa](m,v)),c||(t[am](E,v),c=!0))}else k>0&&tn(k,+new Date)>q&&(te=!0,I||(v[cr]=q,t[wa](m,v)))}catch(D){Z(f,1,38,"trackPageView failed on page load calculation: "+je(D),{exception:se(D)})}return te})},a.teardown=function(m,v){if(s){s.cancel(),s=null;var _=l.slice(0);l=[],oe(_,function(g){g()})}}})}return e.__ieDyn=1,e}(),Hx=36e5,N0=["googlebot","adsbot-google","apis-google","mediapartners-google"];function w0(){var e=xr();return e&&!!e.timing}function Gx(){var e=xr();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[bl]>0}function Wx(){var e=xr(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[af]>0&&t[Dl]>0&&t[Bx]>0&&t[of]>0&&t[pm]>0&&t[sf]>0&&t.domLoading>0}function b0(){return w0()?xr().timing:null}function jx(){return Gx()?xr()[dm]("navigation")[0]:null}function zx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Jn()||{},r=n.userAgent,i=!1;if(r)for(var a=0;a<N0[bl];a++)i=i||jt(r.toLowerCase(),N0[a])!==-1;if(i)return!1;for(var a=0;a<e[bl];a++)if(e[a]<0||e[a]>=Hx)return!1;return!0}var Kx=function(){function e(t){var n=la(t);et(e,this,function(r){r[om]=function(i){i.isValid=!1;var a=jx(),s=b0(),l=0,c=0,u=0,f=0,d=0;(a||s)&&(a?(l=a[cr],c=a[Ho]===0?a[sf]:tn(a[Ho],a[sf]),u=tn(a.requestStart,a[Dl]),f=tn(a[Dl],a[pm]),d=tn(a.responseEnd,a[of])):(l=tn(s[af],s[of]),c=tn(s[af],s[sf]),u=tn(s.requestStart,s[Dl]),f=tn(s[Dl],s[pm]),d=tn(s.responseEnd,s[of])),l===0?Z(n,2,10,"error calculating page view performance.",{total:l,network:c,request:u,response:f,dom:d}):r[hm](l,c,u,f,d)?l<ln(c)+ln(u)+ln(f)+ln(d)?Z(n,2,8,"client performance math error.",{total:l,network:c,request:u,response:f,dom:d}):(i.durationMs=l,i.perfTotal=i[cr]=wi(l),i.networkConnect=wi(c),i.sentRequest=wi(u),i.receivedResponse=wi(f),i.domProcessing=wi(d),i.isValid=!0):Z(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:l,network:c,request:u,response:f,dom:d}))},r[E0]=b0,r[S0]=w0,r[T0]=Wx,r[hm]=zx})}return e.__ieDyn=1,e}(),qx=function(){function e(t,n){var r="prevPageVisitData";et(e,this,function(i){i[im]=function(l,c){try{var u=a(l,c);u&&n(u.pageName,u.pageUrl,u.pageVisitTime)}catch(f){ca(t,"Auto track page visit time failed, metric will not be collected: "+se(f))}};function a(l,c){var u=null;try{if(u=s(),gl()){Jp(t,r)!=null&&on("Cannot call startPageVisit consecutively without first calling stopPageVisit");var f=Vn().stringify(new Xx(l,c));XS(t,r,f)}}catch(d){ca(t,"Call to restart failed: "+se(d)),u=null}return u}function s(){var l=null;try{if(gl()){var c=Mn(),u=Jp(t,r);u&&el()&&(l=Vn().parse(u),l.pageVisitTime=c-l.pageVisitStartTime,JS(t,r))}}catch(f){ca(t,"Stop page visit timer failed: "+se(f)),l=null}return l}Le(i,"_logger",{g:function(){return t}}),Le(i,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),Xx=function(){function e(t,n){this.pageVisitStartTime=Mn(),this.pageName=t,this.pageUrl=n}return e}(),D0=function(){function e(t,n){var r=this,i={};r.start=function(a){typeof i[a]<"u"&&Z(t,2,62,"start was called more than once for this event without calling stop.",{name:a,key:a},!0),i[a]=+new Date},r.stop=function(a,s,l,c){var u=i[a];if(isNaN(u))Z(t,2,63,"stop was called without a corresponding start.",{name:a,key:a},!0);else{var f=+new Date,d=tn(u,f);r.action(a,s,d,l,c)}delete i[a],i[a]=void 0}}return e}(),Xt,Jx="event";function kl(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Qx(e){if(e&&e.reason){var t=e.reason;return!ye(t)&&Se(t[tf])?t[tf]():se(t)}return e||""}var k0=6e4,Zx=Fs((Xt={sessionRenewalMs:Hy(C0,30*60*1e3),sessionExpirationMs:Hy(C0,24*60*60*1e3),disableExceptionTracking:St()},Xt[v0]=St(),Xt[$x]=St(),Xt[y0]=St(),Xt[fm]=!1,Xt.samplingPercentage=Du(eV,100),Xt[rm]=St(),Xt[_0]=St(),Xt[g0]=St(),Xt.namePrefix=HA(),Xt.enableDebug=St(),Xt.disableFlushOnBeforeUnload=St(),Xt.disableFlushOnUnload=St(!1,"disableFlushOnBeforeUnload"),Xt.expCfg=Ln({inclScripts:!1,expLog:void 0,maxLogs:50}),Xt));function C0(e,t){return e=e||t,e<k0&&(e=k0),+e}function eV(e){return!isNaN(e)&&e>0&&e<=100}function tV(e){dt(e[rm])||(e[rm]?sx():lx())}var nV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier=p0,n.priority=180,n.autoRoutePVDelay=500;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;return et(t,n,function(I,B){var k=B[Uo];ve(),I.getCookieMgr=function(){return pp(I[Pt])},I.processTelemetry=function(y,M){I.processNext(y,M)},I.trackEvent=function(y,M){try{var T=Ci(y,Ni[Ii],Ni[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(2,39,"trackTrace failed, trace will not be collected: "+je(U),{exception:se(U)})}},I.startTrackEvent=function(y){try{r.start(y)}catch(M){ue(1,29,"startTrackEvent failed, event will not be collected: "+je(M),{exception:se(M)})}},I.stopTrackEvent=function(y,M,T){try{r.stop(y,void 0,M,T)}catch(U){ue(1,30,"stopTrackEvent failed, event will not be collected: "+je(U),{exception:se(U)})}},I.trackTrace=function(y,M){try{var T=Ci(y,Yo[Ii],Yo[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(2,39,"trackTrace failed, trace will not be collected: "+je(U),{exception:se(U)})}},I.trackMetric=function(y,M){try{var T=Ci(y,ga[Ii],ga[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(1,36,"trackMetric failed, metric will not be collected: "+je(U),{exception:se(U)})}},I[nf]=function(y,M){try{var T=y||{};a[nf](T,zt(zt(zt({},T.properties),T.measurements),M)),S&&l[im](T.name,T.uri)}catch(U){ue(1,37,"trackPageView failed, page view will not be collected: "+je(U),{exception:se(U)})}},I[wa]=function(y,M,T){var U=Ot();if(U&&(y.refUri=y.refUri===void 0?U.referrer:y.refUri),K(y[Ho])){var ie=(M||y[Nl]||{})[cr]||0;y[Ho]=new Date(new Date().getTime()-ie)}var w=Ci(y,bi[Ii],bi[Ta],I[fn](),M,T);I[Pt][Na](w)},I[am]=function(y,M,T){var U=Ci(y,$o[Ii],$o[Ta],I[fn](),M,T);I[Pt][Na](U)},I.trackPageViewPerformance=function(y,M){var T=y||{};try{s[om](T),I[am](T,M)}catch(U){ue(1,37,"trackPageViewPerformance failed, page view will not be collected: "+je(U),{exception:se(U)})}},I.startTrackPage=function(y){try{if(typeof y!="string"){var M=Ot();y=M&&M.title||""}i.start(y)}catch(T){ue(1,31,"startTrackPage failed, page view may not be collected: "+je(T),{exception:se(T)})}},I.stopTrackPage=function(y,M,T,U){try{if(typeof y!="string"){var ie=Ot();y=ie&&ie.title||""}if(typeof M!="string"){var w=ir();M=w&&w[Go]||""}i.stop(y,M,T,U),S&&l[im](y,M)}catch(H){ue(1,32,"stopTrackPage failed, page view will not be collected: "+je(H),{exception:se(H)})}},I[m0]=function(y,M,T){var U=y&&(y.exception||y[wl])||Gd(y)&&y||{name:y&&typeof y,message:y||or};y=y||{};var ie=new bn(I[fn](),U,y[Nl]||M,y.measurements,y.severityLevel,y.id).toInterface(),w=Ot();if(w&&(C!=null&&C.inclScripts)){var H=dM(w);ie[Nl].exceptionScripts=JSON.stringify(H)}if(C!=null&&C.expLog){var Y=C.expLog();Y&&Y.logs&&ke(Y.logs)&&(ie[Nl].exceptionLog=Y.logs.slice(0,C.maxLogs).join(`
|
|
64
|
+
`))}var Q=Ci(ie,bn[Ii],bn[Ta],I[fn](),M,T);I[Pt][Na](Q)},I.trackException=function(y,M){y&&!y.exception&&y[wl]&&(y.exception=y[wl]);try{I[m0](y,M)}catch(T){ue(1,35,"trackException failed, exception will not be collected: "+je(T),{exception:se(T)})}},I._onerror=function(y){var M=y&&y[wl],T=y&&y.evt;try{if(!T){var U=sn();U&&(T=U[Jx])}var ie=y&&y.url||(Ot()||{}).URL,w=y.errorSrc||"window.onerror@"+ie+":"+(y[sm]||0)+":"+(y[lm]||0),H={errorSrc:w,url:ie,lineNumber:y[sm]||0,columnNumber:y[lm]||0,message:y.message};Fx(y.message,y.url,y.lineNumber,y.columnNumber,y[wl])?E(bn[cm]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ie,y[sm]||0,y[lm]||0,M,T,null,w),H):(y.errorSrc||(y.errorSrc=w),I.trackException({exception:y,severityLevel:3},H))}catch(Q){var Y=M?M.name+", "+M.message:"null";ue(1,11,"_onError threw exception while logging error, error will not be collected: "+je(Q),{exception:se(Q),errorString:Y})}},I[rf]=function(y){if(I[Pt])return I[Pt][rf](y);c||(c=[]),c.push(y)},I.initialize=function(y,M,T,U){if(!I.isInitialized()){K(M)&&on("Error initializing"),B.initialize(y,M,T,U);try{z=Si(Tn(I.identifier),M.evtNamespace&&M.evtNamespace()),c&&(oe(c,function(ie){M[rf](ie)}),c=null),P(y),s=new Kx(I[Pt]),a=new Ux(I,g.overridePageViewDuration,I[Pt],s),l=new qx(I[fn](),function(ie,w,H){return q(ie,w,H)}),r=new D0(I[fn](),"trackEvent"),r.action=function(ie,w,H,Y,Q){Y||(Y={}),Q||(Q={}),Y.duration=H[tf](),I.trackEvent({name:ie,properties:Y,measurements:Q})},i=new D0(I[fn](),"trackPageView"),i.action=function(ie,w,H,Y,Q){K(Y)&&(Y={}),Y.duration=H[tf]();var Ee={name:ie,uri:w,properties:Y,measurements:Q};I[wa](Ee,Y)},Hc()&&(D(),j())}catch(ie){throw I.setInitialized(!1),ie}}},I._doTeardown=function(y,M){a&&a.teardown(y,M),Po(window,null,null,z),ve()},I._getDbgPlgTargets=function(){return[b,m]};function P(y){var M=I.identifier,T=I[Pt];I[Uo](mt(y,function(){var U=Fn(null,y,T);g=U.getExtCfg(M,Zx),m=m||y[um]||g[um],C=g.expCfg,S=g[v0],y.storagePrefix&&Xp(y.storagePrefix),tV(g),u=g[_0],te()}))}function q(y,M,T){var U={PageName:y,PageUrl:M};I.trackMetric({name:"PageVisitTime",average:T,max:T,min:T,sampleCount:1},U)}function te(){if(!f&&u){var y=["/browserLinkSignalR/","/__browserLink/"],M=function(T){if(u&&T.baseType===ya[Ii]){var U=T.baseData;if(U){for(var ie=0;ie<y[bl];ie++)if(U.target&&jt(U.target,y[ie])>=0)return!1}}return!0};I[Uo](I[rf](M)),f=!0}}function E(y,M){var T=Ci(y,bn[Ii],bn[Ta],I[fn](),M);I[Pt][Na](T)}function D(){var y=sn(),M=ir(!0);I[Uo](mt(g,function(){h=g.disableExceptionTracking,!h&&!m&&!g[um]&&(k($u(y,"onerror",{ns:z,rsp:function(T,U,ie,w,H,Y){!h&&T.rslt!==!0&&I._onerror(bn[cm](U,ie,w,H,Y,T.evt))}},!1)),b++,m=!0)})),re(y,M)}function j(){var y=sn(),M=ir(!0);I[Uo](mt(g,function(){if(d=g[g0]===!0,y&&d&&!p&&XO()){var T=Ag();Se(T.pushState)&&Se(T.replaceState)&&typeof Event!==wh&&O(y,T,M)}}))}function x(){var y=null;if(I[Pt]&&I[Pt].getTraceCtx&&(y=I[Pt].getTraceCtx(!1)),!y){var M=I[Pt].getPlugin(ef);if(M){var T=M.plugin.context;T&&(y=zp(T.telemetryTrace))}}return y}function O(y,M,T){if(p)return;var U=g.namePrefix||"";function ie(){d&&kl(y,Tl(U+"locationchange"))}function w(){if(V&&(A=V),V=T&&T[Go]||"",d){var H=x();if(H){H.setTraceId(_i());var Y="_unknown_";T&&T.pathname&&(Y=T.pathname+(T.hash||"")),H.setName(Et(I[fn](),Y))}En((function(Q){I[nf]({refUri:Q,properties:{duration:0}})}).bind(I,A),I.autoRoutePVDelay)}}k($u(M,"pushState",{ns:z,rsp:function(){d&&(kl(y,Tl(U+"pushState")),kl(y,Tl(U+"locationchange")))}},!0)),k($u(M,"replaceState",{ns:z,rsp:function(){d&&(kl(y,Tl(U+"replaceState")),kl(y,Tl(U+"locationchange")))}},!0)),Br(y,U+"popstate",ie,z),Br(y,U+"locationchange",w,z),p=!0}function re(y,M){I[Uo](mt(g,function(){v=g[y0]===!0,m=m||g[fm],v&&!_&&(k($u(y,"onunhandledrejection",{ns:z,rsp:function(T,U){v&&T.rslt!==!0&&I._onerror(bn[cm](Qx(U),M?M[Go]:"",0,0,U,T.evt))}},!1)),b++,g[fm]=_=!0)}))}function ue(y,M,T,U,ie){I[fn]().throwInternal(y,M,T,U,ie)}function ve(){r=null,i=null,a=null,s=null,l=null,c=null,u=!1,f=!1,d=!1,p=!1,h=!1,m=!1,v=!1,_=!1,S=!1;var y=ir(!0);A=y&&y[Go]||"",V=null,z=null,g=null,b=0,Le(I,"config",{g:function(){return g}})}Le(I,"_pageViewManager",{g:function(){return a}}),Le(I,"_pageViewPerformanceManager",{g:function(){return s}}),Le(I,"_pageVisitTimeManager",{g:function(){return l}}),Le(I,"_evtNamespace",{g:function(){return"."+z}})}),n}return t.Version="3.3.7",t}(Oo),lf="featureOptIn",I0="scheduleFetchTimeout";function R0(e,t,n,r){try{var i=n>r;i&&(e=null);var a=n==0?pP({},e):e;return a&&t&&!i&&Me(a,function(s){var l=t[s];l&&(en(a[s])&&en(l)?a[s]=R0(a[s],l,++n,r):delete a[s])}),a}catch{}return e}var Wo="featureOptIn.",O0=".mode",P0=".onCfg",A0=".offCfg";function rV(e,t,n){var r;if(!t||!t.enabled)return null;var i=(t[lf]||{})[e]||{mode:1},a=i.mode,s=i.onCfg,l=i.offCfg,c=(n||{})[e]||{mode:2},u=c.mode,f=c.onCfg,d=c.offCfg,p=!!c.blockCdnCfg,h=Wo+e+O0,m=Wo+e+P0,v=Wo+e+A0,_=u,g=f,S=d;return p||(a===4||a===5?(_=a==4?3:2,g=s||f,S=l||d):a===2||u===2?(_=2,g=f||s,S=d||l):a===3?(_=3,g=f||s,S=d||l):a===1&&u===1&&(_=1)),r={},r[h]=_,r[m]=g,r[v]=S,r}function iV(e,t){try{if(!e||!e.enabled)return null;if(!e[lf])return e.config;var n=e[lf],r=e.config||{};return Me(n,function(i){var a=rV(i,e,t.config[lf]);K(a)||(Me(a,function(s,l){Wg(r,s,l)}),aV(i,a,r))}),r}catch{}return null}function aV(e,t,n){var r=t[Wo+e+O0],i=t[Wo+e+P0],a=t[Wo+e+A0],s=null;r===3&&(s=i),r===2&&(s=a),s&&Me(s,function(l,c){Wg(n,l,c)})}var Cl,oV="ai_cfgsync",M0="GET",sV=18e5,jo=void 0,lV={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},cV=Fs((Cl={syncMode:1,blkCdnCfg:jo,customEvtName:jo,cfgUrl:jo,overrideSyncFn:jo,overrideFetchFn:jo,onCfgChangeReceive:jo},Cl[I0]=sV,Cl.nonOverrideConfigs=lV,Cl.enableAjax=!1,Cl)),uV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C=!1,A;return et(t,n,function(V,z){b(),V.initialize=function(y,M,T,U){z.initialize(y,M,T,U),s=Si(Tn(V.identifier),M.evtNamespace&&M.evtNamespace()),I(y)},V.getCfg=function(){return i},V.pause=function(){C=!0,ve()},V.resume=function(){C=!1,ue()},V.setCfg=function(y){return B(y)},V.sync=function(y){return P(y)},V.updateEventListenerName=function(y){return q(y)},V._doTeardown=function(y,M){k(),ve(),b()},V._getDbgPlgTargets=function(){return[f,u,a,d,v]};function b(){i=null,a=null,s=null,l=null,u=null,f=null,v=null,c=null,p=null,h=null,d=null,A=!1,g=null,S=null,m=null}function I(y){var M=V.identifier,T=V.core;V._addHook(mt(y,function(){var U=Fn(null,y,T);r=U.getExtCfg(M,cV);var ie=d;d=!!r.blkCdnCfg,A=!!r.enableAjax,!K(ie)&&ie!==d&&(!d&&l?_&&_(l,j,f):ve()),K(u)&&(u=r.syncMode===2),K(f)&&(f=r.syncMode===1);var w=r.customEvtName||oV;a!==w&&(u?q(w):(k(),a=w)),K(l)&&(l=r.cfgUrl),l||(i=y,f&&P())})),S=r.overrideSyncFn,g=r.overrideFetchFn,m=r.onCfgChangeReceive,v=r.nonOverrideConfigs,p=r[I0],_=te(),h=0,l&&!d&&_&&_(l,j,f)}function B(y,M){if(y){if(i=y,M&&!C)return P();if(u&&!C)return V.core.updateCfg(y),!0}return!1}function k(){try{var y=Sn();y&&Po(y,null,null,s)}catch{}}function P(y){try{return S&&Se(S)?S(i,y):NA(a,i,y)}catch{}return!1}function q(y){try{return k(),y&&(a=y,O()),!0}catch{}return!1}function te(){var y=g;return K(y)&&(Zh()?y=E:Eu()&&(y=D)),y}function E(y,M,T){var U=Sn(),ie=U&&U.fetch||null;if(y&&ie&&Se(ie))try{var w={method:M0};A||(w[ha]=!0);var H=new Request(y,w);if(!A)try{H[ha]=!0}catch{}cn(fetch(H),function(Y){var Q=Y.value;Y.rejected?x(M,400):Q.ok?cn(Q.text(),function(Ee){x(M,Q.status,Ee.value,T)}):x(M,Q.status,null,T)})}catch{}}function D(y,M,T){try{var U=new XMLHttpRequest;A||(U[ha]=!0),U.open(M0,y),U.onreadystatechange=function(){U.readyState===XMLHttpRequest.DONE&&x(M,U.status,U.responseText,T)},U.onerror=function(){x(M,400)},U.ontimeout=function(){x(M,400)},U.send()}catch{}}function j(y,M,T){try{if(y>=200&&y<400&&M){h=0;var U=Vn();if(U){var ie=U.parse(M),w=iV(ie,V.core),H=w&&Wt(w)&&re(w);H&&B(H,T)}}else h++;h<3&&ue()}catch{}}function x(y,M,T,U){try{y(M,T,U)}catch{}}function O(){if(u){var y=Sn();if(y)try{Br(y,a,function(M){var T=M&&M.detail;if(m&&T)m(T);else{var U=T&&T.cfg,ie=U&&Wt(U)&&re(U);ie&&B(ie)}},s,!0)}catch{}}}function re(y,M){var T=null;try{y&&(T=R0(y,v,0,5))}catch{}return T}function ue(){!c&&p&&(c=En(function(){c=null,_(l,j,f)},p),c.unref())}function ve(){c&&c.cancel(),c=null,h=0}V.processTelemetry=function(y,M){V.processNext(y,M)}}),n}return t.__ieDyn=1,t}(Oo),ba="duration",At="tags",mm="deviceType",dn="data",Gr="name",Il="traceID",xe="length",Rl="stringify",Da="measurements",ur="dataType",ka="envelopeType",Ca="toString",Ia="enqueue",Ra="count",Wr="push",vm="emitLineDelimitedJson",zo="clear",cf="markAsSent",Ol="clearSent",_m="bufferOverride",Pl="BUFFER_KEY",Ri="SENT_BUFFER_KEY",Ko="concat",Al="MAX_BUFFER_SIZE",Ml="triggerSend",$t="diagLog",gm="initialize",xl="_sender",Vl="endpointUrl",Ll="instrumentationKey",ym="customHeaders",x0="maxBatchSizeInBytes",Sm="onunloadDisableBeacon",Em="isBeaconApiDisabled",V0="alwaysUseXhrOverride",L0="enableSessionStorageBuffer",fr="_buffer",F0="onunloadDisableFetch",Y0="disableSendBeaconSplit",uf="getSenderInst",Oa="_onError",Tm="_onPartialSuccess",ff="_onSuccess",Nm="itemsReceived",wm="itemsAccepted",bm="baseType",df="sampleRate",fV="getHashCodeScore",Dm="baseType",lt="baseData",kt="properties",$0="true";function vt(e,t,n){return Qe(e,t,n,Vc)}function dV(e,t,n){var r=n[At]=n[At]||{},i=t.ext=t.ext||{},a=t[At]=t[At]||[],s=i.user;s&&(vt(r,tt.userAuthUserId,s.authId),vt(r,tt.userId,s.id||s.localId));var l=i.app;l&&vt(r,tt.sessionId,l.sesId);var c=i.device;c&&(vt(r,tt.deviceId,c.id||c.localId),vt(r,tt[mm],c.deviceClass),vt(r,tt.deviceIp,c.ip),vt(r,tt.deviceModel,c.model),vt(r,tt[mm],c[mm]));var u=t.ext.web;if(u){vt(r,tt.deviceLanguage,u.browserLang),vt(r,tt.deviceBrowserVersion,u.browserVer),vt(r,tt.deviceBrowser,u.browser);var f=n[dn]=n[dn]||{},d=f[lt]=f[lt]||{},p=d[kt]=d[kt]||{};vt(p,"domain",u.domain),vt(p,"isManual",u.isManual?$0:null),vt(p,"screenRes",u.screenRes),vt(p,"userConsent",u.userConsent?$0:null)}var h=i.os;h&&(vt(r,tt.deviceOS,h[Gr]),vt(r,tt.deviceOSVersion,h.osVer));var m=i.trace;m&&(vt(r,tt.operationParentId,m.parentID),vt(r,tt.operationName,Et(e,m[Gr])),vt(r,tt.operationId,m[Il]));for(var v={},_=a[xe]-1;_>=0;_--){var g=a[_];Me(g,function(C,A){v[C]=A}),a.splice(_,1)}Me(a,function(C,A){v[C]=A});var S=zt(zt({},r),v);S[tt.internalSdkVersion]||(S[tt.internalSdkVersion]=Et(e,"javascript:".concat(hV.Version),64)),n[At]=Ey(S)}function Oi(e,t,n){K(e)||Me(e,function(r,i){Ls(i)?n[r]=i:ye(i)?t[r]=i:el()&&(t[r]=Vn()[Rl](i))})}function Pa(e,t){K(e)||Me(e,function(n,r){e[n]=r||t})}function Aa(e,t,n,r){var i=new px(e,r,t);vt(i,"sampleRate",n[VS]),(n[lt]||{}).startTime&&(i.time=bo(n[lt].startTime)),i.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return i[Gr]=i[Gr].replace("{0}",a),dV(e,n,i),n[At]=n[At]||[],Ey(i)}function Ma(e,t){K(t[lt])&&Z(e,1,46,"telemetryItem.baseData cannot be null.")}var hV={Version:"3.3.7"};function pV(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Oi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt];if(K(a))return ca(e,"Invalid input for dependency data"),null;var s=a[kt]&&a[kt][LS]?a[kt][LS]:"GET",l=new ya(e,a.id,a.target,a[Gr],a[ba],a.success,a.responseCode,s,a.type,a.correlationContext,i,r),c=new Sa(ya[ur],l);return Aa(e,ya[ka],t,c)}function B0(e,t,n){Ma(e,t);var r={},i={};t[Dm]!==Ni[ur]&&(r.baseTypeSource=t[Dm]),t[Dm]===Ni[ur]?(r=t[lt][kt]||{},i=t[lt][Da]||{}):t[lt]&&Oi(t[lt],r,i),Oi(t[dn],r,i),K(n)||Pa(r,n);var a=t[lt][Gr],s=new Ni(e,a,r,i),l=new Sa(Ni[ur],s);return Aa(e,Ni[ka],t,l)}function mV(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Oi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt],s=bn.CreateFromInterface(e,a,i,r),l=new Sa(bn[ur],s);return Aa(e,bn[ka],t,l)}function vV(e,t,n){Ma(e,t);var r=t[lt],i=r[kt]||{},a=r[Da]||{};Oi(t[dn],i,a),K(n)||Pa(i,n);var s=new ga(e,r[Gr],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),l=new Sa(ga[ur],s);return Aa(e,ga[ka],t,l)}function _V(e,t,n){Ma(e,t);var r,i=t[lt];!K(i)&&!K(i[kt])&&!K(i[kt][ba])?(r=i[kt][ba],delete i[kt][ba]):!K(t[dn])&&!K(t[dn][ba])&&(r=t[dn][ba],delete t[dn][ba]);var a=t[lt],s;((t.ext||{}).trace||{})[Il]&&(s=t.ext.trace[Il]);var l=a.id||s,c=a[Gr],u=a.uri,f=a[kt]||{},d=a[Da]||{};if(K(a.refUri)||(f.refUri=a.refUri),K(a.pageType)||(f.pageType=a.pageType),K(a.isLoggedIn)||(f.isLoggedIn=a.isLoggedIn[Ca]()),!K(a[kt])){var p=a[kt];Me(p,function(v,_){f[v]=_})}Oi(t[dn],f,d),K(n)||Pa(f,n);var h=new bi(e,c,u,r,f,d,l),m=new Sa(bi[ur],h);return Aa(e,bi[ka],t,m)}function gV(e,t,n){Ma(e,t);var r=t[lt],i=r[Gr],a=r.uri||r.url,s=r[kt]||{},l=r[Da]||{};Oi(t[dn],s,l),K(n)||Pa(s,n);var c=new $o(e,i,a,void 0,s,l,r),u=new Sa($o[ur],c);return Aa(e,$o[ka],t,u)}function yV(e,t,n){Ma(e,t);var r=t[lt].message,i=t[lt].severityLevel,a=t[lt][kt]||{},s=t[lt][Da]||{};Oi(t[dn],a,s),K(n)||Pa(a,n);var l=new Yo(e,r,i,a,s),c=new Sa(Yo[ur],l);return Aa(e,Yo[ka],t,c)}var U0=function(){function e(t,n){var r=[],i=!1,a=n.maxRetryCnt;this._get=function(){return r},this._set=function(s){return r=s,r},et(e,this,function(s){s[Ia]=function(l){if(s[Ra]()>=n.eventsLimitInMem){i||(Z(t,2,105,"Maximum in-memory buffer size reached: "+s[Ra](),!0),i=!0);return}l.cnt=l.cnt||0,!(!K(a)&&l.cnt>a)&&r[Wr](l)},s[Ra]=function(){return r[xe]},s.size=function(){for(var l=r[xe],c=0;c<r[xe];c++)l+=r[c].item[xe];return n[vm]||(l+=2),l},s[zo]=function(){r=[],i=!1},s.getItems=function(){return r.slice(0)},s.batchPayloads=function(l){if(l&&l[xe]>0){var c=[];oe(l,function(f){c[Wr](f.item)});var u=n[vm]?c.join(`
|
|
65
|
+
`):"["+c.join(",")+"]";return u}return null},s.createNew=function(l,c,u){var f=r.slice(0);l=l||t,c=c||{};var d=u?new H0(l,c):new km(l,c);return oe(f,function(p){d[Ia](p)}),d}})}return e.__ieDyn=1,e}(),km=function(e){Lr(t,e);function t(n,r){var i=e.call(this,n,r)||this;return et(t,i,function(a,s){a[cf]=function(l){s[zo]()},a[Ol]=function(l){}}),i}return t.__ieDyn=1,t}(U0),SV=["AI_buffer","AI_sentBuffer"],H0=function(e){Lr(t,e);function t(r,i){var a=e.call(this,r,i)||this,s=!1,l=i==null?void 0:i.namePrefix,c=i[_m]||{getItem:Jp,setItem:XS},u=c.getItem,f=c.setItem,d=i.maxRetryCnt;return et(t,a,function(p,h){var m=A(t[Pl]),v=A(t[Ri]),_=b(),g=v[Ko](_),S=p._set(m[Ko](g));S[xe]>t[Al]&&(S[xe]=t[Al]),z(t[Ri],[]),z(t[Pl],S),p[Ia]=function(B){if(p[Ra]()>=t[Al]){s||(Z(r,2,67,"Maximum buffer size reached: "+p[Ra](),!0),s=!0);return}B.cnt=B.cnt||0,!(!K(d)&&B.cnt>d)&&(h[Ia](B),z(t[Pl],p._get()))},p[zo]=function(){h[zo](),z(t[Pl],p._get()),z(t[Ri],[]),s=!1},p[cf]=function(B){z(t[Pl],p._set(C(B,p._get())));var k=A(t[Ri]);k instanceof Array&&B instanceof Array&&(k=k[Ko](B),k[xe]>t[Al]&&(Z(r,1,67,"Sent buffer reached its maximum size: "+k[xe],!0),k[xe]=t[Al]),z(t[Ri],k))},p[Ol]=function(B){var k=A(t[Ri]);k=C(B,k),z(t[Ri],k)},p.createNew=function(B,k,P){P=!!P;var q=p._get().slice(0),te=A(t[Ri]).slice(0);B=B||r,k=k||{},p[zo]();var E=P?new t(B,k):new km(B,k);return oe(q,function(D){E[Ia](D)}),P&&E[cf](te),E};function C(B,k){var P=[],q=[];return oe(B,function(te){q[Wr](te.item)}),oe(k,function(te){!Se(te)&&Ft(q,te.item)===-1&&P[Wr](te)}),P}function A(B){var k=B;return k=l?l+"_"+k:k,V(k)}function V(B){try{var k=u(r,B);if(k){var P=Vn().parse(k);if(ye(P)&&(P=Vn().parse(P)),P&&ke(P))return P}}catch(q){Z(r,1,42," storage key: "+B+", "+je(q),{exception:se(q)})}return[]}function z(B,k){var P=B;try{P=l?l+"_"+P:P;var q=JSON[Rl](k);f(r,P,q)}catch(te){f(r,P,JSON[Rl]([])),Z(r,2,41," storage key: "+P+", "+je(te)+". Buffer cleared",{exception:se(te)})}}function b(){var B=[];try{return oe(SV,function(k){var P=I(k);if(B=B[Ko](P),l){var q=l+"_"+k,te=I(q);B=B[Ko](te)}}),B}catch(k){Z(r,2,41,"Transfer events from previous buffers: "+je(k)+". previous Buffer items can not be removed",{exception:se(k)})}return[]}function I(B){try{var k=V(B),P=[];return oe(k,function(q){var te={item:q,cnt:0};P[Wr](te)}),JS(r,B),P}catch{}return[]}}),a}var n;return n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(U0),EV=function(){function e(t){et(e,this,function(n){n.serialize=function(s){var l=r(s,"root");try{return Vn()[Rl](l)}catch(c){Z(t,1,48,c&&Se(c[Ca])?c[Ca]():"Error serializing object",null,!0)}};function r(s,l){var c="__aiCircularRefCheck",u={};if(!s)return Z(t,1,48,"cannot serialize object because it is null or undefined",{name:l},!0),u;if(s[c])return Z(t,2,50,"Circular reference detected while serializing object",{name:l},!0),u;if(!s.aiDataContract){if(l==="measurements")u=a(s,"number",l);else if(l==="properties")u=a(s,"string",l);else if(l==="tags")u=a(s,"string",l);else if(ke(s))u=i(s,l);else{Z(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:l},!0);try{Vn()[Rl](s),u=s}catch(f){Z(t,1,48,f&&Se(f[Ca])?f[Ca]():"Error serializing object",null,!0)}}return u}return s[c]=!0,Me(s.aiDataContract,function(f,d){var p=Se(d)?d()&1:d&1,h=Se(d)?d()&4:d&4,m=d&2,v=s[f]!==void 0,_=en(s[f])&&s[f]!==null;if(p&&!v&&!m)Z(t,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:l});else if(!h){var g=void 0;_?m?g=i(s[f],f):g=r(s[f],f):g=s[f],g!==void 0&&(u[f]=g)}}),delete s[c],u}function i(s,l){var c;if(s)if(!ke(s))Z(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
|
|
66
|
+
`,{name:l},!0);else{c=[];for(var u=0;u<s[xe];u++){var f=s[u],d=r(f,l+"["+u+"]");c[Wr](d)}}return c}function a(s,l,c){var u;return s&&(u={},Me(s,function(f,d){if(l==="string")d===void 0?u[f]="undefined":d===null?u[f]="null":d[Ca]?u[f]=d[Ca]():u[f]="invalid field: toString() is not defined.";else if(l==="number")if(d===void 0)u[f]="undefined";else if(d===null)u[f]="null";else{var p=parseFloat(d);u[f]=p}else u[f]="invalid field: "+c+" is of unknown type.",Z(t,1,u[f],null,!0)})),u}})}return e.__ieDyn=1,e}(),TV=8,NV=function(){function e(){}return e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[xe]<TV;)t=t[Ko](t);for(var n=5381,r=0;r<t[xe];++r)n=(n<<5)+n+t.charCodeAt(r),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),wV=function(){function e(){var t=this,n=new NV,r=new f0;t.getSamplingScore=function(i){var a=0;return i[At]&&i[At][r.userId]?a=n.getHashCodeScore(i[At][r.userId]):i.ext&&i.ext.user&&i.ext.user.id?a=n[fV](i.ext.user.id):i[At]&&i[At][r.operationId]?a=n.getHashCodeScore(i[At][r.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Il]?a=n.getHashCodeScore(i.ext.telemetryTrace[Il]):a=Math.random()*100,a}}return e}(),bV=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var r=n||la(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[df]=t,this.samplingScoreGenerator=new wV}return e.prototype.isSampledIn=function(t){var n=this[df],r=!1;return n==null||n>=100||t.baseType===ga[ur]?!0:(r=this.samplingScoreGenerator.getSamplingScore(t)<n,r)},e}(),nt,jr,$n=void 0,G0="",DV=65e3;function W0(e){try{return e.responseText}catch{}return null}function kV(e){return e&&e.sendPOST}var j0=Fs((nt={endpointUrl:Du(Vc,Fp+Ao)},nt[vm]=St(),nt.maxBatchInterval=15e3,nt[x0]=102400,nt.disableTelemetry=St(),nt[L0]=St(!0),nt.isRetryDisabled=St(),nt[Em]=St(!0),nt[Y0]=St(!0),nt.disableXhr=St(),nt[F0]=St(),nt[Sm]=St(),nt[Ll]=$n,nt.namePrefix=$n,nt.samplingPercentage=Du(CV,100),nt[ym]=$n,nt.convertUndefined=$n,nt.eventsLimitInMem=1e4,nt[_m]=!1,nt.httpXHROverride={isVal:kV,v:$n},nt[V0]=St(),nt.transports=$n,nt.retryCodes=$n,nt.corsPolicy=$n,nt.maxRetryCnt={isVal:Ls,v:10},nt)),z0="X-Set-Cross-Origin-Resource-Policy";function CV(e){return!isNaN(e)&&e>0&&e<=100}var IV=(jr={},jr[Ni.dataType]=B0,jr[Yo.dataType]=yV,jr[bi.dataType]=_V,jr[$o.dataType]=gV,jr[bn.dataType]=mV,jr[ga.dataType]=vV,jr[ya.dataType]=pV,jr),RV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=h0;var r,i,a,s,l,c,u,f,d=0,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j,x,O,re,ue,ve,y,M;return et(t,n,function(T,U){If(),T.pause=function(){Ct(),s=!0},T.resume=function(){s&&(s=!1,i=null,L(),rt())},T.flush=function(R,$,ee){if(R===void 0&&(R=!0),!s){Ct();try{return T[Ml](R,null,ee||1)}catch(pe){Z(T[$t](),1,22,"flush failed, telemetry will not be collected: "+je(pe),{exception:se(pe)})}}},T.onunloadFlush=function(){if(!s)if(S||D)try{return T[Ml](!0,X,2)}catch(R){Z(T[$t](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+je(R),{exception:se(R)})}else T.flush(!1)},T.addHeader=function(R,$){f[R]=$},T[gm]=function(R,$,ee,pe){T.isInitialized()&&Z(T[$t](),1,28,"Sender is already initialized"),U[gm](R,$,ee,pe);var be=T.identifier;c=new EV($.logger),r=0,i=null,a=0,T[xl]=null,u=0;var Ne=T[$t]();m=Si(Tn("Sender"),$.evtNamespace&&$.evtNamespace()),h=Yx(m),T._addHook(mt(R,function(Ue){var ct=Ue.cfg;ct.storagePrefix&&Xp(ct.storagePrefix);var hn=Fn(null,ct,$),Ie=hn.getExtCfg(be,j0),xE=Ie[Vl];if(v&&xE===v){var nv=ct[Vl];nv&&nv!==xE&&(Ie[Vl]=nv)}var PL=ot("CompressionStream");M=gu("zipPayload",ct,!1),Se(PL)||(M=!1);var ql=Ie.corsPolicy;ql?(ql==="same-origin"||ql==="same-site"||ql==="cross-origin")&&n.addHeader(z0,ql):delete f[z0],oi(Ie[Ll])&&(Ie[Ll]=ct[Ll]),Le(T,"_senderConfig",{g:function(){return Ie}}),_!==Ie[Vl]&&(v=_=Ie[Vl]),$.activeStatus()===ui.PENDING?T.pause():$.activeStatus()===ui.ACTIVE&&T.resume(),V&&V!==Ie[ym]&&oe(V,function(xt){delete f[xt.header]}),g=Ie[x0],S=(Ie[Sm]===!1||Ie[Em]===!1)&&tl(),C=Ie[Sm]===!1&&tl(),A=Ie[Em]===!1&&tl(),D=Ie[V0],j=!!Ie.disableXhr,y=Ie.retryCodes;var rv=Ie[_m],ds=!!Ie[L0]&&(!!rv||gl()),VE=Ie.namePrefix,AL=ds!==P||ds&&te!==VE||ds&&q!==rv;if(T[fr]){if(AL)try{T[fr]=T[fr].createNew(Ne,Ie,ds)}catch(xt){Z(T[$t](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+je(xt),{exception:se(xt)})}L()}else T[fr]=ds?new H0(Ne,Ie):new km(Ne,Ie);te=VE,P=ds,q=rv,x=!Ie[F0]&&Zh(!0),ue=!!Ie[Y0],T._sample=new bV(Ie.samplingPercentage,Ne),b=Ie[Ll],!oi(b)&&!fs(b,ct)&&Z(Ne,1,100,"Invalid Instrumentation key "+b),V=Ie[ym],ye(v)&&!jp(v)&&V&&V[xe]>0?oe(V,function(xt){n.addHeader(xt.header,xt.value)}):V=null,E=Ie.enableSendPromise;var LE=w();ve?ve.SetConfig(LE):(ve=new MM,ve[gm](LE,Ne));var Rf=Ie.httpXHROverride,Of=null,Xl=null,ML=wy([3,1,2],Ie.transports);Of=ve&&ve[uf](ML,!1);var iv=ve&&ve.getFallbackInst();O=function(xt,Ga){return me(iv,xt,Ga)},re=function(xt,Ga){return me(iv,xt,Ga,!1)},Of=D?Rf:Of||Rf||iv,T[xl]=function(xt,Ga){return me(Of,xt,Ga)},x&&(p=Oe);var av=wy([3,1],Ie.unloadTransports);x||(av=av.filter(function(xt){return xt!==2})),Xl=ve&&ve[uf](av,!0),Xl=D?Rf:Xl||Rf,(D||Ie.unloadTransports||!p)&&Xl&&(p=function(xt,Ga){return me(Xl,xt,Ga)}),p||(p=O),z=Ie.disableTelemetry,I=Ie.convertUndefined||$n,B=Ie.isRetryDisabled,k=Ie.maxBatchInterval}))},T.processTelemetry=function(R,$){$=T._getTelCtx($);var ee=$[$t]();try{var pe=fe(R,ee);if(!pe)return;var be=ce(R,ee);if(!be)return;var Ne=c.serialize(be),Ue=T[fr];L(Ne);var ct={item:Ne,cnt:0};Ue[Ia](ct),rt()}catch(hn){Z(ee,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+je(hn),{exception:se(hn)})}T.processNext(R,$)},T.isCompletelyIdle=function(){return!s&&d===0&&T._buffer[Ra]()===0},T.getOfflineListener=function(){return h},T._xhrReadyStateChange=function(R,$,ee){if(!_e($))return H(R,$,ee)},T[Ml]=function(R,$,ee){R===void 0&&(R=!0);var pe;if(!s)try{var be=T[fr];if(z)be[zo]();else{if(be[Ra]()>0){var Ne=be.getItems();nn(ee||0,R),$?pe=$.call(T,Ne,R):pe=T[xl](Ne,R)}a=+new Date}Ct()}catch(ct){var Ue=Iy();(!Ue||Ue>9)&&Z(T[$t](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+je(ct),{exception:se(ct)})}return pe},T.getOfflineSupport=function(){return{getUrl:function(){return v},createPayload:Je,serialize:Ae,batch:Mt,shouldProcess:function(R){return!!fe(R)}}},T._doTeardown=function(R,$){T.onunloadFlush(),ko(h,!1),If()},T[Oa]=function(R,$,ee){if(!_e(R))return Y(R,$)},T[Tm]=function(R,$){if(!_e(R))return Q(R,$)},T[ff]=function(R,$){if(!_e(R))return Ee(R)},T._xdrOnLoad=function(R,$){if(!_e($))return ie(R,$)};function ie(R,$){var ee=W0(R);if(R&&(ee+""=="200"||ee===""))r=0,T[ff]($,0);else{var pe=Dp(ee);pe&&pe[Nm]&&pe[Nm]>pe[wm]&&!B?T[Tm]($,pe):T[Oa]($,Ny(R))}}function w(){try{var R={xdrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return ie(ee,Ne)},fetchOnComplete:function(ee,pe,be,Ne){var Ue=Ye(Ne);if(Ue)return W(ee.status,Ue,ee.url,Ue[xe],ee.statusText,be||"")},xhrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return H(ee,Ne,Ne[xe])},beaconOnRetry:function(ee,pe,be){return he(ee,pe,be)}},$={enableSendPromise:E,isOneDs:!1,disableCredentials:!1,disableXhr:j,disableBeacon:!A,disableBeaconSync:!C,senderOnCompleteCallBack:R};return $}catch{}return null}function H(R,$,ee){R.readyState===4&&W(R.status,$,R.responseURL,ee,Su(R),W0(R)||R.response)}function Y(R,$,ee){Z(T[$t](),2,26,"Failed to send telemetry.",{message:$}),T._buffer&&T._buffer[Ol](R)}function Q(R,$){for(var ee=[],pe=[],be=$.errors.reverse(),Ne=0,Ue=be;Ne<Ue.length;Ne++){var ct=Ue[Ne],hn=R.splice(ct.index,1)[0];mr(ct.statusCode)?pe[Wr](hn):ee[Wr](hn)}R[xe]>0&&T[ff](R,$[wm]),ee[xe]>0&&T[Oa](ee,Su(null,["partial success",$[wm],"of",$.itemsReceived].join(" "))),pe[xe]>0&&(Te(pe),Z(T[$t](),2,40,"Partial success. Delivered: "+R[xe]+", Failed: "+ee[xe]+". Will retry to send "+pe[xe]+" our of "+$[Nm]+" items"))}function Ee(R,$){T._buffer&&T._buffer[Ol](R)}function Ye(R){try{if(R){var $=R,ee=$.oriPayload;return ee&&ee[xe]?ee:null}}catch{}return null}function fe(R,$){if(z)return!1;if(!R)return $&&Z($,1,7,"Cannot send empty telemetry"),!1;if(R.baseData&&!R[bm])return $&&Z($,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(R[bm]||(R[bm]="EventData"),!T[xl])return $&&Z($,1,28,"Sender was not initialized"),!1;if(F(R))R[VS]=T._sample[df];else return $&&Z($,2,33,"Telemetry item was sampled out and not sent",{SampleRate:T._sample[df]}),!1;return!0}function ce(R,$){var ee=R.iKey||b,pe=t.constructEnvelope(R,ee,$,I);if(!pe){Z($,1,47,"Unable to create an AppInsights envelope");return}var be=!1;if(R[At]&&R[At][Lp]&&(oe(R[At][Lp],function(Ne){try{Ne&&Ne(pe)===!1&&(be=!0,ca($,"Telemetry processor check returns false"))}catch(Ue){Z($,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+je(Ue),{exception:se(Ue)},!0)}}),delete R[At][Lp]),!be)return pe}function Ae(R){var $=G0,ee=T[$t]();try{var pe=fe(R,ee),be=null;pe&&(be=ce(R,ee)),be&&($=c.serialize(be))}catch{}return $}function Mt(R){var $=G0;return R&&R[xe]&&($="["+R.join(",")+"]"),$}function Je(R){var $=N();return{urlString:v,data:R,headers:$}}function F(R){return T._sample.isSampledIn(R)}function ne(R,$,ee,pe){$===200&&R?T._onSuccess(R,R[xe]):pe&&T[Oa](R,pe)}function me(R,$,ee,pe){pe===void 0&&(pe=!0);var be=function(ct,hn,Ie){return ne($,ct,hn,Ie)},Ne=de($),Ue=R&&R.sendPOST;return Ue&&Ne&&(pe&&T._buffer[cf]($),ve.preparePayload(function(ct){return Ue(ct,be,!ee)},M,Ne,!ee)),null}function de(R){if(ke(R)&&R[xe]>0){var $=T[fr].batchPayloads(R),ee=N(),pe={data:$,urlString:v,headers:ee,disableXhrSync:j,disableFetchKeepAlive:!x,oriPayload:R};return pe}return null}function N(){try{var R=f||{};return jp(v)&&(R[Xe[6]]=Xe[7]),R}catch{}return null}function L(R){var $=R?R[xe]:0;return T[fr].size()+$>g?((!h||h.isOnline())&&T[Ml](!0,null,10),!0):!1}function W(R,$,ee,pe,be,Ne){var Ue=null;if(T._appId||(Ue=Dp(Ne),Ue&&Ue.appId&&(T._appId=Ue.appId)),(R<200||R>=300)&&R!==0){if((R===301||R===307||R===308)&&!G(ee)){T[Oa]($,be);return}if(h&&!h.isOnline()){if(!B){var ct=10;Te($,ct),Z(T[$t](),2,40,". Offline - Response Code: ".concat(R,". Offline status: ").concat(!h.isOnline(),". Will retry to send ").concat($.length," items."))}return}!B&&mr(R)?(Te($),Z(T[$t](),2,40,". Response code "+R+". Will retry to send "+$[xe]+" items.")):T[Oa]($,be)}else G(ee),R===206?(Ue||(Ue=Dp(Ne)),Ue&&!B?T[Tm]($,Ue):T[Oa]($,be)):(r=0,T[ff]($,pe))}function G(R){return u>=10?!1:!K(R)&&R!==""&&R!==v?(v=R,++u,!0):!1}function X(R,$){if(p)p(R,!1);else{var ee=ve&&ve[uf]([3],!0);return me(ee,R,$)}}function he(R,$,ee){var pe=R,be=pe&&pe.oriPayload;if(ue)re&&re(be,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ne=[],Ue=0;Ue<be[xe];Ue++){var ct=be[Ue],hn=[ct],Ie=de(hn);ee(Ie,$)?T._onSuccess(hn,hn[xe]):Ne[Wr](ct)}Ne[xe]>0&&(re&&re(Ne,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function _e(R){try{if(R&&R[xe])return ye(R[0])}catch{}return null}function Oe(R,$){var ee=null;if(ke(R)){for(var pe=R[xe],be=0;be<R[xe];be++)pe+=R[be].item[xe];var Ne=ve.getSyncFetchPayload();Ne+pe<=DV?ee=2:tl()?ee=3:(ee=1,Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var Ue=ve&&ve[uf]([ee],!0);return me(Ue,R,$)}return null}function Te(R,$){if($===void 0&&($=1),!(!R||R[xe]===0)){var ee=T[fr];ee[Ol](R),r++;for(var pe=0,be=R;pe<be.length;pe++){var Ne=be[pe];Ne.cnt=Ne.cnt||0,Ne.cnt++,ee[Ia](Ne)}ze($),rt()}}function ze(R){var $=10,ee;if(r<=1)ee=$;else{var pe=(Math.pow(2,r)-1)/2,be=ln(Math.random()*pe*$)+1;be=R*be,ee=Ys(kg(be,3600),$)}var Ne=Mn()+ee*1e3;i=Ne}function rt(){if(!l&&!s){var R=i?Ys(0,i-Mn()):0,$=Ys(k,R);l=En(function(){l=null,T[Ml](!0,null,1)},$)}}function Ct(){l&&l.cancel(),l=null,i=null}function mr(R){return K(y)?R===401||R===408||R===429||R===500||R===502||R===503||R===504:y[xe]&&y.indexOf(R)>-1}function vr(){var R="getNotifyMgr",$,ee=T.core;return ee&&(ee[R]?$=ee[R]():$=ee._notificationManager),$}function nn(R,$){var ee=vr();if(ee&&ee.eventsSendRequest)try{ee.eventsSendRequest(R,$)}catch(pe){Z(T[$t](),1,74,"send request notification failed: "+je(pe),{exception:se(pe)})}}function fs(R,$){var ee=$.disableInstrumentationKeyValidation,pe=K(ee)?!1:ee;if(pe)return!0;var be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ne=new RegExp(be);return Ne.test(R)}function If(){T[xl]=null,T[fr]=null,T._appId=null,T._sample=null,f={},h=null,r=0,i=null,a=null,s=!1,l=null,c=null,u=0,d=0,p=null,m=null,v=null,_=null,g=0,S=!1,V=null,z=!1,b=null,I=$n,B=!1,P=null,te=$n,j=!1,x=!1,ue=!1,O=null,re=null,ve=null,Le(T,"_senderConfig",{g:function(){return Ty({},j0)}})}}),n}return t.constructEnvelope=function(n,r,i,a){var s;r!==n.iKey&&!K(r)?s=zt(zt({},n),{iKey:r}):s=n;var l=IV[s.baseType]||B0;return l(i,s,a)},t}(Oo),K0="duration",qo="properties",Bn="requestUrl",xa="length",Pi="traceID",Ai="spanID",Un="traceFlags",Fl="context",Xo="aborted",hf="_addHook",dr="core",Cm="includeCorrelationHeaders",Im="getAbsoluteUrl",Va="headers",Dn="requestHeaders",Rm="setRequestHeader",q0="trackDependencyDataInternal",Jo="startTime",Qo="toLowerCase",Om="enableRequestHeaderTracking",X0="enableAjaxErrorStatusText",J0="enableAjaxPerfTracking",Q0="maxAjaxCallsPerView",Z0="excludeRequestFromAutoTrackingPatterns",Pm="disableAjaxTracking",eE="ajaxPerfLookupDelay",tE="disableFetchTracking",nE="enableResponseHeaderTracking",Hn="status",La="statusText",pf="headerMap",Fa="requestSentTime",Am="getTraceId",Mm="getTraceFlags",Mi="method",xm="errorStatusText",rE="stateChangeAttached",iE="responseText",Yl="responseFinishedTime",Vm="CreateTrackItem",aE="getAllResponseHeaders",Lm="getPartAProps",mf="perfMark",Fm="perfTiming",Ym="ajaxDiagnosticsMessage",$m="correlationContext",Bm="ajaxTotalDuration",Um="eventTraceCtx";function oE(e,t,n){var r=0,i=e[t],a=e[n];return i&&a&&(r=tn(i,a)),r}function Ya(e,t,n,r,i){var a=0,s=oE(n,r,i);return s&&(a=xi(e,t,wi(s))),a}function xi(e,t,n){var r="ajaxPerf",i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n,i=1}return i}function OV(e,t){var n=e[Fm],r=t[qo]||{},i=0,a="name",s="Start",l="End",c="domainLookup",u="connect",f="redirect",d="request",p="response",h="startTime",m=c+s,v=c+l,_=u+s,g=u+l,S=d+s,C=d+l,A=p+s,V=p+l,z=f+s,b=f=l,I="transferSize",B="encodedBodySize",k="decodedBodySize",P="serverTiming";if(n){i|=Ya(r,f,n,z,b),i|=Ya(r,c,n,m,v),i|=Ya(r,u,n,_,g),i|=Ya(r,d,n,S,C),i|=Ya(r,p,n,A,V),i|=Ya(r,"networkConnect",n,h,g),i|=Ya(r,"sentRequest",n,S,V);var q=n[K0];q||(q=oE(n,h,V)||0),i|=xi(r,K0,q),i|=xi(r,"perfTotal",q);var te=n[P];if(te){var E={};oe(te,function(D,j){var x=vu(D[a]||""+j),O=E[x]||{};Me(D,function(re,ue){(re!==a&&ye(ue)||Ls(ue))&&(O[re]&&(ue=O[re]+";"+ue),(ue||!ye(ue))&&(O[re]=ue))}),E[x]=O}),i|=xi(r,P,E)}i|=xi(r,I,n[I]),i|=xi(r,B,n[B]),i|=xi(r,k,n[k])}else e[mf]&&(i|=xi(r,"missing",e.perfAttempts));i&&(t[qo]=r)}var PV=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[rE]=!1}return e}(),sE=function(){function e(t,n,r,i){var a=this,s=r,l="responseText";a[mf]=null,a.completed=!1,a.requestHeadersSize=null,a[Dn]=null,a.responseReceivingDuration=null,a.callbackDuration=null,a[Bm]=null,a[Xo]=0,a.pageUrl=null,a[Bn]=null,a.requestSize=0,a[Mi]=null,a[Hn]=null,a[Fa]=null,a.responseStartedTime=null,a[Yl]=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new PV,a.clientFailure=0,a[Pi]=t,a[Ai]=n,a[Un]=i==null?void 0:i.getTraceFlags(),i?a[Um]={traceId:i[Am](),spanId:i.getSpanId(),traceFlags:i[Mm]()}:a[Um]=null,et(e,a,function(c){c.getAbsoluteUrl=function(){return c[Bn]?ex(c[Bn]):null},c.getPathName=function(){return c[Bn]?Ku(s,tx(c[Mi],c[Bn])):null},c[Vm]=function(u,f,d){var p;if(c.ajaxTotalDuration=jg(tn(c.requestSentTime,c.responseFinishedTime)*1e3)/1e3,c[Bm]<0)return null;var h=(p={id:"|"+c[Pi]+"."+c[Ai],target:c[Im](),name:c.getPathName(),type:u,startTime:null,duration:c[Bm],success:+c[Hn]>=200&&+c[Hn]<400,responseCode:+c[Hn]},p[qo]={HttpMethod:c[Mi]},p),m=h[qo];if(c[Xo]&&(m[Xo]=!0),c[Fa]&&(h[Jo]=new Date,h[Jo].setTime(c[Fa])),OV(c,h),f&&Ar(c.requestHeaders)[xa]>0&&(m[Dn]=c[Dn]),d){var v=d();if(v){var _=v[$m];if(_&&(h.correlationContext=_),v[pf]&&Ar(v.headerMap)[xa]>0&&(m.responseHeaders=v[pf]),c[xm])if(c[Hn]>=400){var g=v.type;(g===""||g==="text")&&(m.responseText=v.responseText?v[La]+" - "+v[l]:v[La]),g==="json"&&(m.responseText=v.response?v[La]+" - "+JSON.stringify(v.response):v[La])}else c[Hn]===0&&(m.responseText=v[La]||"")}}return h},c[Lm]=function(){var u=null,f=c[Um];if(f&&(f.traceId||f.spanId)){u={};var d=u[un.TraceExt]={traceID:f.traceId,parentID:f.spanId};K(f[Un])||(d[Un]=f[Un])}return u}})}return e.__ieDyn=1,e}(),ht,$l="diagLog",Vi="_ajaxData",$a="fetch",Bl="Failed to monitor XMLHttpRequest",lE=", monitoring data for this ajax call ",Zo=lE+"may be incorrect.",cE=lE+"won't be sent.",uE="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",fE="Failed to add custom defined request context as configured call back may missing a null check.",dE="Failed to calculate the duration of the ",hE=0;function AV(){var e=Sn();return!e||K(e.Request)||K(e.Request[Qn])||K(e[$a])?null:e[$a]}function MV(e,t){var n,r=!1;if(Eu()){var i=XMLHttpRequest[Qn];r=!K(i)&&!K(i.open)&&!K(i.send)&&!K(i.abort)}var a=Iy();if(a&&a<9&&(r=!1),r)try{var s=new XMLHttpRequest,l={xh:[],i:(n={},n[t]={},n)};s[Vi]=l;var c=XMLHttpRequest[Qn].open;XMLHttpRequest[Qn].open=c}catch(u){r=!1,Ul(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:se(u)})}return r}var es=function(e,t){return e&&t&&e[Vi]?(e[Vi].i||{})[t]:null},xV=function(e,t,n){if(e){var r=(e[Vi]||{}).xh;r&&r.push({n:t,v:n})}},Hm=function(e,t){var n=!1;if(e){var r=(e[Vi]||{}).xh;r&&oe(r,function(i){if(i.n===t)return n=!0,-1})}return n};function vf(e,t){var n="";try{var r=es(e,t);r&&r[Bn]&&(n+="(url: '"+r[Bn]+"')")}catch{}return n}function Ul(e,t,n,r,i){Z(e[$l](),1,t,n,r,i)}function zr(e,t,n,r,i){Z(e[$l](),2,t,n,r,i)}function Hl(e,t,n){return function(r){var i;Ul(e,t,n,(i={},i[Ym]=vf(r.inst,e._ajaxDataId),i.exception=se(r.err),i))}}function ts(e,t){return e&&t?jt(e,t):-1}function pE(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){oe(e,function(i,a){if(i.id===r.id)return e.splice(a,1),-1})}}}function mE(e,t,n,r){var i=!0;return oe(t,function(a,s){try{a.fn.call(null,n)===!1&&(i=!1)}catch(l){Z(e&&e.logger,1,64,"Dependency "+r+" [#"+s+"] failed: "+je(l),{exception:se(l)},!0)}}),i}function VV(e,t,n,r,i,a){var s=e[xa],l=!0;if(s>0){var c={core:t,xhr:r,input:i,init:a,traceId:n[Pi],spanId:n[Ai],traceFlags:n[Un],context:n[Fl]||{},aborted:!!n[Xo]};l=mE(t,e,c,"listener"),n[Pi]=c.traceId,n[Ai]=c.spanId,n[Un]=c[Un],n[Fl]=c[Fl]}return l}var _f="*.blob.core.",LV=An([_f+"windows.net",_f+"chinacloudapi.cn",_f+"cloudapi.de",_f+"usgovcloudapi.net"]),FV=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],YV=An((ht={},ht[Q0]=500,ht[Pm]=!1,ht[tE]=!1,ht[Z0]=void 0,ht.disableCorrelationHeaders=!1,ht.distributedTracingMode=1,ht.correlationHeaderExcludedDomains=LV,ht.correlationHeaderDomains=void 0,ht.correlationHeaderExcludePatterns=void 0,ht.appId=void 0,ht.enableCorsCorrelation=!1,ht[Om]=!1,ht[nE]=!1,ht[X0]=!1,ht[J0]=!1,ht.maxAjaxPerfLookupAttempts=3,ht[eE]=25,ht.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],ht.addRequestContext=void 0,ht.addIntEndpoints=!0,ht)),$V=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j;return et(t,n,function(x,O){var re=O[hf];ue(),x.initialize=function(N,L,W,G){x.isInitialized()||(O.initialize(N,L,W,G),z=Si(Tn("ajax"),L&&L.evtNamespace&&L.evtNamespace()),ve(N),ie(),T(),y())},x._doTeardown=function(){ue()},x.trackDependencyData=function(N,L){de(k,x[dr],null,N,L)},x[Cm]=function(N,L,W,G){var X=x._currentWindowHost||a;if(VV(B,x[dr],N,G,L,W)){if(L||L===""){if(WS(s,N[Im](),X)){W||(W={});var he=new Headers(W[Va]||(L instanceof Request?L[Va]||{}:{}));if(p){var _e="|"+N[Pi]+"."+N[Ai];he.set(Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(he.set(Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe)),d){var Te=N[Un];K(Te)&&(Te=1);var ze=cS(lS(N[Pi],N[Ai],Te));he.set(Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}W[Va]=he}return W}else if(G){if(WS(s,N[Im](),X)){if(p)if(Hm(G,Xe[3]))zr(x,71,"Unable to set ["+Xe[3]+"] as it has already been set by another instance");else{var _e="|"+N[Pi]+"."+N[Ai];G[Rm](Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(Hm(G,Xe[0])?zr(x,71,"Unable to set ["+Xe[0]+"] as it has already been set by another instance"):(G[Rm](Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe))),d){var Te=N[Un];if(K(Te)&&(Te=1),Hm(G,Xe[4]))zr(x,71,"Unable to set ["+Xe[4]+"] as it has already been set by another instance");else{var ze=cS(lS(N[Pi],N[Ai],Te));G[Rm](Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}}}return G}}},x[q0]=function(N,L,W){if(v===-1||u<v){(E===2||E===1)&&typeof N.id=="string"&&N.id[N.id[xa]-1]!=="."&&(N.id+="."),K(N[Jo])&&(N[Jo]=new Date);var G=Ci(N,ya.dataType,ya.envelopeType,x[$l](),L,W);x[dr].track(G)}else u===v&&Ul(x,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++u},x.addDependencyListener=function(N){return pE(B,I++,N)},x.addDependencyInitializer=function(N){return pE(k,I++,N)};function ue(){var N=ir();r=!1,i=!1,j=!1,a=N&&N.host&&N.host[Qo](),s=null,l=!1,c=!1,u=0,f=null,d=!1,p=!1,h=null,m=!1,v=0,_=!1,g={},S=!1,C=!1,A=null,V=null,z=null,I=0,B=[],k=[],b=Tn("ajaxData"),x._ajaxDataId=b,P=null,q=1,te=1,E=1,D=null}function ve(N){x[hf](mt(N,function(L){var W=L.cfg,G=Fn(null,W,x[dr]);s=G.getExtCfg(t.identifier,YV),E=s.distributedTracingMode,l=s[Om],c=s[X0],m=s[J0],v=s[Q0],A=[].concat(s[Z0]||[],s.addIntEndpoints!==!1?FV:[]),V=s.addRequestContext,p=E===0||E===1,d=E===1||E===2,m&&(h=b),S=!!s[Pm],q=s.maxAjaxPerfLookupAttempts,te=s[eE],P=s.ignoreHeaders,D=s.appId}))}function y(){var N=x[dr].getPlugin(ef);N&&(f=N.plugin[Fl])}function M(N){var L=!0;return(N||P)&&oe(P,function(W){if(W[Qo]()===N[Qo]())return L=!1,-1}),L}function T(){var N=AV();if(N){var L=Sn(),W=N.polyfill;x[hf](mt(s,function(){C=!!s[tE],_=s[nE],!C&&!r?(re(Vp(L,$a,{ns:z,req:function(G,X,he){var _e;if(!C&&r&&!w(null,X,he)&&!(W&&i)){var Oe=G.ctx();_e=Je(X,he);var Te=x[Cm](_e,X,he);Te!==he&&G.set(1,Te),Oe.data=_e}},rsp:function(G,X){if(!C){var he=G.ctx().data;he&&(G.rslt=G.rslt.then(function(_e){return ne(G,(_e||{})[Hn],X,_e,he,function(){var Oe,Te=(Oe={statusText:(_e||{})[La],headerMap:null},Oe[$m]=me(_e),Oe);if(_&&_e){var ze={};_e.headers.forEach(function(rt,Ct){M(Ct)&&(ze[Ct]=rt)}),Te[pf]=ze}return Te}),_e}).catch(function(_e){throw ne(G,0,X,null,he,null,{error:_e.message||se(_e)}),_e}))}},hkErr:Hl(x,15,"Failed to monitor Window.fetch"+Zo)},!0,Mg())),r=!0):W&&!j&&(re(Vp(L,$a,{ns:z,req:function(G,X,he){w(null,X,he)}})),j=!0)})),W&&(L[$a].polyfill=W)}}function U(N,L,W){re(KM(N,L,W))}function ie(){MV(x,b)&&x[hf](mt(s,function(){S=!!s[Pm],l=s[Om],!S&&!i&&(U(XMLHttpRequest,"open",{ns:z,req:function(N,L,W,G){if(!S){var X=N.inst,he=es(X,b);!w(X,W)&&H(X,he,!0)&&((!he||!he.xhrMonitoringState.openDone)&&(he=Q(X,L,W,G)),Ee(X,he))}},hkErr:Hl(x,15,Bl+".open"+Zo)}),U(XMLHttpRequest,"send",{ns:z,req:function(N,L){if(!S){var W=N.inst,G=es(W,b);H(W,G)&&!G.xhrMonitoringState.sendDone&&(Ae("xhr",G),G[Fa]=qu(),x[Cm](G,void 0,void 0,W),G.xhrMonitoringState.sendDone=!0)}},hkErr:Hl(x,17,Bl+Zo)}),U(XMLHttpRequest,"abort",{ns:z,req:function(N){if(!S){var L=N.inst,W=es(L,b);H(L,W)&&!W.xhrMonitoringState.abortDone&&(W[Xo]=1,W.xhrMonitoringState.abortDone=!0)}},hkErr:Hl(x,13,Bl+".abort"+Zo)}),U(XMLHttpRequest,"setRequestHeader",{ns:z,req:function(N,L,W){if(!S){var G=N.inst,X=es(G,b);X&&H(G,X)&&(xV(G,L,W),l&&M(L)&&(X[Dn][L]=W))}},hkErr:Hl(x,71,Bl+".setRequestHeader"+Zo)}),i=!0)}))}function w(N,L,W){var G=!1,X=((ye(L)?L:(L||{}).url||"")||"")[Qo]();if(oe(A,function(Oe){var Te=Oe;ye(Oe)&&(Te=new RegExp(Oe)),G||(G=Te.test(X))}),G)return G;var he=ts(X,"?"),_e=ts(X,"#");return(he===-1||_e!==-1&&_e<he)&&(he=_e),he!==-1&&(X=X.substring(0,he)),K(N)?K(L)||(G=(typeof L=="object"?L[ha]===!0:!1)||(W?W[ha]===!0:!1)):G=N[ha]===!0||X[ha]===!0,!G&&X&&jp(X)&&(G=!0),G?g[X]||(g[X]=1):g[X]&&(G=!0),G}function H(N,L,W){var G=!0,X=i;return K(N)||(G=W===!0||!K(L)),X&&G}function Y(){var N=null;return x[dr]&&x[dr].getTraceCtx&&(N=x[dr].getTraceCtx(!1)),!N&&f&&f.telemetryTrace&&(N=zp(f.telemetryTrace)),N}function Q(N,L,W,G){var X,he=Y(),_e=he&&he[Am]()||_i(),Oe=li(_i(),0,16),Te=N[Vi]=N[Vi]||{xh:[],i:{}},ze=Te.i=Te.i||{},rt=ze[b]=ze[b]||new sE(_e,Oe,x[$l](),(X=x.core)===null||X===void 0?void 0:X.getTraceCtx());return rt[Un]=he&&he[Mm](),rt[Mi]=L,rt[Bn]=W,rt.xhrMonitoringState.openDone=!0,rt[Dn]={},rt.async=G,rt[xm]=c,rt}function Ee(N,L){L.xhrMonitoringState[rE]=Br(N,"readystatechange",function(){var W;try{N&&N.readyState===4&&H(N,L)&&fe(N)}catch(X){var G=se(X);(!G||ts(G[Qo](),"c00c023f")===-1)&&Ul(x,16,Bl+" 'readystatechange' event handler"+Zo,(W={},W[Ym]=vf(N,b),W.exception=G,W))}},z)}function Ye(N){try{var L=N.responseType;if(L===""||L==="text")return N[iE]}catch{}return null}function fe(N){var L=es(N,b);L[Yl]=qu(),L[Hn]=N[Hn];function W(G,X){var he=X||{};he.ajaxDiagnosticsMessage=vf(N,b),G&&(he.exception=se(G)),zr(x,14,dE+"ajax call"+cE,he)}Mt("xmlhttprequest",L,function(){try{var G=L[Vm]("Ajax",l,function(){var Te,ze=(Te={statusText:N[La],headerMap:null},Te[$m]=ce(N),Te.type=N.responseType,Te[iE]=Ye(N),Te.response=N.response,Te);if(_){var rt=N[aE]();if(rt){var Ct=Ze(rt).split(/[\r\n]+/),mr={};oe(Ct,function(vr){var nn=vr.split(": "),fs=nn.shift(),If=nn.join(": ");M(fs)&&(mr[fs]=If)}),ze[pf]=mr}}return ze}),X=void 0;try{V&&(X=V({status:N[Hn],xhr:N}))}catch{zr(x,104,fE)}if(G){X!==void 0&&(G[qo]=zt(zt({},G.properties),X));var he=L[Lm]();de(k,x[dr],L,G,null,he)}else W(null,{requestSentTime:L[Fa],responseFinishedTime:L[Yl]})}finally{try{var _e=N[Vi]||{i:{}},Oe=_e.i||{};Oe[b]&&(Oe[b]=null)}catch{}}},function(G){W(G,null)})}function ce(N){var L;try{var W=N[aE]();if(W!==null){var G=ts(W[Qo](),Xe[8]);if(G!==-1){var X=N.getResponseHeader(Xe[0]);return jS(X)}}}catch(he){zr(x,18,uE,(L={},L[Ym]=vf(N,b),L.exception=se(he),L))}}function Ae(N,L){if(L[Bn]&&h&&m){var W=xr();if(W&&Se(W.mark)){hE++;var G=h+N+"#"+hE;W.mark(G);var X=W.getEntriesByName(G);X&&X[xa]===1&&(L[mf]=X[0])}}}function Mt(N,L,W,G){var X=L[mf],he=xr(),_e=q,Oe=te,Te=L[Bn],ze=0;(function rt(){try{if(he&&X){ze++;for(var Ct=null,mr=he.getEntries(),vr=mr[xa]-1;vr>=0;vr--){var nn=mr[vr];if(nn){if(nn.entryType==="resource")nn.initiatorType===N&&(ts(nn.name,Te)!==-1||ts(Te,nn.name)!==-1)&&(Ct=nn);else if(nn.entryType==="mark"&&nn.name===X.name){L[Fm]=Ct;break}if(nn[Jo]<X[Jo]-1e3)break}}}!X||L[Fm]||ze>=_e||L.async===!1?(X&&Se(he.clearMarks)&&he.clearMarks(X.name),L.perfAttempts=ze,W()):En(rt,Oe)}catch(fs){G(fs)}})()}function Je(N,L){var W,G=Y(),X=G&&G[Am]()||_i(),he=li(_i(),0,16),_e=new sE(X,he,x[$l](),(W=x.core)===null||W===void 0?void 0:W.getTraceCtx());_e[Un]=G&&G[Mm](),_e[Fa]=qu(),_e[xm]=c;var Oe;if(N instanceof Request?Oe=(N||{}).url||"":Oe=N,Oe===""){var Te=ir();Te&&Te.href&&(Oe=Gg(Te.href,"#")[0])}_e[Bn]=Oe;var ze="GET";L&&L[Mi]?ze=L[Mi]:N&&N instanceof Request&&(ze=N[Mi]),_e[Mi]=ze;var rt={};if(l){var Ct=new Headers((L?L[Va]:0)||(N instanceof Request?N[Va]||{}:{}));Ct.forEach(function(mr,vr){M(vr)&&(rt[vr]=mr)})}return _e[Dn]=rt,Ae($a,_e),_e}function F(N){var L="";try{K(N)||(typeof N=="string"?L+="(url: '".concat(N,"')"):L+="(url: '".concat(N.url,"')"))}catch(W){Ul(x,15,"Failed to grab failed fetch diagnostics message",{exception:se(W)})}return L}function ne(N,L,W,G,X,he,_e){if(!X)return;function Oe(Te,ze,rt){var Ct=rt||{};Ct.fetchDiagnosticsMessage=F(W),ze&&(Ct.exception=se(ze)),zr(x,Te,dE+"fetch call"+cE,Ct)}X[Yl]=qu(),X[Hn]=L,Mt($a,X,function(){var Te=X[Vm]("Fetch",l,he),ze;try{V&&(ze=V({status:L,request:W,response:G}))}catch{zr(x,104,fE)}if(Te){ze!==void 0&&(Te[qo]=zt(zt({},Te.properties),ze));var rt=X[Lm]();de(k,x[dr],X,Te,null,rt)}else Oe(14,null,{requestSentTime:X[Fa],responseFinishedTime:X[Yl]})},function(Te){Oe(18,Te,null)})}function me(N){if(N&&N[Va])try{var L=N[Va].get(Xe[0]);return jS(L)}catch(W){zr(x,18,uE,{fetchDiagnosticsMessage:F(N),exception:se(W)})}}function de(N,L,W,G,X,he){var _e=!0,Oe=N[xa];if(Oe>0){var Te={item:G,properties:X,sysProperties:he,context:W?W[Fl]:null,aborted:W?!!W[Xo]:!1};_e=mE(L,N,Te,"initializer")}_e&&x[q0](G,X,he)}}),n}return t.prototype.processTelemetry=function(n,r){this.processNext(n,r)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Oo),BV=function(){function e(){}return e}(),UV=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),HV="3.3.7",GV=function(){function e(t,n){var r=this,i=mt(t,function(){var a=t.sdkExtension;r.sdkVersion=(a?a+"_":"")+"javascript:"+HV});n&&n.add(i)}return e}(),WV=function(){function e(){}return e}(),gf="session",yf="sessionManager",Sf="isUserCookieSet",Ef="isNewUser",Gm="getTraceCtx",Wm="telemetryTrace",vE="applySessionContext",_E="applyApplicationContext",gE="applyOperationContext",yE="applyOperatingSystemContxt",SE="applyLocationContext",EE="applyInternalContext",Tf="getSessionId",TE="sessionCookiePostfix",Ba="automaticSession",ns="accountId",rs="authenticatedId",Gl="acquisitionDate",Nf="renewalDate",Wl="cookieSeparator",jm="authUserCookieName",jV="ai_session",zV=864e5,KV=18e5,qV=6e4,NE=function(){function e(){}return e}(),XV=function(){function e(t,n,r){var i=this,a,s,l=la(n),c=pp(n),u,f;et(e,i,function(d){t||(t={});var p=mt(t,function(S){u=t.sessionExpirationMs||zV,f=t.sessionRenewalMs||KV;var C=t[TE]||t.namePrefix||"";a=jV+C});r&&r.add(p),d[Ba]=new NE,d.update=function(){var S=Mn(),C=!1,A=d[Ba];if(A.id||(C=!h(A)),!C&&u>0){var V=S-A[Gl],z=S-A[Nf];C=V<0||z<0,C=C||V>u,C=C||z>f}C?v(S):(!s||S-s>qV)&&_(A,S)},d.backup=function(){var S=d[Ba];g(S.id,S[Gl],S[Nf])};function h(S,C){var A=!1,V=c.get(a);if(V&&Se(V.split))A=m(S,V);else{var z=KS(l,a);z&&(A=m(S,z))}return A||!!S.id}function m(S,C){var A=!1,V=", session will be reset",z=C.split("|");if(z.length>=2)try{var b=+z[1]||0,I=+z[2]||0;isNaN(b)||b<=0?Z(l,2,27,"AI session acquisition date is 0"+V):isNaN(I)||I<=0?Z(l,2,27,"AI session renewal date is 0"+V):z[0]&&(S.id=z[0],S[Gl]=b,S[Nf]=I,A=!0)}catch(B){Z(l,1,9,"Error parsing ai_session value ["+(C||"")+"]"+V+" - "+je(B),{exception:se(B)})}return A}function v(S){var C=t.getNewId||ep;d[Ba].id=C(t.idLength||22),d[Ba][Gl]=S,_(d[Ba],S),Ju()||Z(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function _(S,C){var A=S[Gl];S[Nf]=C;var V=f,z=A+u-C,b=[S.id,A,C],I=0;z<V?I=z/1e3:I=V/1e3;var B=t.cookieDomain||null;c.set(a,b.join("|"),u>0?I:null,B),s=C}function g(S,C,A){qS(l,a,[S,C,A].join("|"))}})}return e.__ieDyn=1,e}(),JV=function(){function e(t,n,r,i){var a=this;a.traceID=t||_i(),a.parentID=n;var s=ir();!r&&s&&s.pathname&&(r=s.pathname),a.name=Et(i,r)}return e}();function wE(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var QV=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var i=la(n),a=pp(n),s;et(e,this,function(l){Le(l,"config",{g:function(){return t}});var c=mt(t,function(){var p=t.userCookiePostfix||"";s=e.userCookieName+p;var h=a.get(s);if(h){l[Ef]=!1;var m=h.split(e[Wl]);m.length>0&&(l.id=m[0],l[Sf]=!!l.id)}if(!l.id){l.id=u();var v=f(l.id);d(v.join(e[Wl]));var _=(t.namePrefix||"")+"ai_session";cx(i,_)}l[ns]=t[ns]||void 0;var g=a.get(e[jm]);if(g){g=decodeURI(g);var S=g.split(e[Wl]);S[0]&&(l[rs]=S[0]),S.length>1&&S[1]&&(l[ns]=S[1])}});r&&r.add(c);function u(){var p=t||{},h=p.getNewId||ep,m=h(p.idLength?t.idLength:22);return m}function f(p){var h=bo(new Date);l.accountAcquisitionDate=h,l[Ef]=!0;var m=[p,h];return m}function d(p){var h=31536e3;l[Sf]=a.set(s,p,h)}l.setAuthenticatedUserContext=function(p,h,m){m===void 0&&(m=!1);var v=!wE(p)||h&&!wE(h);if(v){Z(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}l[rs]=p;var _=l[rs];h&&(l[ns]=h,_=[l[rs],l.accountId].join(e[Wl])),m&&a.set(e[jm],encodeURI(_))},l.clearAuthenticatedUserContext=function(){l[rs]=null,l[ns]=null,a.del(e[jm])},l.update=function(p){if(l.id!==p||!l[Sf]){var h=p||u(),m=f(h);d(m.join(e[Wl]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),wf="ext",bf="tags";function is(e,t){e&&e[t]&&Ar(e[t]).length===0&&delete e[t]}function bE(){return null}var ZV=function(){function e(t,n,r,i){var a=this,s=t.logger;et(e,this,function(l){if(l.appId=bE,l[Tf]=bE,l.application=new BV,l.internal=new GV(n,i),Hc()){l[yf]=new XV(n,t,i),l.device=new UV,l.location=new WV,l.user=new QV(n,t,i);var c=void 0,u=void 0,f;r&&(c=r.getTraceId(),u=r.getSpanId(),f=r.getName()),l[Wm]=new JV(c,u,f,s),l[gf]=new NE}l[Tf]=function(){var d=l[gf],p=null;if(d&&ye(d.id))p=d.id;else{var h=(l[yf]||{})[Ba];p=h&&ye(h.id)?h.id:null}return p},l[vE]=function(d,p){Qe(qt(d.ext,un.AppExt),"sesId",l[Tf](),ye)},l[yE]=function(d,p){Qe(d.ext,un.OSExt,l.os)},l[_E]=function(d,p){var h=l.application;if(h){var m=qt(d,bf);Qe(m,tt.applicationVersion,h.ver,ye),Qe(m,tt.applicationBuild,h.build,ye)}},l.applyDeviceContext=function(d,p){var h=l.device;if(h){var m=qt(qt(d,wf),un.DeviceExt);Qe(m,"localId",h.id,ye),Qe(m,"ip",h.ip,ye),Qe(m,"model",h.model,ye),Qe(m,"deviceClass",h.deviceClass,ye)}},l[EE]=function(d,p){var h=l.internal;if(h){var m=qt(d,bf);Qe(m,tt.internalAgentVersion,h.agentVersion,ye),Qe(m,tt.internalSdkVersion,Et(s,h.sdkVersion,64),ye),(d.baseType===ll.dataType||d.baseType===bi.dataType)&&(Qe(m,tt.internalSnippet,h.snippetVer,ye),Qe(m,tt.internalSdkSrc,h.sdkSrc,ye))}},l[SE]=function(d,p){var h=a.location;h&&Qe(qt(d,bf,[]),tt.locationIp,h.ip,ye)},l[gE]=function(d,p){var h=l[Wm];if(h){var m=qt(qt(d,wf),un.TraceExt,{traceID:void 0,parentID:void 0});Qe(m,"traceID",h.traceID,ye,K),Qe(m,"name",h.name,ye,K),Qe(m,"parentID",h.parentID,ye,K)}},l.applyWebContext=function(d,p){var h=a.web;h&&Qe(qt(d,wf),un.WebExt,h)},l.applyUserContext=function(d,p){var h=l.user;if(h){var m=qt(d,bf,[]);Qe(m,tt.userAccountId,h[ns],ye);var v=qt(qt(d,wf),un.UserExt);Qe(v,"id",h.id,ye),Qe(v,"authId",h[rs],ye)}},l.cleanUp=function(d,p){var h=d.ext;h&&(is(h,un.DeviceExt),is(h,un.UserExt),is(h,un.WebExt),is(h,un.OSExt),is(h,un.AppExt),is(h,un.TraceExt))}})}return e.__ieDyn=1,e}(),Li,zm,as=null,eL=Fs((Li={accountId:as,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:as,sdkExtension:as,isBrowserLinkTrackingEnabled:!1,appId:as},Li[Tf]=as,Li.namePrefix=zm,Li[TE]=zm,Li.userCookiePostfix=zm,Li.idLength=22,Li.getNewId=as,Li)),tL=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=ef;var r,i,a,s,l;return et(t,n,function(c,u){f(),Le(c,"context",{g:function(){return s}}),c.initialize=function(h,m,v,_){u.initialize(h,m,v,_),d(h)},c.processTelemetry=function(h,m){if(!K(h)){m=c._getTelCtx(m),h.name===bi.envelopeType&&m.diagLog().resetInternalMessageCount();var v=s||{};v[gf]&&typeof s[gf].id!="string"&&v[yf]&&v[yf].update();var _=v.user;if(_&&!_[Sf]&&_.update(v.user.id),p(h,m),_&&_[Ef]&&(_[Ef]=!1,!l)){var g=new ll(72,(Jn()||{}).userAgent||"");QA(m.diagLog(),1,g)}c.processNext(h,m)}},c._doTeardown=function(h,m){var v=(h||{}).core();if(v&&v[Gm]){var _=v[Gm](!1);_===i&&v.setTraceCtx(a)}f()};function f(){r=null,i=null,a=null,s=null,l=!0}function d(h){var m=c.identifier,v=c.core;c._addHook(mt(h,function(){var _=Fn(null,h,v);h.storagePrefix&&Xp(h.storagePrefix),l=h.disableUserInitMessage!==!1,r=_.getExtCfg(m,eL),c._extConfig=r})),a=v[Gm](!1),s=new ZV(v,r,a,c._unloadHooks),i=zp(c.context[Wm],a),v.setTraceCtx(i),c.context.appId=function(){var _=v.getPlugin(h0);return _?_.plugin._appId:null}}function p(h,m){qt(h,"tags",[]),qt(h,"ext",{});var v=c.context;v[vE](h,m),v[_E](h,m),v.applyDeviceContext(h,m),v[gE](h,m),v.applyUserContext(h,m),v[yE](h,m),v.applyWebContext(h,m),v[SE](h,m),v[EE](h,m),v.cleanUp(h,m)}}),n}return t.__ieDyn=1,t}(Oo),DE="AuthenticatedUserContext",os="track",Km="snippet",nL="getCookieMgr",rL="startTrackPage",iL="stopTrackPage",qm="flush",aL="startTrackEvent",oL="stopTrackEvent",sL="addTelemetryInitializer",kE="pollInternalLogs",Xm="getPlugin",Jm="evtNamespace",lL=os+"Event",cL=os+"Trace",uL=os+"Metric",fL=os+"PageView",dL=os+"Exception",hL=os+"DependencyData",pL="set"+DE,mL="clear"+DE,vL="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Df="connectionString",Qm="version",Ua="queue",jl="instrumentationKey",ss="userOverrideEndpointUrl",Zm="endpointUrl",zl="onunloadFlush",kn="context",CE="addHousekeepingBeforeUnload",ev="sendMessage",_L="updateSnippetDefinitions",hr,ls,cs,tv,Kl,IE=[Km,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],RE="iKeyUsage",OE="CdnUsage",PE="SdkLoaderVer",gL="zipPayload",kf=void 0,yL={samplingRate:100,maxSendNumber:1},SL={monthInterval:3,daysOfMonth:[28]},Cf={disabled:!0,limit:Ln(yL),interval:Ln(SL)},EL=(hr={},hr[Df]=kf,hr.endpointUrl=kf,hr[jl]=kf,hr[ss]=kf,hr.diagnosticLogInterval=Du(TL,1e4),hr.featureOptIn=(ls={},ls[RE]={mode:3},ls[OE]={mode:2},ls[PE]={mode:2},ls[gL]={mode:1},ls),hr.throttleMgrCfg=Ln((cs={},cs[109]=Ln(Cf),cs[106]=Ln(Cf),cs[111]=Ln(Cf),cs[110]=Ln(Cf),cs)),hr.extensionConfig=Ln((tv={},tv.AppInsightsCfgSyncPlugin=Ln({cfgUrl:vL,syncMode:2}),tv)),hr);function TL(e){return e&&e>0}function AE(e,t){return Js(function(n,r){cn(t,function(i){var a=i&&i.value,s=null;!i.rejected&&a&&(e[Df]=a,s=QS(a)),n(s)})})}var NL=function(){function e(t){var n=this,r,i,a,s,l,c,u,f,d,p,h,m,v,_;et(e,this,function(g){A(),Le(g,"config",{g:function(){return f}}),oe(["pluginVersionStringArr","pluginVersionString"],function(b){Le(g,b,{g:function(){return u?u[b]:null}})}),s=""+(t.sv||t[Qm]||""),t[Ua]=t[Ua]||[],t[Qm]=t[Qm]||2;var S=Nn(t.config||{},EL);f=S.cfg,d=new nV,Le(g,"appInsights",{g:function(){return d}}),i=new tL,r=new $V,a=new RV,u=new PM,Le(g,"core",{g:function(){return u}}),z(mt(S,function(){var b=f[Df];if(oi(b)){var I=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[jl],j=E.value;D=j&&j.instrumentationkey||D,q(D)}})}),B=f[ss];K(B)&&(B=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[Zm],j=E.value,x=j&&j.ingestionendpoint;D=x?x+Ao:D,q(D)}})})),f[jl]=I,f[Zm]=B}if(ye(b)&&b){var k=QS(b),P=k.ingestionendpoint;f.endpointUrl=f[ss]?f[ss]:P+Ao,f[jl]=k.instrumentationkey||f[jl]}f.endpointUrl=f[ss]?f[ss]:f[Zm]})),g[Km]=t,g[qm]=function(b,I){b===void 0&&(b=!0);var B;return xu(u,function(){return"AISKU.flush"},function(){b&&!I&&(B=hi(function(q){I=q}));var k=1,P=function(){k--,k===0&&I()};oe(u.getChannels(),function(q){q&&(k++,q[qm](b,P))}),P()},null,b),B},g[zl]=function(b){b===void 0&&(b=!0),oe(u.getChannels(),function(I){I[zl]?I[zl]():I[qm](b)})},g.loadAppInsights=function(b,I,B){b===void 0&&(b=!1),b&&iP("Legacy Mode is no longer supported");function k(P){if(P){var q="";K(s)||(q+=s),g[kn]&&g[kn].internal&&(g[kn].internal.snippetVer=q||"-"),Me(g,function(te,E){ye(te)&&!Se(E)&&te&&te[0]!=="_"&&Ft(IE,te)===-1&&P[te]!==E&&(P[te]=E)})}}return xu(g.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(f,[a,i,r,d,p],I,B),Le(g,"context",{g:function(){return i[kn]}}),h||(h=new fx(u));var P=wL();P&&g[kn]&&(g[kn].internal.sdkSrc=P),k(g[Km]),g.emptyQueue(),g[kE](),g[CE](g),z(mt(S,function(){var q=!1;f.throttleMgrCfg[109]&&(q=!f.throttleMgrCfg[109].disabled),!h.isReady()&&f.extensionConfig&&f.extensionConfig[p.identifier]&&q&&h.onReadyState(!0),!m&&!f[Df]&&gu(RE,f,!0)&&(h[ev](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),m=!0),!v&&g[kn].internal.sdkSrc&&g[kn].internal.sdkSrc.indexOf("az416426")!=-1&&gu(OE,f,!0)&&(h[ev](110,"See Cdn support notice at aka.ms/JsActiveCdn"),v=!0),!_&&parseInt(s)<6&&gu(PE,f,!0)&&(h[ev](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),_=!0)}))}),g},g[_L]=function(b){eA(b,g,function(I){return I&&Ft(IE,I)===-1})},g.emptyQueue=function(){try{if(ke(g.snippet[Ua])){for(var b=g.snippet[Ua].length,I=0;I<b;I++){var B=g.snippet[Ua][I];B()}g.snippet[Ua]=void 0,delete g.snippet[Ua]}}catch(P){var k={};P&&Se(P.toString)&&(k.exception=P.toString())}},g[CE]=function(b){if(Hc()||Pg()){var I=function(){if(b[zl](!1),Se(g.core[Xm])){var k=n.core[Xm](ef);if(k){var P=k.plugin;P&&P[kn]&&P[kn]._sessionManager&&P[kn]._sessionManager.backup()}}},B=!1;c||(c=Si(l,u[Jm]&&u[Jm]())),z(mt(f,function(k){var P=k.cfg,q=b.appInsights,te=Fn(null,P,q.core),E=te.getExtCfg(q.identifier||p0);V();var D=P.disablePageUnloadEvents;E.disableFlushOnBeforeUnload||(GM(I,D,c)&&(B=!0),Pp(I,D,c)&&(B=!0),!B&&!yA()&&Z(u.logger,1,19,"Could not add handler for beforeunload and pagehide")),!B&&!E.disableFlushOnUnload&&Pp(I,D,c)}))}},g.getSender=function(){return a},g.unload=function(b,I,B){var k=!1,P;b&&!I&&(P=hi(function(te){I=te}));function q(te){k||(k=!0,A(),I&&I(te))}return g[zl](b),V(),u.unload&&u.unload(b,q,B),P},Zs(g,d,[nL,lL,fL,"trackPageViewPerformance",dL,"_onerror",cL,uL,rL,iL,aL,oL]),Zs(g,C,[hL,"addDependencyListener","addDependencyInitializer"]),Zs(g,u,[sL,kE,"stopPollingInternalLogs",Xm,"addPlugin",Jm,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Zs(g,function(){var b=i[kn];return b?b.user:null},[pL,mL]);function C(){return r}function A(){l=Tn("AISKU"),c=null,r=null,i=null,a=null,s=null,h=null,m=!1,v=!1,_=!1,p=new uV}function V(){c&&(WM(null,c),jM(null,c))}function z(b){u.addUnloadHook(b)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function wL(){if(Kl)return Kl;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var r=(document||{}).currentScript;r&&(e=r.src)}catch{}if(e){try{var i=e.toLowerCase();if(i){var a="";oe(n,function(s,l){if(jt(i,s)!==-1)return a="cdn"+(l+1),jt(i,"/scripts/")===-1&&(jt(i,"/next/")!==-1?a+="-next":jt(i,"/beta/")!==-1&&(a+="-beta")),Kl=a+(t?".mod":""),-1})}}catch{}Kl=e}return Kl}function ME(e){const t=new NL({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const bL={install:function(e,t){const n=ME(t.instrumentationKey),r=new mO(t.loggingLevel,n);As.register(r)}};var pr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(pr||{});function DL(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function kL(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class CL{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(pr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(pr.Search)){const n=kL(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(pr.Sort)){const n=DL(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(pr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const IL={install:function(e,t){const n=new CL(t.eventsToLog);e.config.globalProperties.$router.afterEach(i=>{var a;n.trackPageView({name:(a=i.name)==null?void 0:a.toString(),uri:i.fullPath})}),Qa.register(n)}};class RL{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){this.eventShouldBeRecorded(pr.PageView)&&this.appInsights.trackPageView()}trackSearch(t){if(this.eventShouldBeRecorded(pr.Search)){const n=t.map(i=>i.summariseStateAsObject()),r=t.map(i=>i.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:r}})}}trackSort(t){this.eventShouldBeRecorded(pr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(pr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const OL={install:function(e,t){const n=ME(t.instrumentationKey),r=new RL(t.eventsToLog,n),i=a=>{var l;const s=(l=a.name)==null?void 0:l.valueOf();r.trackPageView({name:s,uri:a.path})};Ps.add({priority:fg.Low,action:i}),Qa.register(r)}};Ke.CapeApplicationInsightsAnalyticsPlugin=OL,Ke.CapeApplicationInsightsLoggingPlugin=bL,Ke.CapeConsoleAnalyticsPlugin=IL,Ke.CapeConsoleLoggingPlugin=pO,Ke.CapeEvent=pr,Ke.CapeLogger=As,Ke.CapePlugin=pg,Ke.Filter=Qf,Ke.LoggingLevel=Qt,Ke.createCapeApp=dO,Ke.useDatasetStore=ti,Ke.useFieldStore=Za,Ke.useFilterStore=_t,Ke.usePropertyStore=It,Ke.useRecordStore=Sr,Ke.useSearchResultsStore=Bt,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
|