jplan-pack 0.6.723 → 0.6.725

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.
@@ -1,35 +1,35 @@
1
- "use strict";const l=require("vue"),ff=require("@vueuse/core"),it=require("vuetify/lib/components/VBtn/index.mjs"),Vo=require("vuetify/components"),pl=require("vuetify/lib/components/VIcon/index.mjs"),xt=require("vuetify/lib/components/VCard/index.mjs"),Zc=require("vuetify/lib/components/VDialog/index.mjs"),pi=require("vuetify/lib/components/VDivider/index.mjs"),Qe=require("vuetify/lib/components/VGrid/index.mjs"),ky=require("vuetify/lib/components/VAvatar/index.mjs"),mf=require("vuetify/lib/components/VImg/index.mjs"),Qt=require("vuetify/lib/components/VList/index.mjs"),gf=require("vuetify/lib/components/VMenu/index.mjs"),Ny=require("vuetify/lib/components/VDataTable/index.mjs"),EO=require("vuetify/lib/components/VTextField/index.mjs"),ls=require("vuetify/lib/components/VSelect/index.mjs"),wO=require("vuetify/lib/components/VCheckbox/index.mjs"),TO=require("vuetify/lib/components/VChip/index.mjs"),ys=require("vuetify/lib/components/VLabel/index.mjs"),bO=require("vuetify/lib/components/VTextarea/index.mjs"),IO=require("vuetify/lib/components/VBtnToggle/index.mjs");function SO(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const AO=SO(ff),kO={key:0},NO={key:1},Bl=l.defineComponent({__name:"CopyButton",props:{contentToCopy:{},size:{},color:{}},setup(n){const e=n,{copy:t,copied:r,isSupported:o}=ff.useClipboard();return(a,c)=>{const d=l.resolveComponent("CopyIcon");return l.unref(o)?(l.openBlock(),l.createElementBlock("span",kO,[l.createVNode(it.VBtn,{icon:"",variant:"text",onClick:c[0]||(c[0]=h=>l.unref(t)(e.contentToCopy)),size:a.size,color:a.color},{default:l.withCtx(()=>[l.createVNode(d,{size:a.size},null,8,["size"])]),_:1},8,["size","color"]),l.unref(r)?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle({fontSize:typeof e.size=="number"?e.size-4+"px":void 0}),class:"ms-1"}," Copied ",4)):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("p",NO,"Your browser does not support Clipboard API"))}}}),s_=l.defineComponent({__name:"IconSet",props:{item:{},level:{default:0},size:{default:25},stroke:{default:1.5},color:{},svg:{default:null}},setup(n){return(e,t)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[typeof e.item=="object"&&"name"in e.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.item.name),{key:0,size:e.size,"stroke-width":e.stroke,color:e.color},null,8,["size","stroke-width","color"])):l.createCommentVNode("",!0),typeof e.item=="string"?(l.openBlock(),l.createBlock(pl.VIcon,{key:1,color:e.color,size:e.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.item),1)]),_:1},8,["color","size"])):l.createCommentVNode("",!0)],64))}}),Ry=l.defineComponent({__name:"JIconBtn",props:{variant:{default:"text"},icon:{},color:{default:"secondary"},tooltip:{},size:{}},emits:["click"],setup(n){const e=n,t=l.useSlots();return(r,o)=>r.tooltip?(l.openBlock(),l.createBlock(l.unref(Vo.VTooltip),{key:0,text:r.tooltip,"open-delay":"1000"},{activator:l.withCtx(({props:a})=>[l.createVNode(l.unref(Vo.VBtn),l.mergeProps(a,{variant:r.variant,color:r.color,icon:"",size:r.size,onClick:o[0]||(o[0]=c=>r.$emit("click"))}),{default:l.withCtx(()=>[!l.unref(t).default&&a.icon?(l.openBlock(),l.createBlock(s_,{key:0,item:a.icon,size:a.size},null,8,["item","size"])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")]),_:2},1040,["variant","color","size"])]),_:3},8,["text"])):(l.openBlock(),l.createBlock(l.unref(Vo.VBtn),{key:1,variant:r.variant,color:r.color,icon:"",size:r.size,onClick:o[1]||(o[1]=a=>r.$emit("click"))},{default:l.withCtx(()=>[!l.unref(t).default&&e.icon?(l.openBlock(),l.createBlock(s_,{key:0,item:e.icon,size:e.size},null,8,["item","size"])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")]),_:3},8,["variant","color","size"]))}}),Oy=l.defineComponent({__name:"JBtn",props:{variant:{default:"flat"},text:{},icon:{},color:{default:"secondary"},tooltip:{}},emits:["click"],setup(n){return(e,t)=>(l.openBlock(),l.createBlock(l.unref(Vo.VBtn),{"prepend-icon":e.icon,variant:e.variant,color:e.color,tooltip:e.tooltip,onClick:t[0]||(t[0]=r=>e.$emit("click"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.text)+" ",1),l.renderSlot(e.$slots,"default")]),_:3},8,["prepend-icon","variant","color","tooltip"]))}});var Py=!1;function Mc(n,e,t){return Array.isArray(n)?(n.length=Math.max(n.length,e),n.splice(e,1,t),t):(n[e]=t,t)}function Dd(n,e){if(Array.isArray(n)){n.splice(e,1);return}delete n[e]}function RO(){return My().__VUE_DEVTOOLS_GLOBAL_HOOK__}function My(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const OO=typeof Proxy=="function",PO="devtools-plugin:setup",MO="plugin:settings:set";let Ki,Eh;function DO(){var n;return Ki!==void 0||(typeof window<"u"&&window.performance?(Ki=!0,Eh=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Ki=!0,Eh=globalThis.perf_hooks.performance):Ki=!1),Ki}function LO(){return DO()?Eh.now():Date.now()}class xO{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const c in e.settings){const d=e.settings[c];r[c]=d.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},r);try{const c=localStorage.getItem(o),d=JSON.parse(c);Object.assign(a,d)}catch{}this.fallbacks={getSettings(){return a},setSettings(c){try{localStorage.setItem(o,JSON.stringify(c))}catch{}a=c},now(){return LO()}},t&&t.on(MO,(c,d)=>{c===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(c,d)=>this.target?this.target.on[d]:(...h)=>{this.onQueue.push({method:d,args:h})}}),this.proxiedTarget=new Proxy({},{get:(c,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...h)=>(this.targetQueue.push({method:d,args:h,resolve:()=>{}}),this.fallbacks[d](...h)):(...h)=>new Promise(m=>{this.targetQueue.push({method:d,args:h,resolve:m})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function pf(n,e){const t=n,r=My(),o=RO(),a=OO&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(PO,n,e);else{const c=a?new xO(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:c}),c&&e(c.proxiedTarget)}}/*!
1
+ "use strict";const l=require("vue"),ff=require("@vueuse/core"),it=require("vuetify/lib/components/VBtn/index.mjs"),Vo=require("vuetify/components"),pl=require("vuetify/lib/components/VIcon/index.mjs"),xt=require("vuetify/lib/components/VCard/index.mjs"),Zc=require("vuetify/lib/components/VDialog/index.mjs"),pi=require("vuetify/lib/components/VDivider/index.mjs"),Qe=require("vuetify/lib/components/VGrid/index.mjs"),ky=require("vuetify/lib/components/VAvatar/index.mjs"),mf=require("vuetify/lib/components/VImg/index.mjs"),Qt=require("vuetify/lib/components/VList/index.mjs"),gf=require("vuetify/lib/components/VMenu/index.mjs"),Ny=require("vuetify/lib/components/VDataTable/index.mjs"),CO=require("vuetify/lib/components/VTextField/index.mjs"),ls=require("vuetify/lib/components/VSelect/index.mjs"),EO=require("vuetify/lib/components/VCheckbox/index.mjs"),wO=require("vuetify/lib/components/VChip/index.mjs"),ys=require("vuetify/lib/components/VLabel/index.mjs"),TO=require("vuetify/lib/components/VTextarea/index.mjs"),bO=require("vuetify/lib/components/VBtnToggle/index.mjs");function IO(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const SO=IO(ff),AO={key:0},kO={key:1},Bl=l.defineComponent({__name:"CopyButton",props:{contentToCopy:{},size:{},color:{}},setup(n){const e=n,{copy:t,copied:r,isSupported:o}=ff.useClipboard();return(a,c)=>{const d=l.resolveComponent("CopyIcon");return l.unref(o)?(l.openBlock(),l.createElementBlock("span",AO,[l.createVNode(it.VBtn,{icon:"",variant:"text",onClick:c[0]||(c[0]=h=>l.unref(t)(e.contentToCopy)),size:a.size,color:a.color},{default:l.withCtx(()=>[l.createVNode(d,{size:a.size},null,8,["size"])]),_:1},8,["size","color"]),l.unref(r)?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle({fontSize:typeof e.size=="number"?e.size-4+"px":void 0}),class:"ms-1"}," Copied ",4)):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("p",kO,"Your browser does not support Clipboard API"))}}}),s_=l.defineComponent({__name:"IconSet",props:{item:{},level:{default:0},size:{default:25},stroke:{default:1.5},color:{},svg:{default:null}},setup(n){return(e,t)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[typeof e.item=="object"&&"name"in e.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.item.name),{key:0,size:e.size,"stroke-width":e.stroke,color:e.color},null,8,["size","stroke-width","color"])):l.createCommentVNode("",!0),typeof e.item=="string"?(l.openBlock(),l.createBlock(pl.VIcon,{key:1,color:e.color,size:e.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.item),1)]),_:1},8,["color","size"])):l.createCommentVNode("",!0)],64))}}),Ry=l.defineComponent({__name:"JIconBtn",props:{variant:{default:"text"},icon:{},color:{default:"secondary"},tooltip:{},size:{}},emits:["click"],setup(n){const e=n,t=l.useSlots();return(r,o)=>r.tooltip?(l.openBlock(),l.createBlock(l.unref(Vo.VTooltip),{key:0,text:r.tooltip,"open-delay":"1000"},{activator:l.withCtx(({props:a})=>[l.createVNode(l.unref(Vo.VBtn),l.mergeProps(a,{variant:r.variant,color:r.color,icon:"",size:r.size,onClick:o[0]||(o[0]=c=>r.$emit("click"))}),{default:l.withCtx(()=>[!l.unref(t).default&&a.icon?(l.openBlock(),l.createBlock(s_,{key:0,item:a.icon,size:a.size},null,8,["item","size"])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")]),_:2},1040,["variant","color","size"])]),_:3},8,["text"])):(l.openBlock(),l.createBlock(l.unref(Vo.VBtn),{key:1,variant:r.variant,color:r.color,icon:"",size:r.size,onClick:o[1]||(o[1]=a=>r.$emit("click"))},{default:l.withCtx(()=>[!l.unref(t).default&&e.icon?(l.openBlock(),l.createBlock(s_,{key:0,item:e.icon,size:e.size},null,8,["item","size"])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")]),_:3},8,["variant","color","size"]))}}),Oy=l.defineComponent({__name:"JBtn",props:{variant:{default:"flat"},text:{},icon:{},color:{default:"secondary"},tooltip:{}},emits:["click"],setup(n){return(e,t)=>(l.openBlock(),l.createBlock(l.unref(Vo.VBtn),{"prepend-icon":e.icon,variant:e.variant,color:e.color,tooltip:e.tooltip,onClick:t[0]||(t[0]=r=>e.$emit("click"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.text)+" ",1),l.renderSlot(e.$slots,"default")]),_:3},8,["prepend-icon","variant","color","tooltip"]))}});var Py=!1;function Mc(n,e,t){return Array.isArray(n)?(n.length=Math.max(n.length,e),n.splice(e,1,t),t):(n[e]=t,t)}function Dd(n,e){if(Array.isArray(n)){n.splice(e,1);return}delete n[e]}function NO(){return My().__VUE_DEVTOOLS_GLOBAL_HOOK__}function My(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const RO=typeof Proxy=="function",OO="devtools-plugin:setup",PO="plugin:settings:set";let Ki,Eh;function MO(){var n;return Ki!==void 0||(typeof window<"u"&&window.performance?(Ki=!0,Eh=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Ki=!0,Eh=globalThis.perf_hooks.performance):Ki=!1),Ki}function DO(){return MO()?Eh.now():Date.now()}class LO{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const c in e.settings){const d=e.settings[c];r[c]=d.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},r);try{const c=localStorage.getItem(o),d=JSON.parse(c);Object.assign(a,d)}catch{}this.fallbacks={getSettings(){return a},setSettings(c){try{localStorage.setItem(o,JSON.stringify(c))}catch{}a=c},now(){return DO()}},t&&t.on(PO,(c,d)=>{c===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(c,d)=>this.target?this.target.on[d]:(...h)=>{this.onQueue.push({method:d,args:h})}}),this.proxiedTarget=new Proxy({},{get:(c,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...h)=>(this.targetQueue.push({method:d,args:h,resolve:()=>{}}),this.fallbacks[d](...h)):(...h)=>new Promise(m=>{this.targetQueue.push({method:d,args:h,resolve:m})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function pf(n,e){const t=n,r=My(),o=NO(),a=RO&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(OO,n,e);else{const c=a?new LO(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:c}),c&&e(c.proxiedTarget)}}/*!
2
2
  * pinia v2.2.6
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let rs;const Cs=n=>rs=n,Dy=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function va(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Vr;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Vr||(Vr={}));const di=typeof window<"u",c_=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 UO(n,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}function _f(n,e,t){const r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Uy(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function Ly(n){const e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function el(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}const tl=typeof navigator=="object"?navigator:{userAgent:""},xy=/Macintosh/.test(tl.userAgent)&&/AppleWebKit/.test(tl.userAgent)&&!/Safari/.test(tl.userAgent),Uy=di?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!xy?BO:"msSaveOrOpenBlob"in tl?FO:VO:()=>{};function BO(n,e="download",t){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof n=="string"?(r.href=n,r.origin!==location.origin?Ly(r.href)?_f(n,e,t):(r.target="_blank",el(r)):el(r)):(r.href=URL.createObjectURL(n),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){el(r)},0))}function FO(n,e="download",t){if(typeof n=="string")if(Ly(n))_f(n,e,t);else{const r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){el(r)})}else navigator.msSaveOrOpenBlob(UO(n,t),e)}function VO(n,e,t,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return _f(n,e,t);const o=n.type==="application/octet-stream",a=/constructor/i.test(String(c_.HTMLElement))||"safari"in c_,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a||xy)&&typeof FileReader<"u"){const d=new FileReader;d.onloadend=function(){let h=d.result;if(typeof h!="string")throw r=null,new Error("Wrong reader.result type");h=c?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location.assign(h),r=null},d.readAsDataURL(n)}else{const d=URL.createObjectURL(n);r?r.location.assign(d):location.href=d,r=null,setTimeout(function(){URL.revokeObjectURL(d)},4e4)}}function Ut(n,e){const t="🍍 "+n;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(t,e):e==="error"?console.error(t):e==="warn"?console.warn(t):console.log(t)}function vf(n){return"_a"in n&&"install"in n}function By(){if(!("clipboard"in navigator))return Ut("Your browser doesn't support the Clipboard API","error"),!0}function Fy(n){return n instanceof Error&&n.message.toLowerCase().includes("document is not focused")?(Ut('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function HO(n){if(!By())try{await navigator.clipboard.writeText(JSON.stringify(n.state.value)),Ut("Global state copied to clipboard.")}catch(e){if(Fy(e))return;Ut("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function $O(n){if(!By())try{Vy(n,JSON.parse(await navigator.clipboard.readText())),Ut("Global state pasted from clipboard.")}catch(e){if(Fy(e))return;Ut("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function KO(n){try{Uy(new Blob([JSON.stringify(n.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Ut("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let ro;function WO(){ro||(ro=document.createElement("input"),ro.type="file",ro.accept=".json");function n(){return new Promise((e,t)=>{ro.onchange=async()=>{const r=ro.files;if(!r)return e(null);const o=r.item(0);return e(o?{text:await o.text(),file:o}:null)},ro.oncancel=()=>e(null),ro.onerror=t,ro.click()})}return n}async function zO(n){try{const t=await WO()();if(!t)return;const{text:r,file:o}=t;Vy(n,JSON.parse(r)),Ut(`Global state imported from "${o.name}".`)}catch(e){Ut("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Vy(n,e){for(const t in e){const r=n.state.value[t];r?Object.assign(r,e[t]):n.state.value[t]=e[t]}}function fr(n){return{_custom:{display:n}}}const Hy="🍍 Pinia (root)",nl="_root";function GO(n){return vf(n)?{id:nl,label:Hy}:{id:n.$id,label:n.$id}}function qO(n){if(vf(n)){const t=Array.from(n._s.keys()),r=n._s;return{state:t.map(a=>({editable:!0,key:a,value:n.state.value[a]})),getters:t.filter(a=>r.get(a)._getters).map(a=>{const c=r.get(a);return{editable:!1,key:a,value:c._getters.reduce((d,h)=>(d[h]=c[h],d),{})}})}}const e={state:Object.keys(n.$state).map(t=>({editable:!0,key:t,value:n.$state[t]}))};return n._getters&&n._getters.length&&(e.getters=n._getters.map(t=>({editable:!1,key:t,value:n[t]}))),n._customProperties.size&&(e.customProperties=Array.from(n._customProperties).map(t=>({editable:!0,key:t,value:n[t]}))),e}function jO(n){return n?Array.isArray(n)?n.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:fr(n.type),key:fr(n.key),oldValue:n.oldValue,newValue:n.newValue}:{}}function YO(n){switch(n){case Vr.direct:return"mutation";case Vr.patchFunction:return"$patch";case Vr.patchObject:return"$patch";default:return"unknown"}}let ua=!0;const rl=[],ci="pinia:mutations",Zt="pinia",{assign:JO}=Object,_l=n=>"🍍 "+n;function QO(n,e){pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:rl,app:n},t=>{typeof t.now!="function"&&Ut("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."),t.addTimelineLayer({id:ci,label:"Pinia 🍍",color:15064968}),t.addInspector({id:Zt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{HO(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await $O(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{KO(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zO(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=e._s.get(r);o?typeof o.$reset!="function"?Ut(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Ut(`Store "${r}" reset.`)):Ut(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),t.on.inspectComponent((r,o)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const c=r.componentInstance.proxy._pStores;Object.values(c).forEach(d=>{r.instanceData.state.push({type:_l(d.$id),key:"state",editable:!0,value:d._isOptionsAPI?{_custom:{value:l.toRaw(d.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>d.$reset()}]}}:Object.keys(d.$state).reduce((h,m)=>(h[m]=d.$state[m],h),{})}),d._getters&&d._getters.length&&r.instanceData.state.push({type:_l(d.$id),key:"getters",editable:!1,value:d._getters.reduce((h,m)=>{try{h[m]=d[m]}catch(g){h[m]=g}return h},{})})})}}),t.on.getInspectorTree(r=>{if(r.app===n&&r.inspectorId===Zt){let o=[e];o=o.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?o.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):Hy.toLowerCase().includes(r.filter.toLowerCase())):o).map(GO)}}),globalThis.$pinia=e,t.on.getInspectorState(r=>{if(r.app===n&&r.inspectorId===Zt){const o=r.nodeId===nl?e:e._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==nl&&(globalThis.$store=l.toRaw(o)),r.state=qO(o))}}),t.on.editInspectorState((r,o)=>{if(r.app===n&&r.inspectorId===Zt){const a=r.nodeId===nl?e:e._s.get(r.nodeId);if(!a)return Ut(`store "${r.nodeId}" not found`,"error");const{path:c}=r;vf(a)?c.unshift("state"):(c.length!==1||!a._customProperties.has(c[0])||c[0]in a.$state)&&c.unshift("$state"),ua=!1,r.set(a,c,r.state.value),ua=!0}}),t.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),a=e._s.get(o);if(!a)return Ut(`store "${o}" not found`,"error");const{path:c}=r;if(c[0]!=="state")return Ut(`Invalid path for store "${o}":
5
+ */let rs;const Cs=n=>rs=n,Dy=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function va(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Vr;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Vr||(Vr={}));const di=typeof window<"u",c_=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 xO(n,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}function _f(n,e,t){const r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Uy(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function Ly(n){const e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function el(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}const tl=typeof navigator=="object"?navigator:{userAgent:""},xy=/Macintosh/.test(tl.userAgent)&&/AppleWebKit/.test(tl.userAgent)&&!/Safari/.test(tl.userAgent),Uy=di?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!xy?UO:"msSaveOrOpenBlob"in tl?BO:FO:()=>{};function UO(n,e="download",t){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof n=="string"?(r.href=n,r.origin!==location.origin?Ly(r.href)?_f(n,e,t):(r.target="_blank",el(r)):el(r)):(r.href=URL.createObjectURL(n),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){el(r)},0))}function BO(n,e="download",t){if(typeof n=="string")if(Ly(n))_f(n,e,t);else{const r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){el(r)})}else navigator.msSaveOrOpenBlob(xO(n,t),e)}function FO(n,e,t,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return _f(n,e,t);const o=n.type==="application/octet-stream",a=/constructor/i.test(String(c_.HTMLElement))||"safari"in c_,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a||xy)&&typeof FileReader<"u"){const d=new FileReader;d.onloadend=function(){let h=d.result;if(typeof h!="string")throw r=null,new Error("Wrong reader.result type");h=c?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location.assign(h),r=null},d.readAsDataURL(n)}else{const d=URL.createObjectURL(n);r?r.location.assign(d):location.href=d,r=null,setTimeout(function(){URL.revokeObjectURL(d)},4e4)}}function Ut(n,e){const t="🍍 "+n;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(t,e):e==="error"?console.error(t):e==="warn"?console.warn(t):console.log(t)}function vf(n){return"_a"in n&&"install"in n}function By(){if(!("clipboard"in navigator))return Ut("Your browser doesn't support the Clipboard API","error"),!0}function Fy(n){return n instanceof Error&&n.message.toLowerCase().includes("document is not focused")?(Ut('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function VO(n){if(!By())try{await navigator.clipboard.writeText(JSON.stringify(n.state.value)),Ut("Global state copied to clipboard.")}catch(e){if(Fy(e))return;Ut("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function HO(n){if(!By())try{Vy(n,JSON.parse(await navigator.clipboard.readText())),Ut("Global state pasted from clipboard.")}catch(e){if(Fy(e))return;Ut("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function $O(n){try{Uy(new Blob([JSON.stringify(n.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Ut("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let ro;function KO(){ro||(ro=document.createElement("input"),ro.type="file",ro.accept=".json");function n(){return new Promise((e,t)=>{ro.onchange=async()=>{const r=ro.files;if(!r)return e(null);const o=r.item(0);return e(o?{text:await o.text(),file:o}:null)},ro.oncancel=()=>e(null),ro.onerror=t,ro.click()})}return n}async function WO(n){try{const t=await KO()();if(!t)return;const{text:r,file:o}=t;Vy(n,JSON.parse(r)),Ut(`Global state imported from "${o.name}".`)}catch(e){Ut("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Vy(n,e){for(const t in e){const r=n.state.value[t];r?Object.assign(r,e[t]):n.state.value[t]=e[t]}}function fr(n){return{_custom:{display:n}}}const Hy="🍍 Pinia (root)",nl="_root";function zO(n){return vf(n)?{id:nl,label:Hy}:{id:n.$id,label:n.$id}}function GO(n){if(vf(n)){const t=Array.from(n._s.keys()),r=n._s;return{state:t.map(a=>({editable:!0,key:a,value:n.state.value[a]})),getters:t.filter(a=>r.get(a)._getters).map(a=>{const c=r.get(a);return{editable:!1,key:a,value:c._getters.reduce((d,h)=>(d[h]=c[h],d),{})}})}}const e={state:Object.keys(n.$state).map(t=>({editable:!0,key:t,value:n.$state[t]}))};return n._getters&&n._getters.length&&(e.getters=n._getters.map(t=>({editable:!1,key:t,value:n[t]}))),n._customProperties.size&&(e.customProperties=Array.from(n._customProperties).map(t=>({editable:!0,key:t,value:n[t]}))),e}function qO(n){return n?Array.isArray(n)?n.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:fr(n.type),key:fr(n.key),oldValue:n.oldValue,newValue:n.newValue}:{}}function jO(n){switch(n){case Vr.direct:return"mutation";case Vr.patchFunction:return"$patch";case Vr.patchObject:return"$patch";default:return"unknown"}}let ua=!0;const rl=[],ci="pinia:mutations",Zt="pinia",{assign:YO}=Object,_l=n=>"🍍 "+n;function JO(n,e){pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:rl,app:n},t=>{typeof t.now!="function"&&Ut("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."),t.addTimelineLayer({id:ci,label:"Pinia 🍍",color:15064968}),t.addInspector({id:Zt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{VO(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await HO(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$O(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await WO(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=e._s.get(r);o?typeof o.$reset!="function"?Ut(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Ut(`Store "${r}" reset.`)):Ut(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),t.on.inspectComponent((r,o)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const c=r.componentInstance.proxy._pStores;Object.values(c).forEach(d=>{r.instanceData.state.push({type:_l(d.$id),key:"state",editable:!0,value:d._isOptionsAPI?{_custom:{value:l.toRaw(d.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>d.$reset()}]}}:Object.keys(d.$state).reduce((h,m)=>(h[m]=d.$state[m],h),{})}),d._getters&&d._getters.length&&r.instanceData.state.push({type:_l(d.$id),key:"getters",editable:!1,value:d._getters.reduce((h,m)=>{try{h[m]=d[m]}catch(g){h[m]=g}return h},{})})})}}),t.on.getInspectorTree(r=>{if(r.app===n&&r.inspectorId===Zt){let o=[e];o=o.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?o.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):Hy.toLowerCase().includes(r.filter.toLowerCase())):o).map(zO)}}),globalThis.$pinia=e,t.on.getInspectorState(r=>{if(r.app===n&&r.inspectorId===Zt){const o=r.nodeId===nl?e:e._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==nl&&(globalThis.$store=l.toRaw(o)),r.state=GO(o))}}),t.on.editInspectorState((r,o)=>{if(r.app===n&&r.inspectorId===Zt){const a=r.nodeId===nl?e:e._s.get(r.nodeId);if(!a)return Ut(`store "${r.nodeId}" not found`,"error");const{path:c}=r;vf(a)?c.unshift("state"):(c.length!==1||!a._customProperties.has(c[0])||c[0]in a.$state)&&c.unshift("$state"),ua=!1,r.set(a,c,r.state.value),ua=!0}}),t.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),a=e._s.get(o);if(!a)return Ut(`store "${o}" not found`,"error");const{path:c}=r;if(c[0]!=="state")return Ut(`Invalid path for store "${o}":
6
6
  ${c}
7
- Only state can be modified.`);c[0]="$state",ua=!1,r.set(a,c,r.state.value),ua=!0}})})}function XO(n,e){rl.includes(_l(e.$id))||rl.push(_l(e.$id)),pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:rl,app:n,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},t=>{const r=typeof t.now=="function"?t.now.bind(t):Date.now;e.$onAction(({after:c,onError:d,name:h,args:m})=>{const g=$y++;t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛫 "+h,subtitle:"start",data:{store:fr(e.$id),action:fr(h),args:m},groupId:g}}),c(v=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛬 "+h,subtitle:"end",data:{store:fr(e.$id),action:fr(h),args:m,result:v},groupId:g}})}),d(v=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),logType:"error",title:"💥 "+h,subtitle:"end",data:{store:fr(e.$id),action:fr(h),args:m,error:v},groupId:g}})})},!0),e._customProperties.forEach(c=>{l.watch(()=>l.unref(e[c]),(d,h)=>{t.notifyComponentUpdate(),t.sendInspectorState(Zt),ua&&t.addTimelineEvent({layerId:ci,event:{time:r(),title:"Change",subtitle:c,data:{newValue:d,oldValue:h},groupId:Bo}})},{deep:!0})}),e.$subscribe(({events:c,type:d},h)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(Zt),!ua)return;const m={time:r(),title:YO(d),data:JO({store:fr(e.$id)},jO(c)),groupId:Bo};d===Vr.patchFunction?m.subtitle="⤵️":d===Vr.patchObject?m.subtitle="🧩":c&&!Array.isArray(c)&&(m.subtitle=c.type),c&&(m.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),t.addTimelineEvent({layerId:ci,event:m})},{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=l.markRaw(c=>{o(c),t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:fr(e.$id),info:fr("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)});const{$dispose:a}=e;e.$dispose=()=>{a(),t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt),t.getSettings().logStoreChanges&&Ut(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt),t.getSettings().logStoreChanges&&Ut(`"${e.$id}" store installed 🆕`)})}let $y=0,Bo;function l_(n,e,t){const r=e.reduce((o,a)=>(o[a]=l.toRaw(n)[a],o),{});for(const o in r)n[o]=function(){const a=$y,c=t?new Proxy(n,{get(...h){return Bo=a,Reflect.get(...h)},set(...h){return Bo=a,Reflect.set(...h)}}):n;Bo=a;const d=r[o].apply(c,arguments);return Bo=void 0,d}}function ZO({app:n,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){l_(e,Object.keys(t.actions),e._isOptionsAPI);const r=e._hotUpdate;l.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),l_(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)}}XO(n,e)}}function e0(){const n=l.effectScope(!0),e=n.run(()=>l.ref({}));let t=[],r=[];const o=l.markRaw({install(a){Cs(o),o._a=a,a.provide(Dy,o),a.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di&&QO(a,o),r.forEach(c=>t.push(c)),r=[]},use(a){return!this._a&&!Py?r.push(a):t.push(a),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(ZO),o}function Ky(n,e){for(const t in e){const r=e[t];if(!(t in n))continue;const o=n[t];va(o)&&va(r)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=Ky(o,r):n[t]=r}return n}const t0=()=>{};function u_(n,e,t,r=t0){n.push(e);const o=()=>{const a=n.indexOf(e);a>-1&&(n.splice(a,1),r())};return!t&&l.getCurrentScope()&&l.onScopeDispose(o),o}function Wi(n,...e){n.slice().forEach(t=>{t(...e)})}const n0=n=>n(),d_=Symbol(),Ld=Symbol();function Wy(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,r)=>n.set(r,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t],o=n[t];va(o)&&va(r)&&n.hasOwnProperty(t)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=Wy(o,r):n[t]=r}return n}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const{assign:er}=Object;function h_(n){return!!(l.isRef(n)&&n.effect)}function f_(n,e,t,r){const{state:o,actions:a,getters:c}=e,d=t.state.value[n];let h;function m(){!d&&(process.env.NODE_ENV==="production"||!r)&&(t.state.value[n]=o?o():{});const g=process.env.NODE_ENV!=="production"&&r?l.toRefs(l.ref(o?o():{}).value):l.toRefs(t.state.value[n]);return er(g,a,Object.keys(c||{}).reduce((v,p)=>(process.env.NODE_ENV!=="production"&&p in g&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${n}".`),v[p]=l.markRaw(l.computed(()=>{Cs(t);const w=t._s.get(n);return c[p].call(w,w)})),v),{}))}return h=r0(n,m,e,t,r,!0),h}function r0(n,e,t={},r,o,a){let c;const d=er({actions:{}},t);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const h={deep:!0};process.env.NODE_ENV!=="production"&&!Py&&(h.onTrigger=X=>{m?w=X:m==!1&&!M._hotUpdating&&(Array.isArray(w)?w.push(X):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let m,g,v=[],p=[],w;const C=r.state.value[n],T=l.ref({});let k;function I(X){let ee;m=g=!1,process.env.NODE_ENV!=="production"&&(w=[]),typeof X=="function"?(X(r.state.value[n]),ee={type:Vr.patchFunction,storeId:n,events:w}):(Wy(r.state.value[n],X),ee={type:Vr.patchObject,payload:X,storeId:n,events:w});const ue=k=Symbol();l.nextTick().then(()=>{k===ue&&(m=!0)}),g=!0,Wi(v,ee,r.state.value[n])}const N=function(){const{state:ee}=t,ue=ee?ee():{};this.$patch(Be=>{er(Be,ue)})};function D(){c.stop(),v=[],p=[],r._s.delete(n)}const L=(X,ee="")=>{if(d_ in X)return X[Ld]=ee,X;const ue=function(){Cs(r);const Be=Array.from(arguments),Ct=[],rn=[];function qt(Et){Ct.push(Et)}function Mt(Et){rn.push(Et)}Wi(p,{args:Be,name:ue[Ld],store:M,after:qt,onError:Mt});let at;try{at=X.apply(this&&this.$id===n?this:M,Be)}catch(Et){throw Wi(rn,Et),Et}return at instanceof Promise?at.then(Et=>(Wi(Ct,Et),Et)).catch(Et=>(Wi(rn,Et),Promise.reject(Et))):(Wi(Ct,at),at)};return ue[d_]=!0,ue[Ld]=ee,ue},K=l.markRaw({actions:{},getters:{},state:[],hotState:T}),q={_p:r,$id:n,$onAction:u_.bind(null,p),$patch:I,$reset:N,$subscribe(X,ee={}){const ue=u_(v,X,ee.detached,()=>Be()),Be=c.run(()=>l.watch(()=>r.state.value[n],Ct=>{(ee.flush==="sync"?g:m)&&X({storeId:n,type:Vr.direct,events:w},Ct)},er({},h,ee)));return ue},$dispose:D},M=l.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di?er({_hmrPayload:K,_customProperties:l.markRaw(new Set)},q):q);r._s.set(n,M);const ae=(r._a&&r._a.runWithContext||n0)(()=>r._e.run(()=>(c=l.effectScope()).run(()=>e({action:L}))));for(const X in ae){const ee=ae[X];if(l.isRef(ee)&&!h_(ee)||l.isReactive(ee))process.env.NODE_ENV!=="production"&&o&&Mc(T.value,X,l.toRef(ae,X)),process.env.NODE_ENV!=="production"&&K.state.push(X);else if(typeof ee=="function"){const ue=process.env.NODE_ENV!=="production"&&o?ee:L(ee,X);ae[X]=ue,process.env.NODE_ENV!=="production"&&(K.actions[X]=ee),d.actions[X]=ee}else process.env.NODE_ENV!=="production"&&h_(ee)&&(K.getters[X]=t.getters[X],di&&(ae._getters||(ae._getters=l.markRaw([]))).push(X))}if(er(M,ae),er(l.toRaw(M),ae),Object.defineProperty(M,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?T.value:r.state.value[n],set:X=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");I(ee=>{er(ee,X)})}}),process.env.NODE_ENV!=="production"&&(M._hotUpdate=l.markRaw(X=>{M._hotUpdating=!0,X._hmrPayload.state.forEach(ee=>{if(ee in M.$state){const ue=X.$state[ee],Be=M.$state[ee];typeof ue=="object"&&va(ue)&&va(Be)?Ky(ue,Be):X.$state[ee]=Be}Mc(M,ee,l.toRef(X.$state,ee))}),Object.keys(M.$state).forEach(ee=>{ee in X.$state||Dd(M,ee)}),m=!1,g=!1,r.state.value[n]=l.toRef(X._hmrPayload,"hotState"),g=!0,l.nextTick().then(()=>{m=!0});for(const ee in X._hmrPayload.actions){const ue=X[ee];Mc(M,ee,L(ue,ee))}for(const ee in X._hmrPayload.getters){const ue=X._hmrPayload.getters[ee],Be=l.computed(()=>(Cs(r),ue.call(M,M)));Mc(M,ee,Be)}Object.keys(M._hmrPayload.getters).forEach(ee=>{ee in X._hmrPayload.getters||Dd(M,ee)}),Object.keys(M._hmrPayload.actions).forEach(ee=>{ee in X._hmrPayload.actions||Dd(M,ee)}),M._hmrPayload=X._hmrPayload,M._getters=X._getters,M._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di){const X={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(ee=>{Object.defineProperty(M,ee,er({value:M[ee]},X))})}return r._p.forEach(X=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di){const ee=c.run(()=>X({store:M,app:r._a,pinia:r,options:d}));Object.keys(ee||{}).forEach(ue=>M._customProperties.add(ue)),er(M,ee)}else er(M,c.run(()=>X({store:M,app:r._a,pinia:r,options:d})))}),process.env.NODE_ENV!=="production"&&M.$state&&typeof M.$state=="object"&&typeof M.$state.constructor=="function"&&!M.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);c[0]="$state",ua=!1,r.set(a,c,r.state.value),ua=!0}})})}function QO(n,e){rl.includes(_l(e.$id))||rl.push(_l(e.$id)),pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:rl,app:n,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},t=>{const r=typeof t.now=="function"?t.now.bind(t):Date.now;e.$onAction(({after:c,onError:d,name:h,args:m})=>{const g=$y++;t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛫 "+h,subtitle:"start",data:{store:fr(e.$id),action:fr(h),args:m},groupId:g}}),c(v=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛬 "+h,subtitle:"end",data:{store:fr(e.$id),action:fr(h),args:m,result:v},groupId:g}})}),d(v=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),logType:"error",title:"💥 "+h,subtitle:"end",data:{store:fr(e.$id),action:fr(h),args:m,error:v},groupId:g}})})},!0),e._customProperties.forEach(c=>{l.watch(()=>l.unref(e[c]),(d,h)=>{t.notifyComponentUpdate(),t.sendInspectorState(Zt),ua&&t.addTimelineEvent({layerId:ci,event:{time:r(),title:"Change",subtitle:c,data:{newValue:d,oldValue:h},groupId:Bo}})},{deep:!0})}),e.$subscribe(({events:c,type:d},h)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(Zt),!ua)return;const m={time:r(),title:jO(d),data:YO({store:fr(e.$id)},qO(c)),groupId:Bo};d===Vr.patchFunction?m.subtitle="⤵️":d===Vr.patchObject?m.subtitle="🧩":c&&!Array.isArray(c)&&(m.subtitle=c.type),c&&(m.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),t.addTimelineEvent({layerId:ci,event:m})},{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=l.markRaw(c=>{o(c),t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:fr(e.$id),info:fr("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)});const{$dispose:a}=e;e.$dispose=()=>{a(),t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt),t.getSettings().logStoreChanges&&Ut(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(Zt),t.sendInspectorState(Zt),t.getSettings().logStoreChanges&&Ut(`"${e.$id}" store installed 🆕`)})}let $y=0,Bo;function l_(n,e,t){const r=e.reduce((o,a)=>(o[a]=l.toRaw(n)[a],o),{});for(const o in r)n[o]=function(){const a=$y,c=t?new Proxy(n,{get(...h){return Bo=a,Reflect.get(...h)},set(...h){return Bo=a,Reflect.set(...h)}}):n;Bo=a;const d=r[o].apply(c,arguments);return Bo=void 0,d}}function XO({app:n,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){l_(e,Object.keys(t.actions),e._isOptionsAPI);const r=e._hotUpdate;l.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),l_(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)}}QO(n,e)}}function ZO(){const n=l.effectScope(!0),e=n.run(()=>l.ref({}));let t=[],r=[];const o=l.markRaw({install(a){Cs(o),o._a=a,a.provide(Dy,o),a.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di&&JO(a,o),r.forEach(c=>t.push(c)),r=[]},use(a){return!this._a&&!Py?r.push(a):t.push(a),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(XO),o}function Ky(n,e){for(const t in e){const r=e[t];if(!(t in n))continue;const o=n[t];va(o)&&va(r)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=Ky(o,r):n[t]=r}return n}const e0=()=>{};function u_(n,e,t,r=e0){n.push(e);const o=()=>{const a=n.indexOf(e);a>-1&&(n.splice(a,1),r())};return!t&&l.getCurrentScope()&&l.onScopeDispose(o),o}function Wi(n,...e){n.slice().forEach(t=>{t(...e)})}const t0=n=>n(),d_=Symbol(),Ld=Symbol();function Wy(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,r)=>n.set(r,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t],o=n[t];va(o)&&va(r)&&n.hasOwnProperty(t)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=Wy(o,r):n[t]=r}return n}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const{assign:er}=Object;function h_(n){return!!(l.isRef(n)&&n.effect)}function f_(n,e,t,r){const{state:o,actions:a,getters:c}=e,d=t.state.value[n];let h;function m(){!d&&(process.env.NODE_ENV==="production"||!r)&&(t.state.value[n]=o?o():{});const g=process.env.NODE_ENV!=="production"&&r?l.toRefs(l.ref(o?o():{}).value):l.toRefs(t.state.value[n]);return er(g,a,Object.keys(c||{}).reduce((v,p)=>(process.env.NODE_ENV!=="production"&&p in g&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${n}".`),v[p]=l.markRaw(l.computed(()=>{Cs(t);const w=t._s.get(n);return c[p].call(w,w)})),v),{}))}return h=n0(n,m,e,t,r,!0),h}function n0(n,e,t={},r,o,a){let c;const d=er({actions:{}},t);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const h={deep:!0};process.env.NODE_ENV!=="production"&&!Py&&(h.onTrigger=X=>{m?w=X:m==!1&&!M._hotUpdating&&(Array.isArray(w)?w.push(X):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let m,g,v=[],p=[],w;const C=r.state.value[n],T=l.ref({});let k;function I(X){let ee;m=g=!1,process.env.NODE_ENV!=="production"&&(w=[]),typeof X=="function"?(X(r.state.value[n]),ee={type:Vr.patchFunction,storeId:n,events:w}):(Wy(r.state.value[n],X),ee={type:Vr.patchObject,payload:X,storeId:n,events:w});const ue=k=Symbol();l.nextTick().then(()=>{k===ue&&(m=!0)}),g=!0,Wi(v,ee,r.state.value[n])}const N=function(){const{state:ee}=t,ue=ee?ee():{};this.$patch(Be=>{er(Be,ue)})};function D(){c.stop(),v=[],p=[],r._s.delete(n)}const L=(X,ee="")=>{if(d_ in X)return X[Ld]=ee,X;const ue=function(){Cs(r);const Be=Array.from(arguments),Ct=[],rn=[];function qt(Et){Ct.push(Et)}function Mt(Et){rn.push(Et)}Wi(p,{args:Be,name:ue[Ld],store:M,after:qt,onError:Mt});let at;try{at=X.apply(this&&this.$id===n?this:M,Be)}catch(Et){throw Wi(rn,Et),Et}return at instanceof Promise?at.then(Et=>(Wi(Ct,Et),Et)).catch(Et=>(Wi(rn,Et),Promise.reject(Et))):(Wi(Ct,at),at)};return ue[d_]=!0,ue[Ld]=ee,ue},K=l.markRaw({actions:{},getters:{},state:[],hotState:T}),q={_p:r,$id:n,$onAction:u_.bind(null,p),$patch:I,$reset:N,$subscribe(X,ee={}){const ue=u_(v,X,ee.detached,()=>Be()),Be=c.run(()=>l.watch(()=>r.state.value[n],Ct=>{(ee.flush==="sync"?g:m)&&X({storeId:n,type:Vr.direct,events:w},Ct)},er({},h,ee)));return ue},$dispose:D},M=l.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di?er({_hmrPayload:K,_customProperties:l.markRaw(new Set)},q):q);r._s.set(n,M);const ae=(r._a&&r._a.runWithContext||t0)(()=>r._e.run(()=>(c=l.effectScope()).run(()=>e({action:L}))));for(const X in ae){const ee=ae[X];if(l.isRef(ee)&&!h_(ee)||l.isReactive(ee))process.env.NODE_ENV!=="production"&&o&&Mc(T.value,X,l.toRef(ae,X)),process.env.NODE_ENV!=="production"&&K.state.push(X);else if(typeof ee=="function"){const ue=process.env.NODE_ENV!=="production"&&o?ee:L(ee,X);ae[X]=ue,process.env.NODE_ENV!=="production"&&(K.actions[X]=ee),d.actions[X]=ee}else process.env.NODE_ENV!=="production"&&h_(ee)&&(K.getters[X]=t.getters[X],di&&(ae._getters||(ae._getters=l.markRaw([]))).push(X))}if(er(M,ae),er(l.toRaw(M),ae),Object.defineProperty(M,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?T.value:r.state.value[n],set:X=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");I(ee=>{er(ee,X)})}}),process.env.NODE_ENV!=="production"&&(M._hotUpdate=l.markRaw(X=>{M._hotUpdating=!0,X._hmrPayload.state.forEach(ee=>{if(ee in M.$state){const ue=X.$state[ee],Be=M.$state[ee];typeof ue=="object"&&va(ue)&&va(Be)?Ky(ue,Be):X.$state[ee]=Be}Mc(M,ee,l.toRef(X.$state,ee))}),Object.keys(M.$state).forEach(ee=>{ee in X.$state||Dd(M,ee)}),m=!1,g=!1,r.state.value[n]=l.toRef(X._hmrPayload,"hotState"),g=!0,l.nextTick().then(()=>{m=!0});for(const ee in X._hmrPayload.actions){const ue=X[ee];Mc(M,ee,L(ue,ee))}for(const ee in X._hmrPayload.getters){const ue=X._hmrPayload.getters[ee],Be=l.computed(()=>(Cs(r),ue.call(M,M)));Mc(M,ee,Be)}Object.keys(M._hmrPayload.getters).forEach(ee=>{ee in X._hmrPayload.getters||Dd(M,ee)}),Object.keys(M._hmrPayload.actions).forEach(ee=>{ee in X._hmrPayload.actions||Dd(M,ee)}),M._hmrPayload=X._hmrPayload,M._getters=X._getters,M._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di){const X={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(ee=>{Object.defineProperty(M,ee,er({value:M[ee]},X))})}return r._p.forEach(X=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di){const ee=c.run(()=>X({store:M,app:r._a,pinia:r,options:d}));Object.keys(ee||{}).forEach(ue=>M._customProperties.add(ue)),er(M,ee)}else er(M,c.run(()=>X({store:M,app:r._a,pinia:r,options:d})))}),process.env.NODE_ENV!=="production"&&M.$state&&typeof M.$state=="object"&&typeof M.$state.constructor=="function"&&!M.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
8
  state: () => new MyClass()
9
- Found in store "${M.$id}".`),C&&a&&t.hydrate&&t.hydrate(M.$state,C),m=!0,g=!0,M}/*! #__NO_SIDE_EFFECTS__ */function o0(n,e,t){let r,o;if(typeof n=="string")r=n,o=e;else if(o=n,r=n.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(c,d){const h=l.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&rs&&rs._testing?null:c)||(h?l.inject(Dy,null):null),c&&Cs(c),process.env.NODE_ENV!=="production"&&!rs)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
9
+ Found in store "${M.$id}".`),C&&a&&t.hydrate&&t.hydrate(M.$state,C),m=!0,g=!0,M}/*! #__NO_SIDE_EFFECTS__ */function r0(n,e,t){let r,o;if(typeof n=="string")r=n,o=e;else if(o=n,r=n.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(c,d){const h=l.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&rs&&rs._testing?null:c)||(h?l.inject(Dy,null):null),c&&Cs(c),process.env.NODE_ENV!=="production"&&!rs)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
10
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
11
- This will fail in production.`);c=rs,c._s.has(r)||(f_(r,o,c),process.env.NODE_ENV!=="production"&&(a._pinia=c));const m=c._s.get(r);if(process.env.NODE_ENV!=="production"&&d){const g="__hot:"+r,v=f_(g,er({},o),c,!0);d._hotUpdate(v),delete c.state.value[g],c._s.delete(g)}if(process.env.NODE_ENV!=="production"&&di){const g=l.getCurrentInstance();if(g&&g.proxy&&!d){const v=g.proxy,p="_pStores"in v?v._pStores:v._pStores={};p[r]=m}}return m}return a.$id=r,a}const i0=o0({id:"customizer",state:()=>({Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,setHorizontalLayout:!1,actTheme:"DarkJPLANTheme",fontTheme:"Roboto",inputBg:!1,boxed:!1}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(n){this.mini_sidebar=n},SET_CUSTOMIZER_DRAWER(n){this.Customizer_drawer=n},SET_LAYOUT(n){this.setHorizontalLayout=n},SET_THEME(n){this.actTheme=n},SET_FONT(n){this.fontTheme=n}}}),zi=l.ref({}),Ms=n=>{const e=l.computed(()=>n?zi.value[n]||!1:zi.value.default||!1),t=()=>{n?zi.value[n]=!0:zi.value.default=!0},r=()=>{n?zi.value[n]=!1:zi.value.default=!1};return l.onUnmounted(()=>{r()}),l.onMounted(()=>{r()}),{isDialogActive:e,openDialog:t,closeDialog:r}};var a0=Object.defineProperty,m_=Object.getOwnPropertySymbols,s0=Object.prototype.hasOwnProperty,c0=Object.prototype.propertyIsEnumerable,g_=(n,e,t)=>e in n?a0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,zy=(n,e)=>{for(var t in e||(e={}))s0.call(e,t)&&g_(n,t,e[t]);if(m_)for(var t of m_(e))c0.call(e,t)&&g_(n,t,e[t]);return n},Fl=n=>typeof n=="function",Vl=n=>typeof n=="string",Gy=n=>Vl(n)&&n.trim().length>0,l0=n=>typeof n=="number",hi=n=>typeof n>"u",Es=n=>typeof n=="object"&&n!==null,u0=n=>Hr(n,"tag")&&Gy(n.tag),qy=n=>window.TouchEvent&&n instanceof TouchEvent,jy=n=>Hr(n,"component")&&Yy(n.component),d0=n=>Fl(n)||Es(n),Yy=n=>!hi(n)&&(Vl(n)||d0(n)||jy(n)),p_=n=>Es(n)&&["height","width","right","left","top","bottom"].every(e=>l0(n[e])),Hr=(n,e)=>(Es(n)||Fl(n))&&e in n,h0=(n=>()=>n++)(0);function xd(n){return qy(n)?n.targetTouches[0].clientX:n.clientX}function __(n){return qy(n)?n.targetTouches[0].clientY:n.clientY}var f0=n=>{hi(n.remove)?n.parentNode&&n.parentNode.removeChild(n):n.remove()},Ds=n=>jy(n)?Ds(n.component):u0(n)?l.defineComponent({render(){return n}}):typeof n=="string"?n:l.toRaw(l.unref(n)),m0=n=>{if(typeof n=="string")return n;const e=Hr(n,"props")&&Es(n.props)?n.props:{},t=Hr(n,"listeners")&&Es(n.listeners)?n.listeners:{};return{component:Ds(n),props:e,listeners:t}},g0=()=>typeof window<"u",Hl=class{constructor(){this.allHandlers={}}getHandlers(n){return this.allHandlers[n]||[]}on(n,e){const t=this.getHandlers(n);t.push(e),this.allHandlers[n]=t}off(n,e){const t=this.getHandlers(n);t.splice(t.indexOf(e)>>>0,1)}emit(n,e){this.getHandlers(n).forEach(r=>r(e))}},p0=n=>["on","off","emit"].every(e=>Hr(n,e)&&Fl(n[e]));exports.TYPE=void 0;(function(n){n.SUCCESS="success",n.ERROR="error",n.WARNING="warning",n.INFO="info",n.DEFAULT="default"})(exports.TYPE||(exports.TYPE={}));exports.POSITION=void 0;(function(n){n.TOP_LEFT="top-left",n.TOP_CENTER="top-center",n.TOP_RIGHT="top-right",n.BOTTOM_LEFT="bottom-left",n.BOTTOM_CENTER="bottom-center",n.BOTTOM_RIGHT="bottom-right"})(exports.POSITION||(exports.POSITION={}));var Ln;(function(n){n.ADD="add",n.DISMISS="dismiss",n.UPDATE="update",n.CLEAR="clear",n.UPDATE_DEFAULTS="update_defaults"})(Ln||(Ln={}));var pr="Vue-Toastification",gr={type:{type:String,default:exports.TYPE.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Jy={type:gr.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ol={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:gr.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},wh={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Qy={transition:{type:[Object,String],default:`${pr}__bounce`}},_0={position:{type:String,default:exports.POSITION.TOP_RIGHT},draggable:gr.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:gr.trueBoolean,pauseOnHover:gr.trueBoolean,closeOnClick:gr.trueBoolean,timeout:wh.timeout,hideProgressBar:wh.hideProgressBar,toastClassName:gr.classNames,bodyClassName:gr.classNames,icon:Jy.customIcon,closeButton:ol.component,closeButtonClassName:ol.classNames,showCloseButtonOnHover:ol.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Hl}},v0={id:{type:[String,Number],required:!0,default:0},type:gr.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},y0={container:{type:[Object,Function],default:()=>document.body},newestOnTop:gr.trueBoolean,maxToasts:{type:Number,default:20},transition:Qy.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:n=>n},filterToasts:{type:Function,default:n=>n},containerClassName:gr.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},uo={CORE_TOAST:_0,TOAST:v0,CONTAINER:y0,PROGRESS_BAR:wh,ICON:Jy,TRANSITION:Qy,CLOSE_BUTTON:ol},Xy=l.defineComponent({name:"VtProgressBar",props:uo.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${pr}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function C0(n,e){return l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(n.style),class:l.normalizeClass(n.cpClass)},null,6)}Xy.render=C0;var E0=Xy,Zy=l.defineComponent({name:"VtCloseButton",props:uo.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ds(this.component):"button"},classes(){const n=[`${pr}__close-button`];return this.showOnHover&&n.push("show-on-hover"),n.concat(this.classNames)}}}),w0=l.createTextVNode(" × ");function T0(n,e){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.buttonComponent),l.mergeProps({"aria-label":n.ariaLabel,class:n.classes},n.$attrs),{default:l.withCtx(()=>[w0]),_:1},16,["aria-label","class"])}Zy.render=T0;var b0=Zy,eC={},I0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},S0=l.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),A0=[S0];function k0(n,e){return l.openBlock(),l.createElementBlock("svg",I0,A0)}eC.render=k0;var N0=eC,tC={},R0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},O0=l.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),P0=[O0];function M0(n,e){return l.openBlock(),l.createElementBlock("svg",R0,P0)}tC.render=M0;var v_=tC,nC={},D0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},L0=l.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),x0=[L0];function U0(n,e){return l.openBlock(),l.createElementBlock("svg",D0,x0)}nC.render=U0;var B0=nC,rC={},F0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},V0=l.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),H0=[V0];function $0(n,e){return l.openBlock(),l.createElementBlock("svg",F0,H0)}rC.render=$0;var K0=rC,oC=l.defineComponent({name:"VtIcon",props:uo.ICON,computed:{customIconChildren(){return Hr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Vl(this.customIcon)?this.trimValue(this.customIcon):Hr(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Hr(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Yy(this.customIcon)?Ds(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[exports.TYPE.DEFAULT]:v_,[exports.TYPE.INFO]:v_,[exports.TYPE.SUCCESS]:N0,[exports.TYPE.ERROR]:K0,[exports.TYPE.WARNING]:B0}[this.type]},iconClasses(){const n=[`${pr}__icon`];return this.hasCustomIcon?n.concat(this.customIconClass):n}},methods:{trimValue(n,e=""){return Gy(n)?n.trim():e}}});function W0(n,e){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.component),{class:l.normalizeClass(n.iconClasses)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.customIconChildren),1)]),_:1},8,["class"])}oC.render=W0;var z0=oC,iC=l.defineComponent({name:"VtToast",components:{ProgressBar:E0,CloseButton:b0,Icon:z0},inheritAttrs:!1,props:Object.assign({},uo.CORE_TOAST,uo.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const n=[`${pr}__toast`,`${pr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&n.push("disable-transition"),this.rtl&&n.push(`${pr}__toast--rtl`),n},bodyClasses(){return[`${pr}__toast-${Vl(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return p_(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Hr,getVueComponentFromObj:Ds,closeToast(){this.eventBus.emit(Ln.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const n=this.$el;n.addEventListener("touchstart",this.onDragStart,{passive:!0}),n.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const n=this.$el;n.removeEventListener("touchstart",this.onDragStart),n.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(n){this.beingDragged=!0,this.dragPos={x:xd(n),y:__(n)},this.dragStart=xd(n),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(n){this.beingDragged&&(n.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:xd(n),y:__(n)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,p_(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),G0=["role"];function q0(n,e){const t=l.resolveComponent("Icon"),r=l.resolveComponent("CloseButton"),o=l.resolveComponent("ProgressBar");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.classes),style:l.normalizeStyle(n.draggableStyle),onClick:e[0]||(e[0]=(...a)=>n.clickHandler&&n.clickHandler(...a)),onMouseenter:e[1]||(e[1]=(...a)=>n.hoverPause&&n.hoverPause(...a)),onMouseleave:e[2]||(e[2]=(...a)=>n.hoverPlay&&n.hoverPlay(...a))},[n.icon?(l.openBlock(),l.createBlock(t,{key:0,"custom-icon":n.icon,type:n.type},null,8,["custom-icon","type"])):l.createCommentVNode("v-if",!0),l.createElementVNode("div",{role:n.accessibility.toastRole||"alert",class:l.normalizeClass(n.bodyClasses)},[typeof n.content=="string"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(n.content),1)],2112)):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.getVueComponentFromObj(n.content)),l.mergeProps({key:1,"toast-id":n.id},n.hasProp(n.content,"props")?n.content.props:{},l.toHandlers(n.hasProp(n.content,"listeners")?n.content.listeners:{}),{onCloseToast:n.closeToast}),null,16,["toast-id","onCloseToast"]))],10,G0),n.closeButton?(l.openBlock(),l.createBlock(r,{key:1,component:n.closeButton,"class-names":n.closeButtonClassName,"show-on-hover":n.showCloseButtonOnHover,"aria-label":n.accessibility.closeButtonLabel,onClick:l.withModifiers(n.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):l.createCommentVNode("v-if",!0),n.timeout?(l.openBlock(),l.createBlock(o,{key:2,"is-running":n.isRunning,"hide-progress-bar":n.hideProgressBar,timeout:n.timeout,onCloseToast:n.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):l.createCommentVNode("v-if",!0)],38)}iC.render=q0;var j0=iC,aC=l.defineComponent({name:"VtTransition",props:uo.TRANSITION,emits:["leave"],methods:{hasProp:Hr,leave(n){n instanceof HTMLElement&&(n.style.left=n.offsetLeft+"px",n.style.top=n.offsetTop+"px",n.style.width=getComputedStyle(n).width,n.style.position="absolute")}}});function Y0(n,e){return l.openBlock(),l.createBlock(l.TransitionGroup,{tag:"div","enter-active-class":n.transition.enter?n.transition.enter:`${n.transition}-enter-active`,"move-class":n.transition.move?n.transition.move:`${n.transition}-move`,"leave-active-class":n.transition.leave?n.transition.leave:`${n.transition}-leave-active`,onLeave:n.leave},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}aC.render=Y0;var J0=aC,sC=l.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:j0,VtTransition:J0},props:Object.assign({},uo.CORE_TOAST,uo.CONTAINER,uo.TRANSITION),data(){return{count:0,positions:Object.values(exports.POSITION),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const n=this.eventBus;n.on(Ln.ADD,this.addToast),n.on(Ln.CLEAR,this.clearToasts),n.on(Ln.DISMISS,this.dismissToast),n.on(Ln.UPDATE,this.updateToast),n.on(Ln.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(n){Fl(n)&&(n=await n()),f0(this.$el),n.appendChild(this.$el)},setToast(n){hi(n.id)||(this.toasts[n.id]=n)},addToast(n){n.content=m0(n.content);const e=Object.assign({},this.defaults,n.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[n.type],n),t=this.defaults.filterBeforeCreate(e,this.toastArray);t&&this.setToast(t)},dismissToast(n){const e=this.toasts[n];!hi(e)&&!hi(e.onClose)&&e.onClose(),delete this.toasts[n]},clearToasts(){Object.keys(this.toasts).forEach(n=>{this.dismissToast(n)})},getPositionToasts(n){const e=this.filteredToasts.filter(t=>t.position===n).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(n){hi(n.container)||this.setup(n.container),this.defaults=Object.assign({},this.defaults,n)},updateToast({id:n,options:e,create:t}){this.toasts[n]?(e.timeout&&e.timeout===this.toasts[n].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[n],e))):t&&this.addToast(Object.assign({},{id:n},e))},getClasses(n){return[`${pr}__container`,n].concat(this.defaults.containerClassName)}}});function Q0(n,e){const t=l.resolveComponent("Toast"),r=l.resolveComponent("VtTransition");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.positions,o=>(l.openBlock(),l.createElementBlock("div",{key:o},[l.createVNode(r,{transition:n.defaults.transition,class:l.normalizeClass(n.getClasses(o))},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.getPositionToasts(o),a=>(l.openBlock(),l.createBlock(t,l.mergeProps({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}sC.render=Q0;var X0=sC,y_=(n={},e=!0)=>{const t=n.eventBus=n.eventBus||new Hl;e&&l.nextTick(()=>{const a=l.createApp(X0,zy({},n)),c=a.mount(document.createElement("div")),d=n.onMounted;if(hi(d)||d(c,a),n.shareAppContext){const h=n.shareAppContext;h===!0?console.warn(`[${pr}] App to share context with was not provided.`):(a._context.components=h._context.components,a._context.directives=h._context.directives,a._context.mixins=h._context.mixins,a._context.provides=h._context.provides,a.config.globalProperties=h.config.globalProperties)}});const r=(a,c)=>{const d=Object.assign({},{id:h0(),type:exports.TYPE.DEFAULT},c,{content:a});return t.emit(Ln.ADD,d),d.id};r.clear=()=>t.emit(Ln.CLEAR,void 0),r.updateDefaults=a=>{t.emit(Ln.UPDATE_DEFAULTS,a)},r.dismiss=a=>{t.emit(Ln.DISMISS,a)};function o(a,{content:c,options:d},h=!1){const m=Object.assign({},d,{content:c});t.emit(Ln.UPDATE,{id:a,options:m,create:h})}return r.update=o,r.success=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.SUCCESS})),r.info=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.INFO})),r.error=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.ERROR})),r.warning=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.WARNING})),r},Z0=()=>{const n=()=>console.warn(`[${pr}] This plugin does not support SSR!`);return new Proxy(n,{get(){return n}})};function ws(n){return g0()?p0(n)?y_({eventBus:n},!1):y_(n,!0):Z0()}var $l=Symbol("VueToastification"),yf=new Hl,eP=(n,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=n);const t=ws(zy({eventBus:yf},e));n.provide($l,t)},tP=n=>{const e=ws(n);l.getCurrentInstance()&&l.provide($l,e)},wr=n=>{if(n)return ws(n);const e=l.getCurrentInstance()?l.inject($l,void 0):void 0;return e||ws(yf)},nP=eP;const ve=l.ref(!1);var rP={name:"CircleOffIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-circle-off",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 3l18 18"},null),l.createTextVNode(" ")])}},oP={name:"DotsVerticalIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-dots-vertical",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},iP={name:"DotsIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-dots",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},aP={name:"EraserIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-eraser",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M18 13.3l-6.3 -6.3"},null),l.createTextVNode(" ")])}},cC={name:"ExclamationCircleIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-exclamation-circle",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 9v4"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 16v.01"},null),l.createTextVNode(" ")])}},sP={name:"FilterIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-filter",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"},null),l.createTextVNode(" ")])}},cP={name:"GripVerticalIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-grip-vertical",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},lP={name:"HierarchyIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-hierarchy",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M6.5 17.5l5.5 -4.5l5.5 4.5"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 7l0 6"},null),l.createTextVNode(" ")])}},uP={name:"LayoutSidebarRightCollapseIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-layout-sidebar-right-collapse",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 4v16"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 10l2 2l-2 2"},null),l.createTextVNode(" ")])}},dP={name:"RefreshIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-refresh",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"},null),l.createTextVNode(" ")])}},hP={name:"SearchIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-search",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M21 21l-6 -6"},null),l.createTextVNode(" ")])}},fP={name:"TableIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-table",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 10h18"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M10 3v18"},null),l.createTextVNode(" ")])}};const mP={class:"d-flex align-center"},gP={key:1},pP={class:"ms-auto"},Ls=l.defineComponent({__name:"JDialog",props:{ddId:{},variant:{default:"global"},title:{},text:{},width:{default:"500"},reference:{type:Boolean},buttons:{type:Boolean,default:!0},scrim:{default:"background"}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=n,r=e,o=l.ref(!1),{isDialogActive:a,closeDialog:c}=Ms(t.ddId);async function d(){try{await r("onCancel")}catch(m){console.error(m)}c()}async function h(){o.value=!0;try{await r("onSave")}catch(m){console.error(m)}o.value=!1,c()}return(m,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.variant==="global"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:0,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[0]||(g[0]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.createVNode(xt.VCard,{rounded:"",loading:o.value},{default:l.withCtx(()=>[l.createVNode(xt.VCardTitle,{class:"mt-2 px-5 d-flex"},{default:l.withCtx(()=>[l.createElementVNode("div",mP,[m.$slots.title?l.renderSlot(m.$slots,"title",{key:0}):(l.openBlock(),l.createElementBlock("div",gP,l.toDisplayString(t.title),1))]),l.createElementVNode("div",pP,[l.renderSlot(m.$slots,"heading-actions"),l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:d,variant:"plain"})])]),_:3}),l.createVNode(pi.VDivider,{class:"mx-5"}),l.createVNode(xt.VCardText,{class:"overflow-y-scroll"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3}),m.$slots.footer?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(pi.VDivider,{class:"mx-5 mt-2"}),l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[l.renderSlot(m.$slots,"footer")]),_:3})],64)):l.createCommentVNode("",!0),t.buttons?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(pi.VDivider,{class:"mx-5 mt-2"}),l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[m.$slots.metadata?(l.openBlock(),l.createBlock(Qe.VCol,{key:0,cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis ma-0 pa-0"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"metadata")]),_:3})):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createVNode(it.VBtn,{class:"j-btn-form",variant:"outlined",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"j-btn-form",variant:"flat",color:"secondary",onClick:h,loading:o.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.save")),1)]),_:1},8,["loading"])]),_:3})],64)):l.createCommentVNode("",!0)]),_:3},8,["loading"])]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0),m.variant==="confirm"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:1,scrim:"background",width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[1]||(g[1]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.createVNode(xt.VCard,{loading:o.value,title:t.title,rounded:"","min-height":"300"},{prepend:l.withCtx(()=>[l.createVNode(l.unref(cC),{color:"rgb(var(--v-theme-secondary))"})]),append:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:d,variant:"plain"})]),default:l.withCtx(()=>[l.createVNode(xt.VCardText,{class:"text-center mt-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.text),1)]),_:1}),l.createVNode(xt.VCardActions,{class:"d-flex"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"outlined",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"flat",color:"secondary",onClick:h},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.confirm")),1)]),_:1})]),_:1})]),_:1},8,["loading","title"])]),_:1},8,["width","modelValue"])):l.createCommentVNode("",!0),m.variant==="empty"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:2,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[2]||(g[2]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0)],64))}}),Cf=l.defineComponent({__name:"DeleteAllBtn",emits:["removeAll"],setup(n,{emit:e}){const{openDialog:t}=Ms("delete-all-__J"),r=e;return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Ls,{"dd-id":"delete-all-__J",variant:"confirm",title:"Confirm delete",text:"Are you sure you want to delete all selected items?","on-save":()=>r("removeAll")},null,8,["on-save"]),l.createVNode(it.VBtn,{onClick:l.unref(t),variant:"plain",color:"secondary","prepend-icon":"mdi-delete"},{default:l.withCtx(()=>a[0]||(a[0]=[l.createTextVNode(" Delete")])),_:1},8,["onClick"])],64))}}),lC=l.defineComponent({__name:"EditButton",emits:["editAll"],setup(n,{emit:e}){const t=e;return(r,o)=>(l.openBlock(),l.createBlock(it.VBtn,{onClick:o[0]||(o[0]=a=>t("editAll")),variant:"plain",color:"secondary","prepend-icon":"mdi-pencil"},{default:l.withCtx(()=>o[1]||(o[1]=[l.createTextVNode(" Edit")])),_:1}))}}),uC=l.defineComponent({__name:"DotsMenu",props:{variant:{default:"text"},color:{},orientation:{},size:{}},setup(n){return(e,t)=>(l.openBlock(),l.createBlock(l.unref(Vo.VMenu),{"close-on-content-click":!0},{activator:l.withCtx(({props:r})=>[l.createVNode(l.unref(Vo.VBtn),l.mergeProps({variant:e.variant},r,{icon:""}),{default:l.withCtx(()=>[e.orientation==="y"?(l.openBlock(),l.createBlock(l.unref(oP),{key:0,size:e.size,color:`rgb(var(--v-theme-${e.color}))`,class:"cursor-pointer"},null,8,["size","color"])):(l.openBlock(),l.createBlock(l.unref(iP),{key:1,size:e.size,color:`rgb(var(--v-theme-${e.color}))`,class:"cursor-pointer"},null,8,["size","color"]))]),_:2},1040,["variant"])]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3}))}}),Kl=l.defineComponent({__name:"ParentCard",props:{title:{},height:{default:"100%"},loading:{type:Boolean}},setup(n){const e=n;return(t,r)=>(l.openBlock(),l.createBlock(xt.VCard,{"min-height":t.height,height:t.height,loading:t.loading,class:"bg-surface rounded-sm pa-5"},{default:l.withCtx(()=>[e.title?(l.openBlock(),l.createBlock(xt.VCardTitle,{key:0,class:"pa-0"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1})):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"default")]),_:3},8,["min-height","height","loading"]))}}),dC=l.defineComponent({__name:"ConfirmDialog",props:{title:{},text:{},width:{},loading:{type:Boolean}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=n,r=l.ref(!1),o=l.ref(!1);l.onUnmounted(()=>{r.value=!1});const a=e;async function c(){try{await a("onCancel")}catch(h){console.error(h)}r.value=!1}async function d(){o.value=!0;try{await a("onSave")}catch(h){console.error(h)}o.value=!1,r.value=!1}return(h,m)=>(l.openBlock(),l.createBlock(Zc.VDialog,{scrim:"rgb(0,0,0,100)",width:t.width},{activator:l.withCtx(({isActive:g,props:v})=>[l.renderSlot(h.$slots,"button",l.normalizeProps(l.guardReactiveProps({isActive:g,props:v})))]),default:l.withCtx(({isActive:g})=>[l.createVNode(xt.VCard,{loading:o.value,title:t.title,rounded:"","min-height":"300"},{prepend:l.withCtx(()=>[l.createVNode(l.unref(cC),{color:"rgb(var(--v-theme-secondary))"})]),append:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:c,variant:"plain"})]),default:l.withCtx(()=>[l.createVNode(xt.VCardText,{class:"text-center mt-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.text),1)]),_:1}),l.createVNode(xt.VCardActions,{class:"d-flex"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"outlined",color:"secondary",onClick:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"flat",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.$t("actions.confirm")),1)]),_:1})]),_:1})]),_:1},8,["loading","title"])]),_:3},8,["width"]))}}),Ud="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",hC=l.defineComponent({__name:"JAvatar",props:{src:{}},setup(n){const e=n,t=l.ref(e.src),r=l.computed(()=>t.value||Ud);function o(){t.value=Ud}return(a,c)=>(l.openBlock(),l.createBlock(ky.VAvatar,{size:"50"},{default:l.withCtx(()=>[l.createVNode(mf.VImg,{src:r.value,"lazy-src":Ud,onError:o,width:"50",alt:"profile-placeholder"},null,8,["src"])]),_:1}))}}),Bd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",fC=l.defineComponent({__name:"AvatarPicture",props:{img:{},size:{}},setup(n){const e=n,t=l.ref(e.img),r=l.computed(()=>t.value||Bd);function o(){t.value=Bd}return(a,c)=>(l.openBlock(),l.createBlock(ky.VAvatar,{size:a.size},{default:l.withCtx(()=>[l.createVNode(mf.VImg,{src:r.value,"lazy-src":Bd,onError:o,width:"40",alt:"Avatar"},null,8,["src"])]),_:1},8,["size"]))}}),_P=l.defineComponent({__name:"ContextMenu",setup(n){const e=l.ref(!1),t=l.ref({x:0,y:0}),r=a=>{a.preventDefault(),t.value={x:a.clientX,y:a.clientY},e.value=!0},o=()=>{e.value=!1};return l.onMounted(()=>{document.addEventListener("click",o)}),l.onUnmounted(()=>{document.removeEventListener("click",o)}),(a,c)=>(l.openBlock(),l.createElementBlock("div",{onContextmenu:l.withModifiers(r,["right"]),class:"relative w-full h-full"},[l.renderSlot(a.$slots,"default",{},void 0,!0),l.createVNode(gf.VMenu,{modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=d=>e.value=d),style:l.normalizeStyle({top:`${t.value.y}px`,left:`${t.value.x}px`,position:"absolute"})},{default:l.withCtx(()=>[l.createVNode(Qt.VList,{onClick:o},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"actions",{},void 0,!0)]),_:3})]),_:3},8,["modelValue","style"])],32))}}),Sa=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},mC=Sa(_P,[["__scopeId","data-v-ad4e4a5d"]]),vP={class:"d-inline-flex"},gC=l.defineComponent({__name:"UiTable",props:l.mergeModels({headers:{},items:{default:()=>[]},actions:{},loading:{type:Boolean},columns:{default:()=>[]},sortBy:{}},{selection:{},selectionModifiers:{}}),emits:["update:selection"],setup(n){const e=n,t=l.computed(()=>{var o;if(e.headers)return e.headers;if(e.columns)return(o=e.columns)==null?void 0:o.filter(a=>a.checked)}),r=l.useModel(n,"selection");return(o,a)=>(l.openBlock(),l.createBlock(Ny.VDataTable,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=c=>r.value=c),"fixed-header":"","fixed-footer":"","items-per-page":"10",headers:t.value,items:o.items,"items-length":o.items.length,loading:o.loading||!1,"item-value":"_id","return-object":"","show-select":"","sort-by":o.sortBy,height:"calc(100vh - 320px)",class:"customize-table"},{top:l.withCtx(()=>a[1]||(a[1]=[l.createElementVNode("span",{class:"mt-5"},null,-1)])),"item.avatar":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"avatar",{item:c})]),"item.active":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"active",{item:c})]),"item.image":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"image",{item:c})]),"item.picture":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"picture",{item:c})]),"item.icon":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"icon",{item:c})]),"item.actions":l.withCtx(({item:c})=>[l.createElementVNode("div",vP,[l.renderSlot(o.$slots,"actions",{item:c})])]),"no-data":l.withCtx(()=>[!o.loading&&o.items.length===0?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" This table is empty.")],64)):l.createCommentVNode("",!0)]),_:3},8,["modelValue","headers","items","items-length","loading","sort-by"]))}}),pC=6048e5,yP=864e5,C_=Symbol.for("constructDateFrom");function $o(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&C_ in n?n[C_](e):n instanceof Date?new n.constructor(e):new Date(e)}function Tr(n,e){return $o(e||n,n)}let CP={};function Wl(){return CP}function Ts(n,e){var d,h,m,g;const t=Wl(),r=(e==null?void 0:e.weekStartsOn)??((h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??t.weekStartsOn??((g=(m=t.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,o=Tr(n,e==null?void 0:e.in),a=o.getDay(),c=(a<r?7:0)+a-r;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function vl(n,e){return Ts(n,{...e,weekStartsOn:1})}function _C(n,e){const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=$o(t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=vl(o),c=$o(t,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const d=vl(c);return t.getTime()>=a.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function E_(n){const e=Tr(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function EP(n,...e){const t=$o.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function w_(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function wP(n,e,t){const[r,o]=EP(t==null?void 0:t.in,n,e),a=w_(r),c=w_(o),d=+a-E_(a),h=+c-E_(c);return Math.round((d-h)/yP)}function TP(n,e){const t=_C(n,e),r=$o(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),vl(r)}function bP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function IP(n){return!(!bP(n)&&typeof n!="number"||isNaN(+Tr(n)))}function SP(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const AP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kP=(n,e,t)=>{let r;const o=AP[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function or(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const NP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},OP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PP={date:or({formats:NP,defaultWidth:"full"}),time:or({formats:RP,defaultWidth:"full"}),dateTime:or({formats:OP,defaultWidth:"full"})},MP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},DP=(n,e,t,r)=>MP[n];function Tt(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&n.formattingValues){const c=n.defaultFormattingWidth||n.defaultWidth,d=t!=null&&t.width?String(t.width):c;o=n.formattingValues[d]||n.formattingValues[c]}else{const c=n.defaultWidth,d=t!=null&&t.width?String(t.width):n.defaultWidth;o=n.values[d]||n.values[c]}const a=n.argumentCallback?n.argumentCallback(e):e;return o[a]}}const LP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},BP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},FP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},VP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},HP=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},$P={ordinalNumber:HP,era:Tt({values:LP,defaultWidth:"wide"}),quarter:Tt({values:xP,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:UP,defaultWidth:"wide"}),day:Tt({values:BP,defaultWidth:"wide"}),dayPeriod:Tt({values:FP,defaultWidth:"wide",formattingValues:VP,defaultFormattingWidth:"wide"})};function bt(n){return(e,t={})=>{const r=t.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(o);if(!a)return null;const c=a[0],d=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(d)?WP(d,v=>v.test(c)):KP(d,v=>v.test(c));let m;m=n.valueCallback?n.valueCallback(h):h,m=t.valueCallback?t.valueCallback(m):m;const g=e.slice(c.length);return{value:m,rest:g}}}function KP(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function WP(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function zl(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const o=r[0],a=e.match(n.parsePattern);if(!a)return null;let c=n.valueCallback?n.valueCallback(a[0]):a[0];c=t.valueCallback?t.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}const zP=/^(\d+)(th|st|nd|rd)?/i,GP=/\d+/i,qP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jP={any:[/^b/i,/^(a|c)/i]},YP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JP={any:[/1/i,/2/i,/3/i,/4/i]},QP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},e1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},t1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},n1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},r1={ordinalNumber:zl({matchPattern:zP,parsePattern:GP,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:qP,defaultMatchWidth:"wide",parsePatterns:jP,defaultParseWidth:"any"}),quarter:bt({matchPatterns:YP,defaultMatchWidth:"wide",parsePatterns:JP,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:QP,defaultMatchWidth:"wide",parsePatterns:XP,defaultParseWidth:"any"}),day:bt({matchPatterns:ZP,defaultMatchWidth:"wide",parsePatterns:e1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:t1,defaultMatchWidth:"any",parsePatterns:n1,defaultParseWidth:"any"})},Ef={code:"en-US",formatDistance:kP,formatLong:PP,formatRelative:DP,localize:$P,match:r1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function o1(n,e){const t=Tr(n,e==null?void 0:e.in);return wP(t,SP(t))+1}function i1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+vl(t)-+TP(t);return Math.round(r/pC)+1}function vC(n,e){var g,v,p,w;const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=Wl(),a=(e==null?void 0:e.firstWeekContainsDate)??((v=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(p=o.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=$o((e==null?void 0:e.in)||n,0);c.setFullYear(r+1,0,a),c.setHours(0,0,0,0);const d=Ts(c,e),h=$o((e==null?void 0:e.in)||n,0);h.setFullYear(r,0,a),h.setHours(0,0,0,0);const m=Ts(h,e);return+t>=+d?r+1:+t>=+m?r:r-1}function a1(n,e){var d,h,m,g;const t=Wl(),r=(e==null?void 0:e.firstWeekContainsDate)??((h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??t.firstWeekContainsDate??((g=(m=t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,o=vC(n,e),a=$o((e==null?void 0:e.in)||n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ts(a,e)}function s1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+Ts(t,e)-+a1(t,e);return Math.round(r/pC)+1}function We(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Ro={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return We(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):We(t+1,2)},d(n,e){return We(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return We(n.getHours()%12||12,e.length)},H(n,e){return We(n.getHours(),e.length)},m(n,e){return We(n.getMinutes(),e.length)},s(n,e){return We(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return We(o,e.length)}},Gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T_={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return Ro.y(n,e)},Y:function(n,e,t,r){const o=vC(n,r),a=o>0?o:1-o;if(e==="YY"){const c=a%100;return We(c,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):We(a,e.length)},R:function(n,e){const t=_C(n);return We(t,e.length)},u:function(n,e){const t=n.getFullYear();return We(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return We(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Ro.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const o=s1(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):We(o,e.length)},I:function(n,e,t){const r=i1(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):We(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Ro.d(n,e)},D:function(n,e,t){const r=o1(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):We(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return We(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return We(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return We(o,e.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const o=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let o;switch(r===12?o=Gi.noon:r===0?o=Gi.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let o;switch(r>=17?o=Gi.evening:r>=12?o=Gi.afternoon:r>=4?o=Gi.morning:o=Gi.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Ro.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Ro.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ro.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Ro.s(n,e)},S:function(n,e){return Ro.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return I_(r);case"XXXX":case"XX":return li(r);case"XXXXX":case"XXX":default:return li(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return I_(r);case"xxxx":case"xx":return li(r);case"xxxxx":case"xxx":default:return li(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b_(r,":");case"OOOO":default:return"GMT"+li(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b_(r,":");case"zzzz":default:return"GMT"+li(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return We(r,e.length)},T:function(n,e,t){return We(+n,e.length)}};function b_(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+e+We(a,2)}function I_(n,e){return n%60===0?(n>0?"-":"+")+We(Math.abs(n)/60,2):li(n,e)}function li(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=We(Math.trunc(r/60),2),a=We(r%60,2);return t+o+e+a}const S_=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},yC=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},c1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return S_(n,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",S_(r,e)).replace("{{time}}",yC(o,e))},l1={p:yC,P:c1},u1=/^D+$/,d1=/^Y+$/,h1=["D","DD","YY","YYYY"];function f1(n){return u1.test(n)}function m1(n){return d1.test(n)}function g1(n,e,t){const r=p1(n,e,t);if(console.warn(r),h1.includes(n))throw new RangeError(r)}function p1(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const _1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y1=/^'([^]*?)'?$/,C1=/''/g,E1=/[a-zA-Z]/;function w1(n,e,t){var g,v,p,w,C,T,k,I;const r=Wl(),o=(t==null?void 0:t.locale)??r.locale??Ef,a=(t==null?void 0:t.firstWeekContainsDate)??((v=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(p=r.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=(t==null?void 0:t.weekStartsOn)??((T=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:T.weekStartsOn)??r.weekStartsOn??((I=(k=r.locale)==null?void 0:k.options)==null?void 0:I.weekStartsOn)??0,d=Tr(n,t==null?void 0:t.in);if(!IP(d))throw new RangeError("Invalid time value");let h=e.match(v1).map(N=>{const D=N[0];if(D==="p"||D==="P"){const L=l1[D];return L(N,o.formatLong)}return N}).join("").match(_1).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const D=N[0];if(D==="'")return{isToken:!1,value:T1(N)};if(T_[D])return{isToken:!0,value:N};if(D.match(E1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return{isToken:!1,value:N}});o.localize.preprocessor&&(h=o.localize.preprocessor(d,h));const m={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return h.map(N=>{if(!N.isToken)return N.value;const D=N.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&m1(D)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&f1(D))&&g1(D,e,String(n));const L=T_[D[0]];return L(d,D,o.localize,m)}).join("")}function T1(n){const e=n.match(y1);return e?e[1].replace(C1,"'"):n}const A_={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},b1=(n,e,t)=>{let r;const o=t!=null&&t.addSuffix?A_[n].withPreposition:A_[n].standalone;return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:"vor "+r:r},I1={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},S1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},A1={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},k1={date:or({formats:I1,defaultWidth:"full"}),time:or({formats:S1,defaultWidth:"full"}),dateTime:or({formats:A1,defaultWidth:"full"})},N1={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},R1=(n,e,t,r)=>N1[n],O1={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},P1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Th={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},M1={narrow:Th.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Th.wide},D1={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},L1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},x1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},U1=n=>Number(n)+".",B1={ordinalNumber:U1,era:Tt({values:O1,defaultWidth:"wide"}),quarter:Tt({values:P1,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:Th,formattingValues:M1,defaultWidth:"wide"}),day:Tt({values:D1,defaultWidth:"wide"}),dayPeriod:Tt({values:L1,defaultWidth:"wide",formattingValues:x1,defaultFormattingWidth:"wide"})},F1=/^(\d+)(\.)?/i,V1=/\d+/i,H1={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},$1={any:[/^v/i,/^n/i]},K1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},W1={any:[/1/i,/2/i,/3/i,/4/i]},z1={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},G1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},q1={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},j1={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Y1={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},J1={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},Q1={ordinalNumber:zl({matchPattern:F1,parsePattern:V1,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:H1,defaultMatchWidth:"wide",parsePatterns:$1,defaultParseWidth:"any"}),quarter:bt({matchPatterns:K1,defaultMatchWidth:"wide",parsePatterns:W1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:z1,defaultMatchWidth:"wide",parsePatterns:G1,defaultParseWidth:"any"}),day:bt({matchPatterns:q1,defaultMatchWidth:"wide",parsePatterns:j1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:Y1,defaultMatchWidth:"wide",parsePatterns:J1,defaultParseWidth:"any"})},X1={code:"de",formatDistance:b1,formatLong:k1,formatRelative:R1,localize:B1,match:Q1,options:{weekStartsOn:1,firstWeekContainsDate:4}},Z1={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},eM=(n,e,t)=>{let r;const o=Z1[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"dans "+r:"il y a "+r:r},tM={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},nM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rM={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oM={date:or({formats:tM,defaultWidth:"full"}),time:or({formats:nM,defaultWidth:"full"}),dateTime:or({formats:rM,defaultWidth:"full"})},iM={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},aM=(n,e,t,r)=>iM[n],sM={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},cM={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},lM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},uM={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dM={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},hM=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;if(t===0)return"0";const o=["year","week","hour","minute","second"];let a;return t===1?a=r&&o.includes(r)?"ère":"er":a="ème",t+a},fM=["MMM","MMMM"],mM={preprocessor:(n,e)=>n.getDate()===1||!e.some(r=>r.isToken&&fM.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:hM,era:Tt({values:sM,defaultWidth:"wide"}),quarter:Tt({values:cM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:lM,defaultWidth:"wide"}),day:Tt({values:uM,defaultWidth:"wide"}),dayPeriod:Tt({values:dM,defaultWidth:"wide"})},gM=/^(\d+)(ième|ère|ème|er|e)?/i,pM=/\d+/i,_M={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},vM={any:[/^av/i,/^ap/i]},yM={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},CM={any:[/1/i,/2/i,/3/i,/4/i]},EM={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},wM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},TM={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},bM={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},IM={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},SM={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},AM={ordinalNumber:zl({matchPattern:gM,parsePattern:pM,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:_M,defaultMatchWidth:"wide",parsePatterns:vM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:yM,defaultMatchWidth:"wide",parsePatterns:CM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:EM,defaultMatchWidth:"wide",parsePatterns:wM,defaultParseWidth:"any"}),day:bt({matchPatterns:TM,defaultMatchWidth:"wide",parsePatterns:bM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:IM,defaultMatchWidth:"any",parsePatterns:SM,defaultParseWidth:"any"})},kM={code:"fr",formatDistance:eM,formatLong:oM,formatRelative:aM,localize:mM,match:AM,options:{weekStartsOn:1,firstWeekContainsDate:4}},NM={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},RM=(n,e,t)=>{let r;const o=NM[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"em "+r:"há "+r:r},OM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},PM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},MM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DM={date:or({formats:OM,defaultWidth:"full"}),time:or({formats:PM,defaultWidth:"full"}),dateTime:or({formats:MM,defaultWidth:"full"})},LM={lastWeek:n=>{const e=n.getDay();return"'"+(e===0||e===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},xM=(n,e,t,r)=>{const o=LM[n];return typeof o=="function"?o(e):o},UM={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},BM={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},FM={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},VM={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},HM={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},$M={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},KM=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="week"?t+"ª":t+"º"},WM={ordinalNumber:KM,era:Tt({values:UM,defaultWidth:"wide"}),quarter:Tt({values:BM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:FM,defaultWidth:"wide"}),day:Tt({values:VM,defaultWidth:"wide"}),dayPeriod:Tt({values:HM,defaultWidth:"wide",formattingValues:$M,defaultFormattingWidth:"wide"})},zM=/^(\d+)[ºªo]?/i,GM=/\d+/i,qM={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},jM={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},YM={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},JM={any:[/1/i,/2/i,/3/i,/4/i]},QM={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},XM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},ZM={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},eD={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},tD={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},nD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},rD={ordinalNumber:zl({matchPattern:zM,parsePattern:GM,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:qM,defaultMatchWidth:"wide",parsePatterns:jM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:YM,defaultMatchWidth:"wide",parsePatterns:JM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:QM,defaultMatchWidth:"wide",parsePatterns:XM,defaultParseWidth:"any"}),day:bt({matchPatterns:ZM,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:tD,defaultMatchWidth:"any",parsePatterns:nD,defaultParseWidth:"any"})},oD={code:"pt-BR",formatDistance:RM,formatLong:DM,formatRelative:xM,localize:WM,match:rD,options:{weekStartsOn:0,firstWeekContainsDate:1}};/*!
11
+ This will fail in production.`);c=rs,c._s.has(r)||(f_(r,o,c),process.env.NODE_ENV!=="production"&&(a._pinia=c));const m=c._s.get(r);if(process.env.NODE_ENV!=="production"&&d){const g="__hot:"+r,v=f_(g,er({},o),c,!0);d._hotUpdate(v),delete c.state.value[g],c._s.delete(g)}if(process.env.NODE_ENV!=="production"&&di){const g=l.getCurrentInstance();if(g&&g.proxy&&!d){const v=g.proxy,p="_pStores"in v?v._pStores:v._pStores={};p[r]=m}}return m}return a.$id=r,a}const o0=r0({id:"customizer",state:()=>({Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,setHorizontalLayout:!1,actTheme:"DarkJPLANTheme",fontTheme:"Roboto",inputBg:!1,boxed:!1}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(n){this.mini_sidebar=n},SET_CUSTOMIZER_DRAWER(n){this.Customizer_drawer=n},SET_LAYOUT(n){this.setHorizontalLayout=n},SET_THEME(n){this.actTheme=n},SET_FONT(n){this.fontTheme=n}}}),zi=l.ref({}),Ms=n=>{const e=l.computed(()=>n?zi.value[n]||!1:zi.value.default||!1),t=()=>{n?zi.value[n]=!0:zi.value.default=!0},r=()=>{n?zi.value[n]=!1:zi.value.default=!1};return l.onUnmounted(()=>{r()}),l.onMounted(()=>{r()}),{isDialogActive:e,openDialog:t,closeDialog:r}};var i0=Object.defineProperty,m_=Object.getOwnPropertySymbols,a0=Object.prototype.hasOwnProperty,s0=Object.prototype.propertyIsEnumerable,g_=(n,e,t)=>e in n?i0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,zy=(n,e)=>{for(var t in e||(e={}))a0.call(e,t)&&g_(n,t,e[t]);if(m_)for(var t of m_(e))s0.call(e,t)&&g_(n,t,e[t]);return n},Fl=n=>typeof n=="function",Vl=n=>typeof n=="string",Gy=n=>Vl(n)&&n.trim().length>0,c0=n=>typeof n=="number",hi=n=>typeof n>"u",Es=n=>typeof n=="object"&&n!==null,l0=n=>Hr(n,"tag")&&Gy(n.tag),qy=n=>window.TouchEvent&&n instanceof TouchEvent,jy=n=>Hr(n,"component")&&Yy(n.component),u0=n=>Fl(n)||Es(n),Yy=n=>!hi(n)&&(Vl(n)||u0(n)||jy(n)),p_=n=>Es(n)&&["height","width","right","left","top","bottom"].every(e=>c0(n[e])),Hr=(n,e)=>(Es(n)||Fl(n))&&e in n,d0=(n=>()=>n++)(0);function xd(n){return qy(n)?n.targetTouches[0].clientX:n.clientX}function __(n){return qy(n)?n.targetTouches[0].clientY:n.clientY}var h0=n=>{hi(n.remove)?n.parentNode&&n.parentNode.removeChild(n):n.remove()},Ds=n=>jy(n)?Ds(n.component):l0(n)?l.defineComponent({render(){return n}}):typeof n=="string"?n:l.toRaw(l.unref(n)),f0=n=>{if(typeof n=="string")return n;const e=Hr(n,"props")&&Es(n.props)?n.props:{},t=Hr(n,"listeners")&&Es(n.listeners)?n.listeners:{};return{component:Ds(n),props:e,listeners:t}},m0=()=>typeof window<"u",Hl=class{constructor(){this.allHandlers={}}getHandlers(n){return this.allHandlers[n]||[]}on(n,e){const t=this.getHandlers(n);t.push(e),this.allHandlers[n]=t}off(n,e){const t=this.getHandlers(n);t.splice(t.indexOf(e)>>>0,1)}emit(n,e){this.getHandlers(n).forEach(r=>r(e))}},g0=n=>["on","off","emit"].every(e=>Hr(n,e)&&Fl(n[e]));exports.TYPE=void 0;(function(n){n.SUCCESS="success",n.ERROR="error",n.WARNING="warning",n.INFO="info",n.DEFAULT="default"})(exports.TYPE||(exports.TYPE={}));exports.POSITION=void 0;(function(n){n.TOP_LEFT="top-left",n.TOP_CENTER="top-center",n.TOP_RIGHT="top-right",n.BOTTOM_LEFT="bottom-left",n.BOTTOM_CENTER="bottom-center",n.BOTTOM_RIGHT="bottom-right"})(exports.POSITION||(exports.POSITION={}));var Ln;(function(n){n.ADD="add",n.DISMISS="dismiss",n.UPDATE="update",n.CLEAR="clear",n.UPDATE_DEFAULTS="update_defaults"})(Ln||(Ln={}));var pr="Vue-Toastification",gr={type:{type:String,default:exports.TYPE.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Jy={type:gr.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ol={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:gr.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},wh={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Qy={transition:{type:[Object,String],default:`${pr}__bounce`}},p0={position:{type:String,default:exports.POSITION.TOP_RIGHT},draggable:gr.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:gr.trueBoolean,pauseOnHover:gr.trueBoolean,closeOnClick:gr.trueBoolean,timeout:wh.timeout,hideProgressBar:wh.hideProgressBar,toastClassName:gr.classNames,bodyClassName:gr.classNames,icon:Jy.customIcon,closeButton:ol.component,closeButtonClassName:ol.classNames,showCloseButtonOnHover:ol.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Hl}},_0={id:{type:[String,Number],required:!0,default:0},type:gr.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},v0={container:{type:[Object,Function],default:()=>document.body},newestOnTop:gr.trueBoolean,maxToasts:{type:Number,default:20},transition:Qy.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:n=>n},filterToasts:{type:Function,default:n=>n},containerClassName:gr.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},uo={CORE_TOAST:p0,TOAST:_0,CONTAINER:v0,PROGRESS_BAR:wh,ICON:Jy,TRANSITION:Qy,CLOSE_BUTTON:ol},Xy=l.defineComponent({name:"VtProgressBar",props:uo.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${pr}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function y0(n,e){return l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(n.style),class:l.normalizeClass(n.cpClass)},null,6)}Xy.render=y0;var C0=Xy,Zy=l.defineComponent({name:"VtCloseButton",props:uo.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ds(this.component):"button"},classes(){const n=[`${pr}__close-button`];return this.showOnHover&&n.push("show-on-hover"),n.concat(this.classNames)}}}),E0=l.createTextVNode(" × ");function w0(n,e){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.buttonComponent),l.mergeProps({"aria-label":n.ariaLabel,class:n.classes},n.$attrs),{default:l.withCtx(()=>[E0]),_:1},16,["aria-label","class"])}Zy.render=w0;var T0=Zy,eC={},b0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},I0=l.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),S0=[I0];function A0(n,e){return l.openBlock(),l.createElementBlock("svg",b0,S0)}eC.render=A0;var k0=eC,tC={},N0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},R0=l.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),O0=[R0];function P0(n,e){return l.openBlock(),l.createElementBlock("svg",N0,O0)}tC.render=P0;var v_=tC,nC={},M0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},D0=l.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),L0=[D0];function x0(n,e){return l.openBlock(),l.createElementBlock("svg",M0,L0)}nC.render=x0;var U0=nC,rC={},B0={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},F0=l.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),V0=[F0];function H0(n,e){return l.openBlock(),l.createElementBlock("svg",B0,V0)}rC.render=H0;var $0=rC,oC=l.defineComponent({name:"VtIcon",props:uo.ICON,computed:{customIconChildren(){return Hr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Vl(this.customIcon)?this.trimValue(this.customIcon):Hr(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Hr(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Yy(this.customIcon)?Ds(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[exports.TYPE.DEFAULT]:v_,[exports.TYPE.INFO]:v_,[exports.TYPE.SUCCESS]:k0,[exports.TYPE.ERROR]:$0,[exports.TYPE.WARNING]:U0}[this.type]},iconClasses(){const n=[`${pr}__icon`];return this.hasCustomIcon?n.concat(this.customIconClass):n}},methods:{trimValue(n,e=""){return Gy(n)?n.trim():e}}});function K0(n,e){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.component),{class:l.normalizeClass(n.iconClasses)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.customIconChildren),1)]),_:1},8,["class"])}oC.render=K0;var W0=oC,iC=l.defineComponent({name:"VtToast",components:{ProgressBar:C0,CloseButton:T0,Icon:W0},inheritAttrs:!1,props:Object.assign({},uo.CORE_TOAST,uo.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const n=[`${pr}__toast`,`${pr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&n.push("disable-transition"),this.rtl&&n.push(`${pr}__toast--rtl`),n},bodyClasses(){return[`${pr}__toast-${Vl(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return p_(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Hr,getVueComponentFromObj:Ds,closeToast(){this.eventBus.emit(Ln.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const n=this.$el;n.addEventListener("touchstart",this.onDragStart,{passive:!0}),n.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const n=this.$el;n.removeEventListener("touchstart",this.onDragStart),n.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(n){this.beingDragged=!0,this.dragPos={x:xd(n),y:__(n)},this.dragStart=xd(n),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(n){this.beingDragged&&(n.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:xd(n),y:__(n)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,p_(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),z0=["role"];function G0(n,e){const t=l.resolveComponent("Icon"),r=l.resolveComponent("CloseButton"),o=l.resolveComponent("ProgressBar");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.classes),style:l.normalizeStyle(n.draggableStyle),onClick:e[0]||(e[0]=(...a)=>n.clickHandler&&n.clickHandler(...a)),onMouseenter:e[1]||(e[1]=(...a)=>n.hoverPause&&n.hoverPause(...a)),onMouseleave:e[2]||(e[2]=(...a)=>n.hoverPlay&&n.hoverPlay(...a))},[n.icon?(l.openBlock(),l.createBlock(t,{key:0,"custom-icon":n.icon,type:n.type},null,8,["custom-icon","type"])):l.createCommentVNode("v-if",!0),l.createElementVNode("div",{role:n.accessibility.toastRole||"alert",class:l.normalizeClass(n.bodyClasses)},[typeof n.content=="string"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(n.content),1)],2112)):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.getVueComponentFromObj(n.content)),l.mergeProps({key:1,"toast-id":n.id},n.hasProp(n.content,"props")?n.content.props:{},l.toHandlers(n.hasProp(n.content,"listeners")?n.content.listeners:{}),{onCloseToast:n.closeToast}),null,16,["toast-id","onCloseToast"]))],10,z0),n.closeButton?(l.openBlock(),l.createBlock(r,{key:1,component:n.closeButton,"class-names":n.closeButtonClassName,"show-on-hover":n.showCloseButtonOnHover,"aria-label":n.accessibility.closeButtonLabel,onClick:l.withModifiers(n.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):l.createCommentVNode("v-if",!0),n.timeout?(l.openBlock(),l.createBlock(o,{key:2,"is-running":n.isRunning,"hide-progress-bar":n.hideProgressBar,timeout:n.timeout,onCloseToast:n.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):l.createCommentVNode("v-if",!0)],38)}iC.render=G0;var q0=iC,aC=l.defineComponent({name:"VtTransition",props:uo.TRANSITION,emits:["leave"],methods:{hasProp:Hr,leave(n){n instanceof HTMLElement&&(n.style.left=n.offsetLeft+"px",n.style.top=n.offsetTop+"px",n.style.width=getComputedStyle(n).width,n.style.position="absolute")}}});function j0(n,e){return l.openBlock(),l.createBlock(l.TransitionGroup,{tag:"div","enter-active-class":n.transition.enter?n.transition.enter:`${n.transition}-enter-active`,"move-class":n.transition.move?n.transition.move:`${n.transition}-move`,"leave-active-class":n.transition.leave?n.transition.leave:`${n.transition}-leave-active`,onLeave:n.leave},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}aC.render=j0;var Y0=aC,sC=l.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:q0,VtTransition:Y0},props:Object.assign({},uo.CORE_TOAST,uo.CONTAINER,uo.TRANSITION),data(){return{count:0,positions:Object.values(exports.POSITION),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const n=this.eventBus;n.on(Ln.ADD,this.addToast),n.on(Ln.CLEAR,this.clearToasts),n.on(Ln.DISMISS,this.dismissToast),n.on(Ln.UPDATE,this.updateToast),n.on(Ln.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(n){Fl(n)&&(n=await n()),h0(this.$el),n.appendChild(this.$el)},setToast(n){hi(n.id)||(this.toasts[n.id]=n)},addToast(n){n.content=f0(n.content);const e=Object.assign({},this.defaults,n.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[n.type],n),t=this.defaults.filterBeforeCreate(e,this.toastArray);t&&this.setToast(t)},dismissToast(n){const e=this.toasts[n];!hi(e)&&!hi(e.onClose)&&e.onClose(),delete this.toasts[n]},clearToasts(){Object.keys(this.toasts).forEach(n=>{this.dismissToast(n)})},getPositionToasts(n){const e=this.filteredToasts.filter(t=>t.position===n).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(n){hi(n.container)||this.setup(n.container),this.defaults=Object.assign({},this.defaults,n)},updateToast({id:n,options:e,create:t}){this.toasts[n]?(e.timeout&&e.timeout===this.toasts[n].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[n],e))):t&&this.addToast(Object.assign({},{id:n},e))},getClasses(n){return[`${pr}__container`,n].concat(this.defaults.containerClassName)}}});function J0(n,e){const t=l.resolveComponent("Toast"),r=l.resolveComponent("VtTransition");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.positions,o=>(l.openBlock(),l.createElementBlock("div",{key:o},[l.createVNode(r,{transition:n.defaults.transition,class:l.normalizeClass(n.getClasses(o))},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.getPositionToasts(o),a=>(l.openBlock(),l.createBlock(t,l.mergeProps({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}sC.render=J0;var Q0=sC,y_=(n={},e=!0)=>{const t=n.eventBus=n.eventBus||new Hl;e&&l.nextTick(()=>{const a=l.createApp(Q0,zy({},n)),c=a.mount(document.createElement("div")),d=n.onMounted;if(hi(d)||d(c,a),n.shareAppContext){const h=n.shareAppContext;h===!0?console.warn(`[${pr}] App to share context with was not provided.`):(a._context.components=h._context.components,a._context.directives=h._context.directives,a._context.mixins=h._context.mixins,a._context.provides=h._context.provides,a.config.globalProperties=h.config.globalProperties)}});const r=(a,c)=>{const d=Object.assign({},{id:d0(),type:exports.TYPE.DEFAULT},c,{content:a});return t.emit(Ln.ADD,d),d.id};r.clear=()=>t.emit(Ln.CLEAR,void 0),r.updateDefaults=a=>{t.emit(Ln.UPDATE_DEFAULTS,a)},r.dismiss=a=>{t.emit(Ln.DISMISS,a)};function o(a,{content:c,options:d},h=!1){const m=Object.assign({},d,{content:c});t.emit(Ln.UPDATE,{id:a,options:m,create:h})}return r.update=o,r.success=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.SUCCESS})),r.info=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.INFO})),r.error=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.ERROR})),r.warning=(a,c)=>r(a,Object.assign({},c,{type:exports.TYPE.WARNING})),r},X0=()=>{const n=()=>console.warn(`[${pr}] This plugin does not support SSR!`);return new Proxy(n,{get(){return n}})};function ws(n){return m0()?g0(n)?y_({eventBus:n},!1):y_(n,!0):X0()}var $l=Symbol("VueToastification"),yf=new Hl,Z0=(n,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=n);const t=ws(zy({eventBus:yf},e));n.provide($l,t)},eP=n=>{const e=ws(n);l.getCurrentInstance()&&l.provide($l,e)},wr=n=>{if(n)return ws(n);const e=l.getCurrentInstance()?l.inject($l,void 0):void 0;return e||ws(yf)},tP=Z0;const ve=l.ref(!1);var nP={name:"CircleOffIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-circle-off",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 3l18 18"},null),l.createTextVNode(" ")])}},rP={name:"DotsVerticalIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-dots-vertical",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},oP={name:"DotsIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-dots",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},iP={name:"EraserIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-eraser",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M18 13.3l-6.3 -6.3"},null),l.createTextVNode(" ")])}},cC={name:"ExclamationCircleIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-exclamation-circle",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 9v4"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 16v.01"},null),l.createTextVNode(" ")])}},aP={name:"FilterIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-filter",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"},null),l.createTextVNode(" ")])}},sP={name:"GripVerticalIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-grip-vertical",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null),l.createTextVNode(" ")])}},cP={name:"HierarchyIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-hierarchy",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M6.5 17.5l5.5 -4.5l5.5 4.5"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M12 7l0 6"},null),l.createTextVNode(" ")])}},lP={name:"LayoutSidebarRightCollapseIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-layout-sidebar-right-collapse",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M15 4v16"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M9 10l2 2l-2 2"},null),l.createTextVNode(" ")])}},uP={name:"RefreshIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-refresh",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"},null),l.createTextVNode(" ")])}},dP={name:"SearchIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-search",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M21 21l-6 -6"},null),l.createTextVNode(" ")])}},hP={name:"TableIcon",props:{size:{type:[Number,String],default:24}},render(){const n=this.$props.size+"px",e=this.$data.attrs||{},t={width:e.width||n,height:e.height||n};return l.createVNode("svg",l.mergeProps({xmlns:"http://www.w3.org/2000/svg",class:"icon-tabler icon-tabler-table",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t),[l.createTextVNode(" "),l.createVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M3 10h18"},null),l.createTextVNode(" "),l.createVNode("path",{d:"M10 3v18"},null),l.createTextVNode(" ")])}};const fP={class:"d-flex align-center"},mP={key:1},gP={class:"ms-auto"},Ls=l.defineComponent({__name:"JDialog",props:{ddId:{},variant:{default:"global"},title:{},text:{},width:{default:"500"},reference:{type:Boolean},buttons:{type:Boolean,default:!0},scrim:{default:"background"}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=n,r=e,o=l.ref(!1),{isDialogActive:a,closeDialog:c}=Ms(t.ddId);async function d(){try{await r("onCancel")}catch(m){console.error(m)}c()}async function h(){o.value=!0;try{await r("onSave")}catch(m){console.error(m)}o.value=!1,c()}return(m,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.variant==="global"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:0,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[0]||(g[0]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.createVNode(xt.VCard,{rounded:"",loading:o.value},{default:l.withCtx(()=>[l.createVNode(xt.VCardTitle,{class:"mt-2 px-5 d-flex"},{default:l.withCtx(()=>[l.createElementVNode("div",fP,[m.$slots.title?l.renderSlot(m.$slots,"title",{key:0}):(l.openBlock(),l.createElementBlock("div",mP,l.toDisplayString(t.title),1))]),l.createElementVNode("div",gP,[l.renderSlot(m.$slots,"heading-actions"),l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:d,variant:"plain"})])]),_:3}),l.createVNode(pi.VDivider,{class:"mx-5"}),l.createVNode(xt.VCardText,{class:"overflow-y-scroll"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3}),m.$slots.footer?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(pi.VDivider,{class:"mx-5 mt-2"}),l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[l.renderSlot(m.$slots,"footer")]),_:3})],64)):l.createCommentVNode("",!0),t.buttons?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(pi.VDivider,{class:"mx-5 mt-2"}),l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[m.$slots.metadata?(l.openBlock(),l.createBlock(Qe.VCol,{key:0,cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis ma-0 pa-0"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"metadata")]),_:3})):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createVNode(it.VBtn,{class:"j-btn-form",variant:"outlined",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"j-btn-form",variant:"flat",color:"secondary",onClick:h,loading:o.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.save")),1)]),_:1},8,["loading"])]),_:3})],64)):l.createCommentVNode("",!0)]),_:3},8,["loading"])]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0),m.variant==="confirm"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:1,scrim:"background",width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[1]||(g[1]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.createVNode(xt.VCard,{loading:o.value,title:t.title,rounded:"","min-height":"300"},{prepend:l.withCtx(()=>[l.createVNode(l.unref(cC),{color:"rgb(var(--v-theme-secondary))"})]),append:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:d,variant:"plain"})]),default:l.withCtx(()=>[l.createVNode(xt.VCardText,{class:"text-center mt-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.text),1)]),_:1}),l.createVNode(xt.VCardActions,{class:"d-flex"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"outlined",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"flat",color:"secondary",onClick:h},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.$t("actions.confirm")),1)]),_:1})]),_:1})]),_:1},8,["loading","title"])]),_:1},8,["width","modelValue"])):l.createCommentVNode("",!0),m.variant==="empty"?(l.openBlock(),l.createBlock(Zc.VDialog,{key:2,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[2]||(g[2]=v=>l.isRef(a)?a.value=v:null),"onClick:outside":d},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0)],64))}}),Cf=l.defineComponent({__name:"DeleteAllBtn",emits:["removeAll"],setup(n,{emit:e}){const{openDialog:t}=Ms("delete-all-__J"),r=e;return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Ls,{"dd-id":"delete-all-__J",variant:"confirm",title:"Confirm delete",text:"Are you sure you want to delete all selected items?","on-save":()=>r("removeAll")},null,8,["on-save"]),l.createVNode(it.VBtn,{onClick:l.unref(t),variant:"plain",color:"secondary","prepend-icon":"mdi-delete"},{default:l.withCtx(()=>a[0]||(a[0]=[l.createTextVNode(" Delete")])),_:1},8,["onClick"])],64))}}),lC=l.defineComponent({__name:"EditButton",emits:["editAll"],setup(n,{emit:e}){const t=e;return(r,o)=>(l.openBlock(),l.createBlock(it.VBtn,{onClick:o[0]||(o[0]=a=>t("editAll")),variant:"plain",color:"secondary","prepend-icon":"mdi-pencil"},{default:l.withCtx(()=>o[1]||(o[1]=[l.createTextVNode(" Edit")])),_:1}))}}),uC=l.defineComponent({__name:"DotsMenu",props:{variant:{default:"text"},color:{},orientation:{},size:{}},setup(n){return(e,t)=>(l.openBlock(),l.createBlock(l.unref(Vo.VMenu),{"close-on-content-click":!0},{activator:l.withCtx(({props:r})=>[l.createVNode(l.unref(Vo.VBtn),l.mergeProps({variant:e.variant},r,{icon:""}),{default:l.withCtx(()=>[e.orientation==="y"?(l.openBlock(),l.createBlock(l.unref(rP),{key:0,size:e.size,color:`rgb(var(--v-theme-${e.color}))`,class:"cursor-pointer"},null,8,["size","color"])):(l.openBlock(),l.createBlock(l.unref(oP),{key:1,size:e.size,color:`rgb(var(--v-theme-${e.color}))`,class:"cursor-pointer"},null,8,["size","color"]))]),_:2},1040,["variant"])]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3}))}}),Kl=l.defineComponent({__name:"ParentCard",props:{title:{},height:{default:"100%"},loading:{type:Boolean}},setup(n){const e=n;return(t,r)=>(l.openBlock(),l.createBlock(xt.VCard,{"min-height":t.height,height:t.height,loading:t.loading,class:"bg-surface rounded-sm pa-5"},{default:l.withCtx(()=>[e.title?(l.openBlock(),l.createBlock(xt.VCardTitle,{key:0,class:"pa-0"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1})):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"default")]),_:3},8,["min-height","height","loading"]))}}),dC=l.defineComponent({__name:"ConfirmDialog",props:{title:{},text:{},width:{},loading:{type:Boolean}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=n,r=l.ref(!1),o=l.ref(!1);l.onUnmounted(()=>{r.value=!1});const a=e;async function c(){try{await a("onCancel")}catch(h){console.error(h)}r.value=!1}async function d(){o.value=!0;try{await a("onSave")}catch(h){console.error(h)}o.value=!1,r.value=!1}return(h,m)=>(l.openBlock(),l.createBlock(Zc.VDialog,{scrim:"rgb(0,0,0,100)",width:t.width},{activator:l.withCtx(({isActive:g,props:v})=>[l.renderSlot(h.$slots,"button",l.normalizeProps(l.guardReactiveProps({isActive:g,props:v})))]),default:l.withCtx(({isActive:g})=>[l.createVNode(xt.VCard,{loading:o.value,title:t.title,rounded:"","min-height":"300"},{prepend:l.withCtx(()=>[l.createVNode(l.unref(cC),{color:"rgb(var(--v-theme-secondary))"})]),append:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"ms-auto",icon:"mdi-window-close",onClick:c,variant:"plain"})]),default:l.withCtx(()=>[l.createVNode(xt.VCardText,{class:"text-center mt-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.text),1)]),_:1}),l.createVNode(xt.VCardActions,{class:"d-flex"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"outlined",color:"secondary",onClick:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.$t("actions.cancel")),1)]),_:1}),l.createVNode(it.VBtn,{class:"flex-grow-1",variant:"flat",color:"secondary",onClick:d},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.$t("actions.confirm")),1)]),_:1})]),_:1})]),_:1},8,["loading","title"])]),_:3},8,["width"]))}}),Ud="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",hC=l.defineComponent({__name:"JAvatar",props:{src:{}},setup(n){const e=n,t=l.ref(e.src),r=l.computed(()=>t.value||Ud);function o(){t.value=Ud}return(a,c)=>(l.openBlock(),l.createBlock(ky.VAvatar,{size:"50"},{default:l.withCtx(()=>[l.createVNode(mf.VImg,{src:r.value,"lazy-src":Ud,onError:o,width:"50",alt:"profile-placeholder"},null,8,["src"])]),_:1}))}}),Bd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",fC=l.defineComponent({__name:"AvatarPicture",props:{img:{},size:{}},setup(n){const e=n,t=l.ref(e.img),r=l.computed(()=>t.value||Bd);function o(){t.value=Bd}return(a,c)=>(l.openBlock(),l.createBlock(ky.VAvatar,{size:a.size},{default:l.withCtx(()=>[l.createVNode(mf.VImg,{src:r.value,"lazy-src":Bd,onError:o,width:"40",alt:"Avatar"},null,8,["src"])]),_:1},8,["size"]))}}),pP=l.defineComponent({__name:"ContextMenu",setup(n){const e=l.ref(!1),t=l.ref({x:0,y:0}),r=a=>{a.preventDefault(),t.value={x:a.clientX,y:a.clientY},e.value=!0},o=()=>{e.value=!1};return l.onMounted(()=>{document.addEventListener("click",o)}),l.onUnmounted(()=>{document.removeEventListener("click",o)}),(a,c)=>(l.openBlock(),l.createElementBlock("div",{onContextmenu:l.withModifiers(r,["right"]),class:"relative w-full h-full"},[l.renderSlot(a.$slots,"default",{},void 0,!0),l.createVNode(gf.VMenu,{modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=d=>e.value=d),style:l.normalizeStyle({top:`${t.value.y}px`,left:`${t.value.x}px`,position:"absolute"})},{default:l.withCtx(()=>[l.createVNode(Qt.VList,{onClick:o},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"actions",{},void 0,!0)]),_:3})]),_:3},8,["modelValue","style"])],32))}}),Sa=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},mC=Sa(pP,[["__scopeId","data-v-ad4e4a5d"]]),_P={class:"d-inline-flex"},gC=l.defineComponent({__name:"UiTable",props:l.mergeModels({headers:{},items:{default:()=>[]},actions:{},loading:{type:Boolean},columns:{default:()=>[]},sortBy:{}},{selection:{},selectionModifiers:{}}),emits:["update:selection"],setup(n){const e=n,t=l.computed(()=>{var o;if(e.headers)return e.headers;if(e.columns)return(o=e.columns)==null?void 0:o.filter(a=>a.checked)}),r=l.useModel(n,"selection");return(o,a)=>(l.openBlock(),l.createBlock(Ny.VDataTable,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=c=>r.value=c),"fixed-header":"","fixed-footer":"","items-per-page":"10",headers:t.value,items:o.items,"items-length":o.items.length,loading:o.loading||!1,"item-value":"_id","return-object":"","show-select":"","sort-by":o.sortBy,height:"calc(100vh - 320px)",class:"customize-table"},{top:l.withCtx(()=>a[1]||(a[1]=[l.createElementVNode("span",{class:"mt-5"},null,-1)])),"item.avatar":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"avatar",{item:c})]),"item.active":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"active",{item:c})]),"item.image":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"image",{item:c})]),"item.picture":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"picture",{item:c})]),"item.icon":l.withCtx(({item:c})=>[l.renderSlot(o.$slots,"icon",{item:c})]),"item.actions":l.withCtx(({item:c})=>[l.createElementVNode("div",_P,[l.renderSlot(o.$slots,"actions",{item:c})])]),"no-data":l.withCtx(()=>[!o.loading&&o.items.length===0?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" This table is empty.")],64)):l.createCommentVNode("",!0)]),_:3},8,["modelValue","headers","items","items-length","loading","sort-by"]))}}),pC=6048e5,vP=864e5,C_=Symbol.for("constructDateFrom");function $o(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&C_ in n?n[C_](e):n instanceof Date?new n.constructor(e):new Date(e)}function Tr(n,e){return $o(e||n,n)}let yP={};function Wl(){return yP}function Ts(n,e){var d,h,m,g;const t=Wl(),r=(e==null?void 0:e.weekStartsOn)??((h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??t.weekStartsOn??((g=(m=t.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,o=Tr(n,e==null?void 0:e.in),a=o.getDay(),c=(a<r?7:0)+a-r;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function vl(n,e){return Ts(n,{...e,weekStartsOn:1})}function _C(n,e){const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=$o(t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=vl(o),c=$o(t,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const d=vl(c);return t.getTime()>=a.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function E_(n){const e=Tr(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function CP(n,...e){const t=$o.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function w_(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function EP(n,e,t){const[r,o]=CP(t==null?void 0:t.in,n,e),a=w_(r),c=w_(o),d=+a-E_(a),h=+c-E_(c);return Math.round((d-h)/vP)}function wP(n,e){const t=_C(n,e),r=$o(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),vl(r)}function TP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function bP(n){return!(!TP(n)&&typeof n!="number"||isNaN(+Tr(n)))}function IP(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const SP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},AP=(n,e,t)=>{let r;const o=SP[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function or(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const kP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},OP={date:or({formats:kP,defaultWidth:"full"}),time:or({formats:NP,defaultWidth:"full"}),dateTime:or({formats:RP,defaultWidth:"full"})},PP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},MP=(n,e,t,r)=>PP[n];function Tt(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&n.formattingValues){const c=n.defaultFormattingWidth||n.defaultWidth,d=t!=null&&t.width?String(t.width):c;o=n.formattingValues[d]||n.formattingValues[c]}else{const c=n.defaultWidth,d=t!=null&&t.width?String(t.width):n.defaultWidth;o=n.values[d]||n.values[c]}const a=n.argumentCallback?n.argumentCallback(e):e;return o[a]}}const DP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},BP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},FP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},VP=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},HP={ordinalNumber:VP,era:Tt({values:DP,defaultWidth:"wide"}),quarter:Tt({values:LP,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:xP,defaultWidth:"wide"}),day:Tt({values:UP,defaultWidth:"wide"}),dayPeriod:Tt({values:BP,defaultWidth:"wide",formattingValues:FP,defaultFormattingWidth:"wide"})};function bt(n){return(e,t={})=>{const r=t.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(o);if(!a)return null;const c=a[0],d=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(d)?KP(d,v=>v.test(c)):$P(d,v=>v.test(c));let m;m=n.valueCallback?n.valueCallback(h):h,m=t.valueCallback?t.valueCallback(m):m;const g=e.slice(c.length);return{value:m,rest:g}}}function $P(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function KP(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function zl(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const o=r[0],a=e.match(n.parsePattern);if(!a)return null;let c=n.valueCallback?n.valueCallback(a[0]):a[0];c=t.valueCallback?t.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}const WP=/^(\d+)(th|st|nd|rd)?/i,zP=/\d+/i,GP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qP={any:[/^b/i,/^(a|c)/i]},jP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YP={any:[/1/i,/2/i,/3/i,/4/i]},JP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},QP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},XP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ZP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},e1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},t1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},n1={ordinalNumber:zl({matchPattern:WP,parsePattern:zP,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:GP,defaultMatchWidth:"wide",parsePatterns:qP,defaultParseWidth:"any"}),quarter:bt({matchPatterns:jP,defaultMatchWidth:"wide",parsePatterns:YP,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:JP,defaultMatchWidth:"wide",parsePatterns:QP,defaultParseWidth:"any"}),day:bt({matchPatterns:XP,defaultMatchWidth:"wide",parsePatterns:ZP,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:e1,defaultMatchWidth:"any",parsePatterns:t1,defaultParseWidth:"any"})},Ef={code:"en-US",formatDistance:AP,formatLong:OP,formatRelative:MP,localize:HP,match:n1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function r1(n,e){const t=Tr(n,e==null?void 0:e.in);return EP(t,IP(t))+1}function o1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+vl(t)-+wP(t);return Math.round(r/pC)+1}function vC(n,e){var g,v,p,w;const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=Wl(),a=(e==null?void 0:e.firstWeekContainsDate)??((v=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(p=o.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=$o((e==null?void 0:e.in)||n,0);c.setFullYear(r+1,0,a),c.setHours(0,0,0,0);const d=Ts(c,e),h=$o((e==null?void 0:e.in)||n,0);h.setFullYear(r,0,a),h.setHours(0,0,0,0);const m=Ts(h,e);return+t>=+d?r+1:+t>=+m?r:r-1}function i1(n,e){var d,h,m,g;const t=Wl(),r=(e==null?void 0:e.firstWeekContainsDate)??((h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??t.firstWeekContainsDate??((g=(m=t.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,o=vC(n,e),a=$o((e==null?void 0:e.in)||n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Ts(a,e)}function a1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+Ts(t,e)-+i1(t,e);return Math.round(r/pC)+1}function We(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Ro={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return We(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):We(t+1,2)},d(n,e){return We(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return We(n.getHours()%12||12,e.length)},H(n,e){return We(n.getHours(),e.length)},m(n,e){return We(n.getMinutes(),e.length)},s(n,e){return We(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return We(o,e.length)}},Gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T_={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return Ro.y(n,e)},Y:function(n,e,t,r){const o=vC(n,r),a=o>0?o:1-o;if(e==="YY"){const c=a%100;return We(c,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):We(a,e.length)},R:function(n,e){const t=_C(n);return We(t,e.length)},u:function(n,e){const t=n.getFullYear();return We(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return We(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Ro.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const o=a1(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):We(o,e.length)},I:function(n,e,t){const r=o1(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):We(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Ro.d(n,e)},D:function(n,e,t){const r=r1(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):We(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return We(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const o=n.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return We(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return We(o,e.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const o=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let o;switch(r===12?o=Gi.noon:r===0?o=Gi.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let o;switch(r>=17?o=Gi.evening:r>=12?o=Gi.afternoon:r>=4?o=Gi.morning:o=Gi.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Ro.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Ro.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ro.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Ro.s(n,e)},S:function(n,e){return Ro.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return I_(r);case"XXXX":case"XX":return li(r);case"XXXXX":case"XXX":default:return li(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return I_(r);case"xxxx":case"xx":return li(r);case"xxxxx":case"xxx":default:return li(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b_(r,":");case"OOOO":default:return"GMT"+li(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b_(r,":");case"zzzz":default:return"GMT"+li(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return We(r,e.length)},T:function(n,e,t){return We(+n,e.length)}};function b_(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+e+We(a,2)}function I_(n,e){return n%60===0?(n>0?"-":"+")+We(Math.abs(n)/60,2):li(n,e)}function li(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),o=We(Math.trunc(r/60),2),a=We(r%60,2);return t+o+e+a}const S_=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},yC=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},s1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return S_(n,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",S_(r,e)).replace("{{time}}",yC(o,e))},c1={p:yC,P:s1},l1=/^D+$/,u1=/^Y+$/,d1=["D","DD","YY","YYYY"];function h1(n){return l1.test(n)}function f1(n){return u1.test(n)}function m1(n,e,t){const r=g1(n,e,t);if(console.warn(r),d1.includes(n))throw new RangeError(r)}function g1(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const p1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v1=/^'([^]*?)'?$/,y1=/''/g,C1=/[a-zA-Z]/;function E1(n,e,t){var g,v,p,w,C,T,k,I;const r=Wl(),o=(t==null?void 0:t.locale)??r.locale??Ef,a=(t==null?void 0:t.firstWeekContainsDate)??((v=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(p=r.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,c=(t==null?void 0:t.weekStartsOn)??((T=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:T.weekStartsOn)??r.weekStartsOn??((I=(k=r.locale)==null?void 0:k.options)==null?void 0:I.weekStartsOn)??0,d=Tr(n,t==null?void 0:t.in);if(!bP(d))throw new RangeError("Invalid time value");let h=e.match(_1).map(N=>{const D=N[0];if(D==="p"||D==="P"){const L=c1[D];return L(N,o.formatLong)}return N}).join("").match(p1).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const D=N[0];if(D==="'")return{isToken:!1,value:w1(N)};if(T_[D])return{isToken:!0,value:N};if(D.match(C1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return{isToken:!1,value:N}});o.localize.preprocessor&&(h=o.localize.preprocessor(d,h));const m={firstWeekContainsDate:a,weekStartsOn:c,locale:o};return h.map(N=>{if(!N.isToken)return N.value;const D=N.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&f1(D)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&h1(D))&&m1(D,e,String(n));const L=T_[D[0]];return L(d,D,o.localize,m)}).join("")}function w1(n){const e=n.match(v1);return e?e[1].replace(y1,"'"):n}const A_={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},T1=(n,e,t)=>{let r;const o=t!=null&&t.addSuffix?A_[n].withPreposition:A_[n].standalone;return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:"vor "+r:r},b1={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},I1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},S1={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},A1={date:or({formats:b1,defaultWidth:"full"}),time:or({formats:I1,defaultWidth:"full"}),dateTime:or({formats:S1,defaultWidth:"full"})},k1={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},N1=(n,e,t,r)=>k1[n],R1={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},O1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Th={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},P1={narrow:Th.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Th.wide},M1={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},D1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},L1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},x1=n=>Number(n)+".",U1={ordinalNumber:x1,era:Tt({values:R1,defaultWidth:"wide"}),quarter:Tt({values:O1,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:Th,formattingValues:P1,defaultWidth:"wide"}),day:Tt({values:M1,defaultWidth:"wide"}),dayPeriod:Tt({values:D1,defaultWidth:"wide",formattingValues:L1,defaultFormattingWidth:"wide"})},B1=/^(\d+)(\.)?/i,F1=/\d+/i,V1={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},H1={any:[/^v/i,/^n/i]},$1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},K1={any:[/1/i,/2/i,/3/i,/4/i]},W1={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},z1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},G1={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},q1={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},j1={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Y1={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},J1={ordinalNumber:zl({matchPattern:B1,parsePattern:F1,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:V1,defaultMatchWidth:"wide",parsePatterns:H1,defaultParseWidth:"any"}),quarter:bt({matchPatterns:$1,defaultMatchWidth:"wide",parsePatterns:K1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:W1,defaultMatchWidth:"wide",parsePatterns:z1,defaultParseWidth:"any"}),day:bt({matchPatterns:G1,defaultMatchWidth:"wide",parsePatterns:q1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:j1,defaultMatchWidth:"wide",parsePatterns:Y1,defaultParseWidth:"any"})},Q1={code:"de",formatDistance:T1,formatLong:A1,formatRelative:N1,localize:U1,match:J1,options:{weekStartsOn:1,firstWeekContainsDate:4}},X1={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Z1=(n,e,t)=>{let r;const o=X1[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"dans "+r:"il y a "+r:r},eM={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},tM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nM={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rM={date:or({formats:eM,defaultWidth:"full"}),time:or({formats:tM,defaultWidth:"full"}),dateTime:or({formats:nM,defaultWidth:"full"})},oM={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},iM=(n,e,t,r)=>oM[n],aM={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},sM={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},cM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},lM={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},uM={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},dM=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;if(t===0)return"0";const o=["year","week","hour","minute","second"];let a;return t===1?a=r&&o.includes(r)?"ère":"er":a="ème",t+a},hM=["MMM","MMMM"],fM={preprocessor:(n,e)=>n.getDate()===1||!e.some(r=>r.isToken&&hM.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:dM,era:Tt({values:aM,defaultWidth:"wide"}),quarter:Tt({values:sM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:cM,defaultWidth:"wide"}),day:Tt({values:lM,defaultWidth:"wide"}),dayPeriod:Tt({values:uM,defaultWidth:"wide"})},mM=/^(\d+)(ième|ère|ème|er|e)?/i,gM=/\d+/i,pM={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},_M={any:[/^av/i,/^ap/i]},vM={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},yM={any:[/1/i,/2/i,/3/i,/4/i]},CM={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},EM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},wM={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},TM={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},bM={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},IM={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},SM={ordinalNumber:zl({matchPattern:mM,parsePattern:gM,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:pM,defaultMatchWidth:"wide",parsePatterns:_M,defaultParseWidth:"any"}),quarter:bt({matchPatterns:vM,defaultMatchWidth:"wide",parsePatterns:yM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:CM,defaultMatchWidth:"wide",parsePatterns:EM,defaultParseWidth:"any"}),day:bt({matchPatterns:wM,defaultMatchWidth:"wide",parsePatterns:TM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:bM,defaultMatchWidth:"any",parsePatterns:IM,defaultParseWidth:"any"})},AM={code:"fr",formatDistance:Z1,formatLong:rM,formatRelative:iM,localize:fM,match:SM,options:{weekStartsOn:1,firstWeekContainsDate:4}},kM={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},NM=(n,e,t)=>{let r;const o=kM[n];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"em "+r:"há "+r:r},RM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},OM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},PM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},MM={date:or({formats:RM,defaultWidth:"full"}),time:or({formats:OM,defaultWidth:"full"}),dateTime:or({formats:PM,defaultWidth:"full"})},DM={lastWeek:n=>{const e=n.getDay();return"'"+(e===0||e===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},LM=(n,e,t,r)=>{const o=DM[n];return typeof o=="function"?o(e):o},xM={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},UM={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},BM={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},FM={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},VM={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},HM={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},$M=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="week"?t+"ª":t+"º"},KM={ordinalNumber:$M,era:Tt({values:xM,defaultWidth:"wide"}),quarter:Tt({values:UM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:BM,defaultWidth:"wide"}),day:Tt({values:FM,defaultWidth:"wide"}),dayPeriod:Tt({values:VM,defaultWidth:"wide",formattingValues:HM,defaultFormattingWidth:"wide"})},WM=/^(\d+)[ºªo]?/i,zM=/\d+/i,GM={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},qM={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},jM={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},YM={any:[/1/i,/2/i,/3/i,/4/i]},JM={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},QM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},XM={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},ZM={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},eD={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},tD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},nD={ordinalNumber:zl({matchPattern:WM,parsePattern:zM,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:GM,defaultMatchWidth:"wide",parsePatterns:qM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:jM,defaultMatchWidth:"wide",parsePatterns:YM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:JM,defaultMatchWidth:"wide",parsePatterns:QM,defaultParseWidth:"any"}),day:bt({matchPatterns:XM,defaultMatchWidth:"wide",parsePatterns:ZM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:eD,defaultMatchWidth:"any",parsePatterns:tD,defaultParseWidth:"any"})},rD={code:"pt-BR",formatDistance:NM,formatLong:MM,formatRelative:LM,localize:KM,match:nD,options:{weekStartsOn:0,firstWeekContainsDate:1}};/*!
12
12
  * shared v11.1.3
13
13
  * (c) 2025 kazuya kawaguchi
14
14
  * Released under the MIT License.
15
- */const Cr=typeof window<"u";let Un,vi;if(process.env.NODE_ENV!=="production"){const n=Cr&&window.performance;n&&n.mark&&n.measure&&n.clearMarks&&n.clearMeasures&&(Un=e=>{n.mark(e)},vi=(e,t,r)=>{n.measure(e,t,r),n.clearMarks(t),n.clearMarks(r)})}const iD=/\{([0-9a-zA-Z]+)\}/g;function Gl(n,...e){return e.length===1&&Le(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(iD,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const Gr=(n,e=!1)=>e?Symbol.for(n):Symbol(n),aD=(n,e,t)=>sD({l:n,k:e,s:t}),sD=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),It=n=>typeof n=="number"&&isFinite(n),cD=n=>wf(n)==="[object Date]",ya=n=>wf(n)==="[object RegExp]",ql=n=>ke(n)&&Object.keys(n).length===0,Ot=Object.assign,lD=Object.create,qe=(n=null)=>lD(n);let k_;const fi=()=>k_||(k_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:qe());function N_(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const uD=Object.prototype.hasOwnProperty;function _r(n,e){return uD.call(n,e)}const yt=Array.isArray,Je=n=>typeof n=="function",ne=n=>typeof n=="string",Ue=n=>typeof n=="boolean",Le=n=>n!==null&&typeof n=="object",dD=n=>Le(n)&&Je(n.then)&&Je(n.catch),CC=Object.prototype.toString,wf=n=>CC.call(n),ke=n=>wf(n)==="[object Object]",hD=n=>n==null?"":yt(n)||ke(n)&&n.toString===CC?JSON.stringify(n,null,2):String(n);function Tf(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const R_=2;function fD(n,e=0,t=n.length){const r=n.split(/\r?\n/);let o=0;const a=[];for(let c=0;c<r.length;c++)if(o+=r[c].length+1,o>=e){for(let d=c-R_;d<=c+R_||t>o;d++){if(d<0||d>=r.length)continue;const h=d+1;a.push(`${h}${" ".repeat(3-String(h).length)}| ${r[d]}`);const m=r[d].length;if(d===c){const g=e-(o-m)+1,v=Math.max(1,t>o?m-g:t-e);a.push(" | "+" ".repeat(g)+"^".repeat(v))}else if(d>c){if(t>o){const g=Math.max(Math.min(t-o,m),1);a.push(" | "+"^".repeat(g))}o+=m+1}}break}return a.join(`
15
+ */const Cr=typeof window<"u";let Un,vi;if(process.env.NODE_ENV!=="production"){const n=Cr&&window.performance;n&&n.mark&&n.measure&&n.clearMarks&&n.clearMeasures&&(Un=e=>{n.mark(e)},vi=(e,t,r)=>{n.measure(e,t,r),n.clearMarks(t),n.clearMarks(r)})}const oD=/\{([0-9a-zA-Z]+)\}/g;function Gl(n,...e){return e.length===1&&Le(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(oD,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const Gr=(n,e=!1)=>e?Symbol.for(n):Symbol(n),iD=(n,e,t)=>aD({l:n,k:e,s:t}),aD=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),It=n=>typeof n=="number"&&isFinite(n),sD=n=>wf(n)==="[object Date]",ya=n=>wf(n)==="[object RegExp]",ql=n=>ke(n)&&Object.keys(n).length===0,Ot=Object.assign,cD=Object.create,qe=(n=null)=>cD(n);let k_;const fi=()=>k_||(k_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:qe());function N_(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const lD=Object.prototype.hasOwnProperty;function _r(n,e){return lD.call(n,e)}const yt=Array.isArray,Je=n=>typeof n=="function",ne=n=>typeof n=="string",Ue=n=>typeof n=="boolean",Le=n=>n!==null&&typeof n=="object",uD=n=>Le(n)&&Je(n.then)&&Je(n.catch),CC=Object.prototype.toString,wf=n=>CC.call(n),ke=n=>wf(n)==="[object Object]",dD=n=>n==null?"":yt(n)||ke(n)&&n.toString===CC?JSON.stringify(n,null,2):String(n);function Tf(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const R_=2;function hD(n,e=0,t=n.length){const r=n.split(/\r?\n/);let o=0;const a=[];for(let c=0;c<r.length;c++)if(o+=r[c].length+1,o>=e){for(let d=c-R_;d<=c+R_||t>o;d++){if(d<0||d>=r.length)continue;const h=d+1;a.push(`${h}${" ".repeat(3-String(h).length)}| ${r[d]}`);const m=r[d].length;if(d===c){const g=e-(o-m)+1,v=Math.max(1,t>o?m-g:t-e);a.push(" | "+" ".repeat(g)+"^".repeat(v))}else if(d>c){if(t>o){const g=Math.max(Math.min(t-o,m),1);a.push(" | "+"^".repeat(g))}o+=m+1}}break}return a.join(`
16
16
  `)}function zo(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const O_={};function bf(n){O_[n]||(O_[n]=!0,zo(n))}function If(){const n=new Map;return{events:n,on(t,r){const o=n.get(t);o&&o.push(r)||n.set(t,[r])},off(t,r){const o=n.get(t);o&&o.splice(o.indexOf(r)>>>0,1)},emit(t,r){(n.get(t)||[]).slice().map(o=>o(r)),(n.get("*")||[]).slice().map(o=>o(t,r))}}}const Dc=n=>!Le(n)||yt(n);function il(n,e){if(Dc(n)||Dc(e))throw new Error("Invalid value");const t=[{src:n,des:e}];for(;t.length;){const{src:r,des:o}=t.pop();Object.keys(r).forEach(a=>{a!=="__proto__"&&(Le(r[a])&&!Le(o[a])&&(o[a]=Array.isArray(r[a])?[]:qe()),Dc(o[a])||Dc(r[a])?o[a]=r[a]:t.push({src:r[a],des:o[a]}))})}}/*!
17
17
  * message-compiler v11.1.3
18
18
  * (c) 2025 kazuya kawaguchi
19
19
  * Released under the MIT License.
20
- */function mD(n,e,t){return{line:n,column:e,offset:t}}function bh(n,e,t){return{start:n,end:e}}const ye={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},gD=17,pD={[ye.EXPECTED_TOKEN]:"Expected token: '{0}'",[ye.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ye.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ye.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ye.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ye.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ye.EMPTY_PLACEHOLDER]:"Empty placeholder",[ye.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ye.INVALID_LINKED_FORMAT]:"Invalid linked format",[ye.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ye.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ye.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ye.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ye.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ye.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Aa(n,e,t={}){const{domain:r,messages:o,args:a}=t,c=process.env.NODE_ENV!=="production"?Gl((o||pD)[n]||"",...a||[]):n,d=new SyntaxError(String(c));return d.code=n,e&&(d.location=e),d.domain=r,d}function _D(n){throw n}const vD=/<\/?[\w\s="/.':;#-\/]+>/,yD=n=>vD.test(n),oo=" ",CD="\r",un=`
21
- `,ED="\u2028",wD="\u2029";function TD(n){const e=n;let t=0,r=1,o=1,a=0;const c=M=>e[M]===CD&&e[M+1]===un,d=M=>e[M]===un,h=M=>e[M]===wD,m=M=>e[M]===ED,g=M=>c(M)||d(M)||h(M)||m(M),v=()=>t,p=()=>r,w=()=>o,C=()=>a,T=M=>c(M)||h(M)||m(M)?un:e[M],k=()=>T(t),I=()=>T(t+a);function N(){return a=0,g(t)&&(r++,o=0),c(t)&&t++,t++,o++,e[t]}function D(){return c(t+a)&&a++,a++,e[t+a]}function L(){t=0,r=1,o=1,a=0}function K(M=0){a=M}function q(){const M=t+a;for(;M!==t;)N();a=0}return{index:v,line:p,column:w,peekOffset:C,charAt:T,currentChar:k,currentPeek:I,next:N,peek:D,reset:L,resetPeek:K,skipToPeek:q}}const Oo=void 0,bD=".",P_="'",ID="tokenizer";function SD(n,e={}){const t=e.location!==!1,r=TD(n),o=()=>r.index(),a=()=>mD(r.line(),r.column(),r.index()),c=a(),d=o(),h={currentType:13,offset:d,startLoc:c,endLoc:c,lastType:13,lastOffset:d,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},m=()=>h,{onError:g}=e;function v(A,R,G,...oe){const je=m();if(R.column+=G,R.offset+=G,g){const Ze=t?bh(je.startLoc,R):null,Me=Aa(A,Ze,{domain:ID,args:oe});g(Me)}}function p(A,R,G){A.endLoc=a(),A.currentType=R;const oe={type:R};return t&&(oe.loc=bh(A.startLoc,A.endLoc)),G!=null&&(oe.value=G),oe}const w=A=>p(A,13);function C(A,R){return A.currentChar()===R?(A.next(),R):(v(ye.EXPECTED_TOKEN,a(),0,R),"")}function T(A){let R="";for(;A.currentPeek()===oo||A.currentPeek()===un;)R+=A.currentPeek(),A.peek();return R}function k(A){const R=T(A);return A.skipToPeek(),R}function I(A){if(A===Oo)return!1;const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R===95}function N(A){if(A===Oo)return!1;const R=A.charCodeAt(0);return R>=48&&R<=57}function D(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=I(A.currentPeek());return A.resetPeek(),oe}function L(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=A.currentPeek()==="-"?A.peek():A.currentPeek(),je=N(oe);return A.resetPeek(),je}function K(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=A.currentPeek()===P_;return A.resetPeek(),oe}function q(A,R){const{currentType:G}=R;if(G!==7)return!1;T(A);const oe=A.currentPeek()===".";return A.resetPeek(),oe}function M(A,R){const{currentType:G}=R;if(G!==8)return!1;T(A);const oe=I(A.currentPeek());return A.resetPeek(),oe}function ce(A,R){const{currentType:G}=R;if(!(G===7||G===11))return!1;T(A);const oe=A.currentPeek()===":";return A.resetPeek(),oe}function ae(A,R){const{currentType:G}=R;if(G!==9)return!1;const oe=()=>{const Ze=A.currentPeek();return Ze==="{"?I(A.peek()):Ze==="@"||Ze==="|"||Ze===":"||Ze==="."||Ze===oo||!Ze?!1:Ze===un?(A.peek(),oe()):ee(A,!1)},je=oe();return A.resetPeek(),je}function X(A){T(A);const R=A.currentPeek()==="|";return A.resetPeek(),R}function ee(A,R=!0){const G=(je=!1,Ze="")=>{const Me=A.currentPeek();return Me==="{"||Me==="@"||!Me?je:Me==="|"?!(Ze===oo||Ze===un):Me===oo?(A.peek(),G(!0,oo)):Me===un?(A.peek(),G(!0,un)):!0},oe=G();return R&&A.resetPeek(),oe}function ue(A,R){const G=A.currentChar();return G===Oo?Oo:R(G)?(A.next(),G):null}function Be(A){const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36}function Ct(A){return ue(A,Be)}function rn(A){const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36||R===45}function qt(A){return ue(A,rn)}function Mt(A){const R=A.charCodeAt(0);return R>=48&&R<=57}function at(A){return ue(A,Mt)}function Et(A){const R=A.charCodeAt(0);return R>=48&&R<=57||R>=65&&R<=70||R>=97&&R<=102}function on(A){return ue(A,Et)}function St(A){let R="",G="";for(;R=at(A);)G+=R;return G}function jo(A){let R="";for(;;){const G=A.currentChar();if(G==="{"||G==="}"||G==="@"||G==="|"||!G)break;if(G===oo||G===un)if(ee(A))R+=G,A.next();else{if(X(A))break;R+=G,A.next()}else R+=G,A.next()}return R}function La(A){k(A);let R="",G="";for(;R=qt(A);)G+=R;return A.currentChar()===Oo&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G}function xa(A){k(A);let R="";return A.currentChar()==="-"?(A.next(),R+=`-${St(A)}`):R+=St(A),A.currentChar()===Oo&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R}function Sr(A){return A!==P_&&A!==un}function Yo(A){k(A),C(A,"'");let R="",G="";for(;R=ue(A,Sr);)R==="\\"?G+=Ua(A):G+=R;const oe=A.currentChar();return oe===un||oe===Oo?(v(ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),oe===un&&(A.next(),C(A,"'")),G):(C(A,"'"),G)}function Ua(A){const R=A.currentChar();switch(R){case"\\":case"'":return A.next(),`\\${R}`;case"u":return Ar(A,R,4);case"U":return Ar(A,R,6);default:return v(ye.UNKNOWN_ESCAPE_SEQUENCE,a(),0,R),""}}function Ar(A,R,G){C(A,R);let oe="";for(let je=0;je<G;je++){const Ze=on(A);if(!Ze){v(ye.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${R}${oe}${A.currentChar()}`);break}oe+=Ze}return`\\${R}${oe}`}function qr(A){return A!=="{"&&A!=="}"&&A!==oo&&A!==un}function Ba(A){k(A);let R="",G="";for(;R=ue(A,qr);)G+=R;return G}function _o(A){let R="",G="";for(;R=Ct(A);)G+=R;return G}function vo(A){const R=G=>{const oe=A.currentChar();return oe==="{"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===oo?G:(G+=oe,A.next(),R(G))};return R("")}function yo(A){k(A);const R=C(A,"|");return k(A),R}function Ft(A,R){let G=null;switch(A.currentChar()){case"{":return R.braceNest>=1&&v(ye.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),A.next(),G=p(R,2,"{"),k(A),R.braceNest++,G;case"}":return R.braceNest>0&&R.currentType===2&&v(ye.EMPTY_PLACEHOLDER,a(),0),A.next(),G=p(R,3,"}"),R.braceNest--,R.braceNest>0&&k(A),R.inLinked&&R.braceNest===0&&(R.inLinked=!1),G;case"@":return R.braceNest>0&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G=En(A,R)||w(R),R.braceNest=0,G;default:{let je=!0,Ze=!0,Me=!0;if(X(A))return R.braceNest>0&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,G;if(R.braceNest>0&&(R.currentType===4||R.currentType===5||R.currentType===6))return v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R.braceNest=0,Jo(A,R);if(je=D(A,R))return G=p(R,4,La(A)),k(A),G;if(Ze=L(A,R))return G=p(R,5,xa(A)),k(A),G;if(Me=K(A,R))return G=p(R,6,Yo(A)),k(A),G;if(!je&&!Ze&&!Me)return G=p(R,12,Ba(A)),v(ye.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,G.value),k(A),G;break}}return G}function En(A,R){const{currentType:G}=R;let oe=null;const je=A.currentChar();switch((G===7||G===8||G===11||G===9)&&(je===un||je===oo)&&v(ye.INVALID_LINKED_FORMAT,a(),0),je){case"@":return A.next(),oe=p(R,7,"@"),R.inLinked=!0,oe;case".":return k(A),A.next(),p(R,8,".");case":":return k(A),A.next(),p(R,9,":");default:return X(A)?(oe=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,oe):q(A,R)||ce(A,R)?(k(A),En(A,R)):M(A,R)?(k(A),p(R,11,_o(A))):ae(A,R)?(k(A),je==="{"?Ft(A,R)||oe:p(R,10,vo(A))):(G===7&&v(ye.INVALID_LINKED_FORMAT,a(),0),R.braceNest=0,R.inLinked=!1,Jo(A,R))}}function Jo(A,R){let G={type:13};if(R.braceNest>0)return Ft(A,R)||w(R);if(R.inLinked)return En(A,R)||w(R);switch(A.currentChar()){case"{":return Ft(A,R)||w(R);case"}":return v(ye.UNBALANCED_CLOSING_BRACE,a(),0),A.next(),p(R,3,"}");case"@":return En(A,R)||w(R);default:{if(X(A))return G=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,G;if(ee(A))return p(R,0,jo(A));break}}return G}function wn(){const{currentType:A,offset:R,startLoc:G,endLoc:oe}=h;return h.lastType=A,h.lastOffset=R,h.lastStartLoc=G,h.lastEndLoc=oe,h.offset=o(),h.startLoc=a(),r.currentChar()===Oo?p(h,13):Jo(r,h)}return{nextToken:wn,currentOffset:o,currentPosition:a,context:m}}const AD="parser",kD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ND(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function RD(n={}){const e=n.location!==!1,{onError:t}=n;function r(I,N,D,L,...K){const q=I.currentPosition();if(q.offset+=L,q.column+=L,t){const M=e?bh(D,q):null,ce=Aa(N,M,{domain:AD,args:K});t(ce)}}function o(I,N,D){const L={type:I};return e&&(L.start=N,L.end=N,L.loc={start:D,end:D}),L}function a(I,N,D,L){e&&(I.end=N,I.loc&&(I.loc.end=D))}function c(I,N){const D=I.context(),L=o(3,D.offset,D.startLoc);return L.value=N,a(L,I.currentOffset(),I.currentPosition()),L}function d(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(5,L,K);return q.index=parseInt(N,10),I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function h(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(4,L,K);return q.key=N,I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function m(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(9,L,K);return q.value=N.replace(kD,ND),I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function g(I){const N=I.nextToken(),D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(8,L,K);return N.type!==11?(r(I,ye.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),q.value="",a(q,L,K),{nextConsumeToken:N,node:q}):(N.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,Pr(N)),q.value=N.value||"",a(q,I.currentOffset(),I.currentPosition()),{node:q})}function v(I,N){const D=I.context(),L=o(7,D.offset,D.startLoc);return L.value=N,a(L,I.currentOffset(),I.currentPosition()),L}function p(I){const N=I.context(),D=o(6,N.offset,N.startLoc);let L=I.nextToken();if(L.type===8){const K=g(I);D.modifier=K.node,L=K.nextConsumeToken||I.nextToken()}switch(L.type!==9&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),L=I.nextToken(),L.type===2&&(L=I.nextToken()),L.type){case 10:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=v(I,L.value||"");break;case 4:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=h(I,L.value||"");break;case 5:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=d(I,L.value||"");break;case 6:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=m(I,L.value||"");break;default:{r(I,ye.UNEXPECTED_EMPTY_LINKED_KEY,N.lastStartLoc,0);const K=I.context(),q=o(7,K.offset,K.startLoc);return q.value="",a(q,K.offset,K.startLoc),D.key=q,a(D,K.offset,K.startLoc),{nextConsumeToken:L,node:D}}}return a(D,I.currentOffset(),I.currentPosition()),{node:D}}function w(I){const N=I.context(),D=N.currentType===1?I.currentOffset():N.offset,L=N.currentType===1?N.endLoc:N.startLoc,K=o(2,D,L);K.items=[];let q=null;do{const ae=q||I.nextToken();switch(q=null,ae.type){case 0:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(c(I,ae.value||""));break;case 5:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(d(I,ae.value||""));break;case 4:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(h(I,ae.value||""));break;case 6:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(m(I,ae.value||""));break;case 7:{const X=p(I);K.items.push(X.node),q=X.nextConsumeToken||null;break}}}while(N.currentType!==13&&N.currentType!==1);const M=N.currentType===1?N.lastOffset:I.currentOffset(),ce=N.currentType===1?N.lastEndLoc:I.currentPosition();return a(K,M,ce),K}function C(I,N,D,L){const K=I.context();let q=L.items.length===0;const M=o(1,N,D);M.cases=[],M.cases.push(L);do{const ce=w(I);q||(q=ce.items.length===0),M.cases.push(ce)}while(K.currentType!==13);return q&&r(I,ye.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),a(M,I.currentOffset(),I.currentPosition()),M}function T(I){const N=I.context(),{offset:D,startLoc:L}=N,K=w(I);return N.currentType===13?K:C(I,D,L,K)}function k(I){const N=SD(I,Ot({},n)),D=N.context(),L=o(0,D.offset,D.startLoc);return e&&L.loc&&(L.loc.source=I),L.body=T(N),n.onCacheKey&&(L.cacheKey=n.onCacheKey(I)),D.currentType!==13&&r(N,ye.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,I[D.offset]||""),a(L,N.currentOffset(),N.currentPosition()),L}return{parse:k}}function Pr(n){if(n.type===13)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function OD(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:a=>(t.helpers.add(a),a)}}function M_(n,e){for(let t=0;t<n.length;t++)Sf(n[t],e)}function Sf(n,e){switch(n.type){case 1:M_(n.cases,e),e.helper("plural");break;case 2:M_(n.items,e);break;case 6:{Sf(n.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function PD(n,e={}){const t=OD(n);t.helper("normalize"),n.body&&Sf(n.body,t);const r=t.context();n.helpers=Array.from(r.helpers)}function MD(n){const e=n.body;return e.type===2?D_(e):e.cases.forEach(t=>D_(t)),n}function D_(n){if(n.items.length===1){const e=n.items[0];(e.type===3||e.type===9)&&(n.static=e.value,delete e.value)}else{const e=[];for(let t=0;t<n.items.length;t++){const r=n.items[t];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===n.items.length){n.static=Tf(e);for(let t=0;t<n.items.length;t++){const r=n.items[t];(r.type===3||r.type===9)&&delete r.value}}}}const DD="minifier";function ra(n){switch(n.t=n.type,n.type){case 0:{const e=n;ra(e.body),e.b=e.body,delete e.body;break}case 1:{const e=n,t=e.cases;for(let r=0;r<t.length;r++)ra(t[r]);e.c=t,delete e.cases;break}case 2:{const e=n,t=e.items;for(let r=0;r<t.length;r++)ra(t[r]);e.i=t,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=n;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=n;ra(e.key),e.k=e.key,delete e.key,e.modifier&&(ra(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=n;e.i=e.index,delete e.index;break}case 4:{const e=n;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw Aa(ye.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:DD,args:[n.type]})}delete n.type}const LD="parser";function xD(n,e){const{sourceMap:t,filename:r,breakLineCode:o,needIndent:a}=e,c=e.location!==!1,d={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};c&&n.loc&&(d.source=n.loc.source);const h=()=>d;function m(k,I){d.code+=k}function g(k,I=!0){const N=I?o:"";m(a?N+" ".repeat(k):N)}function v(k=!0){const I=++d.indentLevel;k&&g(I)}function p(k=!0){const I=--d.indentLevel;k&&g(I)}function w(){g(d.indentLevel)}return{context:h,push:m,indent:v,deindent:p,newline:w,helper:k=>`_${k}`,needIndent:()=>d.needIndent}}function UD(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),Ca(n,e.key),e.modifier?(n.push(", "),Ca(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function BD(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const o=e.items.length;for(let a=0;a<o&&(Ca(n,e.items[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}function FD(n,e){const{helper:t,needIndent:r}=n;if(e.cases.length>1){n.push(`${t("plural")}([`),n.indent(r());const o=e.cases.length;for(let a=0;a<o&&(Ca(n,e.cases[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}}function VD(n,e){e.body?Ca(n,e.body):n.push("null")}function Ca(n,e){const{helper:t}=n;switch(e.type){case 0:VD(n,e);break;case 1:FD(n,e);break;case 2:BD(n,e);break;case 6:UD(n,e);break;case 8:n.push(JSON.stringify(e.value),e);break;case 7:n.push(JSON.stringify(e.value),e);break;case 5:n.push(`${t("interpolate")}(${t("list")}(${e.index}))`,e);break;case 4:n.push(`${t("interpolate")}(${t("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:n.push(JSON.stringify(e.value),e);break;case 3:n.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw Aa(ye.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:LD,args:[e.type]})}}const HD=(n,e={})=>{const t=ne(e.mode)?e.mode:"normal",r=ne(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,a=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":`
22
- `,c=e.needIndent?e.needIndent:t!=="arrow",d=n.helpers||[],h=xD(n,{mode:t,filename:r,sourceMap:o,breakLineCode:a,needIndent:c});h.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),h.indent(c),d.length>0&&(h.push(`const { ${Tf(d.map(v=>`${v}: _${v}`),", ")} } = ctx`),h.newline()),h.push("return "),Ca(h,n),h.deindent(c),h.push("}"),delete n.helpers;const{code:m,map:g}=h.context();return{ast:n,code:m,map:g?g.toJSON():void 0}};function $D(n,e={}){const t=Ot({},e),r=!!t.jit,o=!!t.minify,a=t.optimize==null?!0:t.optimize,d=RD(t).parse(n);return r?(a&&MD(d),o&&ra(d),{ast:d,code:""}):(PD(d,t),HD(d,t))}/*!
20
+ */function fD(n,e,t){return{line:n,column:e,offset:t}}function bh(n,e,t){return{start:n,end:e}}const ye={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},mD=17,gD={[ye.EXPECTED_TOKEN]:"Expected token: '{0}'",[ye.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ye.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ye.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ye.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ye.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ye.EMPTY_PLACEHOLDER]:"Empty placeholder",[ye.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ye.INVALID_LINKED_FORMAT]:"Invalid linked format",[ye.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ye.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ye.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ye.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ye.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ye.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Aa(n,e,t={}){const{domain:r,messages:o,args:a}=t,c=process.env.NODE_ENV!=="production"?Gl((o||gD)[n]||"",...a||[]):n,d=new SyntaxError(String(c));return d.code=n,e&&(d.location=e),d.domain=r,d}function pD(n){throw n}const _D=/<\/?[\w\s="/.':;#-\/]+>/,vD=n=>_D.test(n),oo=" ",yD="\r",un=`
21
+ `,CD="\u2028",ED="\u2029";function wD(n){const e=n;let t=0,r=1,o=1,a=0;const c=M=>e[M]===yD&&e[M+1]===un,d=M=>e[M]===un,h=M=>e[M]===ED,m=M=>e[M]===CD,g=M=>c(M)||d(M)||h(M)||m(M),v=()=>t,p=()=>r,w=()=>o,C=()=>a,T=M=>c(M)||h(M)||m(M)?un:e[M],k=()=>T(t),I=()=>T(t+a);function N(){return a=0,g(t)&&(r++,o=0),c(t)&&t++,t++,o++,e[t]}function D(){return c(t+a)&&a++,a++,e[t+a]}function L(){t=0,r=1,o=1,a=0}function K(M=0){a=M}function q(){const M=t+a;for(;M!==t;)N();a=0}return{index:v,line:p,column:w,peekOffset:C,charAt:T,currentChar:k,currentPeek:I,next:N,peek:D,reset:L,resetPeek:K,skipToPeek:q}}const Oo=void 0,TD=".",P_="'",bD="tokenizer";function ID(n,e={}){const t=e.location!==!1,r=wD(n),o=()=>r.index(),a=()=>fD(r.line(),r.column(),r.index()),c=a(),d=o(),h={currentType:13,offset:d,startLoc:c,endLoc:c,lastType:13,lastOffset:d,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},m=()=>h,{onError:g}=e;function v(A,R,G,...oe){const je=m();if(R.column+=G,R.offset+=G,g){const Ze=t?bh(je.startLoc,R):null,Me=Aa(A,Ze,{domain:bD,args:oe});g(Me)}}function p(A,R,G){A.endLoc=a(),A.currentType=R;const oe={type:R};return t&&(oe.loc=bh(A.startLoc,A.endLoc)),G!=null&&(oe.value=G),oe}const w=A=>p(A,13);function C(A,R){return A.currentChar()===R?(A.next(),R):(v(ye.EXPECTED_TOKEN,a(),0,R),"")}function T(A){let R="";for(;A.currentPeek()===oo||A.currentPeek()===un;)R+=A.currentPeek(),A.peek();return R}function k(A){const R=T(A);return A.skipToPeek(),R}function I(A){if(A===Oo)return!1;const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R===95}function N(A){if(A===Oo)return!1;const R=A.charCodeAt(0);return R>=48&&R<=57}function D(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=I(A.currentPeek());return A.resetPeek(),oe}function L(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=A.currentPeek()==="-"?A.peek():A.currentPeek(),je=N(oe);return A.resetPeek(),je}function K(A,R){const{currentType:G}=R;if(G!==2)return!1;T(A);const oe=A.currentPeek()===P_;return A.resetPeek(),oe}function q(A,R){const{currentType:G}=R;if(G!==7)return!1;T(A);const oe=A.currentPeek()===".";return A.resetPeek(),oe}function M(A,R){const{currentType:G}=R;if(G!==8)return!1;T(A);const oe=I(A.currentPeek());return A.resetPeek(),oe}function ce(A,R){const{currentType:G}=R;if(!(G===7||G===11))return!1;T(A);const oe=A.currentPeek()===":";return A.resetPeek(),oe}function ae(A,R){const{currentType:G}=R;if(G!==9)return!1;const oe=()=>{const Ze=A.currentPeek();return Ze==="{"?I(A.peek()):Ze==="@"||Ze==="|"||Ze===":"||Ze==="."||Ze===oo||!Ze?!1:Ze===un?(A.peek(),oe()):ee(A,!1)},je=oe();return A.resetPeek(),je}function X(A){T(A);const R=A.currentPeek()==="|";return A.resetPeek(),R}function ee(A,R=!0){const G=(je=!1,Ze="")=>{const Me=A.currentPeek();return Me==="{"||Me==="@"||!Me?je:Me==="|"?!(Ze===oo||Ze===un):Me===oo?(A.peek(),G(!0,oo)):Me===un?(A.peek(),G(!0,un)):!0},oe=G();return R&&A.resetPeek(),oe}function ue(A,R){const G=A.currentChar();return G===Oo?Oo:R(G)?(A.next(),G):null}function Be(A){const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36}function Ct(A){return ue(A,Be)}function rn(A){const R=A.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36||R===45}function qt(A){return ue(A,rn)}function Mt(A){const R=A.charCodeAt(0);return R>=48&&R<=57}function at(A){return ue(A,Mt)}function Et(A){const R=A.charCodeAt(0);return R>=48&&R<=57||R>=65&&R<=70||R>=97&&R<=102}function on(A){return ue(A,Et)}function St(A){let R="",G="";for(;R=at(A);)G+=R;return G}function jo(A){let R="";for(;;){const G=A.currentChar();if(G==="{"||G==="}"||G==="@"||G==="|"||!G)break;if(G===oo||G===un)if(ee(A))R+=G,A.next();else{if(X(A))break;R+=G,A.next()}else R+=G,A.next()}return R}function La(A){k(A);let R="",G="";for(;R=qt(A);)G+=R;return A.currentChar()===Oo&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G}function xa(A){k(A);let R="";return A.currentChar()==="-"?(A.next(),R+=`-${St(A)}`):R+=St(A),A.currentChar()===Oo&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R}function Sr(A){return A!==P_&&A!==un}function Yo(A){k(A),C(A,"'");let R="",G="";for(;R=ue(A,Sr);)R==="\\"?G+=Ua(A):G+=R;const oe=A.currentChar();return oe===un||oe===Oo?(v(ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),oe===un&&(A.next(),C(A,"'")),G):(C(A,"'"),G)}function Ua(A){const R=A.currentChar();switch(R){case"\\":case"'":return A.next(),`\\${R}`;case"u":return Ar(A,R,4);case"U":return Ar(A,R,6);default:return v(ye.UNKNOWN_ESCAPE_SEQUENCE,a(),0,R),""}}function Ar(A,R,G){C(A,R);let oe="";for(let je=0;je<G;je++){const Ze=on(A);if(!Ze){v(ye.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${R}${oe}${A.currentChar()}`);break}oe+=Ze}return`\\${R}${oe}`}function qr(A){return A!=="{"&&A!=="}"&&A!==oo&&A!==un}function Ba(A){k(A);let R="",G="";for(;R=ue(A,qr);)G+=R;return G}function _o(A){let R="",G="";for(;R=Ct(A);)G+=R;return G}function vo(A){const R=G=>{const oe=A.currentChar();return oe==="{"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===oo?G:(G+=oe,A.next(),R(G))};return R("")}function yo(A){k(A);const R=C(A,"|");return k(A),R}function Ft(A,R){let G=null;switch(A.currentChar()){case"{":return R.braceNest>=1&&v(ye.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),A.next(),G=p(R,2,"{"),k(A),R.braceNest++,G;case"}":return R.braceNest>0&&R.currentType===2&&v(ye.EMPTY_PLACEHOLDER,a(),0),A.next(),G=p(R,3,"}"),R.braceNest--,R.braceNest>0&&k(A),R.inLinked&&R.braceNest===0&&(R.inLinked=!1),G;case"@":return R.braceNest>0&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G=En(A,R)||w(R),R.braceNest=0,G;default:{let je=!0,Ze=!0,Me=!0;if(X(A))return R.braceNest>0&&v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,G;if(R.braceNest>0&&(R.currentType===4||R.currentType===5||R.currentType===6))return v(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R.braceNest=0,Jo(A,R);if(je=D(A,R))return G=p(R,4,La(A)),k(A),G;if(Ze=L(A,R))return G=p(R,5,xa(A)),k(A),G;if(Me=K(A,R))return G=p(R,6,Yo(A)),k(A),G;if(!je&&!Ze&&!Me)return G=p(R,12,Ba(A)),v(ye.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,G.value),k(A),G;break}}return G}function En(A,R){const{currentType:G}=R;let oe=null;const je=A.currentChar();switch((G===7||G===8||G===11||G===9)&&(je===un||je===oo)&&v(ye.INVALID_LINKED_FORMAT,a(),0),je){case"@":return A.next(),oe=p(R,7,"@"),R.inLinked=!0,oe;case".":return k(A),A.next(),p(R,8,".");case":":return k(A),A.next(),p(R,9,":");default:return X(A)?(oe=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,oe):q(A,R)||ce(A,R)?(k(A),En(A,R)):M(A,R)?(k(A),p(R,11,_o(A))):ae(A,R)?(k(A),je==="{"?Ft(A,R)||oe:p(R,10,vo(A))):(G===7&&v(ye.INVALID_LINKED_FORMAT,a(),0),R.braceNest=0,R.inLinked=!1,Jo(A,R))}}function Jo(A,R){let G={type:13};if(R.braceNest>0)return Ft(A,R)||w(R);if(R.inLinked)return En(A,R)||w(R);switch(A.currentChar()){case"{":return Ft(A,R)||w(R);case"}":return v(ye.UNBALANCED_CLOSING_BRACE,a(),0),A.next(),p(R,3,"}");case"@":return En(A,R)||w(R);default:{if(X(A))return G=p(R,1,yo(A)),R.braceNest=0,R.inLinked=!1,G;if(ee(A))return p(R,0,jo(A));break}}return G}function wn(){const{currentType:A,offset:R,startLoc:G,endLoc:oe}=h;return h.lastType=A,h.lastOffset=R,h.lastStartLoc=G,h.lastEndLoc=oe,h.offset=o(),h.startLoc=a(),r.currentChar()===Oo?p(h,13):Jo(r,h)}return{nextToken:wn,currentOffset:o,currentPosition:a,context:m}}const SD="parser",AD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function kD(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ND(n={}){const e=n.location!==!1,{onError:t}=n;function r(I,N,D,L,...K){const q=I.currentPosition();if(q.offset+=L,q.column+=L,t){const M=e?bh(D,q):null,ce=Aa(N,M,{domain:SD,args:K});t(ce)}}function o(I,N,D){const L={type:I};return e&&(L.start=N,L.end=N,L.loc={start:D,end:D}),L}function a(I,N,D,L){e&&(I.end=N,I.loc&&(I.loc.end=D))}function c(I,N){const D=I.context(),L=o(3,D.offset,D.startLoc);return L.value=N,a(L,I.currentOffset(),I.currentPosition()),L}function d(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(5,L,K);return q.index=parseInt(N,10),I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function h(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(4,L,K);return q.key=N,I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function m(I,N){const D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(9,L,K);return q.value=N.replace(AD,kD),I.nextToken(),a(q,I.currentOffset(),I.currentPosition()),q}function g(I){const N=I.nextToken(),D=I.context(),{lastOffset:L,lastStartLoc:K}=D,q=o(8,L,K);return N.type!==11?(r(I,ye.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),q.value="",a(q,L,K),{nextConsumeToken:N,node:q}):(N.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,Pr(N)),q.value=N.value||"",a(q,I.currentOffset(),I.currentPosition()),{node:q})}function v(I,N){const D=I.context(),L=o(7,D.offset,D.startLoc);return L.value=N,a(L,I.currentOffset(),I.currentPosition()),L}function p(I){const N=I.context(),D=o(6,N.offset,N.startLoc);let L=I.nextToken();if(L.type===8){const K=g(I);D.modifier=K.node,L=K.nextConsumeToken||I.nextToken()}switch(L.type!==9&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),L=I.nextToken(),L.type===2&&(L=I.nextToken()),L.type){case 10:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=v(I,L.value||"");break;case 4:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=h(I,L.value||"");break;case 5:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=d(I,L.value||"");break;case 6:L.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(L)),D.key=m(I,L.value||"");break;default:{r(I,ye.UNEXPECTED_EMPTY_LINKED_KEY,N.lastStartLoc,0);const K=I.context(),q=o(7,K.offset,K.startLoc);return q.value="",a(q,K.offset,K.startLoc),D.key=q,a(D,K.offset,K.startLoc),{nextConsumeToken:L,node:D}}}return a(D,I.currentOffset(),I.currentPosition()),{node:D}}function w(I){const N=I.context(),D=N.currentType===1?I.currentOffset():N.offset,L=N.currentType===1?N.endLoc:N.startLoc,K=o(2,D,L);K.items=[];let q=null;do{const ae=q||I.nextToken();switch(q=null,ae.type){case 0:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(c(I,ae.value||""));break;case 5:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(d(I,ae.value||""));break;case 4:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(h(I,ae.value||""));break;case 6:ae.value==null&&r(I,ye.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,Pr(ae)),K.items.push(m(I,ae.value||""));break;case 7:{const X=p(I);K.items.push(X.node),q=X.nextConsumeToken||null;break}}}while(N.currentType!==13&&N.currentType!==1);const M=N.currentType===1?N.lastOffset:I.currentOffset(),ce=N.currentType===1?N.lastEndLoc:I.currentPosition();return a(K,M,ce),K}function C(I,N,D,L){const K=I.context();let q=L.items.length===0;const M=o(1,N,D);M.cases=[],M.cases.push(L);do{const ce=w(I);q||(q=ce.items.length===0),M.cases.push(ce)}while(K.currentType!==13);return q&&r(I,ye.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),a(M,I.currentOffset(),I.currentPosition()),M}function T(I){const N=I.context(),{offset:D,startLoc:L}=N,K=w(I);return N.currentType===13?K:C(I,D,L,K)}function k(I){const N=ID(I,Ot({},n)),D=N.context(),L=o(0,D.offset,D.startLoc);return e&&L.loc&&(L.loc.source=I),L.body=T(N),n.onCacheKey&&(L.cacheKey=n.onCacheKey(I)),D.currentType!==13&&r(N,ye.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,I[D.offset]||""),a(L,N.currentOffset(),N.currentPosition()),L}return{parse:k}}function Pr(n){if(n.type===13)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function RD(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:a=>(t.helpers.add(a),a)}}function M_(n,e){for(let t=0;t<n.length;t++)Sf(n[t],e)}function Sf(n,e){switch(n.type){case 1:M_(n.cases,e),e.helper("plural");break;case 2:M_(n.items,e);break;case 6:{Sf(n.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function OD(n,e={}){const t=RD(n);t.helper("normalize"),n.body&&Sf(n.body,t);const r=t.context();n.helpers=Array.from(r.helpers)}function PD(n){const e=n.body;return e.type===2?D_(e):e.cases.forEach(t=>D_(t)),n}function D_(n){if(n.items.length===1){const e=n.items[0];(e.type===3||e.type===9)&&(n.static=e.value,delete e.value)}else{const e=[];for(let t=0;t<n.items.length;t++){const r=n.items[t];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===n.items.length){n.static=Tf(e);for(let t=0;t<n.items.length;t++){const r=n.items[t];(r.type===3||r.type===9)&&delete r.value}}}}const MD="minifier";function ra(n){switch(n.t=n.type,n.type){case 0:{const e=n;ra(e.body),e.b=e.body,delete e.body;break}case 1:{const e=n,t=e.cases;for(let r=0;r<t.length;r++)ra(t[r]);e.c=t,delete e.cases;break}case 2:{const e=n,t=e.items;for(let r=0;r<t.length;r++)ra(t[r]);e.i=t,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=n;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=n;ra(e.key),e.k=e.key,delete e.key,e.modifier&&(ra(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=n;e.i=e.index,delete e.index;break}case 4:{const e=n;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw Aa(ye.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:MD,args:[n.type]})}delete n.type}const DD="parser";function LD(n,e){const{sourceMap:t,filename:r,breakLineCode:o,needIndent:a}=e,c=e.location!==!1,d={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};c&&n.loc&&(d.source=n.loc.source);const h=()=>d;function m(k,I){d.code+=k}function g(k,I=!0){const N=I?o:"";m(a?N+" ".repeat(k):N)}function v(k=!0){const I=++d.indentLevel;k&&g(I)}function p(k=!0){const I=--d.indentLevel;k&&g(I)}function w(){g(d.indentLevel)}return{context:h,push:m,indent:v,deindent:p,newline:w,helper:k=>`_${k}`,needIndent:()=>d.needIndent}}function xD(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),Ca(n,e.key),e.modifier?(n.push(", "),Ca(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function UD(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const o=e.items.length;for(let a=0;a<o&&(Ca(n,e.items[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}function BD(n,e){const{helper:t,needIndent:r}=n;if(e.cases.length>1){n.push(`${t("plural")}([`),n.indent(r());const o=e.cases.length;for(let a=0;a<o&&(Ca(n,e.cases[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}}function FD(n,e){e.body?Ca(n,e.body):n.push("null")}function Ca(n,e){const{helper:t}=n;switch(e.type){case 0:FD(n,e);break;case 1:BD(n,e);break;case 2:UD(n,e);break;case 6:xD(n,e);break;case 8:n.push(JSON.stringify(e.value),e);break;case 7:n.push(JSON.stringify(e.value),e);break;case 5:n.push(`${t("interpolate")}(${t("list")}(${e.index}))`,e);break;case 4:n.push(`${t("interpolate")}(${t("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:n.push(JSON.stringify(e.value),e);break;case 3:n.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw Aa(ye.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:DD,args:[e.type]})}}const VD=(n,e={})=>{const t=ne(e.mode)?e.mode:"normal",r=ne(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,a=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":`
22
+ `,c=e.needIndent?e.needIndent:t!=="arrow",d=n.helpers||[],h=LD(n,{mode:t,filename:r,sourceMap:o,breakLineCode:a,needIndent:c});h.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),h.indent(c),d.length>0&&(h.push(`const { ${Tf(d.map(v=>`${v}: _${v}`),", ")} } = ctx`),h.newline()),h.push("return "),Ca(h,n),h.deindent(c),h.push("}"),delete n.helpers;const{code:m,map:g}=h.context();return{ast:n,code:m,map:g?g.toJSON():void 0}};function HD(n,e={}){const t=Ot({},e),r=!!t.jit,o=!!t.minify,a=t.optimize==null?!0:t.optimize,d=ND(t).parse(n);return r?(a&&PD(d),o&&ra(d),{ast:d,code:""}):(OD(d,t),VD(d,t))}/*!
23
23
  * core-base v11.1.3
24
24
  * (c) 2025 kazuya kawaguchi
25
25
  * Released under the MIT License.
26
- */function KD(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fi().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fi().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ir(n){return Le(n)&&Af(n)===0&&(_r(n,"b")||_r(n,"body"))}const EC=["b","body"];function WD(n){return Go(n,EC)}const wC=["c","cases"];function zD(n){return Go(n,wC,[])}const TC=["s","static"];function GD(n){return Go(n,TC)}const bC=["i","items"];function qD(n){return Go(n,bC,[])}const IC=["t","type"];function Af(n){return Go(n,IC)}const SC=["v","value"];function Lc(n,e){const t=Go(n,SC);if(t!=null)return t;throw bs(e)}const AC=["m","modifier"];function jD(n){return Go(n,AC)}const kC=["k","key"];function YD(n){const e=Go(n,kC);if(e)return e;throw bs(6)}function Go(n,e,t){for(let r=0;r<e.length;r++){const o=e[r];if(_r(n,o)&&n[o]!=null)return n[o]}return t}const NC=[...EC,...wC,...TC,...bC,...kC,...AC,...SC,...IC];function bs(n){return new Error(`unhandled node type: ${n}`)}function Fd(n){return t=>JD(t,n)}function JD(n,e){const t=WD(e);if(t==null)throw bs(0);if(Af(t)===1){const a=zD(t);return n.plural(a.reduce((c,d)=>[...c,L_(n,d)],[]))}else return L_(n,t)}function L_(n,e){const t=GD(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const r=qD(e).reduce((o,a)=>[...o,Ih(n,a)],[]);return n.normalize(r)}}function Ih(n,e){const t=Af(e);switch(t){case 3:return Lc(e,t);case 9:return Lc(e,t);case 4:{const r=e;if(_r(r,"k")&&r.k)return n.interpolate(n.named(r.k));if(_r(r,"key")&&r.key)return n.interpolate(n.named(r.key));throw bs(t)}case 5:{const r=e;if(_r(r,"i")&&It(r.i))return n.interpolate(n.list(r.i));if(_r(r,"index")&&It(r.index))return n.interpolate(n.list(r.index));throw bs(t)}case 6:{const r=e,o=jD(r),a=YD(r);return n.linked(Ih(n,a),o?Ih(n,o):void 0,n.type)}case 7:return Lc(e,t);case 8:return Lc(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const QD="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function XD(n,e){e&&yD(n)&&zo(Gl(QD,{source:n}))}const ZD=n=>n;let xc=qe();function eL(n,e={}){let t=!1;const r=e.onError||_D;return e.onError=o=>{t=!0,r(o)},{...$D(n,e),detectError:t}}function tL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ne(n)){const t=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&XD(n,t);const o=(e.onCacheKey||ZD)(n),a=xc[o];if(a)return a;const{ast:c,detectError:d}=eL(n,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),h=Fd(c);return d?h:xc[o]=h}else{if(process.env.NODE_ENV!=="production"&&!ir(n))return zo(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>n;const t=n.cacheKey;if(t){const r=xc[t];return r||(xc[t]=Fd(n))}else return Fd(n)}}let Is=null;function nL(n){Is=n}function rL(n,e,t){Is&&Is.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const oL=iL("function:translate");function iL(n){return e=>Is&&Is.emit(n,e)}const en={INVALID_ARGUMENT:gD,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},aL=24;function so(n){return Aa(n,null,process.env.NODE_ENV!=="production"?{messages:sL}:void 0)}const sL={[en.INVALID_ARGUMENT]:"Invalid arguments",[en.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[en.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[en.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[en.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[en.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function kf(n,e){return e.locale!=null?x_(e.locale):x_(n.locale)}let Vd;function x_(n){if(ne(n))return n;if(Je(n)){if(n.resolvedOnce&&Vd!=null)return Vd;if(n.constructor.name==="Function"){const e=n();if(dD(e))throw so(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vd=e}else throw so(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw so(en.NOT_SUPPORT_LOCALE_TYPE)}function cL(n,e,t){return[...new Set([t,...yt(e)?e:Le(e)?Object.keys(e):ne(e)?[e]:[t]])]}function RC(n,e,t){const r=ne(t)?t:Ss,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let c=[t];for(;yt(c);)c=U_(a,c,e);const d=yt(e)||!ke(e)?e:e.default?e.default:null;c=ne(d)?[d]:d,yt(c)&&U_(a,c,!1),o.__localeChainCache.set(r,a)}return a}function U_(n,e,t){let r=!0;for(let o=0;o<e.length&&Ue(r);o++){const a=e[o];ne(a)&&(r=lL(n,e[o],t))}return r}function lL(n,e,t){let r;const o=e.split("-");do{const a=o.join("-");r=uL(n,a,t),o.splice(-1,1)}while(o.length&&r===!0);return r}function uL(n,e,t){let r=!1;if(!n.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");n.push(o),(yt(t)||ke(t))&&t[o]&&(r=t[o])}return r}const qo=[];qo[0]={w:[0],i:[3,0],"[":[4],o:[7]};qo[1]={w:[1],".":[2],"[":[4],o:[7]};qo[2]={w:[2],i:[3,0],0:[3,0]};qo[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};qo[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};qo[5]={"'":[4,0],o:8,l:[5,0]};qo[6]={'"':[4,0],o:8,l:[6,0]};const dL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function hL(n){return dL.test(n)}function fL(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function mL(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function gL(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:hL(e)?fL(e):"*"+e}function pL(n){const e=[];let t=-1,r=0,o=0,a,c,d,h,m,g,v;const p=[];p[0]=()=>{c===void 0?c=d:c+=d},p[1]=()=>{c!==void 0&&(e.push(c),c=void 0)},p[2]=()=>{p[0](),o++},p[3]=()=>{if(o>0)o--,r=4,p[0]();else{if(o=0,c===void 0||(c=gL(c),c===!1))return!1;p[1]()}};function w(){const C=n[t+1];if(r===5&&C==="'"||r===6&&C==='"')return t++,d="\\"+C,p[0](),!0}for(;r!==null;)if(t++,a=n[t],!(a==="\\"&&w())){if(h=mL(a),v=qo[r],m=v[h]||v.l||8,m===8||(r=m[0],m[1]!==void 0&&(g=p[m[1]],g&&(d=a,g()===!1))))return;if(r===7)return e}}const B_=new Map;function _L(n,e){return Le(n)?n[e]:null}function vL(n,e){if(!Le(n))return null;let t=B_.get(e);if(t||(t=pL(e),t&&B_.set(e,t)),!t)return null;const r=t.length;let o=n,a=0;for(;a<r;){const c=t[a];if(NC.includes(c)&&ir(o))return null;const d=o[c];if(d===void 0||Je(o))return null;o=d,a++}return o}const _n={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},yL=8,CL={[_n.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[_n.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[_n.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[_n.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[_n.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[_n.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function yi(n,...e){return Gl(CL[n],...e)}const EL="11.1.3",jl=-1,Ss="en-US",yl="",F_=n=>`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function wL(){return{upper:(n,e)=>e==="text"&&ne(n)?n.toUpperCase():e==="vnode"&&Le(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&ne(n)?n.toLowerCase():e==="vnode"&&Le(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&ne(n)?F_(n):e==="vnode"&&Le(n)&&"__v_isVNode"in n?F_(n.children):n}}let OC;function TL(n){OC=n}let PC;function bL(n){PC=n}let MC;function IL(n){MC=n}let DC=null;const SL=n=>{DC=n},AL=()=>DC;let LC=null;const V_=n=>{LC=n},kL=()=>LC;let H_=0;function NL(n={}){const e=Je(n.onWarn)?n.onWarn:zo,t=ne(n.version)?n.version:EL,r=ne(n.locale)||Je(n.locale)?n.locale:Ss,o=Je(r)?Ss:r,a=yt(n.fallbackLocale)||ke(n.fallbackLocale)||ne(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,c=ke(n.messages)?n.messages:Hd(o),d=ke(n.datetimeFormats)?n.datetimeFormats:Hd(o),h=ke(n.numberFormats)?n.numberFormats:Hd(o),m=Ot(qe(),n.modifiers,wL()),g=n.pluralRules||qe(),v=Je(n.missing)?n.missing:null,p=Ue(n.missingWarn)||ya(n.missingWarn)?n.missingWarn:!0,w=Ue(n.fallbackWarn)||ya(n.fallbackWarn)?n.fallbackWarn:!0,C=!!n.fallbackFormat,T=!!n.unresolving,k=Je(n.postTranslation)?n.postTranslation:null,I=ke(n.processor)?n.processor:null,N=Ue(n.warnHtmlMessage)?n.warnHtmlMessage:!0,D=!!n.escapeParameter,L=Je(n.messageCompiler)?n.messageCompiler:OC;process.env.NODE_ENV!=="production"&&Je(n.messageCompiler)&&bf(yi(_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const K=Je(n.messageResolver)?n.messageResolver:PC||_L,q=Je(n.localeFallbacker)?n.localeFallbacker:MC||cL,M=Le(n.fallbackContext)?n.fallbackContext:void 0,ce=n,ae=Le(ce.__datetimeFormatters)?ce.__datetimeFormatters:new Map,X=Le(ce.__numberFormatters)?ce.__numberFormatters:new Map,ee=Le(ce.__meta)?ce.__meta:{};H_++;const ue={version:t,cid:H_,locale:r,fallbackLocale:a,messages:c,modifiers:m,pluralRules:g,missing:v,missingWarn:p,fallbackWarn:w,fallbackFormat:C,unresolving:T,postTranslation:k,processor:I,warnHtmlMessage:N,escapeParameter:D,messageCompiler:L,messageResolver:K,localeFallbacker:q,fallbackContext:M,onWarn:e,__meta:ee};return ue.datetimeFormats=d,ue.numberFormats=h,ue.__datetimeFormatters=ae,ue.__numberFormatters=X,process.env.NODE_ENV!=="production"&&(ue.__v_emitter=ce.__v_emitter!=null?ce.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&rL(ue,t,ee),ue}const Hd=n=>({[n]:qe()});function Yl(n,e){return n instanceof RegExp?n.test(e):n}function xC(n,e){return n instanceof RegExp?n.test(e):n}function Nf(n,e,t,r,o){const{missing:a,onWarn:c}=n;if(process.env.NODE_ENV!=="production"){const d=n.__v_emitter;d&&d.emit("missing",{locale:t,key:e,type:o,groupId:`${o}:${e}`})}if(a!==null){const d=a(n,t,e,o);return ne(d)?d:e}else return process.env.NODE_ENV!=="production"&&xC(r,e)&&c(yi(_n.NOT_FOUND_KEY,{key:e,locale:t})),e}function ts(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function UC(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function RL(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;r<e.length;r++)if(UC(n,e[r]))return!0;return!1}const $_=typeof Intl<"u",BC={dateTimeFormat:$_&&typeof Intl.DateTimeFormat<"u",numberFormat:$_&&typeof Intl.NumberFormat<"u"};function K_(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__datetimeFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!BC.dateTimeFormat)return a(yi(_n.CANNOT_FORMAT_DATE)),yl;const[h,m,g,v]=Sh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=kf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.DateTimeFormat(T,v).format(m);let I={},N,D=null,L=T,K=null;const q="datetime format";for(let ae=0;ae<k.length;ae++){if(N=K=k[ae],process.env.NODE_ENV!=="production"&&T!==N&&Yl(w,h)&&a(yi(_n.FALLBACK_TO_DATE_FORMAT,{key:h,target:N})),process.env.NODE_ENV!=="production"&&T!==N){const X=n.__v_emitter;X&&X.emit("fallback",{type:q,key:h,from:L,to:K,groupId:`${q}:${h}`})}if(I=t[N]||{},D=I[h],ke(D))break;Nf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?jl:h;let M=`${N}__${h}`;ql(v)||(M=`${M}__${JSON.stringify(v)}`);let ce=d.get(M);return ce||(ce=new Intl.DateTimeFormat(N,Ot({},D,v)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const FC=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Sh(...n){const[e,t,r,o]=n,a=qe();let c=qe(),d;if(ne(e)){const h=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!h)throw so(en.INVALID_ISO_DATE_ARGUMENT);const m=h[3]?h[3].trim().startsWith("T")?`${h[1].trim()}${h[3].trim()}`:`${h[1].trim()}T${h[3].trim()}`:h[1].trim();d=new Date(m);try{d.toISOString()}catch{throw so(en.INVALID_ISO_DATE_ARGUMENT)}}else if(cD(e)){if(isNaN(e.getTime()))throw so(en.INVALID_DATE_ARGUMENT);d=e}else if(It(e))d=e;else throw so(en.INVALID_ARGUMENT);return ne(t)?a.key=t:ke(t)&&Object.keys(t).forEach(h=>{FC.includes(h)?c[h]=t[h]:a[h]=t[h]}),ne(r)?a.locale=r:ke(r)&&(c=r),ke(o)&&(c=o),[a.key||"",d,a,c]}function W_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function z_(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__numberFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!BC.numberFormat)return a(yi(_n.CANNOT_FORMAT_NUMBER)),yl;const[h,m,g,v]=Ah(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=kf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.NumberFormat(T,v).format(m);let I={},N,D=null,L=T,K=null;const q="number format";for(let ae=0;ae<k.length;ae++){if(N=K=k[ae],process.env.NODE_ENV!=="production"&&T!==N&&Yl(w,h)&&a(yi(_n.FALLBACK_TO_NUMBER_FORMAT,{key:h,target:N})),process.env.NODE_ENV!=="production"&&T!==N){const X=n.__v_emitter;X&&X.emit("fallback",{type:q,key:h,from:L,to:K,groupId:`${q}:${h}`})}if(I=t[N]||{},D=I[h],ke(D))break;Nf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?jl:h;let M=`${N}__${h}`;ql(v)||(M=`${M}__${JSON.stringify(v)}`);let ce=d.get(M);return ce||(ce=new Intl.NumberFormat(N,Ot({},D,v)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const VC=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ah(...n){const[e,t,r,o]=n,a=qe();let c=qe();if(!It(e))throw so(en.INVALID_ARGUMENT);const d=e;return ne(t)?a.key=t:ke(t)&&Object.keys(t).forEach(h=>{VC.includes(h)?c[h]=t[h]:a[h]=t[h]}),ne(r)?a.locale=r:ke(r)&&(c=r),ke(o)&&(c=o),[a.key||"",d,a,c]}function G_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const OL=n=>n,PL=n=>"",ML="text",DL=n=>n.length===0?"":Tf(n),LL=hD;function q_(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function xL(n){const e=It(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(It(n.named.count)||It(n.named.n))?It(n.named.count)?n.named.count:It(n.named.n)?n.named.n:e:e}function UL(n,e){e.count||(e.count=n),e.n||(e.n=n)}function BL(n={}){const e=n.locale,t=xL(n),r=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?n.pluralRules[e]:q_,o=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?q_:void 0,a=I=>I[r(t,I.length,o)],c=n.list||[],d=I=>c[I],h=n.named||qe();It(n.pluralIndex)&&UL(t,h);const m=I=>h[I];function g(I,N){const D=Je(n.messages)?n.messages(I,!!N):Le(n.messages)?n.messages[I]:!1;return D||(n.parent?n.parent.message(I):PL)}const v=I=>n.modifiers?n.modifiers[I]:OL,p=ke(n.processor)&&Je(n.processor.normalize)?n.processor.normalize:DL,w=ke(n.processor)&&Je(n.processor.interpolate)?n.processor.interpolate:LL,C=ke(n.processor)&&ne(n.processor.type)?n.processor.type:ML,k={list:d,named:m,plural:a,linked:(I,...N)=>{const[D,L]=N;let K="text",q="";N.length===1?Le(D)?(q=D.modifier||q,K=D.type||K):ne(D)&&(q=D||q):N.length===2&&(ne(D)&&(q=D||q),ne(L)&&(K=L||K));const M=g(I,!0)(k),ce=K==="vnode"&&yt(M)&&q?M[0]:M;return q?v(q)(ce,K):ce},message:g,type:C,interpolate:w,normalize:p,values:Ot(qe(),c,h)};return k}const j_=()=>"",rr=n=>Je(n);function Y_(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:c,messages:d}=n,[h,m]=kh(...e),g=Ue(m.missingWarn)?m.missingWarn:n.missingWarn,v=Ue(m.fallbackWarn)?m.fallbackWarn:n.fallbackWarn,p=Ue(m.escapeParameter)?m.escapeParameter:n.escapeParameter,w=!!m.resolvedMessage,C=ne(m.default)||Ue(m.default)?Ue(m.default)?a?h:()=>h:m.default:t?a?h:()=>h:null,T=t||C!=null&&(ne(C)||Je(C)),k=kf(n,m);p&&FL(m);let[I,N,D]=w?[h,k,d[k]||qe()]:HC(n,h,k,c,v,g),L=I,K=h;if(!w&&!(ne(L)||ir(L)||rr(L))&&T&&(L=C,K=L),!w&&(!(ne(L)||ir(L)||rr(L))||!ne(N)))return o?jl:h;if(process.env.NODE_ENV!=="production"&&ne(L)&&n.messageCompiler==null)return zo(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${h}'.`),h;let q=!1;const M=()=>{q=!0},ce=rr(L)?L:$C(n,h,N,L,K,M);if(q)return L;const ae=KL(n,N,D,m),X=BL(ae),ee=VL(n,ce,X),ue=r?r(ee,h):ee;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Be={timestamp:Date.now(),key:ne(h)?h:rr(L)?L.key:"",locale:N||(rr(L)?L.locale:""),format:ne(L)?L:rr(L)?L.source:"",message:ue};Be.meta=Ot({},n.__meta,AL()||{}),oL(Be)}return ue}function FL(n){yt(n.list)?n.list=n.list.map(e=>ne(e)?N_(e):e):Le(n.named)&&Object.keys(n.named).forEach(e=>{ne(n.named[e])&&(n.named[e]=N_(n.named[e]))})}function HC(n,e,t,r,o,a){const{messages:c,onWarn:d,messageResolver:h,localeFallbacker:m}=n,g=m(n,r,t);let v=qe(),p,w=null,C=t,T=null;const k="translate";for(let I=0;I<g.length;I++){if(p=T=g[I],process.env.NODE_ENV!=="production"&&t!==p&&!UC(t,p)&&Yl(o,e)&&d(yi(_n.FALLBACK_TO_TRANSLATE,{key:e,target:p})),process.env.NODE_ENV!=="production"&&t!==p){const K=n.__v_emitter;K&&K.emit("fallback",{type:k,key:e,from:C,to:T,groupId:`${k}:${e}`})}v=c[p]||qe();let N=null,D,L;if(process.env.NODE_ENV!=="production"&&Cr&&(N=window.performance.now(),D="intlify-message-resolve-start",L="intlify-message-resolve-end",Un&&Un(D)),(w=h(v,e))===null&&(w=v[e]),process.env.NODE_ENV!=="production"&&Cr){const K=window.performance.now(),q=n.__v_emitter;q&&N&&w&&q.emit("message-resolve",{type:"message-resolve",key:e,message:w,time:K-N,groupId:`${k}:${e}`}),D&&L&&Un&&vi&&(Un(L),vi("intlify message resolve",D,L))}if(ne(w)||ir(w)||rr(w))break;if(!RL(p,g)){const K=Nf(n,e,p,a,k);K!==e&&(w=K)}C=T}return[w,p,v]}function $C(n,e,t,r,o,a){const{messageCompiler:c,warnHtmlMessage:d}=n;if(rr(r)){const p=r;return p.locale=p.locale||t,p.key=p.key||e,p}if(c==null){const p=()=>r;return p.locale=t,p.key=e,p}let h=null,m,g;process.env.NODE_ENV!=="production"&&Cr&&(h=window.performance.now(),m="intlify-message-compilation-start",g="intlify-message-compilation-end",Un&&Un(m));const v=c(r,HL(n,t,o,r,d,a));if(process.env.NODE_ENV!=="production"&&Cr){const p=window.performance.now(),w=n.__v_emitter;w&&h&&w.emit("message-compilation",{type:"message-compilation",message:r,time:p-h,groupId:`translate:${e}`}),m&&g&&Un&&vi&&(Un(g),vi("intlify message compilation",m,g))}return v.locale=t,v.key=e,v.source=r,v}function VL(n,e,t){let r=null,o,a;process.env.NODE_ENV!=="production"&&Cr&&(r=window.performance.now(),o="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Un&&Un(o));const c=e(t);if(process.env.NODE_ENV!=="production"&&Cr){const d=window.performance.now(),h=n.__v_emitter;h&&r&&h.emit("message-evaluation",{type:"message-evaluation",value:c,time:d-r,groupId:`translate:${e.key}`}),o&&a&&Un&&vi&&(Un(a),vi("intlify message evaluation",o,a))}return c}function kh(...n){const[e,t,r]=n,o=qe();if(!ne(e)&&!It(e)&&!rr(e)&&!ir(e))throw so(en.INVALID_ARGUMENT);const a=It(e)?String(e):(rr(e),e);return It(t)?o.plural=t:ne(t)?o.default=t:ke(t)&&!ql(t)?o.named=t:yt(t)&&(o.list=t),It(r)?o.plural=r:ne(r)?o.default=r:ke(r)&&Ot(o,r),[a,o]}function HL(n,e,t,r,o,a){return{locale:e,key:t,warnHtmlMessage:o,onError:c=>{if(a&&a(c),process.env.NODE_ENV!=="production"){const d=$L(r),h=`Message compilation error: ${c.message}`,m=c.location&&d&&fD(d,c.location.start.offset,c.location.end.offset),g=n.__v_emitter;g&&d&&g.emit("compile-error",{message:d,error:c.message,start:c.location&&c.location.start.offset,end:c.location&&c.location.end.offset,groupId:`translate:${t}`}),console.error(m?`${h}
27
- ${m}`:h)}else throw c},onCacheKey:c=>aD(e,t,c)}}function $L(n){if(ne(n))return n;if(n.loc&&n.loc.source)return n.loc.source}function KL(n,e,t,r){const{modifiers:o,pluralRules:a,messageResolver:c,fallbackLocale:d,fallbackWarn:h,missingWarn:m,fallbackContext:g}=n,p={locale:e,modifiers:o,pluralRules:a,messages:(w,C)=>{let T=c(t,w);if(T==null&&(g||C)){const[,,k]=HC(g||n,w,e,d,h,m);T=c(k,w)}if(ne(T)||ir(T)){let k=!1;const N=$C(n,w,e,T,w,()=>{k=!0});return k?j_:N}else return rr(T)?T:j_}};return n.processor&&(p.processor=n.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),It(r.plural)&&(p.pluralIndex=r.plural),p}KD();/*!
26
+ */function $D(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fi().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fi().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ir(n){return Le(n)&&Af(n)===0&&(_r(n,"b")||_r(n,"body"))}const EC=["b","body"];function KD(n){return Go(n,EC)}const wC=["c","cases"];function WD(n){return Go(n,wC,[])}const TC=["s","static"];function zD(n){return Go(n,TC)}const bC=["i","items"];function GD(n){return Go(n,bC,[])}const IC=["t","type"];function Af(n){return Go(n,IC)}const SC=["v","value"];function Lc(n,e){const t=Go(n,SC);if(t!=null)return t;throw bs(e)}const AC=["m","modifier"];function qD(n){return Go(n,AC)}const kC=["k","key"];function jD(n){const e=Go(n,kC);if(e)return e;throw bs(6)}function Go(n,e,t){for(let r=0;r<e.length;r++){const o=e[r];if(_r(n,o)&&n[o]!=null)return n[o]}return t}const NC=[...EC,...wC,...TC,...bC,...kC,...AC,...SC,...IC];function bs(n){return new Error(`unhandled node type: ${n}`)}function Fd(n){return t=>YD(t,n)}function YD(n,e){const t=KD(e);if(t==null)throw bs(0);if(Af(t)===1){const a=WD(t);return n.plural(a.reduce((c,d)=>[...c,L_(n,d)],[]))}else return L_(n,t)}function L_(n,e){const t=zD(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const r=GD(e).reduce((o,a)=>[...o,Ih(n,a)],[]);return n.normalize(r)}}function Ih(n,e){const t=Af(e);switch(t){case 3:return Lc(e,t);case 9:return Lc(e,t);case 4:{const r=e;if(_r(r,"k")&&r.k)return n.interpolate(n.named(r.k));if(_r(r,"key")&&r.key)return n.interpolate(n.named(r.key));throw bs(t)}case 5:{const r=e;if(_r(r,"i")&&It(r.i))return n.interpolate(n.list(r.i));if(_r(r,"index")&&It(r.index))return n.interpolate(n.list(r.index));throw bs(t)}case 6:{const r=e,o=qD(r),a=jD(r);return n.linked(Ih(n,a),o?Ih(n,o):void 0,n.type)}case 7:return Lc(e,t);case 8:return Lc(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const JD="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function QD(n,e){e&&vD(n)&&zo(Gl(JD,{source:n}))}const XD=n=>n;let xc=qe();function ZD(n,e={}){let t=!1;const r=e.onError||pD;return e.onError=o=>{t=!0,r(o)},{...HD(n,e),detectError:t}}function eL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ne(n)){const t=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&QD(n,t);const o=(e.onCacheKey||XD)(n),a=xc[o];if(a)return a;const{ast:c,detectError:d}=ZD(n,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),h=Fd(c);return d?h:xc[o]=h}else{if(process.env.NODE_ENV!=="production"&&!ir(n))return zo(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>n;const t=n.cacheKey;if(t){const r=xc[t];return r||(xc[t]=Fd(n))}else return Fd(n)}}let Is=null;function tL(n){Is=n}function nL(n,e,t){Is&&Is.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const rL=oL("function:translate");function oL(n){return e=>Is&&Is.emit(n,e)}const en={INVALID_ARGUMENT:mD,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},iL=24;function so(n){return Aa(n,null,process.env.NODE_ENV!=="production"?{messages:aL}:void 0)}const aL={[en.INVALID_ARGUMENT]:"Invalid arguments",[en.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[en.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[en.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[en.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[en.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function kf(n,e){return e.locale!=null?x_(e.locale):x_(n.locale)}let Vd;function x_(n){if(ne(n))return n;if(Je(n)){if(n.resolvedOnce&&Vd!=null)return Vd;if(n.constructor.name==="Function"){const e=n();if(uD(e))throw so(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vd=e}else throw so(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw so(en.NOT_SUPPORT_LOCALE_TYPE)}function sL(n,e,t){return[...new Set([t,...yt(e)?e:Le(e)?Object.keys(e):ne(e)?[e]:[t]])]}function RC(n,e,t){const r=ne(t)?t:Ss,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let c=[t];for(;yt(c);)c=U_(a,c,e);const d=yt(e)||!ke(e)?e:e.default?e.default:null;c=ne(d)?[d]:d,yt(c)&&U_(a,c,!1),o.__localeChainCache.set(r,a)}return a}function U_(n,e,t){let r=!0;for(let o=0;o<e.length&&Ue(r);o++){const a=e[o];ne(a)&&(r=cL(n,e[o],t))}return r}function cL(n,e,t){let r;const o=e.split("-");do{const a=o.join("-");r=lL(n,a,t),o.splice(-1,1)}while(o.length&&r===!0);return r}function lL(n,e,t){let r=!1;if(!n.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");n.push(o),(yt(t)||ke(t))&&t[o]&&(r=t[o])}return r}const qo=[];qo[0]={w:[0],i:[3,0],"[":[4],o:[7]};qo[1]={w:[1],".":[2],"[":[4],o:[7]};qo[2]={w:[2],i:[3,0],0:[3,0]};qo[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};qo[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};qo[5]={"'":[4,0],o:8,l:[5,0]};qo[6]={'"':[4,0],o:8,l:[6,0]};const uL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function dL(n){return uL.test(n)}function hL(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function fL(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function mL(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:dL(e)?hL(e):"*"+e}function gL(n){const e=[];let t=-1,r=0,o=0,a,c,d,h,m,g,v;const p=[];p[0]=()=>{c===void 0?c=d:c+=d},p[1]=()=>{c!==void 0&&(e.push(c),c=void 0)},p[2]=()=>{p[0](),o++},p[3]=()=>{if(o>0)o--,r=4,p[0]();else{if(o=0,c===void 0||(c=mL(c),c===!1))return!1;p[1]()}};function w(){const C=n[t+1];if(r===5&&C==="'"||r===6&&C==='"')return t++,d="\\"+C,p[0](),!0}for(;r!==null;)if(t++,a=n[t],!(a==="\\"&&w())){if(h=fL(a),v=qo[r],m=v[h]||v.l||8,m===8||(r=m[0],m[1]!==void 0&&(g=p[m[1]],g&&(d=a,g()===!1))))return;if(r===7)return e}}const B_=new Map;function pL(n,e){return Le(n)?n[e]:null}function _L(n,e){if(!Le(n))return null;let t=B_.get(e);if(t||(t=gL(e),t&&B_.set(e,t)),!t)return null;const r=t.length;let o=n,a=0;for(;a<r;){const c=t[a];if(NC.includes(c)&&ir(o))return null;const d=o[c];if(d===void 0||Je(o))return null;o=d,a++}return o}const _n={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},vL=8,yL={[_n.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[_n.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[_n.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[_n.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[_n.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[_n.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function yi(n,...e){return Gl(yL[n],...e)}const CL="11.1.3",jl=-1,Ss="en-US",yl="",F_=n=>`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function EL(){return{upper:(n,e)=>e==="text"&&ne(n)?n.toUpperCase():e==="vnode"&&Le(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&ne(n)?n.toLowerCase():e==="vnode"&&Le(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&ne(n)?F_(n):e==="vnode"&&Le(n)&&"__v_isVNode"in n?F_(n.children):n}}let OC;function wL(n){OC=n}let PC;function TL(n){PC=n}let MC;function bL(n){MC=n}let DC=null;const IL=n=>{DC=n},SL=()=>DC;let LC=null;const V_=n=>{LC=n},AL=()=>LC;let H_=0;function kL(n={}){const e=Je(n.onWarn)?n.onWarn:zo,t=ne(n.version)?n.version:CL,r=ne(n.locale)||Je(n.locale)?n.locale:Ss,o=Je(r)?Ss:r,a=yt(n.fallbackLocale)||ke(n.fallbackLocale)||ne(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,c=ke(n.messages)?n.messages:Hd(o),d=ke(n.datetimeFormats)?n.datetimeFormats:Hd(o),h=ke(n.numberFormats)?n.numberFormats:Hd(o),m=Ot(qe(),n.modifiers,EL()),g=n.pluralRules||qe(),v=Je(n.missing)?n.missing:null,p=Ue(n.missingWarn)||ya(n.missingWarn)?n.missingWarn:!0,w=Ue(n.fallbackWarn)||ya(n.fallbackWarn)?n.fallbackWarn:!0,C=!!n.fallbackFormat,T=!!n.unresolving,k=Je(n.postTranslation)?n.postTranslation:null,I=ke(n.processor)?n.processor:null,N=Ue(n.warnHtmlMessage)?n.warnHtmlMessage:!0,D=!!n.escapeParameter,L=Je(n.messageCompiler)?n.messageCompiler:OC;process.env.NODE_ENV!=="production"&&Je(n.messageCompiler)&&bf(yi(_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const K=Je(n.messageResolver)?n.messageResolver:PC||pL,q=Je(n.localeFallbacker)?n.localeFallbacker:MC||sL,M=Le(n.fallbackContext)?n.fallbackContext:void 0,ce=n,ae=Le(ce.__datetimeFormatters)?ce.__datetimeFormatters:new Map,X=Le(ce.__numberFormatters)?ce.__numberFormatters:new Map,ee=Le(ce.__meta)?ce.__meta:{};H_++;const ue={version:t,cid:H_,locale:r,fallbackLocale:a,messages:c,modifiers:m,pluralRules:g,missing:v,missingWarn:p,fallbackWarn:w,fallbackFormat:C,unresolving:T,postTranslation:k,processor:I,warnHtmlMessage:N,escapeParameter:D,messageCompiler:L,messageResolver:K,localeFallbacker:q,fallbackContext:M,onWarn:e,__meta:ee};return ue.datetimeFormats=d,ue.numberFormats=h,ue.__datetimeFormatters=ae,ue.__numberFormatters=X,process.env.NODE_ENV!=="production"&&(ue.__v_emitter=ce.__v_emitter!=null?ce.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&nL(ue,t,ee),ue}const Hd=n=>({[n]:qe()});function Yl(n,e){return n instanceof RegExp?n.test(e):n}function xC(n,e){return n instanceof RegExp?n.test(e):n}function Nf(n,e,t,r,o){const{missing:a,onWarn:c}=n;if(process.env.NODE_ENV!=="production"){const d=n.__v_emitter;d&&d.emit("missing",{locale:t,key:e,type:o,groupId:`${o}:${e}`})}if(a!==null){const d=a(n,t,e,o);return ne(d)?d:e}else return process.env.NODE_ENV!=="production"&&xC(r,e)&&c(yi(_n.NOT_FOUND_KEY,{key:e,locale:t})),e}function ts(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function UC(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function NL(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;r<e.length;r++)if(UC(n,e[r]))return!0;return!1}const $_=typeof Intl<"u",BC={dateTimeFormat:$_&&typeof Intl.DateTimeFormat<"u",numberFormat:$_&&typeof Intl.NumberFormat<"u"};function K_(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__datetimeFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!BC.dateTimeFormat)return a(yi(_n.CANNOT_FORMAT_DATE)),yl;const[h,m,g,v]=Sh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=kf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.DateTimeFormat(T,v).format(m);let I={},N,D=null,L=T,K=null;const q="datetime format";for(let ae=0;ae<k.length;ae++){if(N=K=k[ae],process.env.NODE_ENV!=="production"&&T!==N&&Yl(w,h)&&a(yi(_n.FALLBACK_TO_DATE_FORMAT,{key:h,target:N})),process.env.NODE_ENV!=="production"&&T!==N){const X=n.__v_emitter;X&&X.emit("fallback",{type:q,key:h,from:L,to:K,groupId:`${q}:${h}`})}if(I=t[N]||{},D=I[h],ke(D))break;Nf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?jl:h;let M=`${N}__${h}`;ql(v)||(M=`${M}__${JSON.stringify(v)}`);let ce=d.get(M);return ce||(ce=new Intl.DateTimeFormat(N,Ot({},D,v)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const FC=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Sh(...n){const[e,t,r,o]=n,a=qe();let c=qe(),d;if(ne(e)){const h=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!h)throw so(en.INVALID_ISO_DATE_ARGUMENT);const m=h[3]?h[3].trim().startsWith("T")?`${h[1].trim()}${h[3].trim()}`:`${h[1].trim()}T${h[3].trim()}`:h[1].trim();d=new Date(m);try{d.toISOString()}catch{throw so(en.INVALID_ISO_DATE_ARGUMENT)}}else if(sD(e)){if(isNaN(e.getTime()))throw so(en.INVALID_DATE_ARGUMENT);d=e}else if(It(e))d=e;else throw so(en.INVALID_ARGUMENT);return ne(t)?a.key=t:ke(t)&&Object.keys(t).forEach(h=>{FC.includes(h)?c[h]=t[h]:a[h]=t[h]}),ne(r)?a.locale=r:ke(r)&&(c=r),ke(o)&&(c=o),[a.key||"",d,a,c]}function W_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function z_(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__numberFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!BC.numberFormat)return a(yi(_n.CANNOT_FORMAT_NUMBER)),yl;const[h,m,g,v]=Ah(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=kf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.NumberFormat(T,v).format(m);let I={},N,D=null,L=T,K=null;const q="number format";for(let ae=0;ae<k.length;ae++){if(N=K=k[ae],process.env.NODE_ENV!=="production"&&T!==N&&Yl(w,h)&&a(yi(_n.FALLBACK_TO_NUMBER_FORMAT,{key:h,target:N})),process.env.NODE_ENV!=="production"&&T!==N){const X=n.__v_emitter;X&&X.emit("fallback",{type:q,key:h,from:L,to:K,groupId:`${q}:${h}`})}if(I=t[N]||{},D=I[h],ke(D))break;Nf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?jl:h;let M=`${N}__${h}`;ql(v)||(M=`${M}__${JSON.stringify(v)}`);let ce=d.get(M);return ce||(ce=new Intl.NumberFormat(N,Ot({},D,v)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const VC=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ah(...n){const[e,t,r,o]=n,a=qe();let c=qe();if(!It(e))throw so(en.INVALID_ARGUMENT);const d=e;return ne(t)?a.key=t:ke(t)&&Object.keys(t).forEach(h=>{VC.includes(h)?c[h]=t[h]:a[h]=t[h]}),ne(r)?a.locale=r:ke(r)&&(c=r),ke(o)&&(c=o),[a.key||"",d,a,c]}function G_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const RL=n=>n,OL=n=>"",PL="text",ML=n=>n.length===0?"":Tf(n),DL=dD;function q_(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function LL(n){const e=It(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(It(n.named.count)||It(n.named.n))?It(n.named.count)?n.named.count:It(n.named.n)?n.named.n:e:e}function xL(n,e){e.count||(e.count=n),e.n||(e.n=n)}function UL(n={}){const e=n.locale,t=LL(n),r=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?n.pluralRules[e]:q_,o=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?q_:void 0,a=I=>I[r(t,I.length,o)],c=n.list||[],d=I=>c[I],h=n.named||qe();It(n.pluralIndex)&&xL(t,h);const m=I=>h[I];function g(I,N){const D=Je(n.messages)?n.messages(I,!!N):Le(n.messages)?n.messages[I]:!1;return D||(n.parent?n.parent.message(I):OL)}const v=I=>n.modifiers?n.modifiers[I]:RL,p=ke(n.processor)&&Je(n.processor.normalize)?n.processor.normalize:ML,w=ke(n.processor)&&Je(n.processor.interpolate)?n.processor.interpolate:DL,C=ke(n.processor)&&ne(n.processor.type)?n.processor.type:PL,k={list:d,named:m,plural:a,linked:(I,...N)=>{const[D,L]=N;let K="text",q="";N.length===1?Le(D)?(q=D.modifier||q,K=D.type||K):ne(D)&&(q=D||q):N.length===2&&(ne(D)&&(q=D||q),ne(L)&&(K=L||K));const M=g(I,!0)(k),ce=K==="vnode"&&yt(M)&&q?M[0]:M;return q?v(q)(ce,K):ce},message:g,type:C,interpolate:w,normalize:p,values:Ot(qe(),c,h)};return k}const j_=()=>"",rr=n=>Je(n);function Y_(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:c,messages:d}=n,[h,m]=kh(...e),g=Ue(m.missingWarn)?m.missingWarn:n.missingWarn,v=Ue(m.fallbackWarn)?m.fallbackWarn:n.fallbackWarn,p=Ue(m.escapeParameter)?m.escapeParameter:n.escapeParameter,w=!!m.resolvedMessage,C=ne(m.default)||Ue(m.default)?Ue(m.default)?a?h:()=>h:m.default:t?a?h:()=>h:null,T=t||C!=null&&(ne(C)||Je(C)),k=kf(n,m);p&&BL(m);let[I,N,D]=w?[h,k,d[k]||qe()]:HC(n,h,k,c,v,g),L=I,K=h;if(!w&&!(ne(L)||ir(L)||rr(L))&&T&&(L=C,K=L),!w&&(!(ne(L)||ir(L)||rr(L))||!ne(N)))return o?jl:h;if(process.env.NODE_ENV!=="production"&&ne(L)&&n.messageCompiler==null)return zo(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${h}'.`),h;let q=!1;const M=()=>{q=!0},ce=rr(L)?L:$C(n,h,N,L,K,M);if(q)return L;const ae=$L(n,N,D,m),X=UL(ae),ee=FL(n,ce,X),ue=r?r(ee,h):ee;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Be={timestamp:Date.now(),key:ne(h)?h:rr(L)?L.key:"",locale:N||(rr(L)?L.locale:""),format:ne(L)?L:rr(L)?L.source:"",message:ue};Be.meta=Ot({},n.__meta,SL()||{}),rL(Be)}return ue}function BL(n){yt(n.list)?n.list=n.list.map(e=>ne(e)?N_(e):e):Le(n.named)&&Object.keys(n.named).forEach(e=>{ne(n.named[e])&&(n.named[e]=N_(n.named[e]))})}function HC(n,e,t,r,o,a){const{messages:c,onWarn:d,messageResolver:h,localeFallbacker:m}=n,g=m(n,r,t);let v=qe(),p,w=null,C=t,T=null;const k="translate";for(let I=0;I<g.length;I++){if(p=T=g[I],process.env.NODE_ENV!=="production"&&t!==p&&!UC(t,p)&&Yl(o,e)&&d(yi(_n.FALLBACK_TO_TRANSLATE,{key:e,target:p})),process.env.NODE_ENV!=="production"&&t!==p){const K=n.__v_emitter;K&&K.emit("fallback",{type:k,key:e,from:C,to:T,groupId:`${k}:${e}`})}v=c[p]||qe();let N=null,D,L;if(process.env.NODE_ENV!=="production"&&Cr&&(N=window.performance.now(),D="intlify-message-resolve-start",L="intlify-message-resolve-end",Un&&Un(D)),(w=h(v,e))===null&&(w=v[e]),process.env.NODE_ENV!=="production"&&Cr){const K=window.performance.now(),q=n.__v_emitter;q&&N&&w&&q.emit("message-resolve",{type:"message-resolve",key:e,message:w,time:K-N,groupId:`${k}:${e}`}),D&&L&&Un&&vi&&(Un(L),vi("intlify message resolve",D,L))}if(ne(w)||ir(w)||rr(w))break;if(!NL(p,g)){const K=Nf(n,e,p,a,k);K!==e&&(w=K)}C=T}return[w,p,v]}function $C(n,e,t,r,o,a){const{messageCompiler:c,warnHtmlMessage:d}=n;if(rr(r)){const p=r;return p.locale=p.locale||t,p.key=p.key||e,p}if(c==null){const p=()=>r;return p.locale=t,p.key=e,p}let h=null,m,g;process.env.NODE_ENV!=="production"&&Cr&&(h=window.performance.now(),m="intlify-message-compilation-start",g="intlify-message-compilation-end",Un&&Un(m));const v=c(r,VL(n,t,o,r,d,a));if(process.env.NODE_ENV!=="production"&&Cr){const p=window.performance.now(),w=n.__v_emitter;w&&h&&w.emit("message-compilation",{type:"message-compilation",message:r,time:p-h,groupId:`translate:${e}`}),m&&g&&Un&&vi&&(Un(g),vi("intlify message compilation",m,g))}return v.locale=t,v.key=e,v.source=r,v}function FL(n,e,t){let r=null,o,a;process.env.NODE_ENV!=="production"&&Cr&&(r=window.performance.now(),o="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Un&&Un(o));const c=e(t);if(process.env.NODE_ENV!=="production"&&Cr){const d=window.performance.now(),h=n.__v_emitter;h&&r&&h.emit("message-evaluation",{type:"message-evaluation",value:c,time:d-r,groupId:`translate:${e.key}`}),o&&a&&Un&&vi&&(Un(a),vi("intlify message evaluation",o,a))}return c}function kh(...n){const[e,t,r]=n,o=qe();if(!ne(e)&&!It(e)&&!rr(e)&&!ir(e))throw so(en.INVALID_ARGUMENT);const a=It(e)?String(e):(rr(e),e);return It(t)?o.plural=t:ne(t)?o.default=t:ke(t)&&!ql(t)?o.named=t:yt(t)&&(o.list=t),It(r)?o.plural=r:ne(r)?o.default=r:ke(r)&&Ot(o,r),[a,o]}function VL(n,e,t,r,o,a){return{locale:e,key:t,warnHtmlMessage:o,onError:c=>{if(a&&a(c),process.env.NODE_ENV!=="production"){const d=HL(r),h=`Message compilation error: ${c.message}`,m=c.location&&d&&hD(d,c.location.start.offset,c.location.end.offset),g=n.__v_emitter;g&&d&&g.emit("compile-error",{message:d,error:c.message,start:c.location&&c.location.start.offset,end:c.location&&c.location.end.offset,groupId:`translate:${t}`}),console.error(m?`${h}
27
+ ${m}`:h)}else throw c},onCacheKey:c=>iD(e,t,c)}}function HL(n){if(ne(n))return n;if(n.loc&&n.loc.source)return n.loc.source}function $L(n,e,t,r){const{modifiers:o,pluralRules:a,messageResolver:c,fallbackLocale:d,fallbackWarn:h,missingWarn:m,fallbackContext:g}=n,p={locale:e,modifiers:o,pluralRules:a,messages:(w,C)=>{let T=c(t,w);if(T==null&&(g||C)){const[,,k]=HC(g||n,w,e,d,h,m);T=c(k,w)}if(ne(T)||ir(T)){let k=!1;const N=$C(n,w,e,T,w,()=>{k=!0});return k?j_:N}else return rr(T)?T:j_}};return n.processor&&(p.processor=n.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),It(r.plural)&&(p.pluralIndex=r.plural),p}$D();/*!
28
28
  * vue-i18n v11.1.3
29
29
  * (c) 2025 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const WL="11.1.3";function zL(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(fi().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(fi().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fi().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fi().__INTLIFY_PROD_DEVTOOLS__=!1)}const nt={UNEXPECTED_RETURN_TYPE:aL,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Cn(n,...e){return Aa(n,null,process.env.NODE_ENV!=="production"?{messages:GL,args:e}:void 0)}const GL={[nt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[nt.INVALID_ARGUMENT]:"Invalid argument",[nt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[nt.NOT_INSTALLED]:"Need to install with `app.use` function",[nt.UNEXPECTED_ERROR]:"Unexpected error",[nt.REQUIRED_VALUE]:"Required in value: {0}",[nt.INVALID_VALUE]:"Invalid value",[nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[nt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[nt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[nt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Nh=Gr("__translateVNode"),Rh=Gr("__datetimeParts"),Oh=Gr("__numberParts"),Ci=Gr("__enableEmitter"),As=Gr("__disableEmitter"),KC=Gr("__setPluralRules"),WC=Gr("__injectWithOption"),Ph=Gr("__dispose"),xr={FALLBACK_TO_ROOT:yL,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},qL={[xr.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[xr.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[xr.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[xr.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
32
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function xs(n,...e){return Gl(qL[n],...e)}function ks(n){if(!Le(n)||ir(n))return n;for(const e in n)if(_r(n,e))if(!e.includes("."))Le(n[e])&&ks(n[e]);else{const t=e.split("."),r=t.length-1;let o=n,a=!1;for(let c=0;c<r;c++){if(t[c]==="__proto__")throw new Error(`unsafe key: ${t[c]}`);if(t[c]in o||(o[t[c]]=qe()),!Le(o[t[c]])){process.env.NODE_ENV!=="production"&&zo(xs(xr.IGNORE_OBJ_FLATTEN,{key:t[c]})),a=!0;break}o=o[t[c]]}if(a||(ir(o)?NC.includes(t[r])||delete n[e]:(o[t[r]]=n[e],delete n[e])),!ir(o)){const c=o[t[r]];Le(c)&&ks(c)}}return n}function Rf(n,e){const{messages:t,__i18n:r,messageResolver:o,flatJson:a}=e,c=ke(t)?t:yt(r)?qe():{[n]:qe()};if(yt(r)&&r.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:h,resource:m}=d;h?(c[h]=c[h]||qe(),il(m,c[h])):il(m,c)}else ne(d)&&il(JSON.parse(d),c)}),o==null&&a)for(const d in c)_r(c,d)&&ks(c[d]);return c}function zC(n){return n.type}function GC(n,e,t){let r=Le(e.messages)?e.messages:qe();"__i18nGlobal"in t&&(r=Rf(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(a=>{n.mergeLocaleMessage(a,r[a])});{if(Le(e.datetimeFormats)){const a=Object.keys(e.datetimeFormats);a.length&&a.forEach(c=>{n.mergeDateTimeFormat(c,e.datetimeFormats[c])})}if(Le(e.numberFormats)){const a=Object.keys(e.numberFormats);a.length&&a.forEach(c=>{n.mergeNumberFormat(c,e.numberFormats[c])})}}}function J_(n){return l.createVNode(l.Text,null,n,0)}const Q_="__INTLIFY_META__",X_=()=>[],jL=()=>!1;let Z_=0;function ev(n){return(e,t,r,o)=>n(t,r,l.getCurrentInstance()||void 0,o)}const YL=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=zC(n)[Q_])?{[Q_]:e}:null};function Of(n={}){const{__root:e,__injectWithOption:t}=n,r=e===void 0,o=n.flatJson,a=Cr?l.ref:l.shallowRef;let c=Ue(n.inheritLocale)?n.inheritLocale:!0;const d=a(e&&c?e.locale.value:ne(n.locale)?n.locale:Ss),h=a(e&&c?e.fallbackLocale.value:ne(n.fallbackLocale)||yt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:d.value),m=a(Rf(d.value,n)),g=a(ke(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),v=a(ke(n.numberFormats)?n.numberFormats:{[d.value]:{}});let p=e?e.missingWarn:Ue(n.missingWarn)||ya(n.missingWarn)?n.missingWarn:!0,w=e?e.fallbackWarn:Ue(n.fallbackWarn)||ya(n.fallbackWarn)?n.fallbackWarn:!0,C=e?e.fallbackRoot:Ue(n.fallbackRoot)?n.fallbackRoot:!0,T=!!n.fallbackFormat,k=Je(n.missing)?n.missing:null,I=Je(n.missing)?ev(n.missing):null,N=Je(n.postTranslation)?n.postTranslation:null,D=e?e.warnHtmlMessage:Ue(n.warnHtmlMessage)?n.warnHtmlMessage:!0,L=!!n.escapeParameter;const K=e?e.modifiers:ke(n.modifiers)?n.modifiers:{};let q=n.pluralRules||e&&e.pluralRules,M;M=(()=>{r&&V_(null);const V={version:WL,locale:d.value,fallbackLocale:h.value,messages:m.value,modifiers:K,pluralRules:q,missing:I===null?void 0:I,missingWarn:p,fallbackWarn:w,fallbackFormat:T,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:D,escapeParameter:L,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};V.datetimeFormats=g.value,V.numberFormats=v.value,V.__datetimeFormatters=ke(M)?M.__datetimeFormatters:void 0,V.__numberFormatters=ke(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=ke(M)?M.__v_emitter:void 0);const J=NL(V);return r&&V_(J),J})(),ts(M,d.value,h.value);function ae(){return[d.value,h.value,m.value,g.value,v.value]}const X=l.computed({get:()=>d.value,set:V=>{M.locale=V,d.value=V}}),ee=l.computed({get:()=>h.value,set:V=>{M.fallbackLocale=V,h.value=V,ts(M,d.value,V)}}),ue=l.computed(()=>m.value),Be=l.computed(()=>g.value),Ct=l.computed(()=>v.value);function rn(){return Je(N)?N:null}function qt(V){N=V,M.postTranslation=V}function Mt(){return k}function at(V){V!==null&&(I=ev(V)),k=V,M.missing=I}function Et(V,J){return V!=="translate"||!J.resolvedMessage}const on=(V,J,Ne,ze,ar,Co)=>{ae();let kr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=e?kL():void 0),kr=V(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Ne!=="translate exists"&&It(kr)&&kr===jl||Ne==="translate exists"&&!kr){const[sr,Fa]=J();if(process.env.NODE_ENV!=="production"&&e&&ne(sr)&&Et(Ne,Fa)&&(C&&(Yl(w,sr)||xC(p,sr))&&zo(xs(xr.FALLBACK_TO_ROOT,{key:sr,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:ki}=M;ki&&C&&ki.emit("fallback",{type:Ne,key:sr,to:"global",groupId:`${Ne}:${sr}`})}return e&&C?ze(e):ar(sr)}else{if(Co(kr))return kr;throw Cn(nt.UNEXPECTED_RETURN_TYPE)}};function St(...V){return on(J=>Reflect.apply(Y_,null,[J,...V]),()=>kh(...V),"translate",J=>Reflect.apply(J.t,J,[...V]),J=>J,J=>ne(J))}function jo(...V){const[J,Ne,ze]=V;if(ze&&!Le(ze))throw Cn(nt.INVALID_ARGUMENT);return St(J,Ne,Ot({resolvedMessage:!0},ze||{}))}function La(...V){return on(J=>Reflect.apply(K_,null,[J,...V]),()=>Sh(...V),"datetime format",J=>Reflect.apply(J.d,J,[...V]),()=>yl,J=>ne(J))}function xa(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>Ah(...V),"number format",J=>Reflect.apply(J.n,J,[...V]),()=>yl,J=>ne(J))}function Sr(V){return V.map(J=>ne(J)||It(J)||Ue(J)?J_(String(J)):J)}const Ua={normalize:Sr,interpolate:V=>V,type:"vnode"};function Ar(...V){return on(J=>{let Ne;const ze=J;try{ze.processor=Ua,Ne=Reflect.apply(Y_,null,[ze,...V])}finally{ze.processor=null}return Ne},()=>kh(...V),"translate",J=>J[Nh](...V),J=>[J_(J)],J=>yt(J))}function qr(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>Ah(...V),"number format",J=>J[Oh](...V),X_,J=>ne(J)||yt(J))}function Ba(...V){return on(J=>Reflect.apply(K_,null,[J,...V]),()=>Sh(...V),"datetime format",J=>J[Rh](...V),X_,J=>ne(J)||yt(J))}function _o(V){q=V,M.pluralRules=q}function vo(V,J){return on(()=>{if(!V)return!1;const Ne=ne(J)?J:d.value,ze=En(Ne),ar=M.messageResolver(ze,V);return ir(ar)||rr(ar)||ne(ar)},()=>[V],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[V,J]),jL,Ne=>Ue(Ne))}function yo(V){let J=null;const Ne=RC(M,h.value,d.value);for(let ze=0;ze<Ne.length;ze++){const ar=m.value[Ne[ze]]||{},Co=M.messageResolver(ar,V);if(Co!=null){J=Co;break}}return J}function Ft(V){const J=yo(V);return J??(e?e.tm(V)||{}:{})}function En(V){return m.value[V]||{}}function Jo(V,J){if(o){const Ne={[V]:J};for(const ze in Ne)_r(Ne,ze)&&ks(Ne[ze]);J=Ne[V]}m.value[V]=J,M.messages=m.value}function wn(V,J){m.value[V]=m.value[V]||{};const Ne={[V]:J};if(o)for(const ze in Ne)_r(Ne,ze)&&ks(Ne[ze]);J=Ne[V],il(J,m.value[V]),M.messages=m.value}function A(V){return g.value[V]||{}}function R(V,J){g.value[V]=J,M.datetimeFormats=g.value,W_(M,V,J)}function G(V,J){g.value[V]=Ot(g.value[V]||{},J),M.datetimeFormats=g.value,W_(M,V,J)}function oe(V){return v.value[V]||{}}function je(V,J){v.value[V]=J,M.numberFormats=v.value,G_(M,V,J)}function Ze(V,J){v.value[V]=Ot(v.value[V]||{},J),M.numberFormats=v.value,G_(M,V,J)}Z_++,e&&Cr&&(l.watch(e.locale,V=>{c&&(d.value=V,M.locale=V,ts(M,d.value,h.value))}),l.watch(e.fallbackLocale,V=>{c&&(h.value=V,M.fallbackLocale=V,ts(M,d.value,h.value))}));const Me={id:Z_,locale:X,fallbackLocale:ee,get inheritLocale(){return c},set inheritLocale(V){c=V,V&&e&&(d.value=e.locale.value,h.value=e.fallbackLocale.value,ts(M,d.value,h.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:ue,get modifiers(){return K},get pluralRules(){return q||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(V){p=V,M.missingWarn=p},get fallbackWarn(){return w},set fallbackWarn(V){w=V,M.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(V){C=V},get fallbackFormat(){return T},set fallbackFormat(V){T=V,M.fallbackFormat=T},get warnHtmlMessage(){return D},set warnHtmlMessage(V){D=V,M.warnHtmlMessage=V},get escapeParameter(){return L},set escapeParameter(V){L=V,M.escapeParameter=V},t:St,getLocaleMessage:En,setLocaleMessage:Jo,mergeLocaleMessage:wn,getPostTranslationHandler:rn,setPostTranslationHandler:qt,getMissingHandler:Mt,setMissingHandler:at,[KC]:_o};return Me.datetimeFormats=Be,Me.numberFormats=Ct,Me.rt=jo,Me.te=vo,Me.tm=Ft,Me.d=La,Me.n=xa,Me.getDateTimeFormat=A,Me.setDateTimeFormat=R,Me.mergeDateTimeFormat=G,Me.getNumberFormat=oe,Me.setNumberFormat=je,Me.mergeNumberFormat=Ze,Me[WC]=t,Me[Nh]=Ar,Me[Rh]=Ba,Me[Oh]=qr,process.env.NODE_ENV!=="production"&&(Me[Ci]=V=>{M.__v_emitter=V},Me[As]=()=>{M.__v_emitter=void 0}),Me}const qC="vue-i18n: composer properties",$d={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},JL={"vue-i18n-resource-inspector":"Search for scopes ..."},QL={"vue-i18n-timeline":16764185};let Mh;async function XL(n,e){return new Promise((t,r)=>{try{pf({id:"vue-devtools-plugin-vue-i18n",label:$d["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qC],app:n},o=>{Mh=o,o.on.visitComponentTree(({componentInstance:c,treeNode:d})=>{ZL(c,d,e)}),o.on.inspectComponent(({componentInstance:c,instanceData:d})=>{c.vnode.el&&c.vnode.el.__VUE_I18N__&&d&&(e.mode==="legacy"?c.vnode.el.__VUE_I18N__!==e.global.__composer&&tv(d,c.vnode.el.__VUE_I18N__):tv(d,c.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:$d["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:JL["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&ox(c,e)});const a=new Map;o.on.getInspectorState(async c=>{if(c.app===n&&c.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),ax(c,e),c.nodeId==="global"){if(!a.has(c.app)){const[d]=await o.getComponentInstances(c.app);a.set(c.app,d)}o.highlightElement(a.get(c.app))}else{const d=ix(c.nodeId,e);d&&o.highlightElement(d)}}),o.on.editInspectorState(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&cx(c,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:$d["vue-i18n-timeline"],color:QL["vue-i18n-timeline"]}),t(!0)})}catch(o){console.error(o),r(!1)}})}function jC(n){return n.type.name||n.type.displayName||n.type.__file||"Anonymous"}function ZL(n,e,t){const r=t.mode==="composition"?t.global:t.global.__composer;if(n&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&n.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${jC(n)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(o)}}function tv(n,e){const t=qC;n.state.push({type:t,key:"locale",editable:!0,value:e.locale.value}),n.state.push({type:t,key:"availableLocales",editable:!1,value:e.availableLocales}),n.state.push({type:t,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),n.state.push({type:t,key:"inheritLocale",editable:!0,value:e.inheritLocale}),n.state.push({type:t,key:"messages",editable:!1,value:Pf(e.messages.value)}),n.state.push({type:t,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),n.state.push({type:t,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Pf(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];Je(r)&&"source"in r?e[t]=rx(r):ir(r)&&r.loc&&r.loc.source?e[t]=r.loc.source:Le(r)?e[t]=Pf(r):e[t]=r}),e}const ex={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function tx(n){return n.replace(/[<>"&]/g,nx)}function nx(n){return ex[n]||n}function rx(n){return{_custom:{type:"function",display:`<span>ƒ</span> ${n.source?`("${tx(n.source)}")`:"(?)"}`}}}function ox(n,e){n.rootNodes.push({id:"global",label:"Global Scope"});const t=e.mode==="composition"?e.global:e.global.__composer;for(const[r,o]of e.__instances){const a=e.mode==="composition"?o:o.__composer;t!==a&&n.rootNodes.push({id:a.id.toString(),label:`${jC(r)} Scope`})}}function ix(n,e){let t=null;if(n!=="global"){for(const[r,o]of e.__instances.entries())if(o.id.toString()===n){t=r;break}}return t}function YC(n,e){if(n==="global")return e.mode==="composition"?e.global:e.global.__composer;{const t=Array.from(e.__instances.values()).find(r=>r.id.toString()===n);return t?e.mode==="composition"?t:t.__composer:null}}function ax(n,e){const t=YC(n.nodeId,e);return t&&(n.state=sx(t)),null}function sx(n){const e={},t="Locale related info",r=[{type:t,key:"locale",editable:!0,value:n.locale.value},{type:t,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:n.availableLocales},{type:t,key:"inheritLocale",editable:!0,value:n.inheritLocale}];e[t]=r;const o="Locale messages info",a=[{type:o,key:"messages",editable:!1,value:Pf(n.messages.value)}];e[o]=a;{const c="Datetime formats info",d=[{type:c,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}];e[c]=d;const h="Datetime formats info",m=[{type:h,key:"numberFormats",editable:!1,value:n.numberFormats.value}];e[h]=m}return e}function Ns(n,e){if(Mh){let t;e&&"groupId"in e&&(t=e.groupId,delete e.groupId),Mh.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:n,groupId:t,time:Date.now(),meta:{},data:e||{},logType:n==="compile-error"?"error":n==="fallback"||n==="missing"?"warning":"default"}})}}function cx(n,e){const t=YC(n.nodeId,e);if(t){const[r]=n.path;r==="locale"&&ne(n.state.value)?t.locale.value=n.state.value:r==="fallbackLocale"&&(ne(n.state.value)||yt(n.state.value)||Le(n.state.value))?t.fallbackLocale.value=n.state.value:r==="inheritLocale"&&Ue(n.state.value)&&(t.inheritLocale=n.state.value)}}function lx(n){const e=ne(n.locale)?n.locale:Ss,t=ne(n.fallbackLocale)||yt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Je(n.missing)?n.missing:void 0,o=Ue(n.silentTranslationWarn)||ya(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,a=Ue(n.silentFallbackWarn)||ya(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,c=Ue(n.fallbackRoot)?n.fallbackRoot:!0,d=!!n.formatFallbackMessages,h=ke(n.modifiers)?n.modifiers:{},m=n.pluralizationRules,g=Je(n.postTranslation)?n.postTranslation:void 0,v=ne(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,p=!!n.escapeParameterHtml,w=Ue(n.sync)?n.sync:!0;let C=n.messages;if(ke(n.sharedMessages)){const K=n.sharedMessages;C=Object.keys(K).reduce((M,ce)=>{const ae=M[ce]||(M[ce]={});return Ot(ae,K[ce]),M},C||{})}const{__i18n:T,__root:k,__injectWithOption:I}=n,N=n.datetimeFormats,D=n.numberFormats,L=n.flatJson;return{locale:e,fallbackLocale:t,messages:C,flatJson:L,datetimeFormats:N,numberFormats:D,missing:r,missingWarn:o,fallbackWarn:a,fallbackRoot:c,fallbackFormat:d,modifiers:h,pluralRules:m,postTranslation:g,warnHtmlMessage:v,escapeParameter:p,messageResolver:n.messageResolver,inheritLocale:w,__i18n:T,__root:k,__injectWithOption:I}}function Dh(n={}){const e=Of(lx(n)),{__extender:t}=n,r={id:e.id,get locale(){return e.locale.value},set locale(o){e.locale.value=o},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(o){e.fallbackLocale.value=o},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get missing(){return e.getMissingHandler()},set missing(o){e.setMissingHandler(o)},get silentTranslationWarn(){return Ue(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(o){e.missingWarn=Ue(o)?!o:o},get silentFallbackWarn(){return Ue(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(o){e.fallbackWarn=Ue(o)?!o:o},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(o){e.fallbackFormat=o},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(o){e.setPostTranslationHandler(o)},get sync(){return e.inheritLocale},set sync(o){e.inheritLocale=o},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){e.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(o){e.escapeParameter=o},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...o){return Reflect.apply(e.t,e,[...o])},rt(...o){return Reflect.apply(e.rt,e,[...o])},te(o,a){return e.te(o,a)},tm(o){return e.tm(o)},getLocaleMessage(o){return e.getLocaleMessage(o)},setLocaleMessage(o,a){e.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){e.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(e.d,e,[...o])},getDateTimeFormat(o){return e.getDateTimeFormat(o)},setDateTimeFormat(o,a){e.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){e.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(e.n,e,[...o])},getNumberFormat(o){return e.getNumberFormat(o)},setNumberFormat(o,a){e.setNumberFormat(o,a)},mergeNumberFormat(o,a){e.mergeNumberFormat(o,a)}};return r.__extender=t,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const a=e;a[Ci]&&a[Ci](o)},r.__disableEmitter=()=>{const o=e;o[As]&&o[As]()}),r}function ux(n,e,t){return{beforeCreate(){const r=l.getCurrentInstance();if(!r)throw Cn(nt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const a=o.i18n;if(o.__i18n&&(a.__i18n=o.__i18n),a.__root=e,this===this.$root)this.$i18n=nv(n,a);else{a.__injectWithOption=!0,a.__extender=t.__vueI18nExtend,this.$i18n=Dh(a);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=nv(n,o);else{this.$i18n=Dh({__i18n:o.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:e});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=n;o.__i18nGlobal&&GC(e,o,o),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,c)=>this.$i18n.te(a,c),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),t.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=If();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Ns)}},unmounted(){const r=l.getCurrentInstance();if(!r)throw Cn(nt.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ns),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),t.__deleteInstance(r),delete this.$i18n}}}function nv(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[KC](e.pluralizationRules||n.pluralizationRules);const t=Rf(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const Mf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function dx({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((t,r)=>{const o=n[r];return o&&(t[r]=o()),t},qe())}function JC(){return l.Fragment}const hx=l.defineComponent({name:"i18n-t",props:Ot({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>It(n)||!isNaN(n)}},Mf),setup(n,e){const{slots:t,attrs:r}=e,o=n.i18n||br({useScope:n.scope,__useComponent:!0});return()=>{const a=Object.keys(t).filter(v=>v!=="_"),c=qe();n.locale&&(c.locale=n.locale),n.plural!==void 0&&(c.plural=ne(n.plural)?+n.plural:n.plural);const d=dx(e,a),h=o[Nh](n.keypath,d,c),m=Ot(qe(),r),g=ne(n.tag)||Le(n.tag)?n.tag:JC();return l.h(g,m,h)}}}),rv=hx;function fx(n){return yt(n)&&!ne(n[0])}function QC(n,e,t,r){const{slots:o,attrs:a}=e;return()=>{const c={part:!0};let d=qe();n.locale&&(c.locale=n.locale),ne(n.format)?c.key=n.format:Le(n.format)&&(ne(n.format.key)&&(c.key=n.format.key),d=Object.keys(n.format).reduce((p,w)=>t.includes(w)?Ot(qe(),p,{[w]:n.format[w]}):p,qe()));const h=r(n.value,c,d);let m=[c.key];yt(h)?m=h.map((p,w)=>{const C=o[p.type],T=C?C({[p.type]:p.value,index:w,parts:h}):[p.value];return fx(T)&&(T[0].key=`${p.type}-${w}`),T}):ne(h)&&(m=[h]);const g=Ot(qe(),a),v=ne(n.tag)||Le(n.tag)?n.tag:JC();return l.h(v,g,m)}}const mx=l.defineComponent({name:"i18n-n",props:Ot({value:{type:Number,required:!0},format:{type:[String,Object]}},Mf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return QC(n,e,VC,(...r)=>t[Oh](...r))}}),ov=mx;function gx(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function px(n){const e=c=>{process.env.NODE_ENV!=="production"&&bf(xs(xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:d,value:h}=c;if(!d||!d.$)throw Cn(nt.UNEXPECTED_ERROR);const m=gx(n,d.$),g=iv(h);return[Reflect.apply(m.t,m,[...av(g)]),m]};return{created:(c,d)=>{const[h,m]=e(d);Cr&&n.global===m&&(c.__i18nWatcher=l.watch(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=h},unmounted:c=>{Cr&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:d})=>{if(c.__composer){const h=c.__composer,m=iv(d);c.textContent=Reflect.apply(h.t,h,[...av(m)])}},getSSRProps:c=>{const[d]=e(c);return{textContent:d}}}}function iv(n){if(ne(n))return{path:n};if(ke(n)){if(!("path"in n))throw Cn(nt.REQUIRED_VALUE,"path");return n}else throw Cn(nt.INVALID_VALUE)}function av(n){const{path:e,locale:t,args:r,choice:o,plural:a}=n,c={},d=r||{};return ne(t)&&(c.locale=t),It(o)&&(c.plural=o),It(a)&&(c.plural=a),[e,d,c]}function _x(n,e,...t){const r=ke(t[0])?t[0]:{};(Ue(r.globalInstall)?r.globalInstall:!0)&&([rv.name,"I18nT"].forEach(a=>n.component(a,rv)),[ov.name,"I18nN"].forEach(a=>n.component(a,ov)),[cv.name,"I18nD"].forEach(a=>n.component(a,cv))),n.directive("t",px(e))}const vx=Gr("global-vue-i18n");function yx(n={}){const e=__VUE_I18N_LEGACY_API__&&Ue(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&e&&bf(xs(xr.DEPRECATE_LEGACY_MODE));const t=Ue(n.globalInjection)?n.globalInjection:!0,r=new Map,[o,a]=Cx(n,e),c=Gr(process.env.NODE_ENV!=="production"?"vue-i18n":"");function d(v){return r.get(v)||null}function h(v,p){r.set(v,p)}function m(v){r.delete(v)}const g={get mode(){return __VUE_I18N_LEGACY_API__&&e?"legacy":"composition"},async install(v,...p){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=g),v.__VUE_I18N_SYMBOL__=c,v.provide(v.__VUE_I18N_SYMBOL__,g),ke(p[0])){const T=p[0];g.__composerExtend=T.__composerExtend,g.__vueI18nExtend=T.__vueI18nExtend}let w=null;!e&&t&&(w=kx(v,g.global)),__VUE_I18N_FULL_INSTALL__&&_x(v,g,...p),__VUE_I18N_LEGACY_API__&&e&&v.mixin(ux(a,a.__composer,g));const C=v.unmount;if(v.unmount=()=>{w&&w(),g.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await XL(v,g))throw Cn(nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=If();if(e){const I=a;I.__enableEmitter&&I.__enableEmitter(k)}else{const I=a;I[Ci]&&I[Ci](k)}k.on("*",Ns)}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:d,__setInstance:h,__deleteInstance:m};return g}function br(n={}){const e=l.getCurrentInstance();if(e==null)throw Cn(nt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Cn(nt.NOT_INSTALLED);const t=Ex(e),r=Tx(t),o=zC(e),a=wx(n,o);if(a==="global")return GC(r,n,o),r;if(a==="parent"){let h=bx(t,e,n.__useComponent);return h==null&&(process.env.NODE_ENV!=="production"&&zo(xs(xr.NOT_FOUND_PARENT_SCOPE)),h=r),h}const c=t;let d=c.__getInstance(e);if(d==null){const h=Ot({},n);"__i18n"in o&&(h.__i18n=o.__i18n),r&&(h.__root=r),d=Of(h),c.__composerExtend&&(d[Ph]=c.__composerExtend(d)),Sx(c,e,d),c.__setInstance(e,d)}return d}function Cx(n,e){const t=l.effectScope(),r=__VUE_I18N_LEGACY_API__&&e?t.run(()=>Dh(n)):t.run(()=>Of(n));if(r==null)throw Cn(nt.UNEXPECTED_ERROR);return[t,r]}function Ex(n){const e=l.inject(n.isCE?vx:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Cn(n.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return e}function wx(n,e){return ql(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Tx(n){return n.mode==="composition"?n.global:n.global.__composer}function bx(n,e,t=!1){let r=null;const o=e.root;let a=Ix(e,t);for(;a!=null;){const c=n;if(n.mode==="composition")r=c.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const d=c.__getInstance(a);d!=null&&(r=d.__composer,t&&r&&!r[WC]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function Ix(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Sx(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=If();const o=t;o[Ci]&&o[Ci](r),r.on("*",Ns)}},e),l.onUnmounted(()=>{const o=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Ns),o[As]&&o[As](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const a=o[Ph];a&&(a(),delete o[Ph])},e)}const Ax=["locale","fallbackLocale","availableLocales"],sv=["t","rt","d","n","tm","te"];function kx(n,e){const t=Object.create(null);return Ax.forEach(o=>{const a=Object.getOwnPropertyDescriptor(e,o);if(!a)throw Cn(nt.UNEXPECTED_ERROR);const c=l.isRef(a.value)?{get(){return a.value.value},set(d){a.value.value=d}}:{get(){return a.get&&a.get()}};Object.defineProperty(t,o,c)}),n.config.globalProperties.$i18n=t,sv.forEach(o=>{const a=Object.getOwnPropertyDescriptor(e,o);if(!a||!a.value)throw Cn(nt.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${o}`,a)}),()=>{delete n.config.globalProperties.$i18n,sv.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}const Nx=l.defineComponent({name:"i18n-d",props:Ot({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return QC(n,e,FC,(...r)=>t[Rh](...r))}}),cv=Nx;zL();TL(tL);bL(vL);IL(RC);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=fi();n.__INTLIFY__=!0,nL(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Rx={"en-US":Ef,"pt-BR":oD,"fr-FR":kM,"de-DE":X1};function us(n){if(!n)return"";const{locale:e}=br(),t=e.value,r=Rx[t]||Ef;try{const o=typeof n=="string"||n===null?new Date(n||""):n;return isNaN(o.getTime())?"":w1(o,"PPpp",{locale:r})}catch(o){return console.error("Error formatting date:",o),""}}const Lh="https://app-files.jplan.com.br/pub/resources/assets/thumbs/empty_list.svg";function Ox(n){const{clientX:e,clientY:t}=n,{innerWidth:r,innerHeight:o}=window;return{x:Math.min(e,r-350),y:Math.min(t,o-200)}}const Px={key:0,class:"d-flex mt-4 flex-column align-center justify-center w-100"},Mx={key:1,class:"mt-4 h-100 rounded-sm"},Dx={class:"d-inline-flex"},Lx={class:"d-inline-flex"},xx={class:"d-inline-flex"},XC=l.defineComponent({__name:"TableAdvanced",props:l.mergeModels({headers:{},items:{default:()=>[]},actions:{},loading:{type:Boolean},columns:{default:()=>[]},sortBy:{},dateFields:{},customFields:{},search:{},filterKeys:{},selectOnRowClick:{type:Boolean}},{selection:{},selectionModifiers:{}}),emits:l.mergeModels(["rowClick"],["update:selection"]),setup(n,{emit:e}){const t=[{value:50,title:"50"},{value:100,title:"100"},{value:500,title:"500"},{value:1e3,title:"1000"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}],r=n,o=e,a=l.computed(()=>r.headers?r.headers:r.columns?r.columns.filter(p=>p.checked):[]),c=l.useModel(n,"selection"),d=l.ref(!1),h=l.ref({x:0,y:0}),m=l.ref(null),g=async(p,{item:w})=>{p.preventDefault(),m.value=w,h.value=Ox(p),d.value=!0};function v(p,{item:w}){var T;if(o("rowClick",w),!r.selectOnRowClick||!((T=c.value)!=null&&T.length))return;const C=c.value.findIndex(k=>k===w);return C!==-1?c.value.splice(C,1):c.value.push(w),w}return(p,w)=>!p.loading&&p.items.length===0?(l.openBlock(),l.createElementBlock("div",Px,[l.createVNode(mf.VImg,{"lazy-src":l.unref(Lh),src:l.unref(Lh),height:"600",width:"600"},null,8,["lazy-src","src"]),w[2]||(w[2]=l.createElementVNode("p",{class:"text-center text-body-1 w-100"},"No records found.",-1))])):(l.openBlock(),l.createElementBlock("div",Mx,[l.createVNode(gf.VMenu,{modelValue:d.value,"onUpdate:modelValue":w[0]||(w[0]=C=>d.value=C),"close-on-content-click":!0,"min-width":"350",style:l.normalizeStyle({position:"fixed",left:`${h.value.x}px`,top:`${h.value.y}px`})},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"contextmenu",{item:m.value})]),_:3},8,["modelValue","style"]),l.createVNode(Ny.VDataTable,{modelValue:c.value,"onUpdate:modelValue":w[1]||(w[1]=C=>c.value=C),"fixed-header":"","fixed-footer":"","items-per-page":"50",headers:a.value,items:p.items,"items-length":p.items.length,loading:p.loading||!1,"return-object":"","show-select":"","sort-by":p.sortBy,search:p.search,"filter-keys":p.filterKeys,height:"calc(100vh - 320px)",class:"customize-table bg-containerBg","onContextmenu:row":g,"onClick:row":v,"items-per-page-options":t},l.createSlots({"item.avatar":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"avatar",{item:C})]),"item.active":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"active",{item:C})]),"item.image":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"image",{item:C})]),"item.picture":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"picture",{item:C})]),"item.icon":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"icon",{item:C})]),"item.actions":l.withCtx(({item:C})=>[l.createElementVNode("div",Lx,[l.renderSlot(p.$slots,"actions",{item:C})])]),"no-data":l.withCtx(()=>[w[3]||(w[3]=l.createElementVNode("p",null,"No results found.",-1))]),_:2},[l.renderList(p.customFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",Dx,[l.renderSlot(p.$slots,C,{item:T})])])})),l.renderList(p.dateFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",xx,l.toDisplayString(l.unref(us)(T[C])),1)])}))]),1032,["modelValue","headers","items","items-length","loading","sort-by","search","filter-keys"])]))}}),Jl=l.defineComponent({__name:"SearchFilter",props:l.mergeModels({placeholder:{}},{search:{},searchModifiers:{}}),emits:["update:search"],setup(n){const e=l.useModel(n,"search"),{t}=br();return(r,o)=>(l.openBlock(),l.createBlock(EO.VTextField,{class:"bg-containerBg pa-1 rounded-sm elevation-1","persistent-placeholder":"",placeholder:r.placeholder??l.unref(t)("placeholders.search"),variant:"plain","hide-details":"",density:"compact",modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a)},{"prepend-inner":l.withCtx(()=>[l.createVNode(l.unref(hP),{size:"15",class:"ma-1 me-1"})]),_:1},8,["placeholder","modelValue"]))}}),Ux=l.defineComponent({__name:"TableHeader",props:l.mergeModels({columns:{},filter_visualize:{type:Boolean,default:!0}},{search:{},searchModifiers:{}}),emits:l.mergeModels(["refresh","remove"],["update:search"]),setup(n,{emit:e}){var g,v;const t=n,r=l.computed(()=>t.columns),o=e,a=l.useModel(n,"search"),{openDialog:c}=Ms("col-settings"),d=l.getCurrentInstance(),h=((g=d==null?void 0:d.vnode.props)==null?void 0:g.onRemove)!==void 0||((v=d==null?void 0:d.vnode.props)==null?void 0:v["onUpdate:remove"])!==void 0,{t:m}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",null,[l.createVNode(l.unref(Uf),{modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=C=>r.value=C)},null,8,["modelValue"]),l.createVNode(Qe.VRow,{"no-gutters":"",align:"center"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"12",md:"6",class:"d-flex align-center flex-wrap gap-2"},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(l.unref(sP),{class:"mt-1 me-2",color:"rgb(var(--v-theme-lightprimary))"})]),l.renderSlot(p.$slots,"filter",{},void 0,!0),p.$slots.filter?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ls.VSelect,{key:0,items:["Move data","Copy","Duplicate","Loop"],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.selectFilter"),density:"compact",class:"filter-field","hide-details":"",multiple:"",clearable:""},null,8,["placeholder"])),l.createVNode(it.VBtn,{icon:"",variant:"text",onClick:w[1]||(w[1]=C=>o("refresh"))},{default:l.withCtx(()=>[l.createVNode(l.unref(dP),{color:"rgb(var(--v-theme-secondary))"})]),_:1}),l.createVNode(it.VBtn,{icon:"",variant:"text"},{default:l.withCtx(()=>[l.createVNode(l.unref(aP),{color:"rgb(var(--v-theme-secondary))"})]),_:1})]),_:3}),l.createVNode(Qe.VCol,{cols:"12",md:"6",class:"d-flex align-center justify-end flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"top-right",{},void 0,!0),l.createVNode(it.VBtn,{class:"me-2",icon:"",variant:"text",onClick:l.unref(c)},{default:l.withCtx(()=>[l.createVNode(l.unref(uP),{color:"rgb(var(--v-theme-secondary))"})]),_:1},8,["onClick"]),l.createVNode(Jl,{class:"search-field",modelValue:a.value,"onUpdate:modelValue":w[2]||(w[2]=C=>a.value=C)},null,8,["modelValue"])]),_:3})]),_:3}),l.createVNode(pi.VDivider,{class:"my-4"}),l.createVNode(Qe.VRow,{align:"center"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{md:"3",cols:"6",class:"d-flex flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"left-prepend",{},void 0,!0),l.unref(h)?(l.openBlock(),l.createBlock(l.unref(Cf),{key:0,onRemoveAll:w[3]||(w[3]=C=>o("remove"))})):l.createCommentVNode("",!0),l.renderSlot(p.$slots,"left-append",{},void 0,!0)]),_:3}),l.createVNode(Qe.VCol,{md:"9",cols:"12",class:"d-flex justify-end align-center flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"right-prepend",{},void 0,!0),p.filter_visualize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(l.unref(fP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(ls.VSelect,{items:[],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.visualize"),density:"compact",class:"bottom-field me-2","hide-details":"",multiple:"",clearable:""},null,8,["placeholder"])],64)):l.createCommentVNode("",!0),l.createVNode(l.unref(lP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(ls.VSelect,{items:["Move data","Copy","Duplicate","Loop"],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.actions"),density:"compact",class:"bottom-field","hide-details":"",clearable:""},null,8,["placeholder"])]),_:3})]),_:3})]))}}),ZC=Sa(Ux,[["__scopeId","data-v-58865e47"]]);/*!
31
+ */const KL="11.1.3";function WL(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(fi().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(fi().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fi().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fi().__INTLIFY_PROD_DEVTOOLS__=!1)}const nt={UNEXPECTED_RETURN_TYPE:iL,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Cn(n,...e){return Aa(n,null,process.env.NODE_ENV!=="production"?{messages:zL,args:e}:void 0)}const zL={[nt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[nt.INVALID_ARGUMENT]:"Invalid argument",[nt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[nt.NOT_INSTALLED]:"Need to install with `app.use` function",[nt.UNEXPECTED_ERROR]:"Unexpected error",[nt.REQUIRED_VALUE]:"Required in value: {0}",[nt.INVALID_VALUE]:"Invalid value",[nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[nt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[nt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[nt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Nh=Gr("__translateVNode"),Rh=Gr("__datetimeParts"),Oh=Gr("__numberParts"),Ci=Gr("__enableEmitter"),As=Gr("__disableEmitter"),KC=Gr("__setPluralRules"),WC=Gr("__injectWithOption"),Ph=Gr("__dispose"),xr={FALLBACK_TO_ROOT:vL,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},GL={[xr.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[xr.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[xr.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[xr.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
32
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function xs(n,...e){return Gl(GL[n],...e)}function ks(n){if(!Le(n)||ir(n))return n;for(const e in n)if(_r(n,e))if(!e.includes("."))Le(n[e])&&ks(n[e]);else{const t=e.split("."),r=t.length-1;let o=n,a=!1;for(let c=0;c<r;c++){if(t[c]==="__proto__")throw new Error(`unsafe key: ${t[c]}`);if(t[c]in o||(o[t[c]]=qe()),!Le(o[t[c]])){process.env.NODE_ENV!=="production"&&zo(xs(xr.IGNORE_OBJ_FLATTEN,{key:t[c]})),a=!0;break}o=o[t[c]]}if(a||(ir(o)?NC.includes(t[r])||delete n[e]:(o[t[r]]=n[e],delete n[e])),!ir(o)){const c=o[t[r]];Le(c)&&ks(c)}}return n}function Rf(n,e){const{messages:t,__i18n:r,messageResolver:o,flatJson:a}=e,c=ke(t)?t:yt(r)?qe():{[n]:qe()};if(yt(r)&&r.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:h,resource:m}=d;h?(c[h]=c[h]||qe(),il(m,c[h])):il(m,c)}else ne(d)&&il(JSON.parse(d),c)}),o==null&&a)for(const d in c)_r(c,d)&&ks(c[d]);return c}function zC(n){return n.type}function GC(n,e,t){let r=Le(e.messages)?e.messages:qe();"__i18nGlobal"in t&&(r=Rf(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(a=>{n.mergeLocaleMessage(a,r[a])});{if(Le(e.datetimeFormats)){const a=Object.keys(e.datetimeFormats);a.length&&a.forEach(c=>{n.mergeDateTimeFormat(c,e.datetimeFormats[c])})}if(Le(e.numberFormats)){const a=Object.keys(e.numberFormats);a.length&&a.forEach(c=>{n.mergeNumberFormat(c,e.numberFormats[c])})}}}function J_(n){return l.createVNode(l.Text,null,n,0)}const Q_="__INTLIFY_META__",X_=()=>[],qL=()=>!1;let Z_=0;function ev(n){return(e,t,r,o)=>n(t,r,l.getCurrentInstance()||void 0,o)}const jL=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=zC(n)[Q_])?{[Q_]:e}:null};function Of(n={}){const{__root:e,__injectWithOption:t}=n,r=e===void 0,o=n.flatJson,a=Cr?l.ref:l.shallowRef;let c=Ue(n.inheritLocale)?n.inheritLocale:!0;const d=a(e&&c?e.locale.value:ne(n.locale)?n.locale:Ss),h=a(e&&c?e.fallbackLocale.value:ne(n.fallbackLocale)||yt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:d.value),m=a(Rf(d.value,n)),g=a(ke(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),v=a(ke(n.numberFormats)?n.numberFormats:{[d.value]:{}});let p=e?e.missingWarn:Ue(n.missingWarn)||ya(n.missingWarn)?n.missingWarn:!0,w=e?e.fallbackWarn:Ue(n.fallbackWarn)||ya(n.fallbackWarn)?n.fallbackWarn:!0,C=e?e.fallbackRoot:Ue(n.fallbackRoot)?n.fallbackRoot:!0,T=!!n.fallbackFormat,k=Je(n.missing)?n.missing:null,I=Je(n.missing)?ev(n.missing):null,N=Je(n.postTranslation)?n.postTranslation:null,D=e?e.warnHtmlMessage:Ue(n.warnHtmlMessage)?n.warnHtmlMessage:!0,L=!!n.escapeParameter;const K=e?e.modifiers:ke(n.modifiers)?n.modifiers:{};let q=n.pluralRules||e&&e.pluralRules,M;M=(()=>{r&&V_(null);const V={version:KL,locale:d.value,fallbackLocale:h.value,messages:m.value,modifiers:K,pluralRules:q,missing:I===null?void 0:I,missingWarn:p,fallbackWarn:w,fallbackFormat:T,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:D,escapeParameter:L,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};V.datetimeFormats=g.value,V.numberFormats=v.value,V.__datetimeFormatters=ke(M)?M.__datetimeFormatters:void 0,V.__numberFormatters=ke(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=ke(M)?M.__v_emitter:void 0);const J=kL(V);return r&&V_(J),J})(),ts(M,d.value,h.value);function ae(){return[d.value,h.value,m.value,g.value,v.value]}const X=l.computed({get:()=>d.value,set:V=>{M.locale=V,d.value=V}}),ee=l.computed({get:()=>h.value,set:V=>{M.fallbackLocale=V,h.value=V,ts(M,d.value,V)}}),ue=l.computed(()=>m.value),Be=l.computed(()=>g.value),Ct=l.computed(()=>v.value);function rn(){return Je(N)?N:null}function qt(V){N=V,M.postTranslation=V}function Mt(){return k}function at(V){V!==null&&(I=ev(V)),k=V,M.missing=I}function Et(V,J){return V!=="translate"||!J.resolvedMessage}const on=(V,J,Ne,ze,ar,Co)=>{ae();let kr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=e?AL():void 0),kr=V(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Ne!=="translate exists"&&It(kr)&&kr===jl||Ne==="translate exists"&&!kr){const[sr,Fa]=J();if(process.env.NODE_ENV!=="production"&&e&&ne(sr)&&Et(Ne,Fa)&&(C&&(Yl(w,sr)||xC(p,sr))&&zo(xs(xr.FALLBACK_TO_ROOT,{key:sr,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:ki}=M;ki&&C&&ki.emit("fallback",{type:Ne,key:sr,to:"global",groupId:`${Ne}:${sr}`})}return e&&C?ze(e):ar(sr)}else{if(Co(kr))return kr;throw Cn(nt.UNEXPECTED_RETURN_TYPE)}};function St(...V){return on(J=>Reflect.apply(Y_,null,[J,...V]),()=>kh(...V),"translate",J=>Reflect.apply(J.t,J,[...V]),J=>J,J=>ne(J))}function jo(...V){const[J,Ne,ze]=V;if(ze&&!Le(ze))throw Cn(nt.INVALID_ARGUMENT);return St(J,Ne,Ot({resolvedMessage:!0},ze||{}))}function La(...V){return on(J=>Reflect.apply(K_,null,[J,...V]),()=>Sh(...V),"datetime format",J=>Reflect.apply(J.d,J,[...V]),()=>yl,J=>ne(J))}function xa(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>Ah(...V),"number format",J=>Reflect.apply(J.n,J,[...V]),()=>yl,J=>ne(J))}function Sr(V){return V.map(J=>ne(J)||It(J)||Ue(J)?J_(String(J)):J)}const Ua={normalize:Sr,interpolate:V=>V,type:"vnode"};function Ar(...V){return on(J=>{let Ne;const ze=J;try{ze.processor=Ua,Ne=Reflect.apply(Y_,null,[ze,...V])}finally{ze.processor=null}return Ne},()=>kh(...V),"translate",J=>J[Nh](...V),J=>[J_(J)],J=>yt(J))}function qr(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>Ah(...V),"number format",J=>J[Oh](...V),X_,J=>ne(J)||yt(J))}function Ba(...V){return on(J=>Reflect.apply(K_,null,[J,...V]),()=>Sh(...V),"datetime format",J=>J[Rh](...V),X_,J=>ne(J)||yt(J))}function _o(V){q=V,M.pluralRules=q}function vo(V,J){return on(()=>{if(!V)return!1;const Ne=ne(J)?J:d.value,ze=En(Ne),ar=M.messageResolver(ze,V);return ir(ar)||rr(ar)||ne(ar)},()=>[V],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[V,J]),qL,Ne=>Ue(Ne))}function yo(V){let J=null;const Ne=RC(M,h.value,d.value);for(let ze=0;ze<Ne.length;ze++){const ar=m.value[Ne[ze]]||{},Co=M.messageResolver(ar,V);if(Co!=null){J=Co;break}}return J}function Ft(V){const J=yo(V);return J??(e?e.tm(V)||{}:{})}function En(V){return m.value[V]||{}}function Jo(V,J){if(o){const Ne={[V]:J};for(const ze in Ne)_r(Ne,ze)&&ks(Ne[ze]);J=Ne[V]}m.value[V]=J,M.messages=m.value}function wn(V,J){m.value[V]=m.value[V]||{};const Ne={[V]:J};if(o)for(const ze in Ne)_r(Ne,ze)&&ks(Ne[ze]);J=Ne[V],il(J,m.value[V]),M.messages=m.value}function A(V){return g.value[V]||{}}function R(V,J){g.value[V]=J,M.datetimeFormats=g.value,W_(M,V,J)}function G(V,J){g.value[V]=Ot(g.value[V]||{},J),M.datetimeFormats=g.value,W_(M,V,J)}function oe(V){return v.value[V]||{}}function je(V,J){v.value[V]=J,M.numberFormats=v.value,G_(M,V,J)}function Ze(V,J){v.value[V]=Ot(v.value[V]||{},J),M.numberFormats=v.value,G_(M,V,J)}Z_++,e&&Cr&&(l.watch(e.locale,V=>{c&&(d.value=V,M.locale=V,ts(M,d.value,h.value))}),l.watch(e.fallbackLocale,V=>{c&&(h.value=V,M.fallbackLocale=V,ts(M,d.value,h.value))}));const Me={id:Z_,locale:X,fallbackLocale:ee,get inheritLocale(){return c},set inheritLocale(V){c=V,V&&e&&(d.value=e.locale.value,h.value=e.fallbackLocale.value,ts(M,d.value,h.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:ue,get modifiers(){return K},get pluralRules(){return q||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(V){p=V,M.missingWarn=p},get fallbackWarn(){return w},set fallbackWarn(V){w=V,M.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(V){C=V},get fallbackFormat(){return T},set fallbackFormat(V){T=V,M.fallbackFormat=T},get warnHtmlMessage(){return D},set warnHtmlMessage(V){D=V,M.warnHtmlMessage=V},get escapeParameter(){return L},set escapeParameter(V){L=V,M.escapeParameter=V},t:St,getLocaleMessage:En,setLocaleMessage:Jo,mergeLocaleMessage:wn,getPostTranslationHandler:rn,setPostTranslationHandler:qt,getMissingHandler:Mt,setMissingHandler:at,[KC]:_o};return Me.datetimeFormats=Be,Me.numberFormats=Ct,Me.rt=jo,Me.te=vo,Me.tm=Ft,Me.d=La,Me.n=xa,Me.getDateTimeFormat=A,Me.setDateTimeFormat=R,Me.mergeDateTimeFormat=G,Me.getNumberFormat=oe,Me.setNumberFormat=je,Me.mergeNumberFormat=Ze,Me[WC]=t,Me[Nh]=Ar,Me[Rh]=Ba,Me[Oh]=qr,process.env.NODE_ENV!=="production"&&(Me[Ci]=V=>{M.__v_emitter=V},Me[As]=()=>{M.__v_emitter=void 0}),Me}const qC="vue-i18n: composer properties",$d={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},YL={"vue-i18n-resource-inspector":"Search for scopes ..."},JL={"vue-i18n-timeline":16764185};let Mh;async function QL(n,e){return new Promise((t,r)=>{try{pf({id:"vue-devtools-plugin-vue-i18n",label:$d["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qC],app:n},o=>{Mh=o,o.on.visitComponentTree(({componentInstance:c,treeNode:d})=>{XL(c,d,e)}),o.on.inspectComponent(({componentInstance:c,instanceData:d})=>{c.vnode.el&&c.vnode.el.__VUE_I18N__&&d&&(e.mode==="legacy"?c.vnode.el.__VUE_I18N__!==e.global.__composer&&tv(d,c.vnode.el.__VUE_I18N__):tv(d,c.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:$d["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:YL["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&rx(c,e)});const a=new Map;o.on.getInspectorState(async c=>{if(c.app===n&&c.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),ix(c,e),c.nodeId==="global"){if(!a.has(c.app)){const[d]=await o.getComponentInstances(c.app);a.set(c.app,d)}o.highlightElement(a.get(c.app))}else{const d=ox(c.nodeId,e);d&&o.highlightElement(d)}}),o.on.editInspectorState(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&sx(c,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:$d["vue-i18n-timeline"],color:JL["vue-i18n-timeline"]}),t(!0)})}catch(o){console.error(o),r(!1)}})}function jC(n){return n.type.name||n.type.displayName||n.type.__file||"Anonymous"}function XL(n,e,t){const r=t.mode==="composition"?t.global:t.global.__composer;if(n&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&n.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${jC(n)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(o)}}function tv(n,e){const t=qC;n.state.push({type:t,key:"locale",editable:!0,value:e.locale.value}),n.state.push({type:t,key:"availableLocales",editable:!1,value:e.availableLocales}),n.state.push({type:t,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),n.state.push({type:t,key:"inheritLocale",editable:!0,value:e.inheritLocale}),n.state.push({type:t,key:"messages",editable:!1,value:Pf(e.messages.value)}),n.state.push({type:t,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),n.state.push({type:t,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Pf(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];Je(r)&&"source"in r?e[t]=nx(r):ir(r)&&r.loc&&r.loc.source?e[t]=r.loc.source:Le(r)?e[t]=Pf(r):e[t]=r}),e}const ZL={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function ex(n){return n.replace(/[<>"&]/g,tx)}function tx(n){return ZL[n]||n}function nx(n){return{_custom:{type:"function",display:`<span>ƒ</span> ${n.source?`("${ex(n.source)}")`:"(?)"}`}}}function rx(n,e){n.rootNodes.push({id:"global",label:"Global Scope"});const t=e.mode==="composition"?e.global:e.global.__composer;for(const[r,o]of e.__instances){const a=e.mode==="composition"?o:o.__composer;t!==a&&n.rootNodes.push({id:a.id.toString(),label:`${jC(r)} Scope`})}}function ox(n,e){let t=null;if(n!=="global"){for(const[r,o]of e.__instances.entries())if(o.id.toString()===n){t=r;break}}return t}function YC(n,e){if(n==="global")return e.mode==="composition"?e.global:e.global.__composer;{const t=Array.from(e.__instances.values()).find(r=>r.id.toString()===n);return t?e.mode==="composition"?t:t.__composer:null}}function ix(n,e){const t=YC(n.nodeId,e);return t&&(n.state=ax(t)),null}function ax(n){const e={},t="Locale related info",r=[{type:t,key:"locale",editable:!0,value:n.locale.value},{type:t,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:n.availableLocales},{type:t,key:"inheritLocale",editable:!0,value:n.inheritLocale}];e[t]=r;const o="Locale messages info",a=[{type:o,key:"messages",editable:!1,value:Pf(n.messages.value)}];e[o]=a;{const c="Datetime formats info",d=[{type:c,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}];e[c]=d;const h="Datetime formats info",m=[{type:h,key:"numberFormats",editable:!1,value:n.numberFormats.value}];e[h]=m}return e}function Ns(n,e){if(Mh){let t;e&&"groupId"in e&&(t=e.groupId,delete e.groupId),Mh.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:n,groupId:t,time:Date.now(),meta:{},data:e||{},logType:n==="compile-error"?"error":n==="fallback"||n==="missing"?"warning":"default"}})}}function sx(n,e){const t=YC(n.nodeId,e);if(t){const[r]=n.path;r==="locale"&&ne(n.state.value)?t.locale.value=n.state.value:r==="fallbackLocale"&&(ne(n.state.value)||yt(n.state.value)||Le(n.state.value))?t.fallbackLocale.value=n.state.value:r==="inheritLocale"&&Ue(n.state.value)&&(t.inheritLocale=n.state.value)}}function cx(n){const e=ne(n.locale)?n.locale:Ss,t=ne(n.fallbackLocale)||yt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Je(n.missing)?n.missing:void 0,o=Ue(n.silentTranslationWarn)||ya(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,a=Ue(n.silentFallbackWarn)||ya(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,c=Ue(n.fallbackRoot)?n.fallbackRoot:!0,d=!!n.formatFallbackMessages,h=ke(n.modifiers)?n.modifiers:{},m=n.pluralizationRules,g=Je(n.postTranslation)?n.postTranslation:void 0,v=ne(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,p=!!n.escapeParameterHtml,w=Ue(n.sync)?n.sync:!0;let C=n.messages;if(ke(n.sharedMessages)){const K=n.sharedMessages;C=Object.keys(K).reduce((M,ce)=>{const ae=M[ce]||(M[ce]={});return Ot(ae,K[ce]),M},C||{})}const{__i18n:T,__root:k,__injectWithOption:I}=n,N=n.datetimeFormats,D=n.numberFormats,L=n.flatJson;return{locale:e,fallbackLocale:t,messages:C,flatJson:L,datetimeFormats:N,numberFormats:D,missing:r,missingWarn:o,fallbackWarn:a,fallbackRoot:c,fallbackFormat:d,modifiers:h,pluralRules:m,postTranslation:g,warnHtmlMessage:v,escapeParameter:p,messageResolver:n.messageResolver,inheritLocale:w,__i18n:T,__root:k,__injectWithOption:I}}function Dh(n={}){const e=Of(cx(n)),{__extender:t}=n,r={id:e.id,get locale(){return e.locale.value},set locale(o){e.locale.value=o},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(o){e.fallbackLocale.value=o},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get missing(){return e.getMissingHandler()},set missing(o){e.setMissingHandler(o)},get silentTranslationWarn(){return Ue(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(o){e.missingWarn=Ue(o)?!o:o},get silentFallbackWarn(){return Ue(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(o){e.fallbackWarn=Ue(o)?!o:o},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(o){e.fallbackFormat=o},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(o){e.setPostTranslationHandler(o)},get sync(){return e.inheritLocale},set sync(o){e.inheritLocale=o},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){e.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(o){e.escapeParameter=o},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...o){return Reflect.apply(e.t,e,[...o])},rt(...o){return Reflect.apply(e.rt,e,[...o])},te(o,a){return e.te(o,a)},tm(o){return e.tm(o)},getLocaleMessage(o){return e.getLocaleMessage(o)},setLocaleMessage(o,a){e.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){e.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(e.d,e,[...o])},getDateTimeFormat(o){return e.getDateTimeFormat(o)},setDateTimeFormat(o,a){e.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){e.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(e.n,e,[...o])},getNumberFormat(o){return e.getNumberFormat(o)},setNumberFormat(o,a){e.setNumberFormat(o,a)},mergeNumberFormat(o,a){e.mergeNumberFormat(o,a)}};return r.__extender=t,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const a=e;a[Ci]&&a[Ci](o)},r.__disableEmitter=()=>{const o=e;o[As]&&o[As]()}),r}function lx(n,e,t){return{beforeCreate(){const r=l.getCurrentInstance();if(!r)throw Cn(nt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const a=o.i18n;if(o.__i18n&&(a.__i18n=o.__i18n),a.__root=e,this===this.$root)this.$i18n=nv(n,a);else{a.__injectWithOption=!0,a.__extender=t.__vueI18nExtend,this.$i18n=Dh(a);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=nv(n,o);else{this.$i18n=Dh({__i18n:o.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:e});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=n;o.__i18nGlobal&&GC(e,o,o),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,c)=>this.$i18n.te(a,c),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),t.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=If();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Ns)}},unmounted(){const r=l.getCurrentInstance();if(!r)throw Cn(nt.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ns),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),t.__deleteInstance(r),delete this.$i18n}}}function nv(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[KC](e.pluralizationRules||n.pluralizationRules);const t=Rf(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const Mf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function ux({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((t,r)=>{const o=n[r];return o&&(t[r]=o()),t},qe())}function JC(){return l.Fragment}const dx=l.defineComponent({name:"i18n-t",props:Ot({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>It(n)||!isNaN(n)}},Mf),setup(n,e){const{slots:t,attrs:r}=e,o=n.i18n||br({useScope:n.scope,__useComponent:!0});return()=>{const a=Object.keys(t).filter(v=>v!=="_"),c=qe();n.locale&&(c.locale=n.locale),n.plural!==void 0&&(c.plural=ne(n.plural)?+n.plural:n.plural);const d=ux(e,a),h=o[Nh](n.keypath,d,c),m=Ot(qe(),r),g=ne(n.tag)||Le(n.tag)?n.tag:JC();return l.h(g,m,h)}}}),rv=dx;function hx(n){return yt(n)&&!ne(n[0])}function QC(n,e,t,r){const{slots:o,attrs:a}=e;return()=>{const c={part:!0};let d=qe();n.locale&&(c.locale=n.locale),ne(n.format)?c.key=n.format:Le(n.format)&&(ne(n.format.key)&&(c.key=n.format.key),d=Object.keys(n.format).reduce((p,w)=>t.includes(w)?Ot(qe(),p,{[w]:n.format[w]}):p,qe()));const h=r(n.value,c,d);let m=[c.key];yt(h)?m=h.map((p,w)=>{const C=o[p.type],T=C?C({[p.type]:p.value,index:w,parts:h}):[p.value];return hx(T)&&(T[0].key=`${p.type}-${w}`),T}):ne(h)&&(m=[h]);const g=Ot(qe(),a),v=ne(n.tag)||Le(n.tag)?n.tag:JC();return l.h(v,g,m)}}const fx=l.defineComponent({name:"i18n-n",props:Ot({value:{type:Number,required:!0},format:{type:[String,Object]}},Mf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return QC(n,e,VC,(...r)=>t[Oh](...r))}}),ov=fx;function mx(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function gx(n){const e=c=>{process.env.NODE_ENV!=="production"&&bf(xs(xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:d,value:h}=c;if(!d||!d.$)throw Cn(nt.UNEXPECTED_ERROR);const m=mx(n,d.$),g=iv(h);return[Reflect.apply(m.t,m,[...av(g)]),m]};return{created:(c,d)=>{const[h,m]=e(d);Cr&&n.global===m&&(c.__i18nWatcher=l.watch(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=h},unmounted:c=>{Cr&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:d})=>{if(c.__composer){const h=c.__composer,m=iv(d);c.textContent=Reflect.apply(h.t,h,[...av(m)])}},getSSRProps:c=>{const[d]=e(c);return{textContent:d}}}}function iv(n){if(ne(n))return{path:n};if(ke(n)){if(!("path"in n))throw Cn(nt.REQUIRED_VALUE,"path");return n}else throw Cn(nt.INVALID_VALUE)}function av(n){const{path:e,locale:t,args:r,choice:o,plural:a}=n,c={},d=r||{};return ne(t)&&(c.locale=t),It(o)&&(c.plural=o),It(a)&&(c.plural=a),[e,d,c]}function px(n,e,...t){const r=ke(t[0])?t[0]:{};(Ue(r.globalInstall)?r.globalInstall:!0)&&([rv.name,"I18nT"].forEach(a=>n.component(a,rv)),[ov.name,"I18nN"].forEach(a=>n.component(a,ov)),[cv.name,"I18nD"].forEach(a=>n.component(a,cv))),n.directive("t",gx(e))}const _x=Gr("global-vue-i18n");function vx(n={}){const e=__VUE_I18N_LEGACY_API__&&Ue(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&e&&bf(xs(xr.DEPRECATE_LEGACY_MODE));const t=Ue(n.globalInjection)?n.globalInjection:!0,r=new Map,[o,a]=yx(n,e),c=Gr(process.env.NODE_ENV!=="production"?"vue-i18n":"");function d(v){return r.get(v)||null}function h(v,p){r.set(v,p)}function m(v){r.delete(v)}const g={get mode(){return __VUE_I18N_LEGACY_API__&&e?"legacy":"composition"},async install(v,...p){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=g),v.__VUE_I18N_SYMBOL__=c,v.provide(v.__VUE_I18N_SYMBOL__,g),ke(p[0])){const T=p[0];g.__composerExtend=T.__composerExtend,g.__vueI18nExtend=T.__vueI18nExtend}let w=null;!e&&t&&(w=Ax(v,g.global)),__VUE_I18N_FULL_INSTALL__&&px(v,g,...p),__VUE_I18N_LEGACY_API__&&e&&v.mixin(lx(a,a.__composer,g));const C=v.unmount;if(v.unmount=()=>{w&&w(),g.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await QL(v,g))throw Cn(nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=If();if(e){const I=a;I.__enableEmitter&&I.__enableEmitter(k)}else{const I=a;I[Ci]&&I[Ci](k)}k.on("*",Ns)}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:d,__setInstance:h,__deleteInstance:m};return g}function br(n={}){const e=l.getCurrentInstance();if(e==null)throw Cn(nt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Cn(nt.NOT_INSTALLED);const t=Cx(e),r=wx(t),o=zC(e),a=Ex(n,o);if(a==="global")return GC(r,n,o),r;if(a==="parent"){let h=Tx(t,e,n.__useComponent);return h==null&&(process.env.NODE_ENV!=="production"&&zo(xs(xr.NOT_FOUND_PARENT_SCOPE)),h=r),h}const c=t;let d=c.__getInstance(e);if(d==null){const h=Ot({},n);"__i18n"in o&&(h.__i18n=o.__i18n),r&&(h.__root=r),d=Of(h),c.__composerExtend&&(d[Ph]=c.__composerExtend(d)),Ix(c,e,d),c.__setInstance(e,d)}return d}function yx(n,e){const t=l.effectScope(),r=__VUE_I18N_LEGACY_API__&&e?t.run(()=>Dh(n)):t.run(()=>Of(n));if(r==null)throw Cn(nt.UNEXPECTED_ERROR);return[t,r]}function Cx(n){const e=l.inject(n.isCE?_x:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Cn(n.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return e}function Ex(n,e){return ql(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function wx(n){return n.mode==="composition"?n.global:n.global.__composer}function Tx(n,e,t=!1){let r=null;const o=e.root;let a=bx(e,t);for(;a!=null;){const c=n;if(n.mode==="composition")r=c.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const d=c.__getInstance(a);d!=null&&(r=d.__composer,t&&r&&!r[WC]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function bx(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Ix(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=If();const o=t;o[Ci]&&o[Ci](r),r.on("*",Ns)}},e),l.onUnmounted(()=>{const o=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Ns),o[As]&&o[As](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const a=o[Ph];a&&(a(),delete o[Ph])},e)}const Sx=["locale","fallbackLocale","availableLocales"],sv=["t","rt","d","n","tm","te"];function Ax(n,e){const t=Object.create(null);return Sx.forEach(o=>{const a=Object.getOwnPropertyDescriptor(e,o);if(!a)throw Cn(nt.UNEXPECTED_ERROR);const c=l.isRef(a.value)?{get(){return a.value.value},set(d){a.value.value=d}}:{get(){return a.get&&a.get()}};Object.defineProperty(t,o,c)}),n.config.globalProperties.$i18n=t,sv.forEach(o=>{const a=Object.getOwnPropertyDescriptor(e,o);if(!a||!a.value)throw Cn(nt.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${o}`,a)}),()=>{delete n.config.globalProperties.$i18n,sv.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}const kx=l.defineComponent({name:"i18n-d",props:Ot({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return QC(n,e,FC,(...r)=>t[Rh](...r))}}),cv=kx;WL();wL(eL);TL(_L);bL(RC);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=fi();n.__INTLIFY__=!0,tL(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Nx={"en-US":Ef,"pt-BR":rD,"fr-FR":AM,"de-DE":Q1};function us(n){if(!n)return"";const{locale:e}=br(),t=e.value,r=Nx[t]||Ef;try{const o=typeof n=="string"||n===null?new Date(n||""):n;return isNaN(o.getTime())?"":E1(o,"PPpp",{locale:r})}catch(o){return console.error("Error formatting date:",o),""}}const Lh="https://app-files.jplan.com.br/pub/resources/assets/thumbs/empty_list.svg";function Rx(n){const{clientX:e,clientY:t}=n,{innerWidth:r,innerHeight:o}=window;return{x:Math.min(e,r-350),y:Math.min(t,o-200)}}const Ox={key:0,class:"d-flex mt-4 flex-column align-center justify-center w-100"},Px={key:1,class:"mt-4 h-100 rounded-sm"},Mx={class:"d-inline-flex"},Dx={class:"d-inline-flex"},Lx={class:"d-inline-flex"},XC=l.defineComponent({__name:"TableAdvanced",props:l.mergeModels({headers:{},items:{default:()=>[]},actions:{},loading:{type:Boolean},columns:{default:()=>[]},sortBy:{},dateFields:{},customFields:{},search:{},filterKeys:{},selectOnRowClick:{type:Boolean}},{selection:{},selectionModifiers:{}}),emits:l.mergeModels(["rowClick"],["update:selection"]),setup(n,{emit:e}){const t=[{value:50,title:"50"},{value:100,title:"100"},{value:500,title:"500"},{value:1e3,title:"1000"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}],r=n,o=e,a=l.computed(()=>r.headers?r.headers:r.columns?r.columns.filter(p=>p.checked):[]),c=l.useModel(n,"selection"),d=l.ref(!1),h=l.ref({x:0,y:0}),m=l.ref(null),g=async(p,{item:w})=>{p.preventDefault(),m.value=w,h.value=Rx(p),d.value=!0};function v(p,{item:w}){var T;if(o("rowClick",w),!r.selectOnRowClick||!((T=c.value)!=null&&T.length))return;const C=c.value.findIndex(k=>k===w);return C!==-1?c.value.splice(C,1):c.value.push(w),w}return(p,w)=>!p.loading&&p.items.length===0?(l.openBlock(),l.createElementBlock("div",Ox,[l.createVNode(mf.VImg,{"lazy-src":l.unref(Lh),src:l.unref(Lh),height:"600",width:"600"},null,8,["lazy-src","src"]),w[2]||(w[2]=l.createElementVNode("p",{class:"text-center text-body-1 w-100"},"No records found.",-1))])):(l.openBlock(),l.createElementBlock("div",Px,[l.createVNode(gf.VMenu,{modelValue:d.value,"onUpdate:modelValue":w[0]||(w[0]=C=>d.value=C),"close-on-content-click":!0,"min-width":"350",style:l.normalizeStyle({position:"fixed",left:`${h.value.x}px`,top:`${h.value.y}px`})},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"contextmenu",{item:m.value})]),_:3},8,["modelValue","style"]),l.createVNode(Ny.VDataTable,{modelValue:c.value,"onUpdate:modelValue":w[1]||(w[1]=C=>c.value=C),"fixed-header":"","fixed-footer":"","items-per-page":"50",headers:a.value,items:p.items,"items-length":p.items.length,loading:p.loading||!1,"return-object":"","show-select":"","sort-by":p.sortBy,search:p.search,"filter-keys":p.filterKeys,height:"calc(100vh - 320px)",class:"customize-table bg-containerBg","onContextmenu:row":g,"onClick:row":v,"items-per-page-options":t},l.createSlots({"item.avatar":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"avatar",{item:C})]),"item.active":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"active",{item:C})]),"item.image":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"image",{item:C})]),"item.picture":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"picture",{item:C})]),"item.icon":l.withCtx(({item:C})=>[l.renderSlot(p.$slots,"icon",{item:C})]),"item.actions":l.withCtx(({item:C})=>[l.createElementVNode("div",Dx,[l.renderSlot(p.$slots,"actions",{item:C})])]),"no-data":l.withCtx(()=>[w[3]||(w[3]=l.createElementVNode("p",null,"No results found.",-1))]),_:2},[l.renderList(p.customFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",Mx,[l.renderSlot(p.$slots,C,{item:T})])])})),l.renderList(p.dateFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",Lx,l.toDisplayString(l.unref(us)(T[C])),1)])}))]),1032,["modelValue","headers","items","items-length","loading","sort-by","search","filter-keys"])]))}}),Jl=l.defineComponent({__name:"SearchFilter",props:l.mergeModels({placeholder:{}},{search:{},searchModifiers:{}}),emits:["update:search"],setup(n){const e=l.useModel(n,"search"),{t}=br();return(r,o)=>(l.openBlock(),l.createBlock(CO.VTextField,{class:"bg-containerBg pa-1 rounded-sm elevation-1","persistent-placeholder":"",placeholder:r.placeholder??l.unref(t)("placeholders.search"),variant:"plain","hide-details":"",density:"compact",modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a)},{"prepend-inner":l.withCtx(()=>[l.createVNode(l.unref(dP),{size:"15",class:"ma-1 me-1"})]),_:1},8,["placeholder","modelValue"]))}}),xx=l.defineComponent({__name:"TableHeader",props:l.mergeModels({columns:{},filter_visualize:{type:Boolean,default:!0}},{search:{},searchModifiers:{}}),emits:l.mergeModels(["refresh","remove"],["update:search"]),setup(n,{emit:e}){var g,v;const t=n,r=l.computed(()=>t.columns),o=e,a=l.useModel(n,"search"),{openDialog:c}=Ms("col-settings"),d=l.getCurrentInstance(),h=((g=d==null?void 0:d.vnode.props)==null?void 0:g.onRemove)!==void 0||((v=d==null?void 0:d.vnode.props)==null?void 0:v["onUpdate:remove"])!==void 0,{t:m}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",null,[l.createVNode(l.unref(Uf),{modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=C=>r.value=C)},null,8,["modelValue"]),l.createVNode(Qe.VRow,{"no-gutters":"",align:"center"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"12",md:"6",class:"d-flex align-center flex-wrap gap-2"},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(l.unref(aP),{class:"mt-1 me-2",color:"rgb(var(--v-theme-lightprimary))"})]),l.renderSlot(p.$slots,"filter",{},void 0,!0),p.$slots.filter?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ls.VSelect,{key:0,items:["Move data","Copy","Duplicate","Loop"],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.selectFilter"),density:"compact",class:"filter-field","hide-details":"",multiple:"",clearable:""},null,8,["placeholder"])),l.createVNode(it.VBtn,{icon:"",variant:"text",onClick:w[1]||(w[1]=C=>o("refresh"))},{default:l.withCtx(()=>[l.createVNode(l.unref(uP),{color:"rgb(var(--v-theme-secondary))"})]),_:1}),l.createVNode(it.VBtn,{icon:"",variant:"text"},{default:l.withCtx(()=>[l.createVNode(l.unref(iP),{color:"rgb(var(--v-theme-secondary))"})]),_:1})]),_:3}),l.createVNode(Qe.VCol,{cols:"12",md:"6",class:"d-flex align-center justify-end flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"top-right",{},void 0,!0),l.createVNode(it.VBtn,{class:"me-2",icon:"",variant:"text",onClick:l.unref(c)},{default:l.withCtx(()=>[l.createVNode(l.unref(lP),{color:"rgb(var(--v-theme-secondary))"})]),_:1},8,["onClick"]),l.createVNode(Jl,{class:"search-field",modelValue:a.value,"onUpdate:modelValue":w[2]||(w[2]=C=>a.value=C)},null,8,["modelValue"])]),_:3})]),_:3}),l.createVNode(pi.VDivider,{class:"my-4"}),l.createVNode(Qe.VRow,{align:"center"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{md:"3",cols:"6",class:"d-flex flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"left-prepend",{},void 0,!0),l.unref(h)?(l.openBlock(),l.createBlock(l.unref(Cf),{key:0,onRemoveAll:w[3]||(w[3]=C=>o("remove"))})):l.createCommentVNode("",!0),l.renderSlot(p.$slots,"left-append",{},void 0,!0)]),_:3}),l.createVNode(Qe.VCol,{md:"9",cols:"12",class:"d-flex justify-end align-center flex-wrap gap-2"},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"right-prepend",{},void 0,!0),p.filter_visualize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(l.unref(hP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(ls.VSelect,{items:[],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.visualize"),density:"compact",class:"bottom-field me-2","hide-details":"",multiple:"",clearable:""},null,8,["placeholder"])],64)):l.createCommentVNode("",!0),l.createVNode(l.unref(cP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(ls.VSelect,{items:["Move data","Copy","Duplicate","Loop"],variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref(m)("placeholders.actions"),density:"compact",class:"bottom-field","hide-details":"",clearable:""},null,8,["placeholder"])]),_:3})]),_:3})]))}}),ZC=Sa(xx,[["__scopeId","data-v-58865e47"]]);/*!
33
33
  * vue-draggable-next v2.2.0
34
34
  * (c) 2023 Anish George
35
35
  * @license MIT
@@ -38,22 +38,22 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
38
38
  * @author RubaXa <trash@rubaxa.org>
39
39
  * @author owenm <owen23355@gmail.com>
40
40
  * @license MIT
41
- */function lv(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function Wr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lv(Object(t),!0).forEach(function(r){Bx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):lv(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function al(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(e){return typeof e}:al=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},al(n)}function Bx(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function mo(){return mo=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},mo.apply(this,arguments)}function Fx(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Vx(n,e){if(n==null)return{};var t=Fx(n,e),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(o=0;o<a.length;o++)r=a[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var Hx="1.14.0";function ho(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var po=ho(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Us=ho(/Edge/i),uv=ho(/firefox/i),ds=ho(/safari/i)&&!ho(/chrome/i)&&!ho(/android/i),eE=ho(/iP(ad|od|hone)/i),$x=ho(/chrome/i)&&ho(/android/i),tE={capture:!1,passive:!1};function Ve(n,e,t){n.addEventListener(e,t,!po&&tE)}function xe(n,e,t){n.removeEventListener(e,t,!po&&tE)}function Cl(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function Kx(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Lr(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&Cl(n,e):Cl(n,e))||r&&n===t)return n;if(n===t)break}while(n=Kx(n))}return null}var dv=/\s+/g;function Nn(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(dv," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(dv," ")}}function pe(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function ga(n,e){var t="";if(typeof n=="string")t=n;else do{var r=pe(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function nE(n,e,t){if(n){var r=n.getElementsByTagName(e),o=0,a=r.length;if(t)for(;o<a;o++)t(r[o],o);return r}return[]}function $r(){var n=document.scrollingElement;return n||document.documentElement}function Rt(n,e,t,r,o){if(!(!n.getBoundingClientRect&&n!==window)){var a,c,d,h,m,g,v;if(n!==window&&n.parentNode&&n!==$r()?(a=n.getBoundingClientRect(),c=a.top,d=a.left,h=a.bottom,m=a.right,g=a.height,v=a.width):(c=0,d=0,h=window.innerHeight,m=window.innerWidth,g=window.innerHeight,v=window.innerWidth),(e||t)&&n!==window&&(o=o||n.parentNode,!po))do if(o&&o.getBoundingClientRect&&(pe(o,"transform")!=="none"||t&&pe(o,"position")!=="static")){var p=o.getBoundingClientRect();c-=p.top+parseInt(pe(o,"border-top-width")),d-=p.left+parseInt(pe(o,"border-left-width")),h=c+a.height,m=d+a.width;break}while(o=o.parentNode);if(r&&n!==window){var w=ga(o||n),C=w&&w.a,T=w&&w.d;w&&(c/=T,d/=C,v/=C,g/=T,h=c+g,m=d+v)}return{top:c,left:d,bottom:h,right:m,width:v,height:g}}}function hv(n,e,t){for(var r=Fo(n,!0),o=Rt(n)[e];r;){var a=Rt(r)[t],c=void 0;if(c=o>=a,!c)return r;if(r===$r())break;r=Fo(r,!1)}return!1}function Ea(n,e,t,r){for(var o=0,a=0,c=n.children;a<c.length;){if(c[a].style.display!=="none"&&c[a]!==_e.ghost&&(r||c[a]!==_e.dragged)&&Lr(c[a],t.draggable,n,!1)){if(o===e)return c[a];o++}a++}return null}function Df(n,e){for(var t=n.lastElementChild;t&&(t===_e.ghost||pe(t,"display")==="none"||e&&!Cl(t,e));)t=t.previousElementSibling;return t||null}function nr(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==_e.clone&&(!e||Cl(n,e))&&t++;return t}function fv(n){var e=0,t=0,r=$r();if(n)do{var o=ga(n),a=o.a,c=o.d;e+=n.scrollLeft*a,t+=n.scrollTop*c}while(n!==r&&(n=n.parentNode));return[e,t]}function Wx(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Fo(n,e){if(!n||!n.getBoundingClientRect)return $r();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=pe(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return $r();if(r||e)return t;r=!0}}while(t=t.parentNode);return $r()}function zx(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Kd(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var hs;function rE(n,e){return function(){if(!hs){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),hs=setTimeout(function(){hs=void 0},e)}}}function Gx(){clearTimeout(hs),hs=void 0}function oE(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function iE(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var xn="Sortable"+new Date().getTime();function qx(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(pe(o,"display")==="none"||o===_e.ghost)){n.push({target:o,rect:Rt(o)});var a=Wr({},n[n.length-1].rect);if(o.thisAnimationDuration){var c=ga(o,!0);c&&(a.top-=c.f,a.left-=c.e)}o.fromRect=a}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(Wx(n,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var a=!1,c=0;n.forEach(function(d){var h=0,m=d.target,g=m.fromRect,v=Rt(m),p=m.prevFromRect,w=m.prevToRect,C=d.rect,T=ga(m,!0);T&&(v.top-=T.f,v.left-=T.e),m.toRect=v,m.thisAnimationDuration&&Kd(p,v)&&!Kd(g,v)&&(C.top-v.top)/(C.left-v.left)===(g.top-v.top)/(g.left-v.left)&&(h=Yx(C,p,w,o.options)),Kd(v,g)||(m.prevFromRect=g,m.prevToRect=v,h||(h=o.options.animation),o.animate(m,C,v,h)),h&&(a=!0,c=Math.max(c,h),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},h),m.thisAnimationDuration=h)}),clearTimeout(e),a?e=setTimeout(function(){typeof r=="function"&&r()},c):typeof r=="function"&&r(),n=[]},animate:function(r,o,a,c){if(c){pe(r,"transition",""),pe(r,"transform","");var d=ga(this.el),h=d&&d.a,m=d&&d.d,g=(o.left-a.left)/(h||1),v=(o.top-a.top)/(m||1);r.animatingX=!!g,r.animatingY=!!v,pe(r,"transform","translate3d("+g+"px,"+v+"px,0)"),this.forRepaintDummy=jx(r),pe(r,"transition","transform "+c+"ms"+(this.options.easing?" "+this.options.easing:"")),pe(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){pe(r,"transition",""),pe(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},c)}}}}function jx(n){return n.offsetWidth}function Yx(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var qi=[],Wd={initializeByDefault:!0},Bs={mount:function(e){for(var t in Wd)Wd.hasOwnProperty(t)&&!(t in e)&&(e[t]=Wd[t]);qi.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),qi.push(e)},pluginEvent:function(e,t,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=e+"Global";qi.forEach(function(c){t[c.pluginName]&&(t[c.pluginName][a]&&t[c.pluginName][a](Wr({sortable:t},r)),t.options[c.pluginName]&&t[c.pluginName][e]&&t[c.pluginName][e](Wr({sortable:t},r)))})},initializePlugins:function(e,t,r,o){qi.forEach(function(d){var h=d.pluginName;if(!(!e.options[h]&&!d.initializeByDefault)){var m=new d(e,t,e.options);m.sortable=e,m.options=e.options,e[h]=m,mo(r,m.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var c=this.modifyOption(e,a,e.options[a]);typeof c<"u"&&(e.options[a]=c)}},getEventProperties:function(e,t){var r={};return qi.forEach(function(o){typeof o.eventProperties=="function"&&mo(r,o.eventProperties.call(t[o.pluginName],e))}),r},modifyOption:function(e,t,r){var o;return qi.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[t]=="function"&&(o=a.optionListeners[t].call(e[a.pluginName],r))}),o}};function Jx(n){var e=n.sortable,t=n.rootEl,r=n.name,o=n.targetEl,a=n.cloneEl,c=n.toEl,d=n.fromEl,h=n.oldIndex,m=n.newIndex,g=n.oldDraggableIndex,v=n.newDraggableIndex,p=n.originalEvent,w=n.putSortable,C=n.extraEventProperties;if(e=e||t&&t[xn],!!e){var T,k=e.options,I="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!po&&!Us?T=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(T=document.createEvent("Event"),T.initEvent(r,!0,!0)),T.to=c||t,T.from=d||t,T.item=o||t,T.clone=a,T.oldIndex=h,T.newIndex=m,T.oldDraggableIndex=g,T.newDraggableIndex=v,T.originalEvent=p,T.pullMode=w?w.lastPutMode:void 0;var N=Wr(Wr({},C),Bs.getEventProperties(r,e));for(var D in N)T[D]=N[D];t&&t.dispatchEvent(T),k[I]&&k[I].call(e,T)}}var Qx=["evt"],pn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=Vx(r,Qx);Bs.pluginEvent.bind(_e)(e,t,Wr({dragEl:Z,parentEl:mt,ghostEl:we,rootEl:ct,nextEl:ui,lastDownEl:sl,cloneEl:gt,cloneHidden:Lo,dragStarted:os,putSortable:zt,activeSortable:_e.active,originalEvent:o,oldIndex:da,oldDraggableIndex:fs,newIndex:Rn,newDraggableIndex:Do,hideGhostForTarget:lE,unhideGhostForTarget:uE,cloneNowHidden:function(){Lo=!0},cloneNowShown:function(){Lo=!1},dispatchSortableEvent:function(d){ln({sortable:t,name:d,originalEvent:o})}},a))};function ln(n){Jx(Wr({putSortable:zt,cloneEl:gt,targetEl:Z,rootEl:ct,oldIndex:da,oldDraggableIndex:fs,newIndex:Rn,newDraggableIndex:Do},n))}var Z,mt,we,ct,ui,sl,gt,Lo,da,Rn,fs,Do,Uc,zt,oa=!1,El=!1,wl=[],ai,hr,zd,Gd,mv,gv,os,ji,ms,gs=!1,Bc=!1,cl,Jt,qd=[],xh=!1,Tl=[],Ql=typeof document<"u",Fc=eE,pv=Us||po?"cssFloat":"float",Xx=Ql&&!$x&&!eE&&"draggable"in document.createElement("div"),aE=function(){if(Ql){if(po)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),sE=function(e,t){var r=pe(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Ea(e,0,t),c=Ea(e,1,t),d=a&&pe(a),h=c&&pe(c),m=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Rt(a).width,g=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Rt(c).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&d.float&&d.float!=="none"){var v=d.float==="left"?"left":"right";return c&&(h.clear==="both"||h.clear===v)?"vertical":"horizontal"}return a&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=o&&r[pv]==="none"||c&&r[pv]==="none"&&m+g>o)?"vertical":"horizontal"},Zx=function(e,t,r){var o=r?e.left:e.top,a=r?e.right:e.bottom,c=r?e.width:e.height,d=r?t.left:t.top,h=r?t.right:t.bottom,m=r?t.width:t.height;return o===d||a===h||o+c/2===d+m/2},eU=function(e,t){var r;return wl.some(function(o){var a=o[xn].options.emptyInsertThreshold;if(!(!a||Df(o))){var c=Rt(o),d=e>=c.left-a&&e<=c.right+a,h=t>=c.top-a&&t<=c.bottom+a;if(d&&h)return r=o}}),r},cE=function(e){function t(a,c){return function(d,h,m,g){var v=d.options.group.name&&h.options.group.name&&d.options.group.name===h.options.group.name;if(a==null&&(c||v))return!0;if(a==null||a===!1)return!1;if(c&&a==="clone")return a;if(typeof a=="function")return t(a(d,h,m,g),c)(d,h,m,g);var p=(c?d:h).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var r={},o=e.group;(!o||al(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=t(o.pull,!0),r.checkPut=t(o.put),r.revertClone=o.revertClone,e.group=r},lE=function(){!aE&&we&&pe(we,"display","none")},uE=function(){!aE&&we&&pe(we,"display","")};Ql&&document.addEventListener("click",function(n){if(El)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),El=!1,!1},!0);var si=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=eU(e.clientX,e.clientY);if(t){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[xn]._onDragOver(r)}}},tU=function(e){Z&&Z.parentNode[xn]._isOutsideThisEl(e.target)};function _e(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=mo({},e),n[xn]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return sE(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,d){c.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:_e.supportPointer!==!1&&"PointerEvent"in window&&!ds,emptyInsertThreshold:5};Bs.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);cE(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:Xx,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ve(n,"pointerdown",this._onTapStart):(Ve(n,"mousedown",this._onTapStart),Ve(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ve(n,"dragover",this),Ve(n,"dragenter",this)),wl.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),mo(this,qx())}_e.prototype={constructor:_e,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ji=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,o=this.options,a=o.preventOnFilter,c=e.type,d=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,h=(d||e).target,m=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,g=o.filter;if(lU(r),!Z&&!(/mousedown|pointerdown/.test(c)&&e.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&ds&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Lr(h,o.draggable,r,!1),!(h&&h.animated)&&sl!==h)){if(da=nr(h),fs=nr(h,o.draggable),typeof g=="function"){if(g.call(this,e,h,this)){ln({sortable:t,rootEl:m,name:"filter",targetEl:h,toEl:r,fromEl:r}),pn("filter",t,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(g&&(g=g.split(",").some(function(v){if(v=Lr(m,v.trim(),r,!1),v)return ln({sortable:t,rootEl:v,name:"filter",targetEl:h,fromEl:r,toEl:r}),pn("filter",t,{evt:e}),!0}),g)){a&&e.cancelable&&e.preventDefault();return}o.handle&&!Lr(m,o.handle,r,!1)||this._prepareDragStart(e,d,h)}}},_prepareDragStart:function(e,t,r){var o=this,a=o.el,c=o.options,d=a.ownerDocument,h;if(r&&!Z&&r.parentNode===a){var m=Rt(r);if(ct=a,Z=r,mt=Z.parentNode,ui=Z.nextSibling,sl=r,Uc=c.group,_e.dragged=Z,ai={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},mv=ai.clientX-m.left,gv=ai.clientY-m.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",h=function(){if(pn("delayEnded",o,{evt:e}),_e.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!uv&&o.nativeDraggable&&(Z.draggable=!0),o._triggerDragStart(e,t),ln({sortable:o,name:"choose",originalEvent:e}),Nn(Z,c.chosenClass,!0)},c.ignore.split(",").forEach(function(g){nE(Z,g.trim(),jd)}),Ve(d,"dragover",si),Ve(d,"mousemove",si),Ve(d,"touchmove",si),Ve(d,"mouseup",o._onDrop),Ve(d,"touchend",o._onDrop),Ve(d,"touchcancel",o._onDrop),uv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),pn("delayStart",this,{evt:e}),c.delay&&(!c.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Us||po))){if(_e.eventCanceled){this._onDrop();return}Ve(d,"mouseup",o._disableDelayedDrag),Ve(d,"touchend",o._disableDelayedDrag),Ve(d,"touchcancel",o._disableDelayedDrag),Ve(d,"mousemove",o._delayedDragTouchMoveHandler),Ve(d,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&Ve(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(h,c.delay)}else h()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&jd(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._disableDelayedDrag),xe(e,"touchend",this._disableDelayedDrag),xe(e,"touchcancel",this._disableDelayedDrag),xe(e,"mousemove",this._delayedDragTouchMoveHandler),xe(e,"touchmove",this._delayedDragTouchMoveHandler),xe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ve(document,"pointermove",this._onTouchMove):t?Ve(document,"touchmove",this._onTouchMove):Ve(document,"mousemove",this._onTouchMove):(Ve(Z,"dragend",this),Ve(ct,"dragstart",this._onDragStart));try{document.selection?ll(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(oa=!1,ct&&Z){pn("dragStarted",this,{evt:t}),this.nativeDraggable&&Ve(document,"dragover",tU);var r=this.options;!e&&Nn(Z,r.dragClass,!1),Nn(Z,r.ghostClass,!0),_e.active=this,e&&this._appendGhost(),ln({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(hr){this._lastX=hr.clientX,this._lastY=hr.clientY,lE();for(var e=document.elementFromPoint(hr.clientX,hr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(hr.clientX,hr.clientY),e!==t);)t=e;if(Z.parentNode[xn]._isOutsideThisEl(e),t)do{if(t[xn]){var r=void 0;if(r=t[xn]._onDragOver({clientX:hr.clientX,clientY:hr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);uE()}},_onTouchMove:function(e){if(ai){var t=this.options,r=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,c=we&&ga(we,!0),d=we&&c&&c.a,h=we&&c&&c.d,m=Fc&&Jt&&fv(Jt),g=(a.clientX-ai.clientX+o.x)/(d||1)+(m?m[0]-qd[0]:0)/(d||1),v=(a.clientY-ai.clientY+o.y)/(h||1)+(m?m[1]-qd[1]:0)/(h||1);if(!_e.active&&!oa){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(we){c?(c.e+=g-(zd||0),c.f+=v-(Gd||0)):c={a:1,b:0,c:0,d:1,e:g,f:v};var p="matrix(".concat(c.a,",").concat(c.b,",").concat(c.c,",").concat(c.d,",").concat(c.e,",").concat(c.f,")");pe(we,"webkitTransform",p),pe(we,"mozTransform",p),pe(we,"msTransform",p),pe(we,"transform",p),zd=g,Gd=v,hr=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:ct,t=Rt(Z,!0,Fc,!0,e),r=this.options;if(Fc){for(Jt=e;pe(Jt,"position")==="static"&&pe(Jt,"transform")==="none"&&Jt!==document;)Jt=Jt.parentNode;Jt!==document.body&&Jt!==document.documentElement?(Jt===document&&(Jt=$r()),t.top+=Jt.scrollTop,t.left+=Jt.scrollLeft):Jt=$r(),qd=fv(Jt)}we=Z.cloneNode(!0),Nn(we,r.ghostClass,!1),Nn(we,r.fallbackClass,!0),Nn(we,r.dragClass,!0),pe(we,"transition",""),pe(we,"transform",""),pe(we,"box-sizing","border-box"),pe(we,"margin",0),pe(we,"top",t.top),pe(we,"left",t.left),pe(we,"width",t.width),pe(we,"height",t.height),pe(we,"opacity","0.8"),pe(we,"position",Fc?"absolute":"fixed"),pe(we,"zIndex","100000"),pe(we,"pointerEvents","none"),_e.ghost=we,e.appendChild(we),pe(we,"transform-origin",mv/parseInt(we.style.width)*100+"% "+gv/parseInt(we.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,o=e.dataTransfer,a=r.options;if(pn("dragStart",this,{evt:e}),_e.eventCanceled){this._onDrop();return}pn("setupClone",this),_e.eventCanceled||(gt=iE(Z),gt.draggable=!1,gt.style["will-change"]="",this._hideClone(),Nn(gt,this.options.chosenClass,!1),_e.clone=gt),r.cloneId=ll(function(){pn("clone",r),!_e.eventCanceled&&(r.options.removeCloneOnHide||ct.insertBefore(gt,Z),r._hideClone(),ln({sortable:r,name:"clone"}))}),!t&&Nn(Z,a.dragClass,!0),t?(El=!0,r._loopId=setInterval(r._emulateDragOver,50)):(xe(document,"mouseup",r._onDrop),xe(document,"touchend",r._onDrop),xe(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,Z)),Ve(document,"drop",r),pe(Z,"transform","translateZ(0)")),oa=!0,r._dragStartId=ll(r._dragStarted.bind(r,t,e)),Ve(document,"selectstart",r),os=!0,ds&&pe(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,o,a,c,d=this.options,h=d.group,m=_e.active,g=Uc===h,v=d.sort,p=zt||m,w,C=this,T=!1;if(xh)return;function k(at,Et){pn(at,C,Wr({evt:e,isOwner:g,axis:w?"vertical":"horizontal",revert:c,dragRect:o,targetRect:a,canSort:v,fromSortable:p,target:r,completed:N,onMove:function(St,jo){return Vc(ct,t,Z,o,St,Rt(St),e,jo)},changed:D},Et))}function I(){k("dragOverAnimationCapture"),C.captureAnimationState(),C!==p&&p.captureAnimationState()}function N(at){return k("dragOverCompleted",{insertion:at}),at&&(g?m._hideClone():m._showClone(C),C!==p&&(Nn(Z,zt?zt.options.ghostClass:m.options.ghostClass,!1),Nn(Z,d.ghostClass,!0)),zt!==C&&C!==_e.active?zt=C:C===_e.active&&zt&&(zt=null),p===C&&(C._ignoreWhileAnimating=r),C.animateAll(function(){k("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===Z&&!Z.animated||r===t&&!r.animated)&&(ji=null),!d.dragoverBubble&&!e.rootEl&&r!==document&&(Z.parentNode[xn]._isOutsideThisEl(e.target),!at&&si(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),T=!0}function D(){Rn=nr(Z),Do=nr(Z,d.draggable),ln({sortable:C,name:"change",toEl:t,newIndex:Rn,newDraggableIndex:Do,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Lr(r,d.draggable,t,!0),k("dragOver"),_e.eventCanceled)return T;if(Z.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||C._ignoreWhileAnimating===r)return N(!1);if(El=!1,m&&!d.disabled&&(g?v||(c=mt!==ct):zt===this||(this.lastPutMode=Uc.checkPull(this,m,Z,e))&&h.checkPut(this,m,Z,e))){if(w=this._getDirection(e,r)==="vertical",o=Rt(Z),k("dragOverValid"),_e.eventCanceled)return T;if(c)return mt=ct,I(),this._hideClone(),k("revert"),_e.eventCanceled||(ui?ct.insertBefore(Z,ui):ct.appendChild(Z)),N(!0);var L=Df(t,d.draggable);if(!L||iU(e,w,this)&&!L.animated){if(L===Z)return N(!1);if(L&&t===e.target&&(r=L),r&&(a=Rt(r)),Vc(ct,t,Z,o,r,a,e,!!r)!==!1)return I(),t.appendChild(Z),mt=t,D(),N(!0)}else if(L&&oU(e,w,this)){var K=Ea(t,0,d,!0);if(K===Z)return N(!1);if(r=K,a=Rt(r),Vc(ct,t,Z,o,r,a,e,!1)!==!1)return I(),t.insertBefore(Z,K),mt=t,D(),N(!0)}else if(r.parentNode===t){a=Rt(r);var q=0,M,ce=Z.parentNode!==t,ae=!Zx(Z.animated&&Z.toRect||o,r.animated&&r.toRect||a,w),X=w?"top":"left",ee=hv(r,"top","top")||hv(Z,"top","top"),ue=ee?ee.scrollTop:void 0;ji!==r&&(M=a[X],gs=!1,Bc=!ae&&d.invertSwap||ce),q=aU(e,r,a,w,ae?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,Bc,ji===r);var Be;if(q!==0){var Ct=nr(Z);do Ct-=q,Be=mt.children[Ct];while(Be&&(pe(Be,"display")==="none"||Be===we))}if(q===0||Be===r)return N(!1);ji=r,ms=q;var rn=r.nextElementSibling,qt=!1;qt=q===1;var Mt=Vc(ct,t,Z,o,r,a,e,qt);if(Mt!==!1)return(Mt===1||Mt===-1)&&(qt=Mt===1),xh=!0,setTimeout(rU,30),I(),qt&&!rn?t.appendChild(Z):r.parentNode.insertBefore(Z,qt?rn:r),ee&&oE(ee,0,ue-ee.scrollTop),mt=Z.parentNode,M!==void 0&&!Bc&&(cl=Math.abs(M-Rt(r)[X])),D(),N(!0)}if(t.contains(Z))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){xe(document,"mousemove",this._onTouchMove),xe(document,"touchmove",this._onTouchMove),xe(document,"pointermove",this._onTouchMove),xe(document,"dragover",si),xe(document,"mousemove",si),xe(document,"touchmove",si)},_offUpEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._onDrop),xe(e,"touchend",this._onDrop),xe(e,"pointerup",this._onDrop),xe(e,"touchcancel",this._onDrop),xe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Rn=nr(Z),Do=nr(Z,r.draggable),pn("drop",this,{evt:e}),mt=Z&&Z.parentNode,Rn=nr(Z),Do=nr(Z,r.draggable),_e.eventCanceled){this._nulling();return}oa=!1,Bc=!1,gs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Uh(this.cloneId),Uh(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ds&&pe(document.body,"user-select",""),pe(Z,"transform",""),e&&(os&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),we&&we.parentNode&&we.parentNode.removeChild(we),(ct===mt||zt&&zt.lastPutMode!=="clone")&&gt&&gt.parentNode&&gt.parentNode.removeChild(gt),Z&&(this.nativeDraggable&&xe(Z,"dragend",this),jd(Z),Z.style["will-change"]="",os&&!oa&&Nn(Z,zt?zt.options.ghostClass:this.options.ghostClass,!1),Nn(Z,this.options.chosenClass,!1),ln({sortable:this,name:"unchoose",toEl:mt,newIndex:null,newDraggableIndex:null,originalEvent:e}),ct!==mt?(Rn>=0&&(ln({rootEl:mt,name:"add",toEl:mt,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"remove",toEl:mt,originalEvent:e}),ln({rootEl:mt,name:"sort",toEl:mt,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"sort",toEl:mt,originalEvent:e})),zt&&zt.save()):Rn!==da&&Rn>=0&&(ln({sortable:this,name:"update",toEl:mt,originalEvent:e}),ln({sortable:this,name:"sort",toEl:mt,originalEvent:e})),_e.active&&((Rn==null||Rn===-1)&&(Rn=da,Do=fs),ln({sortable:this,name:"end",toEl:mt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),ct=Z=mt=we=ui=gt=sl=Lo=ai=hr=os=Rn=Do=da=fs=ji=ms=zt=Uc=_e.dragged=_e.ghost=_e.clone=_e.active=null,Tl.forEach(function(e){e.checked=!0}),Tl.length=zd=Gd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),nU(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,o=0,a=r.length,c=this.options;o<a;o++)t=r[o],Lr(t,c.draggable,this.el,!1)&&e.push(t.getAttribute(c.dataIdAttr)||cU(t));return e},sort:function(e,t){var r={},o=this.el;this.toArray().forEach(function(a,c){var d=o.children[c];Lr(d,this.options.draggable,o,!1)&&(r[a]=d)},this),t&&this.captureAnimationState(),e.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Lr(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var o=Bs.modifyOption(this,e,t);typeof o<"u"?r[e]=o:r[e]=t,e==="group"&&cE(r)},destroy:function(){pn("destroy",this);var e=this.el;e[xn]=null,xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart),xe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wl.splice(wl.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Lo){if(pn("hideClone",this),_e.eventCanceled)return;pe(gt,"display","none"),this.options.removeCloneOnHide&&gt.parentNode&&gt.parentNode.removeChild(gt),Lo=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Lo){if(pn("showClone",this),_e.eventCanceled)return;Z.parentNode==ct&&!this.options.group.revertClone?ct.insertBefore(gt,Z):ui?ct.insertBefore(gt,ui):ct.appendChild(gt),this.options.group.revertClone&&this.animate(Z,gt),pe(gt,"display",""),Lo=!1}}};function nU(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Vc(n,e,t,r,o,a,c,d){var h,m=n[xn],g=m.options.onMove,v;return window.CustomEvent&&!po&&!Us?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=e,h.from=n,h.dragged=t,h.draggedRect=r,h.related=o||e,h.relatedRect=a||Rt(e),h.willInsertAfter=d,h.originalEvent=c,n.dispatchEvent(h),g&&(v=g.call(m,h,c)),v}function jd(n){n.draggable=!1}function rU(){xh=!1}function oU(n,e,t){var r=Rt(Ea(t.el,0,t.options,!0)),o=10;return e?n.clientX<r.left-o||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-o||n.clientY<r.bottom&&n.clientX<r.left}function iU(n,e,t){var r=Rt(Df(t.el,t.options.draggable)),o=10;return e?n.clientX>r.right+o||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+o}function aU(n,e,t,r,o,a,c,d){var h=r?n.clientY:n.clientX,m=r?t.height:t.width,g=r?t.top:t.left,v=r?t.bottom:t.right,p=!1;if(!c){if(d&&cl<m*o){if(!gs&&(ms===1?h>g+m*a/2:h<v-m*a/2)&&(gs=!0),gs)p=!0;else if(ms===1?h<g+cl:h>v-cl)return-ms}else if(h>g+m*(1-o)/2&&h<v-m*(1-o)/2)return sU(e)}return p=p||c,p&&(h<g+m*a/2||h>v-m*a/2)?h>g+m/2?1:-1:0}function sU(n){return nr(Z)<nr(n)?1:-1}function cU(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function lU(n){Tl.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&Tl.push(r)}}function ll(n){return setTimeout(n,0)}function Uh(n){return clearTimeout(n)}Ql&&Ve(document,"touchmove",function(n){(_e.active||oa)&&n.cancelable&&n.preventDefault()});_e.utils={on:Ve,off:xe,css:pe,find:nE,is:function(e,t){return!!Lr(e,t,e,!1)},extend:zx,throttle:rE,closest:Lr,toggleClass:Nn,clone:iE,index:nr,nextTick:ll,cancelNextTick:Uh,detectDirection:sE,getChild:Ea};_e.get=function(n){return n[xn]};_e.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(_e.utils=Wr(Wr({},_e.utils),r.utils)),Bs.mount(r)})};_e.create=function(n,e){return new _e(n,e)};_e.version=Hx;var wt=[],is,Bh,Fh=!1,Yd,Jd,bl,as;function uU(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Ve(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ve(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ve(document,"touchmove",this._handleFallbackAutoScroll):Ve(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):(xe(document,"pointermove",this._handleFallbackAutoScroll),xe(document,"touchmove",this._handleFallbackAutoScroll),xe(document,"mousemove",this._handleFallbackAutoScroll)),_v(),ul(),Gx()},nulling:function(){bl=Bh=is=Fh=as=Yd=Jd=null,wt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var o=this,a=(t.touches?t.touches[0]:t).clientX,c=(t.touches?t.touches[0]:t).clientY,d=document.elementFromPoint(a,c);if(bl=t,r||this.options.forceAutoScrollFallback||Us||po||ds){Qd(t,this.options,d,r);var h=Fo(d,!0);Fh&&(!as||a!==Yd||c!==Jd)&&(as&&_v(),as=setInterval(function(){var m=Fo(document.elementFromPoint(a,c),!0);m!==h&&(h=m,ul()),Qd(t,o.options,m,r)},10),Yd=a,Jd=c)}else{if(!this.options.bubbleScroll||Fo(d,!0)===$r()){ul();return}Qd(t,this.options,Fo(d,!1),!1)}}},mo(n,{pluginName:"scroll",initializeByDefault:!0})}function ul(){wt.forEach(function(n){clearInterval(n.pid)}),wt=[]}function _v(){clearInterval(as)}var Qd=rE(function(n,e,t,r){if(e.scroll){var o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,c=e.scrollSensitivity,d=e.scrollSpeed,h=$r(),m=!1,g;Bh!==t&&(Bh=t,ul(),is=e.scroll,g=e.scrollFn,is===!0&&(is=Fo(t,!0)));var v=0,p=is;do{var w=p,C=Rt(w),T=C.top,k=C.bottom,I=C.left,N=C.right,D=C.width,L=C.height,K=void 0,q=void 0,M=w.scrollWidth,ce=w.scrollHeight,ae=pe(w),X=w.scrollLeft,ee=w.scrollTop;w===h?(K=D<M&&(ae.overflowX==="auto"||ae.overflowX==="scroll"||ae.overflowX==="visible"),q=L<ce&&(ae.overflowY==="auto"||ae.overflowY==="scroll"||ae.overflowY==="visible")):(K=D<M&&(ae.overflowX==="auto"||ae.overflowX==="scroll"),q=L<ce&&(ae.overflowY==="auto"||ae.overflowY==="scroll"));var ue=K&&(Math.abs(N-o)<=c&&X+D<M)-(Math.abs(I-o)<=c&&!!X),Be=q&&(Math.abs(k-a)<=c&&ee+L<ce)-(Math.abs(T-a)<=c&&!!ee);if(!wt[v])for(var Ct=0;Ct<=v;Ct++)wt[Ct]||(wt[Ct]={});(wt[v].vx!=ue||wt[v].vy!=Be||wt[v].el!==w)&&(wt[v].el=w,wt[v].vx=ue,wt[v].vy=Be,clearInterval(wt[v].pid),(ue!=0||Be!=0)&&(m=!0,wt[v].pid=setInterval((function(){r&&this.layer===0&&_e.active._onTouchMove(bl);var rn=wt[this.layer].vy?wt[this.layer].vy*d:0,qt=wt[this.layer].vx?wt[this.layer].vx*d:0;typeof g=="function"&&g.call(_e.dragged.parentNode[xn],qt,rn,n,bl,wt[this.layer].el)!=="continue"||oE(wt[this.layer].el,qt,rn)}).bind({layer:v}),24))),v++}while(e.bubbleScroll&&p!==h&&(p=Fo(p,!1)));Fh=m}},30),dE=function(e){var t=e.originalEvent,r=e.putSortable,o=e.dragEl,a=e.activeSortable,c=e.dispatchSortableEvent,d=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(t){var m=r||a;d();var g=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,v=document.elementFromPoint(g.clientX,g.clientY);h(),m&&!m.el.contains(v)&&(c("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Lf(){}Lf.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ea(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:dE};mo(Lf,{pluginName:"revertOnSpill"});function xf(){}xf.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:dE};mo(xf,{pluginName:"removeOnSpill"});_e.mount(new uU);_e.mount(xf,Lf);function dU(){return typeof window<"u"?window.console:global.console}const hU=dU();function fU(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const mU=/-(\w)/g,vv=fU(n=>n.replace(mU,(e,t)=>t?t.toUpperCase():""));function Xd(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function yv(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function gU(n,e){return Object.values(n).indexOf(e)}function pU(n,e,t,r){if(!n)return[];const o=Object.values(n),a=e.length-r;return[...e].map((d,h)=>h>=a?o.length:o.indexOf(d))}function hE(n,e){this.$nextTick(()=>this.$emit(n.toLowerCase(),e))}function _U(n){return e=>{this.realList!==null&&this["onDrag"+n](e),hE.call(this,n,e)}}function vU(n){return["transition-group","TransitionGroup"].includes(n)}function yU(n){if(!n||n.length!==1)return!1;const[{type:e}]=n;return e?vU(e.name):!1}function CU(n,e){return e?{...e.props,...e.attrs}:n}const Vh=["Start","Add","Remove","Update","End"],Hh=["Choose","Unchoose","Sort","Filter","Clone"],EU=["Move",...Vh,...Hh].map(n=>"on"+n);let Zd=null;const wU={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},TU=l.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Vh.map(n=>n.toLowerCase()),...Hh.map(n=>n.toLowerCase())],props:wU,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const n=this.$slots.default?this.$slots.default():null,e=CU(this.$attrs,this.componentData);return n?(this.transitionMode=yU(n),l.h(this.getTag(),e,n)):l.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&hU.error("list props are mutually exclusive! Please set one.")},mounted(){const n={};Vh.forEach(o=>{n["on"+o]=_U.call(this,o)}),Hh.forEach(o=>{n["on"+o]=hE.bind(this,o)});const e=Object.keys(this.$attrs).reduce((o,a)=>(o[vv(a)]=this.$attrs[a],o),{}),t=Object.assign({},e,n,{onMove:(o,a)=>this.onDragMove(o,a)});!("draggable"in t)&&(t.draggable=">*");const r=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new _e(r,t),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(n){this.updateOptions(n)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?l.resolveComponent(this.component):this.tag},updateOptions(n){for(var e in n){const t=vv(e);EU.indexOf(t)===-1&&this._sortable.option(t,n[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=pU(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(n){const e=gU(this.getChildrenNodes()||[],n);if(e===-1)return null;const t=this.realList[e];return{index:e,element:t}},emitChanges(n){this.$nextTick(()=>{this.$emit("change",n)})},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=r=>r.splice(e,0,r.splice(n,1)[0]);this.alterList(t)},getVmIndex(n){const e=this.visibleIndexes,t=e.length;return n>t-1?t:e[n]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(n){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[n].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(n){this.computeIndexes(),this.context=this.getUnderlyingVm(n.item),this.context&&(n.item._underlying_vm_=this.clone(this.context.element),Zd=n.item)},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;Xd(n.item);const t=this.getVmIndex(n.newIndex);this.spliceList(t,0,e),this.computeIndexes();const r={element:e,newIndex:t};this.emitChanges({added:r})},onDragRemove(n){if(yv(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){Xd(n.clone);return}if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const t={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:t})},onDragUpdate(n){Xd(n.item),yv(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndex(n.newIndex);this.updatePosition(e,t);const r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},updateProperty(n,e){n.hasOwnProperty(e)&&(n[e]+=this.headerOffset)},onDragMove(n,e){const t=this.move;if(!t||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(n),o=this.context,a=this.computeFutureIndex(r,n);Object.assign(o,{futureIndex:a});const c=Object.assign({},n,{relatedContext:r,draggedContext:o});return t(c,e)},onDragEnd(){this.computeIndexes(),Zd=null},getTrargetedComponent(n){return n.__draggable_component__},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getTrargetedComponent(n);if(!t)return{component:t};const r=t.realList,o={list:r,component:t};if(n!==e&&r&&t.getUnderlyingVm){const a=t.getUnderlyingVm(e);if(a)return Object.assign(a,o)}return o},computeFutureIndex(n,e){const t=[...e.to.children].filter(c=>c.style.display!=="none");if(t.length===0)return 0;const r=t.indexOf(e.related),o=n.component.getVmIndex(r);return t.indexOf(Zd)!==-1||!e.willInsertAfter?o:o+1}}}),bU={class:"d-flex flex-row align-center"},Uf=l.defineComponent({__name:"ColumnSettingsDialog",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=l.ref(""),r=l.computed(()=>{var a;return(a=e.value)==null?void 0:a.filter(c=>c.title.toLowerCase().includes(t.value.toLowerCase()))}),{t:o}=br();return(a,c)=>{const d=l.resolveComponent("v-list-item-content");return l.openBlock(),l.createBlock(Ls,{"dd-id":"col-settings",buttons:!1,title:l.unref(o)("dialogs.columnSettings.title")},{default:l.withCtx(()=>[l.createVNode(Jl,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=h=>t.value=h)},null,8,["modelValue"]),l.createVNode(Qt.VList,null,{default:l.withCtx(()=>[l.createVNode(l.unref(TU),{list:r.value,animation:200,"ghost-class":"ghost-card"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createBlock(Qt.VListItem,{key:h.key,class:"pa-0"},{default:l.withCtx(()=>[l.createElementVNode("div",bU,[l.createVNode(l.unref(cP),{class:"cursor-grab mb-2"}),l.createVNode(Qt.VListItemAction,null,{default:l.withCtx(()=>[l.createVNode(wO.VCheckbox,{modelValue:h.checked,"onUpdate:modelValue":m=>h.checked=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l.createVNode(d,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,{class:"mb-1"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title)+"  ",1)]),_:2},1024)]),_:2},1024),h.icon?(l.openBlock(),l.createBlock(pl.VIcon,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.icon),1)]),_:2},1024)):l.createCommentVNode("",!0)])]),_:2},1024))),128))]),_:1},8,["list"])]),_:1})]),_:1},8,["title"])}}}),IU=["src","height","width"],SU={key:0,class:"text-center text-h6"},AU={key:1,class:"text-center text-h5"},kU={key:0,class:"text-center"},NU={class:"d-flex justify-center align-center mt-4 ga-3"},Bf=l.defineComponent({__name:"TableCard",props:{item:{},columns:{},size:{},image:{},tags:{},route:{},callback:{type:Function}},setup(n){const e=n,t=()=>{var o;return((o=e.columns.find(a=>a.isHeader))==null?void 0:o.key)||""},r=()=>{var o;return((o=e.columns.find(a=>a.isSubtitle))==null?void 0:o.key)||""};return(o,a)=>(l.openBlock(),l.createBlock(xt.VCard,{onClick:o.callback,ripple:"",class:"d-flex flex-column pa-4pa-4 bg-containerBg"},{default:l.withCtx(()=>[l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{"no-gutters":"",align:"center",justify:"end"},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"actions",{item:o.item})]),_:3})]),_:3}),l.createVNode(xt.VCardTitle,null,{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{"no-gutters":"",align:"center",justify:"center"},{default:l.withCtx(()=>[o.image?(l.openBlock(),l.createElementBlock("img",{key:0,src:o.image,height:o.size,width:o.size,alt:""},null,8,IU)):l.createCommentVNode("",!0)]),_:1})]),_:1}),t()?(l.openBlock(),l.createElementBlock("div",SU,l.toDisplayString(o.item[t()]),1)):l.createCommentVNode("",!0),r()?(l.openBlock(),l.createElementBlock("div",AU,l.toDisplayString(o.item[r()]),1)):l.createCommentVNode("",!0),l.createVNode(pi.VDivider,{class:"ma-3"}),l.createVNode(xt.VCardText,{class:"d-flex flex-column align-center pa-4 pt-1"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.columns,c=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:c.key},[o.item[c.key]&&!c.isHeader&&!c.isSubtitle?(l.openBlock(),l.createElementBlock("div",kU,l.toDisplayString(c.title)+": "+l.toDisplayString(o.item[c.key]),1)):l.createCommentVNode("",!0)],64))),128)),l.createElementVNode("div",NU,[o.tags?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(o.tags,c=>(l.openBlock(),l.createBlock(TO.VChip,{class:"pa-3",key:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c),1)]),_:2},1024))),128)):l.createCommentVNode("",!0)])]),_:1})]),_:3},8,["onClick"]))}}),RU=l.defineComponent({__name:"TableCardsView",props:{data:{},columns:{},size:{},itemKey:{}},setup(n){return(e,t)=>(l.openBlock(),l.createBlock(Qe.VRow,{class:"mt-5 border tb-cards-h",wrap:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,r=>(l.openBlock(),l.createBlock(Qe.VCol,{cols:"12",sm:"6",md:"4",lg:"3",class:"pa-2",key:r[e.itemKey]},{default:l.withCtx(()=>[l.createVNode(Bf,{item:r,columns:e.columns,size:e.size},{actions:l.withCtx(({item:o})=>[l.renderSlot(e.$slots,"actions",{item:o},void 0,!0)]),_:2},1032,["item","columns","size"])]),_:2},1024))),128))]),_:3}))}}),fE=Sa(RU,[["__scopeId","data-v-e1a4ccbc"]]),OU={class:"j-field px-4 py-3 rounded-sm bg-containerBg"},mE=l.defineComponent({__name:"ReadOnlyField",props:{value:{}},setup(n){return(e,t)=>(l.openBlock(),l.createElementBlock("div",OU,l.toDisplayString(e.value),1))}}),PU={key:0,class:"mb-2 ms-1"},gE=l.defineComponent({__name:"JTextField",props:{modelValue:{},name:{},label:{},type:{default:"text"},readonly:{type:Boolean},density:{},rules:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled");return(a,c)=>(l.openBlock(),l.createElementBlock("div",null,[a.name?(l.openBlock(),l.createElementBlock("p",PU,l.toDisplayString(a.name),1)):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.label),1)]),_:1})):l.createCommentVNode("",!0),a.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(Vo.VTextField),{key:2,variant:o.value,color:"secondary","bg-color":"containerBg",rounded:"sm","hide-details":"auto",type:a.type,density:a.density,rules:a.rules,value:a.modelValue,"onUpdate:modelValue":c[0]||(c[0]=d=>r("update:modelValue",d)),class:"j-field"},null,8,["variant","type","density","rules","value"])),a.readonly?(l.openBlock(),l.createBlock(mE,{key:3,value:a.modelValue},null,8,["value"])):l.createCommentVNode("",!0)]))}});function pE(n,e){return function(){return n.apply(e,arguments)}}const{toString:MU}=Object.prototype,{getPrototypeOf:Ff}=Object,Xl=(n=>e=>{const t=MU.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=n=>(n=n.toLowerCase(),e=>Xl(e)===n),Zl=n=>e=>typeof e===n,{isArray:ka}=Array,Rs=Zl("undefined");function DU(n){return n!==null&&!Rs(n)&&n.constructor!==null&&!Rs(n.constructor)&&Fn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const _E=Ir("ArrayBuffer");function LU(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&_E(n.buffer),e}const xU=Zl("string"),Fn=Zl("function"),vE=Zl("number"),eu=n=>n!==null&&typeof n=="object",UU=n=>n===!0||n===!1,dl=n=>{if(Xl(n)!=="object")return!1;const e=Ff(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},BU=Ir("Date"),FU=Ir("File"),VU=Ir("Blob"),HU=Ir("FileList"),$U=n=>eu(n)&&Fn(n.pipe),KU=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Fn(n.append)&&((e=Xl(n))==="formdata"||e==="object"&&Fn(n.toString)&&n.toString()==="[object FormData]"))},WU=Ir("URLSearchParams"),[zU,GU,qU,jU]=["ReadableStream","Request","Response","Headers"].map(Ir),YU=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),ka(n))for(r=0,o=n.length;r<o;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),c=a.length;let d;for(r=0;r<c;r++)d=a[r],e.call(null,n[d],d,n)}}function yE(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,o;for(;r-- >0;)if(o=t[r],e===o.toLowerCase())return o;return null}const mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,CE=n=>!Rs(n)&&n!==mi;function $h(){const{caseless:n}=CE(this)&&this||{},e={},t=(r,o)=>{const a=n&&yE(e,o)||o;dl(e[a])&&dl(r)?e[a]=$h(e[a],r):dl(r)?e[a]=$h({},r):ka(r)?e[a]=r.slice():e[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fs(arguments[r],t);return e}const JU=(n,e,t,{allOwnKeys:r}={})=>(Fs(e,(o,a)=>{t&&Fn(o)?n[a]=pE(o,t):n[a]=o},{allOwnKeys:r}),n),QU=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),XU=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},ZU=(n,e,t,r)=>{let o,a,c;const d={};if(e=e||{},n==null)return e;do{for(o=Object.getOwnPropertyNames(n),a=o.length;a-- >0;)c=o[a],(!r||r(c,n,e))&&!d[c]&&(e[c]=n[c],d[c]=!0);n=t!==!1&&Ff(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},eB=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},tB=n=>{if(!n)return null;if(ka(n))return n;let e=n.length;if(!vE(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},nB=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Ff(Uint8Array)),rB=(n,e)=>{const r=(n&&n[Symbol.iterator]).call(n);let o;for(;(o=r.next())&&!o.done;){const a=o.value;e.call(n,a[0],a[1])}},oB=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},iB=Ir("HTMLFormElement"),aB=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),Cv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),sB=Ir("RegExp"),EE=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Fs(t,(o,a)=>{let c;(c=e(o,a,n))!==!1&&(r[a]=c||o)}),Object.defineProperties(n,r)},cB=n=>{EE(n,(e,t)=>{if(Fn(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Fn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},lB=(n,e)=>{const t={},r=o=>{o.forEach(a=>{t[a]=!0})};return ka(n)?r(n):r(String(n).split(e)),t},uB=()=>{},dB=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,eh="abcdefghijklmnopqrstuvwxyz",Ev="0123456789",wE={DIGIT:Ev,ALPHA:eh,ALPHA_DIGIT:eh+eh.toUpperCase()+Ev},hB=(n=16,e=wE.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function fB(n){return!!(n&&Fn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const mB=n=>{const e=new Array(10),t=(r,o)=>{if(eu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const a=ka(r)?[]:{};return Fs(r,(c,d)=>{const h=t(c,o+1);!Rs(h)&&(a[d]=h)}),e[o]=void 0,a}}return r};return t(n,0)},gB=Ir("AsyncFunction"),pB=n=>n&&(eu(n)||Fn(n))&&Fn(n.then)&&Fn(n.catch),TE=((n,e)=>n?setImmediate:e?((t,r)=>(mi.addEventListener("message",({source:o,data:a})=>{o===mi&&a===t&&r.length&&r.shift()()},!1),o=>{r.push(o),mi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Fn(mi.postMessage)),_B=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||TE,B={isArray:ka,isArrayBuffer:_E,isBuffer:DU,isFormData:KU,isArrayBufferView:LU,isString:xU,isNumber:vE,isBoolean:UU,isObject:eu,isPlainObject:dl,isReadableStream:zU,isRequest:GU,isResponse:qU,isHeaders:jU,isUndefined:Rs,isDate:BU,isFile:FU,isBlob:VU,isRegExp:sB,isFunction:Fn,isStream:$U,isURLSearchParams:WU,isTypedArray:nB,isFileList:HU,forEach:Fs,merge:$h,extend:JU,trim:YU,stripBOM:QU,inherits:XU,toFlatObject:ZU,kindOf:Xl,kindOfTest:Ir,endsWith:eB,toArray:tB,forEachEntry:rB,matchAll:oB,isHTMLForm:iB,hasOwnProperty:Cv,hasOwnProp:Cv,reduceDescriptors:EE,freezeMethods:cB,toObjectSet:lB,toCamelCase:aB,noop:uB,toFiniteNumber:dB,findKey:yE,global:mi,isContextDefined:CE,ALPHABET:wE,generateString:hB,isSpecCompliantForm:fB,toJSONObject:mB,isAsyncFn:gB,isThenable:pB,setImmediate:TE,asap:_B};function Te(n,e,t,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}B.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const bE=Te.prototype,IE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{IE[n]={value:n}});Object.defineProperties(Te,IE);Object.defineProperty(bE,"isAxiosError",{value:!0});Te.from=(n,e,t,r,o,a)=>{const c=Object.create(bE);return B.toFlatObject(n,c,function(h){return h!==Error.prototype},d=>d!=="isAxiosError"),Te.call(c,n.message,e,t,r,o),c.cause=n,c.name=n.name,a&&Object.assign(c,a),c};const vB=null;function Kh(n){return B.isPlainObject(n)||B.isArray(n)}function SE(n){return B.endsWith(n,"[]")?n.slice(0,-2):n}function wv(n,e,t){return n?n.concat(e).map(function(o,a){return o=SE(o),!t&&a?"["+o+"]":o}).join(t?".":""):e}function yB(n){return B.isArray(n)&&!n.some(Kh)}const CB=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function tu(n,e,t){if(!B.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=B.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,k){return!B.isUndefined(k[T])});const r=t.metaTokens,o=t.visitor||g,a=t.dots,c=t.indexes,h=(t.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function m(C){if(C===null)return"";if(B.isDate(C))return C.toISOString();if(!h&&B.isBlob(C))throw new Te("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(C)||B.isTypedArray(C)?h&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function g(C,T,k){let I=C;if(C&&!k&&typeof C=="object"){if(B.endsWith(T,"{}"))T=r?T:T.slice(0,-2),C=JSON.stringify(C);else if(B.isArray(C)&&yB(C)||(B.isFileList(C)||B.endsWith(T,"[]"))&&(I=B.toArray(C)))return T=SE(T),I.forEach(function(D,L){!(B.isUndefined(D)||D===null)&&e.append(c===!0?wv([T],L,a):c===null?T:T+"[]",m(D))}),!1}return Kh(C)?!0:(e.append(wv(k,T,a),m(C)),!1)}const v=[],p=Object.assign(CB,{defaultVisitor:g,convertValue:m,isVisitable:Kh});function w(C,T){if(!B.isUndefined(C)){if(v.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));v.push(C),B.forEach(C,function(I,N){(!(B.isUndefined(I)||I===null)&&o.call(e,I,B.isString(N)?N.trim():N,T,p))===!0&&w(I,T?T.concat(N):[N])}),v.pop()}}if(!B.isObject(n))throw new TypeError("data must be an object");return w(n),e}function Tv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Vf(n,e){this._pairs=[],n&&tu(n,this,e)}const AE=Vf.prototype;AE.append=function(e,t){this._pairs.push([e,t])};AE.toString=function(e){const t=e?function(r){return e.call(this,r,Tv)}:Tv;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function EB(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kE(n,e,t){if(!e)return n;const r=t&&t.encode||EB;B.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let a;if(o?a=o(e,t):a=B.isURLSearchParams(e)?e.toString():new Vf(e,t).toString(r),a){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class bv{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(r){r!==null&&e(r)})}}const NE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wB=typeof URLSearchParams<"u"?URLSearchParams:Vf,TB=typeof FormData<"u"?FormData:null,bB=typeof Blob<"u"?Blob:null,IB={isBrowser:!0,classes:{URLSearchParams:wB,FormData:TB,Blob:bB},protocols:["http","https","file","blob","url","data"]},Hf=typeof window<"u"&&typeof document<"u",Wh=typeof navigator=="object"&&navigator||void 0,SB=Hf&&(!Wh||["ReactNative","NativeScript","NS"].indexOf(Wh.product)<0),AB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kB=Hf&&window.location.href||"http://localhost",NB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hf,hasStandardBrowserEnv:SB,hasStandardBrowserWebWorkerEnv:AB,navigator:Wh,origin:kB},Symbol.toStringTag,{value:"Module"})),nn={...NB,...IB};function RB(n,e){return tu(n,new nn.classes.URLSearchParams,Object.assign({visitor:function(t,r,o,a){return nn.isNode&&B.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function OB(n){return B.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function PB(n){const e={},t=Object.keys(n);let r;const o=t.length;let a;for(r=0;r<o;r++)a=t[r],e[a]=n[a];return e}function RE(n){function e(t,r,o,a){let c=t[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=a>=t.length;return c=!c&&B.isArray(o)?o.length:c,h?(B.hasOwnProp(o,c)?o[c]=[o[c],r]:o[c]=r,!d):((!o[c]||!B.isObject(o[c]))&&(o[c]=[]),e(t,r,o[c],a)&&B.isArray(o[c])&&(o[c]=PB(o[c])),!d)}if(B.isFormData(n)&&B.isFunction(n.entries)){const t={};return B.forEachEntry(n,(r,o)=>{e(OB(r),o,t,0)}),t}return null}function MB(n,e,t){if(B.isString(n))try{return(e||JSON.parse)(n),B.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Vs={transitional:NE,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,a=B.isObject(e);if(a&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return o?JSON.stringify(RE(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RB(e,this.formSerializer).toString();if((d=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return tu(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),MB(e)):e}],transformResponse:[function(e){const t=this.transitional||Vs.transitional,r=t&&t.forcedJSONParsing,o=this.responseType==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(r&&!this.responseType||o)){const c=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(d){if(c)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],n=>{Vs.headers[n]={}});const DB=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LB=n=>{const e={};let t,r,o;return n&&n.split(`
41
+ */function lv(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function Wr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lv(Object(t),!0).forEach(function(r){Ux(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):lv(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function al(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(e){return typeof e}:al=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},al(n)}function Ux(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function mo(){return mo=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},mo.apply(this,arguments)}function Bx(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,a;for(a=0;a<r.length;a++)o=r[a],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Fx(n,e){if(n==null)return{};var t=Bx(n,e),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(o=0;o<a.length;o++)r=a[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var Vx="1.14.0";function ho(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var po=ho(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Us=ho(/Edge/i),uv=ho(/firefox/i),ds=ho(/safari/i)&&!ho(/chrome/i)&&!ho(/android/i),eE=ho(/iP(ad|od|hone)/i),Hx=ho(/chrome/i)&&ho(/android/i),tE={capture:!1,passive:!1};function Ve(n,e,t){n.addEventListener(e,t,!po&&tE)}function xe(n,e,t){n.removeEventListener(e,t,!po&&tE)}function Cl(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function $x(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Lr(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&Cl(n,e):Cl(n,e))||r&&n===t)return n;if(n===t)break}while(n=$x(n))}return null}var dv=/\s+/g;function Nn(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(dv," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(dv," ")}}function pe(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function ga(n,e){var t="";if(typeof n=="string")t=n;else do{var r=pe(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function nE(n,e,t){if(n){var r=n.getElementsByTagName(e),o=0,a=r.length;if(t)for(;o<a;o++)t(r[o],o);return r}return[]}function $r(){var n=document.scrollingElement;return n||document.documentElement}function Rt(n,e,t,r,o){if(!(!n.getBoundingClientRect&&n!==window)){var a,c,d,h,m,g,v;if(n!==window&&n.parentNode&&n!==$r()?(a=n.getBoundingClientRect(),c=a.top,d=a.left,h=a.bottom,m=a.right,g=a.height,v=a.width):(c=0,d=0,h=window.innerHeight,m=window.innerWidth,g=window.innerHeight,v=window.innerWidth),(e||t)&&n!==window&&(o=o||n.parentNode,!po))do if(o&&o.getBoundingClientRect&&(pe(o,"transform")!=="none"||t&&pe(o,"position")!=="static")){var p=o.getBoundingClientRect();c-=p.top+parseInt(pe(o,"border-top-width")),d-=p.left+parseInt(pe(o,"border-left-width")),h=c+a.height,m=d+a.width;break}while(o=o.parentNode);if(r&&n!==window){var w=ga(o||n),C=w&&w.a,T=w&&w.d;w&&(c/=T,d/=C,v/=C,g/=T,h=c+g,m=d+v)}return{top:c,left:d,bottom:h,right:m,width:v,height:g}}}function hv(n,e,t){for(var r=Fo(n,!0),o=Rt(n)[e];r;){var a=Rt(r)[t],c=void 0;if(c=o>=a,!c)return r;if(r===$r())break;r=Fo(r,!1)}return!1}function Ea(n,e,t,r){for(var o=0,a=0,c=n.children;a<c.length;){if(c[a].style.display!=="none"&&c[a]!==_e.ghost&&(r||c[a]!==_e.dragged)&&Lr(c[a],t.draggable,n,!1)){if(o===e)return c[a];o++}a++}return null}function Df(n,e){for(var t=n.lastElementChild;t&&(t===_e.ghost||pe(t,"display")==="none"||e&&!Cl(t,e));)t=t.previousElementSibling;return t||null}function nr(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==_e.clone&&(!e||Cl(n,e))&&t++;return t}function fv(n){var e=0,t=0,r=$r();if(n)do{var o=ga(n),a=o.a,c=o.d;e+=n.scrollLeft*a,t+=n.scrollTop*c}while(n!==r&&(n=n.parentNode));return[e,t]}function Kx(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Fo(n,e){if(!n||!n.getBoundingClientRect)return $r();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=pe(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return $r();if(r||e)return t;r=!0}}while(t=t.parentNode);return $r()}function Wx(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Kd(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var hs;function rE(n,e){return function(){if(!hs){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),hs=setTimeout(function(){hs=void 0},e)}}}function zx(){clearTimeout(hs),hs=void 0}function oE(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function iE(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var xn="Sortable"+new Date().getTime();function Gx(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(pe(o,"display")==="none"||o===_e.ghost)){n.push({target:o,rect:Rt(o)});var a=Wr({},n[n.length-1].rect);if(o.thisAnimationDuration){var c=ga(o,!0);c&&(a.top-=c.f,a.left-=c.e)}o.fromRect=a}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(Kx(n,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var a=!1,c=0;n.forEach(function(d){var h=0,m=d.target,g=m.fromRect,v=Rt(m),p=m.prevFromRect,w=m.prevToRect,C=d.rect,T=ga(m,!0);T&&(v.top-=T.f,v.left-=T.e),m.toRect=v,m.thisAnimationDuration&&Kd(p,v)&&!Kd(g,v)&&(C.top-v.top)/(C.left-v.left)===(g.top-v.top)/(g.left-v.left)&&(h=jx(C,p,w,o.options)),Kd(v,g)||(m.prevFromRect=g,m.prevToRect=v,h||(h=o.options.animation),o.animate(m,C,v,h)),h&&(a=!0,c=Math.max(c,h),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},h),m.thisAnimationDuration=h)}),clearTimeout(e),a?e=setTimeout(function(){typeof r=="function"&&r()},c):typeof r=="function"&&r(),n=[]},animate:function(r,o,a,c){if(c){pe(r,"transition",""),pe(r,"transform","");var d=ga(this.el),h=d&&d.a,m=d&&d.d,g=(o.left-a.left)/(h||1),v=(o.top-a.top)/(m||1);r.animatingX=!!g,r.animatingY=!!v,pe(r,"transform","translate3d("+g+"px,"+v+"px,0)"),this.forRepaintDummy=qx(r),pe(r,"transition","transform "+c+"ms"+(this.options.easing?" "+this.options.easing:"")),pe(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){pe(r,"transition",""),pe(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},c)}}}}function qx(n){return n.offsetWidth}function jx(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var qi=[],Wd={initializeByDefault:!0},Bs={mount:function(e){for(var t in Wd)Wd.hasOwnProperty(t)&&!(t in e)&&(e[t]=Wd[t]);qi.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),qi.push(e)},pluginEvent:function(e,t,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=e+"Global";qi.forEach(function(c){t[c.pluginName]&&(t[c.pluginName][a]&&t[c.pluginName][a](Wr({sortable:t},r)),t.options[c.pluginName]&&t[c.pluginName][e]&&t[c.pluginName][e](Wr({sortable:t},r)))})},initializePlugins:function(e,t,r,o){qi.forEach(function(d){var h=d.pluginName;if(!(!e.options[h]&&!d.initializeByDefault)){var m=new d(e,t,e.options);m.sortable=e,m.options=e.options,e[h]=m,mo(r,m.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var c=this.modifyOption(e,a,e.options[a]);typeof c<"u"&&(e.options[a]=c)}},getEventProperties:function(e,t){var r={};return qi.forEach(function(o){typeof o.eventProperties=="function"&&mo(r,o.eventProperties.call(t[o.pluginName],e))}),r},modifyOption:function(e,t,r){var o;return qi.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[t]=="function"&&(o=a.optionListeners[t].call(e[a.pluginName],r))}),o}};function Yx(n){var e=n.sortable,t=n.rootEl,r=n.name,o=n.targetEl,a=n.cloneEl,c=n.toEl,d=n.fromEl,h=n.oldIndex,m=n.newIndex,g=n.oldDraggableIndex,v=n.newDraggableIndex,p=n.originalEvent,w=n.putSortable,C=n.extraEventProperties;if(e=e||t&&t[xn],!!e){var T,k=e.options,I="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!po&&!Us?T=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(T=document.createEvent("Event"),T.initEvent(r,!0,!0)),T.to=c||t,T.from=d||t,T.item=o||t,T.clone=a,T.oldIndex=h,T.newIndex=m,T.oldDraggableIndex=g,T.newDraggableIndex=v,T.originalEvent=p,T.pullMode=w?w.lastPutMode:void 0;var N=Wr(Wr({},C),Bs.getEventProperties(r,e));for(var D in N)T[D]=N[D];t&&t.dispatchEvent(T),k[I]&&k[I].call(e,T)}}var Jx=["evt"],pn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=Fx(r,Jx);Bs.pluginEvent.bind(_e)(e,t,Wr({dragEl:Z,parentEl:mt,ghostEl:we,rootEl:ct,nextEl:ui,lastDownEl:sl,cloneEl:gt,cloneHidden:Lo,dragStarted:os,putSortable:zt,activeSortable:_e.active,originalEvent:o,oldIndex:da,oldDraggableIndex:fs,newIndex:Rn,newDraggableIndex:Do,hideGhostForTarget:lE,unhideGhostForTarget:uE,cloneNowHidden:function(){Lo=!0},cloneNowShown:function(){Lo=!1},dispatchSortableEvent:function(d){ln({sortable:t,name:d,originalEvent:o})}},a))};function ln(n){Yx(Wr({putSortable:zt,cloneEl:gt,targetEl:Z,rootEl:ct,oldIndex:da,oldDraggableIndex:fs,newIndex:Rn,newDraggableIndex:Do},n))}var Z,mt,we,ct,ui,sl,gt,Lo,da,Rn,fs,Do,Uc,zt,oa=!1,El=!1,wl=[],ai,hr,zd,Gd,mv,gv,os,ji,ms,gs=!1,Bc=!1,cl,Jt,qd=[],xh=!1,Tl=[],Ql=typeof document<"u",Fc=eE,pv=Us||po?"cssFloat":"float",Qx=Ql&&!Hx&&!eE&&"draggable"in document.createElement("div"),aE=function(){if(Ql){if(po)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),sE=function(e,t){var r=pe(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Ea(e,0,t),c=Ea(e,1,t),d=a&&pe(a),h=c&&pe(c),m=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Rt(a).width,g=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Rt(c).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&d.float&&d.float!=="none"){var v=d.float==="left"?"left":"right";return c&&(h.clear==="both"||h.clear===v)?"vertical":"horizontal"}return a&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=o&&r[pv]==="none"||c&&r[pv]==="none"&&m+g>o)?"vertical":"horizontal"},Xx=function(e,t,r){var o=r?e.left:e.top,a=r?e.right:e.bottom,c=r?e.width:e.height,d=r?t.left:t.top,h=r?t.right:t.bottom,m=r?t.width:t.height;return o===d||a===h||o+c/2===d+m/2},Zx=function(e,t){var r;return wl.some(function(o){var a=o[xn].options.emptyInsertThreshold;if(!(!a||Df(o))){var c=Rt(o),d=e>=c.left-a&&e<=c.right+a,h=t>=c.top-a&&t<=c.bottom+a;if(d&&h)return r=o}}),r},cE=function(e){function t(a,c){return function(d,h,m,g){var v=d.options.group.name&&h.options.group.name&&d.options.group.name===h.options.group.name;if(a==null&&(c||v))return!0;if(a==null||a===!1)return!1;if(c&&a==="clone")return a;if(typeof a=="function")return t(a(d,h,m,g),c)(d,h,m,g);var p=(c?d:h).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var r={},o=e.group;(!o||al(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=t(o.pull,!0),r.checkPut=t(o.put),r.revertClone=o.revertClone,e.group=r},lE=function(){!aE&&we&&pe(we,"display","none")},uE=function(){!aE&&we&&pe(we,"display","")};Ql&&document.addEventListener("click",function(n){if(El)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),El=!1,!1},!0);var si=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=Zx(e.clientX,e.clientY);if(t){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[xn]._onDragOver(r)}}},eU=function(e){Z&&Z.parentNode[xn]._isOutsideThisEl(e.target)};function _e(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=mo({},e),n[xn]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return sE(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,d){c.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:_e.supportPointer!==!1&&"PointerEvent"in window&&!ds,emptyInsertThreshold:5};Bs.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);cE(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:Qx,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ve(n,"pointerdown",this._onTapStart):(Ve(n,"mousedown",this._onTapStart),Ve(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ve(n,"dragover",this),Ve(n,"dragenter",this)),wl.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),mo(this,Gx())}_e.prototype={constructor:_e,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ji=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,o=this.options,a=o.preventOnFilter,c=e.type,d=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,h=(d||e).target,m=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,g=o.filter;if(cU(r),!Z&&!(/mousedown|pointerdown/.test(c)&&e.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&ds&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Lr(h,o.draggable,r,!1),!(h&&h.animated)&&sl!==h)){if(da=nr(h),fs=nr(h,o.draggable),typeof g=="function"){if(g.call(this,e,h,this)){ln({sortable:t,rootEl:m,name:"filter",targetEl:h,toEl:r,fromEl:r}),pn("filter",t,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(g&&(g=g.split(",").some(function(v){if(v=Lr(m,v.trim(),r,!1),v)return ln({sortable:t,rootEl:v,name:"filter",targetEl:h,fromEl:r,toEl:r}),pn("filter",t,{evt:e}),!0}),g)){a&&e.cancelable&&e.preventDefault();return}o.handle&&!Lr(m,o.handle,r,!1)||this._prepareDragStart(e,d,h)}}},_prepareDragStart:function(e,t,r){var o=this,a=o.el,c=o.options,d=a.ownerDocument,h;if(r&&!Z&&r.parentNode===a){var m=Rt(r);if(ct=a,Z=r,mt=Z.parentNode,ui=Z.nextSibling,sl=r,Uc=c.group,_e.dragged=Z,ai={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},mv=ai.clientX-m.left,gv=ai.clientY-m.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",h=function(){if(pn("delayEnded",o,{evt:e}),_e.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!uv&&o.nativeDraggable&&(Z.draggable=!0),o._triggerDragStart(e,t),ln({sortable:o,name:"choose",originalEvent:e}),Nn(Z,c.chosenClass,!0)},c.ignore.split(",").forEach(function(g){nE(Z,g.trim(),jd)}),Ve(d,"dragover",si),Ve(d,"mousemove",si),Ve(d,"touchmove",si),Ve(d,"mouseup",o._onDrop),Ve(d,"touchend",o._onDrop),Ve(d,"touchcancel",o._onDrop),uv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),pn("delayStart",this,{evt:e}),c.delay&&(!c.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Us||po))){if(_e.eventCanceled){this._onDrop();return}Ve(d,"mouseup",o._disableDelayedDrag),Ve(d,"touchend",o._disableDelayedDrag),Ve(d,"touchcancel",o._disableDelayedDrag),Ve(d,"mousemove",o._delayedDragTouchMoveHandler),Ve(d,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&Ve(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(h,c.delay)}else h()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&jd(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._disableDelayedDrag),xe(e,"touchend",this._disableDelayedDrag),xe(e,"touchcancel",this._disableDelayedDrag),xe(e,"mousemove",this._delayedDragTouchMoveHandler),xe(e,"touchmove",this._delayedDragTouchMoveHandler),xe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ve(document,"pointermove",this._onTouchMove):t?Ve(document,"touchmove",this._onTouchMove):Ve(document,"mousemove",this._onTouchMove):(Ve(Z,"dragend",this),Ve(ct,"dragstart",this._onDragStart));try{document.selection?ll(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(oa=!1,ct&&Z){pn("dragStarted",this,{evt:t}),this.nativeDraggable&&Ve(document,"dragover",eU);var r=this.options;!e&&Nn(Z,r.dragClass,!1),Nn(Z,r.ghostClass,!0),_e.active=this,e&&this._appendGhost(),ln({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(hr){this._lastX=hr.clientX,this._lastY=hr.clientY,lE();for(var e=document.elementFromPoint(hr.clientX,hr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(hr.clientX,hr.clientY),e!==t);)t=e;if(Z.parentNode[xn]._isOutsideThisEl(e),t)do{if(t[xn]){var r=void 0;if(r=t[xn]._onDragOver({clientX:hr.clientX,clientY:hr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);uE()}},_onTouchMove:function(e){if(ai){var t=this.options,r=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,c=we&&ga(we,!0),d=we&&c&&c.a,h=we&&c&&c.d,m=Fc&&Jt&&fv(Jt),g=(a.clientX-ai.clientX+o.x)/(d||1)+(m?m[0]-qd[0]:0)/(d||1),v=(a.clientY-ai.clientY+o.y)/(h||1)+(m?m[1]-qd[1]:0)/(h||1);if(!_e.active&&!oa){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(we){c?(c.e+=g-(zd||0),c.f+=v-(Gd||0)):c={a:1,b:0,c:0,d:1,e:g,f:v};var p="matrix(".concat(c.a,",").concat(c.b,",").concat(c.c,",").concat(c.d,",").concat(c.e,",").concat(c.f,")");pe(we,"webkitTransform",p),pe(we,"mozTransform",p),pe(we,"msTransform",p),pe(we,"transform",p),zd=g,Gd=v,hr=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:ct,t=Rt(Z,!0,Fc,!0,e),r=this.options;if(Fc){for(Jt=e;pe(Jt,"position")==="static"&&pe(Jt,"transform")==="none"&&Jt!==document;)Jt=Jt.parentNode;Jt!==document.body&&Jt!==document.documentElement?(Jt===document&&(Jt=$r()),t.top+=Jt.scrollTop,t.left+=Jt.scrollLeft):Jt=$r(),qd=fv(Jt)}we=Z.cloneNode(!0),Nn(we,r.ghostClass,!1),Nn(we,r.fallbackClass,!0),Nn(we,r.dragClass,!0),pe(we,"transition",""),pe(we,"transform",""),pe(we,"box-sizing","border-box"),pe(we,"margin",0),pe(we,"top",t.top),pe(we,"left",t.left),pe(we,"width",t.width),pe(we,"height",t.height),pe(we,"opacity","0.8"),pe(we,"position",Fc?"absolute":"fixed"),pe(we,"zIndex","100000"),pe(we,"pointerEvents","none"),_e.ghost=we,e.appendChild(we),pe(we,"transform-origin",mv/parseInt(we.style.width)*100+"% "+gv/parseInt(we.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,o=e.dataTransfer,a=r.options;if(pn("dragStart",this,{evt:e}),_e.eventCanceled){this._onDrop();return}pn("setupClone",this),_e.eventCanceled||(gt=iE(Z),gt.draggable=!1,gt.style["will-change"]="",this._hideClone(),Nn(gt,this.options.chosenClass,!1),_e.clone=gt),r.cloneId=ll(function(){pn("clone",r),!_e.eventCanceled&&(r.options.removeCloneOnHide||ct.insertBefore(gt,Z),r._hideClone(),ln({sortable:r,name:"clone"}))}),!t&&Nn(Z,a.dragClass,!0),t?(El=!0,r._loopId=setInterval(r._emulateDragOver,50)):(xe(document,"mouseup",r._onDrop),xe(document,"touchend",r._onDrop),xe(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,Z)),Ve(document,"drop",r),pe(Z,"transform","translateZ(0)")),oa=!0,r._dragStartId=ll(r._dragStarted.bind(r,t,e)),Ve(document,"selectstart",r),os=!0,ds&&pe(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,o,a,c,d=this.options,h=d.group,m=_e.active,g=Uc===h,v=d.sort,p=zt||m,w,C=this,T=!1;if(xh)return;function k(at,Et){pn(at,C,Wr({evt:e,isOwner:g,axis:w?"vertical":"horizontal",revert:c,dragRect:o,targetRect:a,canSort:v,fromSortable:p,target:r,completed:N,onMove:function(St,jo){return Vc(ct,t,Z,o,St,Rt(St),e,jo)},changed:D},Et))}function I(){k("dragOverAnimationCapture"),C.captureAnimationState(),C!==p&&p.captureAnimationState()}function N(at){return k("dragOverCompleted",{insertion:at}),at&&(g?m._hideClone():m._showClone(C),C!==p&&(Nn(Z,zt?zt.options.ghostClass:m.options.ghostClass,!1),Nn(Z,d.ghostClass,!0)),zt!==C&&C!==_e.active?zt=C:C===_e.active&&zt&&(zt=null),p===C&&(C._ignoreWhileAnimating=r),C.animateAll(function(){k("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===Z&&!Z.animated||r===t&&!r.animated)&&(ji=null),!d.dragoverBubble&&!e.rootEl&&r!==document&&(Z.parentNode[xn]._isOutsideThisEl(e.target),!at&&si(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),T=!0}function D(){Rn=nr(Z),Do=nr(Z,d.draggable),ln({sortable:C,name:"change",toEl:t,newIndex:Rn,newDraggableIndex:Do,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Lr(r,d.draggable,t,!0),k("dragOver"),_e.eventCanceled)return T;if(Z.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||C._ignoreWhileAnimating===r)return N(!1);if(El=!1,m&&!d.disabled&&(g?v||(c=mt!==ct):zt===this||(this.lastPutMode=Uc.checkPull(this,m,Z,e))&&h.checkPut(this,m,Z,e))){if(w=this._getDirection(e,r)==="vertical",o=Rt(Z),k("dragOverValid"),_e.eventCanceled)return T;if(c)return mt=ct,I(),this._hideClone(),k("revert"),_e.eventCanceled||(ui?ct.insertBefore(Z,ui):ct.appendChild(Z)),N(!0);var L=Df(t,d.draggable);if(!L||oU(e,w,this)&&!L.animated){if(L===Z)return N(!1);if(L&&t===e.target&&(r=L),r&&(a=Rt(r)),Vc(ct,t,Z,o,r,a,e,!!r)!==!1)return I(),t.appendChild(Z),mt=t,D(),N(!0)}else if(L&&rU(e,w,this)){var K=Ea(t,0,d,!0);if(K===Z)return N(!1);if(r=K,a=Rt(r),Vc(ct,t,Z,o,r,a,e,!1)!==!1)return I(),t.insertBefore(Z,K),mt=t,D(),N(!0)}else if(r.parentNode===t){a=Rt(r);var q=0,M,ce=Z.parentNode!==t,ae=!Xx(Z.animated&&Z.toRect||o,r.animated&&r.toRect||a,w),X=w?"top":"left",ee=hv(r,"top","top")||hv(Z,"top","top"),ue=ee?ee.scrollTop:void 0;ji!==r&&(M=a[X],gs=!1,Bc=!ae&&d.invertSwap||ce),q=iU(e,r,a,w,ae?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,Bc,ji===r);var Be;if(q!==0){var Ct=nr(Z);do Ct-=q,Be=mt.children[Ct];while(Be&&(pe(Be,"display")==="none"||Be===we))}if(q===0||Be===r)return N(!1);ji=r,ms=q;var rn=r.nextElementSibling,qt=!1;qt=q===1;var Mt=Vc(ct,t,Z,o,r,a,e,qt);if(Mt!==!1)return(Mt===1||Mt===-1)&&(qt=Mt===1),xh=!0,setTimeout(nU,30),I(),qt&&!rn?t.appendChild(Z):r.parentNode.insertBefore(Z,qt?rn:r),ee&&oE(ee,0,ue-ee.scrollTop),mt=Z.parentNode,M!==void 0&&!Bc&&(cl=Math.abs(M-Rt(r)[X])),D(),N(!0)}if(t.contains(Z))return N(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){xe(document,"mousemove",this._onTouchMove),xe(document,"touchmove",this._onTouchMove),xe(document,"pointermove",this._onTouchMove),xe(document,"dragover",si),xe(document,"mousemove",si),xe(document,"touchmove",si)},_offUpEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._onDrop),xe(e,"touchend",this._onDrop),xe(e,"pointerup",this._onDrop),xe(e,"touchcancel",this._onDrop),xe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Rn=nr(Z),Do=nr(Z,r.draggable),pn("drop",this,{evt:e}),mt=Z&&Z.parentNode,Rn=nr(Z),Do=nr(Z,r.draggable),_e.eventCanceled){this._nulling();return}oa=!1,Bc=!1,gs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Uh(this.cloneId),Uh(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ds&&pe(document.body,"user-select",""),pe(Z,"transform",""),e&&(os&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),we&&we.parentNode&&we.parentNode.removeChild(we),(ct===mt||zt&&zt.lastPutMode!=="clone")&&gt&&gt.parentNode&&gt.parentNode.removeChild(gt),Z&&(this.nativeDraggable&&xe(Z,"dragend",this),jd(Z),Z.style["will-change"]="",os&&!oa&&Nn(Z,zt?zt.options.ghostClass:this.options.ghostClass,!1),Nn(Z,this.options.chosenClass,!1),ln({sortable:this,name:"unchoose",toEl:mt,newIndex:null,newDraggableIndex:null,originalEvent:e}),ct!==mt?(Rn>=0&&(ln({rootEl:mt,name:"add",toEl:mt,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"remove",toEl:mt,originalEvent:e}),ln({rootEl:mt,name:"sort",toEl:mt,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"sort",toEl:mt,originalEvent:e})),zt&&zt.save()):Rn!==da&&Rn>=0&&(ln({sortable:this,name:"update",toEl:mt,originalEvent:e}),ln({sortable:this,name:"sort",toEl:mt,originalEvent:e})),_e.active&&((Rn==null||Rn===-1)&&(Rn=da,Do=fs),ln({sortable:this,name:"end",toEl:mt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),ct=Z=mt=we=ui=gt=sl=Lo=ai=hr=os=Rn=Do=da=fs=ji=ms=zt=Uc=_e.dragged=_e.ghost=_e.clone=_e.active=null,Tl.forEach(function(e){e.checked=!0}),Tl.length=zd=Gd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),tU(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,o=0,a=r.length,c=this.options;o<a;o++)t=r[o],Lr(t,c.draggable,this.el,!1)&&e.push(t.getAttribute(c.dataIdAttr)||sU(t));return e},sort:function(e,t){var r={},o=this.el;this.toArray().forEach(function(a,c){var d=o.children[c];Lr(d,this.options.draggable,o,!1)&&(r[a]=d)},this),t&&this.captureAnimationState(),e.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Lr(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var o=Bs.modifyOption(this,e,t);typeof o<"u"?r[e]=o:r[e]=t,e==="group"&&cE(r)},destroy:function(){pn("destroy",this);var e=this.el;e[xn]=null,xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart),xe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wl.splice(wl.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Lo){if(pn("hideClone",this),_e.eventCanceled)return;pe(gt,"display","none"),this.options.removeCloneOnHide&&gt.parentNode&&gt.parentNode.removeChild(gt),Lo=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Lo){if(pn("showClone",this),_e.eventCanceled)return;Z.parentNode==ct&&!this.options.group.revertClone?ct.insertBefore(gt,Z):ui?ct.insertBefore(gt,ui):ct.appendChild(gt),this.options.group.revertClone&&this.animate(Z,gt),pe(gt,"display",""),Lo=!1}}};function tU(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Vc(n,e,t,r,o,a,c,d){var h,m=n[xn],g=m.options.onMove,v;return window.CustomEvent&&!po&&!Us?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=e,h.from=n,h.dragged=t,h.draggedRect=r,h.related=o||e,h.relatedRect=a||Rt(e),h.willInsertAfter=d,h.originalEvent=c,n.dispatchEvent(h),g&&(v=g.call(m,h,c)),v}function jd(n){n.draggable=!1}function nU(){xh=!1}function rU(n,e,t){var r=Rt(Ea(t.el,0,t.options,!0)),o=10;return e?n.clientX<r.left-o||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-o||n.clientY<r.bottom&&n.clientX<r.left}function oU(n,e,t){var r=Rt(Df(t.el,t.options.draggable)),o=10;return e?n.clientX>r.right+o||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+o}function iU(n,e,t,r,o,a,c,d){var h=r?n.clientY:n.clientX,m=r?t.height:t.width,g=r?t.top:t.left,v=r?t.bottom:t.right,p=!1;if(!c){if(d&&cl<m*o){if(!gs&&(ms===1?h>g+m*a/2:h<v-m*a/2)&&(gs=!0),gs)p=!0;else if(ms===1?h<g+cl:h>v-cl)return-ms}else if(h>g+m*(1-o)/2&&h<v-m*(1-o)/2)return aU(e)}return p=p||c,p&&(h<g+m*a/2||h>v-m*a/2)?h>g+m/2?1:-1:0}function aU(n){return nr(Z)<nr(n)?1:-1}function sU(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function cU(n){Tl.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&Tl.push(r)}}function ll(n){return setTimeout(n,0)}function Uh(n){return clearTimeout(n)}Ql&&Ve(document,"touchmove",function(n){(_e.active||oa)&&n.cancelable&&n.preventDefault()});_e.utils={on:Ve,off:xe,css:pe,find:nE,is:function(e,t){return!!Lr(e,t,e,!1)},extend:Wx,throttle:rE,closest:Lr,toggleClass:Nn,clone:iE,index:nr,nextTick:ll,cancelNextTick:Uh,detectDirection:sE,getChild:Ea};_e.get=function(n){return n[xn]};_e.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(_e.utils=Wr(Wr({},_e.utils),r.utils)),Bs.mount(r)})};_e.create=function(n,e){return new _e(n,e)};_e.version=Vx;var wt=[],is,Bh,Fh=!1,Yd,Jd,bl,as;function lU(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Ve(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ve(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ve(document,"touchmove",this._handleFallbackAutoScroll):Ve(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):(xe(document,"pointermove",this._handleFallbackAutoScroll),xe(document,"touchmove",this._handleFallbackAutoScroll),xe(document,"mousemove",this._handleFallbackAutoScroll)),_v(),ul(),zx()},nulling:function(){bl=Bh=is=Fh=as=Yd=Jd=null,wt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var o=this,a=(t.touches?t.touches[0]:t).clientX,c=(t.touches?t.touches[0]:t).clientY,d=document.elementFromPoint(a,c);if(bl=t,r||this.options.forceAutoScrollFallback||Us||po||ds){Qd(t,this.options,d,r);var h=Fo(d,!0);Fh&&(!as||a!==Yd||c!==Jd)&&(as&&_v(),as=setInterval(function(){var m=Fo(document.elementFromPoint(a,c),!0);m!==h&&(h=m,ul()),Qd(t,o.options,m,r)},10),Yd=a,Jd=c)}else{if(!this.options.bubbleScroll||Fo(d,!0)===$r()){ul();return}Qd(t,this.options,Fo(d,!1),!1)}}},mo(n,{pluginName:"scroll",initializeByDefault:!0})}function ul(){wt.forEach(function(n){clearInterval(n.pid)}),wt=[]}function _v(){clearInterval(as)}var Qd=rE(function(n,e,t,r){if(e.scroll){var o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,c=e.scrollSensitivity,d=e.scrollSpeed,h=$r(),m=!1,g;Bh!==t&&(Bh=t,ul(),is=e.scroll,g=e.scrollFn,is===!0&&(is=Fo(t,!0)));var v=0,p=is;do{var w=p,C=Rt(w),T=C.top,k=C.bottom,I=C.left,N=C.right,D=C.width,L=C.height,K=void 0,q=void 0,M=w.scrollWidth,ce=w.scrollHeight,ae=pe(w),X=w.scrollLeft,ee=w.scrollTop;w===h?(K=D<M&&(ae.overflowX==="auto"||ae.overflowX==="scroll"||ae.overflowX==="visible"),q=L<ce&&(ae.overflowY==="auto"||ae.overflowY==="scroll"||ae.overflowY==="visible")):(K=D<M&&(ae.overflowX==="auto"||ae.overflowX==="scroll"),q=L<ce&&(ae.overflowY==="auto"||ae.overflowY==="scroll"));var ue=K&&(Math.abs(N-o)<=c&&X+D<M)-(Math.abs(I-o)<=c&&!!X),Be=q&&(Math.abs(k-a)<=c&&ee+L<ce)-(Math.abs(T-a)<=c&&!!ee);if(!wt[v])for(var Ct=0;Ct<=v;Ct++)wt[Ct]||(wt[Ct]={});(wt[v].vx!=ue||wt[v].vy!=Be||wt[v].el!==w)&&(wt[v].el=w,wt[v].vx=ue,wt[v].vy=Be,clearInterval(wt[v].pid),(ue!=0||Be!=0)&&(m=!0,wt[v].pid=setInterval((function(){r&&this.layer===0&&_e.active._onTouchMove(bl);var rn=wt[this.layer].vy?wt[this.layer].vy*d:0,qt=wt[this.layer].vx?wt[this.layer].vx*d:0;typeof g=="function"&&g.call(_e.dragged.parentNode[xn],qt,rn,n,bl,wt[this.layer].el)!=="continue"||oE(wt[this.layer].el,qt,rn)}).bind({layer:v}),24))),v++}while(e.bubbleScroll&&p!==h&&(p=Fo(p,!1)));Fh=m}},30),dE=function(e){var t=e.originalEvent,r=e.putSortable,o=e.dragEl,a=e.activeSortable,c=e.dispatchSortableEvent,d=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(t){var m=r||a;d();var g=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,v=document.elementFromPoint(g.clientX,g.clientY);h(),m&&!m.el.contains(v)&&(c("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Lf(){}Lf.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ea(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:dE};mo(Lf,{pluginName:"revertOnSpill"});function xf(){}xf.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:dE};mo(xf,{pluginName:"removeOnSpill"});_e.mount(new lU);_e.mount(xf,Lf);function uU(){return typeof window<"u"?window.console:global.console}const dU=uU();function hU(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const fU=/-(\w)/g,vv=hU(n=>n.replace(fU,(e,t)=>t?t.toUpperCase():""));function Xd(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function yv(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function mU(n,e){return Object.values(n).indexOf(e)}function gU(n,e,t,r){if(!n)return[];const o=Object.values(n),a=e.length-r;return[...e].map((d,h)=>h>=a?o.length:o.indexOf(d))}function hE(n,e){this.$nextTick(()=>this.$emit(n.toLowerCase(),e))}function pU(n){return e=>{this.realList!==null&&this["onDrag"+n](e),hE.call(this,n,e)}}function _U(n){return["transition-group","TransitionGroup"].includes(n)}function vU(n){if(!n||n.length!==1)return!1;const[{type:e}]=n;return e?_U(e.name):!1}function yU(n,e){return e?{...e.props,...e.attrs}:n}const Vh=["Start","Add","Remove","Update","End"],Hh=["Choose","Unchoose","Sort","Filter","Clone"],CU=["Move",...Vh,...Hh].map(n=>"on"+n);let Zd=null;const EU={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},wU=l.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Vh.map(n=>n.toLowerCase()),...Hh.map(n=>n.toLowerCase())],props:EU,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const n=this.$slots.default?this.$slots.default():null,e=yU(this.$attrs,this.componentData);return n?(this.transitionMode=vU(n),l.h(this.getTag(),e,n)):l.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&dU.error("list props are mutually exclusive! Please set one.")},mounted(){const n={};Vh.forEach(o=>{n["on"+o]=pU.call(this,o)}),Hh.forEach(o=>{n["on"+o]=hE.bind(this,o)});const e=Object.keys(this.$attrs).reduce((o,a)=>(o[vv(a)]=this.$attrs[a],o),{}),t=Object.assign({},e,n,{onMove:(o,a)=>this.onDragMove(o,a)});!("draggable"in t)&&(t.draggable=">*");const r=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new _e(r,t),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(n){this.updateOptions(n)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?l.resolveComponent(this.component):this.tag},updateOptions(n){for(var e in n){const t=vv(e);CU.indexOf(t)===-1&&this._sortable.option(t,n[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=gU(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(n){const e=mU(this.getChildrenNodes()||[],n);if(e===-1)return null;const t=this.realList[e];return{index:e,element:t}},emitChanges(n){this.$nextTick(()=>{this.$emit("change",n)})},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=r=>r.splice(e,0,r.splice(n,1)[0]);this.alterList(t)},getVmIndex(n){const e=this.visibleIndexes,t=e.length;return n>t-1?t:e[n]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(n){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[n].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(n){this.computeIndexes(),this.context=this.getUnderlyingVm(n.item),this.context&&(n.item._underlying_vm_=this.clone(this.context.element),Zd=n.item)},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;Xd(n.item);const t=this.getVmIndex(n.newIndex);this.spliceList(t,0,e),this.computeIndexes();const r={element:e,newIndex:t};this.emitChanges({added:r})},onDragRemove(n){if(yv(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){Xd(n.clone);return}if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const t={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:t})},onDragUpdate(n){Xd(n.item),yv(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndex(n.newIndex);this.updatePosition(e,t);const r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},updateProperty(n,e){n.hasOwnProperty(e)&&(n[e]+=this.headerOffset)},onDragMove(n,e){const t=this.move;if(!t||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(n),o=this.context,a=this.computeFutureIndex(r,n);Object.assign(o,{futureIndex:a});const c=Object.assign({},n,{relatedContext:r,draggedContext:o});return t(c,e)},onDragEnd(){this.computeIndexes(),Zd=null},getTrargetedComponent(n){return n.__draggable_component__},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getTrargetedComponent(n);if(!t)return{component:t};const r=t.realList,o={list:r,component:t};if(n!==e&&r&&t.getUnderlyingVm){const a=t.getUnderlyingVm(e);if(a)return Object.assign(a,o)}return o},computeFutureIndex(n,e){const t=[...e.to.children].filter(c=>c.style.display!=="none");if(t.length===0)return 0;const r=t.indexOf(e.related),o=n.component.getVmIndex(r);return t.indexOf(Zd)!==-1||!e.willInsertAfter?o:o+1}}}),TU={class:"d-flex flex-row align-center"},Uf=l.defineComponent({__name:"ColumnSettingsDialog",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=l.ref(""),r=l.computed(()=>{var a;return(a=e.value)==null?void 0:a.filter(c=>c.title.toLowerCase().includes(t.value.toLowerCase()))}),{t:o}=br();return(a,c)=>{const d=l.resolveComponent("v-list-item-content");return l.openBlock(),l.createBlock(Ls,{"dd-id":"col-settings",buttons:!1,title:l.unref(o)("dialogs.columnSettings.title")},{default:l.withCtx(()=>[l.createVNode(Jl,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=h=>t.value=h)},null,8,["modelValue"]),l.createVNode(Qt.VList,null,{default:l.withCtx(()=>[l.createVNode(l.unref(wU),{list:r.value,animation:200,"ghost-class":"ghost-card"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createBlock(Qt.VListItem,{key:h.key,class:"pa-0"},{default:l.withCtx(()=>[l.createElementVNode("div",TU,[l.createVNode(l.unref(sP),{class:"cursor-grab mb-2"}),l.createVNode(Qt.VListItemAction,null,{default:l.withCtx(()=>[l.createVNode(EO.VCheckbox,{modelValue:h.checked,"onUpdate:modelValue":m=>h.checked=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l.createVNode(d,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,{class:"mb-1"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.title)+"  ",1)]),_:2},1024)]),_:2},1024),h.icon?(l.openBlock(),l.createBlock(pl.VIcon,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.icon),1)]),_:2},1024)):l.createCommentVNode("",!0)])]),_:2},1024))),128))]),_:1},8,["list"])]),_:1})]),_:1},8,["title"])}}}),bU=["src","height","width"],IU={key:0,class:"text-center text-h6"},SU={key:1,class:"text-center text-h5"},AU={key:0,class:"text-center"},kU={class:"d-flex justify-center align-center mt-4 ga-3"},Bf=l.defineComponent({__name:"TableCard",props:{item:{},columns:{},size:{},image:{},tags:{},route:{},callback:{type:Function}},setup(n){const e=n,t=()=>{var o;return((o=e.columns.find(a=>a.isHeader))==null?void 0:o.key)||""},r=()=>{var o;return((o=e.columns.find(a=>a.isSubtitle))==null?void 0:o.key)||""};return(o,a)=>(l.openBlock(),l.createBlock(xt.VCard,{onClick:o.callback,ripple:"",class:"d-flex flex-column pa-4pa-4 bg-containerBg"},{default:l.withCtx(()=>[l.createVNode(xt.VCardActions,null,{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{"no-gutters":"",align:"center",justify:"end"},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"actions",{item:o.item})]),_:3})]),_:3}),l.createVNode(xt.VCardTitle,null,{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{"no-gutters":"",align:"center",justify:"center"},{default:l.withCtx(()=>[o.image?(l.openBlock(),l.createElementBlock("img",{key:0,src:o.image,height:o.size,width:o.size,alt:""},null,8,bU)):l.createCommentVNode("",!0)]),_:1})]),_:1}),t()?(l.openBlock(),l.createElementBlock("div",IU,l.toDisplayString(o.item[t()]),1)):l.createCommentVNode("",!0),r()?(l.openBlock(),l.createElementBlock("div",SU,l.toDisplayString(o.item[r()]),1)):l.createCommentVNode("",!0),l.createVNode(pi.VDivider,{class:"ma-3"}),l.createVNode(xt.VCardText,{class:"d-flex flex-column align-center pa-4 pt-1"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.columns,c=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:c.key},[o.item[c.key]&&!c.isHeader&&!c.isSubtitle?(l.openBlock(),l.createElementBlock("div",AU,l.toDisplayString(c.title)+": "+l.toDisplayString(o.item[c.key]),1)):l.createCommentVNode("",!0)],64))),128)),l.createElementVNode("div",kU,[o.tags?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(o.tags,c=>(l.openBlock(),l.createBlock(wO.VChip,{class:"pa-3",key:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c),1)]),_:2},1024))),128)):l.createCommentVNode("",!0)])]),_:1})]),_:3},8,["onClick"]))}}),NU=l.defineComponent({__name:"TableCardsView",props:{data:{},columns:{},size:{},itemKey:{}},setup(n){return(e,t)=>(l.openBlock(),l.createBlock(Qe.VRow,{class:"mt-5 border tb-cards-h",wrap:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,r=>(l.openBlock(),l.createBlock(Qe.VCol,{cols:"12",sm:"6",md:"4",lg:"3",class:"pa-2",key:r[e.itemKey]},{default:l.withCtx(()=>[l.createVNode(Bf,{item:r,columns:e.columns,size:e.size},{actions:l.withCtx(({item:o})=>[l.renderSlot(e.$slots,"actions",{item:o},void 0,!0)]),_:2},1032,["item","columns","size"])]),_:2},1024))),128))]),_:3}))}}),fE=Sa(NU,[["__scopeId","data-v-e1a4ccbc"]]),RU={class:"j-field px-4 py-3 rounded-sm bg-containerBg"},OU=l.defineComponent({__name:"ReadOnlyField",props:{value:{}},setup(n){return(e,t)=>(l.openBlock(),l.createElementBlock("div",RU,l.toDisplayString(e.value),1))}}),PU={key:0,class:"mb-2 ms-1"},mE=l.defineComponent({__name:"JTextField",props:{modelValue:{},name:{},label:{},type:{default:"text"},readonly:{type:Boolean},density:{},rules:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled");return(a,c)=>(l.openBlock(),l.createElementBlock("div",null,[a.name?(l.openBlock(),l.createElementBlock("p",PU,l.toDisplayString(a.name),1)):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.label),1)]),_:1})):l.createCommentVNode("",!0),a.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(Vo.VTextField),{key:2,variant:o.value,color:"secondary","bg-color":"containerBg",rounded:"sm","hide-details":"auto",type:a.type,density:a.density,rules:a.rules,value:a.modelValue,"onUpdate:modelValue":c[0]||(c[0]=d=>r("update:modelValue",d)),class:"j-field"},null,8,["variant","type","density","rules","value"])),a.readonly?(l.openBlock(),l.createBlock(OU,{key:3,value:a.modelValue},null,8,["value"])):l.createCommentVNode("",!0)]))}});function gE(n,e){return function(){return n.apply(e,arguments)}}const{toString:MU}=Object.prototype,{getPrototypeOf:Ff}=Object,Xl=(n=>e=>{const t=MU.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=n=>(n=n.toLowerCase(),e=>Xl(e)===n),Zl=n=>e=>typeof e===n,{isArray:ka}=Array,Rs=Zl("undefined");function DU(n){return n!==null&&!Rs(n)&&n.constructor!==null&&!Rs(n.constructor)&&Fn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const pE=Ir("ArrayBuffer");function LU(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&pE(n.buffer),e}const xU=Zl("string"),Fn=Zl("function"),_E=Zl("number"),eu=n=>n!==null&&typeof n=="object",UU=n=>n===!0||n===!1,dl=n=>{if(Xl(n)!=="object")return!1;const e=Ff(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},BU=Ir("Date"),FU=Ir("File"),VU=Ir("Blob"),HU=Ir("FileList"),$U=n=>eu(n)&&Fn(n.pipe),KU=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Fn(n.append)&&((e=Xl(n))==="formdata"||e==="object"&&Fn(n.toString)&&n.toString()==="[object FormData]"))},WU=Ir("URLSearchParams"),[zU,GU,qU,jU]=["ReadableStream","Request","Response","Headers"].map(Ir),YU=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),ka(n))for(r=0,o=n.length;r<o;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),c=a.length;let d;for(r=0;r<c;r++)d=a[r],e.call(null,n[d],d,n)}}function vE(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,o;for(;r-- >0;)if(o=t[r],e===o.toLowerCase())return o;return null}const mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yE=n=>!Rs(n)&&n!==mi;function $h(){const{caseless:n}=yE(this)&&this||{},e={},t=(r,o)=>{const a=n&&vE(e,o)||o;dl(e[a])&&dl(r)?e[a]=$h(e[a],r):dl(r)?e[a]=$h({},r):ka(r)?e[a]=r.slice():e[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fs(arguments[r],t);return e}const JU=(n,e,t,{allOwnKeys:r}={})=>(Fs(e,(o,a)=>{t&&Fn(o)?n[a]=gE(o,t):n[a]=o},{allOwnKeys:r}),n),QU=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),XU=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},ZU=(n,e,t,r)=>{let o,a,c;const d={};if(e=e||{},n==null)return e;do{for(o=Object.getOwnPropertyNames(n),a=o.length;a-- >0;)c=o[a],(!r||r(c,n,e))&&!d[c]&&(e[c]=n[c],d[c]=!0);n=t!==!1&&Ff(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},eB=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},tB=n=>{if(!n)return null;if(ka(n))return n;let e=n.length;if(!_E(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},nB=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Ff(Uint8Array)),rB=(n,e)=>{const r=(n&&n[Symbol.iterator]).call(n);let o;for(;(o=r.next())&&!o.done;){const a=o.value;e.call(n,a[0],a[1])}},oB=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},iB=Ir("HTMLFormElement"),aB=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),Cv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),sB=Ir("RegExp"),CE=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Fs(t,(o,a)=>{let c;(c=e(o,a,n))!==!1&&(r[a]=c||o)}),Object.defineProperties(n,r)},cB=n=>{CE(n,(e,t)=>{if(Fn(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Fn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},lB=(n,e)=>{const t={},r=o=>{o.forEach(a=>{t[a]=!0})};return ka(n)?r(n):r(String(n).split(e)),t},uB=()=>{},dB=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,eh="abcdefghijklmnopqrstuvwxyz",Ev="0123456789",EE={DIGIT:Ev,ALPHA:eh,ALPHA_DIGIT:eh+eh.toUpperCase()+Ev},hB=(n=16,e=EE.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function fB(n){return!!(n&&Fn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const mB=n=>{const e=new Array(10),t=(r,o)=>{if(eu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const a=ka(r)?[]:{};return Fs(r,(c,d)=>{const h=t(c,o+1);!Rs(h)&&(a[d]=h)}),e[o]=void 0,a}}return r};return t(n,0)},gB=Ir("AsyncFunction"),pB=n=>n&&(eu(n)||Fn(n))&&Fn(n.then)&&Fn(n.catch),wE=((n,e)=>n?setImmediate:e?((t,r)=>(mi.addEventListener("message",({source:o,data:a})=>{o===mi&&a===t&&r.length&&r.shift()()},!1),o=>{r.push(o),mi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Fn(mi.postMessage)),_B=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||wE,B={isArray:ka,isArrayBuffer:pE,isBuffer:DU,isFormData:KU,isArrayBufferView:LU,isString:xU,isNumber:_E,isBoolean:UU,isObject:eu,isPlainObject:dl,isReadableStream:zU,isRequest:GU,isResponse:qU,isHeaders:jU,isUndefined:Rs,isDate:BU,isFile:FU,isBlob:VU,isRegExp:sB,isFunction:Fn,isStream:$U,isURLSearchParams:WU,isTypedArray:nB,isFileList:HU,forEach:Fs,merge:$h,extend:JU,trim:YU,stripBOM:QU,inherits:XU,toFlatObject:ZU,kindOf:Xl,kindOfTest:Ir,endsWith:eB,toArray:tB,forEachEntry:rB,matchAll:oB,isHTMLForm:iB,hasOwnProperty:Cv,hasOwnProp:Cv,reduceDescriptors:CE,freezeMethods:cB,toObjectSet:lB,toCamelCase:aB,noop:uB,toFiniteNumber:dB,findKey:vE,global:mi,isContextDefined:yE,ALPHABET:EE,generateString:hB,isSpecCompliantForm:fB,toJSONObject:mB,isAsyncFn:gB,isThenable:pB,setImmediate:wE,asap:_B};function Te(n,e,t,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}B.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const TE=Te.prototype,bE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{bE[n]={value:n}});Object.defineProperties(Te,bE);Object.defineProperty(TE,"isAxiosError",{value:!0});Te.from=(n,e,t,r,o,a)=>{const c=Object.create(TE);return B.toFlatObject(n,c,function(h){return h!==Error.prototype},d=>d!=="isAxiosError"),Te.call(c,n.message,e,t,r,o),c.cause=n,c.name=n.name,a&&Object.assign(c,a),c};const vB=null;function Kh(n){return B.isPlainObject(n)||B.isArray(n)}function IE(n){return B.endsWith(n,"[]")?n.slice(0,-2):n}function wv(n,e,t){return n?n.concat(e).map(function(o,a){return o=IE(o),!t&&a?"["+o+"]":o}).join(t?".":""):e}function yB(n){return B.isArray(n)&&!n.some(Kh)}const CB=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function tu(n,e,t){if(!B.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=B.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,k){return!B.isUndefined(k[T])});const r=t.metaTokens,o=t.visitor||g,a=t.dots,c=t.indexes,h=(t.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function m(C){if(C===null)return"";if(B.isDate(C))return C.toISOString();if(!h&&B.isBlob(C))throw new Te("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(C)||B.isTypedArray(C)?h&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function g(C,T,k){let I=C;if(C&&!k&&typeof C=="object"){if(B.endsWith(T,"{}"))T=r?T:T.slice(0,-2),C=JSON.stringify(C);else if(B.isArray(C)&&yB(C)||(B.isFileList(C)||B.endsWith(T,"[]"))&&(I=B.toArray(C)))return T=IE(T),I.forEach(function(D,L){!(B.isUndefined(D)||D===null)&&e.append(c===!0?wv([T],L,a):c===null?T:T+"[]",m(D))}),!1}return Kh(C)?!0:(e.append(wv(k,T,a),m(C)),!1)}const v=[],p=Object.assign(CB,{defaultVisitor:g,convertValue:m,isVisitable:Kh});function w(C,T){if(!B.isUndefined(C)){if(v.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));v.push(C),B.forEach(C,function(I,N){(!(B.isUndefined(I)||I===null)&&o.call(e,I,B.isString(N)?N.trim():N,T,p))===!0&&w(I,T?T.concat(N):[N])}),v.pop()}}if(!B.isObject(n))throw new TypeError("data must be an object");return w(n),e}function Tv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Vf(n,e){this._pairs=[],n&&tu(n,this,e)}const SE=Vf.prototype;SE.append=function(e,t){this._pairs.push([e,t])};SE.toString=function(e){const t=e?function(r){return e.call(this,r,Tv)}:Tv;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function EB(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AE(n,e,t){if(!e)return n;const r=t&&t.encode||EB;B.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let a;if(o?a=o(e,t):a=B.isURLSearchParams(e)?e.toString():new Vf(e,t).toString(r),a){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class bv{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(r){r!==null&&e(r)})}}const kE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wB=typeof URLSearchParams<"u"?URLSearchParams:Vf,TB=typeof FormData<"u"?FormData:null,bB=typeof Blob<"u"?Blob:null,IB={isBrowser:!0,classes:{URLSearchParams:wB,FormData:TB,Blob:bB},protocols:["http","https","file","blob","url","data"]},Hf=typeof window<"u"&&typeof document<"u",Wh=typeof navigator=="object"&&navigator||void 0,SB=Hf&&(!Wh||["ReactNative","NativeScript","NS"].indexOf(Wh.product)<0),AB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kB=Hf&&window.location.href||"http://localhost",NB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hf,hasStandardBrowserEnv:SB,hasStandardBrowserWebWorkerEnv:AB,navigator:Wh,origin:kB},Symbol.toStringTag,{value:"Module"})),nn={...NB,...IB};function RB(n,e){return tu(n,new nn.classes.URLSearchParams,Object.assign({visitor:function(t,r,o,a){return nn.isNode&&B.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function OB(n){return B.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function PB(n){const e={},t=Object.keys(n);let r;const o=t.length;let a;for(r=0;r<o;r++)a=t[r],e[a]=n[a];return e}function NE(n){function e(t,r,o,a){let c=t[a++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=a>=t.length;return c=!c&&B.isArray(o)?o.length:c,h?(B.hasOwnProp(o,c)?o[c]=[o[c],r]:o[c]=r,!d):((!o[c]||!B.isObject(o[c]))&&(o[c]=[]),e(t,r,o[c],a)&&B.isArray(o[c])&&(o[c]=PB(o[c])),!d)}if(B.isFormData(n)&&B.isFunction(n.entries)){const t={};return B.forEachEntry(n,(r,o)=>{e(OB(r),o,t,0)}),t}return null}function MB(n,e,t){if(B.isString(n))try{return(e||JSON.parse)(n),B.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Vs={transitional:kE,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,a=B.isObject(e);if(a&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return o?JSON.stringify(NE(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RB(e,this.formSerializer).toString();if((d=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return tu(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),MB(e)):e}],transformResponse:[function(e){const t=this.transitional||Vs.transitional,r=t&&t.forcedJSONParsing,o=this.responseType==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(r&&!this.responseType||o)){const c=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(d){if(c)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],n=>{Vs.headers[n]={}});const DB=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LB=n=>{const e={};let t,r,o;return n&&n.split(`
42
42
  `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),r=c.substring(o+1).trim(),!(!t||e[t]&&DB[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Iv=Symbol("internals");function ns(n){return n&&String(n).trim().toLowerCase()}function hl(n){return n===!1||n==null?n:B.isArray(n)?n.map(hl):String(n)}function xB(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const UB=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function th(n,e,t,r,o){if(B.isFunction(r))return r.call(this,e,t);if(o&&(e=t),!!B.isString(e)){if(B.isString(r))return e.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(e)}}function BB(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function FB(n,e){const t=B.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(o,a,c){return this[r].call(this,e,o,a,c)},configurable:!0})})}class yn{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function a(d,h,m){const g=ns(h);if(!g)throw new Error("header name must be a non-empty string");const v=B.findKey(o,g);(!v||o[v]===void 0||m===!0||m===void 0&&o[v]!==!1)&&(o[v||h]=hl(d))}const c=(d,h)=>B.forEach(d,(m,g)=>a(m,g,h));if(B.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(B.isString(e)&&(e=e.trim())&&!UB(e))c(LB(e),t);else if(B.isHeaders(e))for(const[d,h]of e.entries())a(h,d,r);else e!=null&&a(t,e,r);return this}get(e,t){if(e=ns(e),e){const r=B.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return xB(o);if(B.isFunction(t))return t.call(this,o,r);if(B.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ns(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||th(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function a(c){if(c=ns(c),c){const d=B.findKey(r,c);d&&(!t||th(r,r[d],d,t))&&(delete r[d],o=!0)}}return B.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const a=t[r];(!e||th(this,this[a],a,e,!0))&&(delete this[a],o=!0)}return o}normalize(e){const t=this,r={};return B.forEach(this,(o,a)=>{const c=B.findKey(r,a);if(c){t[c]=hl(o),delete t[a];return}const d=e?BB(a):String(a).trim();d!==a&&delete t[a],t[d]=hl(o),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return B.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=e&&B.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
43
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Iv]=this[Iv]={accessors:{}}).accessors,o=this.prototype;function a(c){const d=ns(c);r[d]||(FB(o,c),r[d]=!0)}return B.isArray(e)?e.forEach(a):a(e),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(yn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});B.freezeMethods(yn);function nh(n,e){const t=this||Vs,r=e||t,o=yn.from(r.headers);let a=r.data;return B.forEach(n,function(d){a=d.call(t,a,o.normalize(),e?e.status:void 0)}),o.normalize(),a}function OE(n){return!!(n&&n.__CANCEL__)}function Na(n,e,t){Te.call(this,n??"canceled",Te.ERR_CANCELED,e,t),this.name="CanceledError"}B.inherits(Na,Te,{__CANCEL__:!0});function PE(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Te("Request failed with status code "+t.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function VB(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function HB(n,e){n=n||10;const t=new Array(n),r=new Array(n);let o=0,a=0,c;return e=e!==void 0?e:1e3,function(h){const m=Date.now(),g=r[a];c||(c=m),t[o]=h,r[o]=m;let v=a,p=0;for(;v!==o;)p+=t[v++],v=v%n;if(o=(o+1)%n,o===a&&(a=(a+1)%n),m-c<e)return;const w=g&&m-g;return w?Math.round(p*1e3/w):void 0}}function $B(n,e){let t=0,r=1e3/e,o,a;const c=(m,g=Date.now())=>{t=g,o=null,a&&(clearTimeout(a),a=null),n.apply(null,m)};return[(...m)=>{const g=Date.now(),v=g-t;v>=r?c(m,g):(o=m,a||(a=setTimeout(()=>{a=null,c(o)},r-v)))},()=>o&&c(o)]}const Il=(n,e,t=3)=>{let r=0;const o=HB(50,250);return $B(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,h=c-r,m=o(h),g=c<=d;r=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&g?(d-c)/m:void 0,event:a,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(v)},t)},Sv=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Av=n=>(...e)=>B.asap(()=>n(...e)),KB=nn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,nn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,WB=nn.hasStandardBrowserEnv?{write(n,e,t,r,o,a){const c=[n+"="+encodeURIComponent(e)];B.isNumber(t)&&c.push("expires="+new Date(t).toGMTString()),B.isString(r)&&c.push("path="+r),B.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zB(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function GB(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function ME(n,e){return n&&!zB(e)?GB(n,e):e}const kv=n=>n instanceof yn?{...n}:n;function Ei(n,e){e=e||{};const t={};function r(m,g,v,p){return B.isPlainObject(m)&&B.isPlainObject(g)?B.merge.call({caseless:p},m,g):B.isPlainObject(g)?B.merge({},g):B.isArray(g)?g.slice():g}function o(m,g,v,p){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m,v,p)}else return r(m,g,v,p)}function a(m,g){if(!B.isUndefined(g))return r(void 0,g)}function c(m,g){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function d(m,g,v){if(v in e)return r(m,g);if(v in n)return r(void 0,m)}const h={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,g,v)=>o(kv(m),kv(g),v,!0)};return B.forEach(Object.keys(Object.assign({},n,e)),function(g){const v=h[g]||o,p=v(n[g],e[g],g);B.isUndefined(p)&&v!==d||(t[g]=p)}),t}const DE=n=>{const e=Ei({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:d}=e;e.headers=c=yn.from(c),e.url=kE(ME(e.baseURL,e.url),n.params,n.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let h;if(B.isFormData(t)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[m,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...g].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&KB(e.url))){const m=o&&a&&WB.read(a);m&&c.set(o,m)}return e},qB=typeof XMLHttpRequest<"u",jB=qB&&function(n){return new Promise(function(t,r){const o=DE(n);let a=o.data;const c=yn.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=o,g,v,p,w,C;function T(){w&&w(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function I(){if(!k)return;const D=yn.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),K={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:D,config:n,request:k};PE(function(M){t(M),T()},function(M){r(M),T()},K),k=null}"onloadend"in k?k.onloadend=I:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(I)},k.onabort=function(){k&&(r(new Te("Request aborted",Te.ECONNABORTED,n,k)),k=null)},k.onerror=function(){r(new Te("Network Error",Te.ERR_NETWORK,n,k)),k=null},k.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const K=o.transitional||NE;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),r(new Te(L,K.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,n,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&B.forEach(c.toJSON(),function(L,K){k.setRequestHeader(K,L)}),B.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),d&&d!=="json"&&(k.responseType=o.responseType),m&&([p,C]=Il(m,!0),k.addEventListener("progress",p)),h&&k.upload&&([v,w]=Il(h),k.upload.addEventListener("progress",v),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(g=D=>{k&&(r(!D||D.type?new Na(null,n,k):D),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const N=VB(o.url);if(N&&nn.protocols.indexOf(N)===-1){r(new Te("Unsupported protocol "+N+":",Te.ERR_BAD_REQUEST,n));return}k.send(a||null)})},YB=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,o;const a=function(m){if(!o){o=!0,d();const g=m instanceof Error?m:this.reason;r.abort(g instanceof Te?g:new Na(g instanceof Error?g.message:g))}};let c=e&&setTimeout(()=>{c=null,a(new Te(`timeout ${e} of ms exceeded`,Te.ETIMEDOUT))},e);const d=()=>{n&&(c&&clearTimeout(c),c=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(a):m.removeEventListener("abort",a)}),n=null)};n.forEach(m=>m.addEventListener("abort",a));const{signal:h}=r;return h.unsubscribe=()=>B.asap(d),h}},JB=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,o;for(;r<t;)o=r+e,yield n.slice(r,o),r=o},QB=async function*(n,e){for await(const t of XB(n))yield*JB(t,e)},XB=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Nv=(n,e,t,r)=>{const o=QB(n,e);let a=0,c,d=h=>{c||(c=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await o.next();if(m){d(),h.close();return}let v=g.byteLength;if(t){let p=a+=v;t(p)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},nu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",LE=nu&&typeof ReadableStream=="function",ZB=nu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),xE=(n,...e)=>{try{return!!n(...e)}catch{return!1}},eF=LE&&xE(()=>{let n=!1;const e=new Request(nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Rv=64*1024,zh=LE&&xE(()=>B.isReadableStream(new Response("").body)),Sl={stream:zh&&(n=>n.body)};nu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Sl[e]&&(Sl[e]=B.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Te(`Response type '${e}' is not supported`,Te.ERR_NOT_SUPPORT,r)})})})(new Response);const tF=async n=>{if(n==null)return 0;if(B.isBlob(n))return n.size;if(B.isSpecCompliantForm(n))return(await new Request(nn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(B.isArrayBufferView(n)||B.isArrayBuffer(n))return n.byteLength;if(B.isURLSearchParams(n)&&(n=n+""),B.isString(n))return(await ZB(n)).byteLength},nF=async(n,e)=>{const t=B.toFiniteNumber(n.getContentLength());return t??tF(e)},rF=nu&&(async n=>{let{url:e,method:t,data:r,signal:o,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:g,withCredentials:v="same-origin",fetchOptions:p}=DE(n);m=m?(m+"").toLowerCase():"text";let w=YB([o,a&&a.toAbortSignal()],c),C;const T=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k;try{if(h&&eF&&t!=="get"&&t!=="head"&&(k=await nF(g,r))!==0){let K=new Request(e,{method:"POST",body:r,duplex:"half"}),q;if(B.isFormData(r)&&(q=K.headers.get("content-type"))&&g.setContentType(q),K.body){const[M,ce]=Sv(k,Il(Av(h)));r=Nv(K.body,Rv,M,ce)}}B.isString(v)||(v=v?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...p,signal:w,method:t.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",credentials:I?v:void 0});let N=await fetch(C);const D=zh&&(m==="stream"||m==="response");if(zh&&(d||D&&T)){const K={};["status","statusText","headers"].forEach(ae=>{K[ae]=N[ae]});const q=B.toFiniteNumber(N.headers.get("content-length")),[M,ce]=d&&Sv(q,Il(Av(d),!0))||[];N=new Response(Nv(N.body,Rv,M,()=>{ce&&ce(),T&&T()}),K)}m=m||"text";let L=await Sl[B.findKey(Sl,m)||"text"](N,n);return!D&&T&&T(),await new Promise((K,q)=>{PE(K,q,{data:L,headers:yn.from(N.headers),status:N.status,statusText:N.statusText,config:n,request:C})})}catch(I){throw T&&T(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,n,C),{cause:I.cause||I}):Te.from(I,I&&I.code,n,C)}}),Gh={http:vB,xhr:jB,fetch:rF};B.forEach(Gh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ov=n=>`- ${n}`,oF=n=>B.isFunction(n)||n===null||n===!1,UE={getAdapter:n=>{n=B.isArray(n)?n:[n];const{length:e}=n;let t,r;const o={};for(let a=0;a<e;a++){t=n[a];let c;if(r=t,!oF(t)&&(r=Gh[(c=String(t)).toLowerCase()],r===void 0))throw new Te(`Unknown adapter '${c}'`);if(r)break;o[c||"#"+a]=r}if(!r){const a=Object.entries(o).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=e?a.length>1?`since :
43
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Iv]=this[Iv]={accessors:{}}).accessors,o=this.prototype;function a(c){const d=ns(c);r[d]||(FB(o,c),r[d]=!0)}return B.isArray(e)?e.forEach(a):a(e),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(yn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});B.freezeMethods(yn);function nh(n,e){const t=this||Vs,r=e||t,o=yn.from(r.headers);let a=r.data;return B.forEach(n,function(d){a=d.call(t,a,o.normalize(),e?e.status:void 0)}),o.normalize(),a}function RE(n){return!!(n&&n.__CANCEL__)}function Na(n,e,t){Te.call(this,n??"canceled",Te.ERR_CANCELED,e,t),this.name="CanceledError"}B.inherits(Na,Te,{__CANCEL__:!0});function OE(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Te("Request failed with status code "+t.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function VB(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function HB(n,e){n=n||10;const t=new Array(n),r=new Array(n);let o=0,a=0,c;return e=e!==void 0?e:1e3,function(h){const m=Date.now(),g=r[a];c||(c=m),t[o]=h,r[o]=m;let v=a,p=0;for(;v!==o;)p+=t[v++],v=v%n;if(o=(o+1)%n,o===a&&(a=(a+1)%n),m-c<e)return;const w=g&&m-g;return w?Math.round(p*1e3/w):void 0}}function $B(n,e){let t=0,r=1e3/e,o,a;const c=(m,g=Date.now())=>{t=g,o=null,a&&(clearTimeout(a),a=null),n.apply(null,m)};return[(...m)=>{const g=Date.now(),v=g-t;v>=r?c(m,g):(o=m,a||(a=setTimeout(()=>{a=null,c(o)},r-v)))},()=>o&&c(o)]}const Il=(n,e,t=3)=>{let r=0;const o=HB(50,250);return $B(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,h=c-r,m=o(h),g=c<=d;r=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&g?(d-c)/m:void 0,event:a,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(v)},t)},Sv=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Av=n=>(...e)=>B.asap(()=>n(...e)),KB=nn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,nn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,WB=nn.hasStandardBrowserEnv?{write(n,e,t,r,o,a){const c=[n+"="+encodeURIComponent(e)];B.isNumber(t)&&c.push("expires="+new Date(t).toGMTString()),B.isString(r)&&c.push("path="+r),B.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zB(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function GB(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function PE(n,e){return n&&!zB(e)?GB(n,e):e}const kv=n=>n instanceof yn?{...n}:n;function Ei(n,e){e=e||{};const t={};function r(m,g,v,p){return B.isPlainObject(m)&&B.isPlainObject(g)?B.merge.call({caseless:p},m,g):B.isPlainObject(g)?B.merge({},g):B.isArray(g)?g.slice():g}function o(m,g,v,p){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m,v,p)}else return r(m,g,v,p)}function a(m,g){if(!B.isUndefined(g))return r(void 0,g)}function c(m,g){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function d(m,g,v){if(v in e)return r(m,g);if(v in n)return r(void 0,m)}const h={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,g,v)=>o(kv(m),kv(g),v,!0)};return B.forEach(Object.keys(Object.assign({},n,e)),function(g){const v=h[g]||o,p=v(n[g],e[g],g);B.isUndefined(p)&&v!==d||(t[g]=p)}),t}const ME=n=>{const e=Ei({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:d}=e;e.headers=c=yn.from(c),e.url=AE(PE(e.baseURL,e.url),n.params,n.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let h;if(B.isFormData(t)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[m,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...g].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&KB(e.url))){const m=o&&a&&WB.read(a);m&&c.set(o,m)}return e},qB=typeof XMLHttpRequest<"u",jB=qB&&function(n){return new Promise(function(t,r){const o=ME(n);let a=o.data;const c=yn.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=o,g,v,p,w,C;function T(){w&&w(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function I(){if(!k)return;const D=yn.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),K={data:!d||d==="text"||d==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:D,config:n,request:k};OE(function(M){t(M),T()},function(M){r(M),T()},K),k=null}"onloadend"in k?k.onloadend=I:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(I)},k.onabort=function(){k&&(r(new Te("Request aborted",Te.ECONNABORTED,n,k)),k=null)},k.onerror=function(){r(new Te("Network Error",Te.ERR_NETWORK,n,k)),k=null},k.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const K=o.transitional||kE;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),r(new Te(L,K.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,n,k)),k=null},a===void 0&&c.setContentType(null),"setRequestHeader"in k&&B.forEach(c.toJSON(),function(L,K){k.setRequestHeader(K,L)}),B.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),d&&d!=="json"&&(k.responseType=o.responseType),m&&([p,C]=Il(m,!0),k.addEventListener("progress",p)),h&&k.upload&&([v,w]=Il(h),k.upload.addEventListener("progress",v),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(g=D=>{k&&(r(!D||D.type?new Na(null,n,k):D),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const N=VB(o.url);if(N&&nn.protocols.indexOf(N)===-1){r(new Te("Unsupported protocol "+N+":",Te.ERR_BAD_REQUEST,n));return}k.send(a||null)})},YB=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,o;const a=function(m){if(!o){o=!0,d();const g=m instanceof Error?m:this.reason;r.abort(g instanceof Te?g:new Na(g instanceof Error?g.message:g))}};let c=e&&setTimeout(()=>{c=null,a(new Te(`timeout ${e} of ms exceeded`,Te.ETIMEDOUT))},e);const d=()=>{n&&(c&&clearTimeout(c),c=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(a):m.removeEventListener("abort",a)}),n=null)};n.forEach(m=>m.addEventListener("abort",a));const{signal:h}=r;return h.unsubscribe=()=>B.asap(d),h}},JB=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,o;for(;r<t;)o=r+e,yield n.slice(r,o),r=o},QB=async function*(n,e){for await(const t of XB(n))yield*JB(t,e)},XB=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Nv=(n,e,t,r)=>{const o=QB(n,e);let a=0,c,d=h=>{c||(c=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await o.next();if(m){d(),h.close();return}let v=g.byteLength;if(t){let p=a+=v;t(p)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},nu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",DE=nu&&typeof ReadableStream=="function",ZB=nu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),LE=(n,...e)=>{try{return!!n(...e)}catch{return!1}},eF=DE&&LE(()=>{let n=!1;const e=new Request(nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Rv=64*1024,zh=DE&&LE(()=>B.isReadableStream(new Response("").body)),Sl={stream:zh&&(n=>n.body)};nu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Sl[e]&&(Sl[e]=B.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Te(`Response type '${e}' is not supported`,Te.ERR_NOT_SUPPORT,r)})})})(new Response);const tF=async n=>{if(n==null)return 0;if(B.isBlob(n))return n.size;if(B.isSpecCompliantForm(n))return(await new Request(nn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(B.isArrayBufferView(n)||B.isArrayBuffer(n))return n.byteLength;if(B.isURLSearchParams(n)&&(n=n+""),B.isString(n))return(await ZB(n)).byteLength},nF=async(n,e)=>{const t=B.toFiniteNumber(n.getContentLength());return t??tF(e)},rF=nu&&(async n=>{let{url:e,method:t,data:r,signal:o,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:g,withCredentials:v="same-origin",fetchOptions:p}=ME(n);m=m?(m+"").toLowerCase():"text";let w=YB([o,a&&a.toAbortSignal()],c),C;const T=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k;try{if(h&&eF&&t!=="get"&&t!=="head"&&(k=await nF(g,r))!==0){let K=new Request(e,{method:"POST",body:r,duplex:"half"}),q;if(B.isFormData(r)&&(q=K.headers.get("content-type"))&&g.setContentType(q),K.body){const[M,ce]=Sv(k,Il(Av(h)));r=Nv(K.body,Rv,M,ce)}}B.isString(v)||(v=v?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...p,signal:w,method:t.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",credentials:I?v:void 0});let N=await fetch(C);const D=zh&&(m==="stream"||m==="response");if(zh&&(d||D&&T)){const K={};["status","statusText","headers"].forEach(ae=>{K[ae]=N[ae]});const q=B.toFiniteNumber(N.headers.get("content-length")),[M,ce]=d&&Sv(q,Il(Av(d),!0))||[];N=new Response(Nv(N.body,Rv,M,()=>{ce&&ce(),T&&T()}),K)}m=m||"text";let L=await Sl[B.findKey(Sl,m)||"text"](N,n);return!D&&T&&T(),await new Promise((K,q)=>{OE(K,q,{data:L,headers:yn.from(N.headers),status:N.status,statusText:N.statusText,config:n,request:C})})}catch(I){throw T&&T(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,n,C),{cause:I.cause||I}):Te.from(I,I&&I.code,n,C)}}),Gh={http:vB,xhr:jB,fetch:rF};B.forEach(Gh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ov=n=>`- ${n}`,oF=n=>B.isFunction(n)||n===null||n===!1,xE={getAdapter:n=>{n=B.isArray(n)?n:[n];const{length:e}=n;let t,r;const o={};for(let a=0;a<e;a++){t=n[a];let c;if(r=t,!oF(t)&&(r=Gh[(c=String(t)).toLowerCase()],r===void 0))throw new Te(`Unknown adapter '${c}'`);if(r)break;o[c||"#"+a]=r}if(!r){const a=Object.entries(o).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=e?a.length>1?`since :
44
44
  `+a.map(Ov).join(`
45
- `):" "+Ov(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:Gh};function rh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Na(null,n)}function Pv(n){return rh(n),n.headers=yn.from(n.headers),n.data=nh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),UE.getAdapter(n.adapter||Vs.adapter)(n).then(function(r){return rh(n),r.data=nh.call(n,n.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return OE(r)||(rh(n),r&&r.response&&(r.response.data=nh.call(n,n.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const BE="1.7.9",ru={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{ru[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Mv={};ru.transitional=function(e,t,r){function o(a,c){return"[Axios v"+BE+"] Transitional option '"+a+"'"+c+(r?". "+r:"")}return(a,c,d)=>{if(e===!1)throw new Te(o(c," has been removed"+(t?" in "+t:"")),Te.ERR_DEPRECATED);return t&&!Mv[c]&&(Mv[c]=!0,console.warn(o(c," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,c,d):!0}};ru.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function iF(n,e,t){if(typeof n!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const a=r[o],c=e[a];if(c){const d=n[a],h=d===void 0||c(d,a,n);if(h!==!0)throw new Te("option "+a+" must be "+h,Te.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const fl={assertOptions:iF,validators:ru},Mr=fl.validators;class _i{constructor(e){this.defaults=e,this.interceptors={request:new bv,response:new bv}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
46
- `+a):r.stack=a}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ei(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&fl.assertOptions(r,{silentJSONParsing:Mr.transitional(Mr.boolean),forcedJSONParsing:Mr.transitional(Mr.boolean),clarifyTimeoutError:Mr.transitional(Mr.boolean)},!1),o!=null&&(B.isFunction(o)?t.paramsSerializer={serialize:o}:fl.assertOptions(o,{encode:Mr.function,serialize:Mr.function},!0)),fl.assertOptions(t,{baseUrl:Mr.spelling("baseURL"),withXsrfToken:Mr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&B.merge(a.common,a[t.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],C=>{delete a[C]}),t.headers=yn.concat(c,a);const d=[];let h=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(t)===!1||(h=h&&T.synchronous,d.unshift(T.fulfilled,T.rejected))});const m=[];this.interceptors.response.forEach(function(T){m.push(T.fulfilled,T.rejected)});let g,v=0,p;if(!h){const C=[Pv.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,m),p=C.length,g=Promise.resolve(t);v<p;)g=g.then(C[v++],C[v++]);return g}p=d.length;let w=t;for(v=0;v<p;){const C=d[v++],T=d[v++];try{w=C(w)}catch(k){T.call(this,k);break}}try{g=Pv.call(this,w)}catch(C){return Promise.reject(C)}for(v=0,p=m.length;v<p;)g=g.then(m[v++],m[v++]);return g}getUri(e){e=Ei(this.defaults,e);const t=ME(e.baseURL,e.url);return kE(t,e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){_i.prototype[e]=function(t,r){return this.request(Ei(r||{},{method:e,url:t,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(e){function t(r){return function(a,c,d){return this.request(Ei(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}_i.prototype[e]=t(),_i.prototype[e+"Form"]=t(!0)});class $f{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const c=new Promise(d=>{r.subscribe(d),a=d}).then(o);return c.cancel=function(){r.unsubscribe(a)},c},e(function(a,c,d){r.reason||(r.reason=new Na(a,c,d),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new $f(function(o){e=o}),cancel:e}}}function aF(n){return function(t){return n.apply(null,t)}}function sF(n){return B.isObject(n)&&n.isAxiosError===!0}const qh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qh).forEach(([n,e])=>{qh[e]=n});function FE(n){const e=new _i(n),t=pE(_i.prototype.request,e);return B.extend(t,_i.prototype,e,{allOwnKeys:!0}),B.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return FE(Ei(n,o))},t}const dt=FE(Vs);dt.Axios=_i;dt.CanceledError=Na;dt.CancelToken=$f;dt.isCancel=OE;dt.VERSION=BE;dt.toFormData=tu;dt.AxiosError=Te;dt.Cancel=dt.CanceledError;dt.all=function(e){return Promise.all(e)};dt.spread=aF;dt.isAxiosError=sF;dt.mergeConfig=Ei;dt.AxiosHeaders=yn;dt.formToJSON=n=>RE(B.isHTMLForm(n)?new FormData(n):n);dt.getAdapter=UE.getAdapter;dt.HttpStatusCode=qh;dt.default=dt;async function cF({url:n,method:e,header:t={},body:r,bearerToken:o}){const a=o?{Authorization:`Bearer ${o}`}:{};try{return(await dt({url:n,method:e,headers:{...t,...a},data:r??{}})).data}catch(c){throw console.error(`Request failed for ${e} ${n}:`,c),c}}var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lF(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ss={exports:{}};/**
45
+ `):" "+Ov(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:Gh};function rh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Na(null,n)}function Pv(n){return rh(n),n.headers=yn.from(n.headers),n.data=nh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xE.getAdapter(n.adapter||Vs.adapter)(n).then(function(r){return rh(n),r.data=nh.call(n,n.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return RE(r)||(rh(n),r&&r.response&&(r.response.data=nh.call(n,n.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const UE="1.7.9",ru={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{ru[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Mv={};ru.transitional=function(e,t,r){function o(a,c){return"[Axios v"+UE+"] Transitional option '"+a+"'"+c+(r?". "+r:"")}return(a,c,d)=>{if(e===!1)throw new Te(o(c," has been removed"+(t?" in "+t:"")),Te.ERR_DEPRECATED);return t&&!Mv[c]&&(Mv[c]=!0,console.warn(o(c," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,c,d):!0}};ru.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function iF(n,e,t){if(typeof n!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const a=r[o],c=e[a];if(c){const d=n[a],h=d===void 0||c(d,a,n);if(h!==!0)throw new Te("option "+a+" must be "+h,Te.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const fl={assertOptions:iF,validators:ru},Mr=fl.validators;class _i{constructor(e){this.defaults=e,this.interceptors={request:new bv,response:new bv}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
46
+ `+a):r.stack=a}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ei(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&fl.assertOptions(r,{silentJSONParsing:Mr.transitional(Mr.boolean),forcedJSONParsing:Mr.transitional(Mr.boolean),clarifyTimeoutError:Mr.transitional(Mr.boolean)},!1),o!=null&&(B.isFunction(o)?t.paramsSerializer={serialize:o}:fl.assertOptions(o,{encode:Mr.function,serialize:Mr.function},!0)),fl.assertOptions(t,{baseUrl:Mr.spelling("baseURL"),withXsrfToken:Mr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&B.merge(a.common,a[t.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],C=>{delete a[C]}),t.headers=yn.concat(c,a);const d=[];let h=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(t)===!1||(h=h&&T.synchronous,d.unshift(T.fulfilled,T.rejected))});const m=[];this.interceptors.response.forEach(function(T){m.push(T.fulfilled,T.rejected)});let g,v=0,p;if(!h){const C=[Pv.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,m),p=C.length,g=Promise.resolve(t);v<p;)g=g.then(C[v++],C[v++]);return g}p=d.length;let w=t;for(v=0;v<p;){const C=d[v++],T=d[v++];try{w=C(w)}catch(k){T.call(this,k);break}}try{g=Pv.call(this,w)}catch(C){return Promise.reject(C)}for(v=0,p=m.length;v<p;)g=g.then(m[v++],m[v++]);return g}getUri(e){e=Ei(this.defaults,e);const t=PE(e.baseURL,e.url);return AE(t,e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){_i.prototype[e]=function(t,r){return this.request(Ei(r||{},{method:e,url:t,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(e){function t(r){return function(a,c,d){return this.request(Ei(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}_i.prototype[e]=t(),_i.prototype[e+"Form"]=t(!0)});class $f{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const c=new Promise(d=>{r.subscribe(d),a=d}).then(o);return c.cancel=function(){r.unsubscribe(a)},c},e(function(a,c,d){r.reason||(r.reason=new Na(a,c,d),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new $f(function(o){e=o}),cancel:e}}}function aF(n){return function(t){return n.apply(null,t)}}function sF(n){return B.isObject(n)&&n.isAxiosError===!0}const qh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qh).forEach(([n,e])=>{qh[e]=n});function BE(n){const e=new _i(n),t=gE(_i.prototype.request,e);return B.extend(t,_i.prototype,e,{allOwnKeys:!0}),B.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return BE(Ei(n,o))},t}const dt=BE(Vs);dt.Axios=_i;dt.CanceledError=Na;dt.CancelToken=$f;dt.isCancel=RE;dt.VERSION=UE;dt.toFormData=tu;dt.AxiosError=Te;dt.Cancel=dt.CanceledError;dt.all=function(e){return Promise.all(e)};dt.spread=aF;dt.isAxiosError=sF;dt.mergeConfig=Ei;dt.AxiosHeaders=yn;dt.formToJSON=n=>NE(B.isHTMLForm(n)?new FormData(n):n);dt.getAdapter=xE.getAdapter;dt.HttpStatusCode=qh;dt.default=dt;async function cF({url:n,method:e,header:t={},body:r,bearerToken:o}){const a=o?{Authorization:`Bearer ${o}`}:{};try{return(await dt({url:n,method:e,headers:{...t,...a},data:r??{}})).data}catch(c){throw console.error(`Request failed for ${e} ${n}:`,c),c}}var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lF(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ss={exports:{}};/**
47
47
  * @license
48
48
  * Lodash <https://lodash.com/>
49
49
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
50
50
  * Released under MIT license <https://lodash.com/license>
51
51
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
52
52
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
53
- */var uF=ss.exports,Dv;function dF(){return Dv||(Dv=1,function(n,e){(function(){var t,r="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",v=1,p=2,w=4,C=1,T=2,k=1,I=2,N=4,D=8,L=16,K=32,q=64,M=128,ce=256,ae=512,X=30,ee="...",ue=800,Be=16,Ct=1,rn=2,qt=3,Mt=1/0,at=9007199254740991,Et=17976931348623157e292,on=NaN,St=4294967295,jo=St-1,La=St>>>1,xa=[["ary",M],["bind",k],["bindKey",I],["curry",D],["curryRight",L],["flip",ae],["partial",K],["partialRight",q],["rearg",ce]],Sr="[object Arguments]",Yo="[object Array]",Ua="[object AsyncFunction]",Ar="[object Boolean]",qr="[object Date]",Ba="[object DOMException]",_o="[object Error]",vo="[object Function]",yo="[object GeneratorFunction]",Ft="[object Map]",En="[object Number]",Jo="[object Null]",wn="[object Object]",A="[object Promise]",R="[object Proxy]",G="[object RegExp]",oe="[object Set]",je="[object String]",Ze="[object Symbol]",Me="[object Undefined]",V="[object WeakMap]",J="[object WeakSet]",Ne="[object ArrayBuffer]",ze="[object DataView]",ar="[object Float32Array]",Co="[object Float64Array]",kr="[object Int8Array]",sr="[object Int16Array]",Fa="[object Int32Array]",ki="[object Uint8Array]",yu="[object Uint8ClampedArray]",Cu="[object Uint16Array]",Eu="[object Uint32Array]",$T=/\b__p \+= '';/g,KT=/\b(__p \+=) '' \+/g,WT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pm=/&(?:amp|lt|gt|quot|#39);/g,Mm=/[&<>"']/g,zT=RegExp(Pm.source),GT=RegExp(Mm.source),qT=/<%-([\s\S]+?)%>/g,jT=/<%([\s\S]+?)%>/g,Dm=/<%=([\s\S]+?)%>/g,YT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JT=/^\w*$/,QT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wu=/[\\^$.*+?()[\]{}|]/g,XT=RegExp(wu.source),Tu=/^\s+/,ZT=/\s/,eb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tb=/\{\n\/\* \[wrapped with (.+)\] \*/,nb=/,? & /,rb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ob=/[()=,{}\[\]\/\s]/,ib=/\\(\\)?/g,ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lm=/\w*$/,sb=/^[-+]0x[0-9a-f]+$/i,cb=/^0b[01]+$/i,lb=/^\[object .+?Constructor\]$/,ub=/^0o[0-7]+$/i,db=/^(?:0|[1-9]\d*)$/,hb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zs=/($^)/,fb=/['\n\r\u2028\u2029\\]/g,Gs="\\ud800-\\udfff",mb="\\u0300-\\u036f",gb="\\ufe20-\\ufe2f",pb="\\u20d0-\\u20ff",xm=mb+gb+pb,Um="\\u2700-\\u27bf",Bm="a-z\\xdf-\\xf6\\xf8-\\xff",_b="\\xac\\xb1\\xd7\\xf7",vb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yb="\\u2000-\\u206f",Cb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fm="A-Z\\xc0-\\xd6\\xd8-\\xde",Vm="\\ufe0e\\ufe0f",Hm=_b+vb+yb+Cb,bu="['’]",Eb="["+Gs+"]",$m="["+Hm+"]",qs="["+xm+"]",Km="\\d+",wb="["+Um+"]",Wm="["+Bm+"]",zm="[^"+Gs+Hm+Km+Um+Bm+Fm+"]",Iu="\\ud83c[\\udffb-\\udfff]",Tb="(?:"+qs+"|"+Iu+")",Gm="[^"+Gs+"]",Su="(?:\\ud83c[\\udde6-\\uddff]){2}",Au="[\\ud800-\\udbff][\\udc00-\\udfff]",Ni="["+Fm+"]",qm="\\u200d",jm="(?:"+Wm+"|"+zm+")",bb="(?:"+Ni+"|"+zm+")",Ym="(?:"+bu+"(?:d|ll|m|re|s|t|ve))?",Jm="(?:"+bu+"(?:D|LL|M|RE|S|T|VE))?",Qm=Tb+"?",Xm="["+Vm+"]?",Ib="(?:"+qm+"(?:"+[Gm,Su,Au].join("|")+")"+Xm+Qm+")*",Sb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ab="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zm=Xm+Qm+Ib,kb="(?:"+[wb,Su,Au].join("|")+")"+Zm,Nb="(?:"+[Gm+qs+"?",qs,Su,Au,Eb].join("|")+")",Rb=RegExp(bu,"g"),Ob=RegExp(qs,"g"),ku=RegExp(Iu+"(?="+Iu+")|"+Nb+Zm,"g"),Pb=RegExp([Ni+"?"+Wm+"+"+Ym+"(?="+[$m,Ni,"$"].join("|")+")",bb+"+"+Jm+"(?="+[$m,Ni+jm,"$"].join("|")+")",Ni+"?"+jm+"+"+Ym,Ni+"+"+Jm,Ab,Sb,Km,kb].join("|"),"g"),Mb=RegExp("["+qm+Gs+xm+Vm+"]"),Db=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xb=-1,rt={};rt[ar]=rt[Co]=rt[kr]=rt[sr]=rt[Fa]=rt[ki]=rt[yu]=rt[Cu]=rt[Eu]=!0,rt[Sr]=rt[Yo]=rt[Ne]=rt[Ar]=rt[ze]=rt[qr]=rt[_o]=rt[vo]=rt[Ft]=rt[En]=rt[wn]=rt[G]=rt[oe]=rt[je]=rt[V]=!1;var et={};et[Sr]=et[Yo]=et[Ne]=et[ze]=et[Ar]=et[qr]=et[ar]=et[Co]=et[kr]=et[sr]=et[Fa]=et[Ft]=et[En]=et[wn]=et[G]=et[oe]=et[je]=et[Ze]=et[ki]=et[yu]=et[Cu]=et[Eu]=!0,et[_o]=et[vo]=et[V]=!1;var Ub={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Vb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hb=parseFloat,$b=parseInt,eg=typeof Hc=="object"&&Hc&&Hc.Object===Object&&Hc,Kb=typeof self=="object"&&self&&self.Object===Object&&self,Vt=eg||Kb||Function("return this")(),Nu=e&&!e.nodeType&&e,Qo=Nu&&!0&&n&&!n.nodeType&&n,tg=Qo&&Qo.exports===Nu,Ru=tg&&eg.process,Vn=function(){try{var O=Qo&&Qo.require&&Qo.require("util").types;return O||Ru&&Ru.binding&&Ru.binding("util")}catch{}}(),ng=Vn&&Vn.isArrayBuffer,rg=Vn&&Vn.isDate,og=Vn&&Vn.isMap,ig=Vn&&Vn.isRegExp,ag=Vn&&Vn.isSet,sg=Vn&&Vn.isTypedArray;function Tn(O,H,U){switch(U.length){case 0:return O.call(H);case 1:return O.call(H,U[0]);case 2:return O.call(H,U[0],U[1]);case 3:return O.call(H,U[0],U[1],U[2])}return O.apply(H,U)}function Wb(O,H,U,re){for(var Ce=-1,Fe=O==null?0:O.length;++Ce<Fe;){var At=O[Ce];H(re,At,U(At),O)}return re}function Hn(O,H){for(var U=-1,re=O==null?0:O.length;++U<re&&H(O[U],U,O)!==!1;);return O}function zb(O,H){for(var U=O==null?0:O.length;U--&&H(O[U],U,O)!==!1;);return O}function cg(O,H){for(var U=-1,re=O==null?0:O.length;++U<re;)if(!H(O[U],U,O))return!1;return!0}function Eo(O,H){for(var U=-1,re=O==null?0:O.length,Ce=0,Fe=[];++U<re;){var At=O[U];H(At,U,O)&&(Fe[Ce++]=At)}return Fe}function js(O,H){var U=O==null?0:O.length;return!!U&&Ri(O,H,0)>-1}function Ou(O,H,U){for(var re=-1,Ce=O==null?0:O.length;++re<Ce;)if(U(H,O[re]))return!0;return!1}function st(O,H){for(var U=-1,re=O==null?0:O.length,Ce=Array(re);++U<re;)Ce[U]=H(O[U],U,O);return Ce}function wo(O,H){for(var U=-1,re=H.length,Ce=O.length;++U<re;)O[Ce+U]=H[U];return O}function Pu(O,H,U,re){var Ce=-1,Fe=O==null?0:O.length;for(re&&Fe&&(U=O[++Ce]);++Ce<Fe;)U=H(U,O[Ce],Ce,O);return U}function Gb(O,H,U,re){var Ce=O==null?0:O.length;for(re&&Ce&&(U=O[--Ce]);Ce--;)U=H(U,O[Ce],Ce,O);return U}function Mu(O,H){for(var U=-1,re=O==null?0:O.length;++U<re;)if(H(O[U],U,O))return!0;return!1}var qb=Du("length");function jb(O){return O.split("")}function Yb(O){return O.match(rb)||[]}function lg(O,H,U){var re;return U(O,function(Ce,Fe,At){if(H(Ce,Fe,At))return re=Fe,!1}),re}function Ys(O,H,U,re){for(var Ce=O.length,Fe=U+(re?1:-1);re?Fe--:++Fe<Ce;)if(H(O[Fe],Fe,O))return Fe;return-1}function Ri(O,H,U){return H===H?sI(O,H,U):Ys(O,ug,U)}function Jb(O,H,U,re){for(var Ce=U-1,Fe=O.length;++Ce<Fe;)if(re(O[Ce],H))return Ce;return-1}function ug(O){return O!==O}function dg(O,H){var U=O==null?0:O.length;return U?xu(O,H)/U:on}function Du(O){return function(H){return H==null?t:H[O]}}function Lu(O){return function(H){return O==null?t:O[H]}}function hg(O,H,U,re,Ce){return Ce(O,function(Fe,At,Ye){U=re?(re=!1,Fe):H(U,Fe,At,Ye)}),U}function Qb(O,H){var U=O.length;for(O.sort(H);U--;)O[U]=O[U].value;return O}function xu(O,H){for(var U,re=-1,Ce=O.length;++re<Ce;){var Fe=H(O[re]);Fe!==t&&(U=U===t?Fe:U+Fe)}return U}function Uu(O,H){for(var U=-1,re=Array(O);++U<O;)re[U]=H(U);return re}function Xb(O,H){return st(H,function(U){return[U,O[U]]})}function fg(O){return O&&O.slice(0,_g(O)+1).replace(Tu,"")}function bn(O){return function(H){return O(H)}}function Bu(O,H){return st(H,function(U){return O[U]})}function Va(O,H){return O.has(H)}function mg(O,H){for(var U=-1,re=O.length;++U<re&&Ri(H,O[U],0)>-1;);return U}function gg(O,H){for(var U=O.length;U--&&Ri(H,O[U],0)>-1;);return U}function Zb(O,H){for(var U=O.length,re=0;U--;)O[U]===H&&++re;return re}var eI=Lu(Ub),tI=Lu(Bb);function nI(O){return"\\"+Vb[O]}function rI(O,H){return O==null?t:O[H]}function Oi(O){return Mb.test(O)}function oI(O){return Db.test(O)}function iI(O){for(var H,U=[];!(H=O.next()).done;)U.push(H.value);return U}function Fu(O){var H=-1,U=Array(O.size);return O.forEach(function(re,Ce){U[++H]=[Ce,re]}),U}function pg(O,H){return function(U){return O(H(U))}}function To(O,H){for(var U=-1,re=O.length,Ce=0,Fe=[];++U<re;){var At=O[U];(At===H||At===g)&&(O[U]=g,Fe[Ce++]=U)}return Fe}function Js(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=re}),U}function aI(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=[re,re]}),U}function sI(O,H,U){for(var re=U-1,Ce=O.length;++re<Ce;)if(O[re]===H)return re;return-1}function cI(O,H,U){for(var re=U+1;re--;)if(O[re]===H)return re;return re}function Pi(O){return Oi(O)?uI(O):qb(O)}function cr(O){return Oi(O)?dI(O):jb(O)}function _g(O){for(var H=O.length;H--&&ZT.test(O.charAt(H)););return H}var lI=Lu(Fb);function uI(O){for(var H=ku.lastIndex=0;ku.test(O);)++H;return H}function dI(O){return O.match(ku)||[]}function hI(O){return O.match(Pb)||[]}var fI=function O(H){H=H==null?Vt:Mi.defaults(Vt.Object(),H,Mi.pick(Vt,Lb));var U=H.Array,re=H.Date,Ce=H.Error,Fe=H.Function,At=H.Math,Ye=H.Object,Vu=H.RegExp,mI=H.String,$n=H.TypeError,Qs=U.prototype,gI=Fe.prototype,Di=Ye.prototype,Xs=H["__core-js_shared__"],Zs=gI.toString,$e=Di.hasOwnProperty,pI=0,vg=function(){var i=/[^.]+$/.exec(Xs&&Xs.keys&&Xs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ec=Di.toString,_I=Zs.call(Ye),vI=Vt._,yI=Vu("^"+Zs.call($e).replace(wu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tc=tg?H.Buffer:t,bo=H.Symbol,nc=H.Uint8Array,yg=tc?tc.allocUnsafe:t,rc=pg(Ye.getPrototypeOf,Ye),Cg=Ye.create,Eg=Di.propertyIsEnumerable,oc=Qs.splice,wg=bo?bo.isConcatSpreadable:t,Ha=bo?bo.iterator:t,Xo=bo?bo.toStringTag:t,ic=function(){try{var i=ri(Ye,"defineProperty");return i({},"",{}),i}catch{}}(),CI=H.clearTimeout!==Vt.clearTimeout&&H.clearTimeout,EI=re&&re.now!==Vt.Date.now&&re.now,wI=H.setTimeout!==Vt.setTimeout&&H.setTimeout,ac=At.ceil,sc=At.floor,Hu=Ye.getOwnPropertySymbols,TI=tc?tc.isBuffer:t,Tg=H.isFinite,bI=Qs.join,II=pg(Ye.keys,Ye),kt=At.max,jt=At.min,SI=re.now,AI=H.parseInt,bg=At.random,kI=Qs.reverse,$u=ri(H,"DataView"),$a=ri(H,"Map"),Ku=ri(H,"Promise"),Li=ri(H,"Set"),Ka=ri(H,"WeakMap"),Wa=ri(Ye,"create"),cc=Ka&&new Ka,xi={},NI=oi($u),RI=oi($a),OI=oi(Ku),PI=oi(Li),MI=oi(Ka),lc=bo?bo.prototype:t,za=lc?lc.valueOf:t,Ig=lc?lc.toString:t;function y(i){if(ht(i)&&!Ee(i)&&!(i instanceof Oe)){if(i instanceof Kn)return i;if($e.call(i,"__wrapped__"))return Sp(i)}return new Kn(i)}var Ui=function(){function i(){}return function(s){if(!ut(s))return{};if(Cg)return Cg(s);i.prototype=s;var u=new i;return i.prototype=t,u}}();function uc(){}function Kn(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=t}y.templateSettings={escape:qT,evaluate:jT,interpolate:Dm,variable:"",imports:{_:y}},y.prototype=uc.prototype,y.prototype.constructor=y,Kn.prototype=Ui(uc.prototype),Kn.prototype.constructor=Kn;function Oe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=St,this.__views__=[]}function DI(){var i=new Oe(this.__wrapped__);return i.__actions__=hn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=hn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=hn(this.__views__),i}function LI(){if(this.__filtered__){var i=new Oe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function xI(){var i=this.__wrapped__.value(),s=this.__dir__,u=Ee(i),f=s<0,_=u?i.length:0,E=jS(0,_,this.__views__),b=E.start,S=E.end,P=S-b,W=f?S:b-1,z=this.__iteratees__,j=z.length,te=0,se=jt(P,this.__takeCount__);if(!u||!f&&_==P&&se==P)return Yg(i,this.__actions__);var he=[];e:for(;P--&&te<se;){W+=s;for(var Ie=-1,fe=i[W];++Ie<j;){var Re=z[Ie],Pe=Re.iteratee,An=Re.type,cn=Pe(fe);if(An==rn)fe=cn;else if(!cn){if(An==Ct)continue e;break e}}he[te++]=fe}return he}Oe.prototype=Ui(uc.prototype),Oe.prototype.constructor=Oe;function Zo(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function UI(){this.__data__=Wa?Wa(null):{},this.size=0}function BI(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function FI(i){var s=this.__data__;if(Wa){var u=s[i];return u===h?t:u}return $e.call(s,i)?s[i]:t}function VI(i){var s=this.__data__;return Wa?s[i]!==t:$e.call(s,i)}function HI(i,s){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=Wa&&s===t?h:s,this}Zo.prototype.clear=UI,Zo.prototype.delete=BI,Zo.prototype.get=FI,Zo.prototype.has=VI,Zo.prototype.set=HI;function jr(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function $I(){this.__data__=[],this.size=0}function KI(i){var s=this.__data__,u=dc(s,i);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():oc.call(s,u,1),--this.size,!0}function WI(i){var s=this.__data__,u=dc(s,i);return u<0?t:s[u][1]}function zI(i){return dc(this.__data__,i)>-1}function GI(i,s){var u=this.__data__,f=dc(u,i);return f<0?(++this.size,u.push([i,s])):u[f][1]=s,this}jr.prototype.clear=$I,jr.prototype.delete=KI,jr.prototype.get=WI,jr.prototype.has=zI,jr.prototype.set=GI;function Yr(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function qI(){this.size=0,this.__data__={hash:new Zo,map:new($a||jr),string:new Zo}}function jI(i){var s=Tc(this,i).delete(i);return this.size-=s?1:0,s}function YI(i){return Tc(this,i).get(i)}function JI(i){return Tc(this,i).has(i)}function QI(i,s){var u=Tc(this,i),f=u.size;return u.set(i,s),this.size+=u.size==f?0:1,this}Yr.prototype.clear=qI,Yr.prototype.delete=jI,Yr.prototype.get=YI,Yr.prototype.has=JI,Yr.prototype.set=QI;function ei(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new Yr;++s<u;)this.add(i[s])}function XI(i){return this.__data__.set(i,h),this}function ZI(i){return this.__data__.has(i)}ei.prototype.add=ei.prototype.push=XI,ei.prototype.has=ZI;function lr(i){var s=this.__data__=new jr(i);this.size=s.size}function eS(){this.__data__=new jr,this.size=0}function tS(i){var s=this.__data__,u=s.delete(i);return this.size=s.size,u}function nS(i){return this.__data__.get(i)}function rS(i){return this.__data__.has(i)}function oS(i,s){var u=this.__data__;if(u instanceof jr){var f=u.__data__;if(!$a||f.length<o-1)return f.push([i,s]),this.size=++u.size,this;u=this.__data__=new Yr(f)}return u.set(i,s),this.size=u.size,this}lr.prototype.clear=eS,lr.prototype.delete=tS,lr.prototype.get=nS,lr.prototype.has=rS,lr.prototype.set=oS;function Sg(i,s){var u=Ee(i),f=!u&&ii(i),_=!u&&!f&&No(i),E=!u&&!f&&!_&&Hi(i),b=u||f||_||E,S=b?Uu(i.length,mI):[],P=S.length;for(var W in i)(s||$e.call(i,W))&&!(b&&(W=="length"||_&&(W=="offset"||W=="parent")||E&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Zr(W,P)))&&S.push(W);return S}function Ag(i){var s=i.length;return s?i[ed(0,s-1)]:t}function iS(i,s){return bc(hn(i),ti(s,0,i.length))}function aS(i){return bc(hn(i))}function Wu(i,s,u){(u!==t&&!ur(i[s],u)||u===t&&!(s in i))&&Jr(i,s,u)}function Ga(i,s,u){var f=i[s];(!($e.call(i,s)&&ur(f,u))||u===t&&!(s in i))&&Jr(i,s,u)}function dc(i,s){for(var u=i.length;u--;)if(ur(i[u][0],s))return u;return-1}function sS(i,s,u,f){return Io(i,function(_,E,b){s(f,_,u(_),b)}),f}function kg(i,s){return i&&Rr(s,Dt(s),i)}function cS(i,s){return i&&Rr(s,mn(s),i)}function Jr(i,s,u){s=="__proto__"&&ic?ic(i,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[s]=u}function zu(i,s){for(var u=-1,f=s.length,_=U(f),E=i==null;++u<f;)_[u]=E?t:Id(i,s[u]);return _}function ti(i,s,u){return i===i&&(u!==t&&(i=i<=u?i:u),s!==t&&(i=i>=s?i:s)),i}function Wn(i,s,u,f,_,E){var b,S=s&v,P=s&p,W=s&w;if(u&&(b=_?u(i,f,_,E):u(i)),b!==t)return b;if(!ut(i))return i;var z=Ee(i);if(z){if(b=JS(i),!S)return hn(i,b)}else{var j=Yt(i),te=j==vo||j==yo;if(No(i))return Xg(i,S);if(j==wn||j==Sr||te&&!_){if(b=P||te?{}:_p(i),!S)return P?FS(i,cS(b,i)):BS(i,kg(b,i))}else{if(!et[j])return _?i:{};b=QS(i,j,S)}}E||(E=new lr);var se=E.get(i);if(se)return se;E.set(i,b),Gp(i)?i.forEach(function(fe){b.add(Wn(fe,s,u,fe,i,E))}):Wp(i)&&i.forEach(function(fe,Re){b.set(Re,Wn(fe,s,u,Re,i,E))});var he=W?P?dd:ud:P?mn:Dt,Ie=z?t:he(i);return Hn(Ie||i,function(fe,Re){Ie&&(Re=fe,fe=i[Re]),Ga(b,Re,Wn(fe,s,u,Re,i,E))}),b}function lS(i){var s=Dt(i);return function(u){return Ng(u,i,s)}}function Ng(i,s,u){var f=u.length;if(i==null)return!f;for(i=Ye(i);f--;){var _=u[f],E=s[_],b=i[_];if(b===t&&!(_ in i)||!E(b))return!1}return!0}function Rg(i,s,u){if(typeof i!="function")throw new $n(c);return Za(function(){i.apply(t,u)},s)}function qa(i,s,u,f){var _=-1,E=js,b=!0,S=i.length,P=[],W=s.length;if(!S)return P;u&&(s=st(s,bn(u))),f?(E=Ou,b=!1):s.length>=o&&(E=Va,b=!1,s=new ei(s));e:for(;++_<S;){var z=i[_],j=u==null?z:u(z);if(z=f||z!==0?z:0,b&&j===j){for(var te=W;te--;)if(s[te]===j)continue e;P.push(z)}else E(s,j,f)||P.push(z)}return P}var Io=rp(Nr),Og=rp(qu,!0);function uS(i,s){var u=!0;return Io(i,function(f,_,E){return u=!!s(f,_,E),u}),u}function hc(i,s,u){for(var f=-1,_=i.length;++f<_;){var E=i[f],b=s(E);if(b!=null&&(S===t?b===b&&!Sn(b):u(b,S)))var S=b,P=E}return P}function dS(i,s,u,f){var _=i.length;for(u=be(u),u<0&&(u=-u>_?0:_+u),f=f===t||f>_?_:be(f),f<0&&(f+=_),f=u>f?0:jp(f);u<f;)i[u++]=s;return i}function Pg(i,s){var u=[];return Io(i,function(f,_,E){s(f,_,E)&&u.push(f)}),u}function Ht(i,s,u,f,_){var E=-1,b=i.length;for(u||(u=ZS),_||(_=[]);++E<b;){var S=i[E];s>0&&u(S)?s>1?Ht(S,s-1,u,f,_):wo(_,S):f||(_[_.length]=S)}return _}var Gu=op(),Mg=op(!0);function Nr(i,s){return i&&Gu(i,s,Dt)}function qu(i,s){return i&&Mg(i,s,Dt)}function fc(i,s){return Eo(s,function(u){return eo(i[u])})}function ni(i,s){s=Ao(s,i);for(var u=0,f=s.length;i!=null&&u<f;)i=i[Or(s[u++])];return u&&u==f?i:t}function Dg(i,s,u){var f=s(i);return Ee(i)?f:wo(f,u(i))}function an(i){return i==null?i===t?Me:Jo:Xo&&Xo in Ye(i)?qS(i):aA(i)}function ju(i,s){return i>s}function hS(i,s){return i!=null&&$e.call(i,s)}function fS(i,s){return i!=null&&s in Ye(i)}function mS(i,s,u){return i>=jt(s,u)&&i<kt(s,u)}function Yu(i,s,u){for(var f=u?Ou:js,_=i[0].length,E=i.length,b=E,S=U(E),P=1/0,W=[];b--;){var z=i[b];b&&s&&(z=st(z,bn(s))),P=jt(z.length,P),S[b]=!u&&(s||_>=120&&z.length>=120)?new ei(b&&z):t}z=i[0];var j=-1,te=S[0];e:for(;++j<_&&W.length<P;){var se=z[j],he=s?s(se):se;if(se=u||se!==0?se:0,!(te?Va(te,he):f(W,he,u))){for(b=E;--b;){var Ie=S[b];if(!(Ie?Va(Ie,he):f(i[b],he,u)))continue e}te&&te.push(he),W.push(se)}}return W}function gS(i,s,u,f){return Nr(i,function(_,E,b){s(f,u(_),E,b)}),f}function ja(i,s,u){s=Ao(s,i),i=Ep(i,s);var f=i==null?i:i[Or(Gn(s))];return f==null?t:Tn(f,i,u)}function Lg(i){return ht(i)&&an(i)==Sr}function pS(i){return ht(i)&&an(i)==Ne}function _S(i){return ht(i)&&an(i)==qr}function Ya(i,s,u,f,_){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:vS(i,s,u,f,Ya,_)}function vS(i,s,u,f,_,E){var b=Ee(i),S=Ee(s),P=b?Yo:Yt(i),W=S?Yo:Yt(s);P=P==Sr?wn:P,W=W==Sr?wn:W;var z=P==wn,j=W==wn,te=P==W;if(te&&No(i)){if(!No(s))return!1;b=!0,z=!1}if(te&&!z)return E||(E=new lr),b||Hi(i)?mp(i,s,u,f,_,E):zS(i,s,P,u,f,_,E);if(!(u&C)){var se=z&&$e.call(i,"__wrapped__"),he=j&&$e.call(s,"__wrapped__");if(se||he){var Ie=se?i.value():i,fe=he?s.value():s;return E||(E=new lr),_(Ie,fe,u,f,E)}}return te?(E||(E=new lr),GS(i,s,u,f,_,E)):!1}function yS(i){return ht(i)&&Yt(i)==Ft}function Ju(i,s,u,f){var _=u.length,E=_,b=!f;if(i==null)return!E;for(i=Ye(i);_--;){var S=u[_];if(b&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++_<E;){S=u[_];var P=S[0],W=i[P],z=S[1];if(b&&S[2]){if(W===t&&!(P in i))return!1}else{var j=new lr;if(f)var te=f(W,z,P,i,s,j);if(!(te===t?Ya(z,W,C|T,f,j):te))return!1}}return!0}function xg(i){if(!ut(i)||tA(i))return!1;var s=eo(i)?yI:lb;return s.test(oi(i))}function CS(i){return ht(i)&&an(i)==G}function ES(i){return ht(i)&&Yt(i)==oe}function wS(i){return ht(i)&&Rc(i.length)&&!!rt[an(i)]}function Ug(i){return typeof i=="function"?i:i==null?gn:typeof i=="object"?Ee(i)?Vg(i[0],i[1]):Fg(i):i_(i)}function Qu(i){if(!Xa(i))return II(i);var s=[];for(var u in Ye(i))$e.call(i,u)&&u!="constructor"&&s.push(u);return s}function TS(i){if(!ut(i))return iA(i);var s=Xa(i),u=[];for(var f in i)f=="constructor"&&(s||!$e.call(i,f))||u.push(f);return u}function Xu(i,s){return i<s}function Bg(i,s){var u=-1,f=fn(i)?U(i.length):[];return Io(i,function(_,E,b){f[++u]=s(_,E,b)}),f}function Fg(i){var s=fd(i);return s.length==1&&s[0][2]?yp(s[0][0],s[0][1]):function(u){return u===i||Ju(u,i,s)}}function Vg(i,s){return gd(i)&&vp(s)?yp(Or(i),s):function(u){var f=Id(u,i);return f===t&&f===s?Sd(u,i):Ya(s,f,C|T)}}function mc(i,s,u,f,_){i!==s&&Gu(s,function(E,b){if(_||(_=new lr),ut(E))bS(i,s,b,u,mc,f,_);else{var S=f?f(_d(i,b),E,b+"",i,s,_):t;S===t&&(S=E),Wu(i,b,S)}},mn)}function bS(i,s,u,f,_,E,b){var S=_d(i,u),P=_d(s,u),W=b.get(P);if(W){Wu(i,u,W);return}var z=E?E(S,P,u+"",i,s,b):t,j=z===t;if(j){var te=Ee(P),se=!te&&No(P),he=!te&&!se&&Hi(P);z=P,te||se||he?Ee(S)?z=S:pt(S)?z=hn(S):se?(j=!1,z=Xg(P,!0)):he?(j=!1,z=Zg(P,!0)):z=[]:es(P)||ii(P)?(z=S,ii(S)?z=Yp(S):(!ut(S)||eo(S))&&(z=_p(P))):j=!1}j&&(b.set(P,z),_(z,P,f,E,b),b.delete(P)),Wu(i,u,z)}function Hg(i,s){var u=i.length;if(u)return s+=s<0?u:0,Zr(s,u)?i[s]:t}function $g(i,s,u){s.length?s=st(s,function(E){return Ee(E)?function(b){return ni(b,E.length===1?E[0]:E)}:E}):s=[gn];var f=-1;s=st(s,bn(de()));var _=Bg(i,function(E,b,S){var P=st(s,function(W){return W(E)});return{criteria:P,index:++f,value:E}});return Qb(_,function(E,b){return US(E,b,u)})}function IS(i,s){return Kg(i,s,function(u,f){return Sd(i,f)})}function Kg(i,s,u){for(var f=-1,_=s.length,E={};++f<_;){var b=s[f],S=ni(i,b);u(S,b)&&Ja(E,Ao(b,i),S)}return E}function SS(i){return function(s){return ni(s,i)}}function Zu(i,s,u,f){var _=f?Jb:Ri,E=-1,b=s.length,S=i;for(i===s&&(s=hn(s)),u&&(S=st(i,bn(u)));++E<b;)for(var P=0,W=s[E],z=u?u(W):W;(P=_(S,z,P,f))>-1;)S!==i&&oc.call(S,P,1),oc.call(i,P,1);return i}function Wg(i,s){for(var u=i?s.length:0,f=u-1;u--;){var _=s[u];if(u==f||_!==E){var E=_;Zr(_)?oc.call(i,_,1):rd(i,_)}}return i}function ed(i,s){return i+sc(bg()*(s-i+1))}function AS(i,s,u,f){for(var _=-1,E=kt(ac((s-i)/(u||1)),0),b=U(E);E--;)b[f?E:++_]=i,i+=u;return b}function td(i,s){var u="";if(!i||s<1||s>at)return u;do s%2&&(u+=i),s=sc(s/2),s&&(i+=i);while(s);return u}function Se(i,s){return vd(Cp(i,s,gn),i+"")}function kS(i){return Ag($i(i))}function NS(i,s){var u=$i(i);return bc(u,ti(s,0,u.length))}function Ja(i,s,u,f){if(!ut(i))return i;s=Ao(s,i);for(var _=-1,E=s.length,b=E-1,S=i;S!=null&&++_<E;){var P=Or(s[_]),W=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return i;if(_!=b){var z=S[P];W=f?f(z,P,S):t,W===t&&(W=ut(z)?z:Zr(s[_+1])?[]:{})}Ga(S,P,W),S=S[P]}return i}var zg=cc?function(i,s){return cc.set(i,s),i}:gn,RS=ic?function(i,s){return ic(i,"toString",{configurable:!0,enumerable:!1,value:kd(s),writable:!0})}:gn;function OS(i){return bc($i(i))}function zn(i,s,u){var f=-1,_=i.length;s<0&&(s=-s>_?0:_+s),u=u>_?_:u,u<0&&(u+=_),_=s>u?0:u-s>>>0,s>>>=0;for(var E=U(_);++f<_;)E[f]=i[f+s];return E}function PS(i,s){var u;return Io(i,function(f,_,E){return u=s(f,_,E),!u}),!!u}function gc(i,s,u){var f=0,_=i==null?f:i.length;if(typeof s=="number"&&s===s&&_<=La){for(;f<_;){var E=f+_>>>1,b=i[E];b!==null&&!Sn(b)&&(u?b<=s:b<s)?f=E+1:_=E}return _}return nd(i,s,gn,u)}function nd(i,s,u,f){var _=0,E=i==null?0:i.length;if(E===0)return 0;s=u(s);for(var b=s!==s,S=s===null,P=Sn(s),W=s===t;_<E;){var z=sc((_+E)/2),j=u(i[z]),te=j!==t,se=j===null,he=j===j,Ie=Sn(j);if(b)var fe=f||he;else W?fe=he&&(f||te):S?fe=he&&te&&(f||!se):P?fe=he&&te&&!se&&(f||!Ie):se||Ie?fe=!1:fe=f?j<=s:j<s;fe?_=z+1:E=z}return jt(E,jo)}function Gg(i,s){for(var u=-1,f=i.length,_=0,E=[];++u<f;){var b=i[u],S=s?s(b):b;if(!u||!ur(S,P)){var P=S;E[_++]=b===0?0:b}}return E}function qg(i){return typeof i=="number"?i:Sn(i)?on:+i}function In(i){if(typeof i=="string")return i;if(Ee(i))return st(i,In)+"";if(Sn(i))return Ig?Ig.call(i):"";var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function So(i,s,u){var f=-1,_=js,E=i.length,b=!0,S=[],P=S;if(u)b=!1,_=Ou;else if(E>=o){var W=s?null:KS(i);if(W)return Js(W);b=!1,_=Va,P=new ei}else P=s?[]:S;e:for(;++f<E;){var z=i[f],j=s?s(z):z;if(z=u||z!==0?z:0,b&&j===j){for(var te=P.length;te--;)if(P[te]===j)continue e;s&&P.push(j),S.push(z)}else _(P,j,u)||(P!==S&&P.push(j),S.push(z))}return S}function rd(i,s){return s=Ao(s,i),i=Ep(i,s),i==null||delete i[Or(Gn(s))]}function jg(i,s,u,f){return Ja(i,s,u(ni(i,s)),f)}function pc(i,s,u,f){for(var _=i.length,E=f?_:-1;(f?E--:++E<_)&&s(i[E],E,i););return u?zn(i,f?0:E,f?E+1:_):zn(i,f?E+1:0,f?_:E)}function Yg(i,s){var u=i;return u instanceof Oe&&(u=u.value()),Pu(s,function(f,_){return _.func.apply(_.thisArg,wo([f],_.args))},u)}function od(i,s,u){var f=i.length;if(f<2)return f?So(i[0]):[];for(var _=-1,E=U(f);++_<f;)for(var b=i[_],S=-1;++S<f;)S!=_&&(E[_]=qa(E[_]||b,i[S],s,u));return So(Ht(E,1),s,u)}function Jg(i,s,u){for(var f=-1,_=i.length,E=s.length,b={};++f<_;){var S=f<E?s[f]:t;u(b,i[f],S)}return b}function id(i){return pt(i)?i:[]}function ad(i){return typeof i=="function"?i:gn}function Ao(i,s){return Ee(i)?i:gd(i,s)?[i]:Ip(He(i))}var MS=Se;function ko(i,s,u){var f=i.length;return u=u===t?f:u,!s&&u>=f?i:zn(i,s,u)}var Qg=CI||function(i){return Vt.clearTimeout(i)};function Xg(i,s){if(s)return i.slice();var u=i.length,f=yg?yg(u):new i.constructor(u);return i.copy(f),f}function sd(i){var s=new i.constructor(i.byteLength);return new nc(s).set(new nc(i)),s}function DS(i,s){var u=s?sd(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function LS(i){var s=new i.constructor(i.source,Lm.exec(i));return s.lastIndex=i.lastIndex,s}function xS(i){return za?Ye(za.call(i)):{}}function Zg(i,s){var u=s?sd(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function ep(i,s){if(i!==s){var u=i!==t,f=i===null,_=i===i,E=Sn(i),b=s!==t,S=s===null,P=s===s,W=Sn(s);if(!S&&!W&&!E&&i>s||E&&b&&P&&!S&&!W||f&&b&&P||!u&&P||!_)return 1;if(!f&&!E&&!W&&i<s||W&&u&&_&&!f&&!E||S&&u&&_||!b&&_||!P)return-1}return 0}function US(i,s,u){for(var f=-1,_=i.criteria,E=s.criteria,b=_.length,S=u.length;++f<b;){var P=ep(_[f],E[f]);if(P){if(f>=S)return P;var W=u[f];return P*(W=="desc"?-1:1)}}return i.index-s.index}function tp(i,s,u,f){for(var _=-1,E=i.length,b=u.length,S=-1,P=s.length,W=kt(E-b,0),z=U(P+W),j=!f;++S<P;)z[S]=s[S];for(;++_<b;)(j||_<E)&&(z[u[_]]=i[_]);for(;W--;)z[S++]=i[_++];return z}function np(i,s,u,f){for(var _=-1,E=i.length,b=-1,S=u.length,P=-1,W=s.length,z=kt(E-S,0),j=U(z+W),te=!f;++_<z;)j[_]=i[_];for(var se=_;++P<W;)j[se+P]=s[P];for(;++b<S;)(te||_<E)&&(j[se+u[b]]=i[_++]);return j}function hn(i,s){var u=-1,f=i.length;for(s||(s=U(f));++u<f;)s[u]=i[u];return s}function Rr(i,s,u,f){var _=!u;u||(u={});for(var E=-1,b=s.length;++E<b;){var S=s[E],P=f?f(u[S],i[S],S,u,i):t;P===t&&(P=i[S]),_?Jr(u,S,P):Ga(u,S,P)}return u}function BS(i,s){return Rr(i,md(i),s)}function FS(i,s){return Rr(i,gp(i),s)}function _c(i,s){return function(u,f){var _=Ee(u)?Wb:sS,E=s?s():{};return _(u,i,de(f,2),E)}}function Bi(i){return Se(function(s,u){var f=-1,_=u.length,E=_>1?u[_-1]:t,b=_>2?u[2]:t;for(E=i.length>3&&typeof E=="function"?(_--,E):t,b&&sn(u[0],u[1],b)&&(E=_<3?t:E,_=1),s=Ye(s);++f<_;){var S=u[f];S&&i(s,S,f,E)}return s})}function rp(i,s){return function(u,f){if(u==null)return u;if(!fn(u))return i(u,f);for(var _=u.length,E=s?_:-1,b=Ye(u);(s?E--:++E<_)&&f(b[E],E,b)!==!1;);return u}}function op(i){return function(s,u,f){for(var _=-1,E=Ye(s),b=f(s),S=b.length;S--;){var P=b[i?S:++_];if(u(E[P],P,E)===!1)break}return s}}function VS(i,s,u){var f=s&k,_=Qa(i);function E(){var b=this&&this!==Vt&&this instanceof E?_:i;return b.apply(f?u:this,arguments)}return E}function ip(i){return function(s){s=He(s);var u=Oi(s)?cr(s):t,f=u?u[0]:s.charAt(0),_=u?ko(u,1).join(""):s.slice(1);return f[i]()+_}}function Fi(i){return function(s){return Pu(r_(n_(s).replace(Rb,"")),i,"")}}function Qa(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var u=Ui(i.prototype),f=i.apply(u,s);return ut(f)?f:u}}function HS(i,s,u){var f=Qa(i);function _(){for(var E=arguments.length,b=U(E),S=E,P=Vi(_);S--;)b[S]=arguments[S];var W=E<3&&b[0]!==P&&b[E-1]!==P?[]:To(b,P);if(E-=W.length,E<u)return up(i,s,vc,_.placeholder,t,b,W,t,t,u-E);var z=this&&this!==Vt&&this instanceof _?f:i;return Tn(z,this,b)}return _}function ap(i){return function(s,u,f){var _=Ye(s);if(!fn(s)){var E=de(u,3);s=Dt(s),u=function(S){return E(_[S],S,_)}}var b=i(s,u,f);return b>-1?_[E?s[b]:b]:t}}function sp(i){return Xr(function(s){var u=s.length,f=u,_=Kn.prototype.thru;for(i&&s.reverse();f--;){var E=s[f];if(typeof E!="function")throw new $n(c);if(_&&!b&&wc(E)=="wrapper")var b=new Kn([],!0)}for(f=b?f:u;++f<u;){E=s[f];var S=wc(E),P=S=="wrapper"?hd(E):t;P&&pd(P[0])&&P[1]==(M|D|K|ce)&&!P[4].length&&P[9]==1?b=b[wc(P[0])].apply(b,P[3]):b=E.length==1&&pd(E)?b[S]():b.thru(E)}return function(){var W=arguments,z=W[0];if(b&&W.length==1&&Ee(z))return b.plant(z).value();for(var j=0,te=u?s[j].apply(this,W):z;++j<u;)te=s[j].call(this,te);return te}})}function vc(i,s,u,f,_,E,b,S,P,W){var z=s&M,j=s&k,te=s&I,se=s&(D|L),he=s&ae,Ie=te?t:Qa(i);function fe(){for(var Re=arguments.length,Pe=U(Re),An=Re;An--;)Pe[An]=arguments[An];if(se)var cn=Vi(fe),kn=Zb(Pe,cn);if(f&&(Pe=tp(Pe,f,_,se)),E&&(Pe=np(Pe,E,b,se)),Re-=kn,se&&Re<W){var _t=To(Pe,cn);return up(i,s,vc,fe.placeholder,u,Pe,_t,S,P,W-Re)}var dr=j?u:this,no=te?dr[i]:i;return Re=Pe.length,S?Pe=sA(Pe,S):he&&Re>1&&Pe.reverse(),z&&P<Re&&(Pe.length=P),this&&this!==Vt&&this instanceof fe&&(no=Ie||Qa(no)),no.apply(dr,Pe)}return fe}function cp(i,s){return function(u,f){return gS(u,i,s(f),{})}}function yc(i,s){return function(u,f){var _;if(u===t&&f===t)return s;if(u!==t&&(_=u),f!==t){if(_===t)return f;typeof u=="string"||typeof f=="string"?(u=In(u),f=In(f)):(u=qg(u),f=qg(f)),_=i(u,f)}return _}}function cd(i){return Xr(function(s){return s=st(s,bn(de())),Se(function(u){var f=this;return i(s,function(_){return Tn(_,f,u)})})})}function Cc(i,s){s=s===t?" ":In(s);var u=s.length;if(u<2)return u?td(s,i):s;var f=td(s,ac(i/Pi(s)));return Oi(s)?ko(cr(f),0,i).join(""):f.slice(0,i)}function $S(i,s,u,f){var _=s&k,E=Qa(i);function b(){for(var S=-1,P=arguments.length,W=-1,z=f.length,j=U(z+P),te=this&&this!==Vt&&this instanceof b?E:i;++W<z;)j[W]=f[W];for(;P--;)j[W++]=arguments[++S];return Tn(te,_?u:this,j)}return b}function lp(i){return function(s,u,f){return f&&typeof f!="number"&&sn(s,u,f)&&(u=f=t),s=to(s),u===t?(u=s,s=0):u=to(u),f=f===t?s<u?1:-1:to(f),AS(s,u,f,i)}}function Ec(i){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=qn(s),u=qn(u)),i(s,u)}}function up(i,s,u,f,_,E,b,S,P,W){var z=s&D,j=z?b:t,te=z?t:b,se=z?E:t,he=z?t:E;s|=z?K:q,s&=~(z?q:K),s&N||(s&=~(k|I));var Ie=[i,s,_,se,j,he,te,S,P,W],fe=u.apply(t,Ie);return pd(i)&&wp(fe,Ie),fe.placeholder=f,Tp(fe,i,s)}function ld(i){var s=At[i];return function(u,f){if(u=qn(u),f=f==null?0:jt(be(f),292),f&&Tg(u)){var _=(He(u)+"e").split("e"),E=s(_[0]+"e"+(+_[1]+f));return _=(He(E)+"e").split("e"),+(_[0]+"e"+(+_[1]-f))}return s(u)}}var KS=Li&&1/Js(new Li([,-0]))[1]==Mt?function(i){return new Li(i)}:Od;function dp(i){return function(s){var u=Yt(s);return u==Ft?Fu(s):u==oe?aI(s):Xb(s,i(s))}}function Qr(i,s,u,f,_,E,b,S){var P=s&I;if(!P&&typeof i!="function")throw new $n(c);var W=f?f.length:0;if(W||(s&=~(K|q),f=_=t),b=b===t?b:kt(be(b),0),S=S===t?S:be(S),W-=_?_.length:0,s&q){var z=f,j=_;f=_=t}var te=P?t:hd(i),se=[i,s,u,f,_,z,j,E,b,S];if(te&&oA(se,te),i=se[0],s=se[1],u=se[2],f=se[3],_=se[4],S=se[9]=se[9]===t?P?0:i.length:kt(se[9]-W,0),!S&&s&(D|L)&&(s&=~(D|L)),!s||s==k)var he=VS(i,s,u);else s==D||s==L?he=HS(i,s,S):(s==K||s==(k|K))&&!_.length?he=$S(i,s,u,f):he=vc.apply(t,se);var Ie=te?zg:wp;return Tp(Ie(he,se),i,s)}function hp(i,s,u,f){return i===t||ur(i,Di[u])&&!$e.call(f,u)?s:i}function fp(i,s,u,f,_,E){return ut(i)&&ut(s)&&(E.set(s,i),mc(i,s,t,fp,E),E.delete(s)),i}function WS(i){return es(i)?t:i}function mp(i,s,u,f,_,E){var b=u&C,S=i.length,P=s.length;if(S!=P&&!(b&&P>S))return!1;var W=E.get(i),z=E.get(s);if(W&&z)return W==s&&z==i;var j=-1,te=!0,se=u&T?new ei:t;for(E.set(i,s),E.set(s,i);++j<S;){var he=i[j],Ie=s[j];if(f)var fe=b?f(Ie,he,j,s,i,E):f(he,Ie,j,i,s,E);if(fe!==t){if(fe)continue;te=!1;break}if(se){if(!Mu(s,function(Re,Pe){if(!Va(se,Pe)&&(he===Re||_(he,Re,u,f,E)))return se.push(Pe)})){te=!1;break}}else if(!(he===Ie||_(he,Ie,u,f,E))){te=!1;break}}return E.delete(i),E.delete(s),te}function zS(i,s,u,f,_,E,b){switch(u){case ze:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Ne:return!(i.byteLength!=s.byteLength||!E(new nc(i),new nc(s)));case Ar:case qr:case En:return ur(+i,+s);case _o:return i.name==s.name&&i.message==s.message;case G:case je:return i==s+"";case Ft:var S=Fu;case oe:var P=f&C;if(S||(S=Js),i.size!=s.size&&!P)return!1;var W=b.get(i);if(W)return W==s;f|=T,b.set(i,s);var z=mp(S(i),S(s),f,_,E,b);return b.delete(i),z;case Ze:if(za)return za.call(i)==za.call(s)}return!1}function GS(i,s,u,f,_,E){var b=u&C,S=ud(i),P=S.length,W=ud(s),z=W.length;if(P!=z&&!b)return!1;for(var j=P;j--;){var te=S[j];if(!(b?te in s:$e.call(s,te)))return!1}var se=E.get(i),he=E.get(s);if(se&&he)return se==s&&he==i;var Ie=!0;E.set(i,s),E.set(s,i);for(var fe=b;++j<P;){te=S[j];var Re=i[te],Pe=s[te];if(f)var An=b?f(Pe,Re,te,s,i,E):f(Re,Pe,te,i,s,E);if(!(An===t?Re===Pe||_(Re,Pe,u,f,E):An)){Ie=!1;break}fe||(fe=te=="constructor")}if(Ie&&!fe){var cn=i.constructor,kn=s.constructor;cn!=kn&&"constructor"in i&&"constructor"in s&&!(typeof cn=="function"&&cn instanceof cn&&typeof kn=="function"&&kn instanceof kn)&&(Ie=!1)}return E.delete(i),E.delete(s),Ie}function Xr(i){return vd(Cp(i,t,Np),i+"")}function ud(i){return Dg(i,Dt,md)}function dd(i){return Dg(i,mn,gp)}var hd=cc?function(i){return cc.get(i)}:Od;function wc(i){for(var s=i.name+"",u=xi[s],f=$e.call(xi,s)?u.length:0;f--;){var _=u[f],E=_.func;if(E==null||E==i)return _.name}return s}function Vi(i){var s=$e.call(y,"placeholder")?y:i;return s.placeholder}function de(){var i=y.iteratee||Nd;return i=i===Nd?Ug:i,arguments.length?i(arguments[0],arguments[1]):i}function Tc(i,s){var u=i.__data__;return eA(s)?u[typeof s=="string"?"string":"hash"]:u.map}function fd(i){for(var s=Dt(i),u=s.length;u--;){var f=s[u],_=i[f];s[u]=[f,_,vp(_)]}return s}function ri(i,s){var u=rI(i,s);return xg(u)?u:t}function qS(i){var s=$e.call(i,Xo),u=i[Xo];try{i[Xo]=t;var f=!0}catch{}var _=ec.call(i);return f&&(s?i[Xo]=u:delete i[Xo]),_}var md=Hu?function(i){return i==null?[]:(i=Ye(i),Eo(Hu(i),function(s){return Eg.call(i,s)}))}:Pd,gp=Hu?function(i){for(var s=[];i;)wo(s,md(i)),i=rc(i);return s}:Pd,Yt=an;($u&&Yt(new $u(new ArrayBuffer(1)))!=ze||$a&&Yt(new $a)!=Ft||Ku&&Yt(Ku.resolve())!=A||Li&&Yt(new Li)!=oe||Ka&&Yt(new Ka)!=V)&&(Yt=function(i){var s=an(i),u=s==wn?i.constructor:t,f=u?oi(u):"";if(f)switch(f){case NI:return ze;case RI:return Ft;case OI:return A;case PI:return oe;case MI:return V}return s});function jS(i,s,u){for(var f=-1,_=u.length;++f<_;){var E=u[f],b=E.size;switch(E.type){case"drop":i+=b;break;case"dropRight":s-=b;break;case"take":s=jt(s,i+b);break;case"takeRight":i=kt(i,s-b);break}}return{start:i,end:s}}function YS(i){var s=i.match(tb);return s?s[1].split(nb):[]}function pp(i,s,u){s=Ao(s,i);for(var f=-1,_=s.length,E=!1;++f<_;){var b=Or(s[f]);if(!(E=i!=null&&u(i,b)))break;i=i[b]}return E||++f!=_?E:(_=i==null?0:i.length,!!_&&Rc(_)&&Zr(b,_)&&(Ee(i)||ii(i)))}function JS(i){var s=i.length,u=new i.constructor(s);return s&&typeof i[0]=="string"&&$e.call(i,"index")&&(u.index=i.index,u.input=i.input),u}function _p(i){return typeof i.constructor=="function"&&!Xa(i)?Ui(rc(i)):{}}function QS(i,s,u){var f=i.constructor;switch(s){case Ne:return sd(i);case Ar:case qr:return new f(+i);case ze:return DS(i,u);case ar:case Co:case kr:case sr:case Fa:case ki:case yu:case Cu:case Eu:return Zg(i,u);case Ft:return new f;case En:case je:return new f(i);case G:return LS(i);case oe:return new f;case Ze:return xS(i)}}function XS(i,s){var u=s.length;if(!u)return i;var f=u-1;return s[f]=(u>1?"& ":"")+s[f],s=s.join(u>2?", ":" "),i.replace(eb,`{
53
+ */var uF=ss.exports,Dv;function dF(){return Dv||(Dv=1,function(n,e){(function(){var t,r="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",v=1,p=2,w=4,C=1,T=2,k=1,I=2,N=4,D=8,L=16,K=32,q=64,M=128,ce=256,ae=512,X=30,ee="...",ue=800,Be=16,Ct=1,rn=2,qt=3,Mt=1/0,at=9007199254740991,Et=17976931348623157e292,on=NaN,St=4294967295,jo=St-1,La=St>>>1,xa=[["ary",M],["bind",k],["bindKey",I],["curry",D],["curryRight",L],["flip",ae],["partial",K],["partialRight",q],["rearg",ce]],Sr="[object Arguments]",Yo="[object Array]",Ua="[object AsyncFunction]",Ar="[object Boolean]",qr="[object Date]",Ba="[object DOMException]",_o="[object Error]",vo="[object Function]",yo="[object GeneratorFunction]",Ft="[object Map]",En="[object Number]",Jo="[object Null]",wn="[object Object]",A="[object Promise]",R="[object Proxy]",G="[object RegExp]",oe="[object Set]",je="[object String]",Ze="[object Symbol]",Me="[object Undefined]",V="[object WeakMap]",J="[object WeakSet]",Ne="[object ArrayBuffer]",ze="[object DataView]",ar="[object Float32Array]",Co="[object Float64Array]",kr="[object Int8Array]",sr="[object Int16Array]",Fa="[object Int32Array]",ki="[object Uint8Array]",yu="[object Uint8ClampedArray]",Cu="[object Uint16Array]",Eu="[object Uint32Array]",HT=/\b__p \+= '';/g,$T=/\b(__p \+=) '' \+/g,KT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pm=/&(?:amp|lt|gt|quot|#39);/g,Mm=/[&<>"']/g,WT=RegExp(Pm.source),zT=RegExp(Mm.source),GT=/<%-([\s\S]+?)%>/g,qT=/<%([\s\S]+?)%>/g,Dm=/<%=([\s\S]+?)%>/g,jT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YT=/^\w*$/,JT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wu=/[\\^$.*+?()[\]{}|]/g,QT=RegExp(wu.source),Tu=/^\s+/,XT=/\s/,ZT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eb=/\{\n\/\* \[wrapped with (.+)\] \*/,tb=/,? & /,nb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rb=/[()=,{}\[\]\/\s]/,ob=/\\(\\)?/g,ib=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lm=/\w*$/,ab=/^[-+]0x[0-9a-f]+$/i,sb=/^0b[01]+$/i,cb=/^\[object .+?Constructor\]$/,lb=/^0o[0-7]+$/i,ub=/^(?:0|[1-9]\d*)$/,db=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zs=/($^)/,hb=/['\n\r\u2028\u2029\\]/g,Gs="\\ud800-\\udfff",fb="\\u0300-\\u036f",mb="\\ufe20-\\ufe2f",gb="\\u20d0-\\u20ff",xm=fb+mb+gb,Um="\\u2700-\\u27bf",Bm="a-z\\xdf-\\xf6\\xf8-\\xff",pb="\\xac\\xb1\\xd7\\xf7",_b="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vb="\\u2000-\\u206f",yb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fm="A-Z\\xc0-\\xd6\\xd8-\\xde",Vm="\\ufe0e\\ufe0f",Hm=pb+_b+vb+yb,bu="['’]",Cb="["+Gs+"]",$m="["+Hm+"]",qs="["+xm+"]",Km="\\d+",Eb="["+Um+"]",Wm="["+Bm+"]",zm="[^"+Gs+Hm+Km+Um+Bm+Fm+"]",Iu="\\ud83c[\\udffb-\\udfff]",wb="(?:"+qs+"|"+Iu+")",Gm="[^"+Gs+"]",Su="(?:\\ud83c[\\udde6-\\uddff]){2}",Au="[\\ud800-\\udbff][\\udc00-\\udfff]",Ni="["+Fm+"]",qm="\\u200d",jm="(?:"+Wm+"|"+zm+")",Tb="(?:"+Ni+"|"+zm+")",Ym="(?:"+bu+"(?:d|ll|m|re|s|t|ve))?",Jm="(?:"+bu+"(?:D|LL|M|RE|S|T|VE))?",Qm=wb+"?",Xm="["+Vm+"]?",bb="(?:"+qm+"(?:"+[Gm,Su,Au].join("|")+")"+Xm+Qm+")*",Ib="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zm=Xm+Qm+bb,Ab="(?:"+[Eb,Su,Au].join("|")+")"+Zm,kb="(?:"+[Gm+qs+"?",qs,Su,Au,Cb].join("|")+")",Nb=RegExp(bu,"g"),Rb=RegExp(qs,"g"),ku=RegExp(Iu+"(?="+Iu+")|"+kb+Zm,"g"),Ob=RegExp([Ni+"?"+Wm+"+"+Ym+"(?="+[$m,Ni,"$"].join("|")+")",Tb+"+"+Jm+"(?="+[$m,Ni+jm,"$"].join("|")+")",Ni+"?"+jm+"+"+Ym,Ni+"+"+Jm,Sb,Ib,Km,Ab].join("|"),"g"),Pb=RegExp("["+qm+Gs+xm+Vm+"]"),Mb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Db=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lb=-1,rt={};rt[ar]=rt[Co]=rt[kr]=rt[sr]=rt[Fa]=rt[ki]=rt[yu]=rt[Cu]=rt[Eu]=!0,rt[Sr]=rt[Yo]=rt[Ne]=rt[Ar]=rt[ze]=rt[qr]=rt[_o]=rt[vo]=rt[Ft]=rt[En]=rt[wn]=rt[G]=rt[oe]=rt[je]=rt[V]=!1;var et={};et[Sr]=et[Yo]=et[Ne]=et[ze]=et[Ar]=et[qr]=et[ar]=et[Co]=et[kr]=et[sr]=et[Fa]=et[Ft]=et[En]=et[wn]=et[G]=et[oe]=et[je]=et[Ze]=et[ki]=et[yu]=et[Cu]=et[Eu]=!0,et[_o]=et[vo]=et[V]=!1;var xb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ub={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Fb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vb=parseFloat,Hb=parseInt,eg=typeof Hc=="object"&&Hc&&Hc.Object===Object&&Hc,$b=typeof self=="object"&&self&&self.Object===Object&&self,Vt=eg||$b||Function("return this")(),Nu=e&&!e.nodeType&&e,Qo=Nu&&!0&&n&&!n.nodeType&&n,tg=Qo&&Qo.exports===Nu,Ru=tg&&eg.process,Vn=function(){try{var O=Qo&&Qo.require&&Qo.require("util").types;return O||Ru&&Ru.binding&&Ru.binding("util")}catch{}}(),ng=Vn&&Vn.isArrayBuffer,rg=Vn&&Vn.isDate,og=Vn&&Vn.isMap,ig=Vn&&Vn.isRegExp,ag=Vn&&Vn.isSet,sg=Vn&&Vn.isTypedArray;function Tn(O,H,U){switch(U.length){case 0:return O.call(H);case 1:return O.call(H,U[0]);case 2:return O.call(H,U[0],U[1]);case 3:return O.call(H,U[0],U[1],U[2])}return O.apply(H,U)}function Kb(O,H,U,re){for(var Ce=-1,Fe=O==null?0:O.length;++Ce<Fe;){var At=O[Ce];H(re,At,U(At),O)}return re}function Hn(O,H){for(var U=-1,re=O==null?0:O.length;++U<re&&H(O[U],U,O)!==!1;);return O}function Wb(O,H){for(var U=O==null?0:O.length;U--&&H(O[U],U,O)!==!1;);return O}function cg(O,H){for(var U=-1,re=O==null?0:O.length;++U<re;)if(!H(O[U],U,O))return!1;return!0}function Eo(O,H){for(var U=-1,re=O==null?0:O.length,Ce=0,Fe=[];++U<re;){var At=O[U];H(At,U,O)&&(Fe[Ce++]=At)}return Fe}function js(O,H){var U=O==null?0:O.length;return!!U&&Ri(O,H,0)>-1}function Ou(O,H,U){for(var re=-1,Ce=O==null?0:O.length;++re<Ce;)if(U(H,O[re]))return!0;return!1}function st(O,H){for(var U=-1,re=O==null?0:O.length,Ce=Array(re);++U<re;)Ce[U]=H(O[U],U,O);return Ce}function wo(O,H){for(var U=-1,re=H.length,Ce=O.length;++U<re;)O[Ce+U]=H[U];return O}function Pu(O,H,U,re){var Ce=-1,Fe=O==null?0:O.length;for(re&&Fe&&(U=O[++Ce]);++Ce<Fe;)U=H(U,O[Ce],Ce,O);return U}function zb(O,H,U,re){var Ce=O==null?0:O.length;for(re&&Ce&&(U=O[--Ce]);Ce--;)U=H(U,O[Ce],Ce,O);return U}function Mu(O,H){for(var U=-1,re=O==null?0:O.length;++U<re;)if(H(O[U],U,O))return!0;return!1}var Gb=Du("length");function qb(O){return O.split("")}function jb(O){return O.match(nb)||[]}function lg(O,H,U){var re;return U(O,function(Ce,Fe,At){if(H(Ce,Fe,At))return re=Fe,!1}),re}function Ys(O,H,U,re){for(var Ce=O.length,Fe=U+(re?1:-1);re?Fe--:++Fe<Ce;)if(H(O[Fe],Fe,O))return Fe;return-1}function Ri(O,H,U){return H===H?aI(O,H,U):Ys(O,ug,U)}function Yb(O,H,U,re){for(var Ce=U-1,Fe=O.length;++Ce<Fe;)if(re(O[Ce],H))return Ce;return-1}function ug(O){return O!==O}function dg(O,H){var U=O==null?0:O.length;return U?xu(O,H)/U:on}function Du(O){return function(H){return H==null?t:H[O]}}function Lu(O){return function(H){return O==null?t:O[H]}}function hg(O,H,U,re,Ce){return Ce(O,function(Fe,At,Ye){U=re?(re=!1,Fe):H(U,Fe,At,Ye)}),U}function Jb(O,H){var U=O.length;for(O.sort(H);U--;)O[U]=O[U].value;return O}function xu(O,H){for(var U,re=-1,Ce=O.length;++re<Ce;){var Fe=H(O[re]);Fe!==t&&(U=U===t?Fe:U+Fe)}return U}function Uu(O,H){for(var U=-1,re=Array(O);++U<O;)re[U]=H(U);return re}function Qb(O,H){return st(H,function(U){return[U,O[U]]})}function fg(O){return O&&O.slice(0,_g(O)+1).replace(Tu,"")}function bn(O){return function(H){return O(H)}}function Bu(O,H){return st(H,function(U){return O[U]})}function Va(O,H){return O.has(H)}function mg(O,H){for(var U=-1,re=O.length;++U<re&&Ri(H,O[U],0)>-1;);return U}function gg(O,H){for(var U=O.length;U--&&Ri(H,O[U],0)>-1;);return U}function Xb(O,H){for(var U=O.length,re=0;U--;)O[U]===H&&++re;return re}var Zb=Lu(xb),eI=Lu(Ub);function tI(O){return"\\"+Fb[O]}function nI(O,H){return O==null?t:O[H]}function Oi(O){return Pb.test(O)}function rI(O){return Mb.test(O)}function oI(O){for(var H,U=[];!(H=O.next()).done;)U.push(H.value);return U}function Fu(O){var H=-1,U=Array(O.size);return O.forEach(function(re,Ce){U[++H]=[Ce,re]}),U}function pg(O,H){return function(U){return O(H(U))}}function To(O,H){for(var U=-1,re=O.length,Ce=0,Fe=[];++U<re;){var At=O[U];(At===H||At===g)&&(O[U]=g,Fe[Ce++]=U)}return Fe}function Js(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=re}),U}function iI(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=[re,re]}),U}function aI(O,H,U){for(var re=U-1,Ce=O.length;++re<Ce;)if(O[re]===H)return re;return-1}function sI(O,H,U){for(var re=U+1;re--;)if(O[re]===H)return re;return re}function Pi(O){return Oi(O)?lI(O):Gb(O)}function cr(O){return Oi(O)?uI(O):qb(O)}function _g(O){for(var H=O.length;H--&&XT.test(O.charAt(H)););return H}var cI=Lu(Bb);function lI(O){for(var H=ku.lastIndex=0;ku.test(O);)++H;return H}function uI(O){return O.match(ku)||[]}function dI(O){return O.match(Ob)||[]}var hI=function O(H){H=H==null?Vt:Mi.defaults(Vt.Object(),H,Mi.pick(Vt,Db));var U=H.Array,re=H.Date,Ce=H.Error,Fe=H.Function,At=H.Math,Ye=H.Object,Vu=H.RegExp,fI=H.String,$n=H.TypeError,Qs=U.prototype,mI=Fe.prototype,Di=Ye.prototype,Xs=H["__core-js_shared__"],Zs=mI.toString,$e=Di.hasOwnProperty,gI=0,vg=function(){var i=/[^.]+$/.exec(Xs&&Xs.keys&&Xs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ec=Di.toString,pI=Zs.call(Ye),_I=Vt._,vI=Vu("^"+Zs.call($e).replace(wu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tc=tg?H.Buffer:t,bo=H.Symbol,nc=H.Uint8Array,yg=tc?tc.allocUnsafe:t,rc=pg(Ye.getPrototypeOf,Ye),Cg=Ye.create,Eg=Di.propertyIsEnumerable,oc=Qs.splice,wg=bo?bo.isConcatSpreadable:t,Ha=bo?bo.iterator:t,Xo=bo?bo.toStringTag:t,ic=function(){try{var i=ri(Ye,"defineProperty");return i({},"",{}),i}catch{}}(),yI=H.clearTimeout!==Vt.clearTimeout&&H.clearTimeout,CI=re&&re.now!==Vt.Date.now&&re.now,EI=H.setTimeout!==Vt.setTimeout&&H.setTimeout,ac=At.ceil,sc=At.floor,Hu=Ye.getOwnPropertySymbols,wI=tc?tc.isBuffer:t,Tg=H.isFinite,TI=Qs.join,bI=pg(Ye.keys,Ye),kt=At.max,jt=At.min,II=re.now,SI=H.parseInt,bg=At.random,AI=Qs.reverse,$u=ri(H,"DataView"),$a=ri(H,"Map"),Ku=ri(H,"Promise"),Li=ri(H,"Set"),Ka=ri(H,"WeakMap"),Wa=ri(Ye,"create"),cc=Ka&&new Ka,xi={},kI=oi($u),NI=oi($a),RI=oi(Ku),OI=oi(Li),PI=oi(Ka),lc=bo?bo.prototype:t,za=lc?lc.valueOf:t,Ig=lc?lc.toString:t;function y(i){if(ht(i)&&!Ee(i)&&!(i instanceof Oe)){if(i instanceof Kn)return i;if($e.call(i,"__wrapped__"))return Sp(i)}return new Kn(i)}var Ui=function(){function i(){}return function(s){if(!ut(s))return{};if(Cg)return Cg(s);i.prototype=s;var u=new i;return i.prototype=t,u}}();function uc(){}function Kn(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=t}y.templateSettings={escape:GT,evaluate:qT,interpolate:Dm,variable:"",imports:{_:y}},y.prototype=uc.prototype,y.prototype.constructor=y,Kn.prototype=Ui(uc.prototype),Kn.prototype.constructor=Kn;function Oe(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=St,this.__views__=[]}function MI(){var i=new Oe(this.__wrapped__);return i.__actions__=hn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=hn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=hn(this.__views__),i}function DI(){if(this.__filtered__){var i=new Oe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function LI(){var i=this.__wrapped__.value(),s=this.__dir__,u=Ee(i),f=s<0,_=u?i.length:0,E=qS(0,_,this.__views__),b=E.start,S=E.end,P=S-b,W=f?S:b-1,z=this.__iteratees__,j=z.length,te=0,se=jt(P,this.__takeCount__);if(!u||!f&&_==P&&se==P)return Yg(i,this.__actions__);var he=[];e:for(;P--&&te<se;){W+=s;for(var Ie=-1,fe=i[W];++Ie<j;){var Re=z[Ie],Pe=Re.iteratee,An=Re.type,cn=Pe(fe);if(An==rn)fe=cn;else if(!cn){if(An==Ct)continue e;break e}}he[te++]=fe}return he}Oe.prototype=Ui(uc.prototype),Oe.prototype.constructor=Oe;function Zo(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function xI(){this.__data__=Wa?Wa(null):{},this.size=0}function UI(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function BI(i){var s=this.__data__;if(Wa){var u=s[i];return u===h?t:u}return $e.call(s,i)?s[i]:t}function FI(i){var s=this.__data__;return Wa?s[i]!==t:$e.call(s,i)}function VI(i,s){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=Wa&&s===t?h:s,this}Zo.prototype.clear=xI,Zo.prototype.delete=UI,Zo.prototype.get=BI,Zo.prototype.has=FI,Zo.prototype.set=VI;function jr(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function HI(){this.__data__=[],this.size=0}function $I(i){var s=this.__data__,u=dc(s,i);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():oc.call(s,u,1),--this.size,!0}function KI(i){var s=this.__data__,u=dc(s,i);return u<0?t:s[u][1]}function WI(i){return dc(this.__data__,i)>-1}function zI(i,s){var u=this.__data__,f=dc(u,i);return f<0?(++this.size,u.push([i,s])):u[f][1]=s,this}jr.prototype.clear=HI,jr.prototype.delete=$I,jr.prototype.get=KI,jr.prototype.has=WI,jr.prototype.set=zI;function Yr(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s<u;){var f=i[s];this.set(f[0],f[1])}}function GI(){this.size=0,this.__data__={hash:new Zo,map:new($a||jr),string:new Zo}}function qI(i){var s=Tc(this,i).delete(i);return this.size-=s?1:0,s}function jI(i){return Tc(this,i).get(i)}function YI(i){return Tc(this,i).has(i)}function JI(i,s){var u=Tc(this,i),f=u.size;return u.set(i,s),this.size+=u.size==f?0:1,this}Yr.prototype.clear=GI,Yr.prototype.delete=qI,Yr.prototype.get=jI,Yr.prototype.has=YI,Yr.prototype.set=JI;function ei(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new Yr;++s<u;)this.add(i[s])}function QI(i){return this.__data__.set(i,h),this}function XI(i){return this.__data__.has(i)}ei.prototype.add=ei.prototype.push=QI,ei.prototype.has=XI;function lr(i){var s=this.__data__=new jr(i);this.size=s.size}function ZI(){this.__data__=new jr,this.size=0}function eS(i){var s=this.__data__,u=s.delete(i);return this.size=s.size,u}function tS(i){return this.__data__.get(i)}function nS(i){return this.__data__.has(i)}function rS(i,s){var u=this.__data__;if(u instanceof jr){var f=u.__data__;if(!$a||f.length<o-1)return f.push([i,s]),this.size=++u.size,this;u=this.__data__=new Yr(f)}return u.set(i,s),this.size=u.size,this}lr.prototype.clear=ZI,lr.prototype.delete=eS,lr.prototype.get=tS,lr.prototype.has=nS,lr.prototype.set=rS;function Sg(i,s){var u=Ee(i),f=!u&&ii(i),_=!u&&!f&&No(i),E=!u&&!f&&!_&&Hi(i),b=u||f||_||E,S=b?Uu(i.length,fI):[],P=S.length;for(var W in i)(s||$e.call(i,W))&&!(b&&(W=="length"||_&&(W=="offset"||W=="parent")||E&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Zr(W,P)))&&S.push(W);return S}function Ag(i){var s=i.length;return s?i[ed(0,s-1)]:t}function oS(i,s){return bc(hn(i),ti(s,0,i.length))}function iS(i){return bc(hn(i))}function Wu(i,s,u){(u!==t&&!ur(i[s],u)||u===t&&!(s in i))&&Jr(i,s,u)}function Ga(i,s,u){var f=i[s];(!($e.call(i,s)&&ur(f,u))||u===t&&!(s in i))&&Jr(i,s,u)}function dc(i,s){for(var u=i.length;u--;)if(ur(i[u][0],s))return u;return-1}function aS(i,s,u,f){return Io(i,function(_,E,b){s(f,_,u(_),b)}),f}function kg(i,s){return i&&Rr(s,Dt(s),i)}function sS(i,s){return i&&Rr(s,mn(s),i)}function Jr(i,s,u){s=="__proto__"&&ic?ic(i,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[s]=u}function zu(i,s){for(var u=-1,f=s.length,_=U(f),E=i==null;++u<f;)_[u]=E?t:Id(i,s[u]);return _}function ti(i,s,u){return i===i&&(u!==t&&(i=i<=u?i:u),s!==t&&(i=i>=s?i:s)),i}function Wn(i,s,u,f,_,E){var b,S=s&v,P=s&p,W=s&w;if(u&&(b=_?u(i,f,_,E):u(i)),b!==t)return b;if(!ut(i))return i;var z=Ee(i);if(z){if(b=YS(i),!S)return hn(i,b)}else{var j=Yt(i),te=j==vo||j==yo;if(No(i))return Xg(i,S);if(j==wn||j==Sr||te&&!_){if(b=P||te?{}:_p(i),!S)return P?BS(i,sS(b,i)):US(i,kg(b,i))}else{if(!et[j])return _?i:{};b=JS(i,j,S)}}E||(E=new lr);var se=E.get(i);if(se)return se;E.set(i,b),Gp(i)?i.forEach(function(fe){b.add(Wn(fe,s,u,fe,i,E))}):Wp(i)&&i.forEach(function(fe,Re){b.set(Re,Wn(fe,s,u,Re,i,E))});var he=W?P?dd:ud:P?mn:Dt,Ie=z?t:he(i);return Hn(Ie||i,function(fe,Re){Ie&&(Re=fe,fe=i[Re]),Ga(b,Re,Wn(fe,s,u,Re,i,E))}),b}function cS(i){var s=Dt(i);return function(u){return Ng(u,i,s)}}function Ng(i,s,u){var f=u.length;if(i==null)return!f;for(i=Ye(i);f--;){var _=u[f],E=s[_],b=i[_];if(b===t&&!(_ in i)||!E(b))return!1}return!0}function Rg(i,s,u){if(typeof i!="function")throw new $n(c);return Za(function(){i.apply(t,u)},s)}function qa(i,s,u,f){var _=-1,E=js,b=!0,S=i.length,P=[],W=s.length;if(!S)return P;u&&(s=st(s,bn(u))),f?(E=Ou,b=!1):s.length>=o&&(E=Va,b=!1,s=new ei(s));e:for(;++_<S;){var z=i[_],j=u==null?z:u(z);if(z=f||z!==0?z:0,b&&j===j){for(var te=W;te--;)if(s[te]===j)continue e;P.push(z)}else E(s,j,f)||P.push(z)}return P}var Io=rp(Nr),Og=rp(qu,!0);function lS(i,s){var u=!0;return Io(i,function(f,_,E){return u=!!s(f,_,E),u}),u}function hc(i,s,u){for(var f=-1,_=i.length;++f<_;){var E=i[f],b=s(E);if(b!=null&&(S===t?b===b&&!Sn(b):u(b,S)))var S=b,P=E}return P}function uS(i,s,u,f){var _=i.length;for(u=be(u),u<0&&(u=-u>_?0:_+u),f=f===t||f>_?_:be(f),f<0&&(f+=_),f=u>f?0:jp(f);u<f;)i[u++]=s;return i}function Pg(i,s){var u=[];return Io(i,function(f,_,E){s(f,_,E)&&u.push(f)}),u}function Ht(i,s,u,f,_){var E=-1,b=i.length;for(u||(u=XS),_||(_=[]);++E<b;){var S=i[E];s>0&&u(S)?s>1?Ht(S,s-1,u,f,_):wo(_,S):f||(_[_.length]=S)}return _}var Gu=op(),Mg=op(!0);function Nr(i,s){return i&&Gu(i,s,Dt)}function qu(i,s){return i&&Mg(i,s,Dt)}function fc(i,s){return Eo(s,function(u){return eo(i[u])})}function ni(i,s){s=Ao(s,i);for(var u=0,f=s.length;i!=null&&u<f;)i=i[Or(s[u++])];return u&&u==f?i:t}function Dg(i,s,u){var f=s(i);return Ee(i)?f:wo(f,u(i))}function an(i){return i==null?i===t?Me:Jo:Xo&&Xo in Ye(i)?GS(i):iA(i)}function ju(i,s){return i>s}function dS(i,s){return i!=null&&$e.call(i,s)}function hS(i,s){return i!=null&&s in Ye(i)}function fS(i,s,u){return i>=jt(s,u)&&i<kt(s,u)}function Yu(i,s,u){for(var f=u?Ou:js,_=i[0].length,E=i.length,b=E,S=U(E),P=1/0,W=[];b--;){var z=i[b];b&&s&&(z=st(z,bn(s))),P=jt(z.length,P),S[b]=!u&&(s||_>=120&&z.length>=120)?new ei(b&&z):t}z=i[0];var j=-1,te=S[0];e:for(;++j<_&&W.length<P;){var se=z[j],he=s?s(se):se;if(se=u||se!==0?se:0,!(te?Va(te,he):f(W,he,u))){for(b=E;--b;){var Ie=S[b];if(!(Ie?Va(Ie,he):f(i[b],he,u)))continue e}te&&te.push(he),W.push(se)}}return W}function mS(i,s,u,f){return Nr(i,function(_,E,b){s(f,u(_),E,b)}),f}function ja(i,s,u){s=Ao(s,i),i=Ep(i,s);var f=i==null?i:i[Or(Gn(s))];return f==null?t:Tn(f,i,u)}function Lg(i){return ht(i)&&an(i)==Sr}function gS(i){return ht(i)&&an(i)==Ne}function pS(i){return ht(i)&&an(i)==qr}function Ya(i,s,u,f,_){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:_S(i,s,u,f,Ya,_)}function _S(i,s,u,f,_,E){var b=Ee(i),S=Ee(s),P=b?Yo:Yt(i),W=S?Yo:Yt(s);P=P==Sr?wn:P,W=W==Sr?wn:W;var z=P==wn,j=W==wn,te=P==W;if(te&&No(i)){if(!No(s))return!1;b=!0,z=!1}if(te&&!z)return E||(E=new lr),b||Hi(i)?mp(i,s,u,f,_,E):WS(i,s,P,u,f,_,E);if(!(u&C)){var se=z&&$e.call(i,"__wrapped__"),he=j&&$e.call(s,"__wrapped__");if(se||he){var Ie=se?i.value():i,fe=he?s.value():s;return E||(E=new lr),_(Ie,fe,u,f,E)}}return te?(E||(E=new lr),zS(i,s,u,f,_,E)):!1}function vS(i){return ht(i)&&Yt(i)==Ft}function Ju(i,s,u,f){var _=u.length,E=_,b=!f;if(i==null)return!E;for(i=Ye(i);_--;){var S=u[_];if(b&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++_<E;){S=u[_];var P=S[0],W=i[P],z=S[1];if(b&&S[2]){if(W===t&&!(P in i))return!1}else{var j=new lr;if(f)var te=f(W,z,P,i,s,j);if(!(te===t?Ya(z,W,C|T,f,j):te))return!1}}return!0}function xg(i){if(!ut(i)||eA(i))return!1;var s=eo(i)?vI:cb;return s.test(oi(i))}function yS(i){return ht(i)&&an(i)==G}function CS(i){return ht(i)&&Yt(i)==oe}function ES(i){return ht(i)&&Rc(i.length)&&!!rt[an(i)]}function Ug(i){return typeof i=="function"?i:i==null?gn:typeof i=="object"?Ee(i)?Vg(i[0],i[1]):Fg(i):i_(i)}function Qu(i){if(!Xa(i))return bI(i);var s=[];for(var u in Ye(i))$e.call(i,u)&&u!="constructor"&&s.push(u);return s}function wS(i){if(!ut(i))return oA(i);var s=Xa(i),u=[];for(var f in i)f=="constructor"&&(s||!$e.call(i,f))||u.push(f);return u}function Xu(i,s){return i<s}function Bg(i,s){var u=-1,f=fn(i)?U(i.length):[];return Io(i,function(_,E,b){f[++u]=s(_,E,b)}),f}function Fg(i){var s=fd(i);return s.length==1&&s[0][2]?yp(s[0][0],s[0][1]):function(u){return u===i||Ju(u,i,s)}}function Vg(i,s){return gd(i)&&vp(s)?yp(Or(i),s):function(u){var f=Id(u,i);return f===t&&f===s?Sd(u,i):Ya(s,f,C|T)}}function mc(i,s,u,f,_){i!==s&&Gu(s,function(E,b){if(_||(_=new lr),ut(E))TS(i,s,b,u,mc,f,_);else{var S=f?f(_d(i,b),E,b+"",i,s,_):t;S===t&&(S=E),Wu(i,b,S)}},mn)}function TS(i,s,u,f,_,E,b){var S=_d(i,u),P=_d(s,u),W=b.get(P);if(W){Wu(i,u,W);return}var z=E?E(S,P,u+"",i,s,b):t,j=z===t;if(j){var te=Ee(P),se=!te&&No(P),he=!te&&!se&&Hi(P);z=P,te||se||he?Ee(S)?z=S:pt(S)?z=hn(S):se?(j=!1,z=Xg(P,!0)):he?(j=!1,z=Zg(P,!0)):z=[]:es(P)||ii(P)?(z=S,ii(S)?z=Yp(S):(!ut(S)||eo(S))&&(z=_p(P))):j=!1}j&&(b.set(P,z),_(z,P,f,E,b),b.delete(P)),Wu(i,u,z)}function Hg(i,s){var u=i.length;if(u)return s+=s<0?u:0,Zr(s,u)?i[s]:t}function $g(i,s,u){s.length?s=st(s,function(E){return Ee(E)?function(b){return ni(b,E.length===1?E[0]:E)}:E}):s=[gn];var f=-1;s=st(s,bn(de()));var _=Bg(i,function(E,b,S){var P=st(s,function(W){return W(E)});return{criteria:P,index:++f,value:E}});return Jb(_,function(E,b){return xS(E,b,u)})}function bS(i,s){return Kg(i,s,function(u,f){return Sd(i,f)})}function Kg(i,s,u){for(var f=-1,_=s.length,E={};++f<_;){var b=s[f],S=ni(i,b);u(S,b)&&Ja(E,Ao(b,i),S)}return E}function IS(i){return function(s){return ni(s,i)}}function Zu(i,s,u,f){var _=f?Yb:Ri,E=-1,b=s.length,S=i;for(i===s&&(s=hn(s)),u&&(S=st(i,bn(u)));++E<b;)for(var P=0,W=s[E],z=u?u(W):W;(P=_(S,z,P,f))>-1;)S!==i&&oc.call(S,P,1),oc.call(i,P,1);return i}function Wg(i,s){for(var u=i?s.length:0,f=u-1;u--;){var _=s[u];if(u==f||_!==E){var E=_;Zr(_)?oc.call(i,_,1):rd(i,_)}}return i}function ed(i,s){return i+sc(bg()*(s-i+1))}function SS(i,s,u,f){for(var _=-1,E=kt(ac((s-i)/(u||1)),0),b=U(E);E--;)b[f?E:++_]=i,i+=u;return b}function td(i,s){var u="";if(!i||s<1||s>at)return u;do s%2&&(u+=i),s=sc(s/2),s&&(i+=i);while(s);return u}function Se(i,s){return vd(Cp(i,s,gn),i+"")}function AS(i){return Ag($i(i))}function kS(i,s){var u=$i(i);return bc(u,ti(s,0,u.length))}function Ja(i,s,u,f){if(!ut(i))return i;s=Ao(s,i);for(var _=-1,E=s.length,b=E-1,S=i;S!=null&&++_<E;){var P=Or(s[_]),W=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return i;if(_!=b){var z=S[P];W=f?f(z,P,S):t,W===t&&(W=ut(z)?z:Zr(s[_+1])?[]:{})}Ga(S,P,W),S=S[P]}return i}var zg=cc?function(i,s){return cc.set(i,s),i}:gn,NS=ic?function(i,s){return ic(i,"toString",{configurable:!0,enumerable:!1,value:kd(s),writable:!0})}:gn;function RS(i){return bc($i(i))}function zn(i,s,u){var f=-1,_=i.length;s<0&&(s=-s>_?0:_+s),u=u>_?_:u,u<0&&(u+=_),_=s>u?0:u-s>>>0,s>>>=0;for(var E=U(_);++f<_;)E[f]=i[f+s];return E}function OS(i,s){var u;return Io(i,function(f,_,E){return u=s(f,_,E),!u}),!!u}function gc(i,s,u){var f=0,_=i==null?f:i.length;if(typeof s=="number"&&s===s&&_<=La){for(;f<_;){var E=f+_>>>1,b=i[E];b!==null&&!Sn(b)&&(u?b<=s:b<s)?f=E+1:_=E}return _}return nd(i,s,gn,u)}function nd(i,s,u,f){var _=0,E=i==null?0:i.length;if(E===0)return 0;s=u(s);for(var b=s!==s,S=s===null,P=Sn(s),W=s===t;_<E;){var z=sc((_+E)/2),j=u(i[z]),te=j!==t,se=j===null,he=j===j,Ie=Sn(j);if(b)var fe=f||he;else W?fe=he&&(f||te):S?fe=he&&te&&(f||!se):P?fe=he&&te&&!se&&(f||!Ie):se||Ie?fe=!1:fe=f?j<=s:j<s;fe?_=z+1:E=z}return jt(E,jo)}function Gg(i,s){for(var u=-1,f=i.length,_=0,E=[];++u<f;){var b=i[u],S=s?s(b):b;if(!u||!ur(S,P)){var P=S;E[_++]=b===0?0:b}}return E}function qg(i){return typeof i=="number"?i:Sn(i)?on:+i}function In(i){if(typeof i=="string")return i;if(Ee(i))return st(i,In)+"";if(Sn(i))return Ig?Ig.call(i):"";var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function So(i,s,u){var f=-1,_=js,E=i.length,b=!0,S=[],P=S;if(u)b=!1,_=Ou;else if(E>=o){var W=s?null:$S(i);if(W)return Js(W);b=!1,_=Va,P=new ei}else P=s?[]:S;e:for(;++f<E;){var z=i[f],j=s?s(z):z;if(z=u||z!==0?z:0,b&&j===j){for(var te=P.length;te--;)if(P[te]===j)continue e;s&&P.push(j),S.push(z)}else _(P,j,u)||(P!==S&&P.push(j),S.push(z))}return S}function rd(i,s){return s=Ao(s,i),i=Ep(i,s),i==null||delete i[Or(Gn(s))]}function jg(i,s,u,f){return Ja(i,s,u(ni(i,s)),f)}function pc(i,s,u,f){for(var _=i.length,E=f?_:-1;(f?E--:++E<_)&&s(i[E],E,i););return u?zn(i,f?0:E,f?E+1:_):zn(i,f?E+1:0,f?_:E)}function Yg(i,s){var u=i;return u instanceof Oe&&(u=u.value()),Pu(s,function(f,_){return _.func.apply(_.thisArg,wo([f],_.args))},u)}function od(i,s,u){var f=i.length;if(f<2)return f?So(i[0]):[];for(var _=-1,E=U(f);++_<f;)for(var b=i[_],S=-1;++S<f;)S!=_&&(E[_]=qa(E[_]||b,i[S],s,u));return So(Ht(E,1),s,u)}function Jg(i,s,u){for(var f=-1,_=i.length,E=s.length,b={};++f<_;){var S=f<E?s[f]:t;u(b,i[f],S)}return b}function id(i){return pt(i)?i:[]}function ad(i){return typeof i=="function"?i:gn}function Ao(i,s){return Ee(i)?i:gd(i,s)?[i]:Ip(He(i))}var PS=Se;function ko(i,s,u){var f=i.length;return u=u===t?f:u,!s&&u>=f?i:zn(i,s,u)}var Qg=yI||function(i){return Vt.clearTimeout(i)};function Xg(i,s){if(s)return i.slice();var u=i.length,f=yg?yg(u):new i.constructor(u);return i.copy(f),f}function sd(i){var s=new i.constructor(i.byteLength);return new nc(s).set(new nc(i)),s}function MS(i,s){var u=s?sd(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function DS(i){var s=new i.constructor(i.source,Lm.exec(i));return s.lastIndex=i.lastIndex,s}function LS(i){return za?Ye(za.call(i)):{}}function Zg(i,s){var u=s?sd(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function ep(i,s){if(i!==s){var u=i!==t,f=i===null,_=i===i,E=Sn(i),b=s!==t,S=s===null,P=s===s,W=Sn(s);if(!S&&!W&&!E&&i>s||E&&b&&P&&!S&&!W||f&&b&&P||!u&&P||!_)return 1;if(!f&&!E&&!W&&i<s||W&&u&&_&&!f&&!E||S&&u&&_||!b&&_||!P)return-1}return 0}function xS(i,s,u){for(var f=-1,_=i.criteria,E=s.criteria,b=_.length,S=u.length;++f<b;){var P=ep(_[f],E[f]);if(P){if(f>=S)return P;var W=u[f];return P*(W=="desc"?-1:1)}}return i.index-s.index}function tp(i,s,u,f){for(var _=-1,E=i.length,b=u.length,S=-1,P=s.length,W=kt(E-b,0),z=U(P+W),j=!f;++S<P;)z[S]=s[S];for(;++_<b;)(j||_<E)&&(z[u[_]]=i[_]);for(;W--;)z[S++]=i[_++];return z}function np(i,s,u,f){for(var _=-1,E=i.length,b=-1,S=u.length,P=-1,W=s.length,z=kt(E-S,0),j=U(z+W),te=!f;++_<z;)j[_]=i[_];for(var se=_;++P<W;)j[se+P]=s[P];for(;++b<S;)(te||_<E)&&(j[se+u[b]]=i[_++]);return j}function hn(i,s){var u=-1,f=i.length;for(s||(s=U(f));++u<f;)s[u]=i[u];return s}function Rr(i,s,u,f){var _=!u;u||(u={});for(var E=-1,b=s.length;++E<b;){var S=s[E],P=f?f(u[S],i[S],S,u,i):t;P===t&&(P=i[S]),_?Jr(u,S,P):Ga(u,S,P)}return u}function US(i,s){return Rr(i,md(i),s)}function BS(i,s){return Rr(i,gp(i),s)}function _c(i,s){return function(u,f){var _=Ee(u)?Kb:aS,E=s?s():{};return _(u,i,de(f,2),E)}}function Bi(i){return Se(function(s,u){var f=-1,_=u.length,E=_>1?u[_-1]:t,b=_>2?u[2]:t;for(E=i.length>3&&typeof E=="function"?(_--,E):t,b&&sn(u[0],u[1],b)&&(E=_<3?t:E,_=1),s=Ye(s);++f<_;){var S=u[f];S&&i(s,S,f,E)}return s})}function rp(i,s){return function(u,f){if(u==null)return u;if(!fn(u))return i(u,f);for(var _=u.length,E=s?_:-1,b=Ye(u);(s?E--:++E<_)&&f(b[E],E,b)!==!1;);return u}}function op(i){return function(s,u,f){for(var _=-1,E=Ye(s),b=f(s),S=b.length;S--;){var P=b[i?S:++_];if(u(E[P],P,E)===!1)break}return s}}function FS(i,s,u){var f=s&k,_=Qa(i);function E(){var b=this&&this!==Vt&&this instanceof E?_:i;return b.apply(f?u:this,arguments)}return E}function ip(i){return function(s){s=He(s);var u=Oi(s)?cr(s):t,f=u?u[0]:s.charAt(0),_=u?ko(u,1).join(""):s.slice(1);return f[i]()+_}}function Fi(i){return function(s){return Pu(r_(n_(s).replace(Nb,"")),i,"")}}function Qa(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var u=Ui(i.prototype),f=i.apply(u,s);return ut(f)?f:u}}function VS(i,s,u){var f=Qa(i);function _(){for(var E=arguments.length,b=U(E),S=E,P=Vi(_);S--;)b[S]=arguments[S];var W=E<3&&b[0]!==P&&b[E-1]!==P?[]:To(b,P);if(E-=W.length,E<u)return up(i,s,vc,_.placeholder,t,b,W,t,t,u-E);var z=this&&this!==Vt&&this instanceof _?f:i;return Tn(z,this,b)}return _}function ap(i){return function(s,u,f){var _=Ye(s);if(!fn(s)){var E=de(u,3);s=Dt(s),u=function(S){return E(_[S],S,_)}}var b=i(s,u,f);return b>-1?_[E?s[b]:b]:t}}function sp(i){return Xr(function(s){var u=s.length,f=u,_=Kn.prototype.thru;for(i&&s.reverse();f--;){var E=s[f];if(typeof E!="function")throw new $n(c);if(_&&!b&&wc(E)=="wrapper")var b=new Kn([],!0)}for(f=b?f:u;++f<u;){E=s[f];var S=wc(E),P=S=="wrapper"?hd(E):t;P&&pd(P[0])&&P[1]==(M|D|K|ce)&&!P[4].length&&P[9]==1?b=b[wc(P[0])].apply(b,P[3]):b=E.length==1&&pd(E)?b[S]():b.thru(E)}return function(){var W=arguments,z=W[0];if(b&&W.length==1&&Ee(z))return b.plant(z).value();for(var j=0,te=u?s[j].apply(this,W):z;++j<u;)te=s[j].call(this,te);return te}})}function vc(i,s,u,f,_,E,b,S,P,W){var z=s&M,j=s&k,te=s&I,se=s&(D|L),he=s&ae,Ie=te?t:Qa(i);function fe(){for(var Re=arguments.length,Pe=U(Re),An=Re;An--;)Pe[An]=arguments[An];if(se)var cn=Vi(fe),kn=Xb(Pe,cn);if(f&&(Pe=tp(Pe,f,_,se)),E&&(Pe=np(Pe,E,b,se)),Re-=kn,se&&Re<W){var _t=To(Pe,cn);return up(i,s,vc,fe.placeholder,u,Pe,_t,S,P,W-Re)}var dr=j?u:this,no=te?dr[i]:i;return Re=Pe.length,S?Pe=aA(Pe,S):he&&Re>1&&Pe.reverse(),z&&P<Re&&(Pe.length=P),this&&this!==Vt&&this instanceof fe&&(no=Ie||Qa(no)),no.apply(dr,Pe)}return fe}function cp(i,s){return function(u,f){return mS(u,i,s(f),{})}}function yc(i,s){return function(u,f){var _;if(u===t&&f===t)return s;if(u!==t&&(_=u),f!==t){if(_===t)return f;typeof u=="string"||typeof f=="string"?(u=In(u),f=In(f)):(u=qg(u),f=qg(f)),_=i(u,f)}return _}}function cd(i){return Xr(function(s){return s=st(s,bn(de())),Se(function(u){var f=this;return i(s,function(_){return Tn(_,f,u)})})})}function Cc(i,s){s=s===t?" ":In(s);var u=s.length;if(u<2)return u?td(s,i):s;var f=td(s,ac(i/Pi(s)));return Oi(s)?ko(cr(f),0,i).join(""):f.slice(0,i)}function HS(i,s,u,f){var _=s&k,E=Qa(i);function b(){for(var S=-1,P=arguments.length,W=-1,z=f.length,j=U(z+P),te=this&&this!==Vt&&this instanceof b?E:i;++W<z;)j[W]=f[W];for(;P--;)j[W++]=arguments[++S];return Tn(te,_?u:this,j)}return b}function lp(i){return function(s,u,f){return f&&typeof f!="number"&&sn(s,u,f)&&(u=f=t),s=to(s),u===t?(u=s,s=0):u=to(u),f=f===t?s<u?1:-1:to(f),SS(s,u,f,i)}}function Ec(i){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=qn(s),u=qn(u)),i(s,u)}}function up(i,s,u,f,_,E,b,S,P,W){var z=s&D,j=z?b:t,te=z?t:b,se=z?E:t,he=z?t:E;s|=z?K:q,s&=~(z?q:K),s&N||(s&=~(k|I));var Ie=[i,s,_,se,j,he,te,S,P,W],fe=u.apply(t,Ie);return pd(i)&&wp(fe,Ie),fe.placeholder=f,Tp(fe,i,s)}function ld(i){var s=At[i];return function(u,f){if(u=qn(u),f=f==null?0:jt(be(f),292),f&&Tg(u)){var _=(He(u)+"e").split("e"),E=s(_[0]+"e"+(+_[1]+f));return _=(He(E)+"e").split("e"),+(_[0]+"e"+(+_[1]-f))}return s(u)}}var $S=Li&&1/Js(new Li([,-0]))[1]==Mt?function(i){return new Li(i)}:Od;function dp(i){return function(s){var u=Yt(s);return u==Ft?Fu(s):u==oe?iI(s):Qb(s,i(s))}}function Qr(i,s,u,f,_,E,b,S){var P=s&I;if(!P&&typeof i!="function")throw new $n(c);var W=f?f.length:0;if(W||(s&=~(K|q),f=_=t),b=b===t?b:kt(be(b),0),S=S===t?S:be(S),W-=_?_.length:0,s&q){var z=f,j=_;f=_=t}var te=P?t:hd(i),se=[i,s,u,f,_,z,j,E,b,S];if(te&&rA(se,te),i=se[0],s=se[1],u=se[2],f=se[3],_=se[4],S=se[9]=se[9]===t?P?0:i.length:kt(se[9]-W,0),!S&&s&(D|L)&&(s&=~(D|L)),!s||s==k)var he=FS(i,s,u);else s==D||s==L?he=VS(i,s,S):(s==K||s==(k|K))&&!_.length?he=HS(i,s,u,f):he=vc.apply(t,se);var Ie=te?zg:wp;return Tp(Ie(he,se),i,s)}function hp(i,s,u,f){return i===t||ur(i,Di[u])&&!$e.call(f,u)?s:i}function fp(i,s,u,f,_,E){return ut(i)&&ut(s)&&(E.set(s,i),mc(i,s,t,fp,E),E.delete(s)),i}function KS(i){return es(i)?t:i}function mp(i,s,u,f,_,E){var b=u&C,S=i.length,P=s.length;if(S!=P&&!(b&&P>S))return!1;var W=E.get(i),z=E.get(s);if(W&&z)return W==s&&z==i;var j=-1,te=!0,se=u&T?new ei:t;for(E.set(i,s),E.set(s,i);++j<S;){var he=i[j],Ie=s[j];if(f)var fe=b?f(Ie,he,j,s,i,E):f(he,Ie,j,i,s,E);if(fe!==t){if(fe)continue;te=!1;break}if(se){if(!Mu(s,function(Re,Pe){if(!Va(se,Pe)&&(he===Re||_(he,Re,u,f,E)))return se.push(Pe)})){te=!1;break}}else if(!(he===Ie||_(he,Ie,u,f,E))){te=!1;break}}return E.delete(i),E.delete(s),te}function WS(i,s,u,f,_,E,b){switch(u){case ze:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Ne:return!(i.byteLength!=s.byteLength||!E(new nc(i),new nc(s)));case Ar:case qr:case En:return ur(+i,+s);case _o:return i.name==s.name&&i.message==s.message;case G:case je:return i==s+"";case Ft:var S=Fu;case oe:var P=f&C;if(S||(S=Js),i.size!=s.size&&!P)return!1;var W=b.get(i);if(W)return W==s;f|=T,b.set(i,s);var z=mp(S(i),S(s),f,_,E,b);return b.delete(i),z;case Ze:if(za)return za.call(i)==za.call(s)}return!1}function zS(i,s,u,f,_,E){var b=u&C,S=ud(i),P=S.length,W=ud(s),z=W.length;if(P!=z&&!b)return!1;for(var j=P;j--;){var te=S[j];if(!(b?te in s:$e.call(s,te)))return!1}var se=E.get(i),he=E.get(s);if(se&&he)return se==s&&he==i;var Ie=!0;E.set(i,s),E.set(s,i);for(var fe=b;++j<P;){te=S[j];var Re=i[te],Pe=s[te];if(f)var An=b?f(Pe,Re,te,s,i,E):f(Re,Pe,te,i,s,E);if(!(An===t?Re===Pe||_(Re,Pe,u,f,E):An)){Ie=!1;break}fe||(fe=te=="constructor")}if(Ie&&!fe){var cn=i.constructor,kn=s.constructor;cn!=kn&&"constructor"in i&&"constructor"in s&&!(typeof cn=="function"&&cn instanceof cn&&typeof kn=="function"&&kn instanceof kn)&&(Ie=!1)}return E.delete(i),E.delete(s),Ie}function Xr(i){return vd(Cp(i,t,Np),i+"")}function ud(i){return Dg(i,Dt,md)}function dd(i){return Dg(i,mn,gp)}var hd=cc?function(i){return cc.get(i)}:Od;function wc(i){for(var s=i.name+"",u=xi[s],f=$e.call(xi,s)?u.length:0;f--;){var _=u[f],E=_.func;if(E==null||E==i)return _.name}return s}function Vi(i){var s=$e.call(y,"placeholder")?y:i;return s.placeholder}function de(){var i=y.iteratee||Nd;return i=i===Nd?Ug:i,arguments.length?i(arguments[0],arguments[1]):i}function Tc(i,s){var u=i.__data__;return ZS(s)?u[typeof s=="string"?"string":"hash"]:u.map}function fd(i){for(var s=Dt(i),u=s.length;u--;){var f=s[u],_=i[f];s[u]=[f,_,vp(_)]}return s}function ri(i,s){var u=nI(i,s);return xg(u)?u:t}function GS(i){var s=$e.call(i,Xo),u=i[Xo];try{i[Xo]=t;var f=!0}catch{}var _=ec.call(i);return f&&(s?i[Xo]=u:delete i[Xo]),_}var md=Hu?function(i){return i==null?[]:(i=Ye(i),Eo(Hu(i),function(s){return Eg.call(i,s)}))}:Pd,gp=Hu?function(i){for(var s=[];i;)wo(s,md(i)),i=rc(i);return s}:Pd,Yt=an;($u&&Yt(new $u(new ArrayBuffer(1)))!=ze||$a&&Yt(new $a)!=Ft||Ku&&Yt(Ku.resolve())!=A||Li&&Yt(new Li)!=oe||Ka&&Yt(new Ka)!=V)&&(Yt=function(i){var s=an(i),u=s==wn?i.constructor:t,f=u?oi(u):"";if(f)switch(f){case kI:return ze;case NI:return Ft;case RI:return A;case OI:return oe;case PI:return V}return s});function qS(i,s,u){for(var f=-1,_=u.length;++f<_;){var E=u[f],b=E.size;switch(E.type){case"drop":i+=b;break;case"dropRight":s-=b;break;case"take":s=jt(s,i+b);break;case"takeRight":i=kt(i,s-b);break}}return{start:i,end:s}}function jS(i){var s=i.match(eb);return s?s[1].split(tb):[]}function pp(i,s,u){s=Ao(s,i);for(var f=-1,_=s.length,E=!1;++f<_;){var b=Or(s[f]);if(!(E=i!=null&&u(i,b)))break;i=i[b]}return E||++f!=_?E:(_=i==null?0:i.length,!!_&&Rc(_)&&Zr(b,_)&&(Ee(i)||ii(i)))}function YS(i){var s=i.length,u=new i.constructor(s);return s&&typeof i[0]=="string"&&$e.call(i,"index")&&(u.index=i.index,u.input=i.input),u}function _p(i){return typeof i.constructor=="function"&&!Xa(i)?Ui(rc(i)):{}}function JS(i,s,u){var f=i.constructor;switch(s){case Ne:return sd(i);case Ar:case qr:return new f(+i);case ze:return MS(i,u);case ar:case Co:case kr:case sr:case Fa:case ki:case yu:case Cu:case Eu:return Zg(i,u);case Ft:return new f;case En:case je:return new f(i);case G:return DS(i);case oe:return new f;case Ze:return LS(i)}}function QS(i,s){var u=s.length;if(!u)return i;var f=u-1;return s[f]=(u>1?"& ":"")+s[f],s=s.join(u>2?", ":" "),i.replace(ZT,`{
54
54
  /* [wrapped with `+s+`] */
55
- `)}function ZS(i){return Ee(i)||ii(i)||!!(wg&&i&&i[wg])}function Zr(i,s){var u=typeof i;return s=s??at,!!s&&(u=="number"||u!="symbol"&&db.test(i))&&i>-1&&i%1==0&&i<s}function sn(i,s,u){if(!ut(u))return!1;var f=typeof s;return(f=="number"?fn(u)&&Zr(s,u.length):f=="string"&&s in u)?ur(u[s],i):!1}function gd(i,s){if(Ee(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||Sn(i)?!0:JT.test(i)||!YT.test(i)||s!=null&&i in Ye(s)}function eA(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function pd(i){var s=wc(i),u=y[s];if(typeof u!="function"||!(s in Oe.prototype))return!1;if(i===u)return!0;var f=hd(u);return!!f&&i===f[0]}function tA(i){return!!vg&&vg in i}var nA=Xs?eo:Md;function Xa(i){var s=i&&i.constructor,u=typeof s=="function"&&s.prototype||Di;return i===u}function vp(i){return i===i&&!ut(i)}function yp(i,s){return function(u){return u==null?!1:u[i]===s&&(s!==t||i in Ye(u))}}function rA(i){var s=kc(i,function(f){return u.size===m&&u.clear(),f}),u=s.cache;return s}function oA(i,s){var u=i[1],f=s[1],_=u|f,E=_<(k|I|M),b=f==M&&u==D||f==M&&u==ce&&i[7].length<=s[8]||f==(M|ce)&&s[7].length<=s[8]&&u==D;if(!(E||b))return i;f&k&&(i[2]=s[2],_|=u&k?0:N);var S=s[3];if(S){var P=i[3];i[3]=P?tp(P,S,s[4]):S,i[4]=P?To(i[3],g):s[4]}return S=s[5],S&&(P=i[5],i[5]=P?np(P,S,s[6]):S,i[6]=P?To(i[5],g):s[6]),S=s[7],S&&(i[7]=S),f&M&&(i[8]=i[8]==null?s[8]:jt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=_,i}function iA(i){var s=[];if(i!=null)for(var u in Ye(i))s.push(u);return s}function aA(i){return ec.call(i)}function Cp(i,s,u){return s=kt(s===t?i.length-1:s,0),function(){for(var f=arguments,_=-1,E=kt(f.length-s,0),b=U(E);++_<E;)b[_]=f[s+_];_=-1;for(var S=U(s+1);++_<s;)S[_]=f[_];return S[s]=u(b),Tn(i,this,S)}}function Ep(i,s){return s.length<2?i:ni(i,zn(s,0,-1))}function sA(i,s){for(var u=i.length,f=jt(s.length,u),_=hn(i);f--;){var E=s[f];i[f]=Zr(E,u)?_[E]:t}return i}function _d(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var wp=bp(zg),Za=wI||function(i,s){return Vt.setTimeout(i,s)},vd=bp(RS);function Tp(i,s,u){var f=s+"";return vd(i,XS(f,cA(YS(f),u)))}function bp(i){var s=0,u=0;return function(){var f=SI(),_=Be-(f-u);if(u=f,_>0){if(++s>=ue)return arguments[0]}else s=0;return i.apply(t,arguments)}}function bc(i,s){var u=-1,f=i.length,_=f-1;for(s=s===t?f:s;++u<s;){var E=ed(u,_),b=i[E];i[E]=i[u],i[u]=b}return i.length=s,i}var Ip=rA(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(QT,function(u,f,_,E){s.push(_?E.replace(ib,"$1"):f||u)}),s});function Or(i){if(typeof i=="string"||Sn(i))return i;var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function oi(i){if(i!=null){try{return Zs.call(i)}catch{}try{return i+""}catch{}}return""}function cA(i,s){return Hn(xa,function(u){var f="_."+u[0];s&u[1]&&!js(i,f)&&i.push(f)}),i.sort()}function Sp(i){if(i instanceof Oe)return i.clone();var s=new Kn(i.__wrapped__,i.__chain__);return s.__actions__=hn(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function lA(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=kt(be(s),0);var f=i==null?0:i.length;if(!f||s<1)return[];for(var _=0,E=0,b=U(ac(f/s));_<f;)b[E++]=zn(i,_,_+=s);return b}function uA(i){for(var s=-1,u=i==null?0:i.length,f=0,_=[];++s<u;){var E=i[s];E&&(_[f++]=E)}return _}function dA(){var i=arguments.length;if(!i)return[];for(var s=U(i-1),u=arguments[0],f=i;f--;)s[f-1]=arguments[f];return wo(Ee(u)?hn(u):[u],Ht(s,1))}var hA=Se(function(i,s){return pt(i)?qa(i,Ht(s,1,pt,!0)):[]}),fA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?qa(i,Ht(s,1,pt,!0),de(u,2)):[]}),mA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?qa(i,Ht(s,1,pt,!0),t,u):[]});function gA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),zn(i,s<0?0:s,f)):[]}function pA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),s=f-s,zn(i,0,s<0?0:s)):[]}function _A(i,s){return i&&i.length?pc(i,de(s,3),!0,!0):[]}function vA(i,s){return i&&i.length?pc(i,de(s,3),!0):[]}function yA(i,s,u,f){var _=i==null?0:i.length;return _?(u&&typeof u!="number"&&sn(i,s,u)&&(u=0,f=_),dS(i,s,u,f)):[]}function Ap(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=u==null?0:be(u);return _<0&&(_=kt(f+_,0)),Ys(i,de(s,3),_)}function kp(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=f-1;return u!==t&&(_=be(u),_=u<0?kt(f+_,0):jt(_,f-1)),Ys(i,de(s,3),_,!0)}function Np(i){var s=i==null?0:i.length;return s?Ht(i,1):[]}function CA(i){var s=i==null?0:i.length;return s?Ht(i,Mt):[]}function EA(i,s){var u=i==null?0:i.length;return u?(s=s===t?1:be(s),Ht(i,s)):[]}function wA(i){for(var s=-1,u=i==null?0:i.length,f={};++s<u;){var _=i[s];f[_[0]]=_[1]}return f}function Rp(i){return i&&i.length?i[0]:t}function TA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=u==null?0:be(u);return _<0&&(_=kt(f+_,0)),Ri(i,s,_)}function bA(i){var s=i==null?0:i.length;return s?zn(i,0,-1):[]}var IA=Se(function(i){var s=st(i,id);return s.length&&s[0]===i[0]?Yu(s):[]}),SA=Se(function(i){var s=Gn(i),u=st(i,id);return s===Gn(u)?s=t:u.pop(),u.length&&u[0]===i[0]?Yu(u,de(s,2)):[]}),AA=Se(function(i){var s=Gn(i),u=st(i,id);return s=typeof s=="function"?s:t,s&&u.pop(),u.length&&u[0]===i[0]?Yu(u,t,s):[]});function kA(i,s){return i==null?"":bI.call(i,s)}function Gn(i){var s=i==null?0:i.length;return s?i[s-1]:t}function NA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=f;return u!==t&&(_=be(u),_=_<0?kt(f+_,0):jt(_,f-1)),s===s?cI(i,s,_):Ys(i,ug,_,!0)}function RA(i,s){return i&&i.length?Hg(i,be(s)):t}var OA=Se(Op);function Op(i,s){return i&&i.length&&s&&s.length?Zu(i,s):i}function PA(i,s,u){return i&&i.length&&s&&s.length?Zu(i,s,de(u,2)):i}function MA(i,s,u){return i&&i.length&&s&&s.length?Zu(i,s,t,u):i}var DA=Xr(function(i,s){var u=i==null?0:i.length,f=zu(i,s);return Wg(i,st(s,function(_){return Zr(_,u)?+_:_}).sort(ep)),f});function LA(i,s){var u=[];if(!(i&&i.length))return u;var f=-1,_=[],E=i.length;for(s=de(s,3);++f<E;){var b=i[f];s(b,f,i)&&(u.push(b),_.push(f))}return Wg(i,_),u}function yd(i){return i==null?i:kI.call(i)}function xA(i,s,u){var f=i==null?0:i.length;return f?(u&&typeof u!="number"&&sn(i,s,u)?(s=0,u=f):(s=s==null?0:be(s),u=u===t?f:be(u)),zn(i,s,u)):[]}function UA(i,s){return gc(i,s)}function BA(i,s,u){return nd(i,s,de(u,2))}function FA(i,s){var u=i==null?0:i.length;if(u){var f=gc(i,s);if(f<u&&ur(i[f],s))return f}return-1}function VA(i,s){return gc(i,s,!0)}function HA(i,s,u){return nd(i,s,de(u,2),!0)}function $A(i,s){var u=i==null?0:i.length;if(u){var f=gc(i,s,!0)-1;if(ur(i[f],s))return f}return-1}function KA(i){return i&&i.length?Gg(i):[]}function WA(i,s){return i&&i.length?Gg(i,de(s,2)):[]}function zA(i){var s=i==null?0:i.length;return s?zn(i,1,s):[]}function GA(i,s,u){return i&&i.length?(s=u||s===t?1:be(s),zn(i,0,s<0?0:s)):[]}function qA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),s=f-s,zn(i,s<0?0:s,f)):[]}function jA(i,s){return i&&i.length?pc(i,de(s,3),!1,!0):[]}function YA(i,s){return i&&i.length?pc(i,de(s,3)):[]}var JA=Se(function(i){return So(Ht(i,1,pt,!0))}),QA=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),So(Ht(i,1,pt,!0),de(s,2))}),XA=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,So(Ht(i,1,pt,!0),t,s)});function ZA(i){return i&&i.length?So(i):[]}function ek(i,s){return i&&i.length?So(i,de(s,2)):[]}function tk(i,s){return s=typeof s=="function"?s:t,i&&i.length?So(i,t,s):[]}function Cd(i){if(!(i&&i.length))return[];var s=0;return i=Eo(i,function(u){if(pt(u))return s=kt(u.length,s),!0}),Uu(s,function(u){return st(i,Du(u))})}function Pp(i,s){if(!(i&&i.length))return[];var u=Cd(i);return s==null?u:st(u,function(f){return Tn(s,t,f)})}var nk=Se(function(i,s){return pt(i)?qa(i,s):[]}),rk=Se(function(i){return od(Eo(i,pt))}),ok=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),od(Eo(i,pt),de(s,2))}),ik=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,od(Eo(i,pt),t,s)}),ak=Se(Cd);function sk(i,s){return Jg(i||[],s||[],Ga)}function ck(i,s){return Jg(i||[],s||[],Ja)}var lk=Se(function(i){var s=i.length,u=s>1?i[s-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Pp(i,u)});function Mp(i){var s=y(i);return s.__chain__=!0,s}function uk(i,s){return s(i),i}function Ic(i,s){return s(i)}var dk=Xr(function(i){var s=i.length,u=s?i[0]:0,f=this.__wrapped__,_=function(E){return zu(E,i)};return s>1||this.__actions__.length||!(f instanceof Oe)||!Zr(u)?this.thru(_):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Ic,args:[_],thisArg:t}),new Kn(f,this.__chain__).thru(function(E){return s&&!E.length&&E.push(t),E}))});function hk(){return Mp(this)}function fk(){return new Kn(this.value(),this.__chain__)}function mk(){this.__values__===t&&(this.__values__=qp(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function gk(){return this}function pk(i){for(var s,u=this;u instanceof uc;){var f=Sp(u);f.__index__=0,f.__values__=t,s?_.__wrapped__=f:s=f;var _=f;u=u.__wrapped__}return _.__wrapped__=i,s}function _k(){var i=this.__wrapped__;if(i instanceof Oe){var s=i;return this.__actions__.length&&(s=new Oe(this)),s=s.reverse(),s.__actions__.push({func:Ic,args:[yd],thisArg:t}),new Kn(s,this.__chain__)}return this.thru(yd)}function vk(){return Yg(this.__wrapped__,this.__actions__)}var yk=_c(function(i,s,u){$e.call(i,u)?++i[u]:Jr(i,u,1)});function Ck(i,s,u){var f=Ee(i)?cg:uS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}function Ek(i,s){var u=Ee(i)?Eo:Pg;return u(i,de(s,3))}var wk=ap(Ap),Tk=ap(kp);function bk(i,s){return Ht(Sc(i,s),1)}function Ik(i,s){return Ht(Sc(i,s),Mt)}function Sk(i,s,u){return u=u===t?1:be(u),Ht(Sc(i,s),u)}function Dp(i,s){var u=Ee(i)?Hn:Io;return u(i,de(s,3))}function Lp(i,s){var u=Ee(i)?zb:Og;return u(i,de(s,3))}var Ak=_c(function(i,s,u){$e.call(i,u)?i[u].push(s):Jr(i,u,[s])});function kk(i,s,u,f){i=fn(i)?i:$i(i),u=u&&!f?be(u):0;var _=i.length;return u<0&&(u=kt(_+u,0)),Oc(i)?u<=_&&i.indexOf(s,u)>-1:!!_&&Ri(i,s,u)>-1}var Nk=Se(function(i,s,u){var f=-1,_=typeof s=="function",E=fn(i)?U(i.length):[];return Io(i,function(b){E[++f]=_?Tn(s,b,u):ja(b,s,u)}),E}),Rk=_c(function(i,s,u){Jr(i,u,s)});function Sc(i,s){var u=Ee(i)?st:Bg;return u(i,de(s,3))}function Ok(i,s,u,f){return i==null?[]:(Ee(s)||(s=s==null?[]:[s]),u=f?t:u,Ee(u)||(u=u==null?[]:[u]),$g(i,s,u))}var Pk=_c(function(i,s,u){i[u?0:1].push(s)},function(){return[[],[]]});function Mk(i,s,u){var f=Ee(i)?Pu:hg,_=arguments.length<3;return f(i,de(s,4),u,_,Io)}function Dk(i,s,u){var f=Ee(i)?Gb:hg,_=arguments.length<3;return f(i,de(s,4),u,_,Og)}function Lk(i,s){var u=Ee(i)?Eo:Pg;return u(i,Nc(de(s,3)))}function xk(i){var s=Ee(i)?Ag:kS;return s(i)}function Uk(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=be(s);var f=Ee(i)?iS:NS;return f(i,s)}function Bk(i){var s=Ee(i)?aS:OS;return s(i)}function Fk(i){if(i==null)return 0;if(fn(i))return Oc(i)?Pi(i):i.length;var s=Yt(i);return s==Ft||s==oe?i.size:Qu(i).length}function Vk(i,s,u){var f=Ee(i)?Mu:PS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}var Hk=Se(function(i,s){if(i==null)return[];var u=s.length;return u>1&&sn(i,s[0],s[1])?s=[]:u>2&&sn(s[0],s[1],s[2])&&(s=[s[0]]),$g(i,Ht(s,1),[])}),Ac=EI||function(){return Vt.Date.now()};function $k(i,s){if(typeof s!="function")throw new $n(c);return i=be(i),function(){if(--i<1)return s.apply(this,arguments)}}function xp(i,s,u){return s=u?t:s,s=i&&s==null?i.length:s,Qr(i,M,t,t,t,t,s)}function Up(i,s){var u;if(typeof s!="function")throw new $n(c);return i=be(i),function(){return--i>0&&(u=s.apply(this,arguments)),i<=1&&(s=t),u}}var Ed=Se(function(i,s,u){var f=k;if(u.length){var _=To(u,Vi(Ed));f|=K}return Qr(i,f,s,u,_)}),Bp=Se(function(i,s,u){var f=k|I;if(u.length){var _=To(u,Vi(Bp));f|=K}return Qr(s,f,i,u,_)});function Fp(i,s,u){s=u?t:s;var f=Qr(i,D,t,t,t,t,t,s);return f.placeholder=Fp.placeholder,f}function Vp(i,s,u){s=u?t:s;var f=Qr(i,L,t,t,t,t,t,s);return f.placeholder=Vp.placeholder,f}function Hp(i,s,u){var f,_,E,b,S,P,W=0,z=!1,j=!1,te=!0;if(typeof i!="function")throw new $n(c);s=qn(s)||0,ut(u)&&(z=!!u.leading,j="maxWait"in u,E=j?kt(qn(u.maxWait)||0,s):E,te="trailing"in u?!!u.trailing:te);function se(_t){var dr=f,no=_;return f=_=t,W=_t,b=i.apply(no,dr),b}function he(_t){return W=_t,S=Za(Re,s),z?se(_t):b}function Ie(_t){var dr=_t-P,no=_t-W,a_=s-dr;return j?jt(a_,E-no):a_}function fe(_t){var dr=_t-P,no=_t-W;return P===t||dr>=s||dr<0||j&&no>=E}function Re(){var _t=Ac();if(fe(_t))return Pe(_t);S=Za(Re,Ie(_t))}function Pe(_t){return S=t,te&&f?se(_t):(f=_=t,b)}function An(){S!==t&&Qg(S),W=0,f=P=_=S=t}function cn(){return S===t?b:Pe(Ac())}function kn(){var _t=Ac(),dr=fe(_t);if(f=arguments,_=this,P=_t,dr){if(S===t)return he(P);if(j)return Qg(S),S=Za(Re,s),se(P)}return S===t&&(S=Za(Re,s)),b}return kn.cancel=An,kn.flush=cn,kn}var Kk=Se(function(i,s){return Rg(i,1,s)}),Wk=Se(function(i,s,u){return Rg(i,qn(s)||0,u)});function zk(i){return Qr(i,ae)}function kc(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new $n(c);var u=function(){var f=arguments,_=s?s.apply(this,f):f[0],E=u.cache;if(E.has(_))return E.get(_);var b=i.apply(this,f);return u.cache=E.set(_,b)||E,b};return u.cache=new(kc.Cache||Yr),u}kc.Cache=Yr;function Nc(i){if(typeof i!="function")throw new $n(c);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function Gk(i){return Up(2,i)}var qk=MS(function(i,s){s=s.length==1&&Ee(s[0])?st(s[0],bn(de())):st(Ht(s,1),bn(de()));var u=s.length;return Se(function(f){for(var _=-1,E=jt(f.length,u);++_<E;)f[_]=s[_].call(this,f[_]);return Tn(i,this,f)})}),wd=Se(function(i,s){var u=To(s,Vi(wd));return Qr(i,K,t,s,u)}),$p=Se(function(i,s){var u=To(s,Vi($p));return Qr(i,q,t,s,u)}),jk=Xr(function(i,s){return Qr(i,ce,t,t,t,s)});function Yk(i,s){if(typeof i!="function")throw new $n(c);return s=s===t?s:be(s),Se(i,s)}function Jk(i,s){if(typeof i!="function")throw new $n(c);return s=s==null?0:kt(be(s),0),Se(function(u){var f=u[s],_=ko(u,0,s);return f&&wo(_,f),Tn(i,this,_)})}function Qk(i,s,u){var f=!0,_=!0;if(typeof i!="function")throw new $n(c);return ut(u)&&(f="leading"in u?!!u.leading:f,_="trailing"in u?!!u.trailing:_),Hp(i,s,{leading:f,maxWait:s,trailing:_})}function Xk(i){return xp(i,1)}function Zk(i,s){return wd(ad(s),i)}function eN(){if(!arguments.length)return[];var i=arguments[0];return Ee(i)?i:[i]}function tN(i){return Wn(i,w)}function nN(i,s){return s=typeof s=="function"?s:t,Wn(i,w,s)}function rN(i){return Wn(i,v|w)}function oN(i,s){return s=typeof s=="function"?s:t,Wn(i,v|w,s)}function iN(i,s){return s==null||Ng(i,s,Dt(s))}function ur(i,s){return i===s||i!==i&&s!==s}var aN=Ec(ju),sN=Ec(function(i,s){return i>=s}),ii=Lg(function(){return arguments}())?Lg:function(i){return ht(i)&&$e.call(i,"callee")&&!Eg.call(i,"callee")},Ee=U.isArray,cN=ng?bn(ng):pS;function fn(i){return i!=null&&Rc(i.length)&&!eo(i)}function pt(i){return ht(i)&&fn(i)}function lN(i){return i===!0||i===!1||ht(i)&&an(i)==Ar}var No=TI||Md,uN=rg?bn(rg):_S;function dN(i){return ht(i)&&i.nodeType===1&&!es(i)}function hN(i){if(i==null)return!0;if(fn(i)&&(Ee(i)||typeof i=="string"||typeof i.splice=="function"||No(i)||Hi(i)||ii(i)))return!i.length;var s=Yt(i);if(s==Ft||s==oe)return!i.size;if(Xa(i))return!Qu(i).length;for(var u in i)if($e.call(i,u))return!1;return!0}function fN(i,s){return Ya(i,s)}function mN(i,s,u){u=typeof u=="function"?u:t;var f=u?u(i,s):t;return f===t?Ya(i,s,t,u):!!f}function Td(i){if(!ht(i))return!1;var s=an(i);return s==_o||s==Ba||typeof i.message=="string"&&typeof i.name=="string"&&!es(i)}function gN(i){return typeof i=="number"&&Tg(i)}function eo(i){if(!ut(i))return!1;var s=an(i);return s==vo||s==yo||s==Ua||s==R}function Kp(i){return typeof i=="number"&&i==be(i)}function Rc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=at}function ut(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ht(i){return i!=null&&typeof i=="object"}var Wp=og?bn(og):yS;function pN(i,s){return i===s||Ju(i,s,fd(s))}function _N(i,s,u){return u=typeof u=="function"?u:t,Ju(i,s,fd(s),u)}function vN(i){return zp(i)&&i!=+i}function yN(i){if(nA(i))throw new Ce(a);return xg(i)}function CN(i){return i===null}function EN(i){return i==null}function zp(i){return typeof i=="number"||ht(i)&&an(i)==En}function es(i){if(!ht(i)||an(i)!=wn)return!1;var s=rc(i);if(s===null)return!0;var u=$e.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Zs.call(u)==_I}var bd=ig?bn(ig):CS;function wN(i){return Kp(i)&&i>=-at&&i<=at}var Gp=ag?bn(ag):ES;function Oc(i){return typeof i=="string"||!Ee(i)&&ht(i)&&an(i)==je}function Sn(i){return typeof i=="symbol"||ht(i)&&an(i)==Ze}var Hi=sg?bn(sg):wS;function TN(i){return i===t}function bN(i){return ht(i)&&Yt(i)==V}function IN(i){return ht(i)&&an(i)==J}var SN=Ec(Xu),AN=Ec(function(i,s){return i<=s});function qp(i){if(!i)return[];if(fn(i))return Oc(i)?cr(i):hn(i);if(Ha&&i[Ha])return iI(i[Ha]());var s=Yt(i),u=s==Ft?Fu:s==oe?Js:$i;return u(i)}function to(i){if(!i)return i===0?i:0;if(i=qn(i),i===Mt||i===-Mt){var s=i<0?-1:1;return s*Et}return i===i?i:0}function be(i){var s=to(i),u=s%1;return s===s?u?s-u:s:0}function jp(i){return i?ti(be(i),0,St):0}function qn(i){if(typeof i=="number")return i;if(Sn(i))return on;if(ut(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=ut(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=fg(i);var u=cb.test(i);return u||ub.test(i)?$b(i.slice(2),u?2:8):sb.test(i)?on:+i}function Yp(i){return Rr(i,mn(i))}function kN(i){return i?ti(be(i),-at,at):i===0?i:0}function He(i){return i==null?"":In(i)}var NN=Bi(function(i,s){if(Xa(s)||fn(s)){Rr(s,Dt(s),i);return}for(var u in s)$e.call(s,u)&&Ga(i,u,s[u])}),Jp=Bi(function(i,s){Rr(s,mn(s),i)}),Pc=Bi(function(i,s,u,f){Rr(s,mn(s),i,f)}),RN=Bi(function(i,s,u,f){Rr(s,Dt(s),i,f)}),ON=Xr(zu);function PN(i,s){var u=Ui(i);return s==null?u:kg(u,s)}var MN=Se(function(i,s){i=Ye(i);var u=-1,f=s.length,_=f>2?s[2]:t;for(_&&sn(s[0],s[1],_)&&(f=1);++u<f;)for(var E=s[u],b=mn(E),S=-1,P=b.length;++S<P;){var W=b[S],z=i[W];(z===t||ur(z,Di[W])&&!$e.call(i,W))&&(i[W]=E[W])}return i}),DN=Se(function(i){return i.push(t,fp),Tn(Qp,t,i)});function LN(i,s){return lg(i,de(s,3),Nr)}function xN(i,s){return lg(i,de(s,3),qu)}function UN(i,s){return i==null?i:Gu(i,de(s,3),mn)}function BN(i,s){return i==null?i:Mg(i,de(s,3),mn)}function FN(i,s){return i&&Nr(i,de(s,3))}function VN(i,s){return i&&qu(i,de(s,3))}function HN(i){return i==null?[]:fc(i,Dt(i))}function $N(i){return i==null?[]:fc(i,mn(i))}function Id(i,s,u){var f=i==null?t:ni(i,s);return f===t?u:f}function KN(i,s){return i!=null&&pp(i,s,hS)}function Sd(i,s){return i!=null&&pp(i,s,fS)}var WN=cp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=ec.call(s)),i[s]=u},kd(gn)),zN=cp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=ec.call(s)),$e.call(i,s)?i[s].push(u):i[s]=[u]},de),GN=Se(ja);function Dt(i){return fn(i)?Sg(i):Qu(i)}function mn(i){return fn(i)?Sg(i,!0):TS(i)}function qN(i,s){var u={};return s=de(s,3),Nr(i,function(f,_,E){Jr(u,s(f,_,E),f)}),u}function jN(i,s){var u={};return s=de(s,3),Nr(i,function(f,_,E){Jr(u,_,s(f,_,E))}),u}var YN=Bi(function(i,s,u){mc(i,s,u)}),Qp=Bi(function(i,s,u,f){mc(i,s,u,f)}),JN=Xr(function(i,s){var u={};if(i==null)return u;var f=!1;s=st(s,function(E){return E=Ao(E,i),f||(f=E.length>1),E}),Rr(i,dd(i),u),f&&(u=Wn(u,v|p|w,WS));for(var _=s.length;_--;)rd(u,s[_]);return u});function QN(i,s){return Xp(i,Nc(de(s)))}var XN=Xr(function(i,s){return i==null?{}:IS(i,s)});function Xp(i,s){if(i==null)return{};var u=st(dd(i),function(f){return[f]});return s=de(s),Kg(i,u,function(f,_){return s(f,_[0])})}function ZN(i,s,u){s=Ao(s,i);var f=-1,_=s.length;for(_||(_=1,i=t);++f<_;){var E=i==null?t:i[Or(s[f])];E===t&&(f=_,E=u),i=eo(E)?E.call(i):E}return i}function eR(i,s,u){return i==null?i:Ja(i,s,u)}function tR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Ja(i,s,u,f)}var Zp=dp(Dt),e_=dp(mn);function nR(i,s,u){var f=Ee(i),_=f||No(i)||Hi(i);if(s=de(s,4),u==null){var E=i&&i.constructor;_?u=f?new E:[]:ut(i)?u=eo(E)?Ui(rc(i)):{}:u={}}return(_?Hn:Nr)(i,function(b,S,P){return s(u,b,S,P)}),u}function rR(i,s){return i==null?!0:rd(i,s)}function oR(i,s,u){return i==null?i:jg(i,s,ad(u))}function iR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:jg(i,s,ad(u),f)}function $i(i){return i==null?[]:Bu(i,Dt(i))}function aR(i){return i==null?[]:Bu(i,mn(i))}function sR(i,s,u){return u===t&&(u=s,s=t),u!==t&&(u=qn(u),u=u===u?u:0),s!==t&&(s=qn(s),s=s===s?s:0),ti(qn(i),s,u)}function cR(i,s,u){return s=to(s),u===t?(u=s,s=0):u=to(u),i=qn(i),mS(i,s,u)}function lR(i,s,u){if(u&&typeof u!="boolean"&&sn(i,s,u)&&(s=u=t),u===t&&(typeof s=="boolean"?(u=s,s=t):typeof i=="boolean"&&(u=i,i=t)),i===t&&s===t?(i=0,s=1):(i=to(i),s===t?(s=i,i=0):s=to(s)),i>s){var f=i;i=s,s=f}if(u||i%1||s%1){var _=bg();return jt(i+_*(s-i+Hb("1e-"+((_+"").length-1))),s)}return ed(i,s)}var uR=Fi(function(i,s,u){return s=s.toLowerCase(),i+(u?t_(s):s)});function t_(i){return Ad(He(i).toLowerCase())}function n_(i){return i=He(i),i&&i.replace(hb,eI).replace(Ob,"")}function dR(i,s,u){i=He(i),s=In(s);var f=i.length;u=u===t?f:ti(be(u),0,f);var _=u;return u-=s.length,u>=0&&i.slice(u,_)==s}function hR(i){return i=He(i),i&&GT.test(i)?i.replace(Mm,tI):i}function fR(i){return i=He(i),i&&XT.test(i)?i.replace(wu,"\\$&"):i}var mR=Fi(function(i,s,u){return i+(u?"-":"")+s.toLowerCase()}),gR=Fi(function(i,s,u){return i+(u?" ":"")+s.toLowerCase()}),pR=ip("toLowerCase");function _R(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;if(!s||f>=s)return i;var _=(s-f)/2;return Cc(sc(_),u)+i+Cc(ac(_),u)}function vR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?i+Cc(s-f,u):i}function yR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?Cc(s-f,u)+i:i}function CR(i,s,u){return u||s==null?s=0:s&&(s=+s),AI(He(i).replace(Tu,""),s||0)}function ER(i,s,u){return(u?sn(i,s,u):s===t)?s=1:s=be(s),td(He(i),s)}function wR(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var TR=Fi(function(i,s,u){return i+(u?"_":"")+s.toLowerCase()});function bR(i,s,u){return u&&typeof u!="number"&&sn(i,s,u)&&(s=u=t),u=u===t?St:u>>>0,u?(i=He(i),i&&(typeof s=="string"||s!=null&&!bd(s))&&(s=In(s),!s&&Oi(i))?ko(cr(i),0,u):i.split(s,u)):[]}var IR=Fi(function(i,s,u){return i+(u?" ":"")+Ad(s)});function SR(i,s,u){return i=He(i),u=u==null?0:ti(be(u),0,i.length),s=In(s),i.slice(u,u+s.length)==s}function AR(i,s,u){var f=y.templateSettings;u&&sn(i,s,u)&&(s=t),i=He(i),s=Pc({},s,f,hp);var _=Pc({},s.imports,f.imports,hp),E=Dt(_),b=Bu(_,E),S,P,W=0,z=s.interpolate||zs,j="__p += '",te=Vu((s.escape||zs).source+"|"+z.source+"|"+(z===Dm?ab:zs).source+"|"+(s.evaluate||zs).source+"|$","g"),se="//# sourceURL="+($e.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xb+"]")+`
56
- `;i.replace(te,function(fe,Re,Pe,An,cn,kn){return Pe||(Pe=An),j+=i.slice(W,kn).replace(fb,nI),Re&&(S=!0,j+=`' +
55
+ `)}function XS(i){return Ee(i)||ii(i)||!!(wg&&i&&i[wg])}function Zr(i,s){var u=typeof i;return s=s??at,!!s&&(u=="number"||u!="symbol"&&ub.test(i))&&i>-1&&i%1==0&&i<s}function sn(i,s,u){if(!ut(u))return!1;var f=typeof s;return(f=="number"?fn(u)&&Zr(s,u.length):f=="string"&&s in u)?ur(u[s],i):!1}function gd(i,s){if(Ee(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||Sn(i)?!0:YT.test(i)||!jT.test(i)||s!=null&&i in Ye(s)}function ZS(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function pd(i){var s=wc(i),u=y[s];if(typeof u!="function"||!(s in Oe.prototype))return!1;if(i===u)return!0;var f=hd(u);return!!f&&i===f[0]}function eA(i){return!!vg&&vg in i}var tA=Xs?eo:Md;function Xa(i){var s=i&&i.constructor,u=typeof s=="function"&&s.prototype||Di;return i===u}function vp(i){return i===i&&!ut(i)}function yp(i,s){return function(u){return u==null?!1:u[i]===s&&(s!==t||i in Ye(u))}}function nA(i){var s=kc(i,function(f){return u.size===m&&u.clear(),f}),u=s.cache;return s}function rA(i,s){var u=i[1],f=s[1],_=u|f,E=_<(k|I|M),b=f==M&&u==D||f==M&&u==ce&&i[7].length<=s[8]||f==(M|ce)&&s[7].length<=s[8]&&u==D;if(!(E||b))return i;f&k&&(i[2]=s[2],_|=u&k?0:N);var S=s[3];if(S){var P=i[3];i[3]=P?tp(P,S,s[4]):S,i[4]=P?To(i[3],g):s[4]}return S=s[5],S&&(P=i[5],i[5]=P?np(P,S,s[6]):S,i[6]=P?To(i[5],g):s[6]),S=s[7],S&&(i[7]=S),f&M&&(i[8]=i[8]==null?s[8]:jt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=_,i}function oA(i){var s=[];if(i!=null)for(var u in Ye(i))s.push(u);return s}function iA(i){return ec.call(i)}function Cp(i,s,u){return s=kt(s===t?i.length-1:s,0),function(){for(var f=arguments,_=-1,E=kt(f.length-s,0),b=U(E);++_<E;)b[_]=f[s+_];_=-1;for(var S=U(s+1);++_<s;)S[_]=f[_];return S[s]=u(b),Tn(i,this,S)}}function Ep(i,s){return s.length<2?i:ni(i,zn(s,0,-1))}function aA(i,s){for(var u=i.length,f=jt(s.length,u),_=hn(i);f--;){var E=s[f];i[f]=Zr(E,u)?_[E]:t}return i}function _d(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var wp=bp(zg),Za=EI||function(i,s){return Vt.setTimeout(i,s)},vd=bp(NS);function Tp(i,s,u){var f=s+"";return vd(i,QS(f,sA(jS(f),u)))}function bp(i){var s=0,u=0;return function(){var f=II(),_=Be-(f-u);if(u=f,_>0){if(++s>=ue)return arguments[0]}else s=0;return i.apply(t,arguments)}}function bc(i,s){var u=-1,f=i.length,_=f-1;for(s=s===t?f:s;++u<s;){var E=ed(u,_),b=i[E];i[E]=i[u],i[u]=b}return i.length=s,i}var Ip=nA(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(JT,function(u,f,_,E){s.push(_?E.replace(ob,"$1"):f||u)}),s});function Or(i){if(typeof i=="string"||Sn(i))return i;var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function oi(i){if(i!=null){try{return Zs.call(i)}catch{}try{return i+""}catch{}}return""}function sA(i,s){return Hn(xa,function(u){var f="_."+u[0];s&u[1]&&!js(i,f)&&i.push(f)}),i.sort()}function Sp(i){if(i instanceof Oe)return i.clone();var s=new Kn(i.__wrapped__,i.__chain__);return s.__actions__=hn(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function cA(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=kt(be(s),0);var f=i==null?0:i.length;if(!f||s<1)return[];for(var _=0,E=0,b=U(ac(f/s));_<f;)b[E++]=zn(i,_,_+=s);return b}function lA(i){for(var s=-1,u=i==null?0:i.length,f=0,_=[];++s<u;){var E=i[s];E&&(_[f++]=E)}return _}function uA(){var i=arguments.length;if(!i)return[];for(var s=U(i-1),u=arguments[0],f=i;f--;)s[f-1]=arguments[f];return wo(Ee(u)?hn(u):[u],Ht(s,1))}var dA=Se(function(i,s){return pt(i)?qa(i,Ht(s,1,pt,!0)):[]}),hA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?qa(i,Ht(s,1,pt,!0),de(u,2)):[]}),fA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?qa(i,Ht(s,1,pt,!0),t,u):[]});function mA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),zn(i,s<0?0:s,f)):[]}function gA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),s=f-s,zn(i,0,s<0?0:s)):[]}function pA(i,s){return i&&i.length?pc(i,de(s,3),!0,!0):[]}function _A(i,s){return i&&i.length?pc(i,de(s,3),!0):[]}function vA(i,s,u,f){var _=i==null?0:i.length;return _?(u&&typeof u!="number"&&sn(i,s,u)&&(u=0,f=_),uS(i,s,u,f)):[]}function Ap(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=u==null?0:be(u);return _<0&&(_=kt(f+_,0)),Ys(i,de(s,3),_)}function kp(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=f-1;return u!==t&&(_=be(u),_=u<0?kt(f+_,0):jt(_,f-1)),Ys(i,de(s,3),_,!0)}function Np(i){var s=i==null?0:i.length;return s?Ht(i,1):[]}function yA(i){var s=i==null?0:i.length;return s?Ht(i,Mt):[]}function CA(i,s){var u=i==null?0:i.length;return u?(s=s===t?1:be(s),Ht(i,s)):[]}function EA(i){for(var s=-1,u=i==null?0:i.length,f={};++s<u;){var _=i[s];f[_[0]]=_[1]}return f}function Rp(i){return i&&i.length?i[0]:t}function wA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=u==null?0:be(u);return _<0&&(_=kt(f+_,0)),Ri(i,s,_)}function TA(i){var s=i==null?0:i.length;return s?zn(i,0,-1):[]}var bA=Se(function(i){var s=st(i,id);return s.length&&s[0]===i[0]?Yu(s):[]}),IA=Se(function(i){var s=Gn(i),u=st(i,id);return s===Gn(u)?s=t:u.pop(),u.length&&u[0]===i[0]?Yu(u,de(s,2)):[]}),SA=Se(function(i){var s=Gn(i),u=st(i,id);return s=typeof s=="function"?s:t,s&&u.pop(),u.length&&u[0]===i[0]?Yu(u,t,s):[]});function AA(i,s){return i==null?"":TI.call(i,s)}function Gn(i){var s=i==null?0:i.length;return s?i[s-1]:t}function kA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var _=f;return u!==t&&(_=be(u),_=_<0?kt(f+_,0):jt(_,f-1)),s===s?sI(i,s,_):Ys(i,ug,_,!0)}function NA(i,s){return i&&i.length?Hg(i,be(s)):t}var RA=Se(Op);function Op(i,s){return i&&i.length&&s&&s.length?Zu(i,s):i}function OA(i,s,u){return i&&i.length&&s&&s.length?Zu(i,s,de(u,2)):i}function PA(i,s,u){return i&&i.length&&s&&s.length?Zu(i,s,t,u):i}var MA=Xr(function(i,s){var u=i==null?0:i.length,f=zu(i,s);return Wg(i,st(s,function(_){return Zr(_,u)?+_:_}).sort(ep)),f});function DA(i,s){var u=[];if(!(i&&i.length))return u;var f=-1,_=[],E=i.length;for(s=de(s,3);++f<E;){var b=i[f];s(b,f,i)&&(u.push(b),_.push(f))}return Wg(i,_),u}function yd(i){return i==null?i:AI.call(i)}function LA(i,s,u){var f=i==null?0:i.length;return f?(u&&typeof u!="number"&&sn(i,s,u)?(s=0,u=f):(s=s==null?0:be(s),u=u===t?f:be(u)),zn(i,s,u)):[]}function xA(i,s){return gc(i,s)}function UA(i,s,u){return nd(i,s,de(u,2))}function BA(i,s){var u=i==null?0:i.length;if(u){var f=gc(i,s);if(f<u&&ur(i[f],s))return f}return-1}function FA(i,s){return gc(i,s,!0)}function VA(i,s,u){return nd(i,s,de(u,2),!0)}function HA(i,s){var u=i==null?0:i.length;if(u){var f=gc(i,s,!0)-1;if(ur(i[f],s))return f}return-1}function $A(i){return i&&i.length?Gg(i):[]}function KA(i,s){return i&&i.length?Gg(i,de(s,2)):[]}function WA(i){var s=i==null?0:i.length;return s?zn(i,1,s):[]}function zA(i,s,u){return i&&i.length?(s=u||s===t?1:be(s),zn(i,0,s<0?0:s)):[]}function GA(i,s,u){var f=i==null?0:i.length;return f?(s=u||s===t?1:be(s),s=f-s,zn(i,s<0?0:s,f)):[]}function qA(i,s){return i&&i.length?pc(i,de(s,3),!1,!0):[]}function jA(i,s){return i&&i.length?pc(i,de(s,3)):[]}var YA=Se(function(i){return So(Ht(i,1,pt,!0))}),JA=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),So(Ht(i,1,pt,!0),de(s,2))}),QA=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,So(Ht(i,1,pt,!0),t,s)});function XA(i){return i&&i.length?So(i):[]}function ZA(i,s){return i&&i.length?So(i,de(s,2)):[]}function ek(i,s){return s=typeof s=="function"?s:t,i&&i.length?So(i,t,s):[]}function Cd(i){if(!(i&&i.length))return[];var s=0;return i=Eo(i,function(u){if(pt(u))return s=kt(u.length,s),!0}),Uu(s,function(u){return st(i,Du(u))})}function Pp(i,s){if(!(i&&i.length))return[];var u=Cd(i);return s==null?u:st(u,function(f){return Tn(s,t,f)})}var tk=Se(function(i,s){return pt(i)?qa(i,s):[]}),nk=Se(function(i){return od(Eo(i,pt))}),rk=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),od(Eo(i,pt),de(s,2))}),ok=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,od(Eo(i,pt),t,s)}),ik=Se(Cd);function ak(i,s){return Jg(i||[],s||[],Ga)}function sk(i,s){return Jg(i||[],s||[],Ja)}var ck=Se(function(i){var s=i.length,u=s>1?i[s-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Pp(i,u)});function Mp(i){var s=y(i);return s.__chain__=!0,s}function lk(i,s){return s(i),i}function Ic(i,s){return s(i)}var uk=Xr(function(i){var s=i.length,u=s?i[0]:0,f=this.__wrapped__,_=function(E){return zu(E,i)};return s>1||this.__actions__.length||!(f instanceof Oe)||!Zr(u)?this.thru(_):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Ic,args:[_],thisArg:t}),new Kn(f,this.__chain__).thru(function(E){return s&&!E.length&&E.push(t),E}))});function dk(){return Mp(this)}function hk(){return new Kn(this.value(),this.__chain__)}function fk(){this.__values__===t&&(this.__values__=qp(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function mk(){return this}function gk(i){for(var s,u=this;u instanceof uc;){var f=Sp(u);f.__index__=0,f.__values__=t,s?_.__wrapped__=f:s=f;var _=f;u=u.__wrapped__}return _.__wrapped__=i,s}function pk(){var i=this.__wrapped__;if(i instanceof Oe){var s=i;return this.__actions__.length&&(s=new Oe(this)),s=s.reverse(),s.__actions__.push({func:Ic,args:[yd],thisArg:t}),new Kn(s,this.__chain__)}return this.thru(yd)}function _k(){return Yg(this.__wrapped__,this.__actions__)}var vk=_c(function(i,s,u){$e.call(i,u)?++i[u]:Jr(i,u,1)});function yk(i,s,u){var f=Ee(i)?cg:lS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}function Ck(i,s){var u=Ee(i)?Eo:Pg;return u(i,de(s,3))}var Ek=ap(Ap),wk=ap(kp);function Tk(i,s){return Ht(Sc(i,s),1)}function bk(i,s){return Ht(Sc(i,s),Mt)}function Ik(i,s,u){return u=u===t?1:be(u),Ht(Sc(i,s),u)}function Dp(i,s){var u=Ee(i)?Hn:Io;return u(i,de(s,3))}function Lp(i,s){var u=Ee(i)?Wb:Og;return u(i,de(s,3))}var Sk=_c(function(i,s,u){$e.call(i,u)?i[u].push(s):Jr(i,u,[s])});function Ak(i,s,u,f){i=fn(i)?i:$i(i),u=u&&!f?be(u):0;var _=i.length;return u<0&&(u=kt(_+u,0)),Oc(i)?u<=_&&i.indexOf(s,u)>-1:!!_&&Ri(i,s,u)>-1}var kk=Se(function(i,s,u){var f=-1,_=typeof s=="function",E=fn(i)?U(i.length):[];return Io(i,function(b){E[++f]=_?Tn(s,b,u):ja(b,s,u)}),E}),Nk=_c(function(i,s,u){Jr(i,u,s)});function Sc(i,s){var u=Ee(i)?st:Bg;return u(i,de(s,3))}function Rk(i,s,u,f){return i==null?[]:(Ee(s)||(s=s==null?[]:[s]),u=f?t:u,Ee(u)||(u=u==null?[]:[u]),$g(i,s,u))}var Ok=_c(function(i,s,u){i[u?0:1].push(s)},function(){return[[],[]]});function Pk(i,s,u){var f=Ee(i)?Pu:hg,_=arguments.length<3;return f(i,de(s,4),u,_,Io)}function Mk(i,s,u){var f=Ee(i)?zb:hg,_=arguments.length<3;return f(i,de(s,4),u,_,Og)}function Dk(i,s){var u=Ee(i)?Eo:Pg;return u(i,Nc(de(s,3)))}function Lk(i){var s=Ee(i)?Ag:AS;return s(i)}function xk(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=be(s);var f=Ee(i)?oS:kS;return f(i,s)}function Uk(i){var s=Ee(i)?iS:RS;return s(i)}function Bk(i){if(i==null)return 0;if(fn(i))return Oc(i)?Pi(i):i.length;var s=Yt(i);return s==Ft||s==oe?i.size:Qu(i).length}function Fk(i,s,u){var f=Ee(i)?Mu:OS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}var Vk=Se(function(i,s){if(i==null)return[];var u=s.length;return u>1&&sn(i,s[0],s[1])?s=[]:u>2&&sn(s[0],s[1],s[2])&&(s=[s[0]]),$g(i,Ht(s,1),[])}),Ac=CI||function(){return Vt.Date.now()};function Hk(i,s){if(typeof s!="function")throw new $n(c);return i=be(i),function(){if(--i<1)return s.apply(this,arguments)}}function xp(i,s,u){return s=u?t:s,s=i&&s==null?i.length:s,Qr(i,M,t,t,t,t,s)}function Up(i,s){var u;if(typeof s!="function")throw new $n(c);return i=be(i),function(){return--i>0&&(u=s.apply(this,arguments)),i<=1&&(s=t),u}}var Ed=Se(function(i,s,u){var f=k;if(u.length){var _=To(u,Vi(Ed));f|=K}return Qr(i,f,s,u,_)}),Bp=Se(function(i,s,u){var f=k|I;if(u.length){var _=To(u,Vi(Bp));f|=K}return Qr(s,f,i,u,_)});function Fp(i,s,u){s=u?t:s;var f=Qr(i,D,t,t,t,t,t,s);return f.placeholder=Fp.placeholder,f}function Vp(i,s,u){s=u?t:s;var f=Qr(i,L,t,t,t,t,t,s);return f.placeholder=Vp.placeholder,f}function Hp(i,s,u){var f,_,E,b,S,P,W=0,z=!1,j=!1,te=!0;if(typeof i!="function")throw new $n(c);s=qn(s)||0,ut(u)&&(z=!!u.leading,j="maxWait"in u,E=j?kt(qn(u.maxWait)||0,s):E,te="trailing"in u?!!u.trailing:te);function se(_t){var dr=f,no=_;return f=_=t,W=_t,b=i.apply(no,dr),b}function he(_t){return W=_t,S=Za(Re,s),z?se(_t):b}function Ie(_t){var dr=_t-P,no=_t-W,a_=s-dr;return j?jt(a_,E-no):a_}function fe(_t){var dr=_t-P,no=_t-W;return P===t||dr>=s||dr<0||j&&no>=E}function Re(){var _t=Ac();if(fe(_t))return Pe(_t);S=Za(Re,Ie(_t))}function Pe(_t){return S=t,te&&f?se(_t):(f=_=t,b)}function An(){S!==t&&Qg(S),W=0,f=P=_=S=t}function cn(){return S===t?b:Pe(Ac())}function kn(){var _t=Ac(),dr=fe(_t);if(f=arguments,_=this,P=_t,dr){if(S===t)return he(P);if(j)return Qg(S),S=Za(Re,s),se(P)}return S===t&&(S=Za(Re,s)),b}return kn.cancel=An,kn.flush=cn,kn}var $k=Se(function(i,s){return Rg(i,1,s)}),Kk=Se(function(i,s,u){return Rg(i,qn(s)||0,u)});function Wk(i){return Qr(i,ae)}function kc(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new $n(c);var u=function(){var f=arguments,_=s?s.apply(this,f):f[0],E=u.cache;if(E.has(_))return E.get(_);var b=i.apply(this,f);return u.cache=E.set(_,b)||E,b};return u.cache=new(kc.Cache||Yr),u}kc.Cache=Yr;function Nc(i){if(typeof i!="function")throw new $n(c);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function zk(i){return Up(2,i)}var Gk=PS(function(i,s){s=s.length==1&&Ee(s[0])?st(s[0],bn(de())):st(Ht(s,1),bn(de()));var u=s.length;return Se(function(f){for(var _=-1,E=jt(f.length,u);++_<E;)f[_]=s[_].call(this,f[_]);return Tn(i,this,f)})}),wd=Se(function(i,s){var u=To(s,Vi(wd));return Qr(i,K,t,s,u)}),$p=Se(function(i,s){var u=To(s,Vi($p));return Qr(i,q,t,s,u)}),qk=Xr(function(i,s){return Qr(i,ce,t,t,t,s)});function jk(i,s){if(typeof i!="function")throw new $n(c);return s=s===t?s:be(s),Se(i,s)}function Yk(i,s){if(typeof i!="function")throw new $n(c);return s=s==null?0:kt(be(s),0),Se(function(u){var f=u[s],_=ko(u,0,s);return f&&wo(_,f),Tn(i,this,_)})}function Jk(i,s,u){var f=!0,_=!0;if(typeof i!="function")throw new $n(c);return ut(u)&&(f="leading"in u?!!u.leading:f,_="trailing"in u?!!u.trailing:_),Hp(i,s,{leading:f,maxWait:s,trailing:_})}function Qk(i){return xp(i,1)}function Xk(i,s){return wd(ad(s),i)}function Zk(){if(!arguments.length)return[];var i=arguments[0];return Ee(i)?i:[i]}function eN(i){return Wn(i,w)}function tN(i,s){return s=typeof s=="function"?s:t,Wn(i,w,s)}function nN(i){return Wn(i,v|w)}function rN(i,s){return s=typeof s=="function"?s:t,Wn(i,v|w,s)}function oN(i,s){return s==null||Ng(i,s,Dt(s))}function ur(i,s){return i===s||i!==i&&s!==s}var iN=Ec(ju),aN=Ec(function(i,s){return i>=s}),ii=Lg(function(){return arguments}())?Lg:function(i){return ht(i)&&$e.call(i,"callee")&&!Eg.call(i,"callee")},Ee=U.isArray,sN=ng?bn(ng):gS;function fn(i){return i!=null&&Rc(i.length)&&!eo(i)}function pt(i){return ht(i)&&fn(i)}function cN(i){return i===!0||i===!1||ht(i)&&an(i)==Ar}var No=wI||Md,lN=rg?bn(rg):pS;function uN(i){return ht(i)&&i.nodeType===1&&!es(i)}function dN(i){if(i==null)return!0;if(fn(i)&&(Ee(i)||typeof i=="string"||typeof i.splice=="function"||No(i)||Hi(i)||ii(i)))return!i.length;var s=Yt(i);if(s==Ft||s==oe)return!i.size;if(Xa(i))return!Qu(i).length;for(var u in i)if($e.call(i,u))return!1;return!0}function hN(i,s){return Ya(i,s)}function fN(i,s,u){u=typeof u=="function"?u:t;var f=u?u(i,s):t;return f===t?Ya(i,s,t,u):!!f}function Td(i){if(!ht(i))return!1;var s=an(i);return s==_o||s==Ba||typeof i.message=="string"&&typeof i.name=="string"&&!es(i)}function mN(i){return typeof i=="number"&&Tg(i)}function eo(i){if(!ut(i))return!1;var s=an(i);return s==vo||s==yo||s==Ua||s==R}function Kp(i){return typeof i=="number"&&i==be(i)}function Rc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=at}function ut(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ht(i){return i!=null&&typeof i=="object"}var Wp=og?bn(og):vS;function gN(i,s){return i===s||Ju(i,s,fd(s))}function pN(i,s,u){return u=typeof u=="function"?u:t,Ju(i,s,fd(s),u)}function _N(i){return zp(i)&&i!=+i}function vN(i){if(tA(i))throw new Ce(a);return xg(i)}function yN(i){return i===null}function CN(i){return i==null}function zp(i){return typeof i=="number"||ht(i)&&an(i)==En}function es(i){if(!ht(i)||an(i)!=wn)return!1;var s=rc(i);if(s===null)return!0;var u=$e.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Zs.call(u)==pI}var bd=ig?bn(ig):yS;function EN(i){return Kp(i)&&i>=-at&&i<=at}var Gp=ag?bn(ag):CS;function Oc(i){return typeof i=="string"||!Ee(i)&&ht(i)&&an(i)==je}function Sn(i){return typeof i=="symbol"||ht(i)&&an(i)==Ze}var Hi=sg?bn(sg):ES;function wN(i){return i===t}function TN(i){return ht(i)&&Yt(i)==V}function bN(i){return ht(i)&&an(i)==J}var IN=Ec(Xu),SN=Ec(function(i,s){return i<=s});function qp(i){if(!i)return[];if(fn(i))return Oc(i)?cr(i):hn(i);if(Ha&&i[Ha])return oI(i[Ha]());var s=Yt(i),u=s==Ft?Fu:s==oe?Js:$i;return u(i)}function to(i){if(!i)return i===0?i:0;if(i=qn(i),i===Mt||i===-Mt){var s=i<0?-1:1;return s*Et}return i===i?i:0}function be(i){var s=to(i),u=s%1;return s===s?u?s-u:s:0}function jp(i){return i?ti(be(i),0,St):0}function qn(i){if(typeof i=="number")return i;if(Sn(i))return on;if(ut(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=ut(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=fg(i);var u=sb.test(i);return u||lb.test(i)?Hb(i.slice(2),u?2:8):ab.test(i)?on:+i}function Yp(i){return Rr(i,mn(i))}function AN(i){return i?ti(be(i),-at,at):i===0?i:0}function He(i){return i==null?"":In(i)}var kN=Bi(function(i,s){if(Xa(s)||fn(s)){Rr(s,Dt(s),i);return}for(var u in s)$e.call(s,u)&&Ga(i,u,s[u])}),Jp=Bi(function(i,s){Rr(s,mn(s),i)}),Pc=Bi(function(i,s,u,f){Rr(s,mn(s),i,f)}),NN=Bi(function(i,s,u,f){Rr(s,Dt(s),i,f)}),RN=Xr(zu);function ON(i,s){var u=Ui(i);return s==null?u:kg(u,s)}var PN=Se(function(i,s){i=Ye(i);var u=-1,f=s.length,_=f>2?s[2]:t;for(_&&sn(s[0],s[1],_)&&(f=1);++u<f;)for(var E=s[u],b=mn(E),S=-1,P=b.length;++S<P;){var W=b[S],z=i[W];(z===t||ur(z,Di[W])&&!$e.call(i,W))&&(i[W]=E[W])}return i}),MN=Se(function(i){return i.push(t,fp),Tn(Qp,t,i)});function DN(i,s){return lg(i,de(s,3),Nr)}function LN(i,s){return lg(i,de(s,3),qu)}function xN(i,s){return i==null?i:Gu(i,de(s,3),mn)}function UN(i,s){return i==null?i:Mg(i,de(s,3),mn)}function BN(i,s){return i&&Nr(i,de(s,3))}function FN(i,s){return i&&qu(i,de(s,3))}function VN(i){return i==null?[]:fc(i,Dt(i))}function HN(i){return i==null?[]:fc(i,mn(i))}function Id(i,s,u){var f=i==null?t:ni(i,s);return f===t?u:f}function $N(i,s){return i!=null&&pp(i,s,dS)}function Sd(i,s){return i!=null&&pp(i,s,hS)}var KN=cp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=ec.call(s)),i[s]=u},kd(gn)),WN=cp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=ec.call(s)),$e.call(i,s)?i[s].push(u):i[s]=[u]},de),zN=Se(ja);function Dt(i){return fn(i)?Sg(i):Qu(i)}function mn(i){return fn(i)?Sg(i,!0):wS(i)}function GN(i,s){var u={};return s=de(s,3),Nr(i,function(f,_,E){Jr(u,s(f,_,E),f)}),u}function qN(i,s){var u={};return s=de(s,3),Nr(i,function(f,_,E){Jr(u,_,s(f,_,E))}),u}var jN=Bi(function(i,s,u){mc(i,s,u)}),Qp=Bi(function(i,s,u,f){mc(i,s,u,f)}),YN=Xr(function(i,s){var u={};if(i==null)return u;var f=!1;s=st(s,function(E){return E=Ao(E,i),f||(f=E.length>1),E}),Rr(i,dd(i),u),f&&(u=Wn(u,v|p|w,KS));for(var _=s.length;_--;)rd(u,s[_]);return u});function JN(i,s){return Xp(i,Nc(de(s)))}var QN=Xr(function(i,s){return i==null?{}:bS(i,s)});function Xp(i,s){if(i==null)return{};var u=st(dd(i),function(f){return[f]});return s=de(s),Kg(i,u,function(f,_){return s(f,_[0])})}function XN(i,s,u){s=Ao(s,i);var f=-1,_=s.length;for(_||(_=1,i=t);++f<_;){var E=i==null?t:i[Or(s[f])];E===t&&(f=_,E=u),i=eo(E)?E.call(i):E}return i}function ZN(i,s,u){return i==null?i:Ja(i,s,u)}function eR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Ja(i,s,u,f)}var Zp=dp(Dt),e_=dp(mn);function tR(i,s,u){var f=Ee(i),_=f||No(i)||Hi(i);if(s=de(s,4),u==null){var E=i&&i.constructor;_?u=f?new E:[]:ut(i)?u=eo(E)?Ui(rc(i)):{}:u={}}return(_?Hn:Nr)(i,function(b,S,P){return s(u,b,S,P)}),u}function nR(i,s){return i==null?!0:rd(i,s)}function rR(i,s,u){return i==null?i:jg(i,s,ad(u))}function oR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:jg(i,s,ad(u),f)}function $i(i){return i==null?[]:Bu(i,Dt(i))}function iR(i){return i==null?[]:Bu(i,mn(i))}function aR(i,s,u){return u===t&&(u=s,s=t),u!==t&&(u=qn(u),u=u===u?u:0),s!==t&&(s=qn(s),s=s===s?s:0),ti(qn(i),s,u)}function sR(i,s,u){return s=to(s),u===t?(u=s,s=0):u=to(u),i=qn(i),fS(i,s,u)}function cR(i,s,u){if(u&&typeof u!="boolean"&&sn(i,s,u)&&(s=u=t),u===t&&(typeof s=="boolean"?(u=s,s=t):typeof i=="boolean"&&(u=i,i=t)),i===t&&s===t?(i=0,s=1):(i=to(i),s===t?(s=i,i=0):s=to(s)),i>s){var f=i;i=s,s=f}if(u||i%1||s%1){var _=bg();return jt(i+_*(s-i+Vb("1e-"+((_+"").length-1))),s)}return ed(i,s)}var lR=Fi(function(i,s,u){return s=s.toLowerCase(),i+(u?t_(s):s)});function t_(i){return Ad(He(i).toLowerCase())}function n_(i){return i=He(i),i&&i.replace(db,Zb).replace(Rb,"")}function uR(i,s,u){i=He(i),s=In(s);var f=i.length;u=u===t?f:ti(be(u),0,f);var _=u;return u-=s.length,u>=0&&i.slice(u,_)==s}function dR(i){return i=He(i),i&&zT.test(i)?i.replace(Mm,eI):i}function hR(i){return i=He(i),i&&QT.test(i)?i.replace(wu,"\\$&"):i}var fR=Fi(function(i,s,u){return i+(u?"-":"")+s.toLowerCase()}),mR=Fi(function(i,s,u){return i+(u?" ":"")+s.toLowerCase()}),gR=ip("toLowerCase");function pR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;if(!s||f>=s)return i;var _=(s-f)/2;return Cc(sc(_),u)+i+Cc(ac(_),u)}function _R(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?i+Cc(s-f,u):i}function vR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?Cc(s-f,u)+i:i}function yR(i,s,u){return u||s==null?s=0:s&&(s=+s),SI(He(i).replace(Tu,""),s||0)}function CR(i,s,u){return(u?sn(i,s,u):s===t)?s=1:s=be(s),td(He(i),s)}function ER(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var wR=Fi(function(i,s,u){return i+(u?"_":"")+s.toLowerCase()});function TR(i,s,u){return u&&typeof u!="number"&&sn(i,s,u)&&(s=u=t),u=u===t?St:u>>>0,u?(i=He(i),i&&(typeof s=="string"||s!=null&&!bd(s))&&(s=In(s),!s&&Oi(i))?ko(cr(i),0,u):i.split(s,u)):[]}var bR=Fi(function(i,s,u){return i+(u?" ":"")+Ad(s)});function IR(i,s,u){return i=He(i),u=u==null?0:ti(be(u),0,i.length),s=In(s),i.slice(u,u+s.length)==s}function SR(i,s,u){var f=y.templateSettings;u&&sn(i,s,u)&&(s=t),i=He(i),s=Pc({},s,f,hp);var _=Pc({},s.imports,f.imports,hp),E=Dt(_),b=Bu(_,E),S,P,W=0,z=s.interpolate||zs,j="__p += '",te=Vu((s.escape||zs).source+"|"+z.source+"|"+(z===Dm?ib:zs).source+"|"+(s.evaluate||zs).source+"|$","g"),se="//# sourceURL="+($e.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lb+"]")+`
56
+ `;i.replace(te,function(fe,Re,Pe,An,cn,kn){return Pe||(Pe=An),j+=i.slice(W,kn).replace(hb,tI),Re&&(S=!0,j+=`' +
57
57
  __e(`+Re+`) +
58
58
  '`),cn&&(P=!0,j+=`';
59
59
  `+cn+`;
@@ -63,13 +63,13 @@ __p += '`),Pe&&(j+=`' +
63
63
  `;var he=$e.call(s,"variable")&&s.variable;if(!he)j=`with (obj) {
64
64
  `+j+`
65
65
  }
66
- `;else if(ob.test(he))throw new Ce(d);j=(P?j.replace($T,""):j).replace(KT,"$1").replace(WT,"$1;"),j="function("+(he||"obj")+`) {
66
+ `;else if(rb.test(he))throw new Ce(d);j=(P?j.replace(HT,""):j).replace($T,"$1").replace(KT,"$1;"),j="function("+(he||"obj")+`) {
67
67
  `+(he?"":`obj || (obj = {});
68
68
  `)+"var __t, __p = ''"+(S?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
69
69
  function print() { __p += __j.call(arguments, '') }
70
70
  `:`;
71
71
  `)+j+`return __p
72
- }`;var Ie=o_(function(){return Fe(E,se+"return "+j).apply(t,b)});if(Ie.source=j,Td(Ie))throw Ie;return Ie}function kR(i){return He(i).toLowerCase()}function NR(i){return He(i).toUpperCase()}function RR(i,s,u){if(i=He(i),i&&(u||s===t))return fg(i);if(!i||!(s=In(s)))return i;var f=cr(i),_=cr(s),E=mg(f,_),b=gg(f,_)+1;return ko(f,E,b).join("")}function OR(i,s,u){if(i=He(i),i&&(u||s===t))return i.slice(0,_g(i)+1);if(!i||!(s=In(s)))return i;var f=cr(i),_=gg(f,cr(s))+1;return ko(f,0,_).join("")}function PR(i,s,u){if(i=He(i),i&&(u||s===t))return i.replace(Tu,"");if(!i||!(s=In(s)))return i;var f=cr(i),_=mg(f,cr(s));return ko(f,_).join("")}function MR(i,s){var u=X,f=ee;if(ut(s)){var _="separator"in s?s.separator:_;u="length"in s?be(s.length):u,f="omission"in s?In(s.omission):f}i=He(i);var E=i.length;if(Oi(i)){var b=cr(i);E=b.length}if(u>=E)return i;var S=u-Pi(f);if(S<1)return f;var P=b?ko(b,0,S).join(""):i.slice(0,S);if(_===t)return P+f;if(b&&(S+=P.length-S),bd(_)){if(i.slice(S).search(_)){var W,z=P;for(_.global||(_=Vu(_.source,He(Lm.exec(_))+"g")),_.lastIndex=0;W=_.exec(z);)var j=W.index;P=P.slice(0,j===t?S:j)}}else if(i.indexOf(In(_),S)!=S){var te=P.lastIndexOf(_);te>-1&&(P=P.slice(0,te))}return P+f}function DR(i){return i=He(i),i&&zT.test(i)?i.replace(Pm,lI):i}var LR=Fi(function(i,s,u){return i+(u?" ":"")+s.toUpperCase()}),Ad=ip("toUpperCase");function r_(i,s,u){return i=He(i),s=u?t:s,s===t?oI(i)?hI(i):Yb(i):i.match(s)||[]}var o_=Se(function(i,s){try{return Tn(i,t,s)}catch(u){return Td(u)?u:new Ce(u)}}),xR=Xr(function(i,s){return Hn(s,function(u){u=Or(u),Jr(i,u,Ed(i[u],i))}),i});function UR(i){var s=i==null?0:i.length,u=de();return i=s?st(i,function(f){if(typeof f[1]!="function")throw new $n(c);return[u(f[0]),f[1]]}):[],Se(function(f){for(var _=-1;++_<s;){var E=i[_];if(Tn(E[0],this,f))return Tn(E[1],this,f)}})}function BR(i){return lS(Wn(i,v))}function kd(i){return function(){return i}}function FR(i,s){return i==null||i!==i?s:i}var VR=sp(),HR=sp(!0);function gn(i){return i}function Nd(i){return Ug(typeof i=="function"?i:Wn(i,v))}function $R(i){return Fg(Wn(i,v))}function KR(i,s){return Vg(i,Wn(s,v))}var WR=Se(function(i,s){return function(u){return ja(u,i,s)}}),zR=Se(function(i,s){return function(u){return ja(i,u,s)}});function Rd(i,s,u){var f=Dt(s),_=fc(s,f);u==null&&!(ut(s)&&(_.length||!f.length))&&(u=s,s=i,i=this,_=fc(s,Dt(s)));var E=!(ut(u)&&"chain"in u)||!!u.chain,b=eo(i);return Hn(_,function(S){var P=s[S];i[S]=P,b&&(i.prototype[S]=function(){var W=this.__chain__;if(E||W){var z=i(this.__wrapped__),j=z.__actions__=hn(this.__actions__);return j.push({func:P,args:arguments,thisArg:i}),z.__chain__=W,z}return P.apply(i,wo([this.value()],arguments))})}),i}function GR(){return Vt._===this&&(Vt._=vI),this}function Od(){}function qR(i){return i=be(i),Se(function(s){return Hg(s,i)})}var jR=cd(st),YR=cd(cg),JR=cd(Mu);function i_(i){return gd(i)?Du(Or(i)):SS(i)}function QR(i){return function(s){return i==null?t:ni(i,s)}}var XR=lp(),ZR=lp(!0);function Pd(){return[]}function Md(){return!1}function eO(){return{}}function tO(){return""}function nO(){return!0}function rO(i,s){if(i=be(i),i<1||i>at)return[];var u=St,f=jt(i,St);s=de(s),i-=St;for(var _=Uu(f,s);++u<i;)s(u);return _}function oO(i){return Ee(i)?st(i,Or):Sn(i)?[i]:hn(Ip(He(i)))}function iO(i){var s=++pI;return He(i)+s}var aO=yc(function(i,s){return i+s},0),sO=ld("ceil"),cO=yc(function(i,s){return i/s},1),lO=ld("floor");function uO(i){return i&&i.length?hc(i,gn,ju):t}function dO(i,s){return i&&i.length?hc(i,de(s,2),ju):t}function hO(i){return dg(i,gn)}function fO(i,s){return dg(i,de(s,2))}function mO(i){return i&&i.length?hc(i,gn,Xu):t}function gO(i,s){return i&&i.length?hc(i,de(s,2),Xu):t}var pO=yc(function(i,s){return i*s},1),_O=ld("round"),vO=yc(function(i,s){return i-s},0);function yO(i){return i&&i.length?xu(i,gn):0}function CO(i,s){return i&&i.length?xu(i,de(s,2)):0}return y.after=$k,y.ary=xp,y.assign=NN,y.assignIn=Jp,y.assignInWith=Pc,y.assignWith=RN,y.at=ON,y.before=Up,y.bind=Ed,y.bindAll=xR,y.bindKey=Bp,y.castArray=eN,y.chain=Mp,y.chunk=lA,y.compact=uA,y.concat=dA,y.cond=UR,y.conforms=BR,y.constant=kd,y.countBy=yk,y.create=PN,y.curry=Fp,y.curryRight=Vp,y.debounce=Hp,y.defaults=MN,y.defaultsDeep=DN,y.defer=Kk,y.delay=Wk,y.difference=hA,y.differenceBy=fA,y.differenceWith=mA,y.drop=gA,y.dropRight=pA,y.dropRightWhile=_A,y.dropWhile=vA,y.fill=yA,y.filter=Ek,y.flatMap=bk,y.flatMapDeep=Ik,y.flatMapDepth=Sk,y.flatten=Np,y.flattenDeep=CA,y.flattenDepth=EA,y.flip=zk,y.flow=VR,y.flowRight=HR,y.fromPairs=wA,y.functions=HN,y.functionsIn=$N,y.groupBy=Ak,y.initial=bA,y.intersection=IA,y.intersectionBy=SA,y.intersectionWith=AA,y.invert=WN,y.invertBy=zN,y.invokeMap=Nk,y.iteratee=Nd,y.keyBy=Rk,y.keys=Dt,y.keysIn=mn,y.map=Sc,y.mapKeys=qN,y.mapValues=jN,y.matches=$R,y.matchesProperty=KR,y.memoize=kc,y.merge=YN,y.mergeWith=Qp,y.method=WR,y.methodOf=zR,y.mixin=Rd,y.negate=Nc,y.nthArg=qR,y.omit=JN,y.omitBy=QN,y.once=Gk,y.orderBy=Ok,y.over=jR,y.overArgs=qk,y.overEvery=YR,y.overSome=JR,y.partial=wd,y.partialRight=$p,y.partition=Pk,y.pick=XN,y.pickBy=Xp,y.property=i_,y.propertyOf=QR,y.pull=OA,y.pullAll=Op,y.pullAllBy=PA,y.pullAllWith=MA,y.pullAt=DA,y.range=XR,y.rangeRight=ZR,y.rearg=jk,y.reject=Lk,y.remove=LA,y.rest=Yk,y.reverse=yd,y.sampleSize=Uk,y.set=eR,y.setWith=tR,y.shuffle=Bk,y.slice=xA,y.sortBy=Hk,y.sortedUniq=KA,y.sortedUniqBy=WA,y.split=bR,y.spread=Jk,y.tail=zA,y.take=GA,y.takeRight=qA,y.takeRightWhile=jA,y.takeWhile=YA,y.tap=uk,y.throttle=Qk,y.thru=Ic,y.toArray=qp,y.toPairs=Zp,y.toPairsIn=e_,y.toPath=oO,y.toPlainObject=Yp,y.transform=nR,y.unary=Xk,y.union=JA,y.unionBy=QA,y.unionWith=XA,y.uniq=ZA,y.uniqBy=ek,y.uniqWith=tk,y.unset=rR,y.unzip=Cd,y.unzipWith=Pp,y.update=oR,y.updateWith=iR,y.values=$i,y.valuesIn=aR,y.without=nk,y.words=r_,y.wrap=Zk,y.xor=rk,y.xorBy=ok,y.xorWith=ik,y.zip=ak,y.zipObject=sk,y.zipObjectDeep=ck,y.zipWith=lk,y.entries=Zp,y.entriesIn=e_,y.extend=Jp,y.extendWith=Pc,Rd(y,y),y.add=aO,y.attempt=o_,y.camelCase=uR,y.capitalize=t_,y.ceil=sO,y.clamp=sR,y.clone=tN,y.cloneDeep=rN,y.cloneDeepWith=oN,y.cloneWith=nN,y.conformsTo=iN,y.deburr=n_,y.defaultTo=FR,y.divide=cO,y.endsWith=dR,y.eq=ur,y.escape=hR,y.escapeRegExp=fR,y.every=Ck,y.find=wk,y.findIndex=Ap,y.findKey=LN,y.findLast=Tk,y.findLastIndex=kp,y.findLastKey=xN,y.floor=lO,y.forEach=Dp,y.forEachRight=Lp,y.forIn=UN,y.forInRight=BN,y.forOwn=FN,y.forOwnRight=VN,y.get=Id,y.gt=aN,y.gte=sN,y.has=KN,y.hasIn=Sd,y.head=Rp,y.identity=gn,y.includes=kk,y.indexOf=TA,y.inRange=cR,y.invoke=GN,y.isArguments=ii,y.isArray=Ee,y.isArrayBuffer=cN,y.isArrayLike=fn,y.isArrayLikeObject=pt,y.isBoolean=lN,y.isBuffer=No,y.isDate=uN,y.isElement=dN,y.isEmpty=hN,y.isEqual=fN,y.isEqualWith=mN,y.isError=Td,y.isFinite=gN,y.isFunction=eo,y.isInteger=Kp,y.isLength=Rc,y.isMap=Wp,y.isMatch=pN,y.isMatchWith=_N,y.isNaN=vN,y.isNative=yN,y.isNil=EN,y.isNull=CN,y.isNumber=zp,y.isObject=ut,y.isObjectLike=ht,y.isPlainObject=es,y.isRegExp=bd,y.isSafeInteger=wN,y.isSet=Gp,y.isString=Oc,y.isSymbol=Sn,y.isTypedArray=Hi,y.isUndefined=TN,y.isWeakMap=bN,y.isWeakSet=IN,y.join=kA,y.kebabCase=mR,y.last=Gn,y.lastIndexOf=NA,y.lowerCase=gR,y.lowerFirst=pR,y.lt=SN,y.lte=AN,y.max=uO,y.maxBy=dO,y.mean=hO,y.meanBy=fO,y.min=mO,y.minBy=gO,y.stubArray=Pd,y.stubFalse=Md,y.stubObject=eO,y.stubString=tO,y.stubTrue=nO,y.multiply=pO,y.nth=RA,y.noConflict=GR,y.noop=Od,y.now=Ac,y.pad=_R,y.padEnd=vR,y.padStart=yR,y.parseInt=CR,y.random=lR,y.reduce=Mk,y.reduceRight=Dk,y.repeat=ER,y.replace=wR,y.result=ZN,y.round=_O,y.runInContext=O,y.sample=xk,y.size=Fk,y.snakeCase=TR,y.some=Vk,y.sortedIndex=UA,y.sortedIndexBy=BA,y.sortedIndexOf=FA,y.sortedLastIndex=VA,y.sortedLastIndexBy=HA,y.sortedLastIndexOf=$A,y.startCase=IR,y.startsWith=SR,y.subtract=vO,y.sum=yO,y.sumBy=CO,y.template=AR,y.times=rO,y.toFinite=to,y.toInteger=be,y.toLength=jp,y.toLower=kR,y.toNumber=qn,y.toSafeInteger=kN,y.toString=He,y.toUpper=NR,y.trim=RR,y.trimEnd=OR,y.trimStart=PR,y.truncate=MR,y.unescape=DR,y.uniqueId=iO,y.upperCase=LR,y.upperFirst=Ad,y.each=Dp,y.eachRight=Lp,y.first=Rp,Rd(y,function(){var i={};return Nr(y,function(s,u){$e.call(y.prototype,u)||(i[u]=s)}),i}(),{chain:!1}),y.VERSION=r,Hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){y[i].placeholder=y}),Hn(["drop","take"],function(i,s){Oe.prototype[i]=function(u){u=u===t?1:kt(be(u),0);var f=this.__filtered__&&!s?new Oe(this):this.clone();return f.__filtered__?f.__takeCount__=jt(u,f.__takeCount__):f.__views__.push({size:jt(u,St),type:i+(f.__dir__<0?"Right":"")}),f},Oe.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Hn(["filter","map","takeWhile"],function(i,s){var u=s+1,f=u==Ct||u==qt;Oe.prototype[i]=function(_){var E=this.clone();return E.__iteratees__.push({iteratee:de(_,3),type:u}),E.__filtered__=E.__filtered__||f,E}}),Hn(["head","last"],function(i,s){var u="take"+(s?"Right":"");Oe.prototype[i]=function(){return this[u](1).value()[0]}}),Hn(["initial","tail"],function(i,s){var u="drop"+(s?"":"Right");Oe.prototype[i]=function(){return this.__filtered__?new Oe(this):this[u](1)}}),Oe.prototype.compact=function(){return this.filter(gn)},Oe.prototype.find=function(i){return this.filter(i).head()},Oe.prototype.findLast=function(i){return this.reverse().find(i)},Oe.prototype.invokeMap=Se(function(i,s){return typeof i=="function"?new Oe(this):this.map(function(u){return ja(u,i,s)})}),Oe.prototype.reject=function(i){return this.filter(Nc(de(i)))},Oe.prototype.slice=function(i,s){i=be(i);var u=this;return u.__filtered__&&(i>0||s<0)?new Oe(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),s!==t&&(s=be(s),u=s<0?u.dropRight(-s):u.take(s-i)),u)},Oe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Oe.prototype.toArray=function(){return this.take(St)},Nr(Oe.prototype,function(i,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),_=y[f?"take"+(s=="last"?"Right":""):s],E=f||/^find/.test(s);_&&(y.prototype[s]=function(){var b=this.__wrapped__,S=f?[1]:arguments,P=b instanceof Oe,W=S[0],z=P||Ee(b),j=function(Re){var Pe=_.apply(y,wo([Re],S));return f&&te?Pe[0]:Pe};z&&u&&typeof W=="function"&&W.length!=1&&(P=z=!1);var te=this.__chain__,se=!!this.__actions__.length,he=E&&!te,Ie=P&&!se;if(!E&&z){b=Ie?b:new Oe(this);var fe=i.apply(b,S);return fe.__actions__.push({func:Ic,args:[j],thisArg:t}),new Kn(fe,te)}return he&&Ie?i.apply(this,S):(fe=this.thru(j),he?f?fe.value()[0]:fe.value():fe)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(i){var s=Qs[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var _=arguments;if(f&&!this.__chain__){var E=this.value();return s.apply(Ee(E)?E:[],_)}return this[u](function(b){return s.apply(Ee(b)?b:[],_)})}}),Nr(Oe.prototype,function(i,s){var u=y[s];if(u){var f=u.name+"";$e.call(xi,f)||(xi[f]=[]),xi[f].push({name:s,func:u})}}),xi[vc(t,I).name]=[{name:"wrapper",func:t}],Oe.prototype.clone=DI,Oe.prototype.reverse=LI,Oe.prototype.value=xI,y.prototype.at=dk,y.prototype.chain=hk,y.prototype.commit=fk,y.prototype.next=mk,y.prototype.plant=pk,y.prototype.reverse=_k,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=vk,y.prototype.first=y.prototype.head,Ha&&(y.prototype[Ha]=gk),y},Mi=fI();Qo?((Qo.exports=Mi)._=Mi,Nu._=Mi):Vt._=Mi}).call(uF)}(ss,ss.exports)),ss.exports}var Ra=dF();const ml=lF(Ra);function Oa(n,e,t=[]){const r=fF(e);if(!r)return n;const o=r.split(" ");return n.filter(a=>hF(a,o,t))}function hF(n,e,t){return t.some(r=>{const o=ml.get(n,r);if(ml.isNil(o))return!1;const a=ml.toString(o).toLowerCase();return e.every(c=>a.includes(c))})}function fF(n){return ml.trim(n).toLowerCase().replace(/\s+/g," ")}const mF={class:"text-faded mt-7"},gF={key:0,class:"d-flex align-baseline mb-1"},pF={class:"me-1"},_F={class:"max-w-_form-metadataJ"},vF={key:0,class:"mb-1"},yF={key:1,class:"mb-1"},CF={class:"mb-1"},ou=l.defineComponent({__name:"FormMetadata",props:{meta:{},id:{}},setup(n){const{t:e}=br();return(t,r)=>(l.openBlock(),l.createElementBlock("div",mF,[l.createVNode(Qe.VRow,{"no-gutters":"",class:"align-end ga-3",align:"center"},{default:l.withCtx(()=>[l.renderSlot(t.$slots,"default"),l.createVNode(Qe.VCol,{cols:"auto",class:"pa-2"},{default:l.withCtx(()=>[t.id?(l.openBlock(),l.createElementBlock("p",gF,[l.createElementVNode("b",pF,l.toDisplayString(t.id.title)+": ",1),l.createElementVNode("span",_F,l.toDisplayString(t.id.key||"-"),1),l.createElementVNode("span",null,[l.createVNode(Bl,{"content-to-copy":t.id.key,size:15},null,8,["content-to-copy"])])])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.created"))+": ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.created_at))+" - "+l.toDisplayString(t.meta.created_by),1)])]),_:1}),l.createVNode(Qe.VCol,{cols:"auto",class:"d-flex flex-column align-baseline px-2 mt-1"},{default:l.withCtx(()=>[t.meta.updated_at&&t.meta.updated_by?(l.openBlock(),l.createElementBlock("p",vF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.updated"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.updated_at))+" - "+l.toDisplayString(t.meta.updated_by),1)])):(l.openBlock(),l.createElementBlock("p",yF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.modified"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.modified_at))+" - "+l.toDisplayString(t.meta.modified_by),1)])),l.createElementVNode("p",CF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.delegated"))+": ",1),l.createTextVNode(l.toDisplayString(t.meta.delegated_at)+" - "+l.toDisplayString(t.meta.delegated_by),1)])]),_:1})]),_:3})]))}}),EF={key:0,class:"mb-2 ms-1"},wF={key:3,class:"j-field"},VE=l.defineComponent({__name:"JSelect",props:{modelValue:{},name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled"),a=l.computed(()=>{if(Array.isArray(t.items)&&t.items.length>0)if(typeof t.items[0]=="object"&&t.itemValue&&t.itemTitle){const d=t.items.find(h=>h[t.itemValue]===t.modelValue);return d?d[t.itemTitle]:""}else{const d=t.items.indexOf(t.modelValue);return d!==-1?t.items[d]:""}return""}),c=d=>{r("update:modelValue",d)};return(d,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[d.name?(l.openBlock(),l.createElementBlock("p",EF,l.toDisplayString(d.name),1)):l.createCommentVNode("",!0),d.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(d.label),1)]),_:1})):l.createCommentVNode("",!0),d.readonly?(l.openBlock(),l.createElementBlock("div",wF,[l.createVNode(mE,{value:a.value},null,8,["value"])])):(l.openBlock(),l.createBlock(l.unref(Vo.VSelect),{key:2,modelValue:t.modelValue,"onUpdate:modelValue":[h[0]||(h[0]=m=>t.modelValue=m),c],variant:o.value,items:d.items,"item-title":d.itemTitle,"item-value":d.itemValue,loading:d.loading,placeholder:d.placeholder,density:d.density,"bg-color":"containerBg",rounded:"false","hide-details":"",class:"j-field",clearable:d.clearable},null,8,["modelValue","variant","items","item-title","item-value","loading","placeholder","density","clearable"]))],64))}}),TF={key:0,class:"mb-2 ms-1"},bF={key:3,class:"j-textarea px-4 py-3 rounded-sm bg-containerBg"},HE=l.defineComponent({__name:"JTextArea",props:{modelValue:{},name:{},label:{},readonly:{type:Boolean},rows:{},hideDetails:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled");return(a,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[a.name?(l.openBlock(),l.createElementBlock("p",TF,l.toDisplayString(a.name),1)):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.label),1)]),_:1})):l.createCommentVNode("",!0),a.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(bO.VTextarea,{key:2,variant:o.value,"bg-color":"containerBg",rounded:"false",rows:a.rows,hideDetails:a.hideDetails,value:a.modelValue,"onUpdate:modelValue":c[0]||(c[0]=d=>r("update:modelValue",d)),"no-resize":""},null,8,["variant","rows","hideDetails","value"])),a.readonly?(l.openBlock(),l.createElementBlock("div",bF,l.toDisplayString(a.modelValue),1)):l.createCommentVNode("",!0)],64))}}),$E=l.defineComponent({__name:"CancelButton",props:{title:{}},emits:["cancel"],setup(n,{emit:e}){const t=e,{t:r}=br();return(o,a)=>(l.openBlock(),l.createBlock(it.VBtn,{color:"secondary",variant:"outlined",onClick:a[0]||(a[0]=c=>t("cancel")),class:"me-2 j-btn-form"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.title?l.unref(r)("actions.cancel"):l.unref(r)("actions.back")),1)]),_:1}))}}),KE=l.defineComponent({__name:"SaveButton",props:{disabled:{type:Boolean}},emits:["onSave"],setup(n,{emit:e}){const t=e,r=l.ref(!1);async function o(){r.value=!0,await t("onSave"),r.value=!1}const{t:a}=br();return(c,d)=>(l.openBlock(),l.createBlock(it.VBtn,{disabled:c.disabled,loading:r.value,color:"secondary",onClick:o,onKeydown:l.withKeys(o,["enter"]),class:"j-btn-form"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(a)("actions.save")),1)]),_:1},8,["disabled","loading"]))}}),IF={class:"mt-4"},WE=l.defineComponent({__name:"JForm",props:{title:{},metadata:{},id:{},cancelReturn:{type:Boolean}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=e;return(r,o)=>(l.openBlock(),l.createBlock(Kl,{title:r.title,class:"d-flex flex-column ma-0"},{default:l.withCtx(()=>[r.title?(l.openBlock(),l.createBlock(pi.VDivider,{key:0})):l.createCommentVNode("",!0),l.createElementVNode("div",IF,[l.renderSlot(r.$slots,"default")]),l.createVNode(xt.VCardText,{class:"pa-0 mx-0 align-content-end"},{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{justify:"space-between",class:"mt-4"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis"},{default:l.withCtx(()=>[l.createVNode(ou,{id:r.id,meta:r.metadata},null,8,["id","meta"])]),_:1}),l.createVNode(Qe.VSpacer),l.createVNode(Qe.VCol,{cols:"auto",class:"align-content-end"},{default:l.withCtx(()=>[l.createVNode($E,{"cancel-return":r.cancelReturn,onCancel:o[0]||(o[0]=a=>t("onCancel"))},null,8,["cancel-return"]),l.createVNode(KE,{onOnSave:o[1]||(o[1]=a=>t("onSave"))})]),_:1})]),_:1})]),_:1})]),_:3},8,["title"]))}}),SF={class:"d-flex align-items-center"},AF={key:0,class:"d-flex align-center"},kF={class:"ms-1"},NF={class:"d-flex"},RF={class:"d-flex mb-1 align-center"},OF={class:"min-w-100 relative"},zE=l.defineComponent({__name:"TabFormHeader",props:{id:{},readonly:{type:Boolean,default:!1}},emits:["update:isEdition","save","cancel","delete","disable"],setup(n,{emit:e}){var v;const t=n,r=e,o=l.getCurrentInstance(),a=((v=o==null?void 0:o.vnode.props)==null?void 0:v.onDisable)!==void 0,c=l.ref(t.readonly);function d(){r("cancel"),c.value=!1,r("update:isEdition",c.value)}function h(){c.value=!c.value,r("update:isEdition",c.value)}async function m(){r("delete"),r("disable")}const{t:g}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",SF,[p.id?(l.openBlock(),l.createElementBlock("div",AF,[w[0]||(w[0]=l.createElementVNode("b",null,"ID:",-1)),l.createElementVNode("span",kF,l.toDisplayString(p.id),1),l.createVNode(Bl,{"content-to-copy":p.id,size:20},null,8,["content-to-copy"])])):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createElementVNode("div",NF,[l.createVNode(it.VBtn,{onClick:m,variant:"text"},{default:l.withCtx(()=>[a?(l.openBlock(),l.createBlock(l.unref(rP),{key:0,size:"11",class:"me-2"})):(l.openBlock(),l.createBlock(pl.VIcon,{key:1,class:"me-2"},{default:l.withCtx(()=>w[1]||(w[1]=[l.createTextVNode("mdi-delete-outline")])),_:1})),l.createTextVNode(" "+l.toDisplayString(a?l.unref(g)("actions.disable"):l.unref(g)("actions.delete")),1)]),_:1}),l.createElementVNode("div",RF,[l.createVNode(pi.VDivider,{class:"mx-2 my-1",vertical:""}),l.createElementVNode("div",OF,[l.withDirectives(l.createVNode(it.VBtn,{onClick:h,variant:"text",color:"secondary","prepend-icon":"mdi-pencil",width:"95"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(g)("actions.edit")),1)]),_:1},512),[[l.vShow,!c.value]]),l.withDirectives(l.createVNode(it.VBtn,{onClick:d,variant:"text",color:"secondary",width:"95"},{default:l.withCtx(()=>[l.createVNode(pl.VIcon,{class:"pt-1 pe-2"},{default:l.withCtx(()=>w[2]||(w[2]=[l.createTextVNode("mdi-close")])),_:1}),l.createTextVNode(" "+l.toDisplayString(l.unref(g)("actions.cancel")),1)]),_:1},512),[[l.vShow,c.value]])])])])]))}}),PF={class:"d-flex flex-column"},MF={class:"height d-flex flex-column"},DF={class:"d-flex justify-between align-end"},LF=l.defineComponent({__name:"FormHeadless",props:{id:{},metadata:{},readonly:{type:Boolean,default:!1}},emits:["save","cancel"],setup(n,{emit:e}){const t=e,r=l.getCurrentInstance(),o=l.computed(()=>{var c;return!!((c=r==null?void 0:r.vnode.props)!=null&&c.onSave)}),a=l.computed(()=>{var c;return!!((c=r==null?void 0:r.vnode.props)!=null&&c.onCancel)});return(c,d)=>(l.openBlock(),l.createBlock(Kl,null,{default:l.withCtx(()=>[l.createElementVNode("div",PF,[l.createElementVNode("div",MF,[l.renderSlot(c.$slots,"default",{},void 0,!0)])]),l.createElementVNode("div",DF,[l.createVNode(Qe.VRow,{"no-gutters":"",justify:"space-between",class:"w-100"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis"},{default:l.withCtx(()=>[l.createVNode(ou,{id:c.id,meta:c.metadata},null,8,["id","meta"])]),_:1}),c.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Qe.VCol,{key:0,class:"d-flex align-end",cols:"auto"},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createBlock($E,{key:0,title:"Back",onCancel:d[0]||(d[0]=h=>t("cancel"))})):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createBlock(KE,{key:1,onOnSave:d[1]||(d[1]=h=>t("save"))})):l.createCommentVNode("",!0)]),_:1}))]),_:1})])]),_:3}))}}),GE=Sa(LF,[["__scopeId","data-v-e7e4d99c"]]);/**
72
+ }`;var Ie=o_(function(){return Fe(E,se+"return "+j).apply(t,b)});if(Ie.source=j,Td(Ie))throw Ie;return Ie}function AR(i){return He(i).toLowerCase()}function kR(i){return He(i).toUpperCase()}function NR(i,s,u){if(i=He(i),i&&(u||s===t))return fg(i);if(!i||!(s=In(s)))return i;var f=cr(i),_=cr(s),E=mg(f,_),b=gg(f,_)+1;return ko(f,E,b).join("")}function RR(i,s,u){if(i=He(i),i&&(u||s===t))return i.slice(0,_g(i)+1);if(!i||!(s=In(s)))return i;var f=cr(i),_=gg(f,cr(s))+1;return ko(f,0,_).join("")}function OR(i,s,u){if(i=He(i),i&&(u||s===t))return i.replace(Tu,"");if(!i||!(s=In(s)))return i;var f=cr(i),_=mg(f,cr(s));return ko(f,_).join("")}function PR(i,s){var u=X,f=ee;if(ut(s)){var _="separator"in s?s.separator:_;u="length"in s?be(s.length):u,f="omission"in s?In(s.omission):f}i=He(i);var E=i.length;if(Oi(i)){var b=cr(i);E=b.length}if(u>=E)return i;var S=u-Pi(f);if(S<1)return f;var P=b?ko(b,0,S).join(""):i.slice(0,S);if(_===t)return P+f;if(b&&(S+=P.length-S),bd(_)){if(i.slice(S).search(_)){var W,z=P;for(_.global||(_=Vu(_.source,He(Lm.exec(_))+"g")),_.lastIndex=0;W=_.exec(z);)var j=W.index;P=P.slice(0,j===t?S:j)}}else if(i.indexOf(In(_),S)!=S){var te=P.lastIndexOf(_);te>-1&&(P=P.slice(0,te))}return P+f}function MR(i){return i=He(i),i&&WT.test(i)?i.replace(Pm,cI):i}var DR=Fi(function(i,s,u){return i+(u?" ":"")+s.toUpperCase()}),Ad=ip("toUpperCase");function r_(i,s,u){return i=He(i),s=u?t:s,s===t?rI(i)?dI(i):jb(i):i.match(s)||[]}var o_=Se(function(i,s){try{return Tn(i,t,s)}catch(u){return Td(u)?u:new Ce(u)}}),LR=Xr(function(i,s){return Hn(s,function(u){u=Or(u),Jr(i,u,Ed(i[u],i))}),i});function xR(i){var s=i==null?0:i.length,u=de();return i=s?st(i,function(f){if(typeof f[1]!="function")throw new $n(c);return[u(f[0]),f[1]]}):[],Se(function(f){for(var _=-1;++_<s;){var E=i[_];if(Tn(E[0],this,f))return Tn(E[1],this,f)}})}function UR(i){return cS(Wn(i,v))}function kd(i){return function(){return i}}function BR(i,s){return i==null||i!==i?s:i}var FR=sp(),VR=sp(!0);function gn(i){return i}function Nd(i){return Ug(typeof i=="function"?i:Wn(i,v))}function HR(i){return Fg(Wn(i,v))}function $R(i,s){return Vg(i,Wn(s,v))}var KR=Se(function(i,s){return function(u){return ja(u,i,s)}}),WR=Se(function(i,s){return function(u){return ja(i,u,s)}});function Rd(i,s,u){var f=Dt(s),_=fc(s,f);u==null&&!(ut(s)&&(_.length||!f.length))&&(u=s,s=i,i=this,_=fc(s,Dt(s)));var E=!(ut(u)&&"chain"in u)||!!u.chain,b=eo(i);return Hn(_,function(S){var P=s[S];i[S]=P,b&&(i.prototype[S]=function(){var W=this.__chain__;if(E||W){var z=i(this.__wrapped__),j=z.__actions__=hn(this.__actions__);return j.push({func:P,args:arguments,thisArg:i}),z.__chain__=W,z}return P.apply(i,wo([this.value()],arguments))})}),i}function zR(){return Vt._===this&&(Vt._=_I),this}function Od(){}function GR(i){return i=be(i),Se(function(s){return Hg(s,i)})}var qR=cd(st),jR=cd(cg),YR=cd(Mu);function i_(i){return gd(i)?Du(Or(i)):IS(i)}function JR(i){return function(s){return i==null?t:ni(i,s)}}var QR=lp(),XR=lp(!0);function Pd(){return[]}function Md(){return!1}function ZR(){return{}}function eO(){return""}function tO(){return!0}function nO(i,s){if(i=be(i),i<1||i>at)return[];var u=St,f=jt(i,St);s=de(s),i-=St;for(var _=Uu(f,s);++u<i;)s(u);return _}function rO(i){return Ee(i)?st(i,Or):Sn(i)?[i]:hn(Ip(He(i)))}function oO(i){var s=++gI;return He(i)+s}var iO=yc(function(i,s){return i+s},0),aO=ld("ceil"),sO=yc(function(i,s){return i/s},1),cO=ld("floor");function lO(i){return i&&i.length?hc(i,gn,ju):t}function uO(i,s){return i&&i.length?hc(i,de(s,2),ju):t}function dO(i){return dg(i,gn)}function hO(i,s){return dg(i,de(s,2))}function fO(i){return i&&i.length?hc(i,gn,Xu):t}function mO(i,s){return i&&i.length?hc(i,de(s,2),Xu):t}var gO=yc(function(i,s){return i*s},1),pO=ld("round"),_O=yc(function(i,s){return i-s},0);function vO(i){return i&&i.length?xu(i,gn):0}function yO(i,s){return i&&i.length?xu(i,de(s,2)):0}return y.after=Hk,y.ary=xp,y.assign=kN,y.assignIn=Jp,y.assignInWith=Pc,y.assignWith=NN,y.at=RN,y.before=Up,y.bind=Ed,y.bindAll=LR,y.bindKey=Bp,y.castArray=Zk,y.chain=Mp,y.chunk=cA,y.compact=lA,y.concat=uA,y.cond=xR,y.conforms=UR,y.constant=kd,y.countBy=vk,y.create=ON,y.curry=Fp,y.curryRight=Vp,y.debounce=Hp,y.defaults=PN,y.defaultsDeep=MN,y.defer=$k,y.delay=Kk,y.difference=dA,y.differenceBy=hA,y.differenceWith=fA,y.drop=mA,y.dropRight=gA,y.dropRightWhile=pA,y.dropWhile=_A,y.fill=vA,y.filter=Ck,y.flatMap=Tk,y.flatMapDeep=bk,y.flatMapDepth=Ik,y.flatten=Np,y.flattenDeep=yA,y.flattenDepth=CA,y.flip=Wk,y.flow=FR,y.flowRight=VR,y.fromPairs=EA,y.functions=VN,y.functionsIn=HN,y.groupBy=Sk,y.initial=TA,y.intersection=bA,y.intersectionBy=IA,y.intersectionWith=SA,y.invert=KN,y.invertBy=WN,y.invokeMap=kk,y.iteratee=Nd,y.keyBy=Nk,y.keys=Dt,y.keysIn=mn,y.map=Sc,y.mapKeys=GN,y.mapValues=qN,y.matches=HR,y.matchesProperty=$R,y.memoize=kc,y.merge=jN,y.mergeWith=Qp,y.method=KR,y.methodOf=WR,y.mixin=Rd,y.negate=Nc,y.nthArg=GR,y.omit=YN,y.omitBy=JN,y.once=zk,y.orderBy=Rk,y.over=qR,y.overArgs=Gk,y.overEvery=jR,y.overSome=YR,y.partial=wd,y.partialRight=$p,y.partition=Ok,y.pick=QN,y.pickBy=Xp,y.property=i_,y.propertyOf=JR,y.pull=RA,y.pullAll=Op,y.pullAllBy=OA,y.pullAllWith=PA,y.pullAt=MA,y.range=QR,y.rangeRight=XR,y.rearg=qk,y.reject=Dk,y.remove=DA,y.rest=jk,y.reverse=yd,y.sampleSize=xk,y.set=ZN,y.setWith=eR,y.shuffle=Uk,y.slice=LA,y.sortBy=Vk,y.sortedUniq=$A,y.sortedUniqBy=KA,y.split=TR,y.spread=Yk,y.tail=WA,y.take=zA,y.takeRight=GA,y.takeRightWhile=qA,y.takeWhile=jA,y.tap=lk,y.throttle=Jk,y.thru=Ic,y.toArray=qp,y.toPairs=Zp,y.toPairsIn=e_,y.toPath=rO,y.toPlainObject=Yp,y.transform=tR,y.unary=Qk,y.union=YA,y.unionBy=JA,y.unionWith=QA,y.uniq=XA,y.uniqBy=ZA,y.uniqWith=ek,y.unset=nR,y.unzip=Cd,y.unzipWith=Pp,y.update=rR,y.updateWith=oR,y.values=$i,y.valuesIn=iR,y.without=tk,y.words=r_,y.wrap=Xk,y.xor=nk,y.xorBy=rk,y.xorWith=ok,y.zip=ik,y.zipObject=ak,y.zipObjectDeep=sk,y.zipWith=ck,y.entries=Zp,y.entriesIn=e_,y.extend=Jp,y.extendWith=Pc,Rd(y,y),y.add=iO,y.attempt=o_,y.camelCase=lR,y.capitalize=t_,y.ceil=aO,y.clamp=aR,y.clone=eN,y.cloneDeep=nN,y.cloneDeepWith=rN,y.cloneWith=tN,y.conformsTo=oN,y.deburr=n_,y.defaultTo=BR,y.divide=sO,y.endsWith=uR,y.eq=ur,y.escape=dR,y.escapeRegExp=hR,y.every=yk,y.find=Ek,y.findIndex=Ap,y.findKey=DN,y.findLast=wk,y.findLastIndex=kp,y.findLastKey=LN,y.floor=cO,y.forEach=Dp,y.forEachRight=Lp,y.forIn=xN,y.forInRight=UN,y.forOwn=BN,y.forOwnRight=FN,y.get=Id,y.gt=iN,y.gte=aN,y.has=$N,y.hasIn=Sd,y.head=Rp,y.identity=gn,y.includes=Ak,y.indexOf=wA,y.inRange=sR,y.invoke=zN,y.isArguments=ii,y.isArray=Ee,y.isArrayBuffer=sN,y.isArrayLike=fn,y.isArrayLikeObject=pt,y.isBoolean=cN,y.isBuffer=No,y.isDate=lN,y.isElement=uN,y.isEmpty=dN,y.isEqual=hN,y.isEqualWith=fN,y.isError=Td,y.isFinite=mN,y.isFunction=eo,y.isInteger=Kp,y.isLength=Rc,y.isMap=Wp,y.isMatch=gN,y.isMatchWith=pN,y.isNaN=_N,y.isNative=vN,y.isNil=CN,y.isNull=yN,y.isNumber=zp,y.isObject=ut,y.isObjectLike=ht,y.isPlainObject=es,y.isRegExp=bd,y.isSafeInteger=EN,y.isSet=Gp,y.isString=Oc,y.isSymbol=Sn,y.isTypedArray=Hi,y.isUndefined=wN,y.isWeakMap=TN,y.isWeakSet=bN,y.join=AA,y.kebabCase=fR,y.last=Gn,y.lastIndexOf=kA,y.lowerCase=mR,y.lowerFirst=gR,y.lt=IN,y.lte=SN,y.max=lO,y.maxBy=uO,y.mean=dO,y.meanBy=hO,y.min=fO,y.minBy=mO,y.stubArray=Pd,y.stubFalse=Md,y.stubObject=ZR,y.stubString=eO,y.stubTrue=tO,y.multiply=gO,y.nth=NA,y.noConflict=zR,y.noop=Od,y.now=Ac,y.pad=pR,y.padEnd=_R,y.padStart=vR,y.parseInt=yR,y.random=cR,y.reduce=Pk,y.reduceRight=Mk,y.repeat=CR,y.replace=ER,y.result=XN,y.round=pO,y.runInContext=O,y.sample=Lk,y.size=Bk,y.snakeCase=wR,y.some=Fk,y.sortedIndex=xA,y.sortedIndexBy=UA,y.sortedIndexOf=BA,y.sortedLastIndex=FA,y.sortedLastIndexBy=VA,y.sortedLastIndexOf=HA,y.startCase=bR,y.startsWith=IR,y.subtract=_O,y.sum=vO,y.sumBy=yO,y.template=SR,y.times=nO,y.toFinite=to,y.toInteger=be,y.toLength=jp,y.toLower=AR,y.toNumber=qn,y.toSafeInteger=AN,y.toString=He,y.toUpper=kR,y.trim=NR,y.trimEnd=RR,y.trimStart=OR,y.truncate=PR,y.unescape=MR,y.uniqueId=oO,y.upperCase=DR,y.upperFirst=Ad,y.each=Dp,y.eachRight=Lp,y.first=Rp,Rd(y,function(){var i={};return Nr(y,function(s,u){$e.call(y.prototype,u)||(i[u]=s)}),i}(),{chain:!1}),y.VERSION=r,Hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){y[i].placeholder=y}),Hn(["drop","take"],function(i,s){Oe.prototype[i]=function(u){u=u===t?1:kt(be(u),0);var f=this.__filtered__&&!s?new Oe(this):this.clone();return f.__filtered__?f.__takeCount__=jt(u,f.__takeCount__):f.__views__.push({size:jt(u,St),type:i+(f.__dir__<0?"Right":"")}),f},Oe.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Hn(["filter","map","takeWhile"],function(i,s){var u=s+1,f=u==Ct||u==qt;Oe.prototype[i]=function(_){var E=this.clone();return E.__iteratees__.push({iteratee:de(_,3),type:u}),E.__filtered__=E.__filtered__||f,E}}),Hn(["head","last"],function(i,s){var u="take"+(s?"Right":"");Oe.prototype[i]=function(){return this[u](1).value()[0]}}),Hn(["initial","tail"],function(i,s){var u="drop"+(s?"":"Right");Oe.prototype[i]=function(){return this.__filtered__?new Oe(this):this[u](1)}}),Oe.prototype.compact=function(){return this.filter(gn)},Oe.prototype.find=function(i){return this.filter(i).head()},Oe.prototype.findLast=function(i){return this.reverse().find(i)},Oe.prototype.invokeMap=Se(function(i,s){return typeof i=="function"?new Oe(this):this.map(function(u){return ja(u,i,s)})}),Oe.prototype.reject=function(i){return this.filter(Nc(de(i)))},Oe.prototype.slice=function(i,s){i=be(i);var u=this;return u.__filtered__&&(i>0||s<0)?new Oe(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),s!==t&&(s=be(s),u=s<0?u.dropRight(-s):u.take(s-i)),u)},Oe.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Oe.prototype.toArray=function(){return this.take(St)},Nr(Oe.prototype,function(i,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),_=y[f?"take"+(s=="last"?"Right":""):s],E=f||/^find/.test(s);_&&(y.prototype[s]=function(){var b=this.__wrapped__,S=f?[1]:arguments,P=b instanceof Oe,W=S[0],z=P||Ee(b),j=function(Re){var Pe=_.apply(y,wo([Re],S));return f&&te?Pe[0]:Pe};z&&u&&typeof W=="function"&&W.length!=1&&(P=z=!1);var te=this.__chain__,se=!!this.__actions__.length,he=E&&!te,Ie=P&&!se;if(!E&&z){b=Ie?b:new Oe(this);var fe=i.apply(b,S);return fe.__actions__.push({func:Ic,args:[j],thisArg:t}),new Kn(fe,te)}return he&&Ie?i.apply(this,S):(fe=this.thru(j),he?f?fe.value()[0]:fe.value():fe)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(i){var s=Qs[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var _=arguments;if(f&&!this.__chain__){var E=this.value();return s.apply(Ee(E)?E:[],_)}return this[u](function(b){return s.apply(Ee(b)?b:[],_)})}}),Nr(Oe.prototype,function(i,s){var u=y[s];if(u){var f=u.name+"";$e.call(xi,f)||(xi[f]=[]),xi[f].push({name:s,func:u})}}),xi[vc(t,I).name]=[{name:"wrapper",func:t}],Oe.prototype.clone=MI,Oe.prototype.reverse=DI,Oe.prototype.value=LI,y.prototype.at=uk,y.prototype.chain=dk,y.prototype.commit=hk,y.prototype.next=fk,y.prototype.plant=gk,y.prototype.reverse=pk,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=_k,y.prototype.first=y.prototype.head,Ha&&(y.prototype[Ha]=mk),y},Mi=hI();Qo?((Qo.exports=Mi)._=Mi,Nu._=Mi):Vt._=Mi}).call(uF)}(ss,ss.exports)),ss.exports}var Ra=dF();const ml=lF(Ra);function Oa(n,e,t=[]){const r=fF(e);if(!r)return n;const o=r.split(" ");return n.filter(a=>hF(a,o,t))}function hF(n,e,t){return t.some(r=>{const o=ml.get(n,r);if(ml.isNil(o))return!1;const a=ml.toString(o).toLowerCase();return e.every(c=>a.includes(c))})}function fF(n){return ml.trim(n).toLowerCase().replace(/\s+/g," ")}const mF={class:"text-faded mt-7"},gF={key:0,class:"d-flex align-baseline mb-1"},pF={class:"me-1"},_F={class:"max-w-_form-metadataJ"},vF={key:0,class:"mb-1"},yF={key:1,class:"mb-1"},CF={class:"mb-1"},ou=l.defineComponent({__name:"FormMetadata",props:{meta:{},id:{}},setup(n){const{t:e}=br();return(t,r)=>(l.openBlock(),l.createElementBlock("div",mF,[l.createVNode(Qe.VRow,{"no-gutters":"",class:"align-end ga-3",align:"center"},{default:l.withCtx(()=>[l.renderSlot(t.$slots,"default"),l.createVNode(Qe.VCol,{cols:"auto",class:"pa-2"},{default:l.withCtx(()=>[t.id?(l.openBlock(),l.createElementBlock("p",gF,[l.createElementVNode("b",pF,l.toDisplayString(t.id.title)+": ",1),l.createElementVNode("span",_F,l.toDisplayString(t.id.key||"-"),1),l.createElementVNode("span",null,[l.createVNode(Bl,{"content-to-copy":t.id.key,size:15},null,8,["content-to-copy"])])])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.created"))+": ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.created_at))+" - "+l.toDisplayString(t.meta.created_by),1)])]),_:1}),l.createVNode(Qe.VCol,{cols:"auto",class:"d-flex flex-column align-baseline px-2 mt-1"},{default:l.withCtx(()=>[t.meta.updated_at&&t.meta.updated_by?(l.openBlock(),l.createElementBlock("p",vF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.updated"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.updated_at))+" - "+l.toDisplayString(t.meta.updated_by),1)])):(l.openBlock(),l.createElementBlock("p",yF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.modified"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(us)(t.meta.modified_at))+" - "+l.toDisplayString(t.meta.modified_by),1)])),l.createElementVNode("p",CF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.delegated"))+": ",1),l.createTextVNode(l.toDisplayString(t.meta.delegated_at)+" - "+l.toDisplayString(t.meta.delegated_by),1)])]),_:1})]),_:3})]))}}),EF={key:0,class:"mb-2 ms-1"},FE=l.defineComponent({__name:"JSelect",props:{modelValue:{},name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled");l.computed(()=>{if(Array.isArray(t.items)&&t.items.length>0)if(typeof t.items[0]=="object"&&t.itemValue&&t.itemTitle){const c=t.items.find(d=>d[t.itemValue]===t.modelValue);return c?c[t.itemTitle]:""}else{const c=t.items.indexOf(t.modelValue);return c!==-1?t.items[c]:""}return""});const a=c=>{r("update:modelValue",c)};return(c,d)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[c.name?(l.openBlock(),l.createElementBlock("p",EF,l.toDisplayString(c.name),1)):l.createCommentVNode("",!0),c.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Vo.VSelect),{modelValue:t.modelValue,"onUpdate:modelValue":[d[0]||(d[0]=h=>t.modelValue=h),a],variant:o.value,items:c.items,"item-title":c.itemTitle,"item-value":c.itemValue,loading:c.loading,placeholder:c.placeholder,density:c.density,"bg-color":"containerBg",rounded:"false","hide-details":"",class:"j-field",clearable:c.clearable,readonly:c.readonly},null,8,["modelValue","variant","items","item-title","item-value","loading","placeholder","density","clearable","readonly"])],64))}}),wF={key:0,class:"mb-2 ms-1"},TF={key:3,class:"j-textarea px-4 py-3 rounded-sm bg-containerBg"},VE=l.defineComponent({__name:"JTextArea",props:{modelValue:{},name:{},label:{},readonly:{type:Boolean},rows:{},hideDetails:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=l.computed(()=>t.readonly?"solo":"solo-filled");return(a,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[a.name?(l.openBlock(),l.createElementBlock("p",wF,l.toDisplayString(a.name),1)):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createBlock(ys.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.label),1)]),_:1})):l.createCommentVNode("",!0),a.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(TO.VTextarea,{key:2,variant:o.value,"bg-color":"containerBg",rounded:"false",rows:a.rows,hideDetails:a.hideDetails,value:a.modelValue,"onUpdate:modelValue":c[0]||(c[0]=d=>r("update:modelValue",d)),"no-resize":""},null,8,["variant","rows","hideDetails","value"])),a.readonly?(l.openBlock(),l.createElementBlock("div",TF,l.toDisplayString(a.modelValue),1)):l.createCommentVNode("",!0)],64))}}),HE=l.defineComponent({__name:"CancelButton",props:{title:{}},emits:["cancel"],setup(n,{emit:e}){const t=e,{t:r}=br();return(o,a)=>(l.openBlock(),l.createBlock(it.VBtn,{color:"secondary",variant:"outlined",onClick:a[0]||(a[0]=c=>t("cancel")),class:"me-2 j-btn-form"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.title?l.unref(r)("actions.cancel"):l.unref(r)("actions.back")),1)]),_:1}))}}),$E=l.defineComponent({__name:"SaveButton",props:{disabled:{type:Boolean}},emits:["onSave"],setup(n,{emit:e}){const t=e,r=l.ref(!1);async function o(){r.value=!0,await t("onSave"),r.value=!1}const{t:a}=br();return(c,d)=>(l.openBlock(),l.createBlock(it.VBtn,{disabled:c.disabled,loading:r.value,color:"secondary",onClick:o,onKeydown:l.withKeys(o,["enter"]),class:"j-btn-form"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(a)("actions.save")),1)]),_:1},8,["disabled","loading"]))}}),bF={class:"mt-4"},KE=l.defineComponent({__name:"JForm",props:{title:{},metadata:{},id:{},cancelReturn:{type:Boolean}},emits:["onSave","onCancel"],setup(n,{emit:e}){const t=e;return(r,o)=>(l.openBlock(),l.createBlock(Kl,{title:r.title,class:"d-flex flex-column ma-0"},{default:l.withCtx(()=>[r.title?(l.openBlock(),l.createBlock(pi.VDivider,{key:0})):l.createCommentVNode("",!0),l.createElementVNode("div",bF,[l.renderSlot(r.$slots,"default")]),l.createVNode(xt.VCardText,{class:"pa-0 mx-0 align-content-end"},{default:l.withCtx(()=>[l.createVNode(Qe.VRow,{justify:"space-between",class:"mt-4"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis"},{default:l.withCtx(()=>[l.createVNode(ou,{id:r.id,meta:r.metadata},null,8,["id","meta"])]),_:1}),l.createVNode(Qe.VSpacer),l.createVNode(Qe.VCol,{cols:"auto",class:"align-content-end"},{default:l.withCtx(()=>[l.createVNode(HE,{"cancel-return":r.cancelReturn,onCancel:o[0]||(o[0]=a=>t("onCancel"))},null,8,["cancel-return"]),l.createVNode($E,{onOnSave:o[1]||(o[1]=a=>t("onSave"))})]),_:1})]),_:1})]),_:1})]),_:3},8,["title"]))}}),IF={class:"d-flex align-items-center"},SF={key:0,class:"d-flex align-center"},AF={class:"ms-1"},kF={class:"d-flex"},NF={class:"d-flex mb-1 align-center"},RF={class:"min-w-100 relative"},WE=l.defineComponent({__name:"TabFormHeader",props:{id:{},readonly:{type:Boolean,default:!1}},emits:["update:isEdition","save","cancel","delete","disable"],setup(n,{emit:e}){var v;const t=n,r=e,o=l.getCurrentInstance(),a=((v=o==null?void 0:o.vnode.props)==null?void 0:v.onDisable)!==void 0,c=l.ref(t.readonly);function d(){r("cancel"),c.value=!1,r("update:isEdition",c.value)}function h(){c.value=!c.value,r("update:isEdition",c.value)}async function m(){r("delete"),r("disable")}const{t:g}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",IF,[p.id?(l.openBlock(),l.createElementBlock("div",SF,[w[0]||(w[0]=l.createElementVNode("b",null,"ID:",-1)),l.createElementVNode("span",AF,l.toDisplayString(p.id),1),l.createVNode(Bl,{"content-to-copy":p.id,size:20},null,8,["content-to-copy"])])):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createElementVNode("div",kF,[l.createVNode(it.VBtn,{onClick:m,variant:"text"},{default:l.withCtx(()=>[a?(l.openBlock(),l.createBlock(l.unref(nP),{key:0,size:"11",class:"me-2"})):(l.openBlock(),l.createBlock(pl.VIcon,{key:1,class:"me-2"},{default:l.withCtx(()=>w[1]||(w[1]=[l.createTextVNode("mdi-delete-outline")])),_:1})),l.createTextVNode(" "+l.toDisplayString(a?l.unref(g)("actions.disable"):l.unref(g)("actions.delete")),1)]),_:1}),l.createElementVNode("div",NF,[l.createVNode(pi.VDivider,{class:"mx-2 my-1",vertical:""}),l.createElementVNode("div",RF,[l.withDirectives(l.createVNode(it.VBtn,{onClick:h,variant:"text",color:"secondary","prepend-icon":"mdi-pencil",width:"95"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(g)("actions.edit")),1)]),_:1},512),[[l.vShow,!c.value]]),l.withDirectives(l.createVNode(it.VBtn,{onClick:d,variant:"text",color:"secondary",width:"95"},{default:l.withCtx(()=>[l.createVNode(pl.VIcon,{class:"pt-1 pe-2"},{default:l.withCtx(()=>w[2]||(w[2]=[l.createTextVNode("mdi-close")])),_:1}),l.createTextVNode(" "+l.toDisplayString(l.unref(g)("actions.cancel")),1)]),_:1},512),[[l.vShow,c.value]])])])])]))}}),OF={class:"d-flex flex-column"},PF={class:"height d-flex flex-column"},MF={class:"d-flex justify-between align-end"},DF=l.defineComponent({__name:"FormHeadless",props:{id:{},metadata:{},readonly:{type:Boolean,default:!1}},emits:["save","cancel"],setup(n,{emit:e}){const t=e,r=l.getCurrentInstance(),o=l.computed(()=>{var c;return!!((c=r==null?void 0:r.vnode.props)!=null&&c.onSave)}),a=l.computed(()=>{var c;return!!((c=r==null?void 0:r.vnode.props)!=null&&c.onCancel)});return(c,d)=>(l.openBlock(),l.createBlock(Kl,null,{default:l.withCtx(()=>[l.createElementVNode("div",OF,[l.createElementVNode("div",PF,[l.renderSlot(c.$slots,"default",{},void 0,!0)])]),l.createElementVNode("div",MF,[l.createVNode(Qe.VRow,{"no-gutters":"",justify:"space-between",class:"w-100"},{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"auto",class:"text-sm-subtitle-2 text-medium-emphasis"},{default:l.withCtx(()=>[l.createVNode(ou,{id:c.id,meta:c.metadata},null,8,["id","meta"])]),_:1}),c.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Qe.VCol,{key:0,class:"d-flex align-end",cols:"auto"},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createBlock(HE,{key:0,title:"Back",onCancel:d[0]||(d[0]=h=>t("cancel"))})):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createBlock($E,{key:1,onOnSave:d[1]||(d[1]=h=>t("save"))})):l.createCommentVNode("",!0)]),_:1}))]),_:1})])]),_:3}))}}),zE=Sa(DF,[["__scopeId","data-v-e7e4d99c"]]);/**
73
73
  * @license @tabler/icons-vue v3.22.0 - MIT
74
74
  *
75
75
  * This source code is licensed under the MIT license.
@@ -84,30 +84,30 @@ function print() { __p += __j.call(arguments, '') }
84
84
  *
85
85
  * This source code is licensed under the MIT license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */var xF=Hs("outline","buildings","IconBuildings",[["path",{d:"M4 21v-15c0 -1 1 -2 2 -2h5c1 0 2 1 2 2v15",key:"svg-0"}],["path",{d:"M16 8h2c1 0 2 1 2 2v11",key:"svg-1"}],["path",{d:"M3 21h18",key:"svg-2"}],["path",{d:"M10 12v0",key:"svg-3"}],["path",{d:"M10 16v0",key:"svg-4"}],["path",{d:"M10 8v0",key:"svg-5"}],["path",{d:"M7 12v0",key:"svg-6"}],["path",{d:"M7 16v0",key:"svg-7"}],["path",{d:"M7 8v0",key:"svg-8"}],["path",{d:"M17 12v0",key:"svg-9"}],["path",{d:"M17 16v0",key:"svg-10"}]]);/**
87
+ */var LF=Hs("outline","buildings","IconBuildings",[["path",{d:"M4 21v-15c0 -1 1 -2 2 -2h5c1 0 2 1 2 2v15",key:"svg-0"}],["path",{d:"M16 8h2c1 0 2 1 2 2v11",key:"svg-1"}],["path",{d:"M3 21h18",key:"svg-2"}],["path",{d:"M10 12v0",key:"svg-3"}],["path",{d:"M10 16v0",key:"svg-4"}],["path",{d:"M10 8v0",key:"svg-5"}],["path",{d:"M7 12v0",key:"svg-6"}],["path",{d:"M7 16v0",key:"svg-7"}],["path",{d:"M7 8v0",key:"svg-8"}],["path",{d:"M17 12v0",key:"svg-9"}],["path",{d:"M17 16v0",key:"svg-10"}]]);/**
88
88
  * @license @tabler/icons-vue v3.22.0 - MIT
89
89
  *
90
90
  * This source code is licensed under the MIT license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
- */var UF=Hs("outline","universe","IconUniverse",[["path",{d:"M7.027 11.477a5 5 0 1 0 5.496 -4.45a4.951 4.951 0 0 0 -3.088 .681",key:"svg-0"}],["path",{d:"M5.636 5.636a9 9 0 1 0 3.555 -2.188",key:"svg-1"}],["path",{d:"M18 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M9 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]]);/**
92
+ */var xF=Hs("outline","universe","IconUniverse",[["path",{d:"M7.027 11.477a5 5 0 1 0 5.496 -4.45a4.951 4.951 0 0 0 -3.088 .681",key:"svg-0"}],["path",{d:"M5.636 5.636a9 9 0 1 0 3.555 -2.188",key:"svg-1"}],["path",{d:"M18 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M9 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]]);/**
93
93
  * @license @tabler/icons-vue v3.22.0 - MIT
94
94
  *
95
95
  * This source code is licensed under the MIT license.
96
96
  * See the LICENSE file in the root directory of this source tree.
97
- */var BF=Hs("outline","user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);/**
97
+ */var UF=Hs("outline","user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);/**
98
98
  * @license @tabler/icons-vue v3.22.0 - MIT
99
99
  *
100
100
  * This source code is licensed under the MIT license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
- */var FF=Hs("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);/**
102
+ */var BF=Hs("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);/**
103
103
  * @license @tabler/icons-vue v3.22.0 - MIT
104
104
  *
105
105
  * This source code is licensed under the MIT license.
106
106
  * See the LICENSE file in the root directory of this source tree.
107
- */var VF=Hs("filled","caret-right-filled","IconCaretRightFilled",[["path",{d:"M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z",key:"svg-0"}]]);/*! @azure/msal-common v14.16.0 2024-11-05 */const F={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},$c={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},Pa=[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE],xv=[...Pa,F.EMAIL_SCOPE],dn={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},Lt={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},Ho={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Kc={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},Bt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Uv={PLAIN:"plain",S256:"S256"},$s={QUERY:"query",FRAGMENT:"fragment"},HF={...$s,FORM_POST:"form_post"},qE={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},Wc={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},tn={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},ge={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},Kf="appmetadata",$F="client_info",ps="1",Al={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},On={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Wt={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Ge={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},_s={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Bv={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Fv={username:"username",password:"password"},zc={httpSuccess:200,httpBadRequest:400},Yi={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},oh={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Mo={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},KF={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},WF=300;/*! @azure/msal-common v14.16.0 2024-11-05 */const Wf="unexpected_error",zF="post_request_failed";/*! @azure/msal-common v14.16.0 2024-11-05 */const Vv={[Wf]:"Unexpected error in authentication.",[zF]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class lt extends Error{constructor(e,t,r){const o=t?`${e}: ${t}`:e;super(o),Object.setPrototypeOf(this,lt.prototype),this.errorCode=e||F.EMPTY_STRING,this.errorMessage=t||F.EMPTY_STRING,this.subError=r||F.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function jE(n,e){return new lt(n,e?`${Vv[n]} ${e}`:Vv[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */const zf="client_info_decoding_error",YE="client_info_empty_error",Gf="token_parsing_error",JE="null_or_empty_token",ao="endpoints_resolution_error",QE="network_error",XE="openid_config_error",ZE="hash_not_deserialized",wa="invalid_state",ew="state_mismatch",kl="state_not_found",tw="nonce_mismatch",qf="auth_time_not_found",nw="max_age_transpired",GF="multiple_matching_tokens",qF="multiple_matching_accounts",rw="multiple_matching_appMetadata",ow="request_cannot_be_made",iw="cannot_remove_empty_scope",aw="cannot_append_scopeset",jh="empty_input_scopeset",jF="device_code_polling_cancelled",YF="device_code_expired",JF="device_code_unknown_error",jf="no_account_in_silent_request",sw="invalid_cache_record",Yf="invalid_cache_environment",Yh="no_account_found",Jh="no_crypto_object",Qh="unexpected_credential_type",QF="invalid_assertion",XF="invalid_client_credential",co="token_refresh_required",ZF="user_timeout_reached",cw="token_claims_cnf_required_for_signedjwt",lw="authorization_code_missing_from_server_response",uw="binding_key_not_removed",dw="end_session_endpoint_not_supported",Jf="key_id_missing",eV="no_network_connectivity",tV="user_canceled",nV="missing_tenant_id_error",Ae="method_not_implemented",rV="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.0 2024-11-05 */const Hv={[zf]:"The client info could not be parsed/decoded correctly",[YE]:"The client info was empty",[Gf]:"Token cannot be parsed",[JE]:"The token is null or empty",[ao]:"Endpoints cannot be resolved",[QE]:"Network request failed",[XE]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[ZE]:"The hash parameters could not be deserialized",[wa]:"State was not the expected format",[ew]:"State mismatch error",[kl]:"State not found",[tw]:"Nonce mismatch error",[qf]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[nw]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[GF]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[qF]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[rw]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[ow]:"Token request cannot be made without authorization code or refresh token.",[iw]:"Cannot remove null or empty scope from ScopeSet",[aw]:"Cannot append ScopeSet",[jh]:"Empty input ScopeSet cannot be processed",[jF]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[YF]:"Device code is expired.",[JF]:"Device code stopped polling for unknown reasons.",[jf]:"Please pass an account object, silent flow is not supported without account information",[sw]:"Cache record object was null or undefined.",[Yf]:"Invalid environment when attempting to create cache entry",[Yh]:"No account found in cache for given key.",[Jh]:"No crypto object detected.",[Qh]:"Unexpected credential type.",[QF]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[XF]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[co]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[ZF]:"User defined timeout for device code polling reached",[cw]:"Cannot generate a POP jwt if the token_claims are not populated",[lw]:"Server response does not contain an authorization code to proceed",[uw]:"Could not remove the credential's binding key from storage.",[dw]:"The provided authority does not support logout",[Jf]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[eV]:"No network connectivity. Check your internet connection.",[tV]:"User cancelled the flow.",[nV]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Ae]:"This method has not been implemented",[rV]:"The nested app auth bridge is disabled"};class iu extends lt{constructor(e,t){super(e,t?`${Hv[e]}: ${t}`:Hv[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,iu.prototype)}}function Y(n,e){return new iu(n,e)}/*! @azure/msal-common v14.16.0 2024-11-05 */const Nl={createNewGuid:()=>{throw Y(Ae)},base64Decode:()=>{throw Y(Ae)},base64Encode:()=>{throw Y(Ae)},base64UrlEncode:()=>{throw Y(Ae)},encodeKid:()=>{throw Y(Ae)},async getPublicKeyThumbprint(){throw Y(Ae)},async removeTokenBindingKey(){throw Y(Ae)},async clearKeystore(){throw Y(Ae)},async signJwt(){throw Y(Ae)},async hashString(){throw Y(Ae)}};/*! @azure/msal-common v14.16.0 2024-11-05 */var tt;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(tt||(tt={}));class Ko{constructor(e,t,r){this.level=tt.Info;const o=()=>{},a=e||Ko.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||o,this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level=typeof a.logLevel=="number"?a.logLevel:tt.Info,this.correlationId=a.correlationId||F.EMPTY_STRING,this.packageName=t||F.EMPTY_STRING,this.packageVersion=r||F.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info}}clone(e,t,r){return new Ko({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;const a=`${`[${new Date().toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${tt[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,a,t.containsPii||!1)}executeCallback(e,t,r){this.localCallback&&this.localCallback(e,t,r)}error(e,t){this.logMessage(e,{logLevel:tt.Error,containsPii:!1,correlationId:t||F.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:tt.Error,containsPii:!0,correlationId:t||F.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:tt.Warning,containsPii:!1,correlationId:t||F.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:tt.Warning,containsPii:!0,correlationId:t||F.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:tt.Info,containsPii:!1,correlationId:t||F.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:tt.Info,containsPii:!0,correlationId:t||F.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:tt.Verbose,containsPii:!1,correlationId:t||F.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:tt.Verbose,containsPii:!0,correlationId:t||F.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:tt.Trace,containsPii:!1,correlationId:t||F.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:tt.Trace,containsPii:!0,correlationId:t||F.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.16.0 2024-11-05 */const hw="@azure/msal-common",Qf="14.16.0";/*! @azure/msal-common v14.16.0 2024-11-05 */const Xf={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.16.0 2024-11-05 */function Si(n,e){const t=oV(n);try{const r=e(t);return JSON.parse(r)}catch{throw Y(Gf)}}function oV(n){if(!n)throw Y(JE);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw Y(Gf);return t[2]}function fw(n,e){if(e===0||Date.now()-3e5>n+e)throw Y(nw)}/*! @azure/msal-common v14.16.0 2024-11-05 */function zr(){return Math.round(new Date().getTime()/1e3)}function Xh(n,e){const t=Number(n)||0;return zr()+e>t}function iV(n){return Number(n)>zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */function ha(n){return[aV(n),sV(n),cV(n),lV(n),uV(n)].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function au(n,e,t,r,o){return{credentialType:ge.ID_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t,realm:o}}function su(n,e,t,r,o,a,c,d,h,m,g,v,p,w,C){var k,I;const T={homeAccountId:n,credentialType:ge.ACCESS_TOKEN,secret:t,cachedAt:zr().toString(),expiresOn:c.toString(),extendedExpiresOn:d.toString(),environment:e,clientId:r,realm:o,target:a,tokenType:g||Ge.BEARER};if(v&&(T.userAssertionHash=v),m&&(T.refreshOn=m.toString()),w&&(T.requestedClaims=w,T.requestedClaimsHash=C),((k=T.tokenType)==null?void 0:k.toLowerCase())!==Ge.BEARER.toLowerCase())switch(T.credentialType=ge.ACCESS_TOKEN_WITH_AUTH_SCHEME,T.tokenType){case Ge.POP:const N=Si(t,h);if(!((I=N==null?void 0:N.cnf)!=null&&I.kid))throw Y(cw);T.keyId=N.cnf.kid;break;case Ge.SSH:T.keyId=p}return T}function mw(n,e,t,r,o,a,c){const d={credentialType:ge.REFRESH_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t};return a&&(d.userAssertionHash=a),o&&(d.familyId=o),c&&(d.expiresOn=c.toString()),d}function Zf(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function $v(n){return n?Zf(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===ge.ACCESS_TOKEN||n.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function Kv(n){return n?Zf(n)&&n.hasOwnProperty("realm")&&n.credentialType===ge.ID_TOKEN:!1}function Wv(n){return n?Zf(n)&&n.credentialType===ge.REFRESH_TOKEN:!1}function aV(n){return[n.homeAccountId,n.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function sV(n){const e=n.credentialType===ge.REFRESH_TOKEN&&n.familyId||n.clientId;return[n.credentialType,e,n.realm||""].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function cV(n){return(n.target||"").toLowerCase()}function lV(n){return(n.requestedClaimsHash||"").toLowerCase()}function uV(n){return n.tokenType&&n.tokenType.toLowerCase()!==Ge.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function dV(n,e){const t=n.indexOf(Wt.CACHE_KEY)===0;let r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),t&&r}function hV(n,e){let t=!1;n&&(t=n.indexOf(_s.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),t&&r}function fV({environment:n,clientId:e}){return[Kf,n,e].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function mV(n,e){return e?n.indexOf(Kf)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function gV(n,e){return e?n.indexOf(Al.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function zv(){return zr()+Al.REFRESH_TIME_SECONDS}function Gc(n,e,t){n.authorization_endpoint=e.authorization_endpoint,n.token_endpoint=e.token_endpoint,n.end_session_endpoint=e.end_session_endpoint,n.issuer=e.issuer,n.endpointsFromNetwork=t,n.jwks_uri=e.jwks_uri}function ih(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function Gv(n){return n.expiresAt<=zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */const gw="redirect_uri_empty",pV="claims_request_parsing_error",pw="authority_uri_insecure",cs="url_parse_error",_w="empty_url_error",vw="empty_input_scopes_error",yw="invalid_prompt_value",em="invalid_claims",Cw="token_request_empty",Ew="logout_request_empty",ww="invalid_code_challenge_method",tm="pkce_params_missing",nm="invalid_cloud_discovery_metadata",Tw="invalid_authority_metadata",bw="untrusted_authority",cu="missing_ssh_jwk",Iw="missing_ssh_kid",_V="missing_nonce_authentication_header",vV="invalid_authentication_header",Sw="cannot_set_OIDCOptions",Aw="cannot_allow_native_broker",kw="authority_mismatch";/*! @azure/msal-common v14.16.0 2024-11-05 */const yV={[gw]:"A redirect URI is required for all calls, and none has been set.",[pV]:"Could not parse the given claims request object.",[pw]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[cs]:"URL could not be parsed into appropriate segments.",[_w]:"URL was empty or null.",[vw]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[yw]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[em]:"Given claims parameter must be a stringified JSON object.",[Cw]:"Token request was empty and not found in cache.",[Ew]:"The logout request was null or undefined.",[ww]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[tm]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[nm]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[Tw]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[bw]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[cu]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[Iw]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[_V]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[vV]:"Invalid authentication header provided",[Sw]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Aw]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[kw]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class rm extends lt{constructor(e){super(e,yV[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,rm.prototype)}}function Xe(n){return new rm(n)}/*! @azure/msal-common v14.16.0 2024-11-05 */class vr{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},r=e.split("&"),o=a=>decodeURIComponent(a.replace(/\+/g," "));return r.forEach(a=>{if(a.trim()){const[c,d]=a.split(/=(.+)/g,2);c&&d&&(t[o(c)]=o(d))}}),t}static trimArrayEntries(e){return e.map(t=>t.trim())}static removeEmptyStringsFromArray(e){return e.filter(t=>!!t)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class vt{constructor(e){const t=e?vr.trimArrayEntries([...e]):[],r=t?vr.removeEmptyStringsFromArray(t):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(o=>this.scopes.add(o))}static fromString(e){const r=(e||F.EMPTY_STRING).split(" ");return new vt(r)}static createSearchScopes(e){const t=new vt(e);return t.containsOnlyOIDCScopes()?t.removeScope(F.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw Xe(vw)}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new vt(t);return e?r.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(t=>this.containsScope(t))}containsOnlyOIDCScopes(){let e=0;return xv.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(t=>this.appendScope(t))}catch{throw Y(aw)}}removeScope(e){if(!e)throw Y(iw);this.scopes.delete(e.trim())}removeOIDCScopes(){xv.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw Y(jh);const t=new Set;return e.scopes.forEach(r=>t.add(r.toLowerCase())),this.scopes.forEach(r=>t.add(r.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw Y(jh);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount();return t.size<o+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(t=>e.push(t)),e}printScopes(){return this.scopes?this.asArray().join(" "):F.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Rl(n,e){if(!n)throw Y(YE);try{const t=e(n);return JSON.parse(t)}catch{throw Y(zf)}}function fa(n){if(!n)throw Y(zf);const e=n.split(tn.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?F.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Ol(n,e){return!!n&&!!e&&n===e.split(".")[1]}function om(n,e,t,r){if(r){const{oid:o,sub:a,tid:c,name:d,tfp:h,acr:m}=r,g=c||h||m||"";return{tenantId:g,localAccountId:o||a||"",name:d,isHomeTenant:Ol(g,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:Ol(t,n)}}function im(n,e,t,r){let o=n;if(e){const{isHomeTenant:a,...c}=e;o={...n,...c}}if(t){const{isHomeTenant:a,...c}=om(n.homeAccountId,n.localAccountId,n.tenantId,t);return o={...o,...c,idTokenClaims:t,idToken:r},o}return o}/*! @azure/msal-common v14.16.0 2024-11-05 */const mr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.0 2024-11-05 */function Nw(n){return n&&(n.tid||n.tfp||n.acr)||null}/*! @azure/msal-common v14.16.0 2024-11-05 */const fo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.0 2024-11-05 */class Pt{generateAccountId(){return[this.homeAccountId,this.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Pt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,r){var m,g,v,p,w,C;const o=new Pt;t.authorityType===mr.Adfs?o.authorityType=Wc.ADFS_ACCOUNT_TYPE:t.protocolMode===fo.AAD?o.authorityType=Wc.MSSTS_ACCOUNT_TYPE:o.authorityType=Wc.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=Rl(e.clientInfo,r)),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const c=e.environment||t&&t.getPreferredCache();if(!c)throw Y(Yf);o.environment=c,o.realm=(a==null?void 0:a.utid)||Nw(e.idTokenClaims)||"",o.localAccountId=(a==null?void 0:a.uid)||((m=e.idTokenClaims)==null?void 0:m.oid)||((g=e.idTokenClaims)==null?void 0:g.sub)||"";const d=((v=e.idTokenClaims)==null?void 0:v.preferred_username)||((p=e.idTokenClaims)==null?void 0:p.upn),h=(w=e.idTokenClaims)!=null&&w.emails?e.idTokenClaims.emails[0]:null;if(o.username=d||h||"",o.name=((C=e.idTokenClaims)==null?void 0:C.name)||"",o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const T=om(e.homeAccountId,o.localAccountId,o.realm,e.idTokenClaims);o.tenantProfiles=[T]}return o}static createFromAccountInfo(e,t,r){var a;const o=new Pt;return o.authorityType=e.authorityType||Wc.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.cloudGraphHostName=t,o.msGraphHost=r,o.tenantProfiles=Array.from(((a=e.tenantProfiles)==null?void 0:a.values())||[]),o}static generateHomeAccountId(e,t,r,o,a){if(!(t===mr.Adfs||t===mr.Dsts)){if(e)try{const c=Rl(e,o.base64Decode);if(c.uid&&c.utid)return`${c.uid}.${c.utid}`}catch{}r.warning("No client info in response")}return(a==null?void 0:a.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,r){if(!e||!t)return!1;let o=!0;if(r){const a=e.idTokenClaims||{},c=t.idTokenClaims||{};o=a.iat===c.iat&&a.nonce===c.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Rw(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function Pl(n){if(!n||n.indexOf("=")<0)return null;try{const e=Rw(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Y(ZE)}return null}/*! @azure/msal-common v14.16.0 2024-11-05 */class De{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Xe(_w);e.includes("#")||(this._urlString=De.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return vr.endsWith(t,"?")?t=t.slice(0,-1):vr.endsWith(t,"?/")&&(t=t.slice(0,-2)),vr.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Xe(cs)}if(!e.HostNameAndPort||!e.PathSegments)throw Xe(cs);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Xe(pw)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return De.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===Ho.COMMON||r[0]===Ho.ORGANIZATIONS)&&(r[0]=e),De.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Xe(cs);const r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let o=r.AbsolutePath.split("/");return o=o.filter(a=>a&&a.length>0),r.PathSegments=o,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw Xe(cs);return r[2]}static getAbsoluteUrl(e,t){if(e[0]===F.FORWARD_SLASH){const o=new De(t).getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new De(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Pl(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Ow={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},qv=Ow.endpointMetadata,am=Ow.instanceDiscoveryMetadata,Pw=new Set;am.metadata.forEach(n=>{n.aliases.forEach(e=>{Pw.add(e)})});function CV(n,e){var o;let t;const r=n.canonicalAuthority;if(r){const a=new De(r).getUrlComponents().HostNameAndPort;t=jv(a,(o=n.cloudDiscoveryMetadata)==null?void 0:o.metadata,On.CONFIG,e)||jv(a,am.metadata,On.HARDCODED_VALUES,e)||n.knownAuthorities}return t||[]}function jv(n,e,t,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${t}`),n&&e){const o=Ml(e,n);if(o)return r==null||r.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${t}, returning aliases`),o.aliases;r==null||r.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${t}`)}return null}function EV(n){return Ml(am.metadata,n)}function Ml(n,e){for(let t=0;t<n.length;t++){const r=n[t];if(r.aliases.includes(e))return r}return null}/*! @azure/msal-common v14.16.0 2024-11-05 */const Mw="cache_quota_exceeded",sm="cache_error_unknown";/*! @azure/msal-common v14.16.0 2024-11-05 */const ah={[Mw]:"Exceeded cache storage capacity.",[sm]:"Unexpected error occurred when using cache storage."};class pa extends Error{constructor(e,t){const r=t||(ah[e]?ah[e]:ah[sm]);super(`${e}: ${r}`),Object.setPrototypeOf(this,pa.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Ta{constructor(e,t,r,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(hw,Qf),this.staticAuthorityOptions=o}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){const t=this.getAllAccounts(e);return t.length>1?t.sort(o=>o.idTokenClaims?-1:1)[0]:t.length===1?t[0]:null}getBaseAccountInfo(e){const t=this.getAccountsFilteredBy(e);return t.length>0?t[0].getAccountInfo():null}buildTenantProfiles(e,t){return e.flatMap(r=>this.getTenantProfilesFromAccountEntity(r,t==null?void 0:t.tenantId,t))}getTenantedAccountInfoByFilter(e,t,r,o){let a=null,c;if(o&&!this.tenantProfileMatchesFilter(r,o))return null;const d=this.getIdToken(e,t,r.tenantId);return d&&(c=Si(d.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(c,o))?null:(a=im(e,r,c,d==null?void 0:d.secret),a)}getTenantProfilesFromAccountEntity(e,t,r){const o=e.getAccountInfo();let a=o.tenantProfiles||new Map;const c=this.getTokenKeys();if(t){const h=a.get(t);if(h)a=new Map([[t,h]]);else return[]}const d=[];return a.forEach(h=>{const m=this.getTenantedAccountInfoByFilter(o,c,h,r);m&&d.push(m)}),d}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)||t.name&&e.name!==t.name||t.isHomeTenant!==void 0&&e.isHomeTenant!==t.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,t){return!(t&&(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)||t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)||t.username&&!this.matchUsername(e.preferred_username,t.username)||t.name&&!this.matchName(e,t.name)||t.sid&&!this.matchSid(e,t.sid)))}async saveCacheRecord(e,t,r){var o,a,c,d;if(!e)throw Y(sw);try{e.account&&this.setAccount(e.account),e.idToken&&(t==null?void 0:t.idToken)!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&(t==null?void 0:t.accessToken)!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&(t==null?void 0:t.refreshToken)!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}catch(h){throw(o=this.commonLogger)==null||o.error("CacheManager.saveCacheRecord: failed"),h instanceof Error?((a=this.commonLogger)==null||a.errorPii(`CacheManager.saveCacheRecord: ${h.message}`,r),h.name==="QuotaExceededError"||h.name==="NS_ERROR_DOM_QUOTA_REACHED"||h.message.includes("exceeded the quota")?((c=this.commonLogger)==null||c.error("CacheManager.saveCacheRecord: exceeded storage quota",r),new pa(Mw)):new pa(h.name,h.message)):((d=this.commonLogger)==null||d.errorPii(`CacheManager.saveCacheRecord: ${h}`,r),new pa(sm))}}async saveAccessToken(e){const t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),o=vt.fromString(e.target),a=[];r.accessToken.forEach(c=>{if(!this.accessTokenKeyMatchesFilter(c,t,!1))return;const d=this.getAccessTokenCredential(c);d&&this.credentialMatchesFilter(d,t)&&vt.fromString(d.target).intersectingScopeSets(o)&&a.push(this.removeAccessToken(c))}),await Promise.all(a),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const t=this.getAccountKeys(),r=[];return t.forEach(o=>{var h;if(!this.isAccountKey(o,e.homeAccountId))return;const a=this.getAccount(o,this.commonLogger);if(!a||e.homeAccountId&&!this.matchHomeAccountId(a,e.homeAccountId)||e.username&&!this.matchUsername(a.username,e.username)||e.environment&&!this.matchEnvironment(a,e.environment)||e.realm&&!this.matchRealm(a,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(a,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(a,e.authorityType))return;const c={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},d=(h=a.tenantProfiles)==null?void 0:h.filter(m=>this.tenantProfileMatchesFilter(m,c));d&&d.length===0||r.push(a)}),r}isAccountKey(e,t,r){return!(e.split(tn.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))}isCredentialKey(e){if(e.split(tn.CACHE_KEY_SEPARATOR).length<6)return!1;const t=e.toLowerCase();if(t.indexOf(ge.ID_TOKEN.toLowerCase())===-1&&t.indexOf(ge.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(ge.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(ge.REFRESH_TOKEN.toLowerCase())>-1){const r=`${ge.REFRESH_TOKEN}${tn.CACHE_KEY_SEPARATOR}${this.clientId}${tn.CACHE_KEY_SEPARATOR}`,o=`${ge.REFRESH_TOKEN}${tn.CACHE_KEY_SEPARATOR}${ps}${tn.CACHE_KEY_SEPARATOR}`;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Ge.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))}getAppMetadataFilteredBy(e){const t=this.getKeys(),r={};return t.forEach(o=>{if(!this.isAppMetadata(o))return;const a=this.getAppMetadata(o);a&&(e.environment&&!this.matchEnvironment(a,e.environment)||e.clientId&&!this.matchClientId(a,e.clientId)||(r[o]=a))}),r}getAuthorityMetadataByAlias(e){const t=this.getAuthorityMetadataKeys();let r=null;return t.forEach(o=>{if(!this.isAuthorityMetadata(o)||o.indexOf(this.clientId)===-1)return;const a=this.getAuthorityMetadata(o);a&&a.aliases.indexOf(e)!==-1&&(r=a)}),r}async removeAllAccounts(){const e=this.getAccountKeys(),t=[];e.forEach(r=>{t.push(this.removeAccount(r))}),await Promise.all(t)}async removeAccount(e){const t=this.getAccount(e,this.commonLogger);t&&(await this.removeAccountContext(t),this.removeItem(e))}async removeAccountContext(e){const t=this.getTokenKeys(),r=e.generateAccountId(),o=[];t.idToken.forEach(a=>{a.indexOf(r)===0&&this.removeIdToken(a)}),t.accessToken.forEach(a=>{a.indexOf(r)===0&&o.push(this.removeAccessToken(a))}),t.refreshToken.forEach(a=>{a.indexOf(r)===0&&this.removeRefreshToken(a)}),await Promise.all(o)}updateOutdatedCachedAccount(e,t,r){var o;if(t&&t.isSingleTenant()){(o=this.commonLogger)==null||o.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const a=this.getAccountKeys().filter(g=>g.startsWith(t.homeAccountId)),c=[];a.forEach(g=>{const v=this.getCachedAccountEntity(g);v&&c.push(v)});const d=c.find(g=>Ol(g.realm,g.homeAccountId))||c[0];d.tenantProfiles=c.map(g=>({tenantId:g.realm,localAccountId:g.localAccountId,name:g.name,isHomeTenant:Ol(g.realm,g.homeAccountId)}));const h=Ta.toObject(new Pt,{...d}),m=h.generateAccountKey();return a.forEach(g=>{g!==m&&this.removeOutdatedAccount(e)}),this.setAccount(h),r==null||r.verbose("Updated an outdated account entity in the cache"),h}return t}async removeAccessToken(e){const t=this.getAccessTokenCredential(e);if(t){if(t.credentialType.toLowerCase()===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&t.tokenType===Ge.POP){const o=t.keyId;if(o)try{await this.cryptoImpl.removeTokenBindingKey(o)}catch{throw Y(uw)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(t=>{this.isAppMetadata(t)&&this.removeItem(t)}),!0}readAccountFromCache(e){const t=Pt.generateAccountCacheKey(e);return this.getAccount(t,this.commonLogger)}getIdToken(e,t,r,o,a){this.commonLogger.trace("CacheManager - getIdToken called");const c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.ID_TOKEN,clientId:this.clientId,realm:r},d=this.getIdTokensByFilter(c,t),h=d.size;if(h<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(h>1){let m=d;if(!r){const g=new Map;d.forEach((p,w)=>{p.realm===e.tenantId&&g.set(w,p)});const v=g.size;if(v<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),d.values().next().value;if(v===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),g.values().next().value;m=g}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),m.forEach((g,v)=>{this.removeIdToken(v)}),o&&a&&o.addFields({multiMatchedID:d.size},a),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),d.values().next().value}getIdTokensByFilter(e,t){const r=t&&t.idToken||this.getTokenKeys().idToken,o=new Map;return r.forEach(a=>{if(!this.idTokenKeyMatchesFilter(a,{clientId:this.clientId,...e}))return;const c=this.getIdTokenCredential(a);c&&this.credentialMatchesFilter(c,e)&&o.set(a,c)}),o}idTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,t,r,o,a,c){this.commonLogger.trace("CacheManager - getAccessToken called");const d=vt.createSearchScopes(t.scopes),h=t.authenticationScheme||Ge.BEARER,m=h&&h.toLowerCase()!==Ge.BEARER.toLowerCase()?ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:ge.ACCESS_TOKEN,g={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:m,clientId:this.clientId,realm:o||e.tenantId,target:d,tokenType:h,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},v=r&&r.accessToken||this.getTokenKeys().accessToken,p=[];v.forEach(C=>{if(this.accessTokenKeyMatchesFilter(C,g,!0)){const T=this.getAccessTokenCredential(C);T&&this.credentialMatchesFilter(T,g)&&p.push(T)}});const w=p.length;return w<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):w>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),p.forEach(C=>{this.removeAccessToken(ha(C))}),a&&c&&a.addFields({multiMatchedAT:p.length},c),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),p[0])}accessTokenKeyMatchesFilter(e,t,r){const o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target){const a=t.target.asArray();for(let c=0;c<a.length;c++){if(r&&!o.includes(a[c].toLowerCase()))return!1;if(!r&&o.includes(a[c].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e){const t=this.getTokenKeys(),r=[];return t.accessToken.forEach(o=>{if(!this.accessTokenKeyMatchesFilter(o,e,!0))return;const a=this.getAccessTokenCredential(o);a&&this.credentialMatchesFilter(a,e)&&r.push(a)}),r}getRefreshToken(e,t,r,o,a){this.commonLogger.trace("CacheManager - getRefreshToken called");const c=t?ps:void 0,d={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.REFRESH_TOKEN,clientId:this.clientId,familyId:c},h=r&&r.refreshToken||this.getTokenKeys().refreshToken,m=[];h.forEach(v=>{if(this.refreshTokenKeyMatchesFilter(v,d)){const p=this.getRefreshTokenCredential(v);p&&this.credentialMatchesFilter(p,d)&&m.push(p)}});const g=m.length;return g<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(g>1&&o&&a&&o.addFields({multiMatchedRT:g},a),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),m[0])}refreshTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),o=Object.keys(r).map(c=>r[c]),a=o.length;if(a<1)return null;if(a>1)throw Y(rw);return o[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===ps)}matchHomeAccountId(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,t){const r=e.oid||e.sub;return t===r}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){var r;return t.toLowerCase()===((r=e.name)==null?void 0:r.toLowerCase())}matchUsername(e,t){return!!(e&&typeof e=="string"&&(t==null?void 0:t.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){const o=CV(this.staticAuthorityOptions,this.commonLogger);if(o.includes(t)&&o.includes(e.environment))return!0}const r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){var r;return((r=e.realm)==null?void 0:r.toLowerCase())===t.toLowerCase()}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||e.preferred_username===t||e.upn===t}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){return e.credentialType!==ge.ACCESS_TOKEN&&e.credentialType!==ge.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:vt.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(Kf)!==-1}isAuthorityMetadata(e){return e.indexOf(Al.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Al.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class wV extends Ta{setAccount(){throw Y(Ae)}getAccount(){throw Y(Ae)}getCachedAccountEntity(){throw Y(Ae)}setIdTokenCredential(){throw Y(Ae)}getIdTokenCredential(){throw Y(Ae)}setAccessTokenCredential(){throw Y(Ae)}getAccessTokenCredential(){throw Y(Ae)}setRefreshTokenCredential(){throw Y(Ae)}getRefreshTokenCredential(){throw Y(Ae)}setAppMetadata(){throw Y(Ae)}getAppMetadata(){throw Y(Ae)}setServerTelemetry(){throw Y(Ae)}getServerTelemetry(){throw Y(Ae)}setAuthorityMetadata(){throw Y(Ae)}getAuthorityMetadata(){throw Y(Ae)}getAuthorityMetadataKeys(){throw Y(Ae)}setThrottlingCache(){throw Y(Ae)}getThrottlingCache(){throw Y(Ae)}removeItem(){throw Y(Ae)}getKeys(){throw Y(Ae)}getAccountKeys(){throw Y(Ae)}getTokenKeys(){throw Y(Ae)}updateCredentialCacheKey(){throw Y(Ae)}removeOutdatedAccount(){throw Y(Ae)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Dw={tokenRenewalOffsetSeconds:WF,preventCorsPreflight:!1},TV={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info,correlationId:F.EMPTY_STRING},bV={claimsBasedCachingEnabled:!1},IV={async sendGetRequestAsync(){throw Y(Ae)},async sendPostRequestAsync(){throw Y(Ae)}},SV={sku:F.SKU,version:Qf,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},AV={clientSecret:F.EMPTY_STRING,clientAssertion:void 0},kV={azureCloudInstance:Xf.None,tenant:`${F.DEFAULT_COMMON_TENANT}`},NV={application:{appName:"",appVersion:""}};function RV({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:r,storageInterface:o,networkInterface:a,cryptoInterface:c,clientCredentials:d,libraryInfo:h,telemetry:m,serverTelemetryManager:g,persistencePlugin:v,serializableCache:p}){const w={...TV,...t};return{authOptions:OV(n),systemOptions:{...Dw,...e},loggerOptions:w,cacheOptions:{...bV,...r},storageInterface:o||new wV(n.clientId,Nl,new Ko(w)),networkInterface:a||IV,cryptoInterface:c||Nl,clientCredentials:d||AV,libraryInfo:{...SV,...h},telemetry:{...NV,...m},serverTelemetryManager:g||null,persistencePlugin:v||null,serializableCache:p||null}}function OV(n){return{clientCapabilities:[],azureCloudOptions:kV,skipAuthorityMetadataCache:!1,instanceAware:!1,...n}}function Zh(n){return n.authOptions.authority.options.protocolMode===fo.OIDC}/*! @azure/msal-common v14.16.0 2024-11-05 */const Bn={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.0 2024-11-05 */const wi="client_id",Lw="redirect_uri",Yv="response_type",PV="response_mode",MV="grant_type",DV="claims",LV="scope",xV="refresh_token",UV="state",BV="nonce",FV="prompt",VV="code",HV="code_challenge",$V="code_challenge_method",KV="code_verifier",WV="client-request-id",zV="x-client-SKU",GV="x-client-VER",qV="x-client-OS",jV="x-client-CPU",YV="x-client-current-telemetry",JV="x-client-last-telemetry",QV="x-ms-lib-capability",XV="x-app-name",ZV="x-app-ver",e2="post_logout_redirect_uri",t2="id_token_hint",n2="device_code",r2="client_secret",o2="client_assertion",i2="client_assertion_type",Jv="token_type",Qv="req_cnf",a2="assertion",s2="requested_token_use",Xv="return_spa_code",c2="nativebroker",l2="logout_hint",u2="sid",d2="login_hint",h2="domain_hint",f2="x-client-xtra-sku",cm="brk_client_id",ef="brk_redirect_uri";/*! @azure/msal-common v14.16.0 2024-11-05 */class ia{static validateRedirectUri(e){if(!e)throw Xe(gw)}static validatePrompt(e){const t=[];for(const r in Bt)t.push(Bt[r]);if(t.indexOf(e)<0)throw Xe(yw)}static validateClaims(e){try{JSON.parse(e)}catch{throw Xe(em)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw Xe(tm);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Uv.PLAIN,Uv.S256].indexOf(e)<0)throw Xe(ww)}}/*! @azure/msal-common v14.16.0 2024-11-05 */function m2(n,e,t){if(!e)return;const r=n.get(wi);r&&n.has(cm)&&(t==null||t.addFields({embeddedClientId:r,embeddedRedirectUri:n.get(Lw)},e))}class vs{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Yv,encodeURIComponent(F.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Yv,encodeURIComponent(`${F.TOKEN_RESPONSE_TYPE} ${F.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(PV,encodeURIComponent(e||HF.QUERY))}addNativeBroker(){this.parameters.set(c2,encodeURIComponent("1"))}addScopes(e,t=!0,r=Pa){t&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=t?[...e||[],...r]:e||[],a=new vt(o);this.parameters.set(LV,encodeURIComponent(a.printScopes()))}addClientId(e){this.parameters.set(wi,encodeURIComponent(e))}addRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(Lw,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(e2,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(t2,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(h2,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(d2,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(dn.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(dn.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(u2,encodeURIComponent(e))}addClaims(e,t){const r=this.addClientCapabilitiesToClaims(e,t);ia.validateClaims(r),this.parameters.set(DV,encodeURIComponent(r))}addCorrelationId(e){this.parameters.set(WV,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(zV,e.sku),this.parameters.set(GV,e.version),e.os&&this.parameters.set(qV,e.os),e.cpu&&this.parameters.set(jV,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(XV,e.appName),e!=null&&e.appVersion&&this.parameters.set(ZV,e.appVersion)}addPrompt(e){ia.validatePrompt(e),this.parameters.set(`${FV}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(UV,encodeURIComponent(e))}addNonce(e){this.parameters.set(BV,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(ia.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(HV,encodeURIComponent(e)),this.parameters.set($V,encodeURIComponent(t));else throw Xe(tm)}addAuthorizationCode(e){this.parameters.set(VV,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(n2,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(xV,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(KV,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(r2,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(o2,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(i2,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(a2,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(s2,encodeURIComponent(e))}addGrantType(e){this.parameters.set(MV,encodeURIComponent(e))}addClientInfo(){this.parameters.set($F,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([t,r])=>{!this.parameters.has(t)&&r&&this.parameters.set(t,r)})}addClientCapabilitiesToClaims(e,t){let r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw Xe(em)}return t&&t.length>0&&(r.hasOwnProperty(Kc.ACCESS_TOKEN)||(r[Kc.ACCESS_TOKEN]={}),r[Kc.ACCESS_TOKEN][Kc.XMS_CC]={values:t}),JSON.stringify(r)}addUsername(e){this.parameters.set(Fv.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(Fv.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Jv,Ge.POP),this.parameters.set(Qv,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Jv,Ge.SSH),this.parameters.set(Qv,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(YV,e.generateCurrentRequestHeaderValue()),this.parameters.set(JV,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(QV,_s.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(l2,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[cm]=e.brokerClientId,t[ef]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,r)=>{e.push(`${r}=${t}`)}),m2(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.0 2024-11-05 */function g2(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.0 2024-11-05 */function p2(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.0 2024-11-05 */function _2(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.0 2024-11-05 */const x={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},v2={NotStarted:0,InProgress:1,Completed:2};/*! @azure/msal-common v14.16.0 2024-11-05 */const Ai=(n,e,t,r,o)=>(...a)=>{t.trace(`Executing function ${e}`);const c=r==null?void 0:r.startMeasurement(e,o);if(o){const d=e+"CallCount";r==null||r.incrementFields({[d]:1},o)}try{const d=n(...a);return c==null||c.end({success:!0}),t.trace(`Returning result from ${e}`),d}catch(d){t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(d))}catch{t.trace("Unable to print error message.")}throw c==null||c.end({success:!1},d),d}},Q=(n,e,t,r,o)=>(...a)=>{t.trace(`Executing function ${e}`);const c=r==null?void 0:r.startMeasurement(e,o);if(o){const d=e+"CallCount";r==null||r.incrementFields({[d]:1},o)}return r==null||r.setPreQueueTime(e,o),n(...a).then(d=>(t.trace(`Returning result from ${e}`),c==null||c.end({success:!0}),d)).catch(d=>{t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(d))}catch{t.trace("Unable to print error message.")}throw c==null||c.end({success:!1},d),d})};/*! @azure/msal-common v14.16.0 2024-11-05 */class lu{constructor(e,t,r,o){this.networkInterface=e,this.logger=t,this.performanceClient=r,this.correlationId=o}async detectRegion(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.RegionDiscoveryDetectRegion,this.correlationId);let r=e;if(r)t.region_source=Yi.ENVIRONMENT_VARIABLE;else{const a=lu.IMDS_OPTIONS;try{const c=await Q(this.getRegionFromIMDS.bind(this),x.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(F.IMDS_VERSION,a);if(c.status===zc.httpSuccess&&(r=c.body,t.region_source=Yi.IMDS),c.status===zc.httpBadRequest){const d=await Q(this.getCurrentVersion.bind(this),x.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(a);if(!d)return t.region_source=Yi.FAILED_AUTO_DETECTION,null;const h=await Q(this.getRegionFromIMDS.bind(this),x.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(d,a);h.status===zc.httpSuccess&&(r=h.body,t.region_source=Yi.IMDS)}}catch{return t.region_source=Yi.FAILED_AUTO_DETECTION,null}}return r||(t.region_source=Yi.FAILED_AUTO_DETECTION),r||null}async getRegionFromIMDS(e,t){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(x.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?api-version=${e}&format=text`,t,F.IMDS_TIMEOUT)}async getCurrentVersion(e){var t;(t=this.performanceClient)==null||t.addQueueMeasurement(x.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?format=json`,e);return r.status===zc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}lu.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.16.0 2024-11-05 */class Xt{constructor(e,t,r,o,a,c,d,h){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=a,this.performanceClient=d,this.correlationId=c,this.managedIdentity=h||!1,this.regionDiscovery=new lu(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(F.CIAM_AUTH_URL))return mr.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case F.ADFS:return mr.Adfs;case F.DSTS:return mr.Dsts}return mr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new De(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Y(ao)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Y(ao)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Y(ao)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Y(dw);return this.replacePath(this.metadata.end_session_endpoint)}else throw Y(ao)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Y(ao)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Y(ao)}canReplaceTenant(e){return e.PathSegments.length===1&&!Xt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===mr.Default&&this.protocolMode===fo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const o=new De(this.metadata.canonical_authority).getUrlComponents(),a=o.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((d,h)=>{let m=a[h];if(h===0&&this.canReplaceTenant(o)){const g=new De(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];m!==g&&(this.logger.verbose(`Replacing tenant domain name ${m} with id ${g}`),m=g)}d!==m&&(t=t.replace(`/${m}/`,`/${d}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===mr.Adfs||this.protocolMode!==fo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var o,a;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),t=await Q(this.updateCloudDiscoveryMetadata.bind(this),x.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await Q(this.updateEndpointMetadata.bind(this),x.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:r}),(a=this.performanceClient)==null||a.addFields({cloudDiscoverySource:t,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:zv(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==On.CACHE&&(r==null?void 0:r.source)!==On.CACHE&&(e.expiresAt=zv(),e.canonical_authority=this.canonicalAuthority);const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e}async updateEndpointMetadata(e){var o,a,c;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityUpdateEndpointMetadata,this.correlationId);const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===On.HARDCODED_VALUES&&(a=this.authorityOptions.azureRegionConfiguration)!=null&&a.azureRegion&&t.metadata){const d=await Q(this.updateMetadataWithRegionalInformation.bind(this),x.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(t.metadata);Gc(e,d,!1),e.canonical_authority=this.canonicalAuthority}return t.source}let r=await Q(this.getEndpointMetadataFromNetwork.bind(this),x.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return(c=this.authorityOptions.azureRegionConfiguration)!=null&&c.azureRegion&&(r=await Q(this.updateMetadataWithRegionalInformation.bind(this),x.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r)),Gc(e,r,!0),On.NETWORK;throw Y(XE,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),Gc(e,t,!1),{source:On.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const o=this.getEndpointMetadataFromHardcodedValues();if(o)return Gc(e,o,!1),{source:On.HARDCODED_VALUES,metadata:o};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const r=Gv(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!r?(this.logger.verbose("Found endpoint metadata in the cache."),{source:On.CACHE}):(r&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new De(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Xe(Tw)}return null}async getEndpointMetadataFromNetwork(){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(x.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{const o=await this.networkInterface.sendGetRequestAsync(t,e);return g2(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in qv?qv[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var r,o,a;(r=this.performanceClient)==null||r.addQueueMeasurement(x.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const t=(o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.azureRegion;if(t){if(t!==F.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=oh.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=t,Xt.replaceWithRegionalInformation(e,t);const c=await Q(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),x.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((a=this.authorityOptions.azureRegionConfiguration)==null?void 0:a.environmentRegion,this.regionDiscoveryMetadata);if(c)return this.regionDiscoveryMetadata.region_outcome=oh.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,Xt.replaceWithRegionalInformation(e,c);this.regionDiscoveryMetadata.region_outcome=oh.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const r=await Q(this.getCloudDiscoveryMetadataFromNetwork.bind(this),x.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return ih(e,r,!0),On.NETWORK;throw Xe(bw)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||F.NOT_APPLICABLE}`);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),ih(e,t,!1),On.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const o=EV(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),ih(e,o,!1),On.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const r=Gv(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),On.CACHE):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===mr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=Ml(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Xe(nm)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${F.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let r=null;try{const a=await this.networkInterface.sendGetRequestAsync(e,t);let c,d;if(p2(a.body))c=a.body,d=c.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${c.tenant_discovery_endpoint}`);else if(_2(a.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${a.status}`),c=a.body,c.error===F.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${c.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${c.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),d=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=Ml(d,this.hostnameAndPort)}catch(a){if(a instanceof lt)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
107
+ */var FF=Hs("filled","caret-right-filled","IconCaretRightFilled",[["path",{d:"M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z",key:"svg-0"}]]);/*! @azure/msal-common v14.16.0 2024-11-05 */const F={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},$c={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},Pa=[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE],xv=[...Pa,F.EMAIL_SCOPE],dn={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},Lt={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},Ho={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Kc={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},Bt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Uv={PLAIN:"plain",S256:"S256"},$s={QUERY:"query",FRAGMENT:"fragment"},VF={...$s,FORM_POST:"form_post"},GE={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},Wc={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},tn={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},ge={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},Kf="appmetadata",HF="client_info",ps="1",Al={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},On={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Wt={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Ge={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},_s={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Bv={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Fv={username:"username",password:"password"},zc={httpSuccess:200,httpBadRequest:400},Yi={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},oh={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Mo={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},$F={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},KF=300;/*! @azure/msal-common v14.16.0 2024-11-05 */const Wf="unexpected_error",WF="post_request_failed";/*! @azure/msal-common v14.16.0 2024-11-05 */const Vv={[Wf]:"Unexpected error in authentication.",[WF]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class lt extends Error{constructor(e,t,r){const o=t?`${e}: ${t}`:e;super(o),Object.setPrototypeOf(this,lt.prototype),this.errorCode=e||F.EMPTY_STRING,this.errorMessage=t||F.EMPTY_STRING,this.subError=r||F.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function qE(n,e){return new lt(n,e?`${Vv[n]} ${e}`:Vv[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */const zf="client_info_decoding_error",jE="client_info_empty_error",Gf="token_parsing_error",YE="null_or_empty_token",ao="endpoints_resolution_error",JE="network_error",QE="openid_config_error",XE="hash_not_deserialized",wa="invalid_state",ZE="state_mismatch",kl="state_not_found",ew="nonce_mismatch",qf="auth_time_not_found",tw="max_age_transpired",zF="multiple_matching_tokens",GF="multiple_matching_accounts",nw="multiple_matching_appMetadata",rw="request_cannot_be_made",ow="cannot_remove_empty_scope",iw="cannot_append_scopeset",jh="empty_input_scopeset",qF="device_code_polling_cancelled",jF="device_code_expired",YF="device_code_unknown_error",jf="no_account_in_silent_request",aw="invalid_cache_record",Yf="invalid_cache_environment",Yh="no_account_found",Jh="no_crypto_object",Qh="unexpected_credential_type",JF="invalid_assertion",QF="invalid_client_credential",co="token_refresh_required",XF="user_timeout_reached",sw="token_claims_cnf_required_for_signedjwt",cw="authorization_code_missing_from_server_response",lw="binding_key_not_removed",uw="end_session_endpoint_not_supported",Jf="key_id_missing",ZF="no_network_connectivity",eV="user_canceled",tV="missing_tenant_id_error",Ae="method_not_implemented",nV="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.0 2024-11-05 */const Hv={[zf]:"The client info could not be parsed/decoded correctly",[jE]:"The client info was empty",[Gf]:"Token cannot be parsed",[YE]:"The token is null or empty",[ao]:"Endpoints cannot be resolved",[JE]:"Network request failed",[QE]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[XE]:"The hash parameters could not be deserialized",[wa]:"State was not the expected format",[ZE]:"State mismatch error",[kl]:"State not found",[ew]:"Nonce mismatch error",[qf]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[tw]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[zF]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[GF]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[nw]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[rw]:"Token request cannot be made without authorization code or refresh token.",[ow]:"Cannot remove null or empty scope from ScopeSet",[iw]:"Cannot append ScopeSet",[jh]:"Empty input ScopeSet cannot be processed",[qF]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[jF]:"Device code is expired.",[YF]:"Device code stopped polling for unknown reasons.",[jf]:"Please pass an account object, silent flow is not supported without account information",[aw]:"Cache record object was null or undefined.",[Yf]:"Invalid environment when attempting to create cache entry",[Yh]:"No account found in cache for given key.",[Jh]:"No crypto object detected.",[Qh]:"Unexpected credential type.",[JF]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[QF]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[co]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[XF]:"User defined timeout for device code polling reached",[sw]:"Cannot generate a POP jwt if the token_claims are not populated",[cw]:"Server response does not contain an authorization code to proceed",[lw]:"Could not remove the credential's binding key from storage.",[uw]:"The provided authority does not support logout",[Jf]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[ZF]:"No network connectivity. Check your internet connection.",[eV]:"User cancelled the flow.",[tV]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Ae]:"This method has not been implemented",[nV]:"The nested app auth bridge is disabled"};class iu extends lt{constructor(e,t){super(e,t?`${Hv[e]}: ${t}`:Hv[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,iu.prototype)}}function Y(n,e){return new iu(n,e)}/*! @azure/msal-common v14.16.0 2024-11-05 */const Nl={createNewGuid:()=>{throw Y(Ae)},base64Decode:()=>{throw Y(Ae)},base64Encode:()=>{throw Y(Ae)},base64UrlEncode:()=>{throw Y(Ae)},encodeKid:()=>{throw Y(Ae)},async getPublicKeyThumbprint(){throw Y(Ae)},async removeTokenBindingKey(){throw Y(Ae)},async clearKeystore(){throw Y(Ae)},async signJwt(){throw Y(Ae)},async hashString(){throw Y(Ae)}};/*! @azure/msal-common v14.16.0 2024-11-05 */var tt;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(tt||(tt={}));class Ko{constructor(e,t,r){this.level=tt.Info;const o=()=>{},a=e||Ko.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||o,this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level=typeof a.logLevel=="number"?a.logLevel:tt.Info,this.correlationId=a.correlationId||F.EMPTY_STRING,this.packageName=t||F.EMPTY_STRING,this.packageVersion=r||F.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info}}clone(e,t,r){return new Ko({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;const a=`${`[${new Date().toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${tt[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,a,t.containsPii||!1)}executeCallback(e,t,r){this.localCallback&&this.localCallback(e,t,r)}error(e,t){this.logMessage(e,{logLevel:tt.Error,containsPii:!1,correlationId:t||F.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:tt.Error,containsPii:!0,correlationId:t||F.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:tt.Warning,containsPii:!1,correlationId:t||F.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:tt.Warning,containsPii:!0,correlationId:t||F.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:tt.Info,containsPii:!1,correlationId:t||F.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:tt.Info,containsPii:!0,correlationId:t||F.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:tt.Verbose,containsPii:!1,correlationId:t||F.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:tt.Verbose,containsPii:!0,correlationId:t||F.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:tt.Trace,containsPii:!1,correlationId:t||F.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:tt.Trace,containsPii:!0,correlationId:t||F.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.16.0 2024-11-05 */const dw="@azure/msal-common",Qf="14.16.0";/*! @azure/msal-common v14.16.0 2024-11-05 */const Xf={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.16.0 2024-11-05 */function Si(n,e){const t=rV(n);try{const r=e(t);return JSON.parse(r)}catch{throw Y(Gf)}}function rV(n){if(!n)throw Y(YE);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw Y(Gf);return t[2]}function hw(n,e){if(e===0||Date.now()-3e5>n+e)throw Y(tw)}/*! @azure/msal-common v14.16.0 2024-11-05 */function zr(){return Math.round(new Date().getTime()/1e3)}function Xh(n,e){const t=Number(n)||0;return zr()+e>t}function oV(n){return Number(n)>zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */function ha(n){return[iV(n),aV(n),sV(n),cV(n),lV(n)].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function au(n,e,t,r,o){return{credentialType:ge.ID_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t,realm:o}}function su(n,e,t,r,o,a,c,d,h,m,g,v,p,w,C){var k,I;const T={homeAccountId:n,credentialType:ge.ACCESS_TOKEN,secret:t,cachedAt:zr().toString(),expiresOn:c.toString(),extendedExpiresOn:d.toString(),environment:e,clientId:r,realm:o,target:a,tokenType:g||Ge.BEARER};if(v&&(T.userAssertionHash=v),m&&(T.refreshOn=m.toString()),w&&(T.requestedClaims=w,T.requestedClaimsHash=C),((k=T.tokenType)==null?void 0:k.toLowerCase())!==Ge.BEARER.toLowerCase())switch(T.credentialType=ge.ACCESS_TOKEN_WITH_AUTH_SCHEME,T.tokenType){case Ge.POP:const N=Si(t,h);if(!((I=N==null?void 0:N.cnf)!=null&&I.kid))throw Y(sw);T.keyId=N.cnf.kid;break;case Ge.SSH:T.keyId=p}return T}function fw(n,e,t,r,o,a,c){const d={credentialType:ge.REFRESH_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t};return a&&(d.userAssertionHash=a),o&&(d.familyId=o),c&&(d.expiresOn=c.toString()),d}function Zf(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function $v(n){return n?Zf(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===ge.ACCESS_TOKEN||n.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function Kv(n){return n?Zf(n)&&n.hasOwnProperty("realm")&&n.credentialType===ge.ID_TOKEN:!1}function Wv(n){return n?Zf(n)&&n.credentialType===ge.REFRESH_TOKEN:!1}function iV(n){return[n.homeAccountId,n.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function aV(n){const e=n.credentialType===ge.REFRESH_TOKEN&&n.familyId||n.clientId;return[n.credentialType,e,n.realm||""].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function sV(n){return(n.target||"").toLowerCase()}function cV(n){return(n.requestedClaimsHash||"").toLowerCase()}function lV(n){return n.tokenType&&n.tokenType.toLowerCase()!==Ge.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function uV(n,e){const t=n.indexOf(Wt.CACHE_KEY)===0;let r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),t&&r}function dV(n,e){let t=!1;n&&(t=n.indexOf(_s.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),t&&r}function hV({environment:n,clientId:e}){return[Kf,n,e].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function fV(n,e){return e?n.indexOf(Kf)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function mV(n,e){return e?n.indexOf(Al.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function zv(){return zr()+Al.REFRESH_TIME_SECONDS}function Gc(n,e,t){n.authorization_endpoint=e.authorization_endpoint,n.token_endpoint=e.token_endpoint,n.end_session_endpoint=e.end_session_endpoint,n.issuer=e.issuer,n.endpointsFromNetwork=t,n.jwks_uri=e.jwks_uri}function ih(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function Gv(n){return n.expiresAt<=zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */const mw="redirect_uri_empty",gV="claims_request_parsing_error",gw="authority_uri_insecure",cs="url_parse_error",pw="empty_url_error",_w="empty_input_scopes_error",vw="invalid_prompt_value",em="invalid_claims",yw="token_request_empty",Cw="logout_request_empty",Ew="invalid_code_challenge_method",tm="pkce_params_missing",nm="invalid_cloud_discovery_metadata",ww="invalid_authority_metadata",Tw="untrusted_authority",cu="missing_ssh_jwk",bw="missing_ssh_kid",pV="missing_nonce_authentication_header",_V="invalid_authentication_header",Iw="cannot_set_OIDCOptions",Sw="cannot_allow_native_broker",Aw="authority_mismatch";/*! @azure/msal-common v14.16.0 2024-11-05 */const vV={[mw]:"A redirect URI is required for all calls, and none has been set.",[gV]:"Could not parse the given claims request object.",[gw]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[cs]:"URL could not be parsed into appropriate segments.",[pw]:"URL was empty or null.",[_w]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[vw]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[em]:"Given claims parameter must be a stringified JSON object.",[yw]:"Token request was empty and not found in cache.",[Cw]:"The logout request was null or undefined.",[Ew]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[tm]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[nm]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[ww]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[Tw]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[cu]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[bw]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[pV]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[_V]:"Invalid authentication header provided",[Iw]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Sw]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[Aw]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class rm extends lt{constructor(e){super(e,vV[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,rm.prototype)}}function Xe(n){return new rm(n)}/*! @azure/msal-common v14.16.0 2024-11-05 */class vr{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},r=e.split("&"),o=a=>decodeURIComponent(a.replace(/\+/g," "));return r.forEach(a=>{if(a.trim()){const[c,d]=a.split(/=(.+)/g,2);c&&d&&(t[o(c)]=o(d))}}),t}static trimArrayEntries(e){return e.map(t=>t.trim())}static removeEmptyStringsFromArray(e){return e.filter(t=>!!t)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class vt{constructor(e){const t=e?vr.trimArrayEntries([...e]):[],r=t?vr.removeEmptyStringsFromArray(t):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(o=>this.scopes.add(o))}static fromString(e){const r=(e||F.EMPTY_STRING).split(" ");return new vt(r)}static createSearchScopes(e){const t=new vt(e);return t.containsOnlyOIDCScopes()?t.removeScope(F.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw Xe(_w)}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new vt(t);return e?r.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(t=>this.containsScope(t))}containsOnlyOIDCScopes(){let e=0;return xv.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(t=>this.appendScope(t))}catch{throw Y(iw)}}removeScope(e){if(!e)throw Y(ow);this.scopes.delete(e.trim())}removeOIDCScopes(){xv.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw Y(jh);const t=new Set;return e.scopes.forEach(r=>t.add(r.toLowerCase())),this.scopes.forEach(r=>t.add(r.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw Y(jh);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount();return t.size<o+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(t=>e.push(t)),e}printScopes(){return this.scopes?this.asArray().join(" "):F.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Rl(n,e){if(!n)throw Y(jE);try{const t=e(n);return JSON.parse(t)}catch{throw Y(zf)}}function fa(n){if(!n)throw Y(zf);const e=n.split(tn.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?F.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Ol(n,e){return!!n&&!!e&&n===e.split(".")[1]}function om(n,e,t,r){if(r){const{oid:o,sub:a,tid:c,name:d,tfp:h,acr:m}=r,g=c||h||m||"";return{tenantId:g,localAccountId:o||a||"",name:d,isHomeTenant:Ol(g,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:Ol(t,n)}}function im(n,e,t,r){let o=n;if(e){const{isHomeTenant:a,...c}=e;o={...n,...c}}if(t){const{isHomeTenant:a,...c}=om(n.homeAccountId,n.localAccountId,n.tenantId,t);return o={...o,...c,idTokenClaims:t,idToken:r},o}return o}/*! @azure/msal-common v14.16.0 2024-11-05 */const mr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.0 2024-11-05 */function kw(n){return n&&(n.tid||n.tfp||n.acr)||null}/*! @azure/msal-common v14.16.0 2024-11-05 */const fo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.0 2024-11-05 */class Pt{generateAccountId(){return[this.homeAccountId,this.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Pt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,r){var m,g,v,p,w,C;const o=new Pt;t.authorityType===mr.Adfs?o.authorityType=Wc.ADFS_ACCOUNT_TYPE:t.protocolMode===fo.AAD?o.authorityType=Wc.MSSTS_ACCOUNT_TYPE:o.authorityType=Wc.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=Rl(e.clientInfo,r)),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const c=e.environment||t&&t.getPreferredCache();if(!c)throw Y(Yf);o.environment=c,o.realm=(a==null?void 0:a.utid)||kw(e.idTokenClaims)||"",o.localAccountId=(a==null?void 0:a.uid)||((m=e.idTokenClaims)==null?void 0:m.oid)||((g=e.idTokenClaims)==null?void 0:g.sub)||"";const d=((v=e.idTokenClaims)==null?void 0:v.preferred_username)||((p=e.idTokenClaims)==null?void 0:p.upn),h=(w=e.idTokenClaims)!=null&&w.emails?e.idTokenClaims.emails[0]:null;if(o.username=d||h||"",o.name=((C=e.idTokenClaims)==null?void 0:C.name)||"",o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const T=om(e.homeAccountId,o.localAccountId,o.realm,e.idTokenClaims);o.tenantProfiles=[T]}return o}static createFromAccountInfo(e,t,r){var a;const o=new Pt;return o.authorityType=e.authorityType||Wc.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.cloudGraphHostName=t,o.msGraphHost=r,o.tenantProfiles=Array.from(((a=e.tenantProfiles)==null?void 0:a.values())||[]),o}static generateHomeAccountId(e,t,r,o,a){if(!(t===mr.Adfs||t===mr.Dsts)){if(e)try{const c=Rl(e,o.base64Decode);if(c.uid&&c.utid)return`${c.uid}.${c.utid}`}catch{}r.warning("No client info in response")}return(a==null?void 0:a.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,r){if(!e||!t)return!1;let o=!0;if(r){const a=e.idTokenClaims||{},c=t.idTokenClaims||{};o=a.iat===c.iat&&a.nonce===c.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o}}/*! @azure/msal-common v14.16.0 2024-11-05 */function Nw(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function Pl(n){if(!n||n.indexOf("=")<0)return null;try{const e=Nw(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Y(XE)}return null}/*! @azure/msal-common v14.16.0 2024-11-05 */class De{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Xe(pw);e.includes("#")||(this._urlString=De.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return vr.endsWith(t,"?")?t=t.slice(0,-1):vr.endsWith(t,"?/")&&(t=t.slice(0,-2)),vr.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Xe(cs)}if(!e.HostNameAndPort||!e.PathSegments)throw Xe(cs);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Xe(gw)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return De.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===Ho.COMMON||r[0]===Ho.ORGANIZATIONS)&&(r[0]=e),De.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Xe(cs);const r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let o=r.AbsolutePath.split("/");return o=o.filter(a=>a&&a.length>0),r.PathSegments=o,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw Xe(cs);return r[2]}static getAbsoluteUrl(e,t){if(e[0]===F.FORWARD_SLASH){const o=new De(t).getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new De(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Pl(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Rw={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},qv=Rw.endpointMetadata,am=Rw.instanceDiscoveryMetadata,Ow=new Set;am.metadata.forEach(n=>{n.aliases.forEach(e=>{Ow.add(e)})});function yV(n,e){var o;let t;const r=n.canonicalAuthority;if(r){const a=new De(r).getUrlComponents().HostNameAndPort;t=jv(a,(o=n.cloudDiscoveryMetadata)==null?void 0:o.metadata,On.CONFIG,e)||jv(a,am.metadata,On.HARDCODED_VALUES,e)||n.knownAuthorities}return t||[]}function jv(n,e,t,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${t}`),n&&e){const o=Ml(e,n);if(o)return r==null||r.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${t}, returning aliases`),o.aliases;r==null||r.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${t}`)}return null}function CV(n){return Ml(am.metadata,n)}function Ml(n,e){for(let t=0;t<n.length;t++){const r=n[t];if(r.aliases.includes(e))return r}return null}/*! @azure/msal-common v14.16.0 2024-11-05 */const Pw="cache_quota_exceeded",sm="cache_error_unknown";/*! @azure/msal-common v14.16.0 2024-11-05 */const ah={[Pw]:"Exceeded cache storage capacity.",[sm]:"Unexpected error occurred when using cache storage."};class pa extends Error{constructor(e,t){const r=t||(ah[e]?ah[e]:ah[sm]);super(`${e}: ${r}`),Object.setPrototypeOf(this,pa.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Ta{constructor(e,t,r,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(dw,Qf),this.staticAuthorityOptions=o}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){const t=this.getAllAccounts(e);return t.length>1?t.sort(o=>o.idTokenClaims?-1:1)[0]:t.length===1?t[0]:null}getBaseAccountInfo(e){const t=this.getAccountsFilteredBy(e);return t.length>0?t[0].getAccountInfo():null}buildTenantProfiles(e,t){return e.flatMap(r=>this.getTenantProfilesFromAccountEntity(r,t==null?void 0:t.tenantId,t))}getTenantedAccountInfoByFilter(e,t,r,o){let a=null,c;if(o&&!this.tenantProfileMatchesFilter(r,o))return null;const d=this.getIdToken(e,t,r.tenantId);return d&&(c=Si(d.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(c,o))?null:(a=im(e,r,c,d==null?void 0:d.secret),a)}getTenantProfilesFromAccountEntity(e,t,r){const o=e.getAccountInfo();let a=o.tenantProfiles||new Map;const c=this.getTokenKeys();if(t){const h=a.get(t);if(h)a=new Map([[t,h]]);else return[]}const d=[];return a.forEach(h=>{const m=this.getTenantedAccountInfoByFilter(o,c,h,r);m&&d.push(m)}),d}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)||t.name&&e.name!==t.name||t.isHomeTenant!==void 0&&e.isHomeTenant!==t.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,t){return!(t&&(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)||t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)||t.username&&!this.matchUsername(e.preferred_username,t.username)||t.name&&!this.matchName(e,t.name)||t.sid&&!this.matchSid(e,t.sid)))}async saveCacheRecord(e,t,r){var o,a,c,d;if(!e)throw Y(aw);try{e.account&&this.setAccount(e.account),e.idToken&&(t==null?void 0:t.idToken)!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&(t==null?void 0:t.accessToken)!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&(t==null?void 0:t.refreshToken)!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}catch(h){throw(o=this.commonLogger)==null||o.error("CacheManager.saveCacheRecord: failed"),h instanceof Error?((a=this.commonLogger)==null||a.errorPii(`CacheManager.saveCacheRecord: ${h.message}`,r),h.name==="QuotaExceededError"||h.name==="NS_ERROR_DOM_QUOTA_REACHED"||h.message.includes("exceeded the quota")?((c=this.commonLogger)==null||c.error("CacheManager.saveCacheRecord: exceeded storage quota",r),new pa(Pw)):new pa(h.name,h.message)):((d=this.commonLogger)==null||d.errorPii(`CacheManager.saveCacheRecord: ${h}`,r),new pa(sm))}}async saveAccessToken(e){const t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),o=vt.fromString(e.target),a=[];r.accessToken.forEach(c=>{if(!this.accessTokenKeyMatchesFilter(c,t,!1))return;const d=this.getAccessTokenCredential(c);d&&this.credentialMatchesFilter(d,t)&&vt.fromString(d.target).intersectingScopeSets(o)&&a.push(this.removeAccessToken(c))}),await Promise.all(a),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const t=this.getAccountKeys(),r=[];return t.forEach(o=>{var h;if(!this.isAccountKey(o,e.homeAccountId))return;const a=this.getAccount(o,this.commonLogger);if(!a||e.homeAccountId&&!this.matchHomeAccountId(a,e.homeAccountId)||e.username&&!this.matchUsername(a.username,e.username)||e.environment&&!this.matchEnvironment(a,e.environment)||e.realm&&!this.matchRealm(a,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(a,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(a,e.authorityType))return;const c={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},d=(h=a.tenantProfiles)==null?void 0:h.filter(m=>this.tenantProfileMatchesFilter(m,c));d&&d.length===0||r.push(a)}),r}isAccountKey(e,t,r){return!(e.split(tn.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))}isCredentialKey(e){if(e.split(tn.CACHE_KEY_SEPARATOR).length<6)return!1;const t=e.toLowerCase();if(t.indexOf(ge.ID_TOKEN.toLowerCase())===-1&&t.indexOf(ge.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(ge.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(ge.REFRESH_TOKEN.toLowerCase())>-1){const r=`${ge.REFRESH_TOKEN}${tn.CACHE_KEY_SEPARATOR}${this.clientId}${tn.CACHE_KEY_SEPARATOR}`,o=`${ge.REFRESH_TOKEN}${tn.CACHE_KEY_SEPARATOR}${ps}${tn.CACHE_KEY_SEPARATOR}`;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Ge.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))}getAppMetadataFilteredBy(e){const t=this.getKeys(),r={};return t.forEach(o=>{if(!this.isAppMetadata(o))return;const a=this.getAppMetadata(o);a&&(e.environment&&!this.matchEnvironment(a,e.environment)||e.clientId&&!this.matchClientId(a,e.clientId)||(r[o]=a))}),r}getAuthorityMetadataByAlias(e){const t=this.getAuthorityMetadataKeys();let r=null;return t.forEach(o=>{if(!this.isAuthorityMetadata(o)||o.indexOf(this.clientId)===-1)return;const a=this.getAuthorityMetadata(o);a&&a.aliases.indexOf(e)!==-1&&(r=a)}),r}async removeAllAccounts(){const e=this.getAccountKeys(),t=[];e.forEach(r=>{t.push(this.removeAccount(r))}),await Promise.all(t)}async removeAccount(e){const t=this.getAccount(e,this.commonLogger);t&&(await this.removeAccountContext(t),this.removeItem(e))}async removeAccountContext(e){const t=this.getTokenKeys(),r=e.generateAccountId(),o=[];t.idToken.forEach(a=>{a.indexOf(r)===0&&this.removeIdToken(a)}),t.accessToken.forEach(a=>{a.indexOf(r)===0&&o.push(this.removeAccessToken(a))}),t.refreshToken.forEach(a=>{a.indexOf(r)===0&&this.removeRefreshToken(a)}),await Promise.all(o)}updateOutdatedCachedAccount(e,t,r){var o;if(t&&t.isSingleTenant()){(o=this.commonLogger)==null||o.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const a=this.getAccountKeys().filter(g=>g.startsWith(t.homeAccountId)),c=[];a.forEach(g=>{const v=this.getCachedAccountEntity(g);v&&c.push(v)});const d=c.find(g=>Ol(g.realm,g.homeAccountId))||c[0];d.tenantProfiles=c.map(g=>({tenantId:g.realm,localAccountId:g.localAccountId,name:g.name,isHomeTenant:Ol(g.realm,g.homeAccountId)}));const h=Ta.toObject(new Pt,{...d}),m=h.generateAccountKey();return a.forEach(g=>{g!==m&&this.removeOutdatedAccount(e)}),this.setAccount(h),r==null||r.verbose("Updated an outdated account entity in the cache"),h}return t}async removeAccessToken(e){const t=this.getAccessTokenCredential(e);if(t){if(t.credentialType.toLowerCase()===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&t.tokenType===Ge.POP){const o=t.keyId;if(o)try{await this.cryptoImpl.removeTokenBindingKey(o)}catch{throw Y(lw)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(t=>{this.isAppMetadata(t)&&this.removeItem(t)}),!0}readAccountFromCache(e){const t=Pt.generateAccountCacheKey(e);return this.getAccount(t,this.commonLogger)}getIdToken(e,t,r,o,a){this.commonLogger.trace("CacheManager - getIdToken called");const c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.ID_TOKEN,clientId:this.clientId,realm:r},d=this.getIdTokensByFilter(c,t),h=d.size;if(h<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(h>1){let m=d;if(!r){const g=new Map;d.forEach((p,w)=>{p.realm===e.tenantId&&g.set(w,p)});const v=g.size;if(v<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),d.values().next().value;if(v===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),g.values().next().value;m=g}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),m.forEach((g,v)=>{this.removeIdToken(v)}),o&&a&&o.addFields({multiMatchedID:d.size},a),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),d.values().next().value}getIdTokensByFilter(e,t){const r=t&&t.idToken||this.getTokenKeys().idToken,o=new Map;return r.forEach(a=>{if(!this.idTokenKeyMatchesFilter(a,{clientId:this.clientId,...e}))return;const c=this.getIdTokenCredential(a);c&&this.credentialMatchesFilter(c,e)&&o.set(a,c)}),o}idTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,t,r,o,a,c){this.commonLogger.trace("CacheManager - getAccessToken called");const d=vt.createSearchScopes(t.scopes),h=t.authenticationScheme||Ge.BEARER,m=h&&h.toLowerCase()!==Ge.BEARER.toLowerCase()?ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:ge.ACCESS_TOKEN,g={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:m,clientId:this.clientId,realm:o||e.tenantId,target:d,tokenType:h,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},v=r&&r.accessToken||this.getTokenKeys().accessToken,p=[];v.forEach(C=>{if(this.accessTokenKeyMatchesFilter(C,g,!0)){const T=this.getAccessTokenCredential(C);T&&this.credentialMatchesFilter(T,g)&&p.push(T)}});const w=p.length;return w<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):w>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),p.forEach(C=>{this.removeAccessToken(ha(C))}),a&&c&&a.addFields({multiMatchedAT:p.length},c),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),p[0])}accessTokenKeyMatchesFilter(e,t,r){const o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target){const a=t.target.asArray();for(let c=0;c<a.length;c++){if(r&&!o.includes(a[c].toLowerCase()))return!1;if(!r&&o.includes(a[c].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e){const t=this.getTokenKeys(),r=[];return t.accessToken.forEach(o=>{if(!this.accessTokenKeyMatchesFilter(o,e,!0))return;const a=this.getAccessTokenCredential(o);a&&this.credentialMatchesFilter(a,e)&&r.push(a)}),r}getRefreshToken(e,t,r,o,a){this.commonLogger.trace("CacheManager - getRefreshToken called");const c=t?ps:void 0,d={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.REFRESH_TOKEN,clientId:this.clientId,familyId:c},h=r&&r.refreshToken||this.getTokenKeys().refreshToken,m=[];h.forEach(v=>{if(this.refreshTokenKeyMatchesFilter(v,d)){const p=this.getRefreshTokenCredential(v);p&&this.credentialMatchesFilter(p,d)&&m.push(p)}});const g=m.length;return g<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(g>1&&o&&a&&o.addFields({multiMatchedRT:g},a),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),m[0])}refreshTokenKeyMatchesFilter(e,t){const r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),o=Object.keys(r).map(c=>r[c]),a=o.length;if(a<1)return null;if(a>1)throw Y(nw);return o[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===ps)}matchHomeAccountId(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,t){const r=e.oid||e.sub;return t===r}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){var r;return t.toLowerCase()===((r=e.name)==null?void 0:r.toLowerCase())}matchUsername(e,t){return!!(e&&typeof e=="string"&&(t==null?void 0:t.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){const o=yV(this.staticAuthorityOptions,this.commonLogger);if(o.includes(t)&&o.includes(e.environment))return!0}const r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){var r;return((r=e.realm)==null?void 0:r.toLowerCase())===t.toLowerCase()}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||e.preferred_username===t||e.upn===t}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){return e.credentialType!==ge.ACCESS_TOKEN&&e.credentialType!==ge.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:vt.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(Kf)!==-1}isAuthorityMetadata(e){return e.indexOf(Al.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Al.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class EV extends Ta{setAccount(){throw Y(Ae)}getAccount(){throw Y(Ae)}getCachedAccountEntity(){throw Y(Ae)}setIdTokenCredential(){throw Y(Ae)}getIdTokenCredential(){throw Y(Ae)}setAccessTokenCredential(){throw Y(Ae)}getAccessTokenCredential(){throw Y(Ae)}setRefreshTokenCredential(){throw Y(Ae)}getRefreshTokenCredential(){throw Y(Ae)}setAppMetadata(){throw Y(Ae)}getAppMetadata(){throw Y(Ae)}setServerTelemetry(){throw Y(Ae)}getServerTelemetry(){throw Y(Ae)}setAuthorityMetadata(){throw Y(Ae)}getAuthorityMetadata(){throw Y(Ae)}getAuthorityMetadataKeys(){throw Y(Ae)}setThrottlingCache(){throw Y(Ae)}getThrottlingCache(){throw Y(Ae)}removeItem(){throw Y(Ae)}getKeys(){throw Y(Ae)}getAccountKeys(){throw Y(Ae)}getTokenKeys(){throw Y(Ae)}updateCredentialCacheKey(){throw Y(Ae)}removeOutdatedAccount(){throw Y(Ae)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Mw={tokenRenewalOffsetSeconds:KF,preventCorsPreflight:!1},wV={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info,correlationId:F.EMPTY_STRING},TV={claimsBasedCachingEnabled:!1},bV={async sendGetRequestAsync(){throw Y(Ae)},async sendPostRequestAsync(){throw Y(Ae)}},IV={sku:F.SKU,version:Qf,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},SV={clientSecret:F.EMPTY_STRING,clientAssertion:void 0},AV={azureCloudInstance:Xf.None,tenant:`${F.DEFAULT_COMMON_TENANT}`},kV={application:{appName:"",appVersion:""}};function NV({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:r,storageInterface:o,networkInterface:a,cryptoInterface:c,clientCredentials:d,libraryInfo:h,telemetry:m,serverTelemetryManager:g,persistencePlugin:v,serializableCache:p}){const w={...wV,...t};return{authOptions:RV(n),systemOptions:{...Mw,...e},loggerOptions:w,cacheOptions:{...TV,...r},storageInterface:o||new EV(n.clientId,Nl,new Ko(w)),networkInterface:a||bV,cryptoInterface:c||Nl,clientCredentials:d||SV,libraryInfo:{...IV,...h},telemetry:{...kV,...m},serverTelemetryManager:g||null,persistencePlugin:v||null,serializableCache:p||null}}function RV(n){return{clientCapabilities:[],azureCloudOptions:AV,skipAuthorityMetadataCache:!1,instanceAware:!1,...n}}function Zh(n){return n.authOptions.authority.options.protocolMode===fo.OIDC}/*! @azure/msal-common v14.16.0 2024-11-05 */const Bn={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.0 2024-11-05 */const wi="client_id",Dw="redirect_uri",Yv="response_type",OV="response_mode",PV="grant_type",MV="claims",DV="scope",LV="refresh_token",xV="state",UV="nonce",BV="prompt",FV="code",VV="code_challenge",HV="code_challenge_method",$V="code_verifier",KV="client-request-id",WV="x-client-SKU",zV="x-client-VER",GV="x-client-OS",qV="x-client-CPU",jV="x-client-current-telemetry",YV="x-client-last-telemetry",JV="x-ms-lib-capability",QV="x-app-name",XV="x-app-ver",ZV="post_logout_redirect_uri",e2="id_token_hint",t2="device_code",n2="client_secret",r2="client_assertion",o2="client_assertion_type",Jv="token_type",Qv="req_cnf",i2="assertion",a2="requested_token_use",Xv="return_spa_code",s2="nativebroker",c2="logout_hint",l2="sid",u2="login_hint",d2="domain_hint",h2="x-client-xtra-sku",cm="brk_client_id",ef="brk_redirect_uri";/*! @azure/msal-common v14.16.0 2024-11-05 */class ia{static validateRedirectUri(e){if(!e)throw Xe(mw)}static validatePrompt(e){const t=[];for(const r in Bt)t.push(Bt[r]);if(t.indexOf(e)<0)throw Xe(vw)}static validateClaims(e){try{JSON.parse(e)}catch{throw Xe(em)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw Xe(tm);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Uv.PLAIN,Uv.S256].indexOf(e)<0)throw Xe(Ew)}}/*! @azure/msal-common v14.16.0 2024-11-05 */function f2(n,e,t){if(!e)return;const r=n.get(wi);r&&n.has(cm)&&(t==null||t.addFields({embeddedClientId:r,embeddedRedirectUri:n.get(Dw)},e))}class vs{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Yv,encodeURIComponent(F.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Yv,encodeURIComponent(`${F.TOKEN_RESPONSE_TYPE} ${F.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(OV,encodeURIComponent(e||VF.QUERY))}addNativeBroker(){this.parameters.set(s2,encodeURIComponent("1"))}addScopes(e,t=!0,r=Pa){t&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=t?[...e||[],...r]:e||[],a=new vt(o);this.parameters.set(DV,encodeURIComponent(a.printScopes()))}addClientId(e){this.parameters.set(wi,encodeURIComponent(e))}addRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(Dw,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(ZV,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(e2,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(d2,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(u2,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(dn.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(dn.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(l2,encodeURIComponent(e))}addClaims(e,t){const r=this.addClientCapabilitiesToClaims(e,t);ia.validateClaims(r),this.parameters.set(MV,encodeURIComponent(r))}addCorrelationId(e){this.parameters.set(KV,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(WV,e.sku),this.parameters.set(zV,e.version),e.os&&this.parameters.set(GV,e.os),e.cpu&&this.parameters.set(qV,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(QV,e.appName),e!=null&&e.appVersion&&this.parameters.set(XV,e.appVersion)}addPrompt(e){ia.validatePrompt(e),this.parameters.set(`${BV}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(xV,encodeURIComponent(e))}addNonce(e){this.parameters.set(UV,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(ia.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(VV,encodeURIComponent(e)),this.parameters.set(HV,encodeURIComponent(t));else throw Xe(tm)}addAuthorizationCode(e){this.parameters.set(FV,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(t2,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(LV,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set($V,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(n2,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(r2,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(o2,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(i2,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(a2,encodeURIComponent(e))}addGrantType(e){this.parameters.set(PV,encodeURIComponent(e))}addClientInfo(){this.parameters.set(HF,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([t,r])=>{!this.parameters.has(t)&&r&&this.parameters.set(t,r)})}addClientCapabilitiesToClaims(e,t){let r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw Xe(em)}return t&&t.length>0&&(r.hasOwnProperty(Kc.ACCESS_TOKEN)||(r[Kc.ACCESS_TOKEN]={}),r[Kc.ACCESS_TOKEN][Kc.XMS_CC]={values:t}),JSON.stringify(r)}addUsername(e){this.parameters.set(Fv.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(Fv.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Jv,Ge.POP),this.parameters.set(Qv,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Jv,Ge.SSH),this.parameters.set(Qv,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(jV,e.generateCurrentRequestHeaderValue()),this.parameters.set(YV,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(JV,_s.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(c2,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[cm]=e.brokerClientId,t[ef]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,r)=>{e.push(`${r}=${t}`)}),f2(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.0 2024-11-05 */function m2(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.0 2024-11-05 */function g2(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.0 2024-11-05 */function p2(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.0 2024-11-05 */const x={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},_2={NotStarted:0,InProgress:1,Completed:2};/*! @azure/msal-common v14.16.0 2024-11-05 */const Ai=(n,e,t,r,o)=>(...a)=>{t.trace(`Executing function ${e}`);const c=r==null?void 0:r.startMeasurement(e,o);if(o){const d=e+"CallCount";r==null||r.incrementFields({[d]:1},o)}try{const d=n(...a);return c==null||c.end({success:!0}),t.trace(`Returning result from ${e}`),d}catch(d){t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(d))}catch{t.trace("Unable to print error message.")}throw c==null||c.end({success:!1},d),d}},Q=(n,e,t,r,o)=>(...a)=>{t.trace(`Executing function ${e}`);const c=r==null?void 0:r.startMeasurement(e,o);if(o){const d=e+"CallCount";r==null||r.incrementFields({[d]:1},o)}return r==null||r.setPreQueueTime(e,o),n(...a).then(d=>(t.trace(`Returning result from ${e}`),c==null||c.end({success:!0}),d)).catch(d=>{t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(d))}catch{t.trace("Unable to print error message.")}throw c==null||c.end({success:!1},d),d})};/*! @azure/msal-common v14.16.0 2024-11-05 */class lu{constructor(e,t,r,o){this.networkInterface=e,this.logger=t,this.performanceClient=r,this.correlationId=o}async detectRegion(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.RegionDiscoveryDetectRegion,this.correlationId);let r=e;if(r)t.region_source=Yi.ENVIRONMENT_VARIABLE;else{const a=lu.IMDS_OPTIONS;try{const c=await Q(this.getRegionFromIMDS.bind(this),x.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(F.IMDS_VERSION,a);if(c.status===zc.httpSuccess&&(r=c.body,t.region_source=Yi.IMDS),c.status===zc.httpBadRequest){const d=await Q(this.getCurrentVersion.bind(this),x.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(a);if(!d)return t.region_source=Yi.FAILED_AUTO_DETECTION,null;const h=await Q(this.getRegionFromIMDS.bind(this),x.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(d,a);h.status===zc.httpSuccess&&(r=h.body,t.region_source=Yi.IMDS)}}catch{return t.region_source=Yi.FAILED_AUTO_DETECTION,null}}return r||(t.region_source=Yi.FAILED_AUTO_DETECTION),r||null}async getRegionFromIMDS(e,t){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(x.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?api-version=${e}&format=text`,t,F.IMDS_TIMEOUT)}async getCurrentVersion(e){var t;(t=this.performanceClient)==null||t.addQueueMeasurement(x.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?format=json`,e);return r.status===zc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}lu.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.16.0 2024-11-05 */class Xt{constructor(e,t,r,o,a,c,d,h){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=a,this.performanceClient=d,this.correlationId=c,this.managedIdentity=h||!1,this.regionDiscovery=new lu(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(F.CIAM_AUTH_URL))return mr.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case F.ADFS:return mr.Adfs;case F.DSTS:return mr.Dsts}return mr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new De(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Y(ao)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Y(ao)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Y(ao)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Y(uw);return this.replacePath(this.metadata.end_session_endpoint)}else throw Y(ao)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Y(ao)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Y(ao)}canReplaceTenant(e){return e.PathSegments.length===1&&!Xt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===mr.Default&&this.protocolMode===fo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const o=new De(this.metadata.canonical_authority).getUrlComponents(),a=o.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((d,h)=>{let m=a[h];if(h===0&&this.canReplaceTenant(o)){const g=new De(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];m!==g&&(this.logger.verbose(`Replacing tenant domain name ${m} with id ${g}`),m=g)}d!==m&&(t=t.replace(`/${m}/`,`/${d}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===mr.Adfs||this.protocolMode!==fo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var o,a;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),t=await Q(this.updateCloudDiscoveryMetadata.bind(this),x.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await Q(this.updateEndpointMetadata.bind(this),x.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:r}),(a=this.performanceClient)==null||a.addFields({cloudDiscoverySource:t,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:zv(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==On.CACHE&&(r==null?void 0:r.source)!==On.CACHE&&(e.expiresAt=zv(),e.canonical_authority=this.canonicalAuthority);const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e}async updateEndpointMetadata(e){var o,a,c;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityUpdateEndpointMetadata,this.correlationId);const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===On.HARDCODED_VALUES&&(a=this.authorityOptions.azureRegionConfiguration)!=null&&a.azureRegion&&t.metadata){const d=await Q(this.updateMetadataWithRegionalInformation.bind(this),x.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(t.metadata);Gc(e,d,!1),e.canonical_authority=this.canonicalAuthority}return t.source}let r=await Q(this.getEndpointMetadataFromNetwork.bind(this),x.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return(c=this.authorityOptions.azureRegionConfiguration)!=null&&c.azureRegion&&(r=await Q(this.updateMetadataWithRegionalInformation.bind(this),x.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r)),Gc(e,r,!0),On.NETWORK;throw Y(QE,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),Gc(e,t,!1),{source:On.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const o=this.getEndpointMetadataFromHardcodedValues();if(o)return Gc(e,o,!1),{source:On.HARDCODED_VALUES,metadata:o};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const r=Gv(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!r?(this.logger.verbose("Found endpoint metadata in the cache."),{source:On.CACHE}):(r&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new De(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Xe(ww)}return null}async getEndpointMetadataFromNetwork(){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(x.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{const o=await this.networkInterface.sendGetRequestAsync(t,e);return m2(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in qv?qv[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var r,o,a;(r=this.performanceClient)==null||r.addQueueMeasurement(x.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const t=(o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.azureRegion;if(t){if(t!==F.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=oh.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=t,Xt.replaceWithRegionalInformation(e,t);const c=await Q(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),x.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((a=this.authorityOptions.azureRegionConfiguration)==null?void 0:a.environmentRegion,this.regionDiscoveryMetadata);if(c)return this.regionDiscoveryMetadata.region_outcome=oh.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,Xt.replaceWithRegionalInformation(e,c);this.regionDiscoveryMetadata.region_outcome=oh.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const r=await Q(this.getCloudDiscoveryMetadataFromNetwork.bind(this),x.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return ih(e,r,!0),On.NETWORK;throw Xe(Tw)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||F.NOT_APPLICABLE}`);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),ih(e,t,!1),On.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const o=CV(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),ih(e,o,!1),On.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const r=Gv(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),On.CACHE):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===mr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=Ml(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Xe(nm)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${F.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let r=null;try{const a=await this.networkInterface.sendGetRequestAsync(e,t);let c,d;if(g2(a.body))c=a.body,d=c.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${c.tenant_discovery_endpoint}`);else if(p2(a.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${a.status}`),c=a.body,c.error===F.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${c.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${c.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),d=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=Ml(d,this.hostnameAndPort)}catch(a){if(a instanceof lt)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
108
108
  Error: ${a.errorCode}
109
109
  Error Description: ${a.errorMessage}`);else{const c=a;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
110
110
  Error: ${c.name}
111
- Error Description: ${c.message}`)}return null}return r||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),r=Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(t=>t&&De.getDomainFromUrl(t).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let r;if(t&&t.azureCloudInstance!==Xf.None){const o=t.tenant?t.tenant:F.DEFAULT_COMMON_TENANT;r=`${t.azureCloudInstance}/${o}/`}return r||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return F.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw Y(ao)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Pw.has(e)}static isPublicCloudAuthority(e){return F.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,r){const o=new De(e);o.validateAsUri();const a=o.getUrlComponents();let c=`${t}.${a.HostNameAndPort}`;this.isPublicCloudAuthority(a.HostNameAndPort)&&(c=`${t}.${F.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const d=De.constructAuthorityUriFromObject({...o.getUrlComponents(),HostNameAndPort:c}).urlString;return r?`${d}?${r}`:d}static replaceWithRegionalInformation(e,t){const r={...e};return r.authorization_endpoint=Xt.buildRegionalAuthorityString(r.authorization_endpoint,t),r.token_endpoint=Xt.buildRegionalAuthorityString(r.token_endpoint,t),r.end_session_endpoint&&(r.end_session_endpoint=Xt.buildRegionalAuthorityString(r.end_session_endpoint,t)),r}static transformCIAMAuthority(e){let t=e;const o=new De(e).getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(F.CIAM_AUTH_URL)){const a=o.HostNameAndPort.split(".")[0];t=`${t}${a}${F.AAD_TENANT_DOMAIN_SUFFIX}`}return t}}Xt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Ho.COMMON,Ho.CONSUMERS,Ho.ORGANIZATIONS]);function y2(n){var o;const r=(o=new De(n).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:o.toLowerCase();switch(r){case Ho.COMMON:case Ho.ORGANIZATIONS:case Ho.CONSUMERS:return;default:return r}}function xw(n){return n.endsWith(F.FORWARD_SLASH)?n:`${n}${F.FORWARD_SLASH}`}function C2(n){const e=n.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw Xe(nm)}return{canonicalAuthority:n.authority?xw(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Uw(n,e,t,r,o,a,c){c==null||c.addQueueMeasurement(x.AuthorityFactoryCreateDiscoveredInstance,a);const d=Xt.transformCIAMAuthority(xw(n)),h=new Xt(d,e,t,r,o,a,c);try{return await Q(h.resolveEndpointsAsync.bind(h),x.AuthorityResolveEndpointsAsync,o,c,a)(),h}catch{throw Y(ao)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Wo extends lt{constructor(e,t,r,o,a){super(e,t,r),this.name="ServerError",this.errorNo=o,this.status=a,Object.setPrototypeOf(this,Wo.prototype)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Ur{static generateThrottlingStorageKey(e){return`${_s.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,t){var a;const r=Ur.generateThrottlingStorageKey(t),o=e.getThrottlingCache(r);if(o){if(o.throttleTime<Date.now()){e.removeItem(r);return}throw new Wo(((a=o.errorCodes)==null?void 0:a.join(" "))||F.EMPTY_STRING,o.errorMessage,o.subError)}}static postProcess(e,t,r){if(Ur.checkResponseStatus(r)||Ur.checkResponseForRetryAfter(r)){const o={throttleTime:Ur.calculateThrottleTime(parseInt(r.headers[dn.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(Ur.generateThrottlingStorageKey(t),o)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(dn.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||_s.DEFAULT_THROTTLE_TIME_SECONDS),r+_s.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,t,r,o){const a={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:o,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},c=this.generateThrottlingStorageKey(a);e.removeItem(c)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class uu extends lt{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,uu.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function Zv(n,e,t){return new uu(n,e,t)}/*! @azure/msal-common v14.16.0 2024-11-05 */class lm{constructor(e,t){this.config=RV(e),this.logger=new Ko(this.config.loggerOptions,hw,Qf),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){const t={};if(t[dn.CONTENT_TYPE]=F.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Bn.HOME_ACCOUNT_ID:try{const r=fa(e.credential);t[dn.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case Bn.UPN:t[dn.CCS_HEADER]=`UPN: ${e.credential}`;break}return t}async executePostToTokenEndpoint(e,t,r,o,a,c){var h;c&&((h=this.performanceClient)==null||h.addQueueMeasurement(c,a));const d=await this.sendPostRequest(o,e,{body:t,headers:r},a);return this.config.serverTelemetryManager&&d.status<500&&d.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),d}async sendPostRequest(e,t,r,o){var c,d,h;Ur.preProcess(this.cacheManager,e);let a;try{a=await Q(this.networkClient.sendPostRequestAsync.bind(this.networkClient),x.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,o)(t,r);const m=a.headers||{};(d=this.performanceClient)==null||d.addFields({refreshTokenSize:((c=a.body.refresh_token)==null?void 0:c.length)||0,httpVerToken:m[dn.X_MS_HTTP_VERSION]||"",requestId:m[dn.X_MS_REQUEST_ID]||""},o)}catch(m){if(m instanceof uu){const g=m.responseHeaders;throw g&&((h=this.performanceClient)==null||h.addFields({httpVerToken:g[dn.X_MS_HTTP_VERSION]||"",requestId:g[dn.X_MS_REQUEST_ID]||"",contentTypeHeader:g[dn.CONTENT_TYPE]||void 0,contentLengthHeader:g[dn.CONTENT_LENGTH]||void 0,httpStatus:m.httpStatus},o)),m.error}throw m instanceof lt?m:Y(QE)}return Ur.postProcess(this.cacheManager,e,a),a}async updateAuthority(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.UpdateTokenEndpointAuthority,t);const r=`https://${e}/${this.authority.tenant}/`,o=await Uw(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const t=new vs(e.correlationId,this.performanceClient);return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.addCorrelationId(e.correlationId),t.createQueryString()}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Dl="no_tokens_found",Bw="native_account_unavailable",um="refresh_token_expired",E2="interaction_required",w2="consent_required",T2="login_required",du="bad_token";/*! @azure/msal-common v14.16.0 2024-11-05 */const ey=[E2,w2,T2,du],b2=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],I2={[Dl]:"No refresh token found in the cache. Please sign-in.",[Bw]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[um]:"Refresh token has expired.",[du]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class Er extends lt{constructor(e,t,r,o,a,c,d,h){super(e,t,r),Object.setPrototypeOf(this,Er.prototype),this.timestamp=o||F.EMPTY_STRING,this.traceId=a||F.EMPTY_STRING,this.correlationId=c||F.EMPTY_STRING,this.claims=d||F.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=h}}function ty(n,e,t){const r=!!n&&ey.indexOf(n)>-1,o=!!t&&b2.indexOf(t)>-1,a=!!e&&ey.some(c=>e.indexOf(c)>-1);return r||a||o}function tf(n){return new Er(n,I2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class yr{static setRequestState(e,t,r){const o=yr.generateLibraryState(e,r);return t?`${o}${F.RESOURCE_DELIM}${t}`:o}static generateLibraryState(e,t){if(!e)throw Y(Jh);const r={id:e.createNewGuid()};t&&(r.meta=t);const o=JSON.stringify(r);return e.base64Encode(o)}static parseRequestState(e,t){if(!e)throw Y(Jh);if(!t)throw Y(wa);try{const r=t.split(F.RESOURCE_DELIM),o=r[0],a=r.length>1?r.slice(1).join(F.RESOURCE_DELIM):F.EMPTY_STRING,c=e.base64Decode(o),d=JSON.parse(c);return{userRequestState:a||F.EMPTY_STRING,libraryState:d}}catch{throw Y(wa)}}}/*! @azure/msal-common v14.16.0 2024-11-05 */const S2={SW:"sw",UHW:"uhw"};class ba{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.PopTokenGenerateCnf,e.correlationId);const r=await Q(this.generateKid.bind(this),x.PopTokenGenerateCnf,t,this.performanceClient,e.correlationId)(e),o=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:o}}async generateKid(e){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(x.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:S2.SW}}async signPopToken(e,t,r){return this.signPayload(e,t,r)}async signPayload(e,t,r,o){const{resourceRequestMethod:a,resourceRequestUri:c,shrClaims:d,shrNonce:h,shrOptions:m}=r,g=c?new De(c):void 0,v=g==null?void 0:g.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:zr(),m:a==null?void 0:a.toUpperCase(),u:v==null?void 0:v.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:v==null?void 0:v.AbsolutePath,q:v!=null&&v.QueryString?[[],v.QueryString]:void 0,client_claims:d||void 0,...o},t,m,r.correlationId)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class A2{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.16.0 2024-11-05 */function k2(n){var r,o;const e="code=",t=(r=n.error_uri)==null?void 0:r.lastIndexOf(e);return t&&t>=0?(o=n.error_uri)==null?void 0:o.substring(t+e.length):void 0}class Ti{constructor(e,t,r,o,a,c,d){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.serializableCache=a,this.persistencePlugin=c,this.performanceClient=d}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?Y(kl,"Cached State"):Y(kl,"Server State");let r,o;try{r=decodeURIComponent(e.state)}catch{throw Y(wa,e.state)}try{o=decodeURIComponent(t)}catch{throw Y(wa,e.state)}if(r!==o)throw Y(ew);if(e.error||e.error_description||e.suberror){const a=k2(e);throw ty(e.error,e.error_description,e.suberror)?new Er(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",a):new Wo(e.error||"",e.error_description,e.suberror,a)}}validateTokenResponse(e,t){var r;if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||F.NOT_AVAILABLE} - Timestamp: ${e.timestamp||F.NOT_AVAILABLE} - Description: ${e.error_description||F.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||F.NOT_AVAILABLE} - Trace ID: ${e.trace_id||F.NOT_AVAILABLE}`,a=(r=e.error_codes)!=null&&r.length?e.error_codes[0]:void 0,c=new Wo(e.error,o,e.suberror,a,e.status);if(t&&e.status&&e.status>=$c.SERVER_ERROR_RANGE_START&&e.status<=$c.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
111
+ Error Description: ${c.message}`)}return null}return r||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),r=Xt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(t=>t&&De.getDomainFromUrl(t).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let r;if(t&&t.azureCloudInstance!==Xf.None){const o=t.tenant?t.tenant:F.DEFAULT_COMMON_TENANT;r=`${t.azureCloudInstance}/${o}/`}return r||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return F.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw Y(ao)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Ow.has(e)}static isPublicCloudAuthority(e){return F.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,r){const o=new De(e);o.validateAsUri();const a=o.getUrlComponents();let c=`${t}.${a.HostNameAndPort}`;this.isPublicCloudAuthority(a.HostNameAndPort)&&(c=`${t}.${F.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const d=De.constructAuthorityUriFromObject({...o.getUrlComponents(),HostNameAndPort:c}).urlString;return r?`${d}?${r}`:d}static replaceWithRegionalInformation(e,t){const r={...e};return r.authorization_endpoint=Xt.buildRegionalAuthorityString(r.authorization_endpoint,t),r.token_endpoint=Xt.buildRegionalAuthorityString(r.token_endpoint,t),r.end_session_endpoint&&(r.end_session_endpoint=Xt.buildRegionalAuthorityString(r.end_session_endpoint,t)),r}static transformCIAMAuthority(e){let t=e;const o=new De(e).getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(F.CIAM_AUTH_URL)){const a=o.HostNameAndPort.split(".")[0];t=`${t}${a}${F.AAD_TENANT_DOMAIN_SUFFIX}`}return t}}Xt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Ho.COMMON,Ho.CONSUMERS,Ho.ORGANIZATIONS]);function v2(n){var o;const r=(o=new De(n).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:o.toLowerCase();switch(r){case Ho.COMMON:case Ho.ORGANIZATIONS:case Ho.CONSUMERS:return;default:return r}}function Lw(n){return n.endsWith(F.FORWARD_SLASH)?n:`${n}${F.FORWARD_SLASH}`}function y2(n){const e=n.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw Xe(nm)}return{canonicalAuthority:n.authority?Lw(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.0 2024-11-05 */async function xw(n,e,t,r,o,a,c){c==null||c.addQueueMeasurement(x.AuthorityFactoryCreateDiscoveredInstance,a);const d=Xt.transformCIAMAuthority(Lw(n)),h=new Xt(d,e,t,r,o,a,c);try{return await Q(h.resolveEndpointsAsync.bind(h),x.AuthorityResolveEndpointsAsync,o,c,a)(),h}catch{throw Y(ao)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Wo extends lt{constructor(e,t,r,o,a){super(e,t,r),this.name="ServerError",this.errorNo=o,this.status=a,Object.setPrototypeOf(this,Wo.prototype)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class Ur{static generateThrottlingStorageKey(e){return`${_s.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,t){var a;const r=Ur.generateThrottlingStorageKey(t),o=e.getThrottlingCache(r);if(o){if(o.throttleTime<Date.now()){e.removeItem(r);return}throw new Wo(((a=o.errorCodes)==null?void 0:a.join(" "))||F.EMPTY_STRING,o.errorMessage,o.subError)}}static postProcess(e,t,r){if(Ur.checkResponseStatus(r)||Ur.checkResponseForRetryAfter(r)){const o={throttleTime:Ur.calculateThrottleTime(parseInt(r.headers[dn.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(Ur.generateThrottlingStorageKey(t),o)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(dn.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||_s.DEFAULT_THROTTLE_TIME_SECONDS),r+_s.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,t,r,o){const a={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:o,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},c=this.generateThrottlingStorageKey(a);e.removeItem(c)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class uu extends lt{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,uu.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function Zv(n,e,t){return new uu(n,e,t)}/*! @azure/msal-common v14.16.0 2024-11-05 */class lm{constructor(e,t){this.config=NV(e),this.logger=new Ko(this.config.loggerOptions,dw,Qf),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){const t={};if(t[dn.CONTENT_TYPE]=F.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Bn.HOME_ACCOUNT_ID:try{const r=fa(e.credential);t[dn.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case Bn.UPN:t[dn.CCS_HEADER]=`UPN: ${e.credential}`;break}return t}async executePostToTokenEndpoint(e,t,r,o,a,c){var h;c&&((h=this.performanceClient)==null||h.addQueueMeasurement(c,a));const d=await this.sendPostRequest(o,e,{body:t,headers:r},a);return this.config.serverTelemetryManager&&d.status<500&&d.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),d}async sendPostRequest(e,t,r,o){var c,d,h;Ur.preProcess(this.cacheManager,e);let a;try{a=await Q(this.networkClient.sendPostRequestAsync.bind(this.networkClient),x.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,o)(t,r);const m=a.headers||{};(d=this.performanceClient)==null||d.addFields({refreshTokenSize:((c=a.body.refresh_token)==null?void 0:c.length)||0,httpVerToken:m[dn.X_MS_HTTP_VERSION]||"",requestId:m[dn.X_MS_REQUEST_ID]||""},o)}catch(m){if(m instanceof uu){const g=m.responseHeaders;throw g&&((h=this.performanceClient)==null||h.addFields({httpVerToken:g[dn.X_MS_HTTP_VERSION]||"",requestId:g[dn.X_MS_REQUEST_ID]||"",contentTypeHeader:g[dn.CONTENT_TYPE]||void 0,contentLengthHeader:g[dn.CONTENT_LENGTH]||void 0,httpStatus:m.httpStatus},o)),m.error}throw m instanceof lt?m:Y(JE)}return Ur.postProcess(this.cacheManager,e,a),a}async updateAuthority(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.UpdateTokenEndpointAuthority,t);const r=`https://${e}/${this.authority.tenant}/`,o=await xw(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const t=new vs(e.correlationId,this.performanceClient);return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.addCorrelationId(e.correlationId),t.createQueryString()}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Dl="no_tokens_found",Uw="native_account_unavailable",um="refresh_token_expired",C2="interaction_required",E2="consent_required",w2="login_required",du="bad_token";/*! @azure/msal-common v14.16.0 2024-11-05 */const ey=[C2,E2,w2,du],T2=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],b2={[Dl]:"No refresh token found in the cache. Please sign-in.",[Uw]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[um]:"Refresh token has expired.",[du]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class Er extends lt{constructor(e,t,r,o,a,c,d,h){super(e,t,r),Object.setPrototypeOf(this,Er.prototype),this.timestamp=o||F.EMPTY_STRING,this.traceId=a||F.EMPTY_STRING,this.correlationId=c||F.EMPTY_STRING,this.claims=d||F.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=h}}function ty(n,e,t){const r=!!n&&ey.indexOf(n)>-1,o=!!t&&T2.indexOf(t)>-1,a=!!e&&ey.some(c=>e.indexOf(c)>-1);return r||a||o}function tf(n){return new Er(n,b2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class yr{static setRequestState(e,t,r){const o=yr.generateLibraryState(e,r);return t?`${o}${F.RESOURCE_DELIM}${t}`:o}static generateLibraryState(e,t){if(!e)throw Y(Jh);const r={id:e.createNewGuid()};t&&(r.meta=t);const o=JSON.stringify(r);return e.base64Encode(o)}static parseRequestState(e,t){if(!e)throw Y(Jh);if(!t)throw Y(wa);try{const r=t.split(F.RESOURCE_DELIM),o=r[0],a=r.length>1?r.slice(1).join(F.RESOURCE_DELIM):F.EMPTY_STRING,c=e.base64Decode(o),d=JSON.parse(c);return{userRequestState:a||F.EMPTY_STRING,libraryState:d}}catch{throw Y(wa)}}}/*! @azure/msal-common v14.16.0 2024-11-05 */const I2={SW:"sw",UHW:"uhw"};class ba{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.PopTokenGenerateCnf,e.correlationId);const r=await Q(this.generateKid.bind(this),x.PopTokenGenerateCnf,t,this.performanceClient,e.correlationId)(e),o=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:o}}async generateKid(e){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(x.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:I2.SW}}async signPopToken(e,t,r){return this.signPayload(e,t,r)}async signPayload(e,t,r,o){const{resourceRequestMethod:a,resourceRequestUri:c,shrClaims:d,shrNonce:h,shrOptions:m}=r,g=c?new De(c):void 0,v=g==null?void 0:g.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:zr(),m:a==null?void 0:a.toUpperCase(),u:v==null?void 0:v.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:v==null?void 0:v.AbsolutePath,q:v!=null&&v.QueryString?[[],v.QueryString]:void 0,client_claims:d||void 0,...o},t,m,r.correlationId)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class S2{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.16.0 2024-11-05 */function A2(n){var r,o;const e="code=",t=(r=n.error_uri)==null?void 0:r.lastIndexOf(e);return t&&t>=0?(o=n.error_uri)==null?void 0:o.substring(t+e.length):void 0}class Ti{constructor(e,t,r,o,a,c,d){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.serializableCache=a,this.persistencePlugin=c,this.performanceClient=d}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?Y(kl,"Cached State"):Y(kl,"Server State");let r,o;try{r=decodeURIComponent(e.state)}catch{throw Y(wa,e.state)}try{o=decodeURIComponent(t)}catch{throw Y(wa,e.state)}if(r!==o)throw Y(ZE);if(e.error||e.error_description||e.suberror){const a=A2(e);throw ty(e.error,e.error_description,e.suberror)?new Er(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",a):new Wo(e.error||"",e.error_description,e.suberror,a)}}validateTokenResponse(e,t){var r;if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||F.NOT_AVAILABLE} - Timestamp: ${e.timestamp||F.NOT_AVAILABLE} - Description: ${e.error_description||F.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||F.NOT_AVAILABLE} - Trace ID: ${e.trace_id||F.NOT_AVAILABLE}`,a=(r=e.error_codes)!=null&&r.length?e.error_codes[0]:void 0,c=new Wo(e.error,o,e.suberror,a,e.status);if(t&&e.status&&e.status>=$c.SERVER_ERROR_RANGE_START&&e.status<=$c.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
112
112
  ${c}`);return}else if(t&&e.status&&e.status>=$c.CLIENT_ERROR_RANGE_START&&e.status<=$c.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
113
- ${c}`);return}throw ty(e.error,e.error_description,e.suberror)?new Er(e.error,e.error_description,e.suberror,e.timestamp||F.EMPTY_STRING,e.trace_id||F.EMPTY_STRING,e.correlation_id||F.EMPTY_STRING,e.claims||F.EMPTY_STRING,a):c}}async handleServerTokenResponse(e,t,r,o,a,c,d,h,m){var C;(C=this.performanceClient)==null||C.addQueueMeasurement(x.HandleServerTokenResponse,e.correlation_id);let g;if(e.id_token){if(g=Si(e.id_token||F.EMPTY_STRING,this.cryptoObj.base64Decode),a&&a.nonce&&g.nonce!==a.nonce)throw Y(tw);if(o.maxAge||o.maxAge===0){const T=g.auth_time;if(!T)throw Y(qf);fw(T,o.maxAge)}}this.homeAccountIdentifier=Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,g);let v;a&&a.state&&(v=yr.parseRequestState(this.cryptoObj,a.state)),e.key_id=e.key_id||o.sshKid||void 0;const p=this.generateCacheRecord(e,t,r,o,g,c,a);let w;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),w=new A2(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(w)),d&&!h&&p.account){const T=p.account.generateAccountKey();if(!this.cacheStorage.getAccount(T,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Ti.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,g,v,void 0,m)}await this.cacheStorage.saveCacheRecord(p,o.storeInCache,o.correlationId)}finally{this.persistencePlugin&&this.serializableCache&&w&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(w))}return Ti.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,g,v,e,m)}generateCacheRecord(e,t,r,o,a,c,d){const h=t.getPreferredCache();if(!h)throw Y(Yf);const m=Nw(a);let g,v;e.id_token&&a&&(g=au(this.homeAccountIdentifier,h,e.id_token,this.clientId,m||""),v=dm(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,a,e.client_info,h,m,d,void 0,this.logger));let p=null;if(e.access_token){const T=e.scope?vt.fromString(e.scope):new vt(o.scopes||[]),k=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,I=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,N=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,D=r+k,L=D+I,K=N&&N>0?r+N:void 0;p=su(this.homeAccountIdentifier,h,e.access_token,this.clientId,m||t.tenant||"",T.printScopes(),D,L,this.cryptoObj.base64Decode,K,e.token_type,c,e.key_id,o.claims,o.requestedClaimsHash)}let w=null;if(e.refresh_token){let T;if(e.refresh_token_expires_in){const k=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;T=r+k}w=mw(this.homeAccountIdentifier,h,e.refresh_token,this.clientId,e.foci,c,T)}let C=null;return e.foci&&(C={clientId:this.clientId,environment:h,familyId:e.foci}),{account:v,idToken:g,accessToken:p,refreshToken:w,appMetadata:C}}static async generateAuthenticationResult(e,t,r,o,a,c,d,h,m){var D,L,K,q,M;let g=F.EMPTY_STRING,v=[],p=null,w,C,T=F.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===Ge.POP&&!a.popKid){const ce=new ba(e),{secret:ae,keyId:X}=r.accessToken;if(!X)throw Y(Jf);g=await ce.signPopToken(ae,X,a)}else g=r.accessToken.secret;v=vt.fromString(r.accessToken.target).asArray(),p=new Date(Number(r.accessToken.expiresOn)*1e3),w=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),r.accessToken.refreshOn&&(C=new Date(Number(r.accessToken.refreshOn)*1e3))}r.appMetadata&&(T=r.appMetadata.familyId===ps?ps:"");const k=(c==null?void 0:c.oid)||(c==null?void 0:c.sub)||"",I=(c==null?void 0:c.tid)||"";h!=null&&h.spa_accountid&&r.account&&(r.account.nativeAccountId=h==null?void 0:h.spa_accountid);const N=r.account?im(r.account.getAccountInfo(),void 0,c,(D=r.idToken)==null?void 0:D.secret):null;return{authority:t.canonicalAuthority,uniqueId:k,tenantId:I,scopes:v,account:N,idToken:((L=r==null?void 0:r.idToken)==null?void 0:L.secret)||"",idTokenClaims:c||{},accessToken:g,fromCache:o,expiresOn:p,extExpiresOn:w,refreshOn:C,correlationId:a.correlationId,requestId:m||F.EMPTY_STRING,familyId:T,tokenType:((K=r.accessToken)==null?void 0:K.tokenType)||F.EMPTY_STRING,state:d?d.userRequestState:F.EMPTY_STRING,cloudGraphHostName:((q=r.account)==null?void 0:q.cloudGraphHostName)||F.EMPTY_STRING,msGraphHost:((M=r.account)==null?void 0:M.msGraphHost)||F.EMPTY_STRING,code:h==null?void 0:h.spa_code,fromNativeBroker:!1}}}function dm(n,e,t,r,o,a,c,d,h,m,g){g==null||g.verbose("setCachedAccount called");const p=n.getAccountKeys().find(I=>I.startsWith(t));let w=null;p&&(w=n.getAccount(p,g));const C=w||Pt.createAccount({homeAccountId:t,idTokenClaims:o,clientInfo:a,environment:c,cloudGraphHostName:h==null?void 0:h.cloud_graph_host_name,msGraphHost:h==null?void 0:h.msgraph_host,nativeAccountId:m},e,r),T=C.tenantProfiles||[],k=d||C.realm;if(k&&!T.find(I=>I.tenantId===k)){const I=om(t,C.localAccountId,k,o);T.push(I)}return C.tenantProfiles=T,C}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Fw(n,e,t){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.0 2024-11-05 */class Vw extends lm{constructor(e,t){var r;super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=(r=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:r.defaultScopes}async getAuthCodeUrl(e){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(x.GetAuthCodeUrl,e.correlationId);const t=await Q(this.createAuthCodeUrlQueryString.bind(this),x.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return De.appendQueryString(this.authority.authorizationEndpoint,t)}async acquireToken(e,t){var d,h;if((d=this.performanceClient)==null||d.addQueueMeasurement(x.AuthClientAcquireToken,e.correlationId),!e.code)throw Y(ow);const r=zr(),o=await Q(this.executeTokenRequest.bind(this),x.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),a=(h=o.headers)==null?void 0:h[dn.X_MS_REQUEST_ID],c=new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return c.validateTokenResponse(o.body),Q(c.handleServerTokenResponse.bind(c),x.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,t,void 0,void 0,void 0,a)}handleFragmentResponse(e,t){if(new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw Y(lw);return e}getLogoutUri(e){if(!e)throw Xe(Ew);const t=this.createLogoutUrlQueryString(e);return De.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t){var m,g;(m=this.performanceClient)==null||m.addQueueMeasurement(x.AuthClientExecuteTokenRequest,t.correlationId);const r=this.createTokenQueryParameters(t),o=De.appendQueryString(e.tokenEndpoint,r),a=await Q(this.createTokenRequestBody.bind(this),x.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t);let c;if(t.clientInfo)try{const v=Rl(t.clientInfo,this.cryptoUtils.base64Decode);c={credential:`${v.uid}${tn.CLIENT_INFO_SEPARATOR}${v.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(v){this.logger.verbose("Could not parse client info for CCS Header: "+v)}const d=this.createTokenRequestHeaders(c||t.ccsCredential),h={clientId:((g=t.tokenBodyParameters)==null?void 0:g.clientId)||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return Q(this.executePostToTokenEndpoint.bind(this),x.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(o,a,d,h,t.correlationId,x.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,a;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthClientCreateTokenRequestBody,e.correlationId);const t=new vs(e.correlationId,this.performanceClient);if(t.addClientId(e.embeddedClientId||((a=e.tokenBodyParameters)==null?void 0:a[wi])||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):ia.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!Zh(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const c=this.config.clientCredentials.clientAssertion;t.addClientAssertion(await Fw(c.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(c.assertionType)}if(t.addGrantType(qE.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Ge.POP){const c=new ba(this.cryptoUtils,this.performanceClient);let d;e.popKid?d=this.cryptoUtils.encodeKid(e.popKid):d=(await Q(c.generateCnf.bind(c),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(d)}else if(e.authenticationScheme===Ge.SSH)if(e.sshJwk)t.addSshJwk(e.sshJwk);else throw Xe(cu);(!vr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities);let r;if(e.clientInfo)try{const c=Rl(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${c.uid}${tn.CLIENT_INFO_SEPARATOR}${c.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(c){this.logger.verbose("Could not parse client info for CCS Header: "+c)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case Bn.HOME_ACCOUNT_ID:try{const c=fa(r.credential);t.addCcsOid(c)}catch(c){this.logger.verbose("Could not parse home account ID for CCS Header: "+c)}break;case Bn.UPN:t.addCcsUpn(r.credential);break}return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Xv])&&t.addExtraQueryParameters({[Xv]:"1"}),t.createQueryString()}async createAuthCodeUrlQueryString(e){var a,c;const t=e.correlationId||this.config.cryptoInterface.createNewGuid();(a=this.performanceClient)==null||a.addQueueMeasurement(x.AuthClientCreateQueryString,t);const r=new vs(t,this.performanceClient);r.addClientId(e.embeddedClientId||((c=e.extraQueryParameters)==null?void 0:c[wi])||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];if(r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri),r.addCorrelationId(t),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),Zh(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==Bt.SELECT_ACCOUNT)if(e.sid&&e.prompt===Bt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const d=this.extractAccountSid(e.account);let h=this.extractLoginHint(e.account);if(h&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),h=null),h){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(h);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(d&&e.prompt===Bt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(d);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,r),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Ge.POP)){const d=new ba(this.cryptoUtils);let h;e.popKid?h=this.cryptoUtils.encodeKid(e.popKid):h=(await Q(d.generateCnf.bind(d),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(h)}return r.createQueryString()}createLogoutUrlQueryString(e){const t=new vs(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,t),t.createQueryString()}addExtraQueryParams(e,t){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){var t;return((t=e.idTokenClaims)==null?void 0:t.sid)||null}extractLoginHint(e){var t;return((t=e.idTokenClaims)==null?void 0:t.login_hint)||null}}/*! @azure/msal-common v14.16.0 2024-11-05 */const N2=300;class nf extends lm{constructor(e,t){super(e,t)}async acquireToken(e){var c,d;(c=this.performanceClient)==null||c.addQueueMeasurement(x.RefreshTokenClientAcquireToken,e.correlationId);const t=zr(),r=await Q(this.executeTokenRequest.bind(this),x.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),o=(d=r.headers)==null?void 0:d[dn.X_MS_REQUEST_ID],a=new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return a.validateTokenResponse(r.body),Q(a.handleServerTokenResponse.bind(a),x.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,o)}async acquireTokenByRefreshToken(e){var r;if(!e)throw Xe(Cw);if((r=this.performanceClient)==null||r.addQueueMeasurement(x.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Y(jf);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const a=o instanceof Er&&o.errorCode===Dl,c=o instanceof Wo&&o.errorCode===Bv.INVALID_GRANT_ERROR&&o.subError===Bv.CLIENT_MISMATCH_ERROR;if(a||c)return Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const r=Ai(this.cacheManager.getRefreshToken.bind(this.cacheManager),x.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,t,void 0,this.performanceClient,e.correlationId);if(!r)throw tf(Dl);if(r.expiresOn&&Xh(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||N2))throw tf(um);const o={...e,refreshToken:r.secret,authenticationScheme:e.authenticationScheme||Ge.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Bn.HOME_ACCOUNT_ID}};try{return await Q(this.acquireToken.bind(this),x.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(o)}catch(c){if(c instanceof Er&&c.subError===du){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const d=ha(r);this.cacheManager.removeRefreshToken(d)}throw c}}async executeTokenRequest(e,t){var h,m;(h=this.performanceClient)==null||h.addQueueMeasurement(x.RefreshTokenClientExecuteTokenRequest,e.correlationId);const r=this.createTokenQueryParameters(e),o=De.appendQueryString(t.tokenEndpoint,r),a=await Q(this.createTokenRequestBody.bind(this),x.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),c=this.createTokenRequestHeaders(e.ccsCredential),d={clientId:((m=e.tokenBodyParameters)==null?void 0:m.clientId)||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return Q(this.executePostToTokenEndpoint.bind(this),x.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(o,a,c,d,e.correlationId,x.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,a,c;(o=this.performanceClient)==null||o.addQueueMeasurement(x.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const t=e.correlationId,r=new vs(t,this.performanceClient);if(r.addClientId(e.embeddedClientId||((a=e.tokenBodyParameters)==null?void 0:a[wi])||this.config.authOptions.clientId),e.redirectUri&&r.addRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,(c=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:c.defaultScopes),r.addGrantType(qE.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!Zh(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),r.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const d=this.config.clientCredentials.clientAssertion;r.addClientAssertion(await Fw(d.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(d.assertionType)}if(e.authenticationScheme===Ge.POP){const d=new ba(this.cryptoUtils,this.performanceClient);let h;e.popKid?h=this.cryptoUtils.encodeKid(e.popKid):h=(await Q(d.generateCnf.bind(d),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(h)}else if(e.authenticationScheme===Ge.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Xe(cu);if((!vr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Bn.HOME_ACCOUNT_ID:try{const d=fa(e.ccsCredential.credential);r.addCcsOid(d)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Bn.UPN:r.addCcsUpn(e.ccsCredential.credential);break}return e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),r.createQueryString()}}/*! @azure/msal-common v14.16.0 2024-11-05 */class R2 extends lm{constructor(e,t){super(e,t)}async acquireToken(e){var t;try{const[r,o]=await this.acquireCachedToken({...e,scopes:(t=e.scopes)!=null&&t.length?e.scopes:[...Pa]});return o===Mo.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new nf(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof iu&&r.errorCode===co)return new nf(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){var h;(h=this.performanceClient)==null||h.addQueueMeasurement(x.SilentFlowClientAcquireCachedToken,e.correlationId);let t=Mo.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!vr.isEmptyObj(e.claims))throw this.setCacheOutcome(Mo.FORCE_REFRESH_OR_CLAIMS,e.correlationId),Y(co);if(!e.account)throw Y(jf);const r=e.account.tenantId||y2(e.authority),o=this.cacheManager.getTokenKeys(),a=this.cacheManager.getAccessToken(e.account,e,o,r,this.performanceClient,e.correlationId);if(a){if(iV(a.cachedAt)||Xh(a.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Mo.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Y(co);a.refreshOn&&Xh(a.refreshOn,0)&&(t=Mo.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(Mo.NO_CACHED_ACCESS_TOKEN,e.correlationId),Y(co);const c=e.authority||this.authority.getPreferredCache(),d={account:this.cacheManager.readAccountFromCache(e.account),accessToken:a,idToken:this.cacheManager.getIdToken(e.account,o,r,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(c)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await Q(this.generateResultFromCacheRecord.bind(this),x.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(d,e),t]}setCacheOutcome(e,t){var r,o;(r=this.serverTelemetryManager)==null||r.setCacheOutcome(e),(o=this.performanceClient)==null||o.addFields({cacheOutcome:e},t),e!==Mo.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.SilentFlowClientGenerateResultFromCacheRecord,t.correlationId);let r;if(e.idToken&&(r=Si(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||t.maxAge===0){const a=r==null?void 0:r.auth_time;if(!a)throw Y(qf);fw(a,t.maxAge)}return Ti.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const O2={sendGetRequestAsync:()=>Promise.reject(Y(Ae)),sendPostRequestAsync:()=>Promise.reject(Y(Ae))};/*! @azure/msal-common v14.16.0 2024-11-05 */const ny=",",Hw="|";function P2(n){const{skus:e,libraryName:t,libraryVersion:r,extensionName:o,extensionVersion:a}=n,c=new Map([[0,[t,r]],[2,[o,a]]]);let d=[];if(e!=null&&e.length){if(d=e.split(ny),d.length<4)return e}else d=Array.from({length:4},()=>Hw);return c.forEach((h,m)=>{var g,v;h.length===2&&((g=h[0])!=null&&g.length)&&((v=h[1])!=null&&v.length)&&M2({skuArr:d,index:m,skuName:h[0],skuVersion:h[1]})}),d.join(ny)}function M2(n){const{skuArr:e,index:t,skuName:r,skuVersion:o}=n;t>=e.length||(e[t]=[r,o].join(Hw))}class Os{constructor(e,t){this.cacheOutcome=Mo.NOT_APPLICABLE,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||F.EMPTY_STRING,this.wrapperVer=e.wrapperVer||F.EMPTY_STRING,this.telemetryCacheKey=Wt.CACHE_KEY+tn.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Wt.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r!=null&&r.length&&t.push(`broker_error=${r}`);const o=t.join(Wt.VALUE_SEPARATOR),a=this.getRegionDiscoveryFields(),c=[e,a].join(Wt.VALUE_SEPARATOR);return[Wt.SCHEMA_VERSION,c,o].join(Wt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=Os.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(Wt.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(Wt.VALUE_SEPARATOR),a=e.errors.length,c=t<a?Wt.OVERFLOW_TRUE:Wt.OVERFLOW_FALSE,d=[a,c].join(Wt.VALUE_SEPARATOR);return[Wt.SCHEMA_VERSION,e.cacheHits,r,o,d].join(Wt.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=Wt.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof lt?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(Wt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),t=Os.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{const o={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}}static maxErrorsToSend(e){let t,r=0,o=0;const a=e.errors.length;for(t=0;t<a;t++){const c=e.failedRequests[2*t]||F.EMPTY_STRING,d=e.failedRequests[2*t+1]||F.EMPTY_STRING,h=e.errors[t]||F.EMPTY_STRING;if(o+=c.toString().length+d.toString().length+h.length+3,o<Wt.MAX_LAST_HEADER_BYTES)r+=1;else break}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||F.EMPTY_STRING),e.push(this.regionSource||F.EMPTY_STRING),e.push(this.regionOutcome||F.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)}static makeExtraSkuString(e){return P2(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const $w="missing_kid_error",Kw="missing_alg_error";/*! @azure/msal-common v14.16.0 2024-11-05 */const D2={[$w]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[Kw]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class hm extends lt{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,hm.prototype)}}function ry(n){return new hm(n,D2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class fm{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw ry($w);if(!e.alg)throw ry(Kw);const t=new fm({typ:e.typ||KF.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class oy{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class L2{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:v2.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new oy}}startPerformanceMeasurement(){return new oy}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const mm="pkce_not_created",rf="crypto_nonexistent",hu="empty_navigate_uri",Ww="hash_empty_error",gm="no_state_in_hash",zw="hash_does_not_contain_known_properties",Gw="unable_to_parse_state",qw="state_interaction_type_mismatch",jw="interaction_in_progress",Yw="popup_window_error",Jw="empty_window_error",bi="user_cancelled",x2="monitor_popup_timeout",Qw="monitor_window_timeout",Xw="redirect_in_iframe",Zw="block_iframe_reload",eT="block_nested_popups",U2="iframe_closed_prematurely",fu="silent_logout_unsupported",tT="no_account_error",B2="silent_prompt_value_error",nT="no_token_request_cache_error",rT="unable_to_parse_token_request_cache_error",pm="no_cached_authority_error",F2="auth_request_not_set_error",V2="invalid_cache_type",mu="non_browser_environment",aa="database_not_open",Ll="no_network_connectivity",oT="post_request_failed",iT="get_request_failed",of="failed_to_parse_response",aT="unable_to_load_token",_m="crypto_key_not_found",sT="auth_code_required",cT="auth_code_or_nativeAccountId_required",lT="spa_code_and_nativeAccountId_present",vm="database_unavailable",uT="unable_to_acquire_token_from_native_platform",dT="native_handshake_timeout",hT="native_extension_not_installed",Ks="native_connection_not_established",fT="uninitialized_public_client_application",mT="native_prompt_not_supported",gT="invalid_base64_string",pT="invalid_pop_token_request",_T="failed_to_build_headers",vT="failed_to_parse_headers";/*! @azure/msal-browser v3.28.1 2025-01-14 */const io="For more visit: aka.ms/msaljs/browser-errors",H2={[mm]:"The PKCE code challenge and verifier could not be generated.",[rf]:"The crypto object or function is not available.",[hu]:"Navigation URI is empty. Please check stack trace for more info.",[Ww]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${io}`,[gm]:"Hash does not contain state. Please verify that the request originated from msal.",[zw]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${io}`,[Gw]:"Unable to parse state. Please verify that the request originated from msal.",[qw]:"Hash contains state but the interaction type does not match the caller.",[jw]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${io}`,[Yw]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Jw]:"window.open returned null or undefined window object.",[bi]:"User cancelled the flow.",[x2]:`Token acquisition in popup failed due to timeout. ${io}`,[Qw]:`Token acquisition in iframe failed due to timeout. ${io}`,[Xw]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[Zw]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${io}`,[eT]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[U2]:"The iframe being monitored was closed prematurely.",[fu]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[tT]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[B2]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[nT]:"No token request found in cache.",[rT]:"The cached token request could not be parsed.",[pm]:"No cached authority found.",[F2]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[V2]:"Invalid cache type",[mu]:"Login and token requests are not supported in non-browser environments.",[aa]:"Database is not open!",[Ll]:"No network connectivity. Check your internet connection.",[oT]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[iT]:"Network request failed. Please check the network trace to determine root cause.",[of]:"Failed to parse network response. Check network trace.",[aT]:"Error loading token to cache.",[_m]:"Cryptographic Key or Keypair not found in browser storage.",[sT]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[cT]:"An authorization code or nativeAccountId must be provided to this flow.",[lT]:"Request cannot contain both spa code and native account id.",[vm]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[uT]:`Unable to acquire token from native platform. ${io}`,[dT]:"Timed out while attempting to establish connection to browser extension",[hT]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[Ks]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${io}`,[fT]:`You must call and await the initialize function before attempting to call any other MSAL API. ${io}`,[mT]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[gT]:"Invalid base64 encoded string.",[pT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[_T]:"Failed to build request headers object.",[vT]:"Failed to parse response headers"};class Ws extends lt{constructor(e,t){super(e,H2[e],t),Object.setPrototypeOf(this,Ws.prototype),this.name="BrowserAuthError"}}function ie(n,e){return new Ws(n,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Dn={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ma={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},gi={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},vn={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},iy={GET:"GET",POST:"POST"},Ke={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},Po={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},qc={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},ot={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var le;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(le||(le={}));const ay={scopes:Pa},yT="jwk",af="msal.db",$2=1,K2=`${af}.keys`,Pn={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},W2=[Pn.Default,Pn.Skip,Pn.RefreshTokenAndNetwork],z2="msal.browser.log.level",G2="msal.browser.log.pii";/*! @azure/msal-browser v3.28.1 2025-01-14 */function jc(n){return encodeURIComponent(ym(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function gu(n){return CT(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ym(n){return CT(new TextEncoder().encode(n))}function CT(n){const e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const q2="RSASSA-PKCS1-v1_5",ET="SHA-256",j2=2048,Y2=new Uint8Array([1,0,1]),sy="0123456789abcdef",cy=new Uint32Array(1),J2="crypto_subtle_undefined",Cm={name:q2,hash:ET,modulusLength:j2,publicExponent:Y2};function Q2(n){if(!window)throw ie(mu);if(!window.crypto)throw ie(rf);if(!n&&!window.crypto.subtle)throw ie(rf,J2)}async function wT(n,e,t){e==null||e.addQueueMeasurement(x.Sha256Digest,t);const o=new TextEncoder().encode(n);return window.crypto.subtle.digest(ET,o)}function X2(n){return window.crypto.getRandomValues(n)}function sh(){return window.crypto.getRandomValues(cy),cy[0]}function go(){const n=Date.now(),e=sh()*1024+(sh()&1023),t=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,a=sh();t[0]=n/2**40,t[1]=n/2**32,t[2]=n/2**24,t[3]=n/2**16,t[4]=n/2**8,t[5]=n,t[6]=112|r>>>8,t[7]=r,t[8]=128|o>>>24,t[9]=o>>>16,t[10]=o>>>8,t[11]=o,t[12]=a>>>24,t[13]=a>>>16,t[14]=a>>>8,t[15]=a;let c="";for(let d=0;d<t.length;d++)c+=sy.charAt(t[d]>>>4),c+=sy.charAt(t[d]&15),(d===3||d===5||d===7||d===9)&&(c+="-");return c}async function Z2(n,e){return window.crypto.subtle.generateKey(Cm,n,e)}async function ch(n){return window.crypto.subtle.exportKey(yT,n)}async function eH(n,e,t){return window.crypto.subtle.importKey(yT,n,Cm,e,t)}async function tH(n,e){return window.crypto.subtle.sign(Cm,n,e)}async function TT(n){const e=await wT(n),t=new Uint8Array(e);return gu(t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Ps="storage_not_supported",sf="stubbed_public_client_application_called",xl="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.28.1 2025-01-14 */const gl={[Ps]:"Given storage configuration option was not supported.",[sf]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[xl]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};gl[Ps],gl[sf],gl[xl];class Em extends lt{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Em.prototype)}}function wm(n){return new Em(n,gl[n])}/*! @azure/msal-browser v3.28.1 2025-01-14 */function nH(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function rH(n){const e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Tm(){return window.parent!==window}function oH(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Dn.POPUP_NAME_PREFIX}.`)===0}function lo(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function iH(){const e=new De(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function aH(){if(De.hashContainsKnownProperties(window.location.hash)&&Tm())throw ie(Zw)}function sH(n){if(Tm()&&!n)throw ie(Xw)}function cH(){if(oH())throw ie(eT)}function bT(){if(typeof window>"u")throw ie(mu)}function IT(n){if(!n)throw ie(fT)}function bm(n){bT(),aH(),cH(),IT(n)}function ly(n,e){if(bm(n),sH(e.system.allowRedirectInIframe),e.cache.cacheLocation===vn.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw wm(xl)}function ST(n){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(n).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function lH(){return go()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ul{navigateInternal(e,t){return Ul.defaultNavigateWindow(e,t)}navigateExternal(e,t){return Ul.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(r=>{setTimeout(()=>{r(!0)},t.timeout)})}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class uH{async sendGetRequestAsync(e,t){let r,o={},a=0;const c=uy(t);try{r=await fetch(e,{method:iy.GET,headers:c})}catch{throw ie(window.navigator.onLine?iT:Ll)}o=dy(r.headers);try{return a=r.status,{headers:o,body:await r.json(),status:a}}catch{throw Zv(ie(of),a,o)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=uy(t);let a,c=0,d={};try{a=await fetch(e,{method:iy.POST,headers:o,body:r})}catch{throw ie(window.navigator.onLine?oT:Ll)}d=dy(a.headers);try{return c=a.status,{headers:d,body:await a.json(),status:c}}catch{throw Zv(ie(of),c,d)}}}function uy(n){try{const e=new Headers;if(!(n&&n.headers))return e;const t=n.headers;return Object.entries(t).forEach(([r,o])=>{e.append(r,o)}),e}catch{throw ie(_T)}}function dy(n){try{const e={};return n.forEach((t,r)=>{e[r]=t}),e}catch{throw ie(vT)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const dH=6e4,cf=1e4,hH=3e4,fH=2e3;function mH({auth:n,cache:e,system:t,telemetry:r},o){const a={clientId:F.EMPTY_STRING,authority:`${F.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:F.EMPTY_STRING,authorityMetadata:F.EMPTY_STRING,redirectUri:typeof window<"u"?lo():"",postLogoutRedirectUri:F.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:fo.AAD,OIDCOptions:{serverResponseType:$s.FRAGMENT,defaultScopes:[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Xf.None,tenant:F.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},c={cacheLocation:vn.SessionStorage,temporaryCacheLocation:vn.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===vn.LocalStorage),claimsBasedCachingEnabled:!1},d={loggerCallback:()=>{},logLevel:tt.Info,piiLoggingEnabled:!1},m={...{...Dw,loggerOptions:d,networkClient:o?new uH:O2,navigationClient:new Ul,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||dH,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||cf,navigateFrameWait:0,redirectNavigationTimeout:hH,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||fH,pollIntervalMilliseconds:Dn.DEFAULT_POLL_INTERVAL_MS},...t,loggerOptions:(t==null?void 0:t.loggerOptions)||d},g={application:{appName:F.EMPTY_STRING,appVersion:F.EMPTY_STRING},client:new L2};if((n==null?void 0:n.protocolMode)!==fo.OIDC&&(n!=null&&n.OIDCOptions)&&new Ko(m.loggerOptions).warning(JSON.stringify(Xe(Sw))),n!=null&&n.protocolMode&&n.protocolMode!==fo.AAD&&(m!=null&&m.allowNativeBroker))throw Xe(Aw);return{auth:{...a,...n,OIDCOptions:{...a.OIDCOptions,...n==null?void 0:n.OIDCOptions}},cache:{...c,...e},system:m,telemetry:{...g,...r}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const gH="@azure/msal-browser",pu="3.28.1";/*! @azure/msal-browser v3.28.1 2025-01-14 */class Im{static loggerCallback(e,t){switch(e){case tt.Error:console.error(t);return;case tt.Info:console.info(t);return;case tt.Verbose:console.debug(t);return;case tt.Warning:console.warn(t);return;default:console.log(t);return}}constructor(e){var h;this.browserEnvironment=typeof window<"u",this.config=mH(e,this.browserEnvironment);let t;try{t=window[vn.SessionStorage]}catch{}const r=t==null?void 0:t.getItem(z2),o=(h=t==null?void 0:t.getItem(G2))==null?void 0:h.toLowerCase(),a=o==="true"?!0:o==="false"?!1:void 0,c={...this.config.system.loggerOptions},d=r&&Object.keys(tt).includes(r)?tt[r]:void 0;d&&(c.loggerCallback=Im.loggerCallback,c.logLevel=d),a!==void 0&&(c.piiLoggingEnabled=a),this.logger=new Ko(c,gH,pu),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ii extends Im{getModuleName(){return Ii.MODULE_NAME}getId(){return Ii.ID}async initialize(){return this.available=typeof window<"u",this.available}}Ii.MODULE_NAME="";Ii.ID="StandardOperatingContext";/*! @azure/msal-browser v3.28.1 2025-01-14 */function Kr(n){return new TextDecoder().decode(pH(n))}function pH(n){let e=n.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw ie(gT)}const t=atob(e);return Uint8Array.from(t,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class _H{constructor(){this.dbName=af,this.version=$2,this.tableName=K2,this.dbOpen=!1}async open(){return new Promise((e,t)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",o=>{o.target.result.createObjectStore(this.tableName)}),r.addEventListener("success",o=>{const a=o;this.db=a.target.result,this.dbOpen=!0,e()}),r.addEventListener("error",()=>t(ie(vm)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);c.addEventListener("success",d=>{const h=d;this.closeConnection(),t(h.target.result)}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async setItem(e,t){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(ie(aa));const d=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);d.addEventListener("success",()=>{this.closeConnection(),r()}),d.addEventListener("error",h=>{this.closeConnection(),o(h)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);c.addEventListener("success",()=>{this.closeConnection(),t()}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(ie(aa));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();a.addEventListener("success",c=>{const d=c;this.closeConnection(),e(d.target.result)}),a.addEventListener("error",c=>{this.closeConnection(),t(c)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);c.addEventListener("success",d=>{const h=d;this.closeConnection(),t(h.target.result===1)}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{const r=window.indexedDB.deleteDatabase(af),o=setTimeout(()=>t(!1),200);r.addEventListener("success",()=>(clearTimeout(o),e(!0))),r.addEventListener("blocked",()=>(clearTimeout(o),e(!0))),r.addEventListener("error",()=>(clearTimeout(o),t(!1)))})}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class lf{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,t){this.cache.set(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((t,r)=>{e.push(r)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class vH{constructor(e){this.inMemoryCache=new lf,this.indexedDBCache=new _H,this.logger=e}handleDatabaseAccessError(e){if(e instanceof Ws&&e.errorCode===vm)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(r){this.handleDatabaseAccessError(r)}return t}async setItem(e,t){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(r){this.handleDatabaseAccessError(r)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(t){this.handleDatabaseAccessError(t)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t)}return e}async containsKey(e){const t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(r){this.handleDatabaseAccessError(r)}return t}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ia{constructor(e,t,r){this.logger=e,Q2(r??!1),this.cache=new vH(this.logger),this.performanceClient=t}createNewGuid(){return go()}base64Encode(e){return ym(e)}base64Decode(e){return Kr(e)}base64UrlEncode(e){return jc(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var g;const t=(g=this.performanceClient)==null?void 0:g.startMeasurement(x.CryptoOptsGetPublicKeyThumbprint,e.correlationId),r=await Z2(Ia.EXTRACTABLE,Ia.POP_KEY_USAGES),o=await ch(r.publicKey),a={e:o.e,kty:o.kty,n:o.n},c=hy(a),d=await this.hashString(c),h=await ch(r.privateKey),m=await eH(h,!1,["sign"]);return await this.cache.setItem(d,{privateKey:m,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),t&&t.end({success:!0}),d}async removeTokenBindingKey(e){return await this.cache.removeItem(e),!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,t,r,o){var D;const a=(D=this.performanceClient)==null?void 0:D.startMeasurement(x.CryptoOptsSignJwt,o),c=await this.cache.getItem(t);if(!c)throw ie(_m);const d=await ch(c.publicKey),h=hy(d),m=jc(JSON.stringify({kid:t})),g=fm.getShrHeaderString({...r==null?void 0:r.header,alg:d.alg,kid:m}),v=jc(g);e.cnf={jwk:JSON.parse(h)};const p=jc(JSON.stringify(e)),w=`${v}.${p}`,T=new TextEncoder().encode(w),k=await tH(c.privateKey,T),I=gu(new Uint8Array(k)),N=`${w}.${I}`;return a&&a.end({success:!0}),N}async hashString(e){return TT(e)}}Ia.POP_KEY_USAGES=["sign","verify"];Ia.EXTRACTABLE=!0;function hy(n){return JSON.stringify(n,Object.keys(n).sort())}/*! @azure/msal-browser v3.28.1 2025-01-14 */class yH{constructor(){if(!window.localStorage)throw wm(Ps)}getItem(e){return window.localStorage.getItem(e)}setItem(e,t){window.localStorage.setItem(e,t)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class CH{constructor(){if(!window.sessionStorage)throw wm(Ps)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function AT(n,e){if(!e)return null;try{return yr.parseRequestState(n,e).libraryState.meta}catch{throw Y(wa)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const EH=24*60*60*1e3;class wH{getItem(e){const t=`${encodeURIComponent(e)}`,r=document.cookie.split(";");for(let o=0;o<r.length;o++){const a=r[o],[c,...d]=decodeURIComponent(a).trim().split("="),h=d.join("=");if(c===t)return h}return""}setItem(e,t,r,o=!0){let a=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(r){const c=TH(r);a+=`expires=${c};`}o&&(a+="Secure;"),document.cookie=a}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach(r=>{const o=decodeURIComponent(r).trim().split("=");t.push(o[0])}),t}containsKey(e){return this.getKeys().includes(e)}}function TH(n){const e=new Date;return new Date(e.getTime()+n*EH).toUTCString()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class uf extends Ta{constructor(e,t,r,o,a,c){super(e,r,o,a),this.cacheConfig=t,this.logger=o,this.internalStorage=new lf,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new wH,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=c}setupBrowserStorage(e){try{switch(e){case vn.LocalStorage:return new yH;case vn.SessionStorage:return new CH;case vn.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=vn.MemoryStorage,new lf}migrateCacheEntries(){const e=`${F.CACHE_PREFIX}.${Lt.ID_TOKEN}`,t=`${F.CACHE_PREFIX}.${Lt.CLIENT_INFO}`,r=`${F.CACHE_PREFIX}.${Lt.ERROR}`,o=`${F.CACHE_PREFIX}.${Lt.ERROR_DESC}`,a=this.browserStorage.getItem(e),c=this.browserStorage.getItem(t),d=this.browserStorage.getItem(r),h=this.browserStorage.getItem(o),m=[a,c,d,h];[Lt.ID_TOKEN,Lt.CLIENT_INFO,Lt.ERROR,Lt.ERROR_DESC].forEach((v,p)=>{const w=m[p];w&&this.setTemporaryCache(v,w,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(Po.ACCOUNT_KEYS),t=this.getItem(`${Po.TOKEN_KEYS}.${this.clientId}`);if(e&&t){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(o=>{if(this.isCredentialKey(o)){const a=this.getItem(o);if(a){const c=this.validateAndParseJson(a);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case ge.ID_TOKEN:if(Kv(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${o}`);break;case ge.ACCESS_TOKEN:case ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:if($v(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${o}`);break;case ge.REFRESH_TOKEN:if(Wv(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${o}`);break}}}if(this.isAccountKey(o)){const a=this.getItem(o);if(a){const c=this.validateAndParseJson(a);c&&Pt.isAccountEntity(c)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${o} found, saving key to account key map`),this.addAccountKeyToMap(o))}}})}validateAndParseJson(e){try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,t){this.browserStorage.setItem(e,t)}getAccount(e,t){this.logger.trace("BrowserCacheManager.getAccount called");const r=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,r,t)}getCachedAccountEntity(e){const t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;const r=this.validateAndParseJson(t);return!r||!Pt.isAccountEntity(r)?(this.removeAccountKeyFromMap(e),null):Ta.toObject(new Pt,r)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(Po.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const t=this.getAccountKeys();t.indexOf(e)===-1?(t.push(e),this.setItem(Po.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const t=this.getAccountKeys(),r=t.indexOf(e);r>-1?(t.splice(r,1),this.setItem(Po.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,ge.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,ge.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,ge.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${Po.TOKEN_KEYS}.${this.clientId}`);if(e){const t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");const r=this.getTokenKeys();switch(t){case ge.ID_TOKEN:r.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),r.idToken.push(e));break;case ge.ACCESS_TOKEN:r.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),r.accessToken.push(e));break;case ge.REFRESH_TOKEN:r.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),r.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Y(Qh)}this.setItem(`${Po.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(r))}removeTokenKey(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");const r=this.getTokenKeys();switch(t){case ge.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const o=r.idToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),r.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const a=r.accessToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),r.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const c=r.refreshToken.indexOf(e);c>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),r.refreshToken.splice(c,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Y(Qh)}this.setItem(`${Po.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(r))}getIdTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!Kv(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),r)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.ID_TOKEN)}getAccessTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!$v(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),r)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.ACCESS_TOKEN)}getRefreshTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!Wv(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),r)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.REFRESH_TOKEN)}getAppMetadata(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!mV(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),r)}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const t=fV(e);this.setItem(t,JSON.stringify(e))}getServerTelemetry(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!dV(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),r)}setServerTelemetry(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))}getAuthorityMetadata(e){const t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return r&&gV(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(t=>this.isAuthorityMetadata(t))}setWrapperMetadata(e,t){this.internalStorage.setItem(qc.WRAPPER_SKU,e),this.internalStorage.setItem(qc.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(qc.WRAPPER_SKU)||F.EMPTY_STRING,t=this.internalStorage.getItem(qc.WRAPPER_VER)||F.EMPTY_STRING;return[e,t]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(){const e=this.generateCacheKey(Lt.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const o=this.generateCacheKey(Lt.ACTIVE_ACCOUNT),a=this.getItem(o);if(!a)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const c=this.getAccountInfoFilteredBy({localAccountId:a});return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(c),c):null}const r=this.validateAndParseJson(t);return r?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:r.homeAccountId,localAccountId:r.localAccountId,tenantId:r.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const t=this.generateCacheKey(Lt.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(Lt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(t,JSON.stringify(o)),this.browserStorage.setItem(r,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(r)}getThrottlingCache(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!hV(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),r)}setThrottlingCache(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))}getTemporaryCache(e,t){const r=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const a=this.cookieStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),a}const o=this.temporaryCacheStorage.getItem(r);if(!o){if(this.cacheConfig.cacheLocation===vn.LocalStorage){const a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o}setTemporaryCache(e,t,r){const o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(o,t,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.temporaryCacheStorage.getKeys().forEach(e=>{(e.indexOf(F.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(e)}),this.browserStorage.getKeys().forEach(e=>{(e.indexOf(F.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,t){e.addQueueMeasurement(x.ClearTokensAndKeysWithClaims,t);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(a=>{const c=this.getAccessTokenCredential(a);c!=null&&c.requestedClaimsHash&&a.includes(c.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(a))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):vr.startsWith(e,F.CACHE_PREFIX)||vr.startsWith(e,Lt.ADAL_ID_TOKEN)?e:`${F.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.REQUEST_STATE}.${t}`)}getCachedAuthority(e){const t=this.generateStateKey(e),r=this.getTemporaryCache(t);if(!r)return null;const o=this.generateAuthorityKey(r);return this.getTemporaryCache(o)}updateCacheEntries(e,t,r,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const c=this.generateStateKey(e);this.setTemporaryCache(c,e,!1);const d=this.generateNonceKey(e);this.setTemporaryCache(d,t,!1);const h=this.generateAuthorityKey(e);if(this.setTemporaryCache(h,r,!1),a){const m={credential:a.homeAccountId,type:Bn.HOME_ACCOUNT_ID};this.setTemporaryCache(Ke.CCS_CREDENTIAL,JSON.stringify(m),!0)}else if(o){const m={credential:o,type:Bn.UPN};this.setTemporaryCache(Ke.CCS_CREDENTIAL,JSON.stringify(m),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{t.indexOf(e)!==-1&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(Ke.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(Ke.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(Ke.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(Ke.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(Ke.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const t=this.generateStateKey(e),r=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r||F.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(t.indexOf(Ke.REQUEST_STATE)===-1)return;const r=this.temporaryCacheStorage.getItem(t);if(!r)return;const o=AT(this.cryptoImpl,r);o&&o.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const t=ym(JSON.stringify(e));this.setTemporaryCache(Ke.REQUEST_PARAMS,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const t=this.getTemporaryCache(Ke.REQUEST_PARAMS,!0);if(!t)throw ie(nT);let r;try{r=JSON.parse(Kr(t))}catch(o){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${o}`),ie(rT)}if(this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),!r.authority){const o=this.generateAuthorityKey(e),a=this.getTemporaryCache(o);if(!a)throw ie(pm);r.authority=a}return r}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ke.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${F.CACHE_PREFIX}.${Ke.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const t=`${F.CACHE_PREFIX}.${Ke.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw ie(jw);this.setTemporaryCache(t,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(t)}getLegacyLoginHint(){const e=this.getTemporaryCache(Lt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Lt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const t=this.getTemporaryCache(Lt.ID_TOKEN,!0);t&&(this.browserStorage.removeItem(this.generateCacheKey(Lt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const r=t||e;if(r){const o=Si(r,Kr);if(o.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.preferred_username;if(o.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,t){const r=ha(t);if(e!==r){const o=this.getItem(e);if(o)return this.browserStorage.removeItem(e),this.setItem(r,o),this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`),r;this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}async hydrateCache(e,t){var d,h,m;const r=au((d=e.account)==null?void 0:d.homeAccountId,(h=e.account)==null?void 0:h.environment,e.idToken,this.clientId,e.tenantId);let o;t.claims&&(o=await this.cryptoImpl.hashString(t.claims));const a=su((m=e.account)==null?void 0:m.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,Kr,void 0,e.tokenType,void 0,t.sshKid,t.claims,o),c={idToken:r,accessToken:a};return this.saveCacheRecord(c)}async saveCacheRecord(e,t,r){try{await super.saveCacheRecord(e,t,r)}catch(o){if(o instanceof pa&&this.performanceClient&&r)try{const a=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:a.refreshToken.length,cacheIdCount:a.idToken.length,cacheAtCount:a.accessToken.length},r)}catch{}throw o}}}const bH=(n,e)=>{const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new uf(n,t,Nl,e)};/*! @azure/msal-browser v3.28.1 2025-01-14 */function IH(n,e,t,r){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(r):[]}function SH(n,e,t){if(e.trace("getAccount called"),Object.keys(n).length===0)return e.warning("getAccount: No accountFilter provided"),null;const r=t.getAccountInfoFilteredBy(n);return r?(e.verbose("getAccount: Account matching provided filter found, returning"),r):(e.verbose("getAccount: No matching account found, returning null"),null)}function AH(n,e,t){if(e.trace("getAccountByUsername called"),!n)return e.warning("getAccountByUsername: No username provided"),null;const r=t.getAccountInfoFilteredBy({username:n});return r?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${n}`),r):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function kH(n,e,t){if(e.trace("getAccountByHomeId called"),!n)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=t.getAccountInfoFilteredBy({homeAccountId:n});return r?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${n}`),r):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function NH(n,e,t){if(e.trace("getAccountByLocalId called"),!n)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const r=t.getAccountInfoFilteredBy({localAccountId:n});return r?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${n}`),r):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function RH(n,e){e.setActiveAccount(n)}function OH(n){return n.getActiveAccount()}/*! @azure/msal-browser v3.28.1 2025-01-14 */const me={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.28.1 2025-01-14 */class PH{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Ko({})}addEventCallback(e,t,r){if(typeof window<"u"){const o=r||lH();return this.eventCallbacks.has(o)?(this.logger.error(`Event callback with id: ${o} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(o,[e,t||[]]),this.logger.verbose(`Event callback registered with id: ${o}`),o)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,t,r,o){if(typeof window<"u"){const a={eventType:e,interactionType:t||null,payload:r||null,error:o||null,timestamp:Date.now()};this.eventCallbacks.forEach(([c,d],h)=>{(d.length===0||d.includes(e))&&(this.logger.verbose(`Emitting event to callback ${h}: ${e}`),c.apply(null,[a]))})}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class kT{constructor(e,t,r,o,a,c,d,h,m){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=a,this.navigationClient=c,this.nativeMessageHandler=h,this.correlationId=m||go(),this.logger=o.clone(Dn.MSAL_SKU,pu,this.correlationId),this.performanceClient=d}async clearCacheOnLogout(e){if(e){Pt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(Pt.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const t=e||this.config.auth.redirectUri;return De.getAbsoluteUrl(t,lo())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");const r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Os(r,this.browserStorage)}async getDiscoveredAuthority(e){const{account:t}=e,r=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(x.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},a=e.requestAuthority||this.config.auth.authority,c=r!=null&&r.length?r==="true":this.config.auth.instanceAware,d=t&&c?this.config.auth.authority.replace(De.getDomainFromUrl(a),t.environment):a,h=Xt.generateAuthority(d,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),m=await Q(Uw,x.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(h,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient);if(t&&!m.isAlias(t.environment))throw Xe(kw);return m}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const MH=32;async function DH(n,e,t){n.addQueueMeasurement(x.GeneratePkceCodes,t);const r=Ai(LH,x.GenerateCodeVerifier,e,n,t)(n,e,t),o=await Q(xH,x.GenerateCodeChallengeFromVerifier,e,n,t)(r,n,e,t);return{verifier:r,challenge:o}}function LH(n,e,t){try{const r=new Uint8Array(MH);return Ai(X2,x.GetRandomValues,e,n,t)(r),gu(r)}catch{throw ie(mm)}}async function xH(n,e,t,r){e.addQueueMeasurement(x.GenerateCodeChallengeFromVerifier,r);try{const o=await Q(wT,x.Sha256Digest,t,e,r)(n,e,r);return gu(new Uint8Array(o))}catch{throw ie(mm)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function Sm(n,e,t,r){t.addQueueMeasurement(x.InitializeBaseRequest,n.correlationId);const o=n.authority||e.auth.authority,a=[...n&&n.scopes||[]],c={...n,correlationId:n.correlationId,authority:o,scopes:a};if(!c.authenticationScheme)c.authenticationScheme=Ge.BEARER,r.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(c.authenticationScheme===Ge.SSH){if(!n.sshJwk)throw Xe(cu);if(!n.sshKid)throw Xe(Iw)}r.verbose(`Authentication Scheme set to "${c.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!vr.isEmptyObj(n.claims)&&(c.requestedClaimsHash=await TT(n.claims)),c}async function UH(n,e,t,r,o){r.addQueueMeasurement(x.InitializeSilentRequest,n.correlationId);const a=await Q(Sm,x.InitializeBaseRequest,o,r,n.correlationId)(n,t,r,o);return{...n,...a,account:e,forceRefresh:n.forceRefresh||!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ma extends kT{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await Q(DH,x.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),r={...e,redirectUri:e.redirectUri,code:F.EMPTY_STRING,codeVerifier:t.verifier};return e.codeChallenge=t.challenge,e.codeChallengeMethod=F.S256_CODE_CHALLENGE_METHOD,r}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const t={correlationId:this.correlationId||go(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const r=this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=r)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(e.postLogoutRedirectUri,lo())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,lo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(lo(),lo())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const t=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new Vw(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:a,account:c}=e;this.performanceClient.addQueueMeasurement(x.StandardInteractionClientGetClientConfiguration,this.correlationId);const d=await Q(this.getDiscoveredAuthority.bind(this),x.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:a,account:c}),h=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:d,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:h.loggerCallback,piiLoggingEnabled:h.piiLoggingEnabled,logLevel:h.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Dn.MSAL_SKU,version:pu,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,t){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const r=this.getRedirectUri(e.redirectUri),o={interactionType:t},a=yr.setRequestState(this.browserCrypto,e&&e.state||F.EMPTY_STRING,o),d={...await Q(Sm,x.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:r,state:a,nonce:e.nonce||go(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return d;const h=e.account||this.browserStorage.getActiveAccount();if(h&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${h.homeAccountId}`,this.correlationId),d.account=h),!d.loginHint&&!h){const m=this.browserStorage.getLegacyLoginHint();m&&(d.loginHint=m)}return d}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const BH="ContentError",NT="user_switch";/*! @azure/msal-browser v3.28.1 2025-01-14 */const FH="USER_INTERACTION_REQUIRED",VH="USER_CANCEL",HH="NO_NETWORK",$H="PERSISTENT_ERROR",KH="DISABLED",WH="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.28.1 2025-01-14 */const zH=-2147186943,GH={[NT]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Br extends lt{constructor(e,t,r){super(e,t),Object.setPrototypeOf(this,Br.prototype),this.name="NativeAuthError",this.ext=r}}function sa(n){if(n.ext&&n.ext.status&&(n.ext.status===$H||n.ext.status===KH)||n.ext&&n.ext.error&&n.ext.error===zH)return!0;switch(n.errorCode){case BH:return!0;default:return!1}}function df(n,e,t){if(t&&t.status)switch(t.status){case WH:return tf(Bw);case FH:return new Er(n,e);case VH:return ie(bi);case HH:return ie(Ll)}return new Br(n,GH[n]||e,t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class RT extends Ma{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentCacheClientAcquireToken,e.correlationId);const t=this.initializeServerTelemetryManager(ot.acquireTokenSilent_silentFlow),r=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),o=new R2(r,this.performanceClient);this.logger.verbose("Silent auth client created");try{const c=(await Q(o.acquireCachedToken.bind(o),x.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),c}catch(a){throw a instanceof Ws&&a.errorCode===_m&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),a}}logout(e){this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t==null?void 0:t.account)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class _a extends kT{constructor(e,t,r,o,a,c,d,h,m,g,v,p){var C;super(e,t,r,o,a,c,h,m,p),this.apiId=d,this.accountId=g,this.nativeMessageHandler=m,this.nativeStorageManager=v,this.silentCacheClient=new RT(e,this.nativeStorageManager,r,o,a,c,h,m,p),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const w=this.nativeMessageHandler.getExtensionId()===ma.PREFERRED_EXTENSION_ID?"chrome":(C=this.nativeMessageHandler.getExtensionId())!=null&&C.length?"unknown":void 0;this.skus=Os.makeExtraSkuString({libraryName:Dn.MSAL_SKU,libraryVersion:pu,extensionName:w,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[f2]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(x.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const t=this.performanceClient.startMeasurement(x.NativeInteractionClientAcquireToken,e.correlationId),r=zr();try{const o=await this.initializeNativeRequest(e);try{const m=await this.acquireTokensFromCache(this.accountId,o);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),m}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...a}=o,c={method:gi.GetToken,request:a},d=await this.nativeMessageHandler.sendMessage(c),h=this.validateNativeResponse(d);return await this.handleNativeResponse(h,o,r).then(m=>(t.end({success:!0,isNativeBroker:!0,requestId:m.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),m)).catch(m=>{throw t.end({success:!1,errorCode:m.errorCode,subErrorCode:m.subError,isNativeBroker:!0}),m})}catch(o){throw o instanceof Br&&this.serverTelemetryManager.setNativeBrokerErrorCode(o.errorCode),o}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:vt.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Y(Yh);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!r)throw Y(Yh);try{const o=this.createSilentCacheRequest(t,r),a=await this.silentCacheClient.acquireToken(o),c={...r,idTokenClaims:a==null?void 0:a.idTokenClaims,idToken:a==null?void 0:a.idToken};return{...a,account:c}}catch(o){throw o}}async acquireTokenRedirect(e,t){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...r}=e;delete r.onRedirectNavigate;const o=await this.initializeNativeRequest(r),a={method:gi.GetToken,request:o};try{const h=await this.nativeMessageHandler.sendMessage(a);this.validateNativeResponse(h)}catch(h){if(h instanceof Br&&(this.serverTelemetryManager.setNativeBrokerErrorCode(h.errorCode),sa(h)))throw h}this.browserStorage.setTemporaryCache(Ke.NATIVE_REQUEST,JSON.stringify(o),!0);const c={apiId:ot.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),await this.navigationClient.navigateExternal(d,c)}async handleRedirectPromise(e,t){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const r=this.browserStorage.getCachedNativeRequest();if(!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&(e==null||e.addFields({errorCode:"no_cached_request"},t)),null;const{prompt:o,...a}=r;o&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ke.NATIVE_REQUEST));const c={method:gi.GetToken,request:a},d=zr();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const h=await this.nativeMessageHandler.sendMessage(c);this.validateNativeResponse(h);const m=this.handleNativeResponse(h,a,d);this.browserStorage.setInteractionInProgress(!1);const g=await m;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),g}catch(h){throw this.browserStorage.setInteractionInProgress(!1),h}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,r){var g;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const o=Si(e.id_token,Kr),a=this.createHomeAccountIdentifier(e,o),c=(g=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId}))==null?void 0:g.homeAccountId;if(a!==c&&e.account.id!==t.accountId)throw df(NT);const d=await this.getDiscoveredAuthority({requestAuthority:t.authority}),h=dm(this.browserStorage,d,a,Kr,o,e.client_info,void 0,o.tid,void 0,e.account.id,this.logger),m=await this.generateAuthenticationResult(e,t,o,h,d.canonicalAuthority,r);return this.cacheAccount(h),this.cacheNativeTokens(e,t,a,o,e.access_token,m.tenantId,r),m}createHomeAccountIdentifier(e,t){return Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,mr.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?vt.fromString(e.scope):vt.fromString(t.scope)}async generatePopAccessToken(e,t){if(t.tokenType===Ge.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const r=new ba(this.browserCrypto),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Y(Jf);return r.signPopToken(e.access_token,t.keyId,o)}else return e.access_token}async generateAuthenticationResult(e,t,r,o,a,c){const d=this.addTelemetryFromNativeResponse(e),h=e.scope?vt.fromString(e.scope):vt.fromString(t.scope),m=e.account.properties||{},g=m.UID||r.oid||r.sub||F.EMPTY_STRING,v=m.TenantId||r.tid||F.EMPTY_STRING,p=im(o.getAccountInfo(),void 0,r,e.id_token);p.nativeAccountId!==e.account.id&&(p.nativeAccountId=e.account.id);const w=await this.generatePopAccessToken(e,t),C=t.tokenType===Ge.POP?Ge.POP:Ge.BEARER;return{authority:a,uniqueId:g,tenantId:v,scopes:h.asArray(),account:p,idToken:e.id_token,idTokenClaims:r,accessToken:w,fromCache:d?this.isResponseFromCache(d):!1,expiresOn:new Date(Number(c+e.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(t=>{this.logger.error(`Error occurred while removing account context from browser storage. ${t}`)})}cacheNativeTokens(e,t,r,o,a,c,d){const h=au(r,t.authority,e.id_token||"",t.clientId,o.tid||""),m=t.tokenType===Ge.POP?F.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,g=d+m,v=this.generateScopes(e,t),p=su(r,t.authority,a,t.clientId,o.tid||c,v.printScopes(),g,0,Kr,void 0,t.tokenType,void 0,t.keyId),w={idToken:h,accessToken:p};this.nativeStorageManager.saveCacheRecord(w,t.storeInCache)}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw jE(Wf,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const t=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:t,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const r=new De(t);r.validateAsUri();const{scopes:o,...a}=e,c=new vt(o||[]);c.appendScopes(Pa);const d=()=>{switch(this.apiId){case ot.ssoSilent:case ot.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Bt.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case Bt.NONE:case Bt.CONSENT:case Bt.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),ie(mT)}},h={...a,accountId:this.accountId,clientId:this.config.auth.clientId,authority:r.urlString,scope:c.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:d(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(h.signPopToken&&e.popKid)throw ie(pT);if(this.handleExtraBrokerParams(h),h.extraParameters=h.extraParameters||{},h.extraParameters.telemetry=ma.MATS_TELEMETRY,e.authenticationScheme===Ge.POP){const m={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},g=new ba(this.browserCrypto);let v;if(h.keyId)v=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:h.keyId})),h.signPopToken=!1;else{const p=await Q(g.generateCnf.bind(g),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(m,this.logger);v=p.reqCnfString,h.keyId=p.kid,h.signPopToken=!0}h.reqCnf=v}return this.addRequestSKUs(h),h}handleExtraBrokerParams(e){var a;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(cm)&&e.extraParameters.hasOwnProperty(ef)&&e.extraParameters.hasOwnProperty(wi);if(!e.embeddedClientId&&!t)return;let r="";const o=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[ef],r=e.extraParameters[wi]),e.extraParameters={child_client_id:r,child_redirect_uri:o},(a=this.performanceClient)==null||a.addFields({embeddedClientId:r,embeddedRedirectUri:o},e.correlationId)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Fr{constructor(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(x.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const t={channel:ma.CHANNEL_ID,extensionId:this.extensionId,responseId:go(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(t)}`),this.messageChannel.port1.postMessage(t),new Promise((r,o)=>{this.resolvers.set(t.responseId,{resolve:r,reject:o})})}static async createProvider(e,t,r){e.trace("NativeMessageHandler - createProvider called.");try{const o=new Fr(e,t,r,ma.PREFERRED_EXTENSION_ID);return await o.sendHandshakeRequest(),o}catch{const a=new Fr(e,t,r);return await a.sendHandshakeRequest(),a}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ma.CHANNEL_ID,extensionId:this.extensionId,responseId:go(),body:{method:gi.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=t=>{this.onChannelMessage(t)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,r)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(ie(dT)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const t=e.data;if(!(!t.channel||t.channel!==ma.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===gi.HandshakeRequest){const r=this.handshakeResolvers.get(t.responseId);if(!r){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);return}this.logger.verbose(t.extensionId?`Extension with id: ${t.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(ie(hT))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const t=e.data,r=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{const a=t.body.method;if(a===gi.Response){if(!r)return;const c=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(c)}`),c.status!=="Success")r.reject(df(c.code,c.description,c.ext));else if(c.result)c.result.code&&c.result.description?r.reject(df(c.result.code,c.result.description,c.result.ext)):r.resolve(c.result);else throw jE(Wf,"Event does not contain result.");this.resolvers.delete(t.responseId)}else if(a===gi.HandshakeResponse){if(!o){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${t.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${a}`),this.logger.errorPii(`Unable to parse ${e}`),r?r.reject(a):o&&o.reject(a)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,t,r,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case Ge.BEARER:case Ge.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Am{constructor(e,t,r,o,a){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=a}async handleCodeResponse(e,t){this.performanceClient.addQueueMeasurement(x.HandleCodeResponse,t.correlationId);let r;try{r=this.authModule.handleFragmentResponse(e,t.state)}catch(o){throw o instanceof Wo&&o.subError===bi?ie(bi):o}return Q(this.handleCodeResponseFromServer.bind(this),x.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)(r,t)}async handleCodeResponseFromServer(e,t,r=!0){if(this.performanceClient.addQueueMeasurement(x.HandleCodeResponseFromServer,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await Q(this.authModule.updateAuthority.bind(this.authModule),x.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId),r&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const a=this.createCcsCredentials(t);a&&(this.authCodeRequest.ccsCredential=a)}return await Q(this.authModule.acquireToken.bind(this.authModule),x.AuthClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:Bn.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:Bn.UPN}:null}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function OT(n,e,t){const r=Pl(n);if(!r)throw Rw(n)?(t.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),t.errorPii(`The ${e} detected is: ${n}`),ie(zw)):(t.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),ie(Ww));return r}function qH(n,e,t){if(!n.state)throw ie(gm);const r=AT(e,n.state);if(!r)throw ie(Gw);if(r.interactionType!==t)throw ie(qw)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class jH extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,d,m,g),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=h}acquireToken(e){try{const r={popupName:this.generatePopupName(e.scopes||Pa,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(e,r))}catch(t){return Promise.reject(t)}}logout(e){try{this.logger.verbose("logoutPopup called");const t=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},o=e&&e.authority,a=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,r,o,a)):(this.logger.verbose("asyncPopup set to false, opening popup"),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(t,r,o,a))}catch(t){return Promise.reject(t)}}async acquireTokenPopupAsync(e,t){var a;this.logger.verbose("acquireTokenPopupAsync called");const r=this.initializeServerTelemetryManager(ot.acquireTokenPopup),o=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,le.Popup);ST(o.authority);try{const c=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(o),d=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),h=Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let m;h&&(m=this.performanceClient.startMeasurement(x.FetchAccountIdWithNativeBroker,e.correlationId));const g=await d.getAuthCodeUrl({...o,nativeBroker:h}),v=new Am(d,this.browserStorage,c,this.logger,this.performanceClient),p=this.initiateAuthRequest(g,t);this.eventHandler.emitEvent(me.POPUP_OPENED,le.Popup,{popupWindow:p},null);const w=await this.monitorPopupForHash(p,t.popupWindowParent),C=Ai(OT,x.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(w,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Ur.removeThrottle(this.browserStorage,this.config.auth.clientId,c),C.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),m&&m.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw ie(Ks);const k=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,C.accountId,this.nativeStorage,o.correlationId),{userRequestState:I}=yr.parseRequestState(this.browserCrypto,o.state);return await k.acquireToken({...o,state:I,prompt:void 0})}return await v.handleCodeResponse(C,o)}catch(c){throw(a=t.popup)==null||a.close(),c instanceof lt&&(c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c)),c}}async logoutPopupAsync(e,t,r,o){var c,d,h,m;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(me.LOGOUT_START,le.Popup,e);const a=this.initializeServerTelemetryManager(ot.logoutPopup);try{await this.clearCacheOnLogout(e.account);const g=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:a,requestAuthority:r,account:e.account||void 0});try{g.authority.endSessionEndpoint}catch{if((c=e.account)!=null&&c.homeAccountId&&e.postLogoutRedirectUri&&g.authority.protocolMode===fo.OIDC){if(this.browserStorage.removeAccount((d=e.account)==null?void 0:d.homeAccountId),this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e),o){const w={apiId:ot.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=De.getAbsoluteUrl(o,lo());await this.navigationClient.navigateInternal(C,w)}(h=t.popup)==null||h.close();return}}const v=g.getLogoutUri(e);this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e);const p=this.openPopup(v,t);if(this.eventHandler.emitEvent(me.POPUP_OPENED,le.Popup,{popupWindow:p},null),await this.monitorPopupForHash(p,t.popupWindowParent).catch(()=>{}),o){const w={apiId:ot.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=De.getAbsoluteUrl(o,lo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${C}`),await this.navigationClient.navigateInternal(C,w)}else this.logger.verbose("No main window navigation requested")}catch(g){throw(m=t.popup)==null||m.close(),g instanceof lt&&(g.setCorrelationId(this.correlationId),a.cacheFailedRequest(g)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(me.LOGOUT_FAILURE,le.Popup,null,g),this.eventHandler.emitEvent(me.LOGOUT_END,le.Popup),g}this.eventHandler.emitEvent(me.LOGOUT_END,le.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),ie(hu)}monitorPopupForHash(e,t){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const a=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(a),o(ie(bi));return}let c="";try{c=e.location.href}catch{}if(!c||c==="about:blank")return;clearInterval(a);let d="";const h=this.config.auth.OIDCOptions.serverResponseType;e&&(h===$s.QUERY?d=e.location.search:d=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(d)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,t)})}openPopup(e,t){try{let r;if(t.popup?(r=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),r.location.assign(e)):typeof t.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),r=this.openSizedPopup(e,t)),!r)throw ie(Jw);return r.focus&&r.focus(),this.currentWindow=r,t.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),r}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),ie(Yw)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:r,popupWindowParent:o}){var w,C,T,k;const a=o.screenLeft?o.screenLeft:o.screenX,c=o.screenTop?o.screenTop:o.screenY,d=o.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=o.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let m=(w=r.popupSize)==null?void 0:w.width,g=(C=r.popupSize)==null?void 0:C.height,v=(T=r.popupPosition)==null?void 0:T.top,p=(k=r.popupPosition)==null?void 0:k.left;return(!m||m<0||m>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),m=Dn.POPUP_WIDTH),(!g||g<0||g>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),g=Dn.POPUP_HEIGHT),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,h/2-Dn.POPUP_HEIGHT/2+c)),(!p||p<0||p>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,d/2-Dn.POPUP_WIDTH/2+a)),o.open(e,t,`width=${m}, height=${g}, top=${v}, left=${p}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(le.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,t){e.close(),t.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${Dn.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${Dn.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t}.${this.correlationId}`}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class fy{constructor(e,t,r,o,a){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=a}async initiateAuthRequest(e,t){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ke.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const r={apiId:ot.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1};if(typeof t.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),t.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await t.navigationClient.navigateExternal(e,r);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await t.navigationClient.navigateExternal(e,r);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ie(hu)}async handleCodeResponse(e,t){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const r=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(r);if(!o)throw Y(kl,"Cached State");let a;try{a=this.authModule.handleFragmentResponse(e,o)}catch(m){throw m instanceof Wo&&m.subError===bi?ie(bi):m}const c=this.browserStorage.generateNonceKey(o),d=this.browserStorage.getTemporaryCache(c);if(this.authCodeRequest.code=a.code,a.cloud_instance_host_name&&await Q(this.authModule.updateAuthority.bind(this.authModule),x.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(a.cloud_instance_host_name,this.authCodeRequest.correlationId),a.nonce=d||void 0,a.state=o,a.client_info)this.authCodeRequest.clientInfo=a.client_info;else{const m=this.checkCcsCredentials();m&&(this.authCodeRequest.ccsCredential=m)}const h=await this.authModule.acquireToken(this.authCodeRequest,a);return this.browserStorage.cleanRequestByState(t),h}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Ke.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function YH(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const n=window.performance.getEntriesByType("navigation"),e=n.length?n[0]:void 0;return e==null?void 0:e.type}class JH extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,d,m,g),this.nativeStorage=h}async acquireToken(e){const t=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,le.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);const r=this.initializeServerTelemetryManager(ot.acquireTokenRedirect),o=a=>{a.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(me.RESTORE_FROM_BFCACHE,le.Redirect))};try{const a=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(t),c=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),d=new fy(c,this.browserStorage,a,this.logger,this.performanceClient),h=await c.getAuthCodeUrl({...t,nativeBroker:Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),m=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${m}`),window.addEventListener("pageshow",o),await d.initiateAuthRequest(h,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:m,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(a){throw a instanceof lt&&(a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a)),window.removeEventListener("pageshow",o),this.browserStorage.cleanRequestByState(t.state),a}}async handleRedirectPromise(e="",t){const r=this.initializeServerTelemetryManager(ot.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,a]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(le.Redirect),YH()!=="back_forward"?t.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const c=this.browserStorage.getTemporaryCache(Ke.ORIGIN_URI,!0)||F.EMPTY_STRING,d=De.removeHashFromUrl(c),h=De.removeHashFromUrl(window.location.href);if(d===h&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),c.indexOf("#")>-1&&rH(c),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Tm()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ke.URL_HASH,a,!0);const m={apiId:ot.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let g=!0;if(!c||c==="null"){const v=iH();this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,v,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),g=await this.navigationClient.navigateInternal(v,m)}else this.logger.verbose(`Navigating to loginRequestUrl: ${c}`),g=await this.navigationClient.navigateInternal(c,m);if(!g)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof lt&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(le.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(this.config.auth.OIDCOptions.serverResponseType===$s.QUERY?t=window.location.search:t=window.location.hash);let r=Pl(t);if(r){try{qH(r,this.browserCrypto,le.Redirect)}catch(a){return a instanceof lt&&this.logger.error(`Interaction type validation failed due to ${a.errorCode}: ${a.errorMessage}`),[null,""]}return nH(window),this.logger.verbose("Hash contains known properties, returning response hash"),[r,t]}const o=this.browserStorage.getTemporaryCache(Ke.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ke.URL_HASH)),o&&(r=Pl(o),r)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[r,o]):[null,""]}async handleResponse(e,t){const r=e.state;if(!r)throw ie(gm);const o=this.browserStorage.getCachedRequest(r);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ie(Ks);const h=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,o.correlationId),{userRequestState:m}=yr.parseRequestState(this.browserCrypto,r);return h.acquireToken({...o,state:m,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(r)})}const a=this.browserStorage.getCachedAuthority(r);if(!a)throw ie(pm);const c=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:a});return Ur.removeThrottle(this.browserStorage,this.config.auth.clientId,o),new fy(c,this.browserStorage,o,this.logger,this.performanceClient).handleCodeResponse(e,r)}async logout(e){var o,a;this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(ot.logout);try{this.eventHandler.emitEvent(me.LOGOUT_START,le.Redirect,e),await this.clearCacheOnLogout(t.account);const c={apiId:ot.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(d.authority.protocolMode===fo.OIDC)try{d.authority.endSessionEndpoint}catch{if((o=t.account)!=null&&o.homeAccountId){this.browserStorage.removeAccount((a=t.account)==null?void 0:a.homeAccountId),this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Redirect,t);return}}const h=d.getLogoutUri(t);if(this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Redirect,t),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(h)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(h,c);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(h,c);return}}catch(c){throw c instanceof lt&&(c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c)),this.eventHandler.emitEvent(me.LOGOUT_FAILURE,le.Redirect,null,c),this.eventHandler.emitEvent(me.LOGOUT_END,le.Redirect),c}this.eventHandler.emitEvent(me.LOGOUT_END,le.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return De.getAbsoluteUrl(t,lo())}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function QH(n,e,t,r,o){if(e.addQueueMeasurement(x.SilentHandlerInitiateAuthRequest,r),!n)throw t.info("Navigate url is empty"),ie(hu);return o?Q(ZH,x.SilentHandlerLoadFrame,t,e,r)(n,o,e,r):Ai(e$,x.SilentHandlerLoadFrameSync,t,e,r)(n)}async function XH(n,e,t,r,o,a,c){return r.addQueueMeasurement(x.SilentHandlerMonitorIframeForHash,a),new Promise((d,h)=>{e<cf&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${cf}ms). This may result in timeouts.`);const m=window.setTimeout(()=>{window.clearInterval(g),h(ie(Qw))},e),g=window.setInterval(()=>{let v="";const p=n.contentWindow;try{v=p?p.location.href:""}catch{}if(!v||v==="about:blank")return;let w="";p&&(c===$s.QUERY?w=p.location.search:w=p.location.hash),window.clearTimeout(m),window.clearInterval(g),d(w)},t)}).finally(()=>{Ai(t$,x.RemoveHiddenIframe,o,r,a)(n)})}function ZH(n,e,t,r){return t.addQueueMeasurement(x.SilentHandlerLoadFrame,r),new Promise((o,a)=>{const c=PT();window.setTimeout(()=>{if(!c){a("Unable to load iframe");return}c.src=n,o(c)},e)})}function e$(n){const e=PT();return e.src=n,e}function PT(){const n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(n),n}function t$(n){document.body===n.parentNode&&document.body.removeChild(n)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class n$ extends Ma{constructor(e,t,r,o,a,c,d,h,m,g,v){super(e,t,r,o,a,c,h,g,v),this.apiId=d,this.nativeStorage=m}async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const t={...e};t.prompt?t.prompt!==Bt.NONE&&t.prompt!==Bt.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${Bt.NONE}`),t.prompt=Bt.NONE):t.prompt=Bt.NONE;const r=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,le.Silent);ST(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);let a;try{return a=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:o,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),await Q(this.silentTokenHelper.bind(this),x.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(a,r)}catch(c){if(c instanceof lt&&(c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c)),!a||!(c instanceof lt)||c.errorCode!==Dn.INVALID_GRANT_ERROR)throw c;this.performanceClient.addFields({retryError:c.errorCode},this.correlationId);const d=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,le.Silent);return await Q(this.silentTokenHelper.bind(this),x.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(a,d)}}logout(){return Promise.reject(ie(fu))}async silentTokenHelper(e,t){const r=t.correlationId;this.performanceClient.addQueueMeasurement(x.SilentIframeClientTokenHelper,r);const o=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,r)(t),a=await Q(e.getAuthCodeUrl.bind(e),x.GetAuthCodeUrl,this.logger,this.performanceClient,r)({...t,nativeBroker:Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),c=new Am(e,this.browserStorage,o,this.logger,this.performanceClient),d=await Q(QH,x.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(a,this.performanceClient,this.logger,r,this.config.system.navigateFrameWait),h=this.config.auth.OIDCOptions.serverResponseType,m=await Q(XH,x.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(d,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,h),g=Ai(OT,x.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(m,h,this.logger);if(g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ie(Ks);const v=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,g.accountId,this.browserStorage,r),{userRequestState:p}=yr.parseRequestState(this.browserCrypto,t.state);return Q(v.acquireToken.bind(v),x.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,r)({...t,state:p,prompt:t.prompt||Bt.NONE})}return Q(c.handleCodeResponse.bind(c),x.HandleCodeResponse,this.logger,this.performanceClient,r)(g,t)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class r$ extends Ma{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentRefreshClientAcquireToken,e.correlationId);const t=await Q(Sm,x.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),r={...e,...t};e.redirectUri&&(r.redirectUri=this.getRedirectUri(e.redirectUri));const o=this.initializeServerTelemetryManager(ot.acquireTokenSilent_silentFlow),a=await this.createRefreshTokenClient({serverTelemetryManager:o,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return Q(a.acquireTokenByRefreshToken.bind(a),x.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(r).catch(c=>{throw c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),c})}logout(){return Promise.reject(ie(fu))}async createRefreshTokenClient(e){const t=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new nf(t,this.performanceClient)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class o${constructor(e,t,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=o}loadExternalTokens(e,t,r){if(!this.isBrowserEnvironment)throw ie(mu);const o=t.id_token?Si(t.id_token,Kr):void 0,a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},c=e.authority?new Xt(Xt.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,a,this.logger,e.correlationId||go()):void 0,d=this.loadAccount(e,r.clientInfo||t.client_info||"",o,c),h=this.loadIdToken(t,d.homeAccountId,d.environment,d.realm),m=this.loadAccessToken(e,t,d.homeAccountId,d.environment,d.realm,r),g=this.loadRefreshToken(t,d.homeAccountId,d.environment);return this.generateAuthenticationResult(e,{account:d,idToken:h,accessToken:m,refreshToken:g},o,c)}loadAccount(e,t,r,o){if(this.logger.verbose("TokenCache - loading account"),e.account){const h=Pt.createFromAccountInfo(e.account);return this.storage.setAccount(h),h}else if(!o||!t&&!r)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),ie(aT);const a=Pt.generateHomeAccountId(t,o.authorityType,this.logger,this.cryptoObj,r),c=r==null?void 0:r.tid,d=dm(this.storage,o,a,Kr,r,t,o.hostnameAndPort,c,void 0,void 0,this.logger);return this.storage.setAccount(d),d}loadIdToken(e,t,r,o){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const a=au(t,r,e.id_token,this.config.auth.clientId,o);return this.storage.setIdTokenCredential(a),a}loadAccessToken(e,t,r,o,a,c){if(t.access_token)if(t.expires_in){if(!t.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const d=t.scope?vt.fromString(t.scope):new vt(e.scopes),h=c.expiresOn||t.expires_in+new Date().getTime()/1e3,m=c.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+new Date().getTime()/1e3,g=su(r,o,t.access_token,this.config.auth.clientId,a,d.printScopes(),h,m,Kr);return this.storage.setAccessTokenCredential(g),g}loadRefreshToken(e,t,r){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const o=mw(t,r,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(o),o}generateAuthenticationResult(e,t,r,o){var g,v,p;let a="",c=[],d=null,h;t!=null&&t.accessToken&&(a=t.accessToken.secret,c=vt.fromString(t.accessToken.target).asArray(),d=new Date(Number(t.accessToken.expiresOn)*1e3),h=new Date(Number(t.accessToken.extendedExpiresOn)*1e3));const m=t.account;return{authority:o?o.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:c,account:m.getAccountInfo(),idToken:((g=t.idToken)==null?void 0:g.secret)||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:d,correlationId:e.correlationId||"",requestId:"",extExpiresOn:h,familyId:((v=t.refreshToken)==null?void 0:v.familyId)||"",tokenType:((p=t==null?void 0:t.accessToken)==null?void 0:p.tokenType)||"",state:e.state||"",cloudGraphHostName:m.cloudGraphHostName||"",msGraphHost:m.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class i$ extends Vw{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class a$ extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,h,m,g),this.apiId=d}async acquireToken(e){if(!e.code)throw ie(sT);const t=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,le.Silent),r=this.initializeServerTelemetryManager(this.apiId);try{const o={...t,code:e.code},a=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),c=new i$(a);this.logger.verbose("Auth code client created");const d=new Am(c,this.browserStorage,o,this.logger,this.performanceClient);return await Q(d.handleCodeResponseFromServer.bind(d),x.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(o){throw o instanceof lt&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),o}}logout(){return Promise.reject(ie(fu))}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function Dr(n){const e=n==null?void 0:n.idTokenClaims;if(e!=null&&e.tfp||e!=null&&e.acr)return"B2C";if(e!=null&&e.tid){if((e==null?void 0:e.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function Yc(n,e){try{bm(n)}catch(t){throw e.end({success:!1},t),t}}class _u{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Ia(this.logger,this.performanceClient):Nl,this.eventHandler=new PH(this.logger),this.browserStorage=this.isBrowserEnvironment?new uf(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,C2(this.config.auth),this.performanceClient):bH(this.config.auth.clientId,this.logger);const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new uf(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new o$(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,t){const r=new _u(e);return await r.initialize(t),r}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(me.INITIALIZE_END);return}const t=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),r=this.config.system.allowNativeBroker,o=this.performanceClient.startMeasurement(x.InitializeClientApplication,t);if(this.eventHandler.emitEvent(me.INITIALIZE_START),r)try{this.nativeExtensionProvider=await Fr.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(a){this.logger.verbose(a)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await Q(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),x.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(me.INITIALIZE_END),o.end({allowNativeBroker:r,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),IT(this.initialized),this.isBrowserEnvironment){const t=e||"";let r=this.redirectResponse.get(t);return typeof r>"u"?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,r),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),r}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const t=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),o=r&&Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,a=o?r==null?void 0:r.correlationId:this.browserStorage.getTemporaryCache(Ke.CORRELATION_ID,!0)||"",c=this.performanceClient.startMeasurement(x.AcquireTokenRedirect,a);this.eventHandler.emitEvent(me.HANDLE_REDIRECT_START,le.Redirect);let d;if(o&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const h=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,r.accountId,this.nativeInternalStorage,r.correlationId);d=Q(h.handleRedirectPromise.bind(h),x.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,c.event.correlationId)(this.performanceClient,c.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const h=this.createRedirectClient(a);d=Q(h.handleRedirectPromise.bind(h),x.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,c.event.correlationId)(e,c)}return d.then(h=>(h?(t.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(me.LOGIN_SUCCESS,le.Redirect,h),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Redirect,h),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),c.end({success:!0,accountType:Dr(h.account)})):c.event.errorCode?c.end({success:!1}):c.discard(),this.eventHandler.emitEvent(me.HANDLE_REDIRECT_END,le.Redirect),h)).catch(h=>{const m=h;throw t.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Redirect,null,m):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Redirect,null,m),this.eventHandler.emitEvent(me.HANDLE_REDIRECT_END,le.Redirect),c.end({success:!1},m),h})}async acquireTokenRedirect(e){const t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);const r=this.performanceClient.startMeasurement(x.AcquireTokenPreRedirect,t);r.add({accountType:Dr(e.account),scenarioId:e.scenarioId});const o=e.onRedirectNavigate;if(o)e.onRedirectNavigate=c=>{const d=typeof o=="function"?o(c):void 0;return d!==!1?r.end({success:!0}):r.discard(),d};else{const c=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=d=>{const h=typeof c=="function"?c(d):void 0;return h!==!1?r.end({success:!0}):r.discard(),h}}const a=this.getAllAccounts().length>0;try{ly(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),a?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Redirect,e):this.eventHandler.emitEvent(me.LOGIN_START,le.Redirect,e);let c;return this.nativeExtensionProvider&&this.canUseNative(e)?c=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,r).catch(h=>{if(h instanceof Br&&sa(h))return this.nativeExtensionProvider=void 0,this.createRedirectClient(t).acquireToken(e);if(h instanceof Er)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),h}):c=this.createRedirectClient(t).acquireToken(e),await c}catch(c){throw r.end({success:!1},c),a?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Redirect,null,c):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Redirect,null,c),c}}acquireTokenPopup(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenPopup,t);r.add({scenarioId:e.scenarioId,accountType:Dr(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),Yc(this.initialized,r),this.browserStorage.setInteractionInProgress(!0)}catch(c){return Promise.reject(c)}const o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Popup,e):this.eventHandler.emitEvent(me.LOGIN_START,le.Popup,e);let a;return this.canUseNative(e)?a=this.acquireTokenNative({...e,correlationId:t},ot.acquireTokenPopup).then(c=>(this.browserStorage.setInteractionInProgress(!1),r.end({success:!0,isNativeBroker:!0,accountType:Dr(c.account)}),c)).catch(c=>{if(c instanceof Br&&sa(c))return this.nativeExtensionProvider=void 0,this.createPopupClient(t).acquireToken(e);if(c instanceof Er)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),c}):a=this.createPopupClient(t).acquireToken(e),a.then(c=>(o.length<this.getAllAccounts().length?this.eventHandler.emitEvent(me.LOGIN_SUCCESS,le.Popup,c):this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Popup,c),r.end({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,accountType:Dr(c.account)}),c)).catch(c=>(o.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Popup,null,c):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Popup,null,c),r.end({success:!1},c),Promise.reject(c)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var a,c;const t=this.getRequestCorrelationId(e),r={...e,prompt:e.prompt,correlationId:t};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(x.SsoSilent,t),(a=this.ssoSilentMeasurement)==null||a.add({scenarioId:e.scenarioId,accountType:Dr(e.account)}),Yc(this.initialized,this.ssoSilentMeasurement),(c=this.ssoSilentMeasurement)==null||c.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(me.SSO_SILENT_START,le.Silent,r);let o;return this.canUseNative(r)?o=this.acquireTokenNative(r,ot.ssoSilent).catch(d=>{if(d instanceof Br&&sa(d))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(r.correlationId).acquireToken(r);throw d}):o=this.createSilentIframeClient(r.correlationId).acquireToken(r),o.then(d=>{var h;return this.eventHandler.emitEvent(me.SSO_SILENT_SUCCESS,le.Silent,d),(h=this.ssoSilentMeasurement)==null||h.end({success:!0,isNativeBroker:d.fromNativeBroker,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,accountType:Dr(d.account)}),d}).catch(d=>{var h;throw this.eventHandler.emitEvent(me.SSO_SILENT_FAILURE,le.Silent,null,d),(h=this.ssoSilentMeasurement)==null||h.end({success:!1},d),d}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);const r=this.performanceClient.startMeasurement(x.AcquireTokenByCode,t);Yc(this.initialized,r),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_START,le.Silent,e),r.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw ie(lT);if(e.code){const o=e.code;let a=this.hybridAuthCodeResponses.get(o);return a?(this.logger.verbose("Existing acquireTokenByCode request found",t),r.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),a=this.acquireTokenByCodeAsync({...e,correlationId:t}).then(c=>(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_SUCCESS,le.Silent,c),this.hybridAuthCodeResponses.delete(o),r.end({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,accountType:Dr(c.account)}),c)).catch(c=>{throw this.hybridAuthCodeResponses.delete(o),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_FAILURE,le.Silent,null,c),r.end({success:!1},c),c}),this.hybridAuthCodeResponses.set(o,a)),await a}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){const o=await this.acquireTokenNative({...e,correlationId:t},ot.acquireTokenByCode,e.nativeAccountId).catch(a=>{throw a instanceof Br&&sa(a)&&(this.nativeExtensionProvider=void 0),a});return r.end({accountType:Dr(o.account),success:!0}),o}else throw ie(uT);else throw ie(cT)}catch(o){throw this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_FAILURE,le.Silent,null,o),r.end({success:!1},o),o}}async acquireTokenByCodeAsync(e){var o;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(x.AcquireTokenByCodeAsync,e.correlationId),(o=this.acquireTokenByCodeAsyncMeasurement)==null||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(a=>{var c;return(c=this.acquireTokenByCodeAsyncMeasurement)==null||c.end({success:!0,fromCache:a.fromCache,isNativeBroker:a.fromNativeBroker}),a}).catch(a=>{var c;throw(c=this.acquireTokenByCodeAsyncMeasurement)==null||c.end({success:!1},a),a}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,t){switch(this.performanceClient.addQueueMeasurement(x.AcquireTokenFromCache,e.correlationId),t){case Pn.Default:case Pn.AccessToken:case Pn.AccessTokenAndRefreshToken:const r=this.createSilentCacheClient(e.correlationId);return Q(r.acquireToken.bind(r),x.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Y(co)}}async acquireTokenByRefreshToken(e,t){switch(this.performanceClient.addQueueMeasurement(x.AcquireTokenByRefreshToken,e.correlationId),t){case Pn.Default:case Pn.AccessTokenAndRefreshToken:case Pn.RefreshToken:case Pn.RefreshTokenAndNetwork:const r=this.createSilentRefreshClient(e.correlationId);return Q(r.acquireToken.bind(r),x.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Y(co)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(x.AcquireTokenBySilentIframe,e.correlationId);const t=this.createSilentIframeClient(e.correlationId);return Q(t.acquireToken.bind(t),x.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect({correlationId:t,...e})}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);return ly(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return bm(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(t).logout(e)}catch(t){return Promise.reject(t)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){return IH(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return SH(e,this.logger,this.browserStorage)}getAccountByUsername(e){return AH(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return kH(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return NH(e,this.logger,this.browserStorage)}setActiveAccount(e){RH(e,this.browserStorage)}getActiveAccount(){return OH(this.browserStorage)}async hydrateCache(e,t){this.logger.verbose("hydrateCache called");const r=Pt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(r),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)}async acquireTokenNative(e,t,r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ie(Ks);return new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,t){if(this.logger.trace("canUseNative called"),!Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Bt.NONE:case Bt.CONSENT:case Bt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new jH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new JH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new n$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new RT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new r$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new a$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return bT(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){var t;try{(t=e.key)!=null&&t.includes(Lt.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(me.ACTIVE_ACCOUNT_CHANGED);const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!Pt.isAccountEntity(o))return;const c=Ta.toObject(new Pt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(me.ACCOUNT_ADDED,void 0,c)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(me.ACCOUNT_REMOVED,void 0,c))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?go():F.EMPTY_STRING}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect({correlationId:t,...e||ay})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||ay})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenSilent,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Yc(this.initialized,r),this.logger.verbose("acquireTokenSilent called",t);const o=e.account||this.getActiveAccount();if(!o)throw ie(tT);r.add({accountType:Dr(o)});const a={clientId:this.config.auth.clientId,authority:e.authority||F.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},c=JSON.stringify(a),d=this.activeSilentTokenRequests.get(c);if(typeof d>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);const h=Q(this.acquireTokenSilentAsync.bind(this),x.AcquireTokenSilentAsync,this.logger,this.performanceClient,t)({...e,correlationId:t},o).then(m=>(this.activeSilentTokenRequests.delete(c),r.end({success:!0,fromCache:m.fromCache,isNativeBroker:m.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:m.accessToken.length,idTokenSize:m.idToken.length}),m)).catch(m=>{throw this.activeSilentTokenRequests.delete(c),r.end({success:!1},m),m});return this.activeSilentTokenRequests.set(c,h),{...await h,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),r.discard(),{...await d,state:e.state}}async acquireTokenSilentAsync(e,t){const r=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(x.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",r);const o=await Q(UH,x.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),a=e.cacheLookupPolicy||Pn.Default;return this.acquireTokenSilentNoIframe(o,a).catch(async d=>{if(s$(d,a))if(this.activeIframeRequest)if(a!==Pn.Skip){const[m,g]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${g}`,o.correlationId);const v=this.performanceClient.startMeasurement(x.AwaitConcurrentIframe,o.correlationId);v.add({awaitIframeCorrelationId:g});const p=await m;if(v.end({success:p}),p)return this.logger.verbose(`Parallel iframe request with correlationId: ${g} succeeded. Retrying cache and/or RT redemption`,o.correlationId),this.acquireTokenSilentNoIframe(o,a);throw this.logger.info(`Iframe request with correlationId: ${g} failed. Interaction is required.`),d}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",o.correlationId),Q(this.acquireTokenBySilentIframe.bind(this),x.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o);else{let m;return this.activeIframeRequest=[new Promise(g=>{m=g}),o.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",o.correlationId),Q(this.acquireTokenBySilentIframe.bind(this),x.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o).then(g=>(m(!0),g)).catch(g=>{throw m(!1),g}).finally(()=>{this.activeIframeRequest=void 0})}else throw d}).then(d=>(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Silent,d),e.correlationId&&this.performanceClient.addFields({fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker},e.correlationId),d)).catch(d=>{throw this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Silent,null,d),d}).finally(()=>{document.removeEventListener("visibilitychange",r)})}async acquireTokenSilentNoIframe(e,t){return Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,ot.acquireTokenSilent_silentFlow).catch(async r=>{throw r instanceof Br&&sa(r)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,Y(co)):r})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),Q(this.acquireTokenFromCache.bind(this),x.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,t).catch(r=>{if(t===Pn.AccessToken)throw r;return this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_NETWORK_START,le.Silent,e),Q(this.acquireTokenByRefreshToken.bind(this),x.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,t)}))}}function s$(n,e){const t=!(n instanceof Er&&n.subError!==du),r=n.errorCode===Dn.INVALID_GRANT_ERROR||n.errorCode===co,o=t&&r||n.errorCode===Dl||n.errorCode===um,a=W2.includes(e);return o&&a}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function c$(n,e){const t=new Ii(n);return await t.initialize(),_u.createController(t,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class km{static async createPublicClientApplication(e){const t=await c$(e);return new km(e,t)}constructor(e,t){this.controller=t||new _u(new Ii(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}const lh=process.env.JPLAN_WEBAPP__APP_PROXY_TENANT_NAME??"",l$=process.env.JPLAN_WEBAPP__APP_PROXY_CLIENT_ID??"",u$=process.env.JPLAN_WEBAPP__APP_PROXY_USER_FLOW??"",hf=process.env.JPLAN_WEBAPP__URL_AUTH??process.env.JPLAN_WEBAPP__URL_BASE??"",d$={auth:{clientId:l$,authority:`https://${lh}.b2clogin.com/${lh}.onmicrosoft.com/${u$}`,knownAuthorities:[`${lh}.b2clogin.com`],redirectUri:process.env.JPLAN_AUTOMATION_ENVIRONMENT?`${hf}/_/dashboard`:hf},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(n,e)=>{n===tt.Error&&console.error(e)},logLevel:tt.Warning}}},MT=(n,e)=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:`${hf}${n}`,extraQueryParameters:e}),Gt=new km(d$),my=l.ref(null);function DT(){async function n(e){var t;if(e)try{const r=e.idTokenClaims;if(!(r!=null&&r.aud))throw new Error("User audience (aud) is missing in ID token claims");const o=localStorage.getItem(`msal.token.keys.${r.aud}`);if(!o)throw new Error(`Token keys para ${r.aud} não encontrados no localStorage`);const a=JSON.parse(o),c=(t=a==null?void 0:a.idToken)==null?void 0:t[0];if(!c)throw new Error("idToken não encontrado nos token keys");const d=localStorage.getItem(c);if(!d)throw new Error(`Dados do token para ID ${c} não encontrados no localStorage`);const h=JSON.parse(d),m=h==null?void 0:h.secret;if(!m)throw new Error("Secret não encontrado nos dados do token");sessionStorage.setItem("isAuthenticated","true"),my.value=m}catch(r){console.error("Erro ao obter token de acesso:",r)}}return{jToken:my,setJToken:n}}let Jc=null;const tr=l.ref(null),Ji=l.ref(null),LT=l.ref(Math.floor(Date.now()/1e3));ff.useIntervalFn(()=>h$(),1e3);function h$(){var r,o;if(!((o=(r=tr.value)==null?void 0:r.idTokenClaims)!=null&&o.exp))return;const n=Math.floor(Date.now()/1e3),e=300,t=tr.value.idTokenClaims.exp;LT.value=t-n-e}function Nm(){if(Jc)return Jc;const{setJToken:n,jToken:e}=DT(),t=l.computed(()=>!!tr.value),r=l.computed(()=>tr.value);let o;async function a(p,w){if(!t.value)switch(p){case"redirect":if(w){o=w,await h();break}case"tab":default:await c();break}}const c=async()=>new Promise((p,w)=>{try{localStorage.clear();const C=process.env.JPLAN_WEBAPP__URL_AUTH,T=window.open(C);if(!T){console.error("Failed to open authentication window"),w("Failed to open authentication window");return}const k=Date.now(),I=6e4,N=setInterval(()=>{if(Date.now()-k>I||T.closed){clearInterval(N),console.error("Authentication canceled or timeout reached."),w("Authentication canceled or timeout reached.");return}Object.keys(localStorage).some(L=>L.startsWith("msal.account.keys"))&&(clearInterval(N),d(),T.close(),p())},500)}catch(C){console.error("Error in handleRedirect:",C),w(C)}}),d=async()=>{try{await Gt.initialize();const p=Gt.getActiveAccount();if(p)tr.value=p;else{const w=await Gt.handleRedirectPromise();w?(Gt.setActiveAccount(w.account),tr.value=Gt.getActiveAccount()):console.error("Falha na autenticação")}}catch(p){console.error("Erro no processo de autenticação:",p)}tr.value&&await n(tr.value)},h=async()=>{try{await Gt.initialize();const p=await Gt.handleRedirectPromise();if(!p||Gt.getAllAccounts().length===0){const w=MT(o);await Gt.loginRedirect(w);return}Gt.setActiveAccount(p.account),tr.value=Gt.getActiveAccount(),tr.value&&await n(tr.value),Ji.value="updated"}catch(p){console.error("handleRedirect failed",p)}};async function m(){ve.value=!0,Ji.value="updating";try{const p=await Gt.acquireTokenSilent({scopes:["https://graph.microsoft.com/.default","openid","profile"]});Gt.setActiveAccount(p.account),await n(tr.value),Ji.value="updated"}catch(p){console.error("Failed to refresh token, forcing new login.",p),Ji.value="error",localStorage.clear(),window.location.reload()}ve.value=!1}const g=async()=>{try{await Gt.initialize(),localStorage.clear(),await Gt.logoutRedirect({postLogoutRedirectUri:"/"})}catch(p){console.error("Logout error",p)}};l.watch(LT,async p=>{p<=0&&Ji.value==="updated"&&await m()});const v=l.computed(()=>e.value);return Jc={isAuthenticated:t,authState:Ji,account:r,token:v,refreshToken:m,handleRedirect:a,logout:g},Jc}const{jToken:gy}=DT(),Rm=()=>{const n=dt.create({headers:{"Content-Type":"application/json"}});l.watch(gy,o=>{n.interceptors.request.use(a=>(o&&(a.headers.Authorization=`Bearer ${o}`),a))},{immediate:!0});let e=1;n.interceptors.response.use(async o=>o,async o=>{var a;if(o.config&&o.config.headers){const c=o.config;if(((a=o.response)==null?void 0:a.status)===401&&e>0){e--;try{return c.headers.Authorization=`Bearer ${gy.value}`,await n(c)}catch(d){return Promise.reject(d)}}}return Promise.reject(o)});async function t({url:o,method:a,header:c={},body:d,baseURL:h}){try{return h&&(n.defaults.baseURL=h),(await n({url:o,method:a,headers:c,data:d})).data}catch(m){if(console.error(`Request error [${a} ${o}]:`,m),dt.isAxiosError(m)){const{response:g,message:v}=m;throw new Error(`Axios error: ${v}, Status: ${g==null?void 0:g.status}, URL: ${o}`)}throw m}}async function r({url:o,method:a,header:c,body:d,baseURL:h}){try{h&&(n.defaults.baseURL=h);const m=await n({url:o,method:a,headers:c,data:d});return{status:m.status,header:m.headers,body:m.data}}catch(m){if(dt.isAxiosError(m)){const{response:g,message:v}=m;console.error(`Raw Request Error: ${v}, Status: ${g==null?void 0:g.status}`)}return Promise.reject(m)}}return Object.assign(n,{_request:t,rawRequest:r})},{request:py}=Rm(),_y=l.ref(null),vy=l.ref("default"),uh=l.ref(null),dh=l.ref({scope_type:"org"});function vu(){var v,p;const{handleRedirect:n,account:e,logout:t}=Nm();(p=(v=e.value)==null?void 0:v.idTokenClaims)==null||p.domain;const r=l.computed(()=>{var w,C;return{domain:(C=(w=e.value)==null?void 0:w.idTokenClaims)==null?void 0:C.domain,environment:vy.value,...dh.value}}),o=l.computed(()=>dh.value);async function a(){var w;(!e.value||!((w=e.value.idTokenClaims)!=null&&w.email))&&await n();try{await c(),await d()}catch{}}async function c(){var w,C;try{const T=(C=(w=e.value)==null?void 0:w.idTokenClaims)==null?void 0:C.email;if(!T)throw new Error("Email is undefined");const k=await py({url:`https://api.jplan.com.br/platform/user/profile/?email=${T}`,method:"GET"});uh.value=k.data??null}catch(T){console.error("Failed to fetch user profile:",T)}}async function d(){var w;try{if(!((w=uh.value)!=null&&w.email))throw new Error("User email is undefined");const C=await py({url:"https://api.jplan.com.br/platform/user/domain/",method:"GET"});_y.value=C.data.data??[]}catch(C){console.error("Failed to fetch user domains:",C)}}function h(w){dh.value=w}function m(w){vy.value=w,h(r.value)}async function g(w,C){const T=MT(w,{request_domain:C});await Gt.loginRedirect(T)}return{__init__:a,user:uh,userDomains:_y,setEnv:m,setScope:h,changeDomain:g,session:r,scope:o,logout:t}}const f$={path:"/_/dashboard",component:()=>Promise.resolve().then(()=>require("./AuthRoute-DaXeTh5D.js")),meta:{requiresAuth:!1}},m$={path:"/jplan-auth-fail",component:()=>Promise.resolve().then(()=>require("./AuthFailRoute-DHl-IhUQ.js")),meta:{requiresAuth:!1}},{isAuthenticated:yy,handleRedirect:g$}=Nm(),p$=vu();function _$(n,e){n.addRoute(f$),n.addRoute(m$),n.beforeEach(async(t,r,o)=>{function a(d){return d.matched.some(h=>h.meta.requiresAuth)}if(!a(t))return o();if(!yy.value){ve.value=!0;try{await g$(e,t.fullPath),await p$.__init__()}catch(d){console.error("Fail to authenticate",d),await n.push("/jplan-auth-fail")}ve.value=!1}if(yy.value){if(localStorage.getItem("returnRoute")&&localStorage.getItem("returnRoute")!==null){const d=localStorage.getItem("returnRoute")??"/";console.log("trying to go to saved route:",d),o(d),localStorage.removeItem("returnRoute");return}o()}})}const{scope:Cy}=vu();function v$(){const n=Rm(),e=l.ref({scope_type:"org"});async function t(r){e.value=r}return l.watch(Cy,()=>{n.interceptors.request.use(r=>{const o=r.headers,a=o.Authorization;a&&(o.Authorization=a);const c=Cy.value;return c&&(c.scope_type&&(o["j-scope-type"]=c.scope_type,c.organization&&(o["j-scope-organization"]=c.organization),c.team&&(o["j-scope-team"]=c.team)),c.environment&&(o["j-scope-environment"]=c.environment)),r})},{immediate:!0}),Object.assign(n,{setScope:t,scope:e})}function Da(n){const e=v$();e.defaults.baseURL=n;const t=l.ref({scope_type:"org"});async function r(o){t.value=o}return l.watch(t,()=>{e.interceptors.request.use(o=>{const a=t.value;return delete o.headers["j-scope-type"],delete o.headers["j-scope-organization"],delete o.headers["j-scope-team"],a!=null&&a.scope_type&&(o.headers["j-scope-type"]=a.scope_type),a!=null&&a.organization&&(o.headers["j-scope-organization"]=a.organization),a!=null&&a.team&&(o.headers["j-scope-team"]=a.team),o})},{immediate:!0}),Object.assign(e,{setScope:r,scope:t})}const Ey={enUS:{widget:"widget",spacer:"spacer"},ptBr:{widget:"widget",spacer:"Espaçador"}},Om={"pt-BR":{placeholders:{selectFilter:"Selecionar filtro",visualize:"Visualizar",actions:"Ações",search:"Pesquisar"},dialogs:{columnSettings:{title:"Configurações de coluna"},scope:{title:"Escopo",unknown:"Desconhecido",domain:"Domínio",environment:"Ambiente",organizational:"Organizacional",organization:"Organização",team:"Time",user:"Usuário",none:"Nenhum",selectOrganization:"Selecione uma Organização",selectTeam:"Selecione um Time"}},actions:{save:"Salvar",cancel:"Cancelar",edit:"Editar",delete:"Apagar",disable:"Desabilitar",confirm:"Confirmar",back:"Voltar"},forms:{metadata:{created:"Criado",updated:"Atualizado",modified:"Modificado",delegated:"Delegado"}},$vuetify:{dataFooter:{itemsPerPageAll:"Todos",itemsPerPageText:"Itens por página:",pageText:"{0}-{1} de {2}"}},toast:{error:{create_failed:"Falha ao criar {entity}",update_failed:"Falha ao atualizar {entity}",delete_failed:"Falha ao apagar {entity}",fetch_failed:"Falha ao buscar {entity}",activate_failed:"Falha ao ativar {entity}",deactivate_failed:"Falha ao desativar {entity}",link_failed:"Falha ao vincular {entity}",unlink_failed:"Falha ao desvincular {entity}"},success:{create_success:"{entity} criado com sucesso",update_success:"{entity} atualizado com sucesso",delete_success:"{entity} apagado com sucesso",activate_success:"{entity} ativado com sucesso",deactivate_success:"{entity} desativado com sucesso",link_success:"{entity} vinculado com sucesso",unlink_success:"{entity} desvinculado com sucesso"},info:{already_linked:"{entity} já está vinculado",select_valid_item:"Selecione um item válido"}},app:{widget:Ey.ptBr}},"en-US":{placeholders:{selectFilter:"Select a filter",visualize:"Visualize",actions:"Actions",search:"Search"},dialogs:{columnSettings:{title:"Column Settings"},scope:{title:"Scope",unknown:"Unknown",domain:"Domain",environment:"Environment",organizational:"Organizational",organization:"Organization",team:"Team",user:"User",none:"None",selectOrganization:"Select a organization",selectTeam:"Select a Team"}},actions:{save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",disable:"Disable",back:"Back",confirm:"Confirm"},forms:{metadata:{created:"Created",updated:"Updated",modified:"Modified",delegated:"Delegated"}},$vuetify:{dataFooter:{itemsPerPageAll:"All",itemsPerPageText:"Items per page:",pageText:"{0}-{1} of {2}"}},toast:{error:{create_failed:"Failed to create {entity}",update_failed:"Failed to update {entity}",delete_failed:"Failed to delete {entity}",fetch_failed:"Failed to fetch {entity}",activate_failed:"Failed to activate {entity}",deactivate_failed:"Failed to deactivate {entity}",link_failed:"Failed to link {entity}",unlink_failed:"Failed to unlink {entity}"},success:{create_success:"{entity} created successfully",update_success:"{entity} updated successfully",delete_success:"{entity} deleted successfully",activate_success:"{entity} activated successfully",deactivate_success:"{entity} deactivated successfully",link_success:"{entity} linked successfully",unlink_success:"{entity} unlinked successfully"},info:{already_linked:"{entity} is already linked",select_valid_item:"Please select a valid item"}},app:{widget:Ey.ptBr}}},y$=Object.keys(Om),wy=navigator.language,C$=y$.includes(wy)?wy:"pt-BR",$=yx({locale:C$,fallbackLocale:"en-US",messages:Om});function E$(){const n=Da("https://api.jplan.com.br/management/organization"),{error:e}=wr();return{async getOrgList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Organization"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getOrgList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Organization"}));return}},async createOrg(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Organization"})),a}},async updateOrg(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"Organization"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Organization"})),a}},async getOrg(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Organization"})),new Error(a.data.error);return a.data}catch(a){throw console.error("Error in getOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Organization"})),a}},async activateOrg(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Organization"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Organization"})),a}},async deactivateOrg(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Organization"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Organization"})),a}}}}const xo=E$();function w$(){const n=Da("https://api.jplan.com.br/management/branch/"),{error:e}=wr();return{async getBranchList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error){e($.global.t("toast.error.fetch_failed",{entity:"Branch"}));return}return o.data.data}catch(r){console.error("Error in getBranchList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Branch"}))}},async createBranch(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){console.error("Error in createBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Branch"}))}},async updateBranch(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error){e(a.data.error||$.global.t("toast.error.update_failed",{entity:"Branch"}));return}return a}catch(a){console.error("Error in updateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Branch"}))}},async getBranch(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error){e(a.data.error||$.global.t("toast.error.fetch_failed",{entity:"Branch"}));return}return a.data}catch(a){console.error("Error in getBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Branch"}))}},async activateBranch(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error){e(a.data.error||$.global.t("toast.error.activate_failed",{entity:"Branch"}));return}}catch(a){console.error("Error in activateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Branch"}))}},async deactivateBranch(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error){e(a.data.error||$.global.t("toast.error.deactivate_failed",{entity:"Branch"}));return}}catch(a){console.error("Error in deactivateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Branch"}))}}}}const Uo=w$();function T$(){const n=Da("https://api.jplan.com.br/management/team"),{error:e}=wr();return{async getTeamList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Team"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getTeamList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Team"}));return}},async createTeam(t){var r,o;try{const a=await n.post("/item",t);if(a.data.error)throw e($.global.t("toast.error.create_failed",{entity:"Team"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in createTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Team"})),a}},async updateTeam(t){var r,o;try{const a=await n.patch("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in updateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Team"})),a}},async getTeam(t){var r,o;try{const a=await n.get(`/item/${t}`);return a.data.error&&e($.global.t("toast.error.fetch_failed",{entity:"Team"})),a.data}catch(a){console.error("Error in getTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Team"}));return}},async activateTeam(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Team"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Team"})),a}},async deactivateTeam(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Team"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Team"})),a}},async getTeamUserList(t,r){try{const o=r?`?filter_query=${r}`:"",a=await n.get(`/item/${t}/user/list/${o}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(a.data.error);return a.data.data}catch(o){console.error("Error in getTeamUserList:",o),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async linkManageUser(t,r){try{const o=await n.post(`/item/${t}/user/item/`,r);if(o.data.error)throw e($.global.t("toast.error.link_failed",{entity:"User"})),new Error(o.data.error);return o.data}catch(o){console.error("Error in link User:",o),e($.global.t("toast.error.link_failed",{entity:"User"}));return}},async updateManageUser(t,r){try{const o=await n.patch(`/item/${t}/user/item/`,r);if(o.data.error)throw e($.global.t("toast.error.update_failed",{entity:"User"})),new Error(o.data.error);return o.data.data}catch(o){throw console.error("Error in update User:",o),e($.global.t("toast.error.update_failed",{entity:"User"})),o}},async getManageUser(t,r,o){try{const a=o?`?filter_query=${o}`:"",c=await n.get(`/item/${t}/user/item/${r}/${a}`);if(c.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(c.data.error);return c.data.data}catch(a){console.error("Error in getUser:",a),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async unlinkManageUser(t,r,o){try{const a=o?`?filter_query=${o}`:"";await n.delete(`/item/${t}/user/item/${r}/${a}`)}catch(a){throw console.error("Error in unlink User:",a),e($.global.t("toast.error.unlink_failed",{entity:"User"})),a}}}}const Mn=T$();let Qc=!1;const hh=l.ref(!1),jn=l.ref([]),Ty=l.ref([]),ft=l.ref(null),Qi=l.ref([]),Xi=l.ref([]),xT=()=>{const n=wr(),e=async C=>{hh.value=!0;const T=C?`_active eq true and ${C}`:"_active eq true",k=await xo.getOrgList(T);k&&(jn.value=k,Qc=!0),hh.value=!1},t=async C=>{var T;return(T=jn.value)!=null&&T.length||await e(C),jn.value};function r(C){if(!jn.value)throw new Error("Data not stored yet");const T=Oa(jn.value,C,["name","description"]);return C!==""?T:jn.value}const o=C=>{Ty.value=C},a=C=>{ft.value=Ra.cloneDeep(C)},c=async C=>await xo.getOrg(C),d=async()=>{if(ft.value!=null){const C=await xo.createOrg(ft.value);return C!=null&&C.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Organization"})),Qc&&jn.value.push(C.data)),C==null?void 0:C.data}},h=async()=>{if(ve.value=!0,ft.value&&ft.value.__id){const C=await xo.updateOrg(ft.value);if(Qc&&(C!=null&&C.data.__id)){const T=jn.value.findIndex(k=>k.__id===C.data.__id);return T!==-1?(jn.value[T]=C.data,n.success($.global.t("toast.success.update_success",{entity:"Organization"}))):n.error($.global.t("toast.error.update_failed",{entity:"Organization"})),ve.value=!1,C.data}}else ve.value=!1,n.error($.global.t("toast.error.update_failed",{entity:"Organization"}))},m=async()=>{if(ve.value=!0,ft.value&&ft.value.created_at){if(await xo.deactivateOrg(ft.value.__id),Qc){const C=jn.value.findIndex(T=>{var k;return T.__id===((k=ft.value)==null?void 0:k.__id)});if(C!==-1)return jn.value.splice(C,1),ft.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Organization"}))}ve.value=!1}};async function g(C){ve.value=!0;try{if(ft.value&&ft.value.__id){const T={...C,organization:ft.value.__id};if(!await Uo.updateBranch(T)){ve.value=!1;return}if(Qi.value.findIndex(N=>N.__id===C.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Branch"})),Qi.value.push(T),T;n.info($.global.t("toast.info.already_linked",{entity:"Branch"}))}}catch(T){console.error(T)}finally{ve.value=!1}}async function v(C){if(ve.value=!0,ft.value&&ft.value.__id){const T={...C,organization:null};if(!await Uo.updateBranch(T)){ve.value=!1;return}const I=Qi.value.findIndex(N=>N.__id===C.__id);if(I!==-1)return Qi.value.splice(I,1),ve.value=!1,Qi.value;throw new Error("Item not found to remove")}ve.value=!1}async function p(C){ve.value=!0;try{if(ft.value&&ft.value.__id){const T={...C,organization:ft.value.__id};if(!await Mn.updateTeam(T)){ve.value=!1;return}if(Xi.value.findIndex(N=>N.__id===C.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Team"})),Xi.value.push(T),T;n.info($.global.t("toast.info.already_linked",{entity:"Team"}))}}catch(T){console.error(T)}finally{ve.value=!1}}async function w(C){if(ve.value=!0,ft.value&&ft.value.__id){const T={...C,organization:null};if(!await Mn.updateTeam(T)){ve.value=!1;return}const I=Xi.value.findIndex(N=>N.__id===C.__id);if(I!==-1)return Xi.value.splice(I,1),ve.value=!1,Xi.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:jn,loading:hh,columns:Ty,item:ft,filterData:r,__init__:e,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgBranches:Qi,orgTeams:Xi,linkBranch:g,unlinkBranch:v,linkTeam:p,unlinkTeam:w}};let Xc=!1;const Yn=l.ref([]),by=l.ref([]),Nt=l.ref(null),fh=l.ref(!1),Zi=l.ref([]),UT=()=>{const n=wr(),e=async p=>{fh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Mn.getTeamList(w);C&&(Yn.value=C,Xc=!0),fh.value=!1},t=async p=>(Yn.value.length||await e(p),Yn.value);function r(p){if(!Yn.value)throw new Error("Data not stored yet");const w=Oa(Yn.value,p,["name","description"]);return p!==""?w:Yn.value}const o=p=>{by.value=p},a=p=>{Nt.value=Ra.cloneDeep(p)},c=async p=>await Mn.getTeam(p),d=async()=>{if(Nt.value!=null){const p=await Mn.createTeam(Nt.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Team"})),Xc&&Yn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if(ve.value=!0,Nt.value&&Nt.value.__id){const p=await Mn.updateTeam(Nt.value);if(Xc&&(p!=null&&p.data.__id)){const w=Yn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Yn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Team"}))):n.error($.global.t("toast.error.update_failed",{entity:"Team"})),p.data}}else n.error($.global.t("toast.error.update_failed",{entity:"Team"}))},m=async()=>{if(Nt.value&&Nt.value.created_at&&(await Mn.deactivateTeam(Nt.value.__id),Xc)){const p=Yn.value.findIndex(w=>{var C;return w.__id===((C=Nt.value)==null?void 0:C.__id)});if(p!==-1)return Yn.value.splice(p,1),Nt.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Team"}))}};async function g(p){var w;if(ve.value=!0,(w=Nt.value)!=null&&w.__id)if(Zi.value.findIndex(T=>T.__id===p.__id)===-1)try{const T=await Mn.linkManageUser(Nt.value.__id,{team:Nt.value.__id,user:p.__id,role:"string",joined_at:"string",comments:"string"}),k=await Mn.getTeamUserList(Nt.value.__id);return k&&(Zi.value=k),n.success($.global.t("toast.success.link_success",{entity:"User"})),T}catch(T){console.error(T),n.error($.global.t("toast.error.link_failed",{entity:"User"}))}finally{ve.value=!1}else n.info($.global.t("toast.info.already_linked",{entity:"User"}));else console.warn("No item selected or item ID is missing."),n.info($.global.t("toast.info.select_valid_item"));ve.value=!1}async function v(p){if(ve.value=!0,Nt.value&&Nt.value.__id){const w=Zi.value.findIndex(C=>C.__id===p);if(w!==-1)return await Mn.unlinkManageUser(Nt.value.__id,p),Zi.value.splice(w,1),ve.value=!1,Zi.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:Yn,loading:fh,columns:by,item:Nt,usersTeam:Zi,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,linkUser:g,unlinkUser:v}},BT=l.defineComponent({__name:"GlobalScopeFilter",setup(n){var T,k,I;const{openDialog:e}=Ms("global-scope__J-"),{user:t,scope:r,session:o,setScope:a}=vu(),{getData:c,data:d}=xT(),{getData:h,data:m}=UT(),g=l.ref(!1);l.onBeforeMount(async()=>{g.value=!0,await c(),await h(),g.value=!1});const v=l.ref({scope_type:(T=r.value)==null?void 0:T.scope_type,organization:((k=r.value)==null?void 0:k.organization)??"org",team:(I=r.value)==null?void 0:I.team});function p(){var N,D,L;v.value={...r.value,scope_type:(N=r.value)==null?void 0:N.scope_type,organization:((D=r.value)==null?void 0:D.organization)??"",team:(L=r.value)==null?void 0:L.team},e()}const w=l.computed(()=>{var N;switch((N=r.value)==null?void 0:N.scope_type){case"user":return BF;case"org":return xF;case"team":return FF;default:return UF}});async function C(){var N;((N=r.value)==null?void 0:N.scope_type)!==""&&a(v.value)}return(N,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(it.VBtn,{onClick:p,icon:"",class:"text-secondary",color:"surface",rounded:"sm",size:"small",variant:"flat"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(w.value),{size:"20"}))]),_:1}),l.createVNode(l.unref(Ls),{loading:g.value,title:l.unref($).global.t("dialogs.scope.title"),"dd-id":"global-scope__J-",onOnSave:C},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(Qe.VRow,null,{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"4",class:"d-flex flex-row align-center"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.user")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>{var L;return[l.createTextVNode(l.toDisplayString(((L=l.unref(t))==null?void 0:L.name)||l.unref($).global.t("dialogs.scope.unknownUser")),1)]}),_:1})]),_:1})]),_:1}),l.createVNode(Qe.VCol,{cols:"4"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.environment")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(o).domain),1)]),_:1})]),_:1})]),_:1}),l.createVNode(Qe.VCol,{cols:"4"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.environment")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(o).environment),1)]),_:1})]),_:1})]),_:1})]),_:1}),l.createVNode(IO.VBtnToggle,{density:"compact",variant:"outlined",modelValue:v.value.scope_type,"onUpdate:modelValue":D[0]||(D[0]=L=>v.value.scope_type=L),class:"d-flex justify-center my-4"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{value:"org",label:l.unref($).global.t("dialogs.scope.organizational"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.organizational")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"team",label:l.unref($).global.t("dialogs.scope.team"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.team")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"user",label:l.unref($).global.t("dialogs.scope.user"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.user")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"",label:l.unref($).global.t("dialogs.scope.none"),color:"lightext"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.none")),1)]),_:1},8,["label"])]),_:1},8,["modelValue"]),l.createElementVNode("div",null,[l.createVNode(ys.VLabel,{class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.organization")),1)]),_:1}),l.createVNode(ls.VSelect,{items:l.unref(d),"item-title":"name","item-value":"__id",variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref($).global.t("dialogs.scope.selectOrganization"),class:"min-w-50",modelValue:v.value.organization,"onUpdate:modelValue":D[1]||(D[1]=L=>v.value.organization=L),clearable:""},null,8,["items","placeholder","modelValue"]),l.createVNode(ys.VLabel,{class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.team")),1)]),_:1}),l.createVNode(ls.VSelect,{items:l.unref(m),"item-title":"name","item-value":"__id",variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref($).global.t("dialogs.scope.selectTeam"),class:"min-w-50",modelValue:v.value.team,"onUpdate:modelValue":D[2]||(D[2]=L=>v.value.team=L),clearable:""},null,8,["items","placeholder","modelValue"])])])]),_:1},8,["loading","title"])],64))}}),b$={},I$={class:"double-ring-spinner-container"};function S$(n,e){return l.openBlock(),l.createElementBlock("div",I$,e[0]||(e[0]=[l.createElementVNode("div",{class:"spinner-loading"},[l.createElementVNode("div"),l.createElementVNode("div"),l.createElementVNode("div",null,[l.createElementVNode("div")]),l.createElementVNode("div",null,[l.createElementVNode("div")])],-1)]))}const FT=Sa(b$,[["render",S$],["__scopeId","data-v-00d7a69f"]]),A$={key:0,class:"_jspinner-overlay_jj"},VT=l.defineComponent({__name:"GlobalSpinner",setup(n){return(e,t)=>l.unref(ve)?(l.openBlock(),l.createElementBlock("div",A$,t[0]||(t[0]=[l.createElementVNode("div",{class:"j-double-ring-spinner-container"},[l.createElementVNode("div",{class:"j-global-spinner-loading"},[l.createElementVNode("div"),l.createElementVNode("div"),l.createElementVNode("div",null,[l.createElementVNode("div")]),l.createElementVNode("div",null,[l.createElementVNode("div")])])],-1)]))):l.createCommentVNode("",!0)}}),HT=l.defineComponent({__name:"SubMenu",props:{title:{}},setup(n,{expose:e}){return e({props:n}),(r,o)=>(l.openBlock(),l.createBlock(Qt.VListItem,{onClick:o[0]||(o[0]=()=>{}),density:"compact"},{append:l.withCtx(()=>[l.createVNode(l.unref(VF))]),default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.title),1)]),_:1}),l.createVNode(gf.VMenu,{activator:"parent","open-on-hover":"",submenu:"",density:"compact"},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3})]),_:3}))}}),k$=Object.freeze(Object.defineProperty({__proto__:null,AvatarPicture:fC,ColumnSettingsDialog:Uf,ConfirmDialog:dC,ContextMenu:mC,CopyButton:Bl,DeleteAllBtn:Cf,DotsMenu:uC,EditButton:lC,FormHeadless:GE,FormMetadata:ou,GlobalScopeFilter:BT,GlobalSpinner:VT,JAvatar:hC,JBtn:Oy,JDialog:Ls,JForm:WE,JIconBtn:Ry,JSelect:VE,JTextArea:HE,JTextField:gE,ParentCard:Kl,SearchFilter:Jl,SpinnerLoader:FT,SubMenu:HT,TabFormHeader:zE,TableAdvanced:XC,TableCard:Bf,TableCardsView:fE,TableHeader:ZC,UiTable:gC},Symbol.toStringTag,{value:"Module"})),N$=e0(),R$={transition:"Vue-Toastification__fade",maxToasts:20,newestOnTop:!0};let mh=!1;const gh=l.ref(!1),Jn=l.ref([]),Iy=l.ref([]),$t=l.ref(null),ea=l.ref([]),O$=()=>{const n=wr(),e=async p=>{gh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Uo.getBranchList(w);C&&(Jn.value=C,mh=!0),gh.value=!1},t=async p=>(Jn.value.length||await e(p),Jn.value);function r(p){if(!Jn.value)throw new Error("Data not stored yet");const w=Oa(Jn.value,p,["name","description"]);return p!==""?w:Jn.value}const o=p=>{Iy.value=p},a=p=>{$t.value=Ra.cloneDeep(p)},c=async p=>await Uo.getBranch(p),d=async()=>{if($t.value!=null){const p=await Uo.createBranch($t.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Branch"})),mh&&Jn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if($t.value&&$t.value.__id){const p=await Uo.updateBranch($t.value);if(mh&&p){const w=Jn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Jn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Branch"}))):n.error($.global.t("toast.error.update_failed",{entity:"Branch"})),p}}else n.error($.global.t("toast.error.update_failed",{entity:"Branch"}))},m=async()=>{if($t.value&&$t.value.created_at){await Uo.deactivateBranch($t.value.__id);const p=Jn.value.findIndex(w=>{var C;return w.__id===((C=$t.value)==null?void 0:C.__id)});if(p!==-1)return Jn.value.splice(p,1),$t.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Branch"}))}};async function g(p){ve.value=!0;try{if($t.value&&$t.value.__id){const w={...p,branch:$t.value.__id};if(!await Mn.updateTeam(w)){n.error($.global.t("toast.error.link_failed",{entity:"Team"}));return}if(ea.value.findIndex(k=>k.__id===p.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Team"})),ea.value.push(w),w;n.info($.global.t("toast.info.already_linked",{entity:"Team"}))}else throw new Error("Item is not defined")}catch(w){console.error(w)}finally{ve.value=!1}}async function v(p){if(ve.value=!0,$t.value&&$t.value.__id){const w={...p,branch:null};if(!await Mn.updateTeam(w))return;const T=ea.value.findIndex(k=>k.__id===p.__id);if(T!==-1)return ea.value.splice(T,1),ve.value=!1,ea.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:Jn,columns:Iy,item:$t,loading:gh,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,branchTeams:ea,linkTeam:g,unlinkTeam:v}};function P$(){const n=Da("https://api.jplan.com.br/management/division"),{error:e}=wr();return{async getDivisionList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Division"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getDivisionList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Division"}));return}},async createDivision(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Division"})),a}},async updateDivision(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"Division"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Division"})),a}},async getDivision(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Division"})),new Error(a.data.error);return a.data}catch(a){throw console.error("Error in getDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Division"})),a}},async activateDivision(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Division"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Division"})),a}},async deactivateDivision(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Division"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Division"})),a}}}}const ca=P$();let ph=!1;const _h=l.ref(!1),Qn=l.ref([]),Sy=l.ref([]),Kt=l.ref(null),ta=l.ref([]),M$=()=>{const n=wr(),e=async p=>{_h.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await ca.getDivisionList(w);C&&(Qn.value=C,ph=!0),_h.value=!1},t=async p=>(Qn.value.length||await e(p),Qn.value);function r(p){if(!Qn.value)throw new Error("Data not stored yet");const w=Oa(Qn.value,p,["name","description"]);return p!==""?w:Qn.value}const o=p=>{Sy.value=p},a=p=>{Kt.value=Ra.cloneDeep(p)},c=async p=>await ca.getDivision(p),d=async()=>{if(Kt.value!=null){const p=await ca.createDivision(Kt.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Division"})),ph&&Qn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if(ve.value=!0,Kt.value&&Kt.value.__id){const p=await ca.updateDivision(Kt.value);if(ph&&(p!=null&&p.data.__id)){const w=Qn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Qn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Division"}))):n.error($.global.t("toast.error.update_failed",{entity:"Division"})),ve.value=!1,p}}else ve.value=!1,n.error($.global.t("toast.error.update_failed",{entity:"Division"}))},m=async()=>{if(ve.value=!0,Kt.value&&Kt.value.created_at){await ca.deactivateDivision(Kt.value.__id);const p=Qn.value.findIndex(w=>{var C;return w.__id===((C=Kt.value)==null?void 0:C.__id)});if(p!==-1)return Qn.value.splice(p,1),Kt.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Division"}))}ve.value=!1};async function g(p){ve.value=!0;try{if(Kt.value&&Kt.value.__id){const w={...p,division:Kt.value.__id};return await xo.updateOrg(w)?(ta.value.findIndex(k=>k.__id===p.__id)===-1?(n.success($.global.t("toast.success.link_success",{entity:"Organization"})),ta.value.push(w)):n.info($.global.t("toast.info.already_linked",{entity:"Organization"})),w):void 0}else throw new Error("Item is not defined")}catch(w){console.error(w)}finally{ve.value=!1}}async function v(p){if(ve.value=!0,Kt.value&&Kt.value.__id){const w={...p,division:null};if(!await xo.updateOrg(w))return;const T=ta.value.findIndex(k=>k.__id===p.__id);if(T!==-1)ta.value.splice(T,1);else throw new Error("Item not found to remove")}else throw new Error("Item is not defined");return ve.value=!1,ta.value}return{data:Qn,columns:Sy,item:Kt,loading:_h,__init__:e,filterData:r,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgs:ta,linkDivision:g,unlinkDivision:v}};function D$(){const n=Da("https://api.jplan.com.br/management/user"),{error:e}=wr();return{async getManageUserList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getManageUserList:",r),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async createManageUser(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"User"})),a}},async updateManageUser(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"User"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"User"})),a}},async getManageUser(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(a.data.error);return a.data}catch(a){console.error("Error in getManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async activateManageUser(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"User"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"User"})),a}},async deactivateManageUser(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"User"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"User"})),a}}}}const la=D$();let vh=!1,yh=l.ref(!1);const Xn=l.ref([]),Ay=l.ref([]),Zn=l.ref(null),L$=l.ref(null),x$=l.ref([]),U$=()=>{const n=wr(),e=async g=>{yh.value=!0;const v=g?`_active eq true and ${g}`:"_active eq true",p=await la.getManageUserList(v);p&&(Xn.value=p,vh=!0),yh.value=!1},t=async g=>(Xn.value.length||await e(g),Xn.value);function r(g){if(!Xn.value)throw new Error("Data not stored yet");const v=Oa(Xn.value,g,["name","description"]);return g!==""?v:Xn.value}return{data:Xn,loading:yh,columns:Ay,item:Zn,filterData:r,__init__:e,getData:t,setColumns:g=>{Ay.value=g},setItem:g=>{Zn.value=Ra.cloneDeep(g)},getItem:async g=>await la.getManageUser(g),createItem:async()=>{if(Zn.value!=null){const g=crypto.randomUUID(),v=await la.createManageUser({...Zn.value,__id:g});return v!=null&&v.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"User"})),vh&&Xn.value.push(v.data)),v==null?void 0:v.data}},updateItem:async()=>{if(ve.value=!0,Zn.value&&Zn.value.created_at){const g=await la.updateManageUser(Zn.value);if(vh&&(g!=null&&g.data)){const v=Xn.value.findIndex(p=>p.__id===(g==null?void 0:g.data.__id));v!==-1?(Xn.value[v]=g==null?void 0:g.data,n.success($.global.t("toast.success.update_success",{entity:"User"}))):n.error($.global.t("toast.error.update_failed",{entity:"User"}))}return ve.value=!1,g==null?void 0:g.data}},removeItem:async()=>{if(Zn.value&&Zn.value.created_at){try{await la.deactivateManageUser(Zn.value.__id)}catch{n.error($.global.t("toast.error.deactivate_failed",{entity:"User"}));return}const g=Xn.value.findIndex(v=>{var p;return v.__id===((p=Zn.value)==null?void 0:p.__id)});if(g!==-1)return Xn.value.splice(g,1),n.success($.global.t("toast.success.deactivate_success",{entity:"User"})),Zn.value}},userOrg:L$,userTeams:x$}},Ch=Object.freeze({colNum:24,rowHeight:50,useCssTransforms:!0,responsive:!0,margin:[12,10]}),na=l.ref(!1),B$=l.ref([]);function F$(){const n=l.ref({...Ch,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"});function e(){if(na.value=!na.value,n.value.isDraggable=na.value,n.value.isResizable=na.value,!na.value){n.value.useStyleCursor=!0,n.value.cursor="pointer";return}n.value.useStyleCursor=!1,n.value.cursor="move"}function t(){n.value={...Ch,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"}}return{DEFAULT_CONFIG:Ch,config:n,layout:B$,edition:na,toggleEdit:e,resetLayout:t}}const V$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetTask-tbL19wQS.js"))),H$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetImage-DhplL-E6.js"))),$$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetShortcut-CxkFA3gm.js"))),K$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetSpacer-CUbnre9B.js"))),W$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetLabel-DYPZV3x3.js"))),z$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartBar-ChMg_dbz.js"))),G$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartPie-C2AIgVQ2.js"))),q$={WidgetSpacer:K$,WidgetLabel:W$,WidgetTask:V$,WidgetImage:H$,WidgetShortcut:$$,WidgetChartBar:z$,WidgetChartPie:G$},j$={defaultI18n:!0},Y$=(n,e)=>{const t={...j$,...e};n.use(N$),n.use(nP,R$),t.defaultI18n&&n.use($),Object.entries(k$).forEach(([r,o])=>{n.component(r,o)}),Object.entries(AO).forEach(([r,o])=>{n.provide(r,o)})},J$={install:Y$};exports.ContextMenu=mC;exports.EmptyListImg=Lh;exports.EventBus=Hl;exports.FormHeadless=GE;exports.HttpCore=cF;exports.I18nMessages=Om;exports.SpinnerLoader=FT;exports.TableCardsView=fE;exports.TableHeader=ZC;exports.__spinner=ve;exports._export_sfc=Sa;exports._sfc_main=Ls;exports._sfc_main$1=gC;exports._sfc_main$10=Oy;exports._sfc_main$11=Cf;exports._sfc_main$12=lC;exports._sfc_main$13=Ry;exports._sfc_main$14=VE;exports._sfc_main$15=HE;exports._sfc_main$16=gE;exports._sfc_main$17=WE;exports._sfc_main$18=zE;exports._sfc_main$19=Kl;exports._sfc_main$2=XC;exports._sfc_main$20=hC;exports._sfc_main$21=fC;exports._sfc_main$22=HT;exports._sfc_main$23=BT;exports._sfc_main$24=VT;exports._sfc_main$3=Uf;exports._sfc_main$4=Bf;exports._sfc_main$5=Jl;exports._sfc_main$6=dC;exports._sfc_main$7=Bl;exports._sfc_main$8=uC;exports._sfc_main$9=ou;exports.branchInstance=Uo;exports.coreClient=Rm;exports.createToastInterface=ws;exports.dateFormat=us;exports.divisionInstance=ca;exports.filterQuery=Oa;exports.globalEventBus=yf;exports.i18n=$;exports.index=J$;exports.manageUserInstance=la;exports.msal=Gt;exports.orgInstance=xo;exports.provideToast=tP;exports.scopedClient=Da;exports.setupAuthGuard=_$;exports.teamInstance=Mn;exports.toastInjectionKey=$l;exports.useAuth=Nm;exports.useBranchStore=O$;exports.useCustomizer=i0;exports.useDashboardStore=F$;exports.useDialog=Ms;exports.useDivisionStore=M$;exports.useManageUserStore=U$;exports.useOrganizationStore=xT;exports.useSession=vu;exports.useTeamStore=UT;exports.useToast=wr;exports.widgets=q$;
113
+ ${c}`);return}throw ty(e.error,e.error_description,e.suberror)?new Er(e.error,e.error_description,e.suberror,e.timestamp||F.EMPTY_STRING,e.trace_id||F.EMPTY_STRING,e.correlation_id||F.EMPTY_STRING,e.claims||F.EMPTY_STRING,a):c}}async handleServerTokenResponse(e,t,r,o,a,c,d,h,m){var C;(C=this.performanceClient)==null||C.addQueueMeasurement(x.HandleServerTokenResponse,e.correlation_id);let g;if(e.id_token){if(g=Si(e.id_token||F.EMPTY_STRING,this.cryptoObj.base64Decode),a&&a.nonce&&g.nonce!==a.nonce)throw Y(ew);if(o.maxAge||o.maxAge===0){const T=g.auth_time;if(!T)throw Y(qf);hw(T,o.maxAge)}}this.homeAccountIdentifier=Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,g);let v;a&&a.state&&(v=yr.parseRequestState(this.cryptoObj,a.state)),e.key_id=e.key_id||o.sshKid||void 0;const p=this.generateCacheRecord(e,t,r,o,g,c,a);let w;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),w=new S2(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(w)),d&&!h&&p.account){const T=p.account.generateAccountKey();if(!this.cacheStorage.getAccount(T,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Ti.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,g,v,void 0,m)}await this.cacheStorage.saveCacheRecord(p,o.storeInCache,o.correlationId)}finally{this.persistencePlugin&&this.serializableCache&&w&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(w))}return Ti.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,g,v,e,m)}generateCacheRecord(e,t,r,o,a,c,d){const h=t.getPreferredCache();if(!h)throw Y(Yf);const m=kw(a);let g,v;e.id_token&&a&&(g=au(this.homeAccountIdentifier,h,e.id_token,this.clientId,m||""),v=dm(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,a,e.client_info,h,m,d,void 0,this.logger));let p=null;if(e.access_token){const T=e.scope?vt.fromString(e.scope):new vt(o.scopes||[]),k=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,I=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,N=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,D=r+k,L=D+I,K=N&&N>0?r+N:void 0;p=su(this.homeAccountIdentifier,h,e.access_token,this.clientId,m||t.tenant||"",T.printScopes(),D,L,this.cryptoObj.base64Decode,K,e.token_type,c,e.key_id,o.claims,o.requestedClaimsHash)}let w=null;if(e.refresh_token){let T;if(e.refresh_token_expires_in){const k=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;T=r+k}w=fw(this.homeAccountIdentifier,h,e.refresh_token,this.clientId,e.foci,c,T)}let C=null;return e.foci&&(C={clientId:this.clientId,environment:h,familyId:e.foci}),{account:v,idToken:g,accessToken:p,refreshToken:w,appMetadata:C}}static async generateAuthenticationResult(e,t,r,o,a,c,d,h,m){var D,L,K,q,M;let g=F.EMPTY_STRING,v=[],p=null,w,C,T=F.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===Ge.POP&&!a.popKid){const ce=new ba(e),{secret:ae,keyId:X}=r.accessToken;if(!X)throw Y(Jf);g=await ce.signPopToken(ae,X,a)}else g=r.accessToken.secret;v=vt.fromString(r.accessToken.target).asArray(),p=new Date(Number(r.accessToken.expiresOn)*1e3),w=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),r.accessToken.refreshOn&&(C=new Date(Number(r.accessToken.refreshOn)*1e3))}r.appMetadata&&(T=r.appMetadata.familyId===ps?ps:"");const k=(c==null?void 0:c.oid)||(c==null?void 0:c.sub)||"",I=(c==null?void 0:c.tid)||"";h!=null&&h.spa_accountid&&r.account&&(r.account.nativeAccountId=h==null?void 0:h.spa_accountid);const N=r.account?im(r.account.getAccountInfo(),void 0,c,(D=r.idToken)==null?void 0:D.secret):null;return{authority:t.canonicalAuthority,uniqueId:k,tenantId:I,scopes:v,account:N,idToken:((L=r==null?void 0:r.idToken)==null?void 0:L.secret)||"",idTokenClaims:c||{},accessToken:g,fromCache:o,expiresOn:p,extExpiresOn:w,refreshOn:C,correlationId:a.correlationId,requestId:m||F.EMPTY_STRING,familyId:T,tokenType:((K=r.accessToken)==null?void 0:K.tokenType)||F.EMPTY_STRING,state:d?d.userRequestState:F.EMPTY_STRING,cloudGraphHostName:((q=r.account)==null?void 0:q.cloudGraphHostName)||F.EMPTY_STRING,msGraphHost:((M=r.account)==null?void 0:M.msGraphHost)||F.EMPTY_STRING,code:h==null?void 0:h.spa_code,fromNativeBroker:!1}}}function dm(n,e,t,r,o,a,c,d,h,m,g){g==null||g.verbose("setCachedAccount called");const p=n.getAccountKeys().find(I=>I.startsWith(t));let w=null;p&&(w=n.getAccount(p,g));const C=w||Pt.createAccount({homeAccountId:t,idTokenClaims:o,clientInfo:a,environment:c,cloudGraphHostName:h==null?void 0:h.cloud_graph_host_name,msGraphHost:h==null?void 0:h.msgraph_host,nativeAccountId:m},e,r),T=C.tenantProfiles||[],k=d||C.realm;if(k&&!T.find(I=>I.tenantId===k)){const I=om(t,C.localAccountId,k,o);T.push(I)}return C.tenantProfiles=T,C}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Bw(n,e,t){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.0 2024-11-05 */class Fw extends lm{constructor(e,t){var r;super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=(r=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:r.defaultScopes}async getAuthCodeUrl(e){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(x.GetAuthCodeUrl,e.correlationId);const t=await Q(this.createAuthCodeUrlQueryString.bind(this),x.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return De.appendQueryString(this.authority.authorizationEndpoint,t)}async acquireToken(e,t){var d,h;if((d=this.performanceClient)==null||d.addQueueMeasurement(x.AuthClientAcquireToken,e.correlationId),!e.code)throw Y(rw);const r=zr(),o=await Q(this.executeTokenRequest.bind(this),x.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),a=(h=o.headers)==null?void 0:h[dn.X_MS_REQUEST_ID],c=new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return c.validateTokenResponse(o.body),Q(c.handleServerTokenResponse.bind(c),x.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,t,void 0,void 0,void 0,a)}handleFragmentResponse(e,t){if(new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw Y(cw);return e}getLogoutUri(e){if(!e)throw Xe(Cw);const t=this.createLogoutUrlQueryString(e);return De.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t){var m,g;(m=this.performanceClient)==null||m.addQueueMeasurement(x.AuthClientExecuteTokenRequest,t.correlationId);const r=this.createTokenQueryParameters(t),o=De.appendQueryString(e.tokenEndpoint,r),a=await Q(this.createTokenRequestBody.bind(this),x.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t);let c;if(t.clientInfo)try{const v=Rl(t.clientInfo,this.cryptoUtils.base64Decode);c={credential:`${v.uid}${tn.CLIENT_INFO_SEPARATOR}${v.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(v){this.logger.verbose("Could not parse client info for CCS Header: "+v)}const d=this.createTokenRequestHeaders(c||t.ccsCredential),h={clientId:((g=t.tokenBodyParameters)==null?void 0:g.clientId)||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return Q(this.executePostToTokenEndpoint.bind(this),x.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(o,a,d,h,t.correlationId,x.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,a;(o=this.performanceClient)==null||o.addQueueMeasurement(x.AuthClientCreateTokenRequestBody,e.correlationId);const t=new vs(e.correlationId,this.performanceClient);if(t.addClientId(e.embeddedClientId||((a=e.tokenBodyParameters)==null?void 0:a[wi])||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):ia.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!Zh(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const c=this.config.clientCredentials.clientAssertion;t.addClientAssertion(await Bw(c.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(c.assertionType)}if(t.addGrantType(GE.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Ge.POP){const c=new ba(this.cryptoUtils,this.performanceClient);let d;e.popKid?d=this.cryptoUtils.encodeKid(e.popKid):d=(await Q(c.generateCnf.bind(c),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(d)}else if(e.authenticationScheme===Ge.SSH)if(e.sshJwk)t.addSshJwk(e.sshJwk);else throw Xe(cu);(!vr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities);let r;if(e.clientInfo)try{const c=Rl(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${c.uid}${tn.CLIENT_INFO_SEPARATOR}${c.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(c){this.logger.verbose("Could not parse client info for CCS Header: "+c)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case Bn.HOME_ACCOUNT_ID:try{const c=fa(r.credential);t.addCcsOid(c)}catch(c){this.logger.verbose("Could not parse home account ID for CCS Header: "+c)}break;case Bn.UPN:t.addCcsUpn(r.credential);break}return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Xv])&&t.addExtraQueryParameters({[Xv]:"1"}),t.createQueryString()}async createAuthCodeUrlQueryString(e){var a,c;const t=e.correlationId||this.config.cryptoInterface.createNewGuid();(a=this.performanceClient)==null||a.addQueueMeasurement(x.AuthClientCreateQueryString,t);const r=new vs(t,this.performanceClient);r.addClientId(e.embeddedClientId||((c=e.extraQueryParameters)==null?void 0:c[wi])||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];if(r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri),r.addCorrelationId(t),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),Zh(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==Bt.SELECT_ACCOUNT)if(e.sid&&e.prompt===Bt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const d=this.extractAccountSid(e.account);let h=this.extractLoginHint(e.account);if(h&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),h=null),h){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(h);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(d&&e.prompt===Bt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(d);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const m=fa(e.account.homeAccountId);r.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,r),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Ge.POP)){const d=new ba(this.cryptoUtils);let h;e.popKid?h=this.cryptoUtils.encodeKid(e.popKid):h=(await Q(d.generateCnf.bind(d),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(h)}return r.createQueryString()}createLogoutUrlQueryString(e){const t=new vs(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,t),t.createQueryString()}addExtraQueryParams(e,t){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){var t;return((t=e.idTokenClaims)==null?void 0:t.sid)||null}extractLoginHint(e){var t;return((t=e.idTokenClaims)==null?void 0:t.login_hint)||null}}/*! @azure/msal-common v14.16.0 2024-11-05 */const k2=300;class nf extends lm{constructor(e,t){super(e,t)}async acquireToken(e){var c,d;(c=this.performanceClient)==null||c.addQueueMeasurement(x.RefreshTokenClientAcquireToken,e.correlationId);const t=zr(),r=await Q(this.executeTokenRequest.bind(this),x.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),o=(d=r.headers)==null?void 0:d[dn.X_MS_REQUEST_ID],a=new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return a.validateTokenResponse(r.body),Q(a.handleServerTokenResponse.bind(a),x.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,o)}async acquireTokenByRefreshToken(e){var r;if(!e)throw Xe(yw);if((r=this.performanceClient)==null||r.addQueueMeasurement(x.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Y(jf);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const a=o instanceof Er&&o.errorCode===Dl,c=o instanceof Wo&&o.errorCode===Bv.INVALID_GRANT_ERROR&&o.subError===Bv.CLIENT_MISMATCH_ERROR;if(a||c)return Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return Q(this.acquireTokenWithCachedRefreshToken.bind(this),x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,t){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(x.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const r=Ai(this.cacheManager.getRefreshToken.bind(this.cacheManager),x.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,t,void 0,this.performanceClient,e.correlationId);if(!r)throw tf(Dl);if(r.expiresOn&&Xh(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||k2))throw tf(um);const o={...e,refreshToken:r.secret,authenticationScheme:e.authenticationScheme||Ge.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Bn.HOME_ACCOUNT_ID}};try{return await Q(this.acquireToken.bind(this),x.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(o)}catch(c){if(c instanceof Er&&c.subError===du){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const d=ha(r);this.cacheManager.removeRefreshToken(d)}throw c}}async executeTokenRequest(e,t){var h,m;(h=this.performanceClient)==null||h.addQueueMeasurement(x.RefreshTokenClientExecuteTokenRequest,e.correlationId);const r=this.createTokenQueryParameters(e),o=De.appendQueryString(t.tokenEndpoint,r),a=await Q(this.createTokenRequestBody.bind(this),x.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),c=this.createTokenRequestHeaders(e.ccsCredential),d={clientId:((m=e.tokenBodyParameters)==null?void 0:m.clientId)||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return Q(this.executePostToTokenEndpoint.bind(this),x.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(o,a,c,d,e.correlationId,x.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,a,c;(o=this.performanceClient)==null||o.addQueueMeasurement(x.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const t=e.correlationId,r=new vs(t,this.performanceClient);if(r.addClientId(e.embeddedClientId||((a=e.tokenBodyParameters)==null?void 0:a[wi])||this.config.authOptions.clientId),e.redirectUri&&r.addRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,(c=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:c.defaultScopes),r.addGrantType(GE.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!Zh(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),r.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const d=this.config.clientCredentials.clientAssertion;r.addClientAssertion(await Bw(d.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(d.assertionType)}if(e.authenticationScheme===Ge.POP){const d=new ba(this.cryptoUtils,this.performanceClient);let h;e.popKid?h=this.cryptoUtils.encodeKid(e.popKid):h=(await Q(d.generateCnf.bind(d),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(h)}else if(e.authenticationScheme===Ge.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Xe(cu);if((!vr.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Bn.HOME_ACCOUNT_ID:try{const d=fa(e.ccsCredential.credential);r.addCcsOid(d)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Bn.UPN:r.addCcsUpn(e.ccsCredential.credential);break}return e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),r.createQueryString()}}/*! @azure/msal-common v14.16.0 2024-11-05 */class N2 extends lm{constructor(e,t){super(e,t)}async acquireToken(e){var t;try{const[r,o]=await this.acquireCachedToken({...e,scopes:(t=e.scopes)!=null&&t.length?e.scopes:[...Pa]});return o===Mo.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new nf(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof iu&&r.errorCode===co)return new nf(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){var h;(h=this.performanceClient)==null||h.addQueueMeasurement(x.SilentFlowClientAcquireCachedToken,e.correlationId);let t=Mo.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!vr.isEmptyObj(e.claims))throw this.setCacheOutcome(Mo.FORCE_REFRESH_OR_CLAIMS,e.correlationId),Y(co);if(!e.account)throw Y(jf);const r=e.account.tenantId||v2(e.authority),o=this.cacheManager.getTokenKeys(),a=this.cacheManager.getAccessToken(e.account,e,o,r,this.performanceClient,e.correlationId);if(a){if(oV(a.cachedAt)||Xh(a.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Mo.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Y(co);a.refreshOn&&Xh(a.refreshOn,0)&&(t=Mo.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(Mo.NO_CACHED_ACCESS_TOKEN,e.correlationId),Y(co);const c=e.authority||this.authority.getPreferredCache(),d={account:this.cacheManager.readAccountFromCache(e.account),accessToken:a,idToken:this.cacheManager.getIdToken(e.account,o,r,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(c)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await Q(this.generateResultFromCacheRecord.bind(this),x.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(d,e),t]}setCacheOutcome(e,t){var r,o;(r=this.serverTelemetryManager)==null||r.setCacheOutcome(e),(o=this.performanceClient)==null||o.addFields({cacheOutcome:e},t),e!==Mo.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(x.SilentFlowClientGenerateResultFromCacheRecord,t.correlationId);let r;if(e.idToken&&(r=Si(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||t.maxAge===0){const a=r==null?void 0:r.auth_time;if(!a)throw Y(qf);hw(a,t.maxAge)}return Ti.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const R2={sendGetRequestAsync:()=>Promise.reject(Y(Ae)),sendPostRequestAsync:()=>Promise.reject(Y(Ae))};/*! @azure/msal-common v14.16.0 2024-11-05 */const ny=",",Vw="|";function O2(n){const{skus:e,libraryName:t,libraryVersion:r,extensionName:o,extensionVersion:a}=n,c=new Map([[0,[t,r]],[2,[o,a]]]);let d=[];if(e!=null&&e.length){if(d=e.split(ny),d.length<4)return e}else d=Array.from({length:4},()=>Vw);return c.forEach((h,m)=>{var g,v;h.length===2&&((g=h[0])!=null&&g.length)&&((v=h[1])!=null&&v.length)&&P2({skuArr:d,index:m,skuName:h[0],skuVersion:h[1]})}),d.join(ny)}function P2(n){const{skuArr:e,index:t,skuName:r,skuVersion:o}=n;t>=e.length||(e[t]=[r,o].join(Vw))}class Os{constructor(e,t){this.cacheOutcome=Mo.NOT_APPLICABLE,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||F.EMPTY_STRING,this.wrapperVer=e.wrapperVer||F.EMPTY_STRING,this.telemetryCacheKey=Wt.CACHE_KEY+tn.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Wt.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r!=null&&r.length&&t.push(`broker_error=${r}`);const o=t.join(Wt.VALUE_SEPARATOR),a=this.getRegionDiscoveryFields(),c=[e,a].join(Wt.VALUE_SEPARATOR);return[Wt.SCHEMA_VERSION,c,o].join(Wt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=Os.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(Wt.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(Wt.VALUE_SEPARATOR),a=e.errors.length,c=t<a?Wt.OVERFLOW_TRUE:Wt.OVERFLOW_FALSE,d=[a,c].join(Wt.VALUE_SEPARATOR);return[Wt.SCHEMA_VERSION,e.cacheHits,r,o,d].join(Wt.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=Wt.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof lt?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(Wt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),t=Os.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{const o={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}}static maxErrorsToSend(e){let t,r=0,o=0;const a=e.errors.length;for(t=0;t<a;t++){const c=e.failedRequests[2*t]||F.EMPTY_STRING,d=e.failedRequests[2*t+1]||F.EMPTY_STRING,h=e.errors[t]||F.EMPTY_STRING;if(o+=c.toString().length+d.toString().length+h.length+3,o<Wt.MAX_LAST_HEADER_BYTES)r+=1;else break}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||F.EMPTY_STRING),e.push(this.regionSource||F.EMPTY_STRING),e.push(this.regionOutcome||F.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)}static makeExtraSkuString(e){return O2(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Hw="missing_kid_error",$w="missing_alg_error";/*! @azure/msal-common v14.16.0 2024-11-05 */const M2={[Hw]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[$w]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class hm extends lt{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,hm.prototype)}}function ry(n){return new hm(n,M2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class fm{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw ry(Hw);if(!e.alg)throw ry($w);const t=new fm({typ:e.typ||$F.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class oy{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class D2{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:_2.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new oy}}startPerformanceMeasurement(){return new oy}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const mm="pkce_not_created",rf="crypto_nonexistent",hu="empty_navigate_uri",Kw="hash_empty_error",gm="no_state_in_hash",Ww="hash_does_not_contain_known_properties",zw="unable_to_parse_state",Gw="state_interaction_type_mismatch",qw="interaction_in_progress",jw="popup_window_error",Yw="empty_window_error",bi="user_cancelled",L2="monitor_popup_timeout",Jw="monitor_window_timeout",Qw="redirect_in_iframe",Xw="block_iframe_reload",Zw="block_nested_popups",x2="iframe_closed_prematurely",fu="silent_logout_unsupported",eT="no_account_error",U2="silent_prompt_value_error",tT="no_token_request_cache_error",nT="unable_to_parse_token_request_cache_error",pm="no_cached_authority_error",B2="auth_request_not_set_error",F2="invalid_cache_type",mu="non_browser_environment",aa="database_not_open",Ll="no_network_connectivity",rT="post_request_failed",oT="get_request_failed",of="failed_to_parse_response",iT="unable_to_load_token",_m="crypto_key_not_found",aT="auth_code_required",sT="auth_code_or_nativeAccountId_required",cT="spa_code_and_nativeAccountId_present",vm="database_unavailable",lT="unable_to_acquire_token_from_native_platform",uT="native_handshake_timeout",dT="native_extension_not_installed",Ks="native_connection_not_established",hT="uninitialized_public_client_application",fT="native_prompt_not_supported",mT="invalid_base64_string",gT="invalid_pop_token_request",pT="failed_to_build_headers",_T="failed_to_parse_headers";/*! @azure/msal-browser v3.28.1 2025-01-14 */const io="For more visit: aka.ms/msaljs/browser-errors",V2={[mm]:"The PKCE code challenge and verifier could not be generated.",[rf]:"The crypto object or function is not available.",[hu]:"Navigation URI is empty. Please check stack trace for more info.",[Kw]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${io}`,[gm]:"Hash does not contain state. Please verify that the request originated from msal.",[Ww]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${io}`,[zw]:"Unable to parse state. Please verify that the request originated from msal.",[Gw]:"Hash contains state but the interaction type does not match the caller.",[qw]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${io}`,[jw]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Yw]:"window.open returned null or undefined window object.",[bi]:"User cancelled the flow.",[L2]:`Token acquisition in popup failed due to timeout. ${io}`,[Jw]:`Token acquisition in iframe failed due to timeout. ${io}`,[Qw]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[Xw]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${io}`,[Zw]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[x2]:"The iframe being monitored was closed prematurely.",[fu]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[eT]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[U2]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[tT]:"No token request found in cache.",[nT]:"The cached token request could not be parsed.",[pm]:"No cached authority found.",[B2]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[F2]:"Invalid cache type",[mu]:"Login and token requests are not supported in non-browser environments.",[aa]:"Database is not open!",[Ll]:"No network connectivity. Check your internet connection.",[rT]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[oT]:"Network request failed. Please check the network trace to determine root cause.",[of]:"Failed to parse network response. Check network trace.",[iT]:"Error loading token to cache.",[_m]:"Cryptographic Key or Keypair not found in browser storage.",[aT]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[sT]:"An authorization code or nativeAccountId must be provided to this flow.",[cT]:"Request cannot contain both spa code and native account id.",[vm]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[lT]:`Unable to acquire token from native platform. ${io}`,[uT]:"Timed out while attempting to establish connection to browser extension",[dT]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[Ks]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${io}`,[hT]:`You must call and await the initialize function before attempting to call any other MSAL API. ${io}`,[fT]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[mT]:"Invalid base64 encoded string.",[gT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[pT]:"Failed to build request headers object.",[_T]:"Failed to parse response headers"};class Ws extends lt{constructor(e,t){super(e,V2[e],t),Object.setPrototypeOf(this,Ws.prototype),this.name="BrowserAuthError"}}function ie(n,e){return new Ws(n,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Dn={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ma={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},gi={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},vn={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},iy={GET:"GET",POST:"POST"},Ke={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},Po={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},qc={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},ot={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var le;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(le||(le={}));const ay={scopes:Pa},vT="jwk",af="msal.db",H2=1,$2=`${af}.keys`,Pn={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},K2=[Pn.Default,Pn.Skip,Pn.RefreshTokenAndNetwork],W2="msal.browser.log.level",z2="msal.browser.log.pii";/*! @azure/msal-browser v3.28.1 2025-01-14 */function jc(n){return encodeURIComponent(ym(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function gu(n){return yT(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ym(n){return yT(new TextEncoder().encode(n))}function yT(n){const e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const G2="RSASSA-PKCS1-v1_5",CT="SHA-256",q2=2048,j2=new Uint8Array([1,0,1]),sy="0123456789abcdef",cy=new Uint32Array(1),Y2="crypto_subtle_undefined",Cm={name:G2,hash:CT,modulusLength:q2,publicExponent:j2};function J2(n){if(!window)throw ie(mu);if(!window.crypto)throw ie(rf);if(!n&&!window.crypto.subtle)throw ie(rf,Y2)}async function ET(n,e,t){e==null||e.addQueueMeasurement(x.Sha256Digest,t);const o=new TextEncoder().encode(n);return window.crypto.subtle.digest(CT,o)}function Q2(n){return window.crypto.getRandomValues(n)}function sh(){return window.crypto.getRandomValues(cy),cy[0]}function go(){const n=Date.now(),e=sh()*1024+(sh()&1023),t=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,a=sh();t[0]=n/2**40,t[1]=n/2**32,t[2]=n/2**24,t[3]=n/2**16,t[4]=n/2**8,t[5]=n,t[6]=112|r>>>8,t[7]=r,t[8]=128|o>>>24,t[9]=o>>>16,t[10]=o>>>8,t[11]=o,t[12]=a>>>24,t[13]=a>>>16,t[14]=a>>>8,t[15]=a;let c="";for(let d=0;d<t.length;d++)c+=sy.charAt(t[d]>>>4),c+=sy.charAt(t[d]&15),(d===3||d===5||d===7||d===9)&&(c+="-");return c}async function X2(n,e){return window.crypto.subtle.generateKey(Cm,n,e)}async function ch(n){return window.crypto.subtle.exportKey(vT,n)}async function Z2(n,e,t){return window.crypto.subtle.importKey(vT,n,Cm,e,t)}async function eH(n,e){return window.crypto.subtle.sign(Cm,n,e)}async function wT(n){const e=await ET(n),t=new Uint8Array(e);return gu(t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Ps="storage_not_supported",sf="stubbed_public_client_application_called",xl="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.28.1 2025-01-14 */const gl={[Ps]:"Given storage configuration option was not supported.",[sf]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[xl]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};gl[Ps],gl[sf],gl[xl];class Em extends lt{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Em.prototype)}}function wm(n){return new Em(n,gl[n])}/*! @azure/msal-browser v3.28.1 2025-01-14 */function tH(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function nH(n){const e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Tm(){return window.parent!==window}function rH(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Dn.POPUP_NAME_PREFIX}.`)===0}function lo(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function oH(){const e=new De(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function iH(){if(De.hashContainsKnownProperties(window.location.hash)&&Tm())throw ie(Xw)}function aH(n){if(Tm()&&!n)throw ie(Qw)}function sH(){if(rH())throw ie(Zw)}function TT(){if(typeof window>"u")throw ie(mu)}function bT(n){if(!n)throw ie(hT)}function bm(n){TT(),iH(),sH(),bT(n)}function ly(n,e){if(bm(n),aH(e.system.allowRedirectInIframe),e.cache.cacheLocation===vn.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw wm(xl)}function IT(n){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(n).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function cH(){return go()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ul{navigateInternal(e,t){return Ul.defaultNavigateWindow(e,t)}navigateExternal(e,t){return Ul.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(r=>{setTimeout(()=>{r(!0)},t.timeout)})}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class lH{async sendGetRequestAsync(e,t){let r,o={},a=0;const c=uy(t);try{r=await fetch(e,{method:iy.GET,headers:c})}catch{throw ie(window.navigator.onLine?oT:Ll)}o=dy(r.headers);try{return a=r.status,{headers:o,body:await r.json(),status:a}}catch{throw Zv(ie(of),a,o)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=uy(t);let a,c=0,d={};try{a=await fetch(e,{method:iy.POST,headers:o,body:r})}catch{throw ie(window.navigator.onLine?rT:Ll)}d=dy(a.headers);try{return c=a.status,{headers:d,body:await a.json(),status:c}}catch{throw Zv(ie(of),c,d)}}}function uy(n){try{const e=new Headers;if(!(n&&n.headers))return e;const t=n.headers;return Object.entries(t).forEach(([r,o])=>{e.append(r,o)}),e}catch{throw ie(pT)}}function dy(n){try{const e={};return n.forEach((t,r)=>{e[r]=t}),e}catch{throw ie(_T)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const uH=6e4,cf=1e4,dH=3e4,hH=2e3;function fH({auth:n,cache:e,system:t,telemetry:r},o){const a={clientId:F.EMPTY_STRING,authority:`${F.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:F.EMPTY_STRING,authorityMetadata:F.EMPTY_STRING,redirectUri:typeof window<"u"?lo():"",postLogoutRedirectUri:F.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:fo.AAD,OIDCOptions:{serverResponseType:$s.FRAGMENT,defaultScopes:[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Xf.None,tenant:F.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},c={cacheLocation:vn.SessionStorage,temporaryCacheLocation:vn.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===vn.LocalStorage),claimsBasedCachingEnabled:!1},d={loggerCallback:()=>{},logLevel:tt.Info,piiLoggingEnabled:!1},m={...{...Mw,loggerOptions:d,networkClient:o?new lH:R2,navigationClient:new Ul,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||uH,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||cf,navigateFrameWait:0,redirectNavigationTimeout:dH,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||hH,pollIntervalMilliseconds:Dn.DEFAULT_POLL_INTERVAL_MS},...t,loggerOptions:(t==null?void 0:t.loggerOptions)||d},g={application:{appName:F.EMPTY_STRING,appVersion:F.EMPTY_STRING},client:new D2};if((n==null?void 0:n.protocolMode)!==fo.OIDC&&(n!=null&&n.OIDCOptions)&&new Ko(m.loggerOptions).warning(JSON.stringify(Xe(Iw))),n!=null&&n.protocolMode&&n.protocolMode!==fo.AAD&&(m!=null&&m.allowNativeBroker))throw Xe(Sw);return{auth:{...a,...n,OIDCOptions:{...a.OIDCOptions,...n==null?void 0:n.OIDCOptions}},cache:{...c,...e},system:m,telemetry:{...g,...r}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const mH="@azure/msal-browser",pu="3.28.1";/*! @azure/msal-browser v3.28.1 2025-01-14 */class Im{static loggerCallback(e,t){switch(e){case tt.Error:console.error(t);return;case tt.Info:console.info(t);return;case tt.Verbose:console.debug(t);return;case tt.Warning:console.warn(t);return;default:console.log(t);return}}constructor(e){var h;this.browserEnvironment=typeof window<"u",this.config=fH(e,this.browserEnvironment);let t;try{t=window[vn.SessionStorage]}catch{}const r=t==null?void 0:t.getItem(W2),o=(h=t==null?void 0:t.getItem(z2))==null?void 0:h.toLowerCase(),a=o==="true"?!0:o==="false"?!1:void 0,c={...this.config.system.loggerOptions},d=r&&Object.keys(tt).includes(r)?tt[r]:void 0;d&&(c.loggerCallback=Im.loggerCallback,c.logLevel=d),a!==void 0&&(c.piiLoggingEnabled=a),this.logger=new Ko(c,mH,pu),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ii extends Im{getModuleName(){return Ii.MODULE_NAME}getId(){return Ii.ID}async initialize(){return this.available=typeof window<"u",this.available}}Ii.MODULE_NAME="";Ii.ID="StandardOperatingContext";/*! @azure/msal-browser v3.28.1 2025-01-14 */function Kr(n){return new TextDecoder().decode(gH(n))}function gH(n){let e=n.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw ie(mT)}const t=atob(e);return Uint8Array.from(t,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class pH{constructor(){this.dbName=af,this.version=H2,this.tableName=$2,this.dbOpen=!1}async open(){return new Promise((e,t)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",o=>{o.target.result.createObjectStore(this.tableName)}),r.addEventListener("success",o=>{const a=o;this.db=a.target.result,this.dbOpen=!0,e()}),r.addEventListener("error",()=>t(ie(vm)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);c.addEventListener("success",d=>{const h=d;this.closeConnection(),t(h.target.result)}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async setItem(e,t){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(ie(aa));const d=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);d.addEventListener("success",()=>{this.closeConnection(),r()}),d.addEventListener("error",h=>{this.closeConnection(),o(h)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);c.addEventListener("success",()=>{this.closeConnection(),t()}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(ie(aa));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();a.addEventListener("success",c=>{const d=c;this.closeConnection(),e(d.target.result)}),a.addEventListener("error",c=>{this.closeConnection(),t(c)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((t,r)=>{if(!this.db)return r(ie(aa));const c=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);c.addEventListener("success",d=>{const h=d;this.closeConnection(),t(h.target.result===1)}),c.addEventListener("error",d=>{this.closeConnection(),r(d)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{const r=window.indexedDB.deleteDatabase(af),o=setTimeout(()=>t(!1),200);r.addEventListener("success",()=>(clearTimeout(o),e(!0))),r.addEventListener("blocked",()=>(clearTimeout(o),e(!0))),r.addEventListener("error",()=>(clearTimeout(o),t(!1)))})}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class lf{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,t){this.cache.set(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((t,r)=>{e.push(r)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class _H{constructor(e){this.inMemoryCache=new lf,this.indexedDBCache=new pH,this.logger=e}handleDatabaseAccessError(e){if(e instanceof Ws&&e.errorCode===vm)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(r){this.handleDatabaseAccessError(r)}return t}async setItem(e,t){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(r){this.handleDatabaseAccessError(r)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(t){this.handleDatabaseAccessError(t)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t)}return e}async containsKey(e){const t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(r){this.handleDatabaseAccessError(r)}return t}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ia{constructor(e,t,r){this.logger=e,J2(r??!1),this.cache=new _H(this.logger),this.performanceClient=t}createNewGuid(){return go()}base64Encode(e){return ym(e)}base64Decode(e){return Kr(e)}base64UrlEncode(e){return jc(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var g;const t=(g=this.performanceClient)==null?void 0:g.startMeasurement(x.CryptoOptsGetPublicKeyThumbprint,e.correlationId),r=await X2(Ia.EXTRACTABLE,Ia.POP_KEY_USAGES),o=await ch(r.publicKey),a={e:o.e,kty:o.kty,n:o.n},c=hy(a),d=await this.hashString(c),h=await ch(r.privateKey),m=await Z2(h,!1,["sign"]);return await this.cache.setItem(d,{privateKey:m,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),t&&t.end({success:!0}),d}async removeTokenBindingKey(e){return await this.cache.removeItem(e),!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,t,r,o){var D;const a=(D=this.performanceClient)==null?void 0:D.startMeasurement(x.CryptoOptsSignJwt,o),c=await this.cache.getItem(t);if(!c)throw ie(_m);const d=await ch(c.publicKey),h=hy(d),m=jc(JSON.stringify({kid:t})),g=fm.getShrHeaderString({...r==null?void 0:r.header,alg:d.alg,kid:m}),v=jc(g);e.cnf={jwk:JSON.parse(h)};const p=jc(JSON.stringify(e)),w=`${v}.${p}`,T=new TextEncoder().encode(w),k=await eH(c.privateKey,T),I=gu(new Uint8Array(k)),N=`${w}.${I}`;return a&&a.end({success:!0}),N}async hashString(e){return wT(e)}}Ia.POP_KEY_USAGES=["sign","verify"];Ia.EXTRACTABLE=!0;function hy(n){return JSON.stringify(n,Object.keys(n).sort())}/*! @azure/msal-browser v3.28.1 2025-01-14 */class vH{constructor(){if(!window.localStorage)throw wm(Ps)}getItem(e){return window.localStorage.getItem(e)}setItem(e,t){window.localStorage.setItem(e,t)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class yH{constructor(){if(!window.sessionStorage)throw wm(Ps)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function ST(n,e){if(!e)return null;try{return yr.parseRequestState(n,e).libraryState.meta}catch{throw Y(wa)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const CH=24*60*60*1e3;class EH{getItem(e){const t=`${encodeURIComponent(e)}`,r=document.cookie.split(";");for(let o=0;o<r.length;o++){const a=r[o],[c,...d]=decodeURIComponent(a).trim().split("="),h=d.join("=");if(c===t)return h}return""}setItem(e,t,r,o=!0){let a=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(r){const c=wH(r);a+=`expires=${c};`}o&&(a+="Secure;"),document.cookie=a}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach(r=>{const o=decodeURIComponent(r).trim().split("=");t.push(o[0])}),t}containsKey(e){return this.getKeys().includes(e)}}function wH(n){const e=new Date;return new Date(e.getTime()+n*CH).toUTCString()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class uf extends Ta{constructor(e,t,r,o,a,c){super(e,r,o,a),this.cacheConfig=t,this.logger=o,this.internalStorage=new lf,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new EH,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=c}setupBrowserStorage(e){try{switch(e){case vn.LocalStorage:return new vH;case vn.SessionStorage:return new yH;case vn.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=vn.MemoryStorage,new lf}migrateCacheEntries(){const e=`${F.CACHE_PREFIX}.${Lt.ID_TOKEN}`,t=`${F.CACHE_PREFIX}.${Lt.CLIENT_INFO}`,r=`${F.CACHE_PREFIX}.${Lt.ERROR}`,o=`${F.CACHE_PREFIX}.${Lt.ERROR_DESC}`,a=this.browserStorage.getItem(e),c=this.browserStorage.getItem(t),d=this.browserStorage.getItem(r),h=this.browserStorage.getItem(o),m=[a,c,d,h];[Lt.ID_TOKEN,Lt.CLIENT_INFO,Lt.ERROR,Lt.ERROR_DESC].forEach((v,p)=>{const w=m[p];w&&this.setTemporaryCache(v,w,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(Po.ACCOUNT_KEYS),t=this.getItem(`${Po.TOKEN_KEYS}.${this.clientId}`);if(e&&t){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(o=>{if(this.isCredentialKey(o)){const a=this.getItem(o);if(a){const c=this.validateAndParseJson(a);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case ge.ID_TOKEN:if(Kv(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${o}`);break;case ge.ACCESS_TOKEN:case ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:if($v(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${o}`);break;case ge.REFRESH_TOKEN:if(Wv(c)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${o} found, saving key to token key map`);const d=c,h=this.updateCredentialCacheKey(o,d);this.addTokenKey(h,ge.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${o}`);break}}}if(this.isAccountKey(o)){const a=this.getItem(o);if(a){const c=this.validateAndParseJson(a);c&&Pt.isAccountEntity(c)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${o} found, saving key to account key map`),this.addAccountKeyToMap(o))}}})}validateAndParseJson(e){try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,t){this.browserStorage.setItem(e,t)}getAccount(e,t){this.logger.trace("BrowserCacheManager.getAccount called");const r=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,r,t)}getCachedAccountEntity(e){const t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;const r=this.validateAndParseJson(t);return!r||!Pt.isAccountEntity(r)?(this.removeAccountKeyFromMap(e),null):Ta.toObject(new Pt,r)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(Po.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const t=this.getAccountKeys();t.indexOf(e)===-1?(t.push(e),this.setItem(Po.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const t=this.getAccountKeys(),r=t.indexOf(e);r>-1?(t.splice(r,1),this.setItem(Po.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,ge.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,ge.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,ge.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${Po.TOKEN_KEYS}.${this.clientId}`);if(e){const t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");const r=this.getTokenKeys();switch(t){case ge.ID_TOKEN:r.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),r.idToken.push(e));break;case ge.ACCESS_TOKEN:r.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),r.accessToken.push(e));break;case ge.REFRESH_TOKEN:r.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),r.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Y(Qh)}this.setItem(`${Po.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(r))}removeTokenKey(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");const r=this.getTokenKeys();switch(t){case ge.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const o=r.idToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),r.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const a=r.accessToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),r.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const c=r.refreshToken.indexOf(e);c>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),r.refreshToken.splice(c,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Y(Qh)}this.setItem(`${Po.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(r))}getIdTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!Kv(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),r)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.ID_TOKEN)}getAccessTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!$v(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),r)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.ACCESS_TOKEN)}getRefreshTokenCredential(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null;const r=this.validateAndParseJson(t);return!r||!Wv(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),r)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const t=ha(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,ge.REFRESH_TOKEN)}getAppMetadata(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!fV(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),r)}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const t=hV(e);this.setItem(t,JSON.stringify(e))}getServerTelemetry(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!uV(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),r)}setServerTelemetry(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))}getAuthorityMetadata(e){const t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(t);return r&&mV(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(t=>this.isAuthorityMetadata(t))}setWrapperMetadata(e,t){this.internalStorage.setItem(qc.WRAPPER_SKU,e),this.internalStorage.setItem(qc.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(qc.WRAPPER_SKU)||F.EMPTY_STRING,t=this.internalStorage.getItem(qc.WRAPPER_VER)||F.EMPTY_STRING;return[e,t]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(){const e=this.generateCacheKey(Lt.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const o=this.generateCacheKey(Lt.ACTIVE_ACCOUNT),a=this.getItem(o);if(!a)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const c=this.getAccountInfoFilteredBy({localAccountId:a});return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(c),c):null}const r=this.validateAndParseJson(t);return r?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:r.homeAccountId,localAccountId:r.localAccountId,tenantId:r.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const t=this.generateCacheKey(Lt.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(Lt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(t,JSON.stringify(o)),this.browserStorage.setItem(r,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(r)}getThrottlingCache(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const r=this.validateAndParseJson(t);return!r||!dV(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),r)}setThrottlingCache(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))}getTemporaryCache(e,t){const r=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const a=this.cookieStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),a}const o=this.temporaryCacheStorage.getItem(r);if(!o){if(this.cacheConfig.cacheLocation===vn.LocalStorage){const a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o}setTemporaryCache(e,t,r){const o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(o,t,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.temporaryCacheStorage.getKeys().forEach(e=>{(e.indexOf(F.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(e)}),this.browserStorage.getKeys().forEach(e=>{(e.indexOf(F.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,t){e.addQueueMeasurement(x.ClearTokensAndKeysWithClaims,t);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(a=>{const c=this.getAccessTokenCredential(a);c!=null&&c.requestedClaimsHash&&a.includes(c.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(a))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):vr.startsWith(e,F.CACHE_PREFIX)||vr.startsWith(e,Lt.ADAL_ID_TOKEN)?e:`${F.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=yr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.REQUEST_STATE}.${t}`)}getCachedAuthority(e){const t=this.generateStateKey(e),r=this.getTemporaryCache(t);if(!r)return null;const o=this.generateAuthorityKey(r);return this.getTemporaryCache(o)}updateCacheEntries(e,t,r,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const c=this.generateStateKey(e);this.setTemporaryCache(c,e,!1);const d=this.generateNonceKey(e);this.setTemporaryCache(d,t,!1);const h=this.generateAuthorityKey(e);if(this.setTemporaryCache(h,r,!1),a){const m={credential:a.homeAccountId,type:Bn.HOME_ACCOUNT_ID};this.setTemporaryCache(Ke.CCS_CREDENTIAL,JSON.stringify(m),!0)}else if(o){const m={credential:o,type:Bn.UPN};this.setTemporaryCache(Ke.CCS_CREDENTIAL,JSON.stringify(m),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{t.indexOf(e)!==-1&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(Ke.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(Ke.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(Ke.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(Ke.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(Ke.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const t=this.generateStateKey(e),r=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r||F.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(t.indexOf(Ke.REQUEST_STATE)===-1)return;const r=this.temporaryCacheStorage.getItem(t);if(!r)return;const o=ST(this.cryptoImpl,r);o&&o.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const t=ym(JSON.stringify(e));this.setTemporaryCache(Ke.REQUEST_PARAMS,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const t=this.getTemporaryCache(Ke.REQUEST_PARAMS,!0);if(!t)throw ie(tT);let r;try{r=JSON.parse(Kr(t))}catch(o){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${o}`),ie(nT)}if(this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),!r.authority){const o=this.generateAuthorityKey(e),a=this.getTemporaryCache(o);if(!a)throw ie(pm);r.authority=a}return r}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ke.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${F.CACHE_PREFIX}.${Ke.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const t=`${F.CACHE_PREFIX}.${Ke.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw ie(qw);this.setTemporaryCache(t,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(t)}getLegacyLoginHint(){const e=this.getTemporaryCache(Lt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Lt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const t=this.getTemporaryCache(Lt.ID_TOKEN,!0);t&&(this.browserStorage.removeItem(this.generateCacheKey(Lt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const r=t||e;if(r){const o=Si(r,Kr);if(o.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.preferred_username;if(o.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,t){const r=ha(t);if(e!==r){const o=this.getItem(e);if(o)return this.browserStorage.removeItem(e),this.setItem(r,o),this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`),r;this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}async hydrateCache(e,t){var d,h,m;const r=au((d=e.account)==null?void 0:d.homeAccountId,(h=e.account)==null?void 0:h.environment,e.idToken,this.clientId,e.tenantId);let o;t.claims&&(o=await this.cryptoImpl.hashString(t.claims));const a=su((m=e.account)==null?void 0:m.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,Kr,void 0,e.tokenType,void 0,t.sshKid,t.claims,o),c={idToken:r,accessToken:a};return this.saveCacheRecord(c)}async saveCacheRecord(e,t,r){try{await super.saveCacheRecord(e,t,r)}catch(o){if(o instanceof pa&&this.performanceClient&&r)try{const a=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:a.refreshToken.length,cacheIdCount:a.idToken.length,cacheAtCount:a.accessToken.length},r)}catch{}throw o}}}const TH=(n,e)=>{const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new uf(n,t,Nl,e)};/*! @azure/msal-browser v3.28.1 2025-01-14 */function bH(n,e,t,r){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(r):[]}function IH(n,e,t){if(e.trace("getAccount called"),Object.keys(n).length===0)return e.warning("getAccount: No accountFilter provided"),null;const r=t.getAccountInfoFilteredBy(n);return r?(e.verbose("getAccount: Account matching provided filter found, returning"),r):(e.verbose("getAccount: No matching account found, returning null"),null)}function SH(n,e,t){if(e.trace("getAccountByUsername called"),!n)return e.warning("getAccountByUsername: No username provided"),null;const r=t.getAccountInfoFilteredBy({username:n});return r?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${n}`),r):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function AH(n,e,t){if(e.trace("getAccountByHomeId called"),!n)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=t.getAccountInfoFilteredBy({homeAccountId:n});return r?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${n}`),r):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function kH(n,e,t){if(e.trace("getAccountByLocalId called"),!n)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const r=t.getAccountInfoFilteredBy({localAccountId:n});return r?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${n}`),r):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function NH(n,e){e.setActiveAccount(n)}function RH(n){return n.getActiveAccount()}/*! @azure/msal-browser v3.28.1 2025-01-14 */const me={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.28.1 2025-01-14 */class OH{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Ko({})}addEventCallback(e,t,r){if(typeof window<"u"){const o=r||cH();return this.eventCallbacks.has(o)?(this.logger.error(`Event callback with id: ${o} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(o,[e,t||[]]),this.logger.verbose(`Event callback registered with id: ${o}`),o)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,t,r,o){if(typeof window<"u"){const a={eventType:e,interactionType:t||null,payload:r||null,error:o||null,timestamp:Date.now()};this.eventCallbacks.forEach(([c,d],h)=>{(d.length===0||d.includes(e))&&(this.logger.verbose(`Emitting event to callback ${h}: ${e}`),c.apply(null,[a]))})}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class AT{constructor(e,t,r,o,a,c,d,h,m){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=a,this.navigationClient=c,this.nativeMessageHandler=h,this.correlationId=m||go(),this.logger=o.clone(Dn.MSAL_SKU,pu,this.correlationId),this.performanceClient=d}async clearCacheOnLogout(e){if(e){Pt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(Pt.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const t=e||this.config.auth.redirectUri;return De.getAbsoluteUrl(t,lo())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");const r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Os(r,this.browserStorage)}async getDiscoveredAuthority(e){const{account:t}=e,r=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(x.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},a=e.requestAuthority||this.config.auth.authority,c=r!=null&&r.length?r==="true":this.config.auth.instanceAware,d=t&&c?this.config.auth.authority.replace(De.getDomainFromUrl(a),t.environment):a,h=Xt.generateAuthority(d,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),m=await Q(xw,x.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(h,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient);if(t&&!m.isAlias(t.environment))throw Xe(Aw);return m}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const PH=32;async function MH(n,e,t){n.addQueueMeasurement(x.GeneratePkceCodes,t);const r=Ai(DH,x.GenerateCodeVerifier,e,n,t)(n,e,t),o=await Q(LH,x.GenerateCodeChallengeFromVerifier,e,n,t)(r,n,e,t);return{verifier:r,challenge:o}}function DH(n,e,t){try{const r=new Uint8Array(PH);return Ai(Q2,x.GetRandomValues,e,n,t)(r),gu(r)}catch{throw ie(mm)}}async function LH(n,e,t,r){e.addQueueMeasurement(x.GenerateCodeChallengeFromVerifier,r);try{const o=await Q(ET,x.Sha256Digest,t,e,r)(n,e,r);return gu(new Uint8Array(o))}catch{throw ie(mm)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function Sm(n,e,t,r){t.addQueueMeasurement(x.InitializeBaseRequest,n.correlationId);const o=n.authority||e.auth.authority,a=[...n&&n.scopes||[]],c={...n,correlationId:n.correlationId,authority:o,scopes:a};if(!c.authenticationScheme)c.authenticationScheme=Ge.BEARER,r.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(c.authenticationScheme===Ge.SSH){if(!n.sshJwk)throw Xe(cu);if(!n.sshKid)throw Xe(bw)}r.verbose(`Authentication Scheme set to "${c.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!vr.isEmptyObj(n.claims)&&(c.requestedClaimsHash=await wT(n.claims)),c}async function xH(n,e,t,r,o){r.addQueueMeasurement(x.InitializeSilentRequest,n.correlationId);const a=await Q(Sm,x.InitializeBaseRequest,o,r,n.correlationId)(n,t,r,o);return{...n,...a,account:e,forceRefresh:n.forceRefresh||!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Ma extends AT{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await Q(MH,x.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),r={...e,redirectUri:e.redirectUri,code:F.EMPTY_STRING,codeVerifier:t.verifier};return e.codeChallenge=t.challenge,e.codeChallengeMethod=F.S256_CODE_CHALLENGE_METHOD,r}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const t={correlationId:this.correlationId||go(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const r=this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=r)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(e.postLogoutRedirectUri,lo())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,lo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=De.getAbsoluteUrl(lo(),lo())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const t=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new Fw(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:a,account:c}=e;this.performanceClient.addQueueMeasurement(x.StandardInteractionClientGetClientConfiguration,this.correlationId);const d=await Q(this.getDiscoveredAuthority.bind(this),x.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:a,account:c}),h=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:d,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:h.loggerCallback,piiLoggingEnabled:h.piiLoggingEnabled,logLevel:h.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Dn.MSAL_SKU,version:pu,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,t){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const r=this.getRedirectUri(e.redirectUri),o={interactionType:t},a=yr.setRequestState(this.browserCrypto,e&&e.state||F.EMPTY_STRING,o),d={...await Q(Sm,x.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:r,state:a,nonce:e.nonce||go(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return d;const h=e.account||this.browserStorage.getActiveAccount();if(h&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${h.homeAccountId}`,this.correlationId),d.account=h),!d.loginHint&&!h){const m=this.browserStorage.getLegacyLoginHint();m&&(d.loginHint=m)}return d}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const UH="ContentError",kT="user_switch";/*! @azure/msal-browser v3.28.1 2025-01-14 */const BH="USER_INTERACTION_REQUIRED",FH="USER_CANCEL",VH="NO_NETWORK",HH="PERSISTENT_ERROR",$H="DISABLED",KH="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.28.1 2025-01-14 */const WH=-2147186943,zH={[kT]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Br extends lt{constructor(e,t,r){super(e,t),Object.setPrototypeOf(this,Br.prototype),this.name="NativeAuthError",this.ext=r}}function sa(n){if(n.ext&&n.ext.status&&(n.ext.status===HH||n.ext.status===$H)||n.ext&&n.ext.error&&n.ext.error===WH)return!0;switch(n.errorCode){case UH:return!0;default:return!1}}function df(n,e,t){if(t&&t.status)switch(t.status){case KH:return tf(Uw);case BH:return new Er(n,e);case FH:return ie(bi);case VH:return ie(Ll)}return new Br(n,zH[n]||e,t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class NT extends Ma{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentCacheClientAcquireToken,e.correlationId);const t=this.initializeServerTelemetryManager(ot.acquireTokenSilent_silentFlow),r=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),o=new N2(r,this.performanceClient);this.logger.verbose("Silent auth client created");try{const c=(await Q(o.acquireCachedToken.bind(o),x.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),c}catch(a){throw a instanceof Ws&&a.errorCode===_m&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),a}}logout(e){this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t==null?void 0:t.account)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class _a extends AT{constructor(e,t,r,o,a,c,d,h,m,g,v,p){var C;super(e,t,r,o,a,c,h,m,p),this.apiId=d,this.accountId=g,this.nativeMessageHandler=m,this.nativeStorageManager=v,this.silentCacheClient=new NT(e,this.nativeStorageManager,r,o,a,c,h,m,p),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const w=this.nativeMessageHandler.getExtensionId()===ma.PREFERRED_EXTENSION_ID?"chrome":(C=this.nativeMessageHandler.getExtensionId())!=null&&C.length?"unknown":void 0;this.skus=Os.makeExtraSkuString({libraryName:Dn.MSAL_SKU,libraryVersion:pu,extensionName:w,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[h2]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(x.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const t=this.performanceClient.startMeasurement(x.NativeInteractionClientAcquireToken,e.correlationId),r=zr();try{const o=await this.initializeNativeRequest(e);try{const m=await this.acquireTokensFromCache(this.accountId,o);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),m}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...a}=o,c={method:gi.GetToken,request:a},d=await this.nativeMessageHandler.sendMessage(c),h=this.validateNativeResponse(d);return await this.handleNativeResponse(h,o,r).then(m=>(t.end({success:!0,isNativeBroker:!0,requestId:m.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),m)).catch(m=>{throw t.end({success:!1,errorCode:m.errorCode,subErrorCode:m.subError,isNativeBroker:!0}),m})}catch(o){throw o instanceof Br&&this.serverTelemetryManager.setNativeBrokerErrorCode(o.errorCode),o}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:vt.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Y(Yh);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!r)throw Y(Yh);try{const o=this.createSilentCacheRequest(t,r),a=await this.silentCacheClient.acquireToken(o),c={...r,idTokenClaims:a==null?void 0:a.idTokenClaims,idToken:a==null?void 0:a.idToken};return{...a,account:c}}catch(o){throw o}}async acquireTokenRedirect(e,t){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...r}=e;delete r.onRedirectNavigate;const o=await this.initializeNativeRequest(r),a={method:gi.GetToken,request:o};try{const h=await this.nativeMessageHandler.sendMessage(a);this.validateNativeResponse(h)}catch(h){if(h instanceof Br&&(this.serverTelemetryManager.setNativeBrokerErrorCode(h.errorCode),sa(h)))throw h}this.browserStorage.setTemporaryCache(Ke.NATIVE_REQUEST,JSON.stringify(o),!0);const c={apiId:ot.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),await this.navigationClient.navigateExternal(d,c)}async handleRedirectPromise(e,t){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const r=this.browserStorage.getCachedNativeRequest();if(!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&(e==null||e.addFields({errorCode:"no_cached_request"},t)),null;const{prompt:o,...a}=r;o&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ke.NATIVE_REQUEST));const c={method:gi.GetToken,request:a},d=zr();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const h=await this.nativeMessageHandler.sendMessage(c);this.validateNativeResponse(h);const m=this.handleNativeResponse(h,a,d);this.browserStorage.setInteractionInProgress(!1);const g=await m;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),g}catch(h){throw this.browserStorage.setInteractionInProgress(!1),h}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,r){var g;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const o=Si(e.id_token,Kr),a=this.createHomeAccountIdentifier(e,o),c=(g=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId}))==null?void 0:g.homeAccountId;if(a!==c&&e.account.id!==t.accountId)throw df(kT);const d=await this.getDiscoveredAuthority({requestAuthority:t.authority}),h=dm(this.browserStorage,d,a,Kr,o,e.client_info,void 0,o.tid,void 0,e.account.id,this.logger),m=await this.generateAuthenticationResult(e,t,o,h,d.canonicalAuthority,r);return this.cacheAccount(h),this.cacheNativeTokens(e,t,a,o,e.access_token,m.tenantId,r),m}createHomeAccountIdentifier(e,t){return Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,mr.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?vt.fromString(e.scope):vt.fromString(t.scope)}async generatePopAccessToken(e,t){if(t.tokenType===Ge.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const r=new ba(this.browserCrypto),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Y(Jf);return r.signPopToken(e.access_token,t.keyId,o)}else return e.access_token}async generateAuthenticationResult(e,t,r,o,a,c){const d=this.addTelemetryFromNativeResponse(e),h=e.scope?vt.fromString(e.scope):vt.fromString(t.scope),m=e.account.properties||{},g=m.UID||r.oid||r.sub||F.EMPTY_STRING,v=m.TenantId||r.tid||F.EMPTY_STRING,p=im(o.getAccountInfo(),void 0,r,e.id_token);p.nativeAccountId!==e.account.id&&(p.nativeAccountId=e.account.id);const w=await this.generatePopAccessToken(e,t),C=t.tokenType===Ge.POP?Ge.POP:Ge.BEARER;return{authority:a,uniqueId:g,tenantId:v,scopes:h.asArray(),account:p,idToken:e.id_token,idTokenClaims:r,accessToken:w,fromCache:d?this.isResponseFromCache(d):!1,expiresOn:new Date(Number(c+e.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(t=>{this.logger.error(`Error occurred while removing account context from browser storage. ${t}`)})}cacheNativeTokens(e,t,r,o,a,c,d){const h=au(r,t.authority,e.id_token||"",t.clientId,o.tid||""),m=t.tokenType===Ge.POP?F.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,g=d+m,v=this.generateScopes(e,t),p=su(r,t.authority,a,t.clientId,o.tid||c,v.printScopes(),g,0,Kr,void 0,t.tokenType,void 0,t.keyId),w={idToken:h,accessToken:p};this.nativeStorageManager.saveCacheRecord(w,t.storeInCache)}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw qE(Wf,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const t=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:t,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const r=new De(t);r.validateAsUri();const{scopes:o,...a}=e,c=new vt(o||[]);c.appendScopes(Pa);const d=()=>{switch(this.apiId){case ot.ssoSilent:case ot.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Bt.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case Bt.NONE:case Bt.CONSENT:case Bt.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),ie(fT)}},h={...a,accountId:this.accountId,clientId:this.config.auth.clientId,authority:r.urlString,scope:c.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:d(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(h.signPopToken&&e.popKid)throw ie(gT);if(this.handleExtraBrokerParams(h),h.extraParameters=h.extraParameters||{},h.extraParameters.telemetry=ma.MATS_TELEMETRY,e.authenticationScheme===Ge.POP){const m={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},g=new ba(this.browserCrypto);let v;if(h.keyId)v=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:h.keyId})),h.signPopToken=!1;else{const p=await Q(g.generateCnf.bind(g),x.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(m,this.logger);v=p.reqCnfString,h.keyId=p.kid,h.signPopToken=!0}h.reqCnf=v}return this.addRequestSKUs(h),h}handleExtraBrokerParams(e){var a;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(cm)&&e.extraParameters.hasOwnProperty(ef)&&e.extraParameters.hasOwnProperty(wi);if(!e.embeddedClientId&&!t)return;let r="";const o=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[ef],r=e.extraParameters[wi]),e.extraParameters={child_client_id:r,child_redirect_uri:o},(a=this.performanceClient)==null||a.addFields({embeddedClientId:r,embeddedRedirectUri:o},e.correlationId)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Fr{constructor(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(x.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const t={channel:ma.CHANNEL_ID,extensionId:this.extensionId,responseId:go(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(t)}`),this.messageChannel.port1.postMessage(t),new Promise((r,o)=>{this.resolvers.set(t.responseId,{resolve:r,reject:o})})}static async createProvider(e,t,r){e.trace("NativeMessageHandler - createProvider called.");try{const o=new Fr(e,t,r,ma.PREFERRED_EXTENSION_ID);return await o.sendHandshakeRequest(),o}catch{const a=new Fr(e,t,r);return await a.sendHandshakeRequest(),a}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ma.CHANNEL_ID,extensionId:this.extensionId,responseId:go(),body:{method:gi.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=t=>{this.onChannelMessage(t)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,r)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(ie(uT)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const t=e.data;if(!(!t.channel||t.channel!==ma.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===gi.HandshakeRequest){const r=this.handshakeResolvers.get(t.responseId);if(!r){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);return}this.logger.verbose(t.extensionId?`Extension with id: ${t.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(ie(dT))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const t=e.data,r=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{const a=t.body.method;if(a===gi.Response){if(!r)return;const c=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(c)}`),c.status!=="Success")r.reject(df(c.code,c.description,c.ext));else if(c.result)c.result.code&&c.result.description?r.reject(df(c.result.code,c.result.description,c.result.ext)):r.resolve(c.result);else throw qE(Wf,"Event does not contain result.");this.resolvers.delete(t.responseId)}else if(a===gi.HandshakeResponse){if(!o){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${t.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${a}`),this.logger.errorPii(`Unable to parse ${e}`),r?r.reject(a):o&&o.reject(a)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,t,r,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case Ge.BEARER:case Ge.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Am{constructor(e,t,r,o,a){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=a}async handleCodeResponse(e,t){this.performanceClient.addQueueMeasurement(x.HandleCodeResponse,t.correlationId);let r;try{r=this.authModule.handleFragmentResponse(e,t.state)}catch(o){throw o instanceof Wo&&o.subError===bi?ie(bi):o}return Q(this.handleCodeResponseFromServer.bind(this),x.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)(r,t)}async handleCodeResponseFromServer(e,t,r=!0){if(this.performanceClient.addQueueMeasurement(x.HandleCodeResponseFromServer,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await Q(this.authModule.updateAuthority.bind(this.authModule),x.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId),r&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const a=this.createCcsCredentials(t);a&&(this.authCodeRequest.ccsCredential=a)}return await Q(this.authModule.acquireToken.bind(this.authModule),x.AuthClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:Bn.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:Bn.UPN}:null}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function RT(n,e,t){const r=Pl(n);if(!r)throw Nw(n)?(t.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),t.errorPii(`The ${e} detected is: ${n}`),ie(Ww)):(t.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),ie(Kw));return r}function GH(n,e,t){if(!n.state)throw ie(gm);const r=ST(e,n.state);if(!r)throw ie(zw);if(r.interactionType!==t)throw ie(Gw)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class qH extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,d,m,g),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=h}acquireToken(e){try{const r={popupName:this.generatePopupName(e.scopes||Pa,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(e,r))}catch(t){return Promise.reject(t)}}logout(e){try{this.logger.verbose("logoutPopup called");const t=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},o=e&&e.authority,a=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,r,o,a)):(this.logger.verbose("asyncPopup set to false, opening popup"),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(t,r,o,a))}catch(t){return Promise.reject(t)}}async acquireTokenPopupAsync(e,t){var a;this.logger.verbose("acquireTokenPopupAsync called");const r=this.initializeServerTelemetryManager(ot.acquireTokenPopup),o=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,le.Popup);IT(o.authority);try{const c=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(o),d=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),h=Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let m;h&&(m=this.performanceClient.startMeasurement(x.FetchAccountIdWithNativeBroker,e.correlationId));const g=await d.getAuthCodeUrl({...o,nativeBroker:h}),v=new Am(d,this.browserStorage,c,this.logger,this.performanceClient),p=this.initiateAuthRequest(g,t);this.eventHandler.emitEvent(me.POPUP_OPENED,le.Popup,{popupWindow:p},null);const w=await this.monitorPopupForHash(p,t.popupWindowParent),C=Ai(RT,x.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(w,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Ur.removeThrottle(this.browserStorage,this.config.auth.clientId,c),C.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),m&&m.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw ie(Ks);const k=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,C.accountId,this.nativeStorage,o.correlationId),{userRequestState:I}=yr.parseRequestState(this.browserCrypto,o.state);return await k.acquireToken({...o,state:I,prompt:void 0})}return await v.handleCodeResponse(C,o)}catch(c){throw(a=t.popup)==null||a.close(),c instanceof lt&&(c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c)),c}}async logoutPopupAsync(e,t,r,o){var c,d,h,m;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(me.LOGOUT_START,le.Popup,e);const a=this.initializeServerTelemetryManager(ot.logoutPopup);try{await this.clearCacheOnLogout(e.account);const g=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:a,requestAuthority:r,account:e.account||void 0});try{g.authority.endSessionEndpoint}catch{if((c=e.account)!=null&&c.homeAccountId&&e.postLogoutRedirectUri&&g.authority.protocolMode===fo.OIDC){if(this.browserStorage.removeAccount((d=e.account)==null?void 0:d.homeAccountId),this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e),o){const w={apiId:ot.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=De.getAbsoluteUrl(o,lo());await this.navigationClient.navigateInternal(C,w)}(h=t.popup)==null||h.close();return}}const v=g.getLogoutUri(e);this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e);const p=this.openPopup(v,t);if(this.eventHandler.emitEvent(me.POPUP_OPENED,le.Popup,{popupWindow:p},null),await this.monitorPopupForHash(p,t.popupWindowParent).catch(()=>{}),o){const w={apiId:ot.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},C=De.getAbsoluteUrl(o,lo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${C}`),await this.navigationClient.navigateInternal(C,w)}else this.logger.verbose("No main window navigation requested")}catch(g){throw(m=t.popup)==null||m.close(),g instanceof lt&&(g.setCorrelationId(this.correlationId),a.cacheFailedRequest(g)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(me.LOGOUT_FAILURE,le.Popup,null,g),this.eventHandler.emitEvent(me.LOGOUT_END,le.Popup),g}this.eventHandler.emitEvent(me.LOGOUT_END,le.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),ie(hu)}monitorPopupForHash(e,t){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const a=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(a),o(ie(bi));return}let c="";try{c=e.location.href}catch{}if(!c||c==="about:blank")return;clearInterval(a);let d="";const h=this.config.auth.OIDCOptions.serverResponseType;e&&(h===$s.QUERY?d=e.location.search:d=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(d)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,t)})}openPopup(e,t){try{let r;if(t.popup?(r=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),r.location.assign(e)):typeof t.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),r=this.openSizedPopup(e,t)),!r)throw ie(Yw);return r.focus&&r.focus(),this.currentWindow=r,t.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),r}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),ie(jw)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:r,popupWindowParent:o}){var w,C,T,k;const a=o.screenLeft?o.screenLeft:o.screenX,c=o.screenTop?o.screenTop:o.screenY,d=o.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=o.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let m=(w=r.popupSize)==null?void 0:w.width,g=(C=r.popupSize)==null?void 0:C.height,v=(T=r.popupPosition)==null?void 0:T.top,p=(k=r.popupPosition)==null?void 0:k.left;return(!m||m<0||m>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),m=Dn.POPUP_WIDTH),(!g||g<0||g>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),g=Dn.POPUP_HEIGHT),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,h/2-Dn.POPUP_HEIGHT/2+c)),(!p||p<0||p>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,d/2-Dn.POPUP_WIDTH/2+a)),o.open(e,t,`width=${m}, height=${g}, top=${v}, left=${p}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(le.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,t){e.close(),t.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${Dn.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${Dn.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t}.${this.correlationId}`}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class fy{constructor(e,t,r,o,a){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=a}async initiateAuthRequest(e,t){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ke.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const r={apiId:ot.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1};if(typeof t.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),t.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await t.navigationClient.navigateExternal(e,r);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await t.navigationClient.navigateExternal(e,r);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ie(hu)}async handleCodeResponse(e,t){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const r=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(r);if(!o)throw Y(kl,"Cached State");let a;try{a=this.authModule.handleFragmentResponse(e,o)}catch(m){throw m instanceof Wo&&m.subError===bi?ie(bi):m}const c=this.browserStorage.generateNonceKey(o),d=this.browserStorage.getTemporaryCache(c);if(this.authCodeRequest.code=a.code,a.cloud_instance_host_name&&await Q(this.authModule.updateAuthority.bind(this.authModule),x.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(a.cloud_instance_host_name,this.authCodeRequest.correlationId),a.nonce=d||void 0,a.state=o,a.client_info)this.authCodeRequest.clientInfo=a.client_info;else{const m=this.checkCcsCredentials();m&&(this.authCodeRequest.ccsCredential=m)}const h=await this.authModule.acquireToken(this.authCodeRequest,a);return this.browserStorage.cleanRequestByState(t),h}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Ke.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function jH(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const n=window.performance.getEntriesByType("navigation"),e=n.length?n[0]:void 0;return e==null?void 0:e.type}class YH extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,d,m,g),this.nativeStorage=h}async acquireToken(e){const t=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,le.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);const r=this.initializeServerTelemetryManager(ot.acquireTokenRedirect),o=a=>{a.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(me.RESTORE_FROM_BFCACHE,le.Redirect))};try{const a=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(t),c=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),d=new fy(c,this.browserStorage,a,this.logger,this.performanceClient),h=await c.getAuthCodeUrl({...t,nativeBroker:Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),m=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${m}`),window.addEventListener("pageshow",o),await d.initiateAuthRequest(h,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:m,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(a){throw a instanceof lt&&(a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a)),window.removeEventListener("pageshow",o),this.browserStorage.cleanRequestByState(t.state),a}}async handleRedirectPromise(e="",t){const r=this.initializeServerTelemetryManager(ot.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,a]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(le.Redirect),jH()!=="back_forward"?t.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const c=this.browserStorage.getTemporaryCache(Ke.ORIGIN_URI,!0)||F.EMPTY_STRING,d=De.removeHashFromUrl(c),h=De.removeHashFromUrl(window.location.href);if(d===h&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),c.indexOf("#")>-1&&nH(c),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Tm()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ke.URL_HASH,a,!0);const m={apiId:ot.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let g=!0;if(!c||c==="null"){const v=oH();this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,v,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),g=await this.navigationClient.navigateInternal(v,m)}else this.logger.verbose(`Navigating to loginRequestUrl: ${c}`),g=await this.navigationClient.navigateInternal(c,m);if(!g)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof lt&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(le.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(this.config.auth.OIDCOptions.serverResponseType===$s.QUERY?t=window.location.search:t=window.location.hash);let r=Pl(t);if(r){try{GH(r,this.browserCrypto,le.Redirect)}catch(a){return a instanceof lt&&this.logger.error(`Interaction type validation failed due to ${a.errorCode}: ${a.errorMessage}`),[null,""]}return tH(window),this.logger.verbose("Hash contains known properties, returning response hash"),[r,t]}const o=this.browserStorage.getTemporaryCache(Ke.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ke.URL_HASH)),o&&(r=Pl(o),r)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[r,o]):[null,""]}async handleResponse(e,t){const r=e.state;if(!r)throw ie(gm);const o=this.browserStorage.getCachedRequest(r);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ie(Ks);const h=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,o.correlationId),{userRequestState:m}=yr.parseRequestState(this.browserCrypto,r);return h.acquireToken({...o,state:m,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(r)})}const a=this.browserStorage.getCachedAuthority(r);if(!a)throw ie(pm);const c=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:a});return Ur.removeThrottle(this.browserStorage,this.config.auth.clientId,o),new fy(c,this.browserStorage,o,this.logger,this.performanceClient).handleCodeResponse(e,r)}async logout(e){var o,a;this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(ot.logout);try{this.eventHandler.emitEvent(me.LOGOUT_START,le.Redirect,e),await this.clearCacheOnLogout(t.account);const c={apiId:ot.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},d=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(d.authority.protocolMode===fo.OIDC)try{d.authority.endSessionEndpoint}catch{if((o=t.account)!=null&&o.homeAccountId){this.browserStorage.removeAccount((a=t.account)==null?void 0:a.homeAccountId),this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Redirect,t);return}}const h=d.getLogoutUri(t);if(this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Redirect,t),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(h)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(h,c);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(h,c);return}}catch(c){throw c instanceof lt&&(c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c)),this.eventHandler.emitEvent(me.LOGOUT_FAILURE,le.Redirect,null,c),this.eventHandler.emitEvent(me.LOGOUT_END,le.Redirect),c}this.eventHandler.emitEvent(me.LOGOUT_END,le.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return De.getAbsoluteUrl(t,lo())}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function JH(n,e,t,r,o){if(e.addQueueMeasurement(x.SilentHandlerInitiateAuthRequest,r),!n)throw t.info("Navigate url is empty"),ie(hu);return o?Q(XH,x.SilentHandlerLoadFrame,t,e,r)(n,o,e,r):Ai(ZH,x.SilentHandlerLoadFrameSync,t,e,r)(n)}async function QH(n,e,t,r,o,a,c){return r.addQueueMeasurement(x.SilentHandlerMonitorIframeForHash,a),new Promise((d,h)=>{e<cf&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${cf}ms). This may result in timeouts.`);const m=window.setTimeout(()=>{window.clearInterval(g),h(ie(Jw))},e),g=window.setInterval(()=>{let v="";const p=n.contentWindow;try{v=p?p.location.href:""}catch{}if(!v||v==="about:blank")return;let w="";p&&(c===$s.QUERY?w=p.location.search:w=p.location.hash),window.clearTimeout(m),window.clearInterval(g),d(w)},t)}).finally(()=>{Ai(e$,x.RemoveHiddenIframe,o,r,a)(n)})}function XH(n,e,t,r){return t.addQueueMeasurement(x.SilentHandlerLoadFrame,r),new Promise((o,a)=>{const c=OT();window.setTimeout(()=>{if(!c){a("Unable to load iframe");return}c.src=n,o(c)},e)})}function ZH(n){const e=OT();return e.src=n,e}function OT(){const n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(n),n}function e$(n){document.body===n.parentNode&&document.body.removeChild(n)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class t$ extends Ma{constructor(e,t,r,o,a,c,d,h,m,g,v){super(e,t,r,o,a,c,h,g,v),this.apiId=d,this.nativeStorage=m}async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const t={...e};t.prompt?t.prompt!==Bt.NONE&&t.prompt!==Bt.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${Bt.NONE}`),t.prompt=Bt.NONE):t.prompt=Bt.NONE;const r=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,le.Silent);IT(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);let a;try{return a=await Q(this.createAuthCodeClient.bind(this),x.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:o,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),await Q(this.silentTokenHelper.bind(this),x.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(a,r)}catch(c){if(c instanceof lt&&(c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c)),!a||!(c instanceof lt)||c.errorCode!==Dn.INVALID_GRANT_ERROR)throw c;this.performanceClient.addFields({retryError:c.errorCode},this.correlationId);const d=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,le.Silent);return await Q(this.silentTokenHelper.bind(this),x.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(a,d)}}logout(){return Promise.reject(ie(fu))}async silentTokenHelper(e,t){const r=t.correlationId;this.performanceClient.addQueueMeasurement(x.SilentIframeClientTokenHelper,r);const o=await Q(this.initializeAuthorizationCodeRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,r)(t),a=await Q(e.getAuthCodeUrl.bind(e),x.GetAuthCodeUrl,this.logger,this.performanceClient,r)({...t,nativeBroker:Fr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),c=new Am(e,this.browserStorage,o,this.logger,this.performanceClient),d=await Q(JH,x.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(a,this.performanceClient,this.logger,r,this.config.system.navigateFrameWait),h=this.config.auth.OIDCOptions.serverResponseType,m=await Q(QH,x.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(d,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,h),g=Ai(RT,x.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(m,h,this.logger);if(g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ie(Ks);const v=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,g.accountId,this.browserStorage,r),{userRequestState:p}=yr.parseRequestState(this.browserCrypto,t.state);return Q(v.acquireToken.bind(v),x.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,r)({...t,state:p,prompt:t.prompt||Bt.NONE})}return Q(c.handleCodeResponse.bind(c),x.HandleCodeResponse,this.logger,this.performanceClient,r)(g,t)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class n$ extends Ma{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentRefreshClientAcquireToken,e.correlationId);const t=await Q(Sm,x.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),r={...e,...t};e.redirectUri&&(r.redirectUri=this.getRedirectUri(e.redirectUri));const o=this.initializeServerTelemetryManager(ot.acquireTokenSilent_silentFlow),a=await this.createRefreshTokenClient({serverTelemetryManager:o,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return Q(a.acquireTokenByRefreshToken.bind(a),x.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(r).catch(c=>{throw c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),c})}logout(){return Promise.reject(ie(fu))}async createRefreshTokenClient(e){const t=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new nf(t,this.performanceClient)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class r${constructor(e,t,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=o}loadExternalTokens(e,t,r){if(!this.isBrowserEnvironment)throw ie(mu);const o=t.id_token?Si(t.id_token,Kr):void 0,a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},c=e.authority?new Xt(Xt.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,a,this.logger,e.correlationId||go()):void 0,d=this.loadAccount(e,r.clientInfo||t.client_info||"",o,c),h=this.loadIdToken(t,d.homeAccountId,d.environment,d.realm),m=this.loadAccessToken(e,t,d.homeAccountId,d.environment,d.realm,r),g=this.loadRefreshToken(t,d.homeAccountId,d.environment);return this.generateAuthenticationResult(e,{account:d,idToken:h,accessToken:m,refreshToken:g},o,c)}loadAccount(e,t,r,o){if(this.logger.verbose("TokenCache - loading account"),e.account){const h=Pt.createFromAccountInfo(e.account);return this.storage.setAccount(h),h}else if(!o||!t&&!r)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),ie(iT);const a=Pt.generateHomeAccountId(t,o.authorityType,this.logger,this.cryptoObj,r),c=r==null?void 0:r.tid,d=dm(this.storage,o,a,Kr,r,t,o.hostnameAndPort,c,void 0,void 0,this.logger);return this.storage.setAccount(d),d}loadIdToken(e,t,r,o){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const a=au(t,r,e.id_token,this.config.auth.clientId,o);return this.storage.setIdTokenCredential(a),a}loadAccessToken(e,t,r,o,a,c){if(t.access_token)if(t.expires_in){if(!t.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const d=t.scope?vt.fromString(t.scope):new vt(e.scopes),h=c.expiresOn||t.expires_in+new Date().getTime()/1e3,m=c.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+new Date().getTime()/1e3,g=su(r,o,t.access_token,this.config.auth.clientId,a,d.printScopes(),h,m,Kr);return this.storage.setAccessTokenCredential(g),g}loadRefreshToken(e,t,r){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const o=fw(t,r,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(o),o}generateAuthenticationResult(e,t,r,o){var g,v,p;let a="",c=[],d=null,h;t!=null&&t.accessToken&&(a=t.accessToken.secret,c=vt.fromString(t.accessToken.target).asArray(),d=new Date(Number(t.accessToken.expiresOn)*1e3),h=new Date(Number(t.accessToken.extendedExpiresOn)*1e3));const m=t.account;return{authority:o?o.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:c,account:m.getAccountInfo(),idToken:((g=t.idToken)==null?void 0:g.secret)||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:d,correlationId:e.correlationId||"",requestId:"",extExpiresOn:h,familyId:((v=t.refreshToken)==null?void 0:v.familyId)||"",tokenType:((p=t==null?void 0:t.accessToken)==null?void 0:p.tokenType)||"",state:e.state||"",cloudGraphHostName:m.cloudGraphHostName||"",msGraphHost:m.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class o$ extends Fw{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class i$ extends Ma{constructor(e,t,r,o,a,c,d,h,m,g){super(e,t,r,o,a,c,h,m,g),this.apiId=d}async acquireToken(e){if(!e.code)throw ie(aT);const t=await Q(this.initializeAuthorizationRequest.bind(this),x.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,le.Silent),r=this.initializeServerTelemetryManager(this.apiId);try{const o={...t,code:e.code},a=await Q(this.getClientConfiguration.bind(this),x.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),c=new o$(a);this.logger.verbose("Auth code client created");const d=new Am(c,this.browserStorage,o,this.logger,this.performanceClient);return await Q(d.handleCodeResponseFromServer.bind(d),x.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(o){throw o instanceof lt&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),o}}logout(){return Promise.reject(ie(fu))}}/*! @azure/msal-browser v3.28.1 2025-01-14 */function Dr(n){const e=n==null?void 0:n.idTokenClaims;if(e!=null&&e.tfp||e!=null&&e.acr)return"B2C";if(e!=null&&e.tid){if((e==null?void 0:e.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function Yc(n,e){try{bm(n)}catch(t){throw e.end({success:!1},t),t}}class _u{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Ia(this.logger,this.performanceClient):Nl,this.eventHandler=new OH(this.logger),this.browserStorage=this.isBrowserEnvironment?new uf(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,y2(this.config.auth),this.performanceClient):TH(this.config.auth.clientId,this.logger);const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new uf(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new r$(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,t){const r=new _u(e);return await r.initialize(t),r}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(me.INITIALIZE_END);return}const t=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),r=this.config.system.allowNativeBroker,o=this.performanceClient.startMeasurement(x.InitializeClientApplication,t);if(this.eventHandler.emitEvent(me.INITIALIZE_START),r)try{this.nativeExtensionProvider=await Fr.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(a){this.logger.verbose(a)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await Q(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),x.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(me.INITIALIZE_END),o.end({allowNativeBroker:r,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),bT(this.initialized),this.isBrowserEnvironment){const t=e||"";let r=this.redirectResponse.get(t);return typeof r>"u"?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,r),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),r}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const t=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),o=r&&Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,a=o?r==null?void 0:r.correlationId:this.browserStorage.getTemporaryCache(Ke.CORRELATION_ID,!0)||"",c=this.performanceClient.startMeasurement(x.AcquireTokenRedirect,a);this.eventHandler.emitEvent(me.HANDLE_REDIRECT_START,le.Redirect);let d;if(o&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const h=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,r.accountId,this.nativeInternalStorage,r.correlationId);d=Q(h.handleRedirectPromise.bind(h),x.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,c.event.correlationId)(this.performanceClient,c.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const h=this.createRedirectClient(a);d=Q(h.handleRedirectPromise.bind(h),x.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,c.event.correlationId)(e,c)}return d.then(h=>(h?(t.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(me.LOGIN_SUCCESS,le.Redirect,h),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Redirect,h),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),c.end({success:!0,accountType:Dr(h.account)})):c.event.errorCode?c.end({success:!1}):c.discard(),this.eventHandler.emitEvent(me.HANDLE_REDIRECT_END,le.Redirect),h)).catch(h=>{const m=h;throw t.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Redirect,null,m):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Redirect,null,m),this.eventHandler.emitEvent(me.HANDLE_REDIRECT_END,le.Redirect),c.end({success:!1},m),h})}async acquireTokenRedirect(e){const t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);const r=this.performanceClient.startMeasurement(x.AcquireTokenPreRedirect,t);r.add({accountType:Dr(e.account),scenarioId:e.scenarioId});const o=e.onRedirectNavigate;if(o)e.onRedirectNavigate=c=>{const d=typeof o=="function"?o(c):void 0;return d!==!1?r.end({success:!0}):r.discard(),d};else{const c=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=d=>{const h=typeof c=="function"?c(d):void 0;return h!==!1?r.end({success:!0}):r.discard(),h}}const a=this.getAllAccounts().length>0;try{ly(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),a?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Redirect,e):this.eventHandler.emitEvent(me.LOGIN_START,le.Redirect,e);let c;return this.nativeExtensionProvider&&this.canUseNative(e)?c=new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,r).catch(h=>{if(h instanceof Br&&sa(h))return this.nativeExtensionProvider=void 0,this.createRedirectClient(t).acquireToken(e);if(h instanceof Er)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),h}):c=this.createRedirectClient(t).acquireToken(e),await c}catch(c){throw r.end({success:!1},c),a?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Redirect,null,c):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Redirect,null,c),c}}acquireTokenPopup(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenPopup,t);r.add({scenarioId:e.scenarioId,accountType:Dr(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),Yc(this.initialized,r),this.browserStorage.setInteractionInProgress(!0)}catch(c){return Promise.reject(c)}const o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Popup,e):this.eventHandler.emitEvent(me.LOGIN_START,le.Popup,e);let a;return this.canUseNative(e)?a=this.acquireTokenNative({...e,correlationId:t},ot.acquireTokenPopup).then(c=>(this.browserStorage.setInteractionInProgress(!1),r.end({success:!0,isNativeBroker:!0,accountType:Dr(c.account)}),c)).catch(c=>{if(c instanceof Br&&sa(c))return this.nativeExtensionProvider=void 0,this.createPopupClient(t).acquireToken(e);if(c instanceof Er)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),c}):a=this.createPopupClient(t).acquireToken(e),a.then(c=>(o.length<this.getAllAccounts().length?this.eventHandler.emitEvent(me.LOGIN_SUCCESS,le.Popup,c):this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Popup,c),r.end({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,accountType:Dr(c.account)}),c)).catch(c=>(o.length>0?this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Popup,null,c):this.eventHandler.emitEvent(me.LOGIN_FAILURE,le.Popup,null,c),r.end({success:!1},c),Promise.reject(c)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var a,c;const t=this.getRequestCorrelationId(e),r={...e,prompt:e.prompt,correlationId:t};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(x.SsoSilent,t),(a=this.ssoSilentMeasurement)==null||a.add({scenarioId:e.scenarioId,accountType:Dr(e.account)}),Yc(this.initialized,this.ssoSilentMeasurement),(c=this.ssoSilentMeasurement)==null||c.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(me.SSO_SILENT_START,le.Silent,r);let o;return this.canUseNative(r)?o=this.acquireTokenNative(r,ot.ssoSilent).catch(d=>{if(d instanceof Br&&sa(d))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(r.correlationId).acquireToken(r);throw d}):o=this.createSilentIframeClient(r.correlationId).acquireToken(r),o.then(d=>{var h;return this.eventHandler.emitEvent(me.SSO_SILENT_SUCCESS,le.Silent,d),(h=this.ssoSilentMeasurement)==null||h.end({success:!0,isNativeBroker:d.fromNativeBroker,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,accountType:Dr(d.account)}),d}).catch(d=>{var h;throw this.eventHandler.emitEvent(me.SSO_SILENT_FAILURE,le.Silent,null,d),(h=this.ssoSilentMeasurement)==null||h.end({success:!1},d),d}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);const r=this.performanceClient.startMeasurement(x.AcquireTokenByCode,t);Yc(this.initialized,r),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_START,le.Silent,e),r.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw ie(cT);if(e.code){const o=e.code;let a=this.hybridAuthCodeResponses.get(o);return a?(this.logger.verbose("Existing acquireTokenByCode request found",t),r.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),a=this.acquireTokenByCodeAsync({...e,correlationId:t}).then(c=>(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_SUCCESS,le.Silent,c),this.hybridAuthCodeResponses.delete(o),r.end({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,accountType:Dr(c.account)}),c)).catch(c=>{throw this.hybridAuthCodeResponses.delete(o),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_FAILURE,le.Silent,null,c),r.end({success:!1},c),c}),this.hybridAuthCodeResponses.set(o,a)),await a}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){const o=await this.acquireTokenNative({...e,correlationId:t},ot.acquireTokenByCode,e.nativeAccountId).catch(a=>{throw a instanceof Br&&sa(a)&&(this.nativeExtensionProvider=void 0),a});return r.end({accountType:Dr(o.account),success:!0}),o}else throw ie(lT);else throw ie(sT)}catch(o){throw this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_BY_CODE_FAILURE,le.Silent,null,o),r.end({success:!1},o),o}}async acquireTokenByCodeAsync(e){var o;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(x.AcquireTokenByCodeAsync,e.correlationId),(o=this.acquireTokenByCodeAsyncMeasurement)==null||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(a=>{var c;return(c=this.acquireTokenByCodeAsyncMeasurement)==null||c.end({success:!0,fromCache:a.fromCache,isNativeBroker:a.fromNativeBroker}),a}).catch(a=>{var c;throw(c=this.acquireTokenByCodeAsyncMeasurement)==null||c.end({success:!1},a),a}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,t){switch(this.performanceClient.addQueueMeasurement(x.AcquireTokenFromCache,e.correlationId),t){case Pn.Default:case Pn.AccessToken:case Pn.AccessTokenAndRefreshToken:const r=this.createSilentCacheClient(e.correlationId);return Q(r.acquireToken.bind(r),x.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Y(co)}}async acquireTokenByRefreshToken(e,t){switch(this.performanceClient.addQueueMeasurement(x.AcquireTokenByRefreshToken,e.correlationId),t){case Pn.Default:case Pn.AccessTokenAndRefreshToken:case Pn.RefreshToken:case Pn.RefreshTokenAndNetwork:const r=this.createSilentRefreshClient(e.correlationId);return Q(r.acquireToken.bind(r),x.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Y(co)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(x.AcquireTokenBySilentIframe,e.correlationId);const t=this.createSilentIframeClient(e.correlationId);return Q(t.acquireToken.bind(t),x.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect({correlationId:t,...e})}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);return ly(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return bm(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(t).logout(e)}catch(t){return Promise.reject(t)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){return bH(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return IH(e,this.logger,this.browserStorage)}getAccountByUsername(e){return SH(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return AH(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return kH(e,this.logger,this.browserStorage)}setActiveAccount(e){NH(e,this.browserStorage)}getActiveAccount(){return RH(this.browserStorage)}async hydrateCache(e,t){this.logger.verbose("hydrateCache called");const r=Pt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(r),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)}async acquireTokenNative(e,t,r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ie(Ks);return new _a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,t){if(this.logger.trace("canUseNative called"),!Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Bt.NONE:case Bt.CONSENT:case Bt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new qH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new YH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new t$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new NT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new n$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new i$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ot.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return TT(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){var t;try{(t=e.key)!=null&&t.includes(Lt.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(me.ACTIVE_ACCOUNT_CHANGED);const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!Pt.isAccountEntity(o))return;const c=Ta.toObject(new Pt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(me.ACCOUNT_ADDED,void 0,c)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(me.ACCOUNT_REMOVED,void 0,c))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?go():F.EMPTY_STRING}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect({correlationId:t,...e||ay})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||ay})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenSilent,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Yc(this.initialized,r),this.logger.verbose("acquireTokenSilent called",t);const o=e.account||this.getActiveAccount();if(!o)throw ie(eT);r.add({accountType:Dr(o)});const a={clientId:this.config.auth.clientId,authority:e.authority||F.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},c=JSON.stringify(a),d=this.activeSilentTokenRequests.get(c);if(typeof d>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);const h=Q(this.acquireTokenSilentAsync.bind(this),x.AcquireTokenSilentAsync,this.logger,this.performanceClient,t)({...e,correlationId:t},o).then(m=>(this.activeSilentTokenRequests.delete(c),r.end({success:!0,fromCache:m.fromCache,isNativeBroker:m.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:m.accessToken.length,idTokenSize:m.idToken.length}),m)).catch(m=>{throw this.activeSilentTokenRequests.delete(c),r.end({success:!1},m),m});return this.activeSilentTokenRequests.set(c,h),{...await h,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),r.discard(),{...await d,state:e.state}}async acquireTokenSilentAsync(e,t){const r=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(x.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_START,le.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",r);const o=await Q(xH,x.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),a=e.cacheLookupPolicy||Pn.Default;return this.acquireTokenSilentNoIframe(o,a).catch(async d=>{if(a$(d,a))if(this.activeIframeRequest)if(a!==Pn.Skip){const[m,g]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${g}`,o.correlationId);const v=this.performanceClient.startMeasurement(x.AwaitConcurrentIframe,o.correlationId);v.add({awaitIframeCorrelationId:g});const p=await m;if(v.end({success:p}),p)return this.logger.verbose(`Parallel iframe request with correlationId: ${g} succeeded. Retrying cache and/or RT redemption`,o.correlationId),this.acquireTokenSilentNoIframe(o,a);throw this.logger.info(`Iframe request with correlationId: ${g} failed. Interaction is required.`),d}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",o.correlationId),Q(this.acquireTokenBySilentIframe.bind(this),x.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o);else{let m;return this.activeIframeRequest=[new Promise(g=>{m=g}),o.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",o.correlationId),Q(this.acquireTokenBySilentIframe.bind(this),x.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o).then(g=>(m(!0),g)).catch(g=>{throw m(!1),g}).finally(()=>{this.activeIframeRequest=void 0})}else throw d}).then(d=>(this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_SUCCESS,le.Silent,d),e.correlationId&&this.performanceClient.addFields({fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker},e.correlationId),d)).catch(d=>{throw this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_FAILURE,le.Silent,null,d),d}).finally(()=>{document.removeEventListener("visibilitychange",r)})}async acquireTokenSilentNoIframe(e,t){return Fr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,ot.acquireTokenSilent_silentFlow).catch(async r=>{throw r instanceof Br&&sa(r)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,Y(co)):r})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),Q(this.acquireTokenFromCache.bind(this),x.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,t).catch(r=>{if(t===Pn.AccessToken)throw r;return this.eventHandler.emitEvent(me.ACQUIRE_TOKEN_NETWORK_START,le.Silent,e),Q(this.acquireTokenByRefreshToken.bind(this),x.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,t)}))}}function a$(n,e){const t=!(n instanceof Er&&n.subError!==du),r=n.errorCode===Dn.INVALID_GRANT_ERROR||n.errorCode===co,o=t&&r||n.errorCode===Dl||n.errorCode===um,a=K2.includes(e);return o&&a}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function s$(n,e){const t=new Ii(n);return await t.initialize(),_u.createController(t,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class km{static async createPublicClientApplication(e){const t=await s$(e);return new km(e,t)}constructor(e,t){this.controller=t||new _u(new Ii(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}}const lh=process.env.JPLAN_WEBAPP__APP_PROXY_TENANT_NAME??"",c$=process.env.JPLAN_WEBAPP__APP_PROXY_CLIENT_ID??"",l$=process.env.JPLAN_WEBAPP__APP_PROXY_USER_FLOW??"",hf=process.env.JPLAN_WEBAPP__URL_AUTH??process.env.JPLAN_WEBAPP__URL_BASE??"",u$={auth:{clientId:c$,authority:`https://${lh}.b2clogin.com/${lh}.onmicrosoft.com/${l$}`,knownAuthorities:[`${lh}.b2clogin.com`],redirectUri:process.env.JPLAN_AUTOMATION_ENVIRONMENT?`${hf}/_/dashboard`:hf},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(n,e)=>{n===tt.Error&&console.error(e)},logLevel:tt.Warning}}},PT=(n,e)=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:`${hf}${n}`,extraQueryParameters:e}),Gt=new km(u$),my=l.ref(null);function MT(){async function n(e){var t;if(e)try{const r=e.idTokenClaims;if(!(r!=null&&r.aud))throw new Error("User audience (aud) is missing in ID token claims");const o=localStorage.getItem(`msal.token.keys.${r.aud}`);if(!o)throw new Error(`Token keys para ${r.aud} não encontrados no localStorage`);const a=JSON.parse(o),c=(t=a==null?void 0:a.idToken)==null?void 0:t[0];if(!c)throw new Error("idToken não encontrado nos token keys");const d=localStorage.getItem(c);if(!d)throw new Error(`Dados do token para ID ${c} não encontrados no localStorage`);const h=JSON.parse(d),m=h==null?void 0:h.secret;if(!m)throw new Error("Secret não encontrado nos dados do token");sessionStorage.setItem("isAuthenticated","true"),my.value=m}catch(r){console.error("Erro ao obter token de acesso:",r)}}return{jToken:my,setJToken:n}}let Jc=null;const tr=l.ref(null),Ji=l.ref(null),DT=l.ref(Math.floor(Date.now()/1e3));ff.useIntervalFn(()=>d$(),1e3);function d$(){var r,o;if(!((o=(r=tr.value)==null?void 0:r.idTokenClaims)!=null&&o.exp))return;const n=Math.floor(Date.now()/1e3),e=300,t=tr.value.idTokenClaims.exp;DT.value=t-n-e}function Nm(){if(Jc)return Jc;const{setJToken:n,jToken:e}=MT(),t=l.computed(()=>!!tr.value),r=l.computed(()=>tr.value);let o;async function a(p,w){if(!t.value)switch(p){case"redirect":if(w){o=w,await h();break}case"tab":default:await c();break}}const c=async()=>new Promise((p,w)=>{try{localStorage.clear();const C=process.env.JPLAN_WEBAPP__URL_AUTH,T=window.open(C);if(!T){console.error("Failed to open authentication window"),w("Failed to open authentication window");return}const k=Date.now(),I=6e4,N=setInterval(()=>{if(Date.now()-k>I||T.closed){clearInterval(N),console.error("Authentication canceled or timeout reached."),w("Authentication canceled or timeout reached.");return}Object.keys(localStorage).some(L=>L.startsWith("msal.account.keys"))&&(clearInterval(N),d(),T.close(),p())},500)}catch(C){console.error("Error in handleRedirect:",C),w(C)}}),d=async()=>{try{await Gt.initialize();const p=Gt.getActiveAccount();if(p)tr.value=p;else{const w=await Gt.handleRedirectPromise();w?(Gt.setActiveAccount(w.account),tr.value=Gt.getActiveAccount()):console.error("Falha na autenticação")}}catch(p){console.error("Erro no processo de autenticação:",p)}tr.value&&await n(tr.value)},h=async()=>{try{await Gt.initialize();const p=await Gt.handleRedirectPromise();if(!p||Gt.getAllAccounts().length===0){const w=PT(o);await Gt.loginRedirect(w);return}Gt.setActiveAccount(p.account),tr.value=Gt.getActiveAccount(),tr.value&&await n(tr.value),Ji.value="updated"}catch(p){console.error("handleRedirect failed",p)}};async function m(){ve.value=!0,Ji.value="updating";try{const p=await Gt.acquireTokenSilent({scopes:["https://graph.microsoft.com/.default","openid","profile"]});Gt.setActiveAccount(p.account),await n(tr.value),Ji.value="updated"}catch(p){console.error("Failed to refresh token, forcing new login.",p),Ji.value="error",localStorage.clear(),window.location.reload()}ve.value=!1}const g=async()=>{try{await Gt.initialize(),localStorage.clear(),await Gt.logoutRedirect({postLogoutRedirectUri:"/"})}catch(p){console.error("Logout error",p)}};l.watch(DT,async p=>{p<=0&&Ji.value==="updated"&&await m()});const v=l.computed(()=>e.value);return Jc={isAuthenticated:t,authState:Ji,account:r,token:v,refreshToken:m,handleRedirect:a,logout:g},Jc}const{jToken:gy}=MT(),Rm=()=>{const n=dt.create({headers:{"Content-Type":"application/json"}});l.watch(gy,o=>{n.interceptors.request.use(a=>(o&&(a.headers.Authorization=`Bearer ${o}`),a))},{immediate:!0});let e=1;n.interceptors.response.use(async o=>o,async o=>{var a;if(o.config&&o.config.headers){const c=o.config;if(((a=o.response)==null?void 0:a.status)===401&&e>0){e--;try{return c.headers.Authorization=`Bearer ${gy.value}`,await n(c)}catch(d){return Promise.reject(d)}}}return Promise.reject(o)});async function t({url:o,method:a,header:c={},body:d,baseURL:h}){try{return h&&(n.defaults.baseURL=h),(await n({url:o,method:a,headers:c,data:d})).data}catch(m){if(console.error(`Request error [${a} ${o}]:`,m),dt.isAxiosError(m)){const{response:g,message:v}=m;throw new Error(`Axios error: ${v}, Status: ${g==null?void 0:g.status}, URL: ${o}`)}throw m}}async function r({url:o,method:a,header:c,body:d,baseURL:h}){try{h&&(n.defaults.baseURL=h);const m=await n({url:o,method:a,headers:c,data:d});return{status:m.status,header:m.headers,body:m.data}}catch(m){if(dt.isAxiosError(m)){const{response:g,message:v}=m;console.error(`Raw Request Error: ${v}, Status: ${g==null?void 0:g.status}`)}return Promise.reject(m)}}return Object.assign(n,{_request:t,rawRequest:r})},{request:py}=Rm(),_y=l.ref(null),vy=l.ref("default"),uh=l.ref(null),dh=l.ref({scope_type:"org"});function vu(){var v,p;const{handleRedirect:n,account:e,logout:t}=Nm();(p=(v=e.value)==null?void 0:v.idTokenClaims)==null||p.domain;const r=l.computed(()=>{var w,C;return{domain:(C=(w=e.value)==null?void 0:w.idTokenClaims)==null?void 0:C.domain,environment:vy.value,...dh.value}}),o=l.computed(()=>dh.value);async function a(){var w;(!e.value||!((w=e.value.idTokenClaims)!=null&&w.email))&&await n();try{await c(),await d()}catch{}}async function c(){var w,C;try{const T=(C=(w=e.value)==null?void 0:w.idTokenClaims)==null?void 0:C.email;if(!T)throw new Error("Email is undefined");const k=await py({url:`https://api.jplan.com.br/platform/user/profile/?email=${T}`,method:"GET"});uh.value=k.data??null}catch(T){console.error("Failed to fetch user profile:",T)}}async function d(){var w;try{if(!((w=uh.value)!=null&&w.email))throw new Error("User email is undefined");const C=await py({url:"https://api.jplan.com.br/platform/user/domain/",method:"GET"});_y.value=C.data.data??[]}catch(C){console.error("Failed to fetch user domains:",C)}}function h(w){dh.value=w}function m(w){vy.value=w,h(r.value)}async function g(w,C){const T=PT(w,{request_domain:C});await Gt.loginRedirect(T)}return{__init__:a,user:uh,userDomains:_y,setEnv:m,setScope:h,changeDomain:g,session:r,scope:o,logout:t}}const h$={path:"/_/dashboard",component:()=>Promise.resolve().then(()=>require("./AuthRoute-Ds5BmhfG.js")),meta:{requiresAuth:!1}},f$={path:"/jplan-auth-fail",component:()=>Promise.resolve().then(()=>require("./AuthFailRoute-DHl-IhUQ.js")),meta:{requiresAuth:!1}},{isAuthenticated:yy,handleRedirect:m$}=Nm(),g$=vu();function p$(n,e){n.addRoute(h$),n.addRoute(f$),n.beforeEach(async(t,r,o)=>{function a(d){return d.matched.some(h=>h.meta.requiresAuth)}if(!a(t))return o();if(!yy.value){ve.value=!0;try{await m$(e,t.fullPath),await g$.__init__()}catch(d){console.error("Fail to authenticate",d),await n.push("/jplan-auth-fail")}ve.value=!1}if(yy.value){if(localStorage.getItem("returnRoute")&&localStorage.getItem("returnRoute")!==null){const d=localStorage.getItem("returnRoute")??"/";console.log("trying to go to saved route:",d),o(d),localStorage.removeItem("returnRoute");return}o()}})}const{scope:Cy}=vu();function _$(){const n=Rm(),e=l.ref({scope_type:"org"});async function t(r){e.value=r}return l.watch(Cy,()=>{n.interceptors.request.use(r=>{const o=r.headers,a=o.Authorization;a&&(o.Authorization=a);const c=Cy.value;return c&&(c.scope_type&&(o["j-scope-type"]=c.scope_type,c.organization&&(o["j-scope-organization"]=c.organization),c.team&&(o["j-scope-team"]=c.team)),c.environment&&(o["j-scope-environment"]=c.environment)),r})},{immediate:!0}),Object.assign(n,{setScope:t,scope:e})}function Da(n){const e=_$();e.defaults.baseURL=n;const t=l.ref({scope_type:"org"});async function r(o){t.value=o}return l.watch(t,()=>{e.interceptors.request.use(o=>{const a=t.value;return delete o.headers["j-scope-type"],delete o.headers["j-scope-organization"],delete o.headers["j-scope-team"],a!=null&&a.scope_type&&(o.headers["j-scope-type"]=a.scope_type),a!=null&&a.organization&&(o.headers["j-scope-organization"]=a.organization),a!=null&&a.team&&(o.headers["j-scope-team"]=a.team),o})},{immediate:!0}),Object.assign(e,{setScope:r,scope:t})}const Ey={enUS:{widget:"widget",spacer:"spacer"},ptBr:{widget:"widget",spacer:"Espaçador"}},Om={"pt-BR":{placeholders:{selectFilter:"Selecionar filtro",visualize:"Visualizar",actions:"Ações",search:"Pesquisar"},dialogs:{columnSettings:{title:"Configurações de coluna"},scope:{title:"Escopo",unknown:"Desconhecido",domain:"Domínio",environment:"Ambiente",organizational:"Organizacional",organization:"Organização",team:"Time",user:"Usuário",none:"Nenhum",selectOrganization:"Selecione uma Organização",selectTeam:"Selecione um Time"}},actions:{save:"Salvar",cancel:"Cancelar",edit:"Editar",delete:"Apagar",disable:"Desabilitar",confirm:"Confirmar",back:"Voltar"},forms:{metadata:{created:"Criado",updated:"Atualizado",modified:"Modificado",delegated:"Delegado"}},$vuetify:{dataFooter:{itemsPerPageAll:"Todos",itemsPerPageText:"Itens por página:",pageText:"{0}-{1} de {2}"}},toast:{error:{create_failed:"Falha ao criar {entity}",update_failed:"Falha ao atualizar {entity}",delete_failed:"Falha ao apagar {entity}",fetch_failed:"Falha ao buscar {entity}",activate_failed:"Falha ao ativar {entity}",deactivate_failed:"Falha ao desativar {entity}",link_failed:"Falha ao vincular {entity}",unlink_failed:"Falha ao desvincular {entity}"},success:{create_success:"{entity} criado com sucesso",update_success:"{entity} atualizado com sucesso",delete_success:"{entity} apagado com sucesso",activate_success:"{entity} ativado com sucesso",deactivate_success:"{entity} desativado com sucesso",link_success:"{entity} vinculado com sucesso",unlink_success:"{entity} desvinculado com sucesso"},info:{already_linked:"{entity} já está vinculado",select_valid_item:"Selecione um item válido"}},app:{widget:Ey.ptBr}},"en-US":{placeholders:{selectFilter:"Select a filter",visualize:"Visualize",actions:"Actions",search:"Search"},dialogs:{columnSettings:{title:"Column Settings"},scope:{title:"Scope",unknown:"Unknown",domain:"Domain",environment:"Environment",organizational:"Organizational",organization:"Organization",team:"Team",user:"User",none:"None",selectOrganization:"Select a organization",selectTeam:"Select a Team"}},actions:{save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",disable:"Disable",back:"Back",confirm:"Confirm"},forms:{metadata:{created:"Created",updated:"Updated",modified:"Modified",delegated:"Delegated"}},$vuetify:{dataFooter:{itemsPerPageAll:"All",itemsPerPageText:"Items per page:",pageText:"{0}-{1} of {2}"}},toast:{error:{create_failed:"Failed to create {entity}",update_failed:"Failed to update {entity}",delete_failed:"Failed to delete {entity}",fetch_failed:"Failed to fetch {entity}",activate_failed:"Failed to activate {entity}",deactivate_failed:"Failed to deactivate {entity}",link_failed:"Failed to link {entity}",unlink_failed:"Failed to unlink {entity}"},success:{create_success:"{entity} created successfully",update_success:"{entity} updated successfully",delete_success:"{entity} deleted successfully",activate_success:"{entity} activated successfully",deactivate_success:"{entity} deactivated successfully",link_success:"{entity} linked successfully",unlink_success:"{entity} unlinked successfully"},info:{already_linked:"{entity} is already linked",select_valid_item:"Please select a valid item"}},app:{widget:Ey.ptBr}}},v$=Object.keys(Om),wy=navigator.language,y$=v$.includes(wy)?wy:"pt-BR",$=vx({locale:y$,fallbackLocale:"en-US",messages:Om});function C$(){const n=Da("https://api.jplan.com.br/management/organization"),{error:e}=wr();return{async getOrgList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Organization"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getOrgList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Organization"}));return}},async createOrg(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Organization"})),a}},async updateOrg(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"Organization"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Organization"})),a}},async getOrg(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Organization"})),new Error(a.data.error);return a.data}catch(a){throw console.error("Error in getOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Organization"})),a}},async activateOrg(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Organization"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Organization"})),a}},async deactivateOrg(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Organization"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateOrg:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Organization"})),a}}}}const xo=C$();function E$(){const n=Da("https://api.jplan.com.br/management/branch/"),{error:e}=wr();return{async getBranchList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error){e($.global.t("toast.error.fetch_failed",{entity:"Branch"}));return}return o.data.data}catch(r){console.error("Error in getBranchList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Branch"}))}},async createBranch(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){console.error("Error in createBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Branch"}))}},async updateBranch(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error){e(a.data.error||$.global.t("toast.error.update_failed",{entity:"Branch"}));return}return a}catch(a){console.error("Error in updateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Branch"}))}},async getBranch(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error){e(a.data.error||$.global.t("toast.error.fetch_failed",{entity:"Branch"}));return}return a.data}catch(a){console.error("Error in getBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Branch"}))}},async activateBranch(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error){e(a.data.error||$.global.t("toast.error.activate_failed",{entity:"Branch"}));return}}catch(a){console.error("Error in activateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Branch"}))}},async deactivateBranch(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error){e(a.data.error||$.global.t("toast.error.deactivate_failed",{entity:"Branch"}));return}}catch(a){console.error("Error in deactivateBranch:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Branch"}))}}}}const Uo=E$();function w$(){const n=Da("https://api.jplan.com.br/management/team"),{error:e}=wr();return{async getTeamList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Team"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getTeamList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Team"}));return}},async createTeam(t){var r,o;try{const a=await n.post("/item",t);if(a.data.error)throw e($.global.t("toast.error.create_failed",{entity:"Team"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in createTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Team"})),a}},async updateTeam(t){var r,o;try{const a=await n.patch("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in updateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Team"})),a}},async getTeam(t){var r,o;try{const a=await n.get(`/item/${t}`);return a.data.error&&e($.global.t("toast.error.fetch_failed",{entity:"Team"})),a.data}catch(a){console.error("Error in getTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Team"}));return}},async activateTeam(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Team"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Team"})),a}},async deactivateTeam(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Team"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateTeam:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Team"})),a}},async getTeamUserList(t,r){try{const o=r?`?filter_query=${r}`:"",a=await n.get(`/item/${t}/user/list/${o}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(a.data.error);return a.data.data}catch(o){console.error("Error in getTeamUserList:",o),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async linkManageUser(t,r){try{const o=await n.post(`/item/${t}/user/item/`,r);if(o.data.error)throw e($.global.t("toast.error.link_failed",{entity:"User"})),new Error(o.data.error);return o.data}catch(o){console.error("Error in link User:",o),e($.global.t("toast.error.link_failed",{entity:"User"}));return}},async updateManageUser(t,r){try{const o=await n.patch(`/item/${t}/user/item/`,r);if(o.data.error)throw e($.global.t("toast.error.update_failed",{entity:"User"})),new Error(o.data.error);return o.data.data}catch(o){throw console.error("Error in update User:",o),e($.global.t("toast.error.update_failed",{entity:"User"})),o}},async getManageUser(t,r,o){try{const a=o?`?filter_query=${o}`:"",c=await n.get(`/item/${t}/user/item/${r}/${a}`);if(c.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(c.data.error);return c.data.data}catch(a){console.error("Error in getUser:",a),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async unlinkManageUser(t,r,o){try{const a=o?`?filter_query=${o}`:"";await n.delete(`/item/${t}/user/item/${r}/${a}`)}catch(a){throw console.error("Error in unlink User:",a),e($.global.t("toast.error.unlink_failed",{entity:"User"})),a}}}}const Mn=w$();let Qc=!1;const hh=l.ref(!1),jn=l.ref([]),Ty=l.ref([]),ft=l.ref(null),Qi=l.ref([]),Xi=l.ref([]),LT=()=>{const n=wr(),e=async C=>{hh.value=!0;const T=C?`_active eq true and ${C}`:"_active eq true",k=await xo.getOrgList(T);k&&(jn.value=k,Qc=!0),hh.value=!1},t=async C=>{var T;return(T=jn.value)!=null&&T.length||await e(C),jn.value};function r(C){if(!jn.value)throw new Error("Data not stored yet");const T=Oa(jn.value,C,["name","description"]);return C!==""?T:jn.value}const o=C=>{Ty.value=C},a=C=>{ft.value=Ra.cloneDeep(C)},c=async C=>await xo.getOrg(C),d=async()=>{if(ft.value!=null){const C=await xo.createOrg(ft.value);return C!=null&&C.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Organization"})),Qc&&jn.value.push(C.data)),C==null?void 0:C.data}},h=async()=>{if(ve.value=!0,ft.value&&ft.value.__id){const C=await xo.updateOrg(ft.value);if(Qc&&(C!=null&&C.data.__id)){const T=jn.value.findIndex(k=>k.__id===C.data.__id);return T!==-1?(jn.value[T]=C.data,n.success($.global.t("toast.success.update_success",{entity:"Organization"}))):n.error($.global.t("toast.error.update_failed",{entity:"Organization"})),ve.value=!1,C.data}}else ve.value=!1,n.error($.global.t("toast.error.update_failed",{entity:"Organization"}))},m=async()=>{if(ve.value=!0,ft.value&&ft.value.created_at){if(await xo.deactivateOrg(ft.value.__id),Qc){const C=jn.value.findIndex(T=>{var k;return T.__id===((k=ft.value)==null?void 0:k.__id)});if(C!==-1)return jn.value.splice(C,1),ft.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Organization"}))}ve.value=!1}};async function g(C){ve.value=!0;try{if(ft.value&&ft.value.__id){const T={...C,organization:ft.value.__id};if(!await Uo.updateBranch(T)){ve.value=!1;return}if(Qi.value.findIndex(N=>N.__id===C.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Branch"})),Qi.value.push(T),T;n.info($.global.t("toast.info.already_linked",{entity:"Branch"}))}}catch(T){console.error(T)}finally{ve.value=!1}}async function v(C){if(ve.value=!0,ft.value&&ft.value.__id){const T={...C,organization:null};if(!await Uo.updateBranch(T)){ve.value=!1;return}const I=Qi.value.findIndex(N=>N.__id===C.__id);if(I!==-1)return Qi.value.splice(I,1),ve.value=!1,Qi.value;throw new Error("Item not found to remove")}ve.value=!1}async function p(C){ve.value=!0;try{if(ft.value&&ft.value.__id){const T={...C,organization:ft.value.__id};if(!await Mn.updateTeam(T)){ve.value=!1;return}if(Xi.value.findIndex(N=>N.__id===C.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Team"})),Xi.value.push(T),T;n.info($.global.t("toast.info.already_linked",{entity:"Team"}))}}catch(T){console.error(T)}finally{ve.value=!1}}async function w(C){if(ve.value=!0,ft.value&&ft.value.__id){const T={...C,organization:null};if(!await Mn.updateTeam(T)){ve.value=!1;return}const I=Xi.value.findIndex(N=>N.__id===C.__id);if(I!==-1)return Xi.value.splice(I,1),ve.value=!1,Xi.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:jn,loading:hh,columns:Ty,item:ft,filterData:r,__init__:e,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgBranches:Qi,orgTeams:Xi,linkBranch:g,unlinkBranch:v,linkTeam:p,unlinkTeam:w}};let Xc=!1;const Yn=l.ref([]),by=l.ref([]),Nt=l.ref(null),fh=l.ref(!1),Zi=l.ref([]),xT=()=>{const n=wr(),e=async p=>{fh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Mn.getTeamList(w);C&&(Yn.value=C,Xc=!0),fh.value=!1},t=async p=>(Yn.value.length||await e(p),Yn.value);function r(p){if(!Yn.value)throw new Error("Data not stored yet");const w=Oa(Yn.value,p,["name","description"]);return p!==""?w:Yn.value}const o=p=>{by.value=p},a=p=>{Nt.value=Ra.cloneDeep(p)},c=async p=>await Mn.getTeam(p),d=async()=>{if(Nt.value!=null){const p=await Mn.createTeam(Nt.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Team"})),Xc&&Yn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if(ve.value=!0,Nt.value&&Nt.value.__id){const p=await Mn.updateTeam(Nt.value);if(Xc&&(p!=null&&p.data.__id)){const w=Yn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Yn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Team"}))):n.error($.global.t("toast.error.update_failed",{entity:"Team"})),p.data}}else n.error($.global.t("toast.error.update_failed",{entity:"Team"}))},m=async()=>{if(Nt.value&&Nt.value.created_at&&(await Mn.deactivateTeam(Nt.value.__id),Xc)){const p=Yn.value.findIndex(w=>{var C;return w.__id===((C=Nt.value)==null?void 0:C.__id)});if(p!==-1)return Yn.value.splice(p,1),Nt.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Team"}))}};async function g(p){var w;if(ve.value=!0,(w=Nt.value)!=null&&w.__id)if(Zi.value.findIndex(T=>T.__id===p.__id)===-1)try{const T=await Mn.linkManageUser(Nt.value.__id,{team:Nt.value.__id,user:p.__id,role:"string",joined_at:"string",comments:"string"}),k=await Mn.getTeamUserList(Nt.value.__id);return k&&(Zi.value=k),n.success($.global.t("toast.success.link_success",{entity:"User"})),T}catch(T){console.error(T),n.error($.global.t("toast.error.link_failed",{entity:"User"}))}finally{ve.value=!1}else n.info($.global.t("toast.info.already_linked",{entity:"User"}));else console.warn("No item selected or item ID is missing."),n.info($.global.t("toast.info.select_valid_item"));ve.value=!1}async function v(p){if(ve.value=!0,Nt.value&&Nt.value.__id){const w=Zi.value.findIndex(C=>C.__id===p);if(w!==-1)return await Mn.unlinkManageUser(Nt.value.__id,p),Zi.value.splice(w,1),ve.value=!1,Zi.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:Yn,loading:fh,columns:by,item:Nt,usersTeam:Zi,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,linkUser:g,unlinkUser:v}},UT=l.defineComponent({__name:"GlobalScopeFilter",setup(n){var T,k,I;const{openDialog:e}=Ms("global-scope__J-"),{user:t,scope:r,session:o,setScope:a}=vu(),{getData:c,data:d}=LT(),{getData:h,data:m}=xT(),g=l.ref(!1);l.onBeforeMount(async()=>{g.value=!0,await c(),await h(),g.value=!1});const v=l.ref({scope_type:(T=r.value)==null?void 0:T.scope_type,organization:((k=r.value)==null?void 0:k.organization)??"org",team:(I=r.value)==null?void 0:I.team});function p(){var N,D,L;v.value={...r.value,scope_type:(N=r.value)==null?void 0:N.scope_type,organization:((D=r.value)==null?void 0:D.organization)??"",team:(L=r.value)==null?void 0:L.team},e()}const w=l.computed(()=>{var N;switch((N=r.value)==null?void 0:N.scope_type){case"user":return UF;case"org":return LF;case"team":return BF;default:return xF}});async function C(){var N;((N=r.value)==null?void 0:N.scope_type)!==""&&a(v.value)}return(N,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(it.VBtn,{onClick:p,icon:"",class:"text-secondary",color:"surface",rounded:"sm",size:"small",variant:"flat"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(w.value),{size:"20"}))]),_:1}),l.createVNode(l.unref(Ls),{loading:g.value,title:l.unref($).global.t("dialogs.scope.title"),"dd-id":"global-scope__J-",onOnSave:C},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(Qe.VRow,null,{default:l.withCtx(()=>[l.createVNode(Qe.VCol,{cols:"4",class:"d-flex flex-row align-center"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.user")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>{var L;return[l.createTextVNode(l.toDisplayString(((L=l.unref(t))==null?void 0:L.name)||l.unref($).global.t("dialogs.scope.unknownUser")),1)]}),_:1})]),_:1})]),_:1}),l.createVNode(Qe.VCol,{cols:"4"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.environment")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(o).domain),1)]),_:1})]),_:1})]),_:1}),l.createVNode(Qe.VCol,{cols:"4"},{default:l.withCtx(()=>[l.createVNode(Qt.VListItem,null,{default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.environment")),1)]),_:1}),l.createVNode(Qt.VListItemSubtitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(o).environment),1)]),_:1})]),_:1})]),_:1})]),_:1}),l.createVNode(bO.VBtnToggle,{density:"compact",variant:"outlined",modelValue:v.value.scope_type,"onUpdate:modelValue":D[0]||(D[0]=L=>v.value.scope_type=L),class:"d-flex justify-center my-4"},{default:l.withCtx(()=>[l.createVNode(it.VBtn,{value:"org",label:l.unref($).global.t("dialogs.scope.organizational"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.organizational")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"team",label:l.unref($).global.t("dialogs.scope.team"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.team")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"user",label:l.unref($).global.t("dialogs.scope.user"),color:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.user")),1)]),_:1},8,["label"]),l.createVNode(it.VBtn,{value:"",label:l.unref($).global.t("dialogs.scope.none"),color:"lightext"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.none")),1)]),_:1},8,["label"])]),_:1},8,["modelValue"]),l.createElementVNode("div",null,[l.createVNode(ys.VLabel,{class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.organization")),1)]),_:1}),l.createVNode(ls.VSelect,{items:l.unref(d),"item-title":"name","item-value":"__id",variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref($).global.t("dialogs.scope.selectOrganization"),class:"min-w-50",modelValue:v.value.organization,"onUpdate:modelValue":D[1]||(D[1]=L=>v.value.organization=L),clearable:""},null,8,["items","placeholder","modelValue"]),l.createVNode(ys.VLabel,{class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref($).global.t("dialogs.scope.team")),1)]),_:1}),l.createVNode(ls.VSelect,{items:l.unref(m),"item-title":"name","item-value":"__id",variant:"solo","bg-color":"containerBg",rounded:"false",placeholder:l.unref($).global.t("dialogs.scope.selectTeam"),class:"min-w-50",modelValue:v.value.team,"onUpdate:modelValue":D[2]||(D[2]=L=>v.value.team=L),clearable:""},null,8,["items","placeholder","modelValue"])])])]),_:1},8,["loading","title"])],64))}}),T$={},b$={class:"double-ring-spinner-container"};function I$(n,e){return l.openBlock(),l.createElementBlock("div",b$,e[0]||(e[0]=[l.createElementVNode("div",{class:"spinner-loading"},[l.createElementVNode("div"),l.createElementVNode("div"),l.createElementVNode("div",null,[l.createElementVNode("div")]),l.createElementVNode("div",null,[l.createElementVNode("div")])],-1)]))}const BT=Sa(T$,[["render",I$],["__scopeId","data-v-00d7a69f"]]),S$={key:0,class:"_jspinner-overlay_jj"},FT=l.defineComponent({__name:"GlobalSpinner",setup(n){return(e,t)=>l.unref(ve)?(l.openBlock(),l.createElementBlock("div",S$,t[0]||(t[0]=[l.createElementVNode("div",{class:"j-double-ring-spinner-container"},[l.createElementVNode("div",{class:"j-global-spinner-loading"},[l.createElementVNode("div"),l.createElementVNode("div"),l.createElementVNode("div",null,[l.createElementVNode("div")]),l.createElementVNode("div",null,[l.createElementVNode("div")])])],-1)]))):l.createCommentVNode("",!0)}}),VT=l.defineComponent({__name:"SubMenu",props:{title:{}},setup(n,{expose:e}){return e({props:n}),(r,o)=>(l.openBlock(),l.createBlock(Qt.VListItem,{onClick:o[0]||(o[0]=()=>{}),density:"compact"},{append:l.withCtx(()=>[l.createVNode(l.unref(FF))]),default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.title),1)]),_:1}),l.createVNode(gf.VMenu,{activator:"parent","open-on-hover":"",submenu:"",density:"compact"},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3})]),_:3}))}}),A$=Object.freeze(Object.defineProperty({__proto__:null,AvatarPicture:fC,ColumnSettingsDialog:Uf,ConfirmDialog:dC,ContextMenu:mC,CopyButton:Bl,DeleteAllBtn:Cf,DotsMenu:uC,EditButton:lC,FormHeadless:zE,FormMetadata:ou,GlobalScopeFilter:UT,GlobalSpinner:FT,JAvatar:hC,JBtn:Oy,JDialog:Ls,JForm:KE,JIconBtn:Ry,JSelect:FE,JTextArea:VE,JTextField:mE,ParentCard:Kl,SearchFilter:Jl,SpinnerLoader:BT,SubMenu:VT,TabFormHeader:WE,TableAdvanced:XC,TableCard:Bf,TableCardsView:fE,TableHeader:ZC,UiTable:gC},Symbol.toStringTag,{value:"Module"})),k$=ZO(),N$={transition:"Vue-Toastification__fade",maxToasts:20,newestOnTop:!0};let mh=!1;const gh=l.ref(!1),Jn=l.ref([]),Iy=l.ref([]),$t=l.ref(null),ea=l.ref([]),R$=()=>{const n=wr(),e=async p=>{gh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Uo.getBranchList(w);C&&(Jn.value=C,mh=!0),gh.value=!1},t=async p=>(Jn.value.length||await e(p),Jn.value);function r(p){if(!Jn.value)throw new Error("Data not stored yet");const w=Oa(Jn.value,p,["name","description"]);return p!==""?w:Jn.value}const o=p=>{Iy.value=p},a=p=>{$t.value=Ra.cloneDeep(p)},c=async p=>await Uo.getBranch(p),d=async()=>{if($t.value!=null){const p=await Uo.createBranch($t.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Branch"})),mh&&Jn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if($t.value&&$t.value.__id){const p=await Uo.updateBranch($t.value);if(mh&&p){const w=Jn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Jn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Branch"}))):n.error($.global.t("toast.error.update_failed",{entity:"Branch"})),p}}else n.error($.global.t("toast.error.update_failed",{entity:"Branch"}))},m=async()=>{if($t.value&&$t.value.created_at){await Uo.deactivateBranch($t.value.__id);const p=Jn.value.findIndex(w=>{var C;return w.__id===((C=$t.value)==null?void 0:C.__id)});if(p!==-1)return Jn.value.splice(p,1),$t.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Branch"}))}};async function g(p){ve.value=!0;try{if($t.value&&$t.value.__id){const w={...p,branch:$t.value.__id};if(!await Mn.updateTeam(w)){n.error($.global.t("toast.error.link_failed",{entity:"Team"}));return}if(ea.value.findIndex(k=>k.__id===p.__id)===-1)return n.success($.global.t("toast.success.link_success",{entity:"Team"})),ea.value.push(w),w;n.info($.global.t("toast.info.already_linked",{entity:"Team"}))}else throw new Error("Item is not defined")}catch(w){console.error(w)}finally{ve.value=!1}}async function v(p){if(ve.value=!0,$t.value&&$t.value.__id){const w={...p,branch:null};if(!await Mn.updateTeam(w))return;const T=ea.value.findIndex(k=>k.__id===p.__id);if(T!==-1)return ea.value.splice(T,1),ve.value=!1,ea.value;throw new Error("Item not found to remove")}ve.value=!1}return{data:Jn,columns:Iy,item:$t,loading:gh,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,branchTeams:ea,linkTeam:g,unlinkTeam:v}};function O$(){const n=Da("https://api.jplan.com.br/management/division"),{error:e}=wr();return{async getDivisionList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Division"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getDivisionList:",r),e($.global.t("toast.error.fetch_failed",{entity:"Division"}));return}},async createDivision(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"Division"})),a}},async updateDivision(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"Division"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"Division"})),a}},async getDivision(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"Division"})),new Error(a.data.error);return a.data}catch(a){throw console.error("Error in getDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"Division"})),a}},async activateDivision(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"Division"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"Division"})),a}},async deactivateDivision(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"Division"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateDivision:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"Division"})),a}}}}const ca=O$();let ph=!1;const _h=l.ref(!1),Qn=l.ref([]),Sy=l.ref([]),Kt=l.ref(null),ta=l.ref([]),P$=()=>{const n=wr(),e=async p=>{_h.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await ca.getDivisionList(w);C&&(Qn.value=C,ph=!0),_h.value=!1},t=async p=>(Qn.value.length||await e(p),Qn.value);function r(p){if(!Qn.value)throw new Error("Data not stored yet");const w=Oa(Qn.value,p,["name","description"]);return p!==""?w:Qn.value}const o=p=>{Sy.value=p},a=p=>{Kt.value=Ra.cloneDeep(p)},c=async p=>await ca.getDivision(p),d=async()=>{if(Kt.value!=null){const p=await ca.createDivision(Kt.value);return p!=null&&p.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Division"})),ph&&Qn.value.push(p.data)),p==null?void 0:p.data}},h=async()=>{if(ve.value=!0,Kt.value&&Kt.value.__id){const p=await ca.updateDivision(Kt.value);if(ph&&(p!=null&&p.data.__id)){const w=Qn.value.findIndex(C=>C.__id===p.data.__id);return w!==-1?(Qn.value[w]=p.data,n.success($.global.t("toast.success.update_success",{entity:"Division"}))):n.error($.global.t("toast.error.update_failed",{entity:"Division"})),ve.value=!1,p}}else ve.value=!1,n.error($.global.t("toast.error.update_failed",{entity:"Division"}))},m=async()=>{if(ve.value=!0,Kt.value&&Kt.value.created_at){await ca.deactivateDivision(Kt.value.__id);const p=Qn.value.findIndex(w=>{var C;return w.__id===((C=Kt.value)==null?void 0:C.__id)});if(p!==-1)return Qn.value.splice(p,1),Kt.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Division"}))}ve.value=!1};async function g(p){ve.value=!0;try{if(Kt.value&&Kt.value.__id){const w={...p,division:Kt.value.__id};return await xo.updateOrg(w)?(ta.value.findIndex(k=>k.__id===p.__id)===-1?(n.success($.global.t("toast.success.link_success",{entity:"Organization"})),ta.value.push(w)):n.info($.global.t("toast.info.already_linked",{entity:"Organization"})),w):void 0}else throw new Error("Item is not defined")}catch(w){console.error(w)}finally{ve.value=!1}}async function v(p){if(ve.value=!0,Kt.value&&Kt.value.__id){const w={...p,division:null};if(!await xo.updateOrg(w))return;const T=ta.value.findIndex(k=>k.__id===p.__id);if(T!==-1)ta.value.splice(T,1);else throw new Error("Item not found to remove")}else throw new Error("Item is not defined");return ve.value=!1,ta.value}return{data:Qn,columns:Sy,item:Kt,loading:_h,__init__:e,filterData:r,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgs:ta,linkDivision:g,unlinkDivision:v}};function M$(){const n=Da("https://api.jplan.com.br/management/user"),{error:e}=wr();return{async getManageUserList(t){try{const r=t?`?filter_query=${t}`:"",o=await n.get(`/list/${r}`);if(o.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(o.data.error);return o.data.data}catch(r){console.error("Error in getManageUserList:",r),e($.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async createManageUser(t){var r,o;try{const a=await n.post("/item",t);return a.status>=200&&a.status<300?a:void 0}catch(a){throw console.error("Error in createManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.create_failed",{entity:"User"})),a}},async updateManageUser(t){var r,o;try{const a=await n.patch("/item",t);if(a.data.error)throw e($.global.t("toast.error.update_failed",{entity:"User"})),new Error(a.data.error);return a}catch(a){throw console.error("Error in updateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.update_failed",{entity:"User"})),a}},async getManageUser(t){var r,o;try{const a=await n.get(`/item/${t}`);if(a.data.error)throw e($.global.t("toast.error.fetch_failed",{entity:"User"})),new Error(a.data.error);return a.data}catch(a){console.error("Error in getManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.fetch_failed",{entity:"User"}));return}},async activateManageUser(t){var r,o;try{const a=await n.post(`/item/${t}/activate`);if(a.data.error)throw e($.global.t("toast.error.activate_failed",{entity:"User"})),new Error(a.data.error)}catch(a){throw console.error("Error in activateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.activate_failed",{entity:"User"})),a}},async deactivateManageUser(t){var r,o;try{const a=await n.post(`/item/${t}/deactivate`);if(a.data.error)throw e($.global.t("toast.error.deactivate_failed",{entity:"User"})),new Error(a.data.error)}catch(a){throw console.error("Error in deactivateManageUser:",a),e(((o=(r=a.response)==null?void 0:r.data)==null?void 0:o.message)||$.global.t("toast.error.deactivate_failed",{entity:"User"})),a}}}}const la=M$();let vh=!1,yh=l.ref(!1);const Xn=l.ref([]),Ay=l.ref([]),Zn=l.ref(null),D$=l.ref(null),L$=l.ref([]),x$=()=>{const n=wr(),e=async g=>{yh.value=!0;const v=g?`_active eq true and ${g}`:"_active eq true",p=await la.getManageUserList(v);p&&(Xn.value=p,vh=!0),yh.value=!1},t=async g=>(Xn.value.length||await e(g),Xn.value);function r(g){if(!Xn.value)throw new Error("Data not stored yet");const v=Oa(Xn.value,g,["name","description"]);return g!==""?v:Xn.value}return{data:Xn,loading:yh,columns:Ay,item:Zn,filterData:r,__init__:e,getData:t,setColumns:g=>{Ay.value=g},setItem:g=>{Zn.value=Ra.cloneDeep(g)},getItem:async g=>await la.getManageUser(g),createItem:async()=>{if(Zn.value!=null){const g=crypto.randomUUID(),v=await la.createManageUser({...Zn.value,__id:g});return v!=null&&v.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"User"})),vh&&Xn.value.push(v.data)),v==null?void 0:v.data}},updateItem:async()=>{if(ve.value=!0,Zn.value&&Zn.value.created_at){const g=await la.updateManageUser(Zn.value);if(vh&&(g!=null&&g.data)){const v=Xn.value.findIndex(p=>p.__id===(g==null?void 0:g.data.__id));v!==-1?(Xn.value[v]=g==null?void 0:g.data,n.success($.global.t("toast.success.update_success",{entity:"User"}))):n.error($.global.t("toast.error.update_failed",{entity:"User"}))}return ve.value=!1,g==null?void 0:g.data}},removeItem:async()=>{if(Zn.value&&Zn.value.created_at){try{await la.deactivateManageUser(Zn.value.__id)}catch{n.error($.global.t("toast.error.deactivate_failed",{entity:"User"}));return}const g=Xn.value.findIndex(v=>{var p;return v.__id===((p=Zn.value)==null?void 0:p.__id)});if(g!==-1)return Xn.value.splice(g,1),n.success($.global.t("toast.success.deactivate_success",{entity:"User"})),Zn.value}},userOrg:D$,userTeams:L$}},Ch=Object.freeze({colNum:24,rowHeight:50,useCssTransforms:!0,responsive:!0,margin:[12,10]}),na=l.ref(!1),U$=l.ref([]);function B$(){const n=l.ref({...Ch,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"});function e(){if(na.value=!na.value,n.value.isDraggable=na.value,n.value.isResizable=na.value,!na.value){n.value.useStyleCursor=!0,n.value.cursor="pointer";return}n.value.useStyleCursor=!1,n.value.cursor="move"}function t(){n.value={...Ch,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"}}return{DEFAULT_CONFIG:Ch,config:n,layout:U$,edition:na,toggleEdit:e,resetLayout:t}}const F$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetTask-yVRPUBeT.js"))),V$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetImage-DhplL-E6.js"))),H$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetShortcut-CKUUOu5F.js"))),$$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetSpacer-BaZc5Xtx.js"))),K$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetLabel-D-x1lC9D.js"))),W$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartBar-ChMg_dbz.js"))),z$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartPie-C2AIgVQ2.js"))),G$={WidgetSpacer:$$,WidgetLabel:K$,WidgetTask:F$,WidgetImage:V$,WidgetShortcut:H$,WidgetChartBar:W$,WidgetChartPie:z$},q$={defaultI18n:!0},j$=(n,e)=>{const t={...q$,...e};n.use(k$),n.use(tP,N$),t.defaultI18n&&n.use($),Object.entries(A$).forEach(([r,o])=>{n.component(r,o)}),Object.entries(SO).forEach(([r,o])=>{n.provide(r,o)})},Y$={install:j$};exports.ContextMenu=mC;exports.EmptyListImg=Lh;exports.EventBus=Hl;exports.FormHeadless=zE;exports.HttpCore=cF;exports.I18nMessages=Om;exports.SpinnerLoader=BT;exports.TableCardsView=fE;exports.TableHeader=ZC;exports.__spinner=ve;exports._export_sfc=Sa;exports._sfc_main=Ls;exports._sfc_main$1=gC;exports._sfc_main$10=Oy;exports._sfc_main$11=Cf;exports._sfc_main$12=lC;exports._sfc_main$13=Ry;exports._sfc_main$14=FE;exports._sfc_main$15=VE;exports._sfc_main$16=mE;exports._sfc_main$17=KE;exports._sfc_main$18=WE;exports._sfc_main$19=Kl;exports._sfc_main$2=XC;exports._sfc_main$20=hC;exports._sfc_main$21=fC;exports._sfc_main$22=VT;exports._sfc_main$23=UT;exports._sfc_main$24=FT;exports._sfc_main$3=Uf;exports._sfc_main$4=Bf;exports._sfc_main$5=Jl;exports._sfc_main$6=dC;exports._sfc_main$7=Bl;exports._sfc_main$8=uC;exports._sfc_main$9=ou;exports.branchInstance=Uo;exports.coreClient=Rm;exports.createToastInterface=ws;exports.dateFormat=us;exports.divisionInstance=ca;exports.filterQuery=Oa;exports.globalEventBus=yf;exports.i18n=$;exports.index=Y$;exports.manageUserInstance=la;exports.msal=Gt;exports.orgInstance=xo;exports.provideToast=eP;exports.scopedClient=Da;exports.setupAuthGuard=p$;exports.teamInstance=Mn;exports.toastInjectionKey=$l;exports.useAuth=Nm;exports.useBranchStore=R$;exports.useCustomizer=o0;exports.useDashboardStore=B$;exports.useDialog=Ms;exports.useDivisionStore=P$;exports.useManageUserStore=x$;exports.useOrganizationStore=LT;exports.useSession=vu;exports.useTeamStore=xT;exports.useToast=wr;exports.widgets=G$;