jplan-pack 0.6.752 → 0.6.762

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"),pf=require("@vueuse/core"),it=require("vuetify/lib/components/VBtn/index.mjs"),Vo=require("vuetify/components"),yl=require("vuetify/lib/components/VIcon/index.mjs"),xt=require("vuetify/lib/components/VCard/index.mjs"),nl=require("vuetify/lib/components/VDialog/index.mjs"),pi=require("vuetify/lib/components/VDivider/index.mjs"),Qe=require("vuetify/lib/components/VGrid/index.mjs"),Py=require("vuetify/lib/components/VAvatar/index.mjs"),_f=require("vuetify/lib/components/VImg/index.mjs"),Qt=require("vuetify/lib/components/VList/index.mjs"),vf=require("vuetify/lib/components/VMenu/index.mjs"),My=require("vuetify/lib/components/VDataTable/index.mjs"),SO=require("vuetify/lib/components/VTextField/index.mjs"),hs=require("vuetify/lib/components/VSelect/index.mjs"),AO=require("vuetify/lib/components/VCheckbox/index.mjs"),kO=require("vuetify/lib/components/VChip/index.mjs"),va=require("vuetify/lib/components/VLabel/index.mjs"),NO=require("vuetify/lib/components/VAutocomplete/index.mjs"),RO=require("vuetify/lib/components/VTextarea/index.mjs"),OO=require("vuetify/lib/components/VBtnToggle/index.mjs");function PO(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 MO=PO(pf),DO={key:0},LO={key:1},Hl=l.defineComponent({__name:"CopyButton",props:{contentToCopy:{},size:{},color:{}},setup(n){const e=n,{copy:t,copied:r,isSupported:o}=pf.useClipboard();return(a,c)=>{const d=l.resolveComponent("CopyIcon");return l.unref(o)?(l.openBlock(),l.createElementBlock("span",DO,[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",LO,"Your browser does not support Clipboard API"))}}}),u_=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(yl.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))}}),Dy=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(u_,{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(u_,{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"]))}}),Ly=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 xy=!1;function Lc(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 Ud(n,e){if(Array.isArray(n)){n.splice(e,1);return}delete n[e]}function xO(){return Uy().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Uy(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const UO=typeof Proxy=="function",BO="devtools-plugin:setup",FO="plugin:settings:set";let Ki,bh;function VO(){var n;return Ki!==void 0||(typeof window<"u"&&window.performance?(Ki=!0,bh=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Ki=!0,bh=globalThis.perf_hooks.performance):Ki=!1),Ki}function HO(){return VO()?bh.now():Date.now()}class $O{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 HO()}},t&&t.on(FO,(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 yf(n,e){const t=n,r=Uy(),o=xO(),a=UO&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(BO,n,e);else{const c=a?new $O(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"),gf=require("@vueuse/core"),it=require("vuetify/lib/components/VBtn/index.mjs"),Vo=require("vuetify/components"),vl=require("vuetify/lib/components/VIcon/index.mjs"),xt=require("vuetify/lib/components/VCard/index.mjs"),tl=require("vuetify/lib/components/VDialog/index.mjs"),pi=require("vuetify/lib/components/VDivider/index.mjs"),Qe=require("vuetify/lib/components/VGrid/index.mjs"),Ry=require("vuetify/lib/components/VAvatar/index.mjs"),pf=require("vuetify/lib/components/VImg/index.mjs"),Qt=require("vuetify/lib/components/VList/index.mjs"),_f=require("vuetify/lib/components/VMenu/index.mjs"),Oy=require("vuetify/lib/components/VDataTable/index.mjs"),TO=require("vuetify/lib/components/VTextField/index.mjs"),hs=require("vuetify/lib/components/VSelect/index.mjs"),bO=require("vuetify/lib/components/VCheckbox/index.mjs"),IO=require("vuetify/lib/components/VChip/index.mjs"),va=require("vuetify/lib/components/VLabel/index.mjs"),SO=require("vuetify/lib/components/VAutocomplete/index.mjs"),AO=require("vuetify/lib/components/VTextarea/index.mjs"),kO=require("vuetify/lib/components/VBtnToggle/index.mjs");function NO(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 RO=NO(gf),OO={key:0},PO={key:1},Vl=l.defineComponent({__name:"CopyButton",props:{contentToCopy:{},size:{},color:{}},setup(n){const e=n,{copy:t,copied:r,isSupported:o}=gf.useClipboard();return(a,c)=>{const d=l.resolveComponent("CopyIcon");return l.unref(o)?(l.openBlock(),l.createElementBlock("span",OO,[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",PO,"Your browser does not support Clipboard API"))}}}),l_=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(vl.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))}}),Py=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(l_,{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(l_,{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"]))}}),My=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 Dy=!1;function Lc(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 xd(n,e){if(Array.isArray(n)){n.splice(e,1);return}delete n[e]}function MO(){return Ly().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ly(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const DO=typeof Proxy=="function",LO="devtools-plugin:setup",xO="plugin:settings:set";let Ki,Th;function UO(){var n;return Ki!==void 0||(typeof window<"u"&&window.performance?(Ki=!0,Th=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Ki=!0,Th=globalThis.perf_hooks.performance):Ki=!1),Ki}function BO(){return UO()?Th.now():Date.now()}class FO{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 BO()}},t&&t.on(xO,(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 vf(n,e){const t=n,r=Ly(),o=MO(),a=DO&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(LO,n,e);else{const c=a?new FO(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 as;const ws=n=>as=n,By=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ya(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",d_=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 KO(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 Cf(n,e,t){const r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Hy(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function Fy(n){const e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function rl(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 ol=typeof navigator=="object"?navigator:{userAgent:""},Vy=/Macintosh/.test(ol.userAgent)&&/AppleWebKit/.test(ol.userAgent)&&!/Safari/.test(ol.userAgent),Hy=di?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Vy?WO:"msSaveOrOpenBlob"in ol?zO:GO:()=>{};function WO(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?Fy(r.href)?Cf(n,e,t):(r.target="_blank",rl(r)):rl(r)):(r.href=URL.createObjectURL(n),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){rl(r)},0))}function zO(n,e="download",t){if(typeof n=="string")if(Fy(n))Cf(n,e,t);else{const r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){rl(r)})}else navigator.msSaveOrOpenBlob(KO(n,t),e)}function GO(n,e,t,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return Cf(n,e,t);const o=n.type==="application/octet-stream",a=/constructor/i.test(String(d_.HTMLElement))||"safari"in d_,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a||Vy)&&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 Ef(n){return"_a"in n&&"install"in n}function $y(){if(!("clipboard"in navigator))return Ut("Your browser doesn't support the Clipboard API","error"),!0}function Ky(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 qO(n){if(!$y())try{await navigator.clipboard.writeText(JSON.stringify(n.state.value)),Ut("Global state copied to clipboard.")}catch(e){if(Ky(e))return;Ut("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function jO(n){if(!$y())try{Wy(n,JSON.parse(await navigator.clipboard.readText())),Ut("Global state pasted from clipboard.")}catch(e){if(Ky(e))return;Ut("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function YO(n){try{Hy(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 JO(){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 QO(n){try{const t=await JO()();if(!t)return;const{text:r,file:o}=t;Wy(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 Wy(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 mr(n){return{_custom:{display:n}}}const zy="🍍 Pinia (root)",il="_root";function XO(n){return Ef(n)?{id:il,label:zy}:{id:n.$id,label:n.$id}}function ZO(n){if(Ef(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 e0(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:mr(n.type),key:mr(n.key),oldValue:n.oldValue,newValue:n.newValue}:{}}function t0(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 al=[],ci="pinia:mutations",Zt="pinia",{assign:n0}=Object,Cl=n=>"🍍 "+n;function r0(n,e){yf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:al,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:()=>{qO(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await jO(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{YO(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await QO(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:Cl(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:Cl(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()):zy.toLowerCase().includes(r.filter.toLowerCase())):o).map(XO)}}),globalThis.$pinia=e,t.on.getInspectorState(r=>{if(r.app===n&&r.inspectorId===Zt){const o=r.nodeId===il?e:e._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==il&&(globalThis.$store=l.toRaw(o)),r.state=ZO(o))}}),t.on.editInspectorState((r,o)=>{if(r.app===n&&r.inspectorId===Zt){const a=r.nodeId===il?e:e._s.get(r.nodeId);if(!a)return Ut(`store "${r.nodeId}" not found`,"error");const{path:c}=r;Ef(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 as;const ws=n=>as=n,xy=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ya(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",u_=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 VO(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 yf(n,e,t){const r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Fy(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function Uy(n){const e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function nl(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 rl=typeof navigator=="object"?navigator:{userAgent:""},By=/Macintosh/.test(rl.userAgent)&&/AppleWebKit/.test(rl.userAgent)&&!/Safari/.test(rl.userAgent),Fy=di?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!By?HO:"msSaveOrOpenBlob"in rl?$O:KO:()=>{};function HO(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?Uy(r.href)?yf(n,e,t):(r.target="_blank",nl(r)):nl(r)):(r.href=URL.createObjectURL(n),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){nl(r)},0))}function $O(n,e="download",t){if(typeof n=="string")if(Uy(n))yf(n,e,t);else{const r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){nl(r)})}else navigator.msSaveOrOpenBlob(VO(n,t),e)}function KO(n,e,t,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return yf(n,e,t);const o=n.type==="application/octet-stream",a=/constructor/i.test(String(u_.HTMLElement))||"safari"in u_,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a||By)&&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 Cf(n){return"_a"in n&&"install"in n}function Vy(){if(!("clipboard"in navigator))return Ut("Your browser doesn't support the Clipboard API","error"),!0}function Hy(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 WO(n){if(!Vy())try{await navigator.clipboard.writeText(JSON.stringify(n.state.value)),Ut("Global state copied to clipboard.")}catch(e){if(Hy(e))return;Ut("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function zO(n){if(!Vy())try{$y(n,JSON.parse(await navigator.clipboard.readText())),Ut("Global state pasted from clipboard.")}catch(e){if(Hy(e))return;Ut("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function GO(n){try{Fy(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 qO(){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 jO(n){try{const t=await qO()();if(!t)return;const{text:r,file:o}=t;$y(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 $y(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 mr(n){return{_custom:{display:n}}}const Ky="🍍 Pinia (root)",ol="_root";function YO(n){return Cf(n)?{id:ol,label:Ky}:{id:n.$id,label:n.$id}}function JO(n){if(Cf(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:mr(n.type),key:mr(n.key),oldValue:n.oldValue,newValue:n.newValue}:{}}function XO(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 il=[],ci="pinia:mutations",Zt="pinia",{assign:ZO}=Object,yl=n=>"🍍 "+n;function e0(n,e){vf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:il,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:()=>{WO(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await zO(e),t.sendInspectorTree(Zt),t.sendInspectorState(Zt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{GO(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await jO(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:yl(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:yl(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()):Ky.toLowerCase().includes(r.filter.toLowerCase())):o).map(YO)}}),globalThis.$pinia=e,t.on.getInspectorState(r=>{if(r.app===n&&r.inspectorId===Zt){const o=r.nodeId===ol?e:e._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==ol&&(globalThis.$store=l.toRaw(o)),r.state=JO(o))}}),t.on.editInspectorState((r,o)=>{if(r.app===n&&r.inspectorId===Zt){const a=r.nodeId===ol?e:e._s.get(r.nodeId);if(!a)return Ut(`store "${r.nodeId}" not found`,"error");const{path:c}=r;Cf(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 o0(n,e){al.includes(Cl(e.$id))||al.push(Cl(e.$id)),yf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:al,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=Gy++;t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛫 "+h,subtitle:"start",data:{store:mr(e.$id),action:mr(h),args:m},groupId:g}}),c(_=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛬 "+h,subtitle:"end",data:{store:mr(e.$id),action:mr(h),args:m,result:_},groupId:g}})}),d(_=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),logType:"error",title:"💥 "+h,subtitle:"end",data:{store:mr(e.$id),action:mr(h),args:m,error:_},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:t0(d),data:n0({store:mr(e.$id)},e0(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:mr(e.$id),info:mr("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 Gy=0,Bo;function h_(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=Gy,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 i0({app:n,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){h_(e,Object.keys(t.actions),e._isOptionsAPI);const r=e._hotUpdate;l.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),h_(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)}}o0(n,e)}}function a0(){const n=l.effectScope(!0),e=n.run(()=>l.ref({}));let t=[],r=[];const o=l.markRaw({install(a){ws(o),o._a=a,a.provide(By,o),a.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di&&r0(a,o),r.forEach(c=>t.push(c)),r=[]},use(a){return!this._a&&!xy?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(i0),o}function qy(n,e){for(const t in e){const r=e[t];if(!(t in n))continue;const o=n[t];ya(o)&&ya(r)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=qy(o,r):n[t]=r}return n}const s0=()=>{};function f_(n,e,t,r=s0){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 c0=n=>n(),m_=Symbol(),Bd=Symbol();function jy(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];ya(o)&&ya(r)&&n.hasOwnProperty(t)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=jy(o,r):n[t]=r}return n}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const{assign:er}=Object;function g_(n){return!!(l.isRef(n)&&n.effect)}function p_(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((_,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}".`),_[p]=l.markRaw(l.computed(()=>{ws(t);const w=t._s.get(n);return c[p].call(w,w)})),_),{}))}return h=l0(n,m,e,t,r,!0),h}function l0(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"&&!xy&&(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,_=[],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}):(jy(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(_,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(),_=[],p=[],r._s.delete(n)}const L=(X,ee="")=>{if(m_ in X)return X[Bd]=ee,X;const ue=function(){ws(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[Bd],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[m_]=!0,ue[Bd]=ee,ue},K=l.markRaw({actions:{},getters:{},state:[],hotState:T}),q={_p:r,$id:n,$onAction:f_.bind(null,p),$patch:I,$reset:N,$subscribe(X,ee={}){const ue=f_(_,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||c0)(()=>r._e.run(()=>(c=l.effectScope()).run(()=>e({action:L}))));for(const X in ae){const ee=ae[X];if(l.isRef(ee)&&!g_(ee)||l.isReactive(ee))process.env.NODE_ENV!=="production"&&o&&Lc(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"&&g_(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"&&ya(ue)&&ya(Be)?qy(ue,Be):X.$state[ee]=Be}Lc(M,ee,l.toRef(X.$state,ee))}),Object.keys(M.$state).forEach(ee=>{ee in X.$state||Ud(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];Lc(M,ee,L(ue,ee))}for(const ee in X._hmrPayload.getters){const ue=X._hmrPayload.getters[ee],Be=l.computed(()=>(ws(r),ue.call(M,M)));Lc(M,ee,Be)}Object.keys(M._hmrPayload.getters).forEach(ee=>{ee in X._hmrPayload.getters||Ud(M,ee)}),Object.keys(M._hmrPayload.actions).forEach(ee=>{ee in X._hmrPayload.actions||Ud(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 t0(n,e){il.includes(yl(e.$id))||il.push(yl(e.$id)),vf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:il,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=Wy++;t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛫 "+h,subtitle:"start",data:{store:mr(e.$id),action:mr(h),args:m},groupId:g}}),c(_=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),title:"🛬 "+h,subtitle:"end",data:{store:mr(e.$id),action:mr(h),args:m,result:_},groupId:g}})}),d(_=>{Bo=void 0,t.addTimelineEvent({layerId:ci,event:{time:r(),logType:"error",title:"💥 "+h,subtitle:"end",data:{store:mr(e.$id),action:mr(h),args:m,error:_},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:XO(d),data:ZO({store:mr(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:mr(e.$id),info:mr("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 Wy=0,Bo;function d_(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=Wy,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 n0({app:n,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){d_(e,Object.keys(t.actions),e._isOptionsAPI);const r=e._hotUpdate;l.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),d_(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)}}t0(n,e)}}function r0(){const n=l.effectScope(!0),e=n.run(()=>l.ref({}));let t=[],r=[];const o=l.markRaw({install(a){ws(o),o._a=a,a.provide(xy,o),a.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&di&&e0(a,o),r.forEach(c=>t.push(c)),r=[]},use(a){return!this._a&&!Dy?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(n0),o}function zy(n,e){for(const t in e){const r=e[t];if(!(t in n))continue;const o=n[t];ya(o)&&ya(r)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=zy(o,r):n[t]=r}return n}const o0=()=>{};function h_(n,e,t,r=o0){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 i0=n=>n(),f_=Symbol(),Ud=Symbol();function Gy(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];ya(o)&&ya(r)&&n.hasOwnProperty(t)&&!l.isRef(r)&&!l.isReactive(r)?n[t]=Gy(o,r):n[t]=r}return n}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();const{assign:er}=Object;function m_(n){return!!(l.isRef(n)&&n.effect)}function g_(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((_,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}".`),_[p]=l.markRaw(l.computed(()=>{ws(t);const w=t._s.get(n);return c[p].call(w,w)})),_),{}))}return h=a0(n,m,e,t,r,!0),h}function a0(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"&&!Dy&&(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,_=[],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}):(Gy(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(_,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(),_=[],p=[],r._s.delete(n)}const L=(X,ee="")=>{if(f_ in X)return X[Ud]=ee,X;const ue=function(){ws(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[Ud],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[f_]=!0,ue[Ud]=ee,ue},K=l.markRaw({actions:{},getters:{},state:[],hotState:T}),q={_p:r,$id:n,$onAction:h_.bind(null,p),$patch:I,$reset:N,$subscribe(X,ee={}){const ue=h_(_,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||i0)(()=>r._e.run(()=>(c=l.effectScope()).run(()=>e({action:L}))));for(const X in ae){const ee=ae[X];if(l.isRef(ee)&&!m_(ee)||l.isReactive(ee))process.env.NODE_ENV!=="production"&&o&&Lc(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"&&m_(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"&&ya(ue)&&ya(Be)?zy(ue,Be):X.$state[ee]=Be}Lc(M,ee,l.toRef(X.$state,ee))}),Object.keys(M.$state).forEach(ee=>{ee in X.$state||xd(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];Lc(M,ee,L(ue,ee))}for(const ee in X._hmrPayload.getters){const ue=X._hmrPayload.getters[ee],Be=l.computed(()=>(ws(r),ue.call(M,M)));Lc(M,ee,Be)}Object.keys(M._hmrPayload.getters).forEach(ee=>{ee in X._hmrPayload.getters||xd(M,ee)}),Object.keys(M._hmrPayload.actions).forEach(ee=>{ee in X._hmrPayload.actions||xd(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 u0(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"&&as&&as._testing?null:c)||(h?l.inject(By,null):null),c&&ws(c),process.env.NODE_ENV!=="production"&&!as)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 s0(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"&&as&&as._testing?null:c)||(h?l.inject(xy,null):null),c&&ws(c),process.env.NODE_ENV!=="production"&&!as)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=as,c._s.has(r)||(p_(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,_=p_(g,er({},o),c,!0);d._hotUpdate(_),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 _=g.proxy,p="_pStores"in _?_._pStores:_._pStores={};p[r]=m}}return m}return a.$id=r,a}const d0=u0({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({}),Ls=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 h0=Object.defineProperty,__=Object.getOwnPropertySymbols,f0=Object.prototype.hasOwnProperty,m0=Object.prototype.propertyIsEnumerable,v_=(n,e,t)=>e in n?h0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Yy=(n,e)=>{for(var t in e||(e={}))f0.call(e,t)&&v_(n,t,e[t]);if(__)for(var t of __(e))m0.call(e,t)&&v_(n,t,e[t]);return n},$l=n=>typeof n=="function",Kl=n=>typeof n=="string",Jy=n=>Kl(n)&&n.trim().length>0,g0=n=>typeof n=="number",hi=n=>typeof n>"u",Ts=n=>typeof n=="object"&&n!==null,p0=n=>Hr(n,"tag")&&Jy(n.tag),Qy=n=>window.TouchEvent&&n instanceof TouchEvent,Xy=n=>Hr(n,"component")&&Zy(n.component),_0=n=>$l(n)||Ts(n),Zy=n=>!hi(n)&&(Kl(n)||_0(n)||Xy(n)),y_=n=>Ts(n)&&["height","width","right","left","top","bottom"].every(e=>g0(n[e])),Hr=(n,e)=>(Ts(n)||$l(n))&&e in n,v0=(n=>()=>n++)(0);function Fd(n){return Qy(n)?n.targetTouches[0].clientX:n.clientX}function C_(n){return Qy(n)?n.targetTouches[0].clientY:n.clientY}var y0=n=>{hi(n.remove)?n.parentNode&&n.parentNode.removeChild(n):n.remove()},xs=n=>Xy(n)?xs(n.component):p0(n)?l.defineComponent({render(){return n}}):typeof n=="string"?n:l.toRaw(l.unref(n)),C0=n=>{if(typeof n=="string")return n;const e=Hr(n,"props")&&Ts(n.props)?n.props:{},t=Hr(n,"listeners")&&Ts(n.listeners)?n.listeners:{};return{component:xs(n),props:e,listeners:t}},E0=()=>typeof window<"u",Wl=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))}},w0=n=>["on","off","emit"].every(e=>Hr(n,e)&&$l(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 _r="Vue-Toastification",pr={type:{type:String,default:exports.TYPE.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},eC={type:pr.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},sl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:pr.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},Ih={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tC={transition:{type:[Object,String],default:`${_r}__bounce`}},T0={position:{type:String,default:exports.POSITION.TOP_RIGHT},draggable:pr.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:pr.trueBoolean,pauseOnHover:pr.trueBoolean,closeOnClick:pr.trueBoolean,timeout:Ih.timeout,hideProgressBar:Ih.hideProgressBar,toastClassName:pr.classNames,bodyClassName:pr.classNames,icon:eC.customIcon,closeButton:sl.component,closeButtonClassName:sl.classNames,showCloseButtonOnHover:sl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Wl}},b0={id:{type:[String,Number],required:!0,default:0},type:pr.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},I0={container:{type:[Object,Function],default:()=>document.body},newestOnTop:pr.trueBoolean,maxToasts:{type:Number,default:20},transition:tC.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:n=>n},filterToasts:{type:Function,default:n=>n},containerClassName:pr.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},uo={CORE_TOAST:T0,TOAST:b0,CONTAINER:I0,PROGRESS_BAR:Ih,ICON:eC,TRANSITION:tC,CLOSE_BUTTON:sl},nC=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?`${_r}__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 S0(n,e){return l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(n.style),class:l.normalizeClass(n.cpClass)},null,6)}nC.render=S0;var A0=nC,rC=l.defineComponent({name:"VtCloseButton",props:uo.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?xs(this.component):"button"},classes(){const n=[`${_r}__close-button`];return this.showOnHover&&n.push("show-on-hover"),n.concat(this.classNames)}}}),k0=l.createTextVNode(" × ");function N0(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(()=>[k0]),_:1},16,["aria-label","class"])}rC.render=N0;var R0=rC,oC={},O0={"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"},P0=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),M0=[P0];function D0(n,e){return l.openBlock(),l.createElementBlock("svg",O0,M0)}oC.render=D0;var L0=oC,iC={},x0={"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"},U0=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),B0=[U0];function F0(n,e){return l.openBlock(),l.createElementBlock("svg",x0,B0)}iC.render=F0;var E_=iC,aC={},V0={"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"},H0=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),$0=[H0];function K0(n,e){return l.openBlock(),l.createElementBlock("svg",V0,$0)}aC.render=K0;var W0=aC,sC={},z0={"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"},G0=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),q0=[G0];function j0(n,e){return l.openBlock(),l.createElementBlock("svg",z0,q0)}sC.render=j0;var Y0=sC,cC=l.defineComponent({name:"VtIcon",props:uo.ICON,computed:{customIconChildren(){return Hr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Kl(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:Zy(this.customIcon)?xs(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[exports.TYPE.DEFAULT]:E_,[exports.TYPE.INFO]:E_,[exports.TYPE.SUCCESS]:L0,[exports.TYPE.ERROR]:Y0,[exports.TYPE.WARNING]:W0}[this.type]},iconClasses(){const n=[`${_r}__icon`];return this.hasCustomIcon?n.concat(this.customIconClass):n}},methods:{trimValue(n,e=""){return Jy(n)?n.trim():e}}});function J0(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"])}cC.render=J0;var Q0=cC,lC=l.defineComponent({name:"VtToast",components:{ProgressBar:A0,CloseButton:R0,Icon:Q0},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=[`${_r}__toast`,`${_r}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&n.push("disable-transition"),this.rtl&&n.push(`${_r}__toast--rtl`),n},bodyClasses(){return[`${_r}__toast-${Kl(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 y_(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:xs,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:Fd(n),y:C_(n)},this.dragStart=Fd(n),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(n){this.beingDragged&&(n.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Fd(n),y:C_(n)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,y_(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}))}}}),X0=["role"];function Z0(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,X0),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)}lC.render=Z0;var eP=lC,uC=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 tP(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"])}uC.render=tP;var nP=uC,dC=l.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:eP,VtTransition:nP},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){$l(n)&&(n=await n()),y0(this.$el),n.appendChild(this.$el)},setToast(n){hi(n.id)||(this.toasts[n.id]=n)},addToast(n){n.content=C0(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[`${_r}__container`,n].concat(this.defaults.containerClassName)}}});function rP(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))])}dC.render=rP;var oP=dC,w_=(n={},e=!0)=>{const t=n.eventBus=n.eventBus||new Wl;e&&l.nextTick(()=>{const a=l.createApp(oP,Yy({},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(`[${_r}] 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:v0(),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},iP=()=>{const n=()=>console.warn(`[${_r}] This plugin does not support SSR!`);return new Proxy(n,{get(){return n}})};function bs(n){return E0()?w0(n)?w_({eventBus:n},!1):w_(n,!0):iP()}var zl=Symbol("VueToastification"),wf=new Wl,aP=(n,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=n);const t=bs(Yy({eventBus:wf},e));n.provide(zl,t)},sP=n=>{const e=bs(n);l.getCurrentInstance()&&l.provide(zl,e)},ar=n=>{if(n)return bs(n);const e=l.getCurrentInstance()?l.inject(zl,void 0):void 0;return e||bs(wf)},cP=aP;const ve=l.ref(!1),ns=l.ref([]),rs=l.ref([]);function hC(){const n=ar();function e(g,_,p={}){n[g](_),rs.value.push({id:crypto.randomUUID(),read:!1,type:g,message:_,timestamp:new Date,meta:{url:p.url||"",method:p.method||"",status:p.status||0}})}function t(g,_){n[g](_),ns.value.push({id:crypto.randomUUID(),read:!1,type:g,message:_,timestamp:new Date})}const r={server:{success:(g,_)=>e("success",g,_),error:(g,_)=>e("error",g,_),warning:(g,_)=>e("warning",g,_),info:(g,_)=>e("info",g,_)},client:{success:g=>t("success",g),error:g=>t("error",g),warning:g=>t("warning",g),info:g=>t("info",g)}};function o(){return ns.value.filter(g=>!g.read)}function a(){return rs.value.filter(g=>!g.read)}function c(){return[...o(),...a()].sort((g,_)=>_.timestamp.getTime()-g.timestamp.getTime())}function d(){return o().length+a().length}function h(g){const _=ns.value.find(p=>p.id===g)||rs.value.find(p=>p.id===g);_&&(_.read=!0)}function m(){ns.value.forEach(g=>g.read=!0),rs.value.forEach(g=>g.read=!0)}return{client:ns,server:rs,toast:r,getUnreadClient:o,getUnreadServer:a,getNewNotifications:c,getUnreadCount:d,markAsRead:h,markAllAsRead:m}}var lP={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(" ")])}},uP={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(" ")])}},dP={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(" ")])}},hP={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(" ")])}},fC={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(" ")])}},fP={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(" ")])}},mP={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(" ")])}},gP={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(" ")])}},pP={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(" ")])}},_P={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(" ")])}},vP={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(" ")])}},yP={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 CP={class:"d-flex align-center"},EP={key:1},wP={class:"ms-auto"},Us=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}=Ls(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(nl.VDialog,{key:0,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[0]||(g[0]=_=>l.isRef(a)?a.value=_: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",CP,[m.$slots.title?l.renderSlot(m.$slots,"title",{key:0}):(l.openBlock(),l.createElementBlock("div",EP,l.toDisplayString(t.title),1))]),l.createElementVNode("div",wP,[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(nl.VDialog,{key:1,scrim:"background",width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[1]||(g[1]=_=>l.isRef(a)?a.value=_: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(fC),{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(nl.VDialog,{key:2,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[2]||(g[2]=_=>l.isRef(a)?a.value=_:null),"onClick:outside":d},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0)],64))}}),Tf=l.defineComponent({__name:"DeleteAllBtn",emits:["removeAll"],setup(n,{emit:e}){const{openDialog:t}=Ls("delete-all-__J"),r=e;return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Us,{"dd-id":"delete-all-__J",variant:"confirm",title:"Confirm delete",text:"Are you sure you want to delete all selected items?",onOnSave:a[0]||(a[0]=()=>r("removeAll"))}),l.createVNode(it.VBtn,{onClick:l.unref(t),variant:"plain",color:"secondary","prepend-icon":"mdi-delete"},{default:l.withCtx(()=>a[1]||(a[1]=[l.createTextVNode(" Delete")])),_:1},8,["onClick"])],64))}}),mC=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}))}}),gC=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(uP),{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(dP),{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}))}}),Gl=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"]))}}),pC=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(nl.VDialog,{scrim:"rgb(0,0,0,100)",width:t.width},{activator:l.withCtx(({isActive:g,props:_})=>[l.renderSlot(h.$slots,"button",l.normalizeProps(l.guardReactiveProps({isActive:g,props:_})))]),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(fC),{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"]))}}),Vd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",_C=l.defineComponent({__name:"JAvatar",props:{src:{}},setup(n){const e=n,t=l.ref(e.src),r=l.computed(()=>t.value||Vd);function o(){t.value=Vd}return(a,c)=>(l.openBlock(),l.createBlock(Py.VAvatar,{size:"50"},{default:l.withCtx(()=>[l.createVNode(_f.VImg,{src:r.value,"lazy-src":Vd,onError:o,width:"50",alt:"profile-placeholder"},null,8,["src"])]),_:1}))}}),Hd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",vC=l.defineComponent({__name:"AvatarPicture",props:{img:{},size:{}},setup(n){const e=n,t=l.ref(e.img),r=l.computed(()=>t.value||Hd);function o(){t.value=Hd}return(a,c)=>(l.openBlock(),l.createBlock(Py.VAvatar,{size:a.size},{default:l.withCtx(()=>[l.createVNode(_f.VImg,{src:r.value,"lazy-src":Hd,onError:o,width:"40",alt:"Avatar"},null,8,["src"])]),_:1},8,["size"]))}}),TP=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(vf.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))}}),Aa=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},yC=Aa(TP,[["__scopeId","data-v-ad4e4a5d"]]),bP={class:"d-inline-flex"},CC=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(My.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",bP,[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"]))}}),EC=6048e5,IP=864e5,T_=Symbol.for("constructDateFrom");function $o(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&T_ in n?n[T_](e):n instanceof Date?new n.constructor(e):new Date(e)}function Tr(n,e){return $o(e||n,n)}let SP={};function ql(){return SP}function Is(n,e){var d,h,m,g;const t=ql(),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 El(n,e){return Is(n,{...e,weekStartsOn:1})}function wC(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=El(o),c=$o(t,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const d=El(c);return t.getTime()>=a.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function b_(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 AP(n,...e){const t=$o.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function I_(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function kP(n,e,t){const[r,o]=AP(t==null?void 0:t.in,n,e),a=I_(r),c=I_(o),d=+a-b_(a),h=+c-b_(c);return Math.round((d-h)/IP)}function NP(n,e){const t=wC(n,e),r=$o(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),El(r)}function RP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function OP(n){return!(!RP(n)&&typeof n!="number"||isNaN(+Tr(n)))}function PP(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 MP={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"}},DP=(n,e,t)=>{let r;const o=MP[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 LP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},UP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BP={date:or({formats:LP,defaultWidth:"full"}),time:or({formats:xP,defaultWidth:"full"}),dateTime:or({formats:UP,defaultWidth:"full"})},FP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},VP=(n,e,t,r)=>FP[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 HP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$P={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KP={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"]},WP={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"]},zP={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"}},GP={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"}},qP=(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"},jP={ordinalNumber:qP,era:Tt({values:HP,defaultWidth:"wide"}),quarter:Tt({values:$P,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:KP,defaultWidth:"wide"}),day:Tt({values:WP,defaultWidth:"wide"}),dayPeriod:Tt({values:zP,defaultWidth:"wide",formattingValues:GP,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)?JP(d,_=>_.test(c)):YP(d,_=>_.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 YP(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function JP(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function jl(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 QP=/^(\d+)(th|st|nd|rd)?/i,XP=/\d+/i,ZP={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},e1={any:[/^b/i,/^(a|c)/i]},t1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n1={any:[/1/i,/2/i,/3/i,/4/i]},r1={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},o1={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]},i1={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},a1={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]},s1={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},c1={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}},l1={ordinalNumber:jl({matchPattern:QP,parsePattern:XP,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:ZP,defaultMatchWidth:"wide",parsePatterns:e1,defaultParseWidth:"any"}),quarter:bt({matchPatterns:t1,defaultMatchWidth:"wide",parsePatterns:n1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:r1,defaultMatchWidth:"wide",parsePatterns:o1,defaultParseWidth:"any"}),day:bt({matchPatterns:i1,defaultMatchWidth:"wide",parsePatterns:a1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:s1,defaultMatchWidth:"any",parsePatterns:c1,defaultParseWidth:"any"})},bf={code:"en-US",formatDistance:DP,formatLong:BP,formatRelative:VP,localize:jP,match:l1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function u1(n,e){const t=Tr(n,e==null?void 0:e.in);return kP(t,PP(t))+1}function d1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+El(t)-+NP(t);return Math.round(r/EC)+1}function TC(n,e){var g,_,p,w;const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=ql(),a=(e==null?void 0:e.firstWeekContainsDate)??((_=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:_.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=Is(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=Is(h,e);return+t>=+d?r+1:+t>=+m?r:r-1}function h1(n,e){var d,h,m,g;const t=ql(),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=TC(n,e),a=$o((e==null?void 0:e.in)||n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Is(a,e)}function f1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+Is(t,e)-+h1(t,e);return Math.round(r/EC)+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"},S_={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=TC(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=wC(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=f1(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):We(o,e.length)},I:function(n,e,t){const r=d1(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=u1(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 k_(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 k_(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"+A_(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"+A_(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 A_(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 k_(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 N_=(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"})}},bC=(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"})}},m1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return N_(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}}",N_(r,e)).replace("{{time}}",bC(o,e))},g1={p:bC,P:m1},p1=/^D+$/,_1=/^Y+$/,v1=["D","DD","YY","YYYY"];function y1(n){return p1.test(n)}function C1(n){return _1.test(n)}function E1(n,e,t){const r=w1(n,e,t);if(console.warn(r),v1.includes(n))throw new RangeError(r)}function w1(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 T1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I1=/^'([^]*?)'?$/,S1=/''/g,A1=/[a-zA-Z]/;function k1(n,e,t){var g,_,p,w,C,T,k,I;const r=ql(),o=(t==null?void 0:t.locale)??r.locale??bf,a=(t==null?void 0:t.firstWeekContainsDate)??((_=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:_.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(!OP(d))throw new RangeError("Invalid time value");let h=e.match(b1).map(N=>{const D=N[0];if(D==="p"||D==="P"){const L=g1[D];return L(N,o.formatLong)}return N}).join("").match(T1).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const D=N[0];if(D==="'")return{isToken:!1,value:N1(N)};if(S_[D])return{isToken:!0,value:N};if(D.match(A1))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)&&C1(D)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&y1(D))&&E1(D,e,String(n));const L=S_[D[0]];return L(d,D,o.localize,m)}).join("")}function N1(n){const e=n.match(I1);return e?e[1].replace(S1,"'"):n}const R_={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"}}},R1=(n,e,t)=>{let r;const o=t!=null&&t.addSuffix?R_[n].withPreposition:R_[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},O1={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},P1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},M1={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},D1={date:or({formats:O1,defaultWidth:"full"}),time:or({formats:P1,defaultWidth:"full"}),dateTime:or({formats:M1,defaultWidth:"full"})},L1={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},x1=(n,e,t,r)=>L1[n],U1={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},B1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Sh={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"]},F1={narrow:Sh.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Sh.wide},V1={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"]},H1={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"}},$1={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"}},K1=n=>Number(n)+".",W1={ordinalNumber:K1,era:Tt({values:U1,defaultWidth:"wide"}),quarter:Tt({values:B1,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:Sh,formattingValues:F1,defaultWidth:"wide"}),day:Tt({values:V1,defaultWidth:"wide"}),dayPeriod:Tt({values:H1,defaultWidth:"wide",formattingValues:$1,defaultFormattingWidth:"wide"})},z1=/^(\d+)(\.)?/i,G1=/\d+/i,q1={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},j1={any:[/^v/i,/^n/i]},Y1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},J1={any:[/1/i,/2/i,/3/i,/4/i]},Q1={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},X1={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]},Z1={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},eM={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},tM={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},nM={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}},rM={ordinalNumber:jl({matchPattern:z1,parsePattern:G1,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:q1,defaultMatchWidth:"wide",parsePatterns:j1,defaultParseWidth:"any"}),quarter:bt({matchPatterns:Y1,defaultMatchWidth:"wide",parsePatterns:J1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:Q1,defaultMatchWidth:"wide",parsePatterns:X1,defaultParseWidth:"any"}),day:bt({matchPatterns:Z1,defaultMatchWidth:"wide",parsePatterns:eM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:tM,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"})},oM={code:"de",formatDistance:R1,formatLong:D1,formatRelative:x1,localize:W1,match:rM,options:{weekStartsOn:1,firstWeekContainsDate:4}},iM={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"}},aM=(n,e,t)=>{let r;const o=iM[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},sM={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},cM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lM={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uM={date:or({formats:sM,defaultWidth:"full"}),time:or({formats:cM,defaultWidth:"full"}),dateTime:or({formats:lM,defaultWidth:"full"})},dM={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},hM=(n,e,t,r)=>dM[n],fM={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},mM={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"]},gM={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"]},pM={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"]},_M={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"}},vM=(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},yM=["MMM","MMMM"],CM={preprocessor:(n,e)=>n.getDate()===1||!e.some(r=>r.isToken&&yM.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:vM,era:Tt({values:fM,defaultWidth:"wide"}),quarter:Tt({values:mM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:gM,defaultWidth:"wide"}),day:Tt({values:pM,defaultWidth:"wide"}),dayPeriod:Tt({values:_M,defaultWidth:"wide"})},EM=/^(\d+)(ième|ère|ème|er|e)?/i,wM=/\d+/i,TM={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},bM={any:[/^av/i,/^ap/i]},IM={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},SM={any:[/1/i,/2/i,/3/i,/4/i]},AM={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},kM={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]},NM={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},RM={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]},OM={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},PM={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}},MM={ordinalNumber:jl({matchPattern:EM,parsePattern:wM,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:TM,defaultMatchWidth:"wide",parsePatterns:bM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:IM,defaultMatchWidth:"wide",parsePatterns:SM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:AM,defaultMatchWidth:"wide",parsePatterns:kM,defaultParseWidth:"any"}),day:bt({matchPatterns:NM,defaultMatchWidth:"wide",parsePatterns:RM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:OM,defaultMatchWidth:"any",parsePatterns:PM,defaultParseWidth:"any"})},DM={code:"fr",formatDistance:aM,formatLong:uM,formatRelative:hM,localize:CM,match:MM,options:{weekStartsOn:1,firstWeekContainsDate:4}},LM={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"}},xM=(n,e,t)=>{let r;const o=LM[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},UM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},BM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},FM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VM={date:or({formats:UM,defaultWidth:"full"}),time:or({formats:BM,defaultWidth:"full"}),dateTime:or({formats:FM,defaultWidth:"full"})},HM={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"},$M=(n,e,t,r)=>{const o=HM[n];return typeof o=="function"?o(e):o},KM={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},WM={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},zM={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"]},GM={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"]},qM={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"}},jM={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"}},YM=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="week"?t+"ª":t+"º"},JM={ordinalNumber:YM,era:Tt({values:KM,defaultWidth:"wide"}),quarter:Tt({values:WM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:zM,defaultWidth:"wide"}),day:Tt({values:GM,defaultWidth:"wide"}),dayPeriod:Tt({values:qM,defaultWidth:"wide",formattingValues:jM,defaultFormattingWidth:"wide"})},QM=/^(\d+)[ºªo]?/i,XM=/\d+/i,ZM={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},eD={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},tD={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},nD={any:[/1/i,/2/i,/3/i,/4/i]},rD={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},oD={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]},iD={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},aD={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]},sD={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},cD={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}},lD={ordinalNumber:jl({matchPattern:QM,parsePattern:XM,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:ZM,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),quarter:bt({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:rD,defaultMatchWidth:"wide",parsePatterns:oD,defaultParseWidth:"any"}),day:bt({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:aD,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:sD,defaultMatchWidth:"any",parsePatterns:cD,defaultParseWidth:"any"})},uD={code:"pt-BR",formatDistance:xM,formatLong:VM,formatRelative:$M,localize:JM,match:lD,options:{weekStartsOn:0,firstWeekContainsDate:1}};/*!
11
+ This will fail in production.`);c=as,c._s.has(r)||(g_(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,_=g_(g,er({},o),c,!0);d._hotUpdate(_),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 _=g.proxy,p="_pStores"in _?_._pStores:_._pStores={};p[r]=m}}return m}return a.$id=r,a}const c0=s0({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({}),Ls=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 l0=Object.defineProperty,p_=Object.getOwnPropertySymbols,u0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,__=(n,e,t)=>e in n?l0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,qy=(n,e)=>{for(var t in e||(e={}))u0.call(e,t)&&__(n,t,e[t]);if(p_)for(var t of p_(e))d0.call(e,t)&&__(n,t,e[t]);return n},Hl=n=>typeof n=="function",$l=n=>typeof n=="string",jy=n=>$l(n)&&n.trim().length>0,h0=n=>typeof n=="number",hi=n=>typeof n>"u",Ts=n=>typeof n=="object"&&n!==null,f0=n=>Hr(n,"tag")&&jy(n.tag),Yy=n=>window.TouchEvent&&n instanceof TouchEvent,Jy=n=>Hr(n,"component")&&Qy(n.component),m0=n=>Hl(n)||Ts(n),Qy=n=>!hi(n)&&($l(n)||m0(n)||Jy(n)),v_=n=>Ts(n)&&["height","width","right","left","top","bottom"].every(e=>h0(n[e])),Hr=(n,e)=>(Ts(n)||Hl(n))&&e in n,g0=(n=>()=>n++)(0);function Bd(n){return Yy(n)?n.targetTouches[0].clientX:n.clientX}function y_(n){return Yy(n)?n.targetTouches[0].clientY:n.clientY}var p0=n=>{hi(n.remove)?n.parentNode&&n.parentNode.removeChild(n):n.remove()},xs=n=>Jy(n)?xs(n.component):f0(n)?l.defineComponent({render(){return n}}):typeof n=="string"?n:l.toRaw(l.unref(n)),_0=n=>{if(typeof n=="string")return n;const e=Hr(n,"props")&&Ts(n.props)?n.props:{},t=Hr(n,"listeners")&&Ts(n.listeners)?n.listeners:{};return{component:xs(n),props:e,listeners:t}},v0=()=>typeof window<"u",Kl=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))}},y0=n=>["on","off","emit"].every(e=>Hr(n,e)&&Hl(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 _r="Vue-Toastification",pr={type:{type:String,default:exports.TYPE.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Xy={type:pr.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},al={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:pr.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},bh={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Zy={transition:{type:[Object,String],default:`${_r}__bounce`}},C0={position:{type:String,default:exports.POSITION.TOP_RIGHT},draggable:pr.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:pr.trueBoolean,pauseOnHover:pr.trueBoolean,closeOnClick:pr.trueBoolean,timeout:bh.timeout,hideProgressBar:bh.hideProgressBar,toastClassName:pr.classNames,bodyClassName:pr.classNames,icon:Xy.customIcon,closeButton:al.component,closeButtonClassName:al.classNames,showCloseButtonOnHover:al.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Kl}},E0={id:{type:[String,Number],required:!0,default:0},type:pr.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},w0={container:{type:[Object,Function],default:()=>document.body},newestOnTop:pr.trueBoolean,maxToasts:{type:Number,default:20},transition:Zy.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:n=>n},filterToasts:{type:Function,default:n=>n},containerClassName:pr.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},uo={CORE_TOAST:C0,TOAST:E0,CONTAINER:w0,PROGRESS_BAR:bh,ICON:Xy,TRANSITION:Zy,CLOSE_BUTTON:al},eC=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?`${_r}__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 T0(n,e){return l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(n.style),class:l.normalizeClass(n.cpClass)},null,6)}eC.render=T0;var b0=eC,tC=l.defineComponent({name:"VtCloseButton",props:uo.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?xs(this.component):"button"},classes(){const n=[`${_r}__close-button`];return this.showOnHover&&n.push("show-on-hover"),n.concat(this.classNames)}}}),I0=l.createTextVNode(" × ");function S0(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(()=>[I0]),_:1},16,["aria-label","class"])}tC.render=S0;var A0=tC,nC={},k0={"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"},N0=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),R0=[N0];function O0(n,e){return l.openBlock(),l.createElementBlock("svg",k0,R0)}nC.render=O0;var P0=nC,rC={},M0={"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"},D0=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),L0=[D0];function x0(n,e){return l.openBlock(),l.createElementBlock("svg",M0,L0)}rC.render=x0;var C_=rC,oC={},U0={"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"},B0=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),F0=[B0];function V0(n,e){return l.openBlock(),l.createElementBlock("svg",U0,F0)}oC.render=V0;var H0=oC,iC={},$0={"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"},K0=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),W0=[K0];function z0(n,e){return l.openBlock(),l.createElementBlock("svg",$0,W0)}iC.render=z0;var G0=iC,aC=l.defineComponent({name:"VtIcon",props:uo.ICON,computed:{customIconChildren(){return Hr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return $l(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:Qy(this.customIcon)?xs(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[exports.TYPE.DEFAULT]:C_,[exports.TYPE.INFO]:C_,[exports.TYPE.SUCCESS]:P0,[exports.TYPE.ERROR]:G0,[exports.TYPE.WARNING]:H0}[this.type]},iconClasses(){const n=[`${_r}__icon`];return this.hasCustomIcon?n.concat(this.customIconClass):n}},methods:{trimValue(n,e=""){return jy(n)?n.trim():e}}});function q0(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"])}aC.render=q0;var j0=aC,sC=l.defineComponent({name:"VtToast",components:{ProgressBar:b0,CloseButton:A0,Icon:j0},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=[`${_r}__toast`,`${_r}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&n.push("disable-transition"),this.rtl&&n.push(`${_r}__toast--rtl`),n},bodyClasses(){return[`${_r}__toast-${$l(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 v_(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:xs,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:Bd(n),y:y_(n)},this.dragStart=Bd(n),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(n){this.beingDragged&&(n.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Bd(n),y:y_(n)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,v_(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}))}}}),Y0=["role"];function J0(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,Y0),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)}sC.render=J0;var Q0=sC,cC=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 X0(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"])}cC.render=X0;var Z0=cC,lC=l.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:Q0,VtTransition:Z0},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){Hl(n)&&(n=await n()),p0(this.$el),n.appendChild(this.$el)},setToast(n){hi(n.id)||(this.toasts[n.id]=n)},addToast(n){n.content=_0(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[`${_r}__container`,n].concat(this.defaults.containerClassName)}}});function eP(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))])}lC.render=eP;var tP=lC,E_=(n={},e=!0)=>{const t=n.eventBus=n.eventBus||new Kl;e&&l.nextTick(()=>{const a=l.createApp(tP,qy({},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(`[${_r}] 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:g0(),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},nP=()=>{const n=()=>console.warn(`[${_r}] This plugin does not support SSR!`);return new Proxy(n,{get(){return n}})};function bs(n){return v0()?y0(n)?E_({eventBus:n},!1):E_(n,!0):nP()}var Wl=Symbol("VueToastification"),Ef=new Kl,rP=(n,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=n);const t=bs(qy({eventBus:Ef},e));n.provide(Wl,t)},oP=n=>{const e=bs(n);l.getCurrentInstance()&&l.provide(Wl,e)},ar=n=>{if(n)return bs(n);const e=l.getCurrentInstance()?l.inject(Wl,void 0):void 0;return e||bs(Ef)},iP=rP;const ve=l.ref(!1);var aP={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(" ")])}},sP={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(" ")])}},cP={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(" ")])}},lP={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(" ")])}},uC={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(" ")])}},uP={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(" ")])}},dP={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(" ")])}},hP={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(" ")])}},fP={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(" ")])}},mP={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(" ")])}},gP={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(" ")])}},pP={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 _P={class:"d-flex align-center"},vP={key:1},yP={class:"ms-auto"},Us=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}=Ls(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(tl.VDialog,{key:0,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[0]||(g[0]=_=>l.isRef(a)?a.value=_: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",_P,[m.$slots.title?l.renderSlot(m.$slots,"title",{key:0}):(l.openBlock(),l.createElementBlock("div",vP,l.toDisplayString(t.title),1))]),l.createElementVNode("div",yP,[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(tl.VDialog,{key:1,scrim:"background",width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[1]||(g[1]=_=>l.isRef(a)?a.value=_: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(uC),{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(tl.VDialog,{key:2,scrim:t.scrim,width:t.width,modelValue:l.unref(a),"onUpdate:modelValue":g[2]||(g[2]=_=>l.isRef(a)?a.value=_:null),"onClick:outside":d},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},8,["scrim","width","modelValue"])):l.createCommentVNode("",!0)],64))}}),wf=l.defineComponent({__name:"DeleteAllBtn",emits:["removeAll"],setup(n,{emit:e}){const{openDialog:t}=Ls("delete-all-__J"),r=e;return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Us,{"dd-id":"delete-all-__J",variant:"confirm",title:"Confirm delete",text:"Are you sure you want to delete all selected items?",onOnSave:a[0]||(a[0]=()=>r("removeAll"))}),l.createVNode(it.VBtn,{onClick:l.unref(t),variant:"plain",color:"secondary","prepend-icon":"mdi-delete"},{default:l.withCtx(()=>a[1]||(a[1]=[l.createTextVNode(" Delete")])),_:1},8,["onClick"])],64))}}),dC=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}))}}),hC=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(sP),{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(cP),{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}))}}),zl=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"]))}}),fC=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(tl.VDialog,{scrim:"rgb(0,0,0,100)",width:t.width},{activator:l.withCtx(({isActive:g,props:_})=>[l.renderSlot(h.$slots,"button",l.normalizeProps(l.guardReactiveProps({isActive:g,props:_})))]),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(uC),{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"]))}}),Fd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",mC=l.defineComponent({__name:"JAvatar",props:{src:{}},setup(n){const e=n,t=l.ref(e.src),r=l.computed(()=>t.value||Fd);function o(){t.value=Fd}return(a,c)=>(l.openBlock(),l.createBlock(Ry.VAvatar,{size:"50"},{default:l.withCtx(()=>[l.createVNode(pf.VImg,{src:r.value,"lazy-src":Fd,onError:o,width:"50",alt:"profile-placeholder"},null,8,["src"])]),_:1}))}}),Vd="https://app-files.jplan.com.br/pub/resources/profile-placeholder.svg",gC=l.defineComponent({__name:"AvatarPicture",props:{img:{},size:{}},setup(n){const e=n,t=l.ref(e.img),r=l.computed(()=>t.value||Vd);function o(){t.value=Vd}return(a,c)=>(l.openBlock(),l.createBlock(Ry.VAvatar,{size:a.size},{default:l.withCtx(()=>[l.createVNode(pf.VImg,{src:r.value,"lazy-src":Vd,onError:o,width:"40",alt:"Avatar"},null,8,["src"])]),_:1},8,["size"]))}}),CP=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(_f.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))}}),Aa=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},pC=Aa(CP,[["__scopeId","data-v-ad4e4a5d"]]),EP={class:"d-inline-flex"},_C=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(Oy.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",EP,[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"]))}}),vC=6048e5,wP=864e5,w_=Symbol.for("constructDateFrom");function $o(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&w_ in n?n[w_](e):n instanceof Date?new n.constructor(e):new Date(e)}function Tr(n,e){return $o(e||n,n)}let TP={};function Gl(){return TP}function Is(n,e){var d,h,m,g;const t=Gl(),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 Cl(n,e){return Is(n,{...e,weekStartsOn:1})}function yC(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=Cl(o),c=$o(t,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const d=Cl(c);return t.getTime()>=a.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function T_(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 bP(n,...e){const t=$o.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function b_(n,e){const t=Tr(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function IP(n,e,t){const[r,o]=bP(t==null?void 0:t.in,n,e),a=b_(r),c=b_(o),d=+a-T_(a),h=+c-T_(c);return Math.round((d-h)/wP)}function SP(n,e){const t=yC(n,e),r=$o(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Cl(r)}function AP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function kP(n){return!(!AP(n)&&typeof n!="number"||isNaN(+Tr(n)))}function NP(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 RP={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"}},OP=(n,e,t)=>{let r;const o=RP[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 PP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},MP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LP={date:or({formats:PP,defaultWidth:"full"}),time:or({formats:MP,defaultWidth:"full"}),dateTime:or({formats:DP,defaultWidth:"full"})},xP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UP=(n,e,t,r)=>xP[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 BP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VP={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"]},HP={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"]},$P={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"}},KP={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"}},WP=(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"},zP={ordinalNumber:WP,era:Tt({values:BP,defaultWidth:"wide"}),quarter:Tt({values:FP,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:VP,defaultWidth:"wide"}),day:Tt({values:HP,defaultWidth:"wide"}),dayPeriod:Tt({values:$P,defaultWidth:"wide",formattingValues:KP,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)?qP(d,_=>_.test(c)):GP(d,_=>_.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 GP(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function qP(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function ql(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 jP=/^(\d+)(th|st|nd|rd)?/i,YP=/\d+/i,JP={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]},XP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZP={any:[/1/i,/2/i,/3/i,/4/i]},e1={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},t1={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]},n1={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},r1={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]},o1={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},i1={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}},a1={ordinalNumber:ql({matchPattern:jP,parsePattern:YP,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:JP,defaultMatchWidth:"wide",parsePatterns:QP,defaultParseWidth:"any"}),quarter:bt({matchPatterns:XP,defaultMatchWidth:"wide",parsePatterns:ZP,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:e1,defaultMatchWidth:"wide",parsePatterns:t1,defaultParseWidth:"any"}),day:bt({matchPatterns:n1,defaultMatchWidth:"wide",parsePatterns:r1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:o1,defaultMatchWidth:"any",parsePatterns:i1,defaultParseWidth:"any"})},Tf={code:"en-US",formatDistance:OP,formatLong:LP,formatRelative:UP,localize:zP,match:a1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function s1(n,e){const t=Tr(n,e==null?void 0:e.in);return IP(t,NP(t))+1}function c1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+Cl(t)-+SP(t);return Math.round(r/vC)+1}function CC(n,e){var g,_,p,w;const t=Tr(n,e==null?void 0:e.in),r=t.getFullYear(),o=Gl(),a=(e==null?void 0:e.firstWeekContainsDate)??((_=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:_.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=Is(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=Is(h,e);return+t>=+d?r+1:+t>=+m?r:r-1}function l1(n,e){var d,h,m,g;const t=Gl(),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=CC(n,e),a=$o((e==null?void 0:e.in)||n,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Is(a,e)}function u1(n,e){const t=Tr(n,e==null?void 0:e.in),r=+Is(t,e)-+l1(t,e);return Math.round(r/vC)+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"},I_={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=CC(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=yC(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=u1(n,r);return e==="wo"?t.ordinalNumber(o,{unit:"week"}):We(o,e.length)},I:function(n,e,t){const r=c1(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=s1(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 A_(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 A_(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"+S_(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"+S_(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 S_(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 A_(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 k_=(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"})}},EC=(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"})}},d1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return k_(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}}",k_(r,e)).replace("{{time}}",EC(o,e))},h1={p:EC,P:d1},f1=/^D+$/,m1=/^Y+$/,g1=["D","DD","YY","YYYY"];function p1(n){return f1.test(n)}function _1(n){return m1.test(n)}function v1(n,e,t){const r=y1(n,e,t);if(console.warn(r),g1.includes(n))throw new RangeError(r)}function y1(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 C1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w1=/^'([^]*?)'?$/,T1=/''/g,b1=/[a-zA-Z]/;function I1(n,e,t){var g,_,p,w,C,T,k,I;const r=Gl(),o=(t==null?void 0:t.locale)??r.locale??Tf,a=(t==null?void 0:t.firstWeekContainsDate)??((_=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:_.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(!kP(d))throw new RangeError("Invalid time value");let h=e.match(E1).map(N=>{const D=N[0];if(D==="p"||D==="P"){const L=h1[D];return L(N,o.formatLong)}return N}).join("").match(C1).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const D=N[0];if(D==="'")return{isToken:!1,value:S1(N)};if(I_[D])return{isToken:!0,value:N};if(D.match(b1))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)&&_1(D)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&p1(D))&&v1(D,e,String(n));const L=I_[D[0]];return L(d,D,o.localize,m)}).join("")}function S1(n){const e=n.match(w1);return e?e[1].replace(T1,"'"):n}const N_={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"}}},A1=(n,e,t)=>{let r;const o=t!=null&&t.addSuffix?N_[n].withPreposition:N_[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},k1={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},N1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},R1={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},O1={date:or({formats:k1,defaultWidth:"full"}),time:or({formats:N1,defaultWidth:"full"}),dateTime:or({formats:R1,defaultWidth:"full"})},P1={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},M1=(n,e,t,r)=>P1[n],D1={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},L1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Ih={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"]},x1={narrow:Ih.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Ih.wide},U1={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"]},B1={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"}},F1={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"}},V1=n=>Number(n)+".",H1={ordinalNumber:V1,era:Tt({values:D1,defaultWidth:"wide"}),quarter:Tt({values:L1,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:Ih,formattingValues:x1,defaultWidth:"wide"}),day:Tt({values:U1,defaultWidth:"wide"}),dayPeriod:Tt({values:B1,defaultWidth:"wide",formattingValues:F1,defaultFormattingWidth:"wide"})},$1=/^(\d+)(\.)?/i,K1=/\d+/i,W1={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},z1={any:[/^v/i,/^n/i]},G1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},q1={any:[/1/i,/2/i,/3/i,/4/i]},j1={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},Y1={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]},J1={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]},X1={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},Z1={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}},eM={ordinalNumber:ql({matchPattern:$1,parsePattern:K1,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:W1,defaultMatchWidth:"wide",parsePatterns:z1,defaultParseWidth:"any"}),quarter:bt({matchPatterns:G1,defaultMatchWidth:"wide",parsePatterns:q1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:j1,defaultMatchWidth:"wide",parsePatterns:Y1,defaultParseWidth:"any"}),day:bt({matchPatterns:J1,defaultMatchWidth:"wide",parsePatterns:Q1,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:X1,defaultMatchWidth:"wide",parsePatterns:Z1,defaultParseWidth:"any"})},tM={code:"de",formatDistance:A1,formatLong:O1,formatRelative:M1,localize:H1,match:eM,options:{weekStartsOn:1,firstWeekContainsDate:4}},nM={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"}},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?"dans "+r:"il y a "+r:r},oM={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},iM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aM={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sM={date:or({formats:oM,defaultWidth:"full"}),time:or({formats:iM,defaultWidth:"full"}),dateTime:or({formats:aM,defaultWidth:"full"})},cM={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},lM=(n,e,t,r)=>cM[n],uM={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},dM={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"]},hM={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"]},fM={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"]},mM={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"}},gM=(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},pM=["MMM","MMMM"],_M={preprocessor:(n,e)=>n.getDate()===1||!e.some(r=>r.isToken&&pM.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:gM,era:Tt({values:uM,defaultWidth:"wide"}),quarter:Tt({values:dM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:hM,defaultWidth:"wide"}),day:Tt({values:fM,defaultWidth:"wide"}),dayPeriod:Tt({values:mM,defaultWidth:"wide"})},vM=/^(\d+)(ième|ère|ème|er|e)?/i,yM=/\d+/i,CM={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},EM={any:[/^av/i,/^ap/i]},wM={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},TM={any:[/1/i,/2/i,/3/i,/4/i]},bM={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},IM={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]},SM={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},AM={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]},kM={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},NM={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}},RM={ordinalNumber:ql({matchPattern:vM,parsePattern:yM,valueCallback:n=>parseInt(n)}),era:bt({matchPatterns:CM,defaultMatchWidth:"wide",parsePatterns:EM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:wM,defaultMatchWidth:"wide",parsePatterns:TM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:bM,defaultMatchWidth:"wide",parsePatterns:IM,defaultParseWidth:"any"}),day:bt({matchPatterns:SM,defaultMatchWidth:"wide",parsePatterns:AM,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:kM,defaultMatchWidth:"any",parsePatterns:NM,defaultParseWidth:"any"})},OM={code:"fr",formatDistance:rM,formatLong:sM,formatRelative:lM,localize:_M,match:RM,options:{weekStartsOn:1,firstWeekContainsDate:4}},PM={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"}},MM=(n,e,t)=>{let r;const o=PM[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},DM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},LM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UM={date:or({formats:DM,defaultWidth:"full"}),time:or({formats:LM,defaultWidth:"full"}),dateTime:or({formats:xM,defaultWidth:"full"})},BM={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"},FM=(n,e,t,r)=>{const o=BM[n];return typeof o=="function"?o(e):o},VM={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},HM={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},$M={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"]},KM={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"]},WM={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"}},zM={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"}},GM=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="week"?t+"ª":t+"º"},qM={ordinalNumber:GM,era:Tt({values:VM,defaultWidth:"wide"}),quarter:Tt({values:HM,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Tt({values:$M,defaultWidth:"wide"}),day:Tt({values:KM,defaultWidth:"wide"}),dayPeriod:Tt({values:WM,defaultWidth:"wide",formattingValues:zM,defaultFormattingWidth:"wide"})},jM=/^(\d+)[ºªo]?/i,YM=/\d+/i,JM={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]},XM={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},ZM={any:[/1/i,/2/i,/3/i,/4/i]},eD={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},tD={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]},nD={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},rD={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]},oD={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},iD={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}},aD={ordinalNumber:ql({matchPattern:jM,parsePattern:YM,valueCallback:n=>parseInt(n,10)}),era:bt({matchPatterns:JM,defaultMatchWidth:"wide",parsePatterns:QM,defaultParseWidth:"any"}),quarter:bt({matchPatterns:XM,defaultMatchWidth:"wide",parsePatterns:ZM,defaultParseWidth:"any",valueCallback:n=>n+1}),month:bt({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:tD,defaultParseWidth:"any"}),day:bt({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any"}),dayPeriod:bt({matchPatterns:oD,defaultMatchWidth:"any",parsePatterns:iD,defaultParseWidth:"any"})},sD={code:"pt-BR",formatDistance:MM,formatLong:UM,formatRelative:FM,localize:qM,match:aD,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 Er=typeof window<"u";let Un,vi;if(process.env.NODE_ENV!=="production"){const n=Er&&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 dD=/\{([0-9a-zA-Z]+)\}/g;function Yl(n,...e){return e.length===1&&Le(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(dD,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const Gr=(n,e=!1)=>e?Symbol.for(n):Symbol(n),hD=(n,e,t)=>fD({l:n,k:e,s:t}),fD=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),It=n=>typeof n=="number"&&isFinite(n),mD=n=>If(n)==="[object Date]",Ca=n=>If(n)==="[object RegExp]",Jl=n=>ke(n)&&Object.keys(n).length===0,Ot=Object.assign,gD=Object.create,qe=(n=null)=>gD(n);let O_;const fi=()=>O_||(O_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:qe());function P_(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const pD=Object.prototype.hasOwnProperty;function vr(n,e){return pD.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",_D=n=>Le(n)&&Je(n.then)&&Je(n.catch),IC=Object.prototype.toString,If=n=>IC.call(n),ke=n=>If(n)==="[object Object]",vD=n=>n==null?"":yt(n)||ke(n)&&n.toString===IC?JSON.stringify(n,null,2):String(n);function Sf(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const M_=2;function yD(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-M_;d<=c+M_||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,_=Math.max(1,t>o?m-g:t-e);a.push(" | "+" ".repeat(g)+"^".repeat(_))}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
- `)}function zo(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const D_={};function Af(n){D_[n]||(D_[n]=!0,zo(n))}function kf(){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 xc=n=>!Le(n)||yt(n);function cl(n,e){if(xc(n)||xc(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()),xc(o[a])||xc(r[a])?o[a]=r[a]:t.push({src:r[a],des:o[a]}))})}}/*!
15
+ */const Er=typeof window<"u";let Un,vi;if(process.env.NODE_ENV!=="production"){const n=Er&&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 cD=/\{([0-9a-zA-Z]+)\}/g;function jl(n,...e){return e.length===1&&Le(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(cD,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const Gr=(n,e=!1)=>e?Symbol.for(n):Symbol(n),lD=(n,e,t)=>uD({l:n,k:e,s:t}),uD=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),It=n=>typeof n=="number"&&isFinite(n),dD=n=>bf(n)==="[object Date]",Ca=n=>bf(n)==="[object RegExp]",Yl=n=>ke(n)&&Object.keys(n).length===0,Ot=Object.assign,hD=Object.create,qe=(n=null)=>hD(n);let R_;const fi=()=>R_||(R_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:qe());function O_(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const fD=Object.prototype.hasOwnProperty;function vr(n,e){return fD.call(n,e)}const vt=Array.isArray,Je=n=>typeof n=="function",ne=n=>typeof n=="string",Ue=n=>typeof n=="boolean",Le=n=>n!==null&&typeof n=="object",mD=n=>Le(n)&&Je(n.then)&&Je(n.catch),wC=Object.prototype.toString,bf=n=>wC.call(n),ke=n=>bf(n)==="[object Object]",gD=n=>n==null?"":vt(n)||ke(n)&&n.toString===wC?JSON.stringify(n,null,2):String(n);function If(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const P_=2;function pD(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-P_;d<=c+P_||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,_=Math.max(1,t>o?m-g:t-e);a.push(" | "+" ".repeat(g)+"^".repeat(_))}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
+ `)}function zo(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const M_={};function Sf(n){M_[n]||(M_[n]=!0,zo(n))}function Af(){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 xc=n=>!Le(n)||vt(n);function sl(n,e){if(xc(n)||xc(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()),xc(o[a])||xc(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 CD(n,e,t){return{line:n,column:e,offset:t}}function Ah(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},ED=17,wD={[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 ka(n,e,t={}){const{domain:r,messages:o,args:a}=t,c=process.env.NODE_ENV!=="production"?Yl((o||wD)[n]||"",...a||[]):n,d=new SyntaxError(String(c));return d.code=n,e&&(d.location=e),d.domain=r,d}function TD(n){throw n}const bD=/<\/?[\w\s="/.':;#-\/]+>/,ID=n=>bD.test(n),oo=" ",SD="\r",un=`
21
- `,AD="\u2028",kD="\u2029";function ND(n){const e=n;let t=0,r=1,o=1,a=0;const c=M=>e[M]===SD&&e[M+1]===un,d=M=>e[M]===un,h=M=>e[M]===kD,m=M=>e[M]===AD,g=M=>c(M)||d(M)||h(M)||m(M),_=()=>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:_,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,RD=".",L_="'",OD="tokenizer";function PD(n,e={}){const t=e.location!==!1,r=ND(n),o=()=>r.index(),a=()=>CD(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 _(A,R,G,...oe){const je=m();if(R.column+=G,R.offset+=G,g){const Ze=t?Ah(je.startLoc,R):null,Me=ka(A,Ze,{domain:OD,args:oe});g(Me)}}function p(A,R,G){A.endLoc=a(),A.currentType=R;const oe={type:R};return t&&(oe.loc=Ah(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):(_(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()===L_;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 xa(A){k(A);let R="",G="";for(;R=qt(A);)G+=R;return A.currentChar()===Oo&&_(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G}function Ua(A){k(A);let R="";return A.currentChar()==="-"?(A.next(),R+=`-${St(A)}`):R+=St(A),A.currentChar()===Oo&&_(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R}function Sr(A){return A!==L_&&A!==un}function Yo(A){k(A),C(A,"'");let R="",G="";for(;R=ue(A,Sr);)R==="\\"?G+=Ba(A):G+=R;const oe=A.currentChar();return oe===un||oe===Oo?(_(ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),oe===un&&(A.next(),C(A,"'")),G):(C(A,"'"),G)}function Ba(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 _(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){_(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 Fa(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&&_(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&&_(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&&_(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&&_(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 _(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R.braceNest=0,Jo(A,R);if(je=D(A,R))return G=p(R,4,xa(A)),k(A),G;if(Ze=L(A,R))return G=p(R,5,Ua(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,Fa(A)),_(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)&&_(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&&_(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 _(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 MD="parser",DD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function LD(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 xD(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?Ah(D,q):null,ce=ka(N,M,{domain:MD,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(DD,LD),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 _(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=_(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=PD(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 UD(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:a=>(t.helpers.add(a),a)}}function x_(n,e){for(let t=0;t<n.length;t++)Nf(n[t],e)}function Nf(n,e){switch(n.type){case 1:x_(n.cases,e),e.helper("plural");break;case 2:x_(n.items,e);break;case 6:{Nf(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 BD(n,e={}){const t=UD(n);t.helper("normalize"),n.body&&Nf(n.body,t);const r=t.context();n.helpers=Array.from(r.helpers)}function FD(n){const e=n.body;return e.type===2?U_(e):e.cases.forEach(t=>U_(t)),n}function U_(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=Sf(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 VD="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 ka(ye.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:VD,args:[n.type]})}delete n.type}const HD="parser";function $D(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 _(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:_,deindent:p,newline:w,helper:k=>`_${k}`,needIndent:()=>d.needIndent}}function KD(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),Ea(n,e.key),e.modifier?(n.push(", "),Ea(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function WD(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&&(Ea(n,e.items[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}function zD(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&&(Ea(n,e.cases[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}}function GD(n,e){e.body?Ea(n,e.body):n.push("null")}function Ea(n,e){const{helper:t}=n;switch(e.type){case 0:GD(n,e);break;case 1:zD(n,e);break;case 2:WD(n,e);break;case 6:KD(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 ka(ye.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:HD,args:[e.type]})}}const qD=(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=$D(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 { ${Sf(d.map(_=>`${_}: _${_}`),", ")} } = ctx`),h.newline()),h.push("return "),Ea(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 jD(n,e={}){const t=Ot({},e),r=!!t.jit,o=!!t.minify,a=t.optimize==null?!0:t.optimize,d=xD(t).parse(n);return r?(a&&FD(d),o&&ra(d),{ast:d,code:""}):(BD(d,t),qD(d,t))}/*!
20
+ */function _D(n,e,t){return{line:n,column:e,offset:t}}function Sh(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},vD=17,yD={[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 ka(n,e,t={}){const{domain:r,messages:o,args:a}=t,c=process.env.NODE_ENV!=="production"?jl((o||yD)[n]||"",...a||[]):n,d=new SyntaxError(String(c));return d.code=n,e&&(d.location=e),d.domain=r,d}function CD(n){throw n}const ED=/<\/?[\w\s="/.':;#-\/]+>/,wD=n=>ED.test(n),oo=" ",TD="\r",un=`
21
+ `,bD="\u2028",ID="\u2029";function SD(n){const e=n;let t=0,r=1,o=1,a=0;const c=M=>e[M]===TD&&e[M+1]===un,d=M=>e[M]===un,h=M=>e[M]===ID,m=M=>e[M]===bD,g=M=>c(M)||d(M)||h(M)||m(M),_=()=>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:_,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,AD=".",D_="'",kD="tokenizer";function ND(n,e={}){const t=e.location!==!1,r=SD(n),o=()=>r.index(),a=()=>_D(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 _(A,R,G,...oe){const je=m();if(R.column+=G,R.offset+=G,g){const Ze=t?Sh(je.startLoc,R):null,Me=ka(A,Ze,{domain:kD,args:oe});g(Me)}}function p(A,R,G){A.endLoc=a(),A.currentType=R;const oe={type:R};return t&&(oe.loc=Sh(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):(_(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()===D_;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 xa(A){k(A);let R="",G="";for(;R=qt(A);)G+=R;return A.currentChar()===Oo&&_(ye.UNTERMINATED_CLOSING_BRACE,a(),0),G}function Ua(A){k(A);let R="";return A.currentChar()==="-"?(A.next(),R+=`-${St(A)}`):R+=St(A),A.currentChar()===Oo&&_(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R}function Sr(A){return A!==D_&&A!==un}function Yo(A){k(A),C(A,"'");let R="",G="";for(;R=ue(A,Sr);)R==="\\"?G+=Ba(A):G+=R;const oe=A.currentChar();return oe===un||oe===Oo?(_(ye.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),oe===un&&(A.next(),C(A,"'")),G):(C(A,"'"),G)}function Ba(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 _(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){_(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 Fa(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&&_(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&&_(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&&_(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&&_(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 _(ye.UNTERMINATED_CLOSING_BRACE,a(),0),R.braceNest=0,Jo(A,R);if(je=D(A,R))return G=p(R,4,xa(A)),k(A),G;if(Ze=L(A,R))return G=p(R,5,Ua(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,Fa(A)),_(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)&&_(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&&_(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 _(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 RD="parser",OD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function PD(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 MD(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?Sh(D,q):null,ce=ka(N,M,{domain:RD,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(OD,PD),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 _(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=_(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=ND(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 DD(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:a=>(t.helpers.add(a),a)}}function L_(n,e){for(let t=0;t<n.length;t++)kf(n[t],e)}function kf(n,e){switch(n.type){case 1:L_(n.cases,e),e.helper("plural");break;case 2:L_(n.items,e);break;case 6:{kf(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 LD(n,e={}){const t=DD(n);t.helper("normalize"),n.body&&kf(n.body,t);const r=t.context();n.helpers=Array.from(r.helpers)}function xD(n){const e=n.body;return e.type===2?x_(e):e.cases.forEach(t=>x_(t)),n}function x_(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=If(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 UD="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 ka(ye.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:UD,args:[n.type]})}delete n.type}const BD="parser";function FD(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 _(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:_,deindent:p,newline:w,helper:k=>`_${k}`,needIndent:()=>d.needIndent}}function VD(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),Ea(n,e.key),e.modifier?(n.push(", "),Ea(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function HD(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&&(Ea(n,e.items[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}function $D(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&&(Ea(n,e.cases[a]),a!==o-1);a++)n.push(", ");n.deindent(r()),n.push("])")}}function KD(n,e){e.body?Ea(n,e.body):n.push("null")}function Ea(n,e){const{helper:t}=n;switch(e.type){case 0:KD(n,e);break;case 1:$D(n,e);break;case 2:HD(n,e);break;case 6:VD(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 ka(ye.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:BD,args:[e.type]})}}const WD=(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=FD(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 { ${If(d.map(_=>`${_}: _${_}`),", ")} } = ctx`),h.newline()),h.push("return "),Ea(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 zD(n,e={}){const t=Ot({},e),r=!!t.jit,o=!!t.minify,a=t.optimize==null?!0:t.optimize,d=MD(t).parse(n);return r?(a&&xD(d),o&&ra(d),{ast:d,code:""}):(LD(d,t),WD(d,t))}/*!
23
23
  * core-base v11.1.3
24
24
  * (c) 2025 kazuya kawaguchi
25
25
  * Released under the MIT License.
26
- */function YD(){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)&&Rf(n)===0&&(vr(n,"b")||vr(n,"body"))}const SC=["b","body"];function JD(n){return Go(n,SC)}const AC=["c","cases"];function QD(n){return Go(n,AC,[])}const kC=["s","static"];function XD(n){return Go(n,kC)}const NC=["i","items"];function ZD(n){return Go(n,NC,[])}const RC=["t","type"];function Rf(n){return Go(n,RC)}const OC=["v","value"];function Uc(n,e){const t=Go(n,OC);if(t!=null)return t;throw Ss(e)}const PC=["m","modifier"];function eL(n){return Go(n,PC)}const MC=["k","key"];function tL(n){const e=Go(n,MC);if(e)return e;throw Ss(6)}function Go(n,e,t){for(let r=0;r<e.length;r++){const o=e[r];if(vr(n,o)&&n[o]!=null)return n[o]}return t}const DC=[...SC,...AC,...kC,...NC,...MC,...PC,...OC,...RC];function Ss(n){return new Error(`unhandled node type: ${n}`)}function $d(n){return t=>nL(t,n)}function nL(n,e){const t=JD(e);if(t==null)throw Ss(0);if(Rf(t)===1){const a=QD(t);return n.plural(a.reduce((c,d)=>[...c,B_(n,d)],[]))}else return B_(n,t)}function B_(n,e){const t=XD(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const r=ZD(e).reduce((o,a)=>[...o,kh(n,a)],[]);return n.normalize(r)}}function kh(n,e){const t=Rf(e);switch(t){case 3:return Uc(e,t);case 9:return Uc(e,t);case 4:{const r=e;if(vr(r,"k")&&r.k)return n.interpolate(n.named(r.k));if(vr(r,"key")&&r.key)return n.interpolate(n.named(r.key));throw Ss(t)}case 5:{const r=e;if(vr(r,"i")&&It(r.i))return n.interpolate(n.list(r.i));if(vr(r,"index")&&It(r.index))return n.interpolate(n.list(r.index));throw Ss(t)}case 6:{const r=e,o=eL(r),a=tL(r);return n.linked(kh(n,a),o?kh(n,o):void 0,n.type)}case 7:return Uc(e,t);case 8:return Uc(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const rL="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function oL(n,e){e&&ID(n)&&zo(Yl(rL,{source:n}))}const iL=n=>n;let Bc=qe();function aL(n,e={}){let t=!1;const r=e.onError||TD;return e.onError=o=>{t=!0,r(o)},{...jD(n,e),detectError:t}}function sL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ne(n)){const t=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&oL(n,t);const o=(e.onCacheKey||iL)(n),a=Bc[o];if(a)return a;const{ast:c,detectError:d}=aL(n,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),h=$d(c);return d?h:Bc[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=Bc[t];return r||(Bc[t]=$d(n))}else return $d(n)}}let As=null;function cL(n){As=n}function lL(n,e,t){As&&As.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const uL=dL("function:translate");function dL(n){return e=>As&&As.emit(n,e)}const en={INVALID_ARGUMENT:ED,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},hL=24;function so(n){return ka(n,null,process.env.NODE_ENV!=="production"?{messages:fL}:void 0)}const fL={[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 Of(n,e){return e.locale!=null?F_(e.locale):F_(n.locale)}let Kd;function F_(n){if(ne(n))return n;if(Je(n)){if(n.resolvedOnce&&Kd!=null)return Kd;if(n.constructor.name==="Function"){const e=n();if(_D(e))throw so(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Kd=e}else throw so(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw so(en.NOT_SUPPORT_LOCALE_TYPE)}function mL(n,e,t){return[...new Set([t,...yt(e)?e:Le(e)?Object.keys(e):ne(e)?[e]:[t]])]}function LC(n,e,t){const r=ne(t)?t:ks,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let c=[t];for(;yt(c);)c=V_(a,c,e);const d=yt(e)||!ke(e)?e:e.default?e.default:null;c=ne(d)?[d]:d,yt(c)&&V_(a,c,!1),o.__localeChainCache.set(r,a)}return a}function V_(n,e,t){let r=!0;for(let o=0;o<e.length&&Ue(r);o++){const a=e[o];ne(a)&&(r=gL(n,e[o],t))}return r}function gL(n,e,t){let r;const o=e.split("-");do{const a=o.join("-");r=pL(n,a,t),o.splice(-1,1)}while(o.length&&r===!0);return r}function pL(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 _L=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function vL(n){return _L.test(n)}function yL(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 CL(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 EL(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:vL(e)?yL(e):"*"+e}function wL(n){const e=[];let t=-1,r=0,o=0,a,c,d,h,m,g,_;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=EL(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=CL(a),_=qo[r],m=_[h]||_.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 H_=new Map;function TL(n,e){return Le(n)?n[e]:null}function bL(n,e){if(!Le(n))return null;let t=H_.get(e);if(t||(t=wL(e),t&&H_.set(e,t)),!t)return null;const r=t.length;let o=n,a=0;for(;a<r;){const c=t[a];if(DC.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},IL=8,SL={[_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 Yl(SL[n],...e)}const AL="11.1.3",Ql=-1,ks="en-US",wl="",$_=n=>`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function kL(){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)?$_(n):e==="vnode"&&Le(n)&&"__v_isVNode"in n?$_(n.children):n}}let xC;function NL(n){xC=n}let UC;function RL(n){UC=n}let BC;function OL(n){BC=n}let FC=null;const PL=n=>{FC=n},ML=()=>FC;let VC=null;const K_=n=>{VC=n},DL=()=>VC;let W_=0;function LL(n={}){const e=Je(n.onWarn)?n.onWarn:zo,t=ne(n.version)?n.version:AL,r=ne(n.locale)||Je(n.locale)?n.locale:ks,o=Je(r)?ks:r,a=yt(n.fallbackLocale)||ke(n.fallbackLocale)||ne(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,c=ke(n.messages)?n.messages:Wd(o),d=ke(n.datetimeFormats)?n.datetimeFormats:Wd(o),h=ke(n.numberFormats)?n.numberFormats:Wd(o),m=Ot(qe(),n.modifiers,kL()),g=n.pluralRules||qe(),_=Je(n.missing)?n.missing:null,p=Ue(n.missingWarn)||Ca(n.missingWarn)?n.missingWarn:!0,w=Ue(n.fallbackWarn)||Ca(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:xC;process.env.NODE_ENV!=="production"&&Je(n.messageCompiler)&&Af(yi(_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const K=Je(n.messageResolver)?n.messageResolver:UC||TL,q=Je(n.localeFallbacker)?n.localeFallbacker:BC||mL,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:{};W_++;const ue={version:t,cid:W_,locale:r,fallbackLocale:a,messages:c,modifiers:m,pluralRules:g,missing:_,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__)&&lL(ue,t,ee),ue}const Wd=n=>({[n]:qe()});function Xl(n,e){return n instanceof RegExp?n.test(e):n}function HC(n,e){return n instanceof RegExp?n.test(e):n}function Pf(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"&&HC(r,e)&&c(yi(_n.NOT_FOUND_KEY,{key:e,locale:t})),e}function os(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function $C(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function xL(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;r<e.length;r++)if($C(n,e[r]))return!0;return!1}const z_=typeof Intl<"u",KC={dateTimeFormat:z_&&typeof Intl.DateTimeFormat<"u",numberFormat:z_&&typeof Intl.NumberFormat<"u"};function G_(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__datetimeFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!KC.dateTimeFormat)return a(yi(_n.CANNOT_FORMAT_DATE)),wl;const[h,m,g,_]=Nh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=Of(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.DateTimeFormat(T,_).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&&Xl(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;Pf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?Ql:h;let M=`${N}__${h}`;Jl(_)||(M=`${M}__${JSON.stringify(_)}`);let ce=d.get(M);return ce||(ce=new Intl.DateTimeFormat(N,Ot({},D,_)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const WC=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Nh(...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(mD(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=>{WC.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 q_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function j_(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__numberFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!KC.numberFormat)return a(yi(_n.CANNOT_FORMAT_NUMBER)),wl;const[h,m,g,_]=Rh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=Of(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.NumberFormat(T,_).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&&Xl(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;Pf(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?Ql:h;let M=`${N}__${h}`;Jl(_)||(M=`${M}__${JSON.stringify(_)}`);let ce=d.get(M);return ce||(ce=new Intl.NumberFormat(N,Ot({},D,_)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const zC=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Rh(...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=>{zC.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 Y_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const UL=n=>n,BL=n=>"",FL="text",VL=n=>n.length===0?"":Sf(n),HL=vD;function J_(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function $L(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 KL(n,e){e.count||(e.count=n),e.n||(e.n=n)}function WL(n={}){const e=n.locale,t=$L(n),r=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?n.pluralRules[e]:J_,o=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?J_:void 0,a=I=>I[r(t,I.length,o)],c=n.list||[],d=I=>c[I],h=n.named||qe();It(n.pluralIndex)&&KL(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):BL)}const _=I=>n.modifiers?n.modifiers[I]:UL,p=ke(n.processor)&&Je(n.processor.normalize)?n.processor.normalize:VL,w=ke(n.processor)&&Je(n.processor.interpolate)?n.processor.interpolate:HL,C=ke(n.processor)&&ne(n.processor.type)?n.processor.type:FL,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?_(q)(ce,K):ce},message:g,type:C,interpolate:w,normalize:p,values:Ot(qe(),c,h)};return k}const Q_=()=>"",rr=n=>Je(n);function X_(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:c,messages:d}=n,[h,m]=Oh(...e),g=Ue(m.missingWarn)?m.missingWarn:n.missingWarn,_=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=Of(n,m);p&&zL(m);let[I,N,D]=w?[h,k,d[k]||qe()]:GC(n,h,k,c,_,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?Ql: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:qC(n,h,N,L,K,M);if(q)return L;const ae=YL(n,N,D,m),X=WL(ae),ee=GL(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,ML()||{}),uL(Be)}return ue}function zL(n){yt(n.list)?n.list=n.list.map(e=>ne(e)?P_(e):e):Le(n.named)&&Object.keys(n.named).forEach(e=>{ne(n.named[e])&&(n.named[e]=P_(n.named[e]))})}function GC(n,e,t,r,o,a){const{messages:c,onWarn:d,messageResolver:h,localeFallbacker:m}=n,g=m(n,r,t);let _=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&&!$C(t,p)&&Xl(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}`})}_=c[p]||qe();let N=null,D,L;if(process.env.NODE_ENV!=="production"&&Er&&(N=window.performance.now(),D="intlify-message-resolve-start",L="intlify-message-resolve-end",Un&&Un(D)),(w=h(_,e))===null&&(w=_[e]),process.env.NODE_ENV!=="production"&&Er){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(!xL(p,g)){const K=Pf(n,e,p,a,k);K!==e&&(w=K)}C=T}return[w,p,_]}function qC(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"&&Er&&(h=window.performance.now(),m="intlify-message-compilation-start",g="intlify-message-compilation-end",Un&&Un(m));const _=c(r,qL(n,t,o,r,d,a));if(process.env.NODE_ENV!=="production"&&Er){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 _.locale=t,_.key=e,_.source=r,_}function GL(n,e,t){let r=null,o,a;process.env.NODE_ENV!=="production"&&Er&&(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"&&Er){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 Oh(...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)&&!Jl(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 qL(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=jL(r),h=`Message compilation error: ${c.message}`,m=c.location&&d&&yD(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=>hD(e,t,c)}}function jL(n){if(ne(n))return n;if(n.loc&&n.loc.source)return n.loc.source}function YL(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]=GC(g||n,w,e,d,h,m);T=c(k,w)}if(ne(T)||ir(T)){let k=!1;const N=qC(n,w,e,T,w,()=>{k=!0});return k?Q_:N}else return rr(T)?T:Q_}};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}YD();/*!
26
+ */function GD(){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)&&Nf(n)===0&&(vr(n,"b")||vr(n,"body"))}const TC=["b","body"];function qD(n){return Go(n,TC)}const bC=["c","cases"];function jD(n){return Go(n,bC,[])}const IC=["s","static"];function YD(n){return Go(n,IC)}const SC=["i","items"];function JD(n){return Go(n,SC,[])}const AC=["t","type"];function Nf(n){return Go(n,AC)}const kC=["v","value"];function Uc(n,e){const t=Go(n,kC);if(t!=null)return t;throw Ss(e)}const NC=["m","modifier"];function QD(n){return Go(n,NC)}const RC=["k","key"];function XD(n){const e=Go(n,RC);if(e)return e;throw Ss(6)}function Go(n,e,t){for(let r=0;r<e.length;r++){const o=e[r];if(vr(n,o)&&n[o]!=null)return n[o]}return t}const OC=[...TC,...bC,...IC,...SC,...RC,...NC,...kC,...AC];function Ss(n){return new Error(`unhandled node type: ${n}`)}function Hd(n){return t=>ZD(t,n)}function ZD(n,e){const t=qD(e);if(t==null)throw Ss(0);if(Nf(t)===1){const a=jD(t);return n.plural(a.reduce((c,d)=>[...c,U_(n,d)],[]))}else return U_(n,t)}function U_(n,e){const t=YD(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const r=JD(e).reduce((o,a)=>[...o,Ah(n,a)],[]);return n.normalize(r)}}function Ah(n,e){const t=Nf(e);switch(t){case 3:return Uc(e,t);case 9:return Uc(e,t);case 4:{const r=e;if(vr(r,"k")&&r.k)return n.interpolate(n.named(r.k));if(vr(r,"key")&&r.key)return n.interpolate(n.named(r.key));throw Ss(t)}case 5:{const r=e;if(vr(r,"i")&&It(r.i))return n.interpolate(n.list(r.i));if(vr(r,"index")&&It(r.index))return n.interpolate(n.list(r.index));throw Ss(t)}case 6:{const r=e,o=QD(r),a=XD(r);return n.linked(Ah(n,a),o?Ah(n,o):void 0,n.type)}case 7:return Uc(e,t);case 8:return Uc(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const eL="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function tL(n,e){e&&wD(n)&&zo(jl(eL,{source:n}))}const nL=n=>n;let Bc=qe();function rL(n,e={}){let t=!1;const r=e.onError||CD;return e.onError=o=>{t=!0,r(o)},{...zD(n,e),detectError:t}}function oL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ne(n)){const t=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&tL(n,t);const o=(e.onCacheKey||nL)(n),a=Bc[o];if(a)return a;const{ast:c,detectError:d}=rL(n,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),h=Hd(c);return d?h:Bc[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=Bc[t];return r||(Bc[t]=Hd(n))}else return Hd(n)}}let As=null;function iL(n){As=n}function aL(n,e,t){As&&As.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const sL=cL("function:translate");function cL(n){return e=>As&&As.emit(n,e)}const en={INVALID_ARGUMENT:vD,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},lL=24;function so(n){return ka(n,null,process.env.NODE_ENV!=="production"?{messages:uL}:void 0)}const uL={[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 Rf(n,e){return e.locale!=null?B_(e.locale):B_(n.locale)}let $d;function B_(n){if(ne(n))return n;if(Je(n)){if(n.resolvedOnce&&$d!=null)return $d;if(n.constructor.name==="Function"){const e=n();if(mD(e))throw so(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return $d=e}else throw so(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw so(en.NOT_SUPPORT_LOCALE_TYPE)}function dL(n,e,t){return[...new Set([t,...vt(e)?e:Le(e)?Object.keys(e):ne(e)?[e]:[t]])]}function PC(n,e,t){const r=ne(t)?t:ks,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let c=[t];for(;vt(c);)c=F_(a,c,e);const d=vt(e)||!ke(e)?e:e.default?e.default:null;c=ne(d)?[d]:d,vt(c)&&F_(a,c,!1),o.__localeChainCache.set(r,a)}return a}function F_(n,e,t){let r=!0;for(let o=0;o<e.length&&Ue(r);o++){const a=e[o];ne(a)&&(r=hL(n,e[o],t))}return r}function hL(n,e,t){let r;const o=e.split("-");do{const a=o.join("-");r=fL(n,a,t),o.splice(-1,1)}while(o.length&&r===!0);return r}function fL(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),(vt(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 mL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function gL(n){return mL.test(n)}function pL(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 _L(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 vL(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:gL(e)?pL(e):"*"+e}function yL(n){const e=[];let t=-1,r=0,o=0,a,c,d,h,m,g,_;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=vL(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=_L(a),_=qo[r],m=_[h]||_.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 V_=new Map;function CL(n,e){return Le(n)?n[e]:null}function EL(n,e){if(!Le(n))return null;let t=V_.get(e);if(t||(t=yL(e),t&&V_.set(e,t)),!t)return null;const r=t.length;let o=n,a=0;for(;a<r;){const c=t[a];if(OC.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},wL=8,TL={[_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 jl(TL[n],...e)}const bL="11.1.3",Jl=-1,ks="en-US",El="",H_=n=>`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function IL(){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)?H_(n):e==="vnode"&&Le(n)&&"__v_isVNode"in n?H_(n.children):n}}let MC;function SL(n){MC=n}let DC;function AL(n){DC=n}let LC;function kL(n){LC=n}let xC=null;const NL=n=>{xC=n},RL=()=>xC;let UC=null;const $_=n=>{UC=n},OL=()=>UC;let K_=0;function PL(n={}){const e=Je(n.onWarn)?n.onWarn:zo,t=ne(n.version)?n.version:bL,r=ne(n.locale)||Je(n.locale)?n.locale:ks,o=Je(r)?ks:r,a=vt(n.fallbackLocale)||ke(n.fallbackLocale)||ne(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,c=ke(n.messages)?n.messages:Kd(o),d=ke(n.datetimeFormats)?n.datetimeFormats:Kd(o),h=ke(n.numberFormats)?n.numberFormats:Kd(o),m=Ot(qe(),n.modifiers,IL()),g=n.pluralRules||qe(),_=Je(n.missing)?n.missing:null,p=Ue(n.missingWarn)||Ca(n.missingWarn)?n.missingWarn:!0,w=Ue(n.fallbackWarn)||Ca(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:MC;process.env.NODE_ENV!=="production"&&Je(n.messageCompiler)&&Sf(yi(_n.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const K=Je(n.messageResolver)?n.messageResolver:DC||CL,q=Je(n.localeFallbacker)?n.localeFallbacker:LC||dL,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:{};K_++;const ue={version:t,cid:K_,locale:r,fallbackLocale:a,messages:c,modifiers:m,pluralRules:g,missing:_,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__)&&aL(ue,t,ee),ue}const Kd=n=>({[n]:qe()});function Ql(n,e){return n instanceof RegExp?n.test(e):n}function BC(n,e){return n instanceof RegExp?n.test(e):n}function Of(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"&&BC(r,e)&&c(yi(_n.NOT_FOUND_KEY,{key:e,locale:t})),e}function ns(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function FC(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function ML(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;r<e.length;r++)if(FC(n,e[r]))return!0;return!1}const W_=typeof Intl<"u",VC={dateTimeFormat:W_&&typeof Intl.DateTimeFormat<"u",numberFormat:W_&&typeof Intl.NumberFormat<"u"};function z_(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__datetimeFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!VC.dateTimeFormat)return a(yi(_n.CANNOT_FORMAT_DATE)),El;const[h,m,g,_]=kh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=Rf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.DateTimeFormat(T,_).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&&Ql(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;Of(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?Jl:h;let M=`${N}__${h}`;Yl(_)||(M=`${M}__${JSON.stringify(_)}`);let ce=d.get(M);return ce||(ce=new Intl.DateTimeFormat(N,Ot({},D,_)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const HC=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function kh(...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(dD(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=>{HC.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.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function q_(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:c}=n,{__numberFormatters:d}=n;if(process.env.NODE_ENV!=="production"&&!VC.numberFormat)return a(yi(_n.CANNOT_FORMAT_NUMBER)),El;const[h,m,g,_]=Nh(...e),p=Ue(g.missingWarn)?g.missingWarn:n.missingWarn,w=Ue(g.fallbackWarn)?g.fallbackWarn:n.fallbackWarn,C=!!g.part,T=Rf(n,g),k=c(n,o,T);if(!ne(h)||h==="")return new Intl.NumberFormat(T,_).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&&Ql(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;Of(n,h,N,p,q),L=K}if(!ke(D)||!ne(N))return r?Jl:h;let M=`${N}__${h}`;Yl(_)||(M=`${M}__${JSON.stringify(_)}`);let ce=d.get(M);return ce||(ce=new Intl.NumberFormat(N,Ot({},D,_)),d.set(M,ce)),C?ce.formatToParts(m):ce.format(m)}const $C=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nh(...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=>{$C.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 j_(n,e,t){const r=n;for(const o in t){const a=`${e}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const DL=n=>n,LL=n=>"",xL="text",UL=n=>n.length===0?"":If(n),BL=gD;function Y_(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function FL(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 VL(n,e){e.count||(e.count=n),e.n||(e.n=n)}function HL(n={}){const e=n.locale,t=FL(n),r=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?n.pluralRules[e]:Y_,o=Le(n.pluralRules)&&ne(e)&&Je(n.pluralRules[e])?Y_:void 0,a=I=>I[r(t,I.length,o)],c=n.list||[],d=I=>c[I],h=n.named||qe();It(n.pluralIndex)&&VL(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):LL)}const _=I=>n.modifiers?n.modifiers[I]:DL,p=ke(n.processor)&&Je(n.processor.normalize)?n.processor.normalize:UL,w=ke(n.processor)&&Je(n.processor.interpolate)?n.processor.interpolate:BL,C=ke(n.processor)&&ne(n.processor.type)?n.processor.type:xL,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"&&vt(M)&&q?M[0]:M;return q?_(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 Q_(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:c,messages:d}=n,[h,m]=Rh(...e),g=Ue(m.missingWarn)?m.missingWarn:n.missingWarn,_=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=Rf(n,m);p&&$L(m);let[I,N,D]=w?[h,k,d[k]||qe()]:KC(n,h,k,c,_,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:WC(n,h,N,L,K,M);if(q)return L;const ae=GL(n,N,D,m),X=HL(ae),ee=KL(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,RL()||{}),sL(Be)}return ue}function $L(n){vt(n.list)?n.list=n.list.map(e=>ne(e)?O_(e):e):Le(n.named)&&Object.keys(n.named).forEach(e=>{ne(n.named[e])&&(n.named[e]=O_(n.named[e]))})}function KC(n,e,t,r,o,a){const{messages:c,onWarn:d,messageResolver:h,localeFallbacker:m}=n,g=m(n,r,t);let _=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&&!FC(t,p)&&Ql(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}`})}_=c[p]||qe();let N=null,D,L;if(process.env.NODE_ENV!=="production"&&Er&&(N=window.performance.now(),D="intlify-message-resolve-start",L="intlify-message-resolve-end",Un&&Un(D)),(w=h(_,e))===null&&(w=_[e]),process.env.NODE_ENV!=="production"&&Er){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(!ML(p,g)){const K=Of(n,e,p,a,k);K!==e&&(w=K)}C=T}return[w,p,_]}function WC(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"&&Er&&(h=window.performance.now(),m="intlify-message-compilation-start",g="intlify-message-compilation-end",Un&&Un(m));const _=c(r,WL(n,t,o,r,d,a));if(process.env.NODE_ENV!=="production"&&Er){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 _.locale=t,_.key=e,_.source=r,_}function KL(n,e,t){let r=null,o,a;process.env.NODE_ENV!=="production"&&Er&&(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"&&Er){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 Rh(...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)&&!Yl(t)?o.named=t:vt(t)&&(o.list=t),It(r)?o.plural=r:ne(r)?o.default=r:ke(r)&&Ot(o,r),[a,o]}function WL(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=zL(r),h=`Message compilation error: ${c.message}`,m=c.location&&d&&pD(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=>lD(e,t,c)}}function zL(n){if(ne(n))return n;if(n.loc&&n.loc.source)return n.loc.source}function GL(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]=KC(g||n,w,e,d,h,m);T=c(k,w)}if(ne(T)||ir(T)){let k=!1;const N=WC(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}GD();/*!
28
28
  * vue-i18n v11.1.3
29
29
  * (c) 2025 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const JL="11.1.3";function QL(){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:hL,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 ka(n,null,process.env.NODE_ENV!=="production"?{messages:XL,args:e}:void 0)}const XL={[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"},Ph=Gr("__translateVNode"),Mh=Gr("__datetimeParts"),Dh=Gr("__numberParts"),Ci=Gr("__enableEmitter"),Ns=Gr("__disableEmitter"),jC=Gr("__setPluralRules"),YC=Gr("__injectWithOption"),Lh=Gr("__dispose"),xr={FALLBACK_TO_ROOT:IL,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},ZL={[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 Bs(n,...e){return Yl(ZL[n],...e)}function Rs(n){if(!Le(n)||ir(n))return n;for(const e in n)if(vr(n,e))if(!e.includes("."))Le(n[e])&&Rs(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(Bs(xr.IGNORE_OBJ_FLATTEN,{key:t[c]})),a=!0;break}o=o[t[c]]}if(a||(ir(o)?DC.includes(t[r])||delete n[e]:(o[t[r]]=n[e],delete n[e])),!ir(o)){const c=o[t[r]];Le(c)&&Rs(c)}}return n}function Mf(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(),cl(m,c[h])):cl(m,c)}else ne(d)&&cl(JSON.parse(d),c)}),o==null&&a)for(const d in c)vr(c,d)&&Rs(c[d]);return c}function JC(n){return n.type}function QC(n,e,t){let r=Le(e.messages)?e.messages:qe();"__i18nGlobal"in t&&(r=Mf(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 Z_(n){return l.createVNode(l.Text,null,n,0)}const ev="__INTLIFY_META__",tv=()=>[],ex=()=>!1;let nv=0;function rv(n){return(e,t,r,o)=>n(t,r,l.getCurrentInstance()||void 0,o)}const tx=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=JC(n)[ev])?{[ev]:e}:null};function Df(n={}){const{__root:e,__injectWithOption:t}=n,r=e===void 0,o=n.flatJson,a=Er?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:ks),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(Mf(d.value,n)),g=a(ke(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),_=a(ke(n.numberFormats)?n.numberFormats:{[d.value]:{}});let p=e?e.missingWarn:Ue(n.missingWarn)||Ca(n.missingWarn)?n.missingWarn:!0,w=e?e.fallbackWarn:Ue(n.fallbackWarn)||Ca(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)?rv(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&&K_(null);const V={version:JL,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=_.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=LL(V);return r&&K_(J),J})(),os(M,d.value,h.value);function ae(){return[d.value,h.value,m.value,g.value,_.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,os(M,d.value,V)}}),ue=l.computed(()=>m.value),Be=l.computed(()=>g.value),Ct=l.computed(()=>_.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=rv(V)),k=V,M.missing=I}function Et(V,J){return V!=="translate"||!J.resolvedMessage}const on=(V,J,Ne,ze,sr,Co)=>{ae();let kr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=e?DL():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===Ql||Ne==="translate exists"&&!kr){const[cr,Va]=J();if(process.env.NODE_ENV!=="production"&&e&&ne(cr)&&Et(Ne,Va)&&(C&&(Xl(w,cr)||HC(p,cr))&&zo(Bs(xr.FALLBACK_TO_ROOT,{key:cr,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:ki}=M;ki&&C&&ki.emit("fallback",{type:Ne,key:cr,to:"global",groupId:`${Ne}:${cr}`})}return e&&C?ze(e):sr(cr)}else{if(Co(kr))return kr;throw Cn(nt.UNEXPECTED_RETURN_TYPE)}};function St(...V){return on(J=>Reflect.apply(X_,null,[J,...V]),()=>Oh(...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 xa(...V){return on(J=>Reflect.apply(G_,null,[J,...V]),()=>Nh(...V),"datetime format",J=>Reflect.apply(J.d,J,[...V]),()=>wl,J=>ne(J))}function Ua(...V){return on(J=>Reflect.apply(j_,null,[J,...V]),()=>Rh(...V),"number format",J=>Reflect.apply(J.n,J,[...V]),()=>wl,J=>ne(J))}function Sr(V){return V.map(J=>ne(J)||It(J)||Ue(J)?Z_(String(J)):J)}const Ba={normalize:Sr,interpolate:V=>V,type:"vnode"};function Ar(...V){return on(J=>{let Ne;const ze=J;try{ze.processor=Ba,Ne=Reflect.apply(X_,null,[ze,...V])}finally{ze.processor=null}return Ne},()=>Oh(...V),"translate",J=>J[Ph](...V),J=>[Z_(J)],J=>yt(J))}function qr(...V){return on(J=>Reflect.apply(j_,null,[J,...V]),()=>Rh(...V),"number format",J=>J[Dh](...V),tv,J=>ne(J)||yt(J))}function Fa(...V){return on(J=>Reflect.apply(G_,null,[J,...V]),()=>Nh(...V),"datetime format",J=>J[Mh](...V),tv,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),sr=M.messageResolver(ze,V);return ir(sr)||rr(sr)||ne(sr)},()=>[V],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[V,J]),ex,Ne=>Ue(Ne))}function yo(V){let J=null;const Ne=LC(M,h.value,d.value);for(let ze=0;ze<Ne.length;ze++){const sr=m.value[Ne[ze]]||{},Co=M.messageResolver(sr,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)vr(Ne,ze)&&Rs(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)vr(Ne,ze)&&Rs(Ne[ze]);J=Ne[V],cl(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,q_(M,V,J)}function G(V,J){g.value[V]=Ot(g.value[V]||{},J),M.datetimeFormats=g.value,q_(M,V,J)}function oe(V){return _.value[V]||{}}function je(V,J){_.value[V]=J,M.numberFormats=_.value,Y_(M,V,J)}function Ze(V,J){_.value[V]=Ot(_.value[V]||{},J),M.numberFormats=_.value,Y_(M,V,J)}nv++,e&&Er&&(l.watch(e.locale,V=>{c&&(d.value=V,M.locale=V,os(M,d.value,h.value))}),l.watch(e.fallbackLocale,V=>{c&&(h.value=V,M.fallbackLocale=V,os(M,d.value,h.value))}));const Me={id:nv,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,os(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,[jC]:_o};return Me.datetimeFormats=Be,Me.numberFormats=Ct,Me.rt=jo,Me.te=vo,Me.tm=Ft,Me.d=xa,Me.n=Ua,Me.getDateTimeFormat=A,Me.setDateTimeFormat=R,Me.mergeDateTimeFormat=G,Me.getNumberFormat=oe,Me.setNumberFormat=je,Me.mergeNumberFormat=Ze,Me[YC]=t,Me[Ph]=Ar,Me[Mh]=Fa,Me[Dh]=qr,process.env.NODE_ENV!=="production"&&(Me[Ci]=V=>{M.__v_emitter=V},Me[Ns]=()=>{M.__v_emitter=void 0}),Me}const XC="vue-i18n: composer properties",zd={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},nx={"vue-i18n-resource-inspector":"Search for scopes ..."},rx={"vue-i18n-timeline":16764185};let xh;async function ox(n,e){return new Promise((t,r)=>{try{yf({id:"vue-devtools-plugin-vue-i18n",label:zd["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:[XC],app:n},o=>{xh=o,o.on.visitComponentTree(({componentInstance:c,treeNode:d})=>{ix(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&&ov(d,c.vnode.el.__VUE_I18N__):ov(d,c.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:zd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:nx["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&ux(c,e)});const a=new Map;o.on.getInspectorState(async c=>{if(c.app===n&&c.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),hx(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=dx(c.nodeId,e);d&&o.highlightElement(d)}}),o.on.editInspectorState(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&mx(c,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:zd["vue-i18n-timeline"],color:rx["vue-i18n-timeline"]}),t(!0)})}catch(o){console.error(o),r(!1)}})}function ZC(n){return n.type.name||n.type.displayName||n.type.__file||"Anonymous"}function ix(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 (${ZC(n)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(o)}}function ov(n,e){const t=XC;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:Lf(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 Lf(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];Je(r)&&"source"in r?e[t]=lx(r):ir(r)&&r.loc&&r.loc.source?e[t]=r.loc.source:Le(r)?e[t]=Lf(r):e[t]=r}),e}const ax={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function sx(n){return n.replace(/[<>"&]/g,cx)}function cx(n){return ax[n]||n}function lx(n){return{_custom:{type:"function",display:`<span>ƒ</span> ${n.source?`("${sx(n.source)}")`:"(?)"}`}}}function ux(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:`${ZC(r)} Scope`})}}function dx(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 eE(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 hx(n,e){const t=eE(n.nodeId,e);return t&&(n.state=fx(t)),null}function fx(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:Lf(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 Os(n,e){if(xh){let t;e&&"groupId"in e&&(t=e.groupId,delete e.groupId),xh.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 mx(n,e){const t=eE(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 gx(n){const e=ne(n.locale)?n.locale:ks,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)||Ca(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,a=Ue(n.silentFallbackWarn)||Ca(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,_=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:_,escapeParameter:p,messageResolver:n.messageResolver,inheritLocale:w,__i18n:T,__root:k,__injectWithOption:I}}function Uh(n={}){const e=Df(gx(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[Ns]&&o[Ns]()}),r}function px(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=iv(n,a);else{a.__injectWithOption=!0,a.__extender=t.__vueI18nExtend,this.$i18n=Uh(a);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=iv(n,o);else{this.$i18n=Uh({__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&&QC(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=kf();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Os)}},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("*",Os),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 iv(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[jC](e.pluralizationRules||n.pluralizationRules);const t=Mf(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 xf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function _x({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 tE(){return l.Fragment}const vx=l.defineComponent({name:"i18n-t",props:Ot({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>It(n)||!isNaN(n)}},xf),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(_=>_!=="_"),c=qe();n.locale&&(c.locale=n.locale),n.plural!==void 0&&(c.plural=ne(n.plural)?+n.plural:n.plural);const d=_x(e,a),h=o[Ph](n.keypath,d,c),m=Ot(qe(),r),g=ne(n.tag)||Le(n.tag)?n.tag:tE();return l.h(g,m,h)}}}),av=vx;function yx(n){return yt(n)&&!ne(n[0])}function nE(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 yx(T)&&(T[0].key=`${p.type}-${w}`),T}):ne(h)&&(m=[h]);const g=Ot(qe(),a),_=ne(n.tag)||Le(n.tag)?n.tag:tE();return l.h(_,g,m)}}const Cx=l.defineComponent({name:"i18n-n",props:Ot({value:{type:Number,required:!0},format:{type:[String,Object]}},xf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return nE(n,e,zC,(...r)=>t[Dh](...r))}}),sv=Cx;function Ex(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 wx(n){const e=c=>{process.env.NODE_ENV!=="production"&&Af(Bs(xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:d,value:h}=c;if(!d||!d.$)throw Cn(nt.UNEXPECTED_ERROR);const m=Ex(n,d.$),g=cv(h);return[Reflect.apply(m.t,m,[...lv(g)]),m]};return{created:(c,d)=>{const[h,m]=e(d);Er&&n.global===m&&(c.__i18nWatcher=l.watch(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=h},unmounted:c=>{Er&&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=cv(d);c.textContent=Reflect.apply(h.t,h,[...lv(m)])}},getSSRProps:c=>{const[d]=e(c);return{textContent:d}}}}function cv(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 lv(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 Tx(n,e,...t){const r=ke(t[0])?t[0]:{};(Ue(r.globalInstall)?r.globalInstall:!0)&&([av.name,"I18nT"].forEach(a=>n.component(a,av)),[sv.name,"I18nN"].forEach(a=>n.component(a,sv)),[dv.name,"I18nD"].forEach(a=>n.component(a,dv))),n.directive("t",wx(e))}const bx=Gr("global-vue-i18n");function Ix(n={}){const e=__VUE_I18N_LEGACY_API__&&Ue(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&e&&Af(Bs(xr.DEPRECATE_LEGACY_MODE));const t=Ue(n.globalInjection)?n.globalInjection:!0,r=new Map,[o,a]=Sx(n,e),c=Gr(process.env.NODE_ENV!=="production"?"vue-i18n":"");function d(_){return r.get(_)||null}function h(_,p){r.set(_,p)}function m(_){r.delete(_)}const g={get mode(){return __VUE_I18N_LEGACY_API__&&e?"legacy":"composition"},async install(_,...p){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=g),_.__VUE_I18N_SYMBOL__=c,_.provide(_.__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=Dx(_,g.global)),__VUE_I18N_FULL_INSTALL__&&Tx(_,g,...p),__VUE_I18N_LEGACY_API__&&e&&_.mixin(px(a,a.__composer,g));const C=_.unmount;if(_.unmount=()=>{w&&w(),g.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await ox(_,g))throw Cn(nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=kf();if(e){const I=a;I.__enableEmitter&&I.__enableEmitter(k)}else{const I=a;I[Ci]&&I[Ci](k)}k.on("*",Os)}},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=Ax(e),r=Nx(t),o=JC(e),a=kx(n,o);if(a==="global")return QC(r,n,o),r;if(a==="parent"){let h=Rx(t,e,n.__useComponent);return h==null&&(process.env.NODE_ENV!=="production"&&zo(Bs(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=Df(h),c.__composerExtend&&(d[Lh]=c.__composerExtend(d)),Px(c,e,d),c.__setInstance(e,d)}return d}function Sx(n,e){const t=l.effectScope(),r=__VUE_I18N_LEGACY_API__&&e?t.run(()=>Uh(n)):t.run(()=>Df(n));if(r==null)throw Cn(nt.UNEXPECTED_ERROR);return[t,r]}function Ax(n){const e=l.inject(n.isCE?bx:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Cn(n.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return e}function kx(n,e){return Jl(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Nx(n){return n.mode==="composition"?n.global:n.global.__composer}function Rx(n,e,t=!1){let r=null;const o=e.root;let a=Ox(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[YC]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function Ox(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Px(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=kf();const o=t;o[Ci]&&o[Ci](r),r.on("*",Os)}},e),l.onUnmounted(()=>{const o=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Os),o[Ns]&&o[Ns](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const a=o[Lh];a&&(a(),delete o[Lh])},e)}const Mx=["locale","fallbackLocale","availableLocales"],uv=["t","rt","d","n","tm","te"];function Dx(n,e){const t=Object.create(null);return Mx.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,uv.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,uv.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}const Lx=l.defineComponent({name:"i18n-d",props:Ot({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return nE(n,e,WC,(...r)=>t[Mh](...r))}}),dv=Lx;QL();NL(sL);RL(bL);OL(LC);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=fi();n.__INTLIFY__=!0,cL(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const xx={"en-US":bf,"pt-BR":uD,"fr-FR":DM,"de-DE":oM};function fs(n){if(!n)return"";const{locale:e}=br(),t=e.value,r=xx[t]||bf;try{const o=typeof n=="string"||n===null?new Date(n||""):n;return isNaN(o.getTime())?"":k1(o,"PPpp",{locale:r})}catch(o){return console.error("Error formatting date:",o),""}}const Bh="https://app-files.jplan.com.br/pub/resources/assets/thumbs/empty_list.svg";function Ux(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 Bx={key:0,class:"d-flex mt-4 flex-column align-center justify-center w-100"},Fx={key:1,class:"mt-4 h-100 rounded-sm"},Vx={class:"d-inline-flex"},Hx={class:"d-inline-flex"},$x={class:"d-inline-flex"},rE=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=Ux(p),d.value=!0};function _(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",Bx,[l.createVNode(_f.VImg,{"lazy-src":l.unref(Bh),src:l.unref(Bh),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",Fx,[l.createVNode(vf.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(My.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":_,"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",Hx,[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",Vx,[l.renderSlot(p.$slots,C,{item:T})])])})),l.renderList(p.dateFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",$x,l.toDisplayString(l.unref(fs)(T[C])),1)])}))]),1032,["modelValue","headers","items","items-length","loading","sort-by","search","filter-keys"])]))}}),Zl=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(SO.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(vP),{size:"15",class:"ma-1 me-1"})]),_:1},8,["placeholder","modelValue"]))}}),Kx=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,_;const t=n,r=l.computed(()=>t.columns),o=e,a=l.useModel(n,"search"),{openDialog:c}=Ls("col-settings"),d=l.getCurrentInstance(),h=((g=d==null?void 0:d.vnode.props)==null?void 0:g.onRemove)!==void 0||((_=d==null?void 0:d.vnode.props)==null?void 0:_["onUpdate:remove"])!==void 0,{t:m}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",null,[l.createVNode(l.unref(Vf),{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(fP),{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(hs.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(_P),{color:"rgb(var(--v-theme-secondary))"})]),_:1}),l.createVNode(it.VBtn,{icon:"",variant:"text"},{default:l.withCtx(()=>[l.createVNode(l.unref(hP),{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(pP),{color:"rgb(var(--v-theme-secondary))"})]),_:1},8,["onClick"]),l.createVNode(Zl,{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(Tf),{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(yP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(hs.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(gP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(hs.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})]))}}),oE=Aa(Kx,[["__scopeId","data-v-58865e47"]]);/*!
31
+ */const qL="11.1.3";function jL(){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:lL,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 ka(n,null,process.env.NODE_ENV!=="production"?{messages:YL,args:e}:void 0)}const YL={[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"},Oh=Gr("__translateVNode"),Ph=Gr("__datetimeParts"),Mh=Gr("__numberParts"),Ci=Gr("__enableEmitter"),Ns=Gr("__disableEmitter"),zC=Gr("__setPluralRules"),GC=Gr("__injectWithOption"),Dh=Gr("__dispose"),xr={FALLBACK_TO_ROOT:wL,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},JL={[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 Bs(n,...e){return jl(JL[n],...e)}function Rs(n){if(!Le(n)||ir(n))return n;for(const e in n)if(vr(n,e))if(!e.includes("."))Le(n[e])&&Rs(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(Bs(xr.IGNORE_OBJ_FLATTEN,{key:t[c]})),a=!0;break}o=o[t[c]]}if(a||(ir(o)?OC.includes(t[r])||delete n[e]:(o[t[r]]=n[e],delete n[e])),!ir(o)){const c=o[t[r]];Le(c)&&Rs(c)}}return n}function Pf(n,e){const{messages:t,__i18n:r,messageResolver:o,flatJson:a}=e,c=ke(t)?t:vt(r)?qe():{[n]:qe()};if(vt(r)&&r.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:h,resource:m}=d;h?(c[h]=c[h]||qe(),sl(m,c[h])):sl(m,c)}else ne(d)&&sl(JSON.parse(d),c)}),o==null&&a)for(const d in c)vr(c,d)&&Rs(c[d]);return c}function qC(n){return n.type}function jC(n,e,t){let r=Le(e.messages)?e.messages:qe();"__i18nGlobal"in t&&(r=Pf(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 X_(n){return l.createVNode(l.Text,null,n,0)}const Z_="__INTLIFY_META__",ev=()=>[],QL=()=>!1;let tv=0;function nv(n){return(e,t,r,o)=>n(t,r,l.getCurrentInstance()||void 0,o)}const XL=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=qC(n)[Z_])?{[Z_]:e}:null};function Mf(n={}){const{__root:e,__injectWithOption:t}=n,r=e===void 0,o=n.flatJson,a=Er?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:ks),h=a(e&&c?e.fallbackLocale.value:ne(n.fallbackLocale)||vt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:d.value),m=a(Pf(d.value,n)),g=a(ke(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),_=a(ke(n.numberFormats)?n.numberFormats:{[d.value]:{}});let p=e?e.missingWarn:Ue(n.missingWarn)||Ca(n.missingWarn)?n.missingWarn:!0,w=e?e.fallbackWarn:Ue(n.fallbackWarn)||Ca(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)?nv(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&&$_(null);const V={version:qL,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=_.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=PL(V);return r&&$_(J),J})(),ns(M,d.value,h.value);function ae(){return[d.value,h.value,m.value,g.value,_.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,ns(M,d.value,V)}}),ue=l.computed(()=>m.value),Be=l.computed(()=>g.value),Ct=l.computed(()=>_.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=nv(V)),k=V,M.missing=I}function Et(V,J){return V!=="translate"||!J.resolvedMessage}const on=(V,J,Ne,ze,sr,Co)=>{ae();let kr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=e?OL():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[cr,Va]=J();if(process.env.NODE_ENV!=="production"&&e&&ne(cr)&&Et(Ne,Va)&&(C&&(Ql(w,cr)||BC(p,cr))&&zo(Bs(xr.FALLBACK_TO_ROOT,{key:cr,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:ki}=M;ki&&C&&ki.emit("fallback",{type:Ne,key:cr,to:"global",groupId:`${Ne}:${cr}`})}return e&&C?ze(e):sr(cr)}else{if(Co(kr))return kr;throw Cn(nt.UNEXPECTED_RETURN_TYPE)}};function St(...V){return on(J=>Reflect.apply(Q_,null,[J,...V]),()=>Rh(...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 xa(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>kh(...V),"datetime format",J=>Reflect.apply(J.d,J,[...V]),()=>El,J=>ne(J))}function Ua(...V){return on(J=>Reflect.apply(q_,null,[J,...V]),()=>Nh(...V),"number format",J=>Reflect.apply(J.n,J,[...V]),()=>El,J=>ne(J))}function Sr(V){return V.map(J=>ne(J)||It(J)||Ue(J)?X_(String(J)):J)}const Ba={normalize:Sr,interpolate:V=>V,type:"vnode"};function Ar(...V){return on(J=>{let Ne;const ze=J;try{ze.processor=Ba,Ne=Reflect.apply(Q_,null,[ze,...V])}finally{ze.processor=null}return Ne},()=>Rh(...V),"translate",J=>J[Oh](...V),J=>[X_(J)],J=>vt(J))}function qr(...V){return on(J=>Reflect.apply(q_,null,[J,...V]),()=>Nh(...V),"number format",J=>J[Mh](...V),ev,J=>ne(J)||vt(J))}function Fa(...V){return on(J=>Reflect.apply(z_,null,[J,...V]),()=>kh(...V),"datetime format",J=>J[Ph](...V),ev,J=>ne(J)||vt(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),sr=M.messageResolver(ze,V);return ir(sr)||rr(sr)||ne(sr)},()=>[V],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[V,J]),QL,Ne=>Ue(Ne))}function yo(V){let J=null;const Ne=PC(M,h.value,d.value);for(let ze=0;ze<Ne.length;ze++){const sr=m.value[Ne[ze]]||{},Co=M.messageResolver(sr,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)vr(Ne,ze)&&Rs(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)vr(Ne,ze)&&Rs(Ne[ze]);J=Ne[V],sl(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,G_(M,V,J)}function G(V,J){g.value[V]=Ot(g.value[V]||{},J),M.datetimeFormats=g.value,G_(M,V,J)}function oe(V){return _.value[V]||{}}function je(V,J){_.value[V]=J,M.numberFormats=_.value,j_(M,V,J)}function Ze(V,J){_.value[V]=Ot(_.value[V]||{},J),M.numberFormats=_.value,j_(M,V,J)}tv++,e&&Er&&(l.watch(e.locale,V=>{c&&(d.value=V,M.locale=V,ns(M,d.value,h.value))}),l.watch(e.fallbackLocale,V=>{c&&(h.value=V,M.fallbackLocale=V,ns(M,d.value,h.value))}));const Me={id:tv,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,ns(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,[zC]:_o};return Me.datetimeFormats=Be,Me.numberFormats=Ct,Me.rt=jo,Me.te=vo,Me.tm=Ft,Me.d=xa,Me.n=Ua,Me.getDateTimeFormat=A,Me.setDateTimeFormat=R,Me.mergeDateTimeFormat=G,Me.getNumberFormat=oe,Me.setNumberFormat=je,Me.mergeNumberFormat=Ze,Me[GC]=t,Me[Oh]=Ar,Me[Ph]=Fa,Me[Mh]=qr,process.env.NODE_ENV!=="production"&&(Me[Ci]=V=>{M.__v_emitter=V},Me[Ns]=()=>{M.__v_emitter=void 0}),Me}const YC="vue-i18n: composer properties",Wd={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},ZL={"vue-i18n-resource-inspector":"Search for scopes ..."},ex={"vue-i18n-timeline":16764185};let Lh;async function tx(n,e){return new Promise((t,r)=>{try{vf({id:"vue-devtools-plugin-vue-i18n",label:Wd["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:[YC],app:n},o=>{Lh=o,o.on.visitComponentTree(({componentInstance:c,treeNode:d})=>{nx(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&&rv(d,c.vnode.el.__VUE_I18N__):rv(d,c.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:Wd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:ZL["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&sx(c,e)});const a=new Map;o.on.getInspectorState(async c=>{if(c.app===n&&c.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),lx(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=cx(c.nodeId,e);d&&o.highlightElement(d)}}),o.on.editInspectorState(c=>{c.app===n&&c.inspectorId==="vue-i18n-resource-inspector"&&dx(c,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:Wd["vue-i18n-timeline"],color:ex["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 nx(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 rv(n,e){const t=YC;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:Df(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 Df(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];Je(r)&&"source"in r?e[t]=ax(r):ir(r)&&r.loc&&r.loc.source?e[t]=r.loc.source:Le(r)?e[t]=Df(r):e[t]=r}),e}const rx={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function ox(n){return n.replace(/[<>"&]/g,ix)}function ix(n){return rx[n]||n}function ax(n){return{_custom:{type:"function",display:`<span>ƒ</span> ${n.source?`("${ox(n.source)}")`:"(?)"}`}}}function sx(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 cx(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 QC(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 lx(n,e){const t=QC(n.nodeId,e);return t&&(n.state=ux(t)),null}function ux(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:Df(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 Os(n,e){if(Lh){let t;e&&"groupId"in e&&(t=e.groupId,delete e.groupId),Lh.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 dx(n,e){const t=QC(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)||vt(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 hx(n){const e=ne(n.locale)?n.locale:ks,t=ne(n.fallbackLocale)||vt(n.fallbackLocale)||ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Je(n.missing)?n.missing:void 0,o=Ue(n.silentTranslationWarn)||Ca(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,a=Ue(n.silentFallbackWarn)||Ca(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,_=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:_,escapeParameter:p,messageResolver:n.messageResolver,inheritLocale:w,__i18n:T,__root:k,__injectWithOption:I}}function xh(n={}){const e=Mf(hx(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[Ns]&&o[Ns]()}),r}function fx(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=ov(n,a);else{a.__injectWithOption=!0,a.__extender=t.__vueI18nExtend,this.$i18n=xh(a);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=ov(n,o);else{this.$i18n=xh({__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&&jC(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=Af();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Os)}},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("*",Os),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 ov(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[zC](e.pluralizationRules||n.pluralizationRules);const t=Pf(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 Lf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function mx({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 XC(){return l.Fragment}const gx=l.defineComponent({name:"i18n-t",props:Ot({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>It(n)||!isNaN(n)}},Lf),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(_=>_!=="_"),c=qe();n.locale&&(c.locale=n.locale),n.plural!==void 0&&(c.plural=ne(n.plural)?+n.plural:n.plural);const d=mx(e,a),h=o[Oh](n.keypath,d,c),m=Ot(qe(),r),g=ne(n.tag)||Le(n.tag)?n.tag:XC();return l.h(g,m,h)}}}),iv=gx;function px(n){return vt(n)&&!ne(n[0])}function ZC(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];vt(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 px(T)&&(T[0].key=`${p.type}-${w}`),T}):ne(h)&&(m=[h]);const g=Ot(qe(),a),_=ne(n.tag)||Le(n.tag)?n.tag:XC();return l.h(_,g,m)}}const _x=l.defineComponent({name:"i18n-n",props:Ot({value:{type:Number,required:!0},format:{type:[String,Object]}},Lf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return ZC(n,e,$C,(...r)=>t[Mh](...r))}}),av=_x;function vx(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 yx(n){const e=c=>{process.env.NODE_ENV!=="production"&&Sf(Bs(xr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:d,value:h}=c;if(!d||!d.$)throw Cn(nt.UNEXPECTED_ERROR);const m=vx(n,d.$),g=sv(h);return[Reflect.apply(m.t,m,[...cv(g)]),m]};return{created:(c,d)=>{const[h,m]=e(d);Er&&n.global===m&&(c.__i18nWatcher=l.watch(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=h},unmounted:c=>{Er&&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=sv(d);c.textContent=Reflect.apply(h.t,h,[...cv(m)])}},getSSRProps:c=>{const[d]=e(c);return{textContent:d}}}}function sv(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 cv(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 Cx(n,e,...t){const r=ke(t[0])?t[0]:{};(Ue(r.globalInstall)?r.globalInstall:!0)&&([iv.name,"I18nT"].forEach(a=>n.component(a,iv)),[av.name,"I18nN"].forEach(a=>n.component(a,av)),[uv.name,"I18nD"].forEach(a=>n.component(a,uv))),n.directive("t",yx(e))}const Ex=Gr("global-vue-i18n");function wx(n={}){const e=__VUE_I18N_LEGACY_API__&&Ue(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&e&&Sf(Bs(xr.DEPRECATE_LEGACY_MODE));const t=Ue(n.globalInjection)?n.globalInjection:!0,r=new Map,[o,a]=Tx(n,e),c=Gr(process.env.NODE_ENV!=="production"?"vue-i18n":"");function d(_){return r.get(_)||null}function h(_,p){r.set(_,p)}function m(_){r.delete(_)}const g={get mode(){return __VUE_I18N_LEGACY_API__&&e?"legacy":"composition"},async install(_,...p){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=g),_.__VUE_I18N_SYMBOL__=c,_.provide(_.__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=Ox(_,g.global)),__VUE_I18N_FULL_INSTALL__&&Cx(_,g,...p),__VUE_I18N_LEGACY_API__&&e&&_.mixin(fx(a,a.__composer,g));const C=_.unmount;if(_.unmount=()=>{w&&w(),g.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await tx(_,g))throw Cn(nt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=Af();if(e){const I=a;I.__enableEmitter&&I.__enableEmitter(k)}else{const I=a;I[Ci]&&I[Ci](k)}k.on("*",Os)}},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=bx(e),r=Sx(t),o=qC(e),a=Ix(n,o);if(a==="global")return jC(r,n,o),r;if(a==="parent"){let h=Ax(t,e,n.__useComponent);return h==null&&(process.env.NODE_ENV!=="production"&&zo(Bs(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=Mf(h),c.__composerExtend&&(d[Dh]=c.__composerExtend(d)),Nx(c,e,d),c.__setInstance(e,d)}return d}function Tx(n,e){const t=l.effectScope(),r=__VUE_I18N_LEGACY_API__&&e?t.run(()=>xh(n)):t.run(()=>Mf(n));if(r==null)throw Cn(nt.UNEXPECTED_ERROR);return[t,r]}function bx(n){const e=l.inject(n.isCE?Ex:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Cn(n.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return e}function Ix(n,e){return Yl(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Sx(n){return n.mode==="composition"?n.global:n.global.__composer}function Ax(n,e,t=!1){let r=null;const o=e.root;let a=kx(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[GC]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function kx(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Nx(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=Af();const o=t;o[Ci]&&o[Ci](r),r.on("*",Os)}},e),l.onUnmounted(()=>{const o=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Os),o[Ns]&&o[Ns](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const a=o[Dh];a&&(a(),delete o[Dh])},e)}const Rx=["locale","fallbackLocale","availableLocales"],lv=["t","rt","d","n","tm","te"];function Ox(n,e){const t=Object.create(null);return Rx.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,lv.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,lv.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}const Px=l.defineComponent({name:"i18n-d",props:Ot({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lf),setup(n,e){const t=n.i18n||br({useScope:n.scope,__useComponent:!0});return ZC(n,e,HC,(...r)=>t[Ph](...r))}}),uv=Px;jL();SL(oL);AL(EL);kL(PC);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=fi();n.__INTLIFY__=!0,iL(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Mx={"en-US":Tf,"pt-BR":sD,"fr-FR":OM,"de-DE":tM};function fs(n){if(!n)return"";const{locale:e}=br(),t=e.value,r=Mx[t]||Tf;try{const o=typeof n=="string"||n===null?new Date(n||""):n;return isNaN(o.getTime())?"":I1(o,"PPpp",{locale:r})}catch(o){return console.error("Error formatting date:",o),""}}const Uh="https://app-files.jplan.com.br/pub/resources/assets/thumbs/empty_list.svg";function Dx(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 Lx={key:0,class:"d-flex mt-4 flex-column align-center justify-center w-100"},xx={key:1,class:"mt-4 h-100 rounded-sm"},Ux={class:"d-inline-flex"},Bx={class:"d-inline-flex"},Fx={class:"d-inline-flex"},eE=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=Dx(p),d.value=!0};function _(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",Lx,[l.createVNode(pf.VImg,{"lazy-src":l.unref(Uh),src:l.unref(Uh),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",xx,[l.createVNode(_f.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(Oy.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":_,"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",Bx,[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",Ux,[l.renderSlot(p.$slots,C,{item:T})])])})),l.renderList(p.dateFields,C=>({name:`item.${C}`,fn:l.withCtx(({item:T})=>[l.createElementVNode("div",Fx,l.toDisplayString(l.unref(fs)(T[C])),1)])}))]),1032,["modelValue","headers","items","items-length","loading","sort-by","search","filter-keys"])]))}}),Xl=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(TO.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(gP),{size:"15",class:"ma-1 me-1"})]),_:1},8,["placeholder","modelValue"]))}}),Vx=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,_;const t=n,r=l.computed(()=>t.columns),o=e,a=l.useModel(n,"search"),{openDialog:c}=Ls("col-settings"),d=l.getCurrentInstance(),h=((g=d==null?void 0:d.vnode.props)==null?void 0:g.onRemove)!==void 0||((_=d==null?void 0:d.vnode.props)==null?void 0:_["onUpdate:remove"])!==void 0,{t:m}=br();return(p,w)=>(l.openBlock(),l.createElementBlock("div",null,[l.createVNode(l.unref(Ff),{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(uP),{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(hs.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(mP),{color:"rgb(var(--v-theme-secondary))"})]),_:1}),l.createVNode(it.VBtn,{icon:"",variant:"text"},{default:l.withCtx(()=>[l.createVNode(l.unref(lP),{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(fP),{color:"rgb(var(--v-theme-secondary))"})]),_:1},8,["onClick"]),l.createVNode(Xl,{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(wf),{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(pP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(hs.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(hP),{class:"me-2",color:"rgb(var(--v-theme-secondary))"}),l.createVNode(hs.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})]))}}),tE=Aa(Vx,[["__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 hv(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?hv(Object(t),!0).forEach(function(r){Wx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):hv(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ll(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ll=function(e){return typeof e}:ll=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(n)}function Wx(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 zx(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 Gx(n,e){if(n==null)return{};var t=zx(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 qx="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),Fs=ho(/Edge/i),fv=ho(/firefox/i),ms=ho(/safari/i)&&!ho(/chrome/i)&&!ho(/android/i),iE=ho(/iP(ad|od|hone)/i),jx=ho(/chrome/i)&&ho(/android/i),aE={capture:!1,passive:!1};function Ve(n,e,t){n.addEventListener(e,t,!po&&aE)}function xe(n,e,t){n.removeEventListener(e,t,!po&&aE)}function Tl(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 Yx(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&&Tl(n,e):Tl(n,e))||r&&n===t)return n;if(n===t)break}while(n=Yx(n))}return null}var mv=/\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(mv," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(mv," ")}}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 sE(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,_;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,_=a.width):(c=0,d=0,h=window.innerHeight,m=window.innerWidth,g=window.innerHeight,_=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,_/=C,g/=T,h=c+g,m=d+_)}return{top:c,left:d,bottom:h,right:m,width:_,height:g}}}function gv(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 wa(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 Uf(n,e){for(var t=n.lastElementChild;t&&(t===_e.ghost||pe(t,"display")==="none"||e&&!Tl(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||Tl(n,e))&&t++;return t}function pv(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 Jx(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 Qx(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Gd(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 gs;function cE(n,e){return function(){if(!gs){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),gs=setTimeout(function(){gs=void 0},e)}}}function Xx(){clearTimeout(gs),gs=void 0}function lE(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function uE(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 Zx(){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(Jx(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,_=Rt(m),p=m.prevFromRect,w=m.prevToRect,C=d.rect,T=ga(m,!0);T&&(_.top-=T.f,_.left-=T.e),m.toRect=_,m.thisAnimationDuration&&Gd(p,_)&&!Gd(g,_)&&(C.top-_.top)/(C.left-_.left)===(g.top-_.top)/(g.left-_.left)&&(h=tU(C,p,w,o.options)),Gd(_,g)||(m.prevFromRect=g,m.prevToRect=_,h||(h=o.options.animation),o.animate(m,C,_,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),_=(o.top-a.top)/(m||1);r.animatingX=!!g,r.animatingY=!!_,pe(r,"transform","translate3d("+g+"px,"+_+"px,0)"),this.forRepaintDummy=eU(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 eU(n){return n.offsetWidth}function tU(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=[],qd={initializeByDefault:!0},Vs={mount:function(e){for(var t in qd)qd.hasOwnProperty(t)&&!(t in e)&&(e[t]=qd[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 nU(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,_=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&&!Fs?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=_,T.originalEvent=p,T.pullMode=w?w.lastPutMode:void 0;var N=Wr(Wr({},C),Vs.getEventProperties(r,e));for(var D in N)T[D]=N[D];t&&t.dispatchEvent(T),k[I]&&k[I].call(e,T)}}var rU=["evt"],pn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=Gx(r,rU);Vs.pluginEvent.bind(_e)(e,t,Wr({dragEl:Z,parentEl:mt,ghostEl:we,rootEl:ct,nextEl:ui,lastDownEl:ul,cloneEl:gt,cloneHidden:Lo,dragStarted:ss,putSortable:zt,activeSortable:_e.active,originalEvent:o,oldIndex:da,oldDraggableIndex:ps,newIndex:Rn,newDraggableIndex:Do,hideGhostForTarget:mE,unhideGhostForTarget:gE,cloneNowHidden:function(){Lo=!0},cloneNowShown:function(){Lo=!1},dispatchSortableEvent:function(d){ln({sortable:t,name:d,originalEvent:o})}},a))};function ln(n){nU(Wr({putSortable:zt,cloneEl:gt,targetEl:Z,rootEl:ct,oldIndex:da,oldDraggableIndex:ps,newIndex:Rn,newDraggableIndex:Do},n))}var Z,mt,we,ct,ui,ul,gt,Lo,da,Rn,ps,Do,Fc,zt,oa=!1,bl=!1,Il=[],ai,fr,jd,Yd,_v,vv,ss,ji,_s,vs=!1,Vc=!1,dl,Jt,Jd=[],Fh=!1,Sl=[],eu=typeof document<"u",Hc=iE,yv=Fs||po?"cssFloat":"float",oU=eu&&!jx&&!iE&&"draggable"in document.createElement("div"),dE=function(){if(eu){if(po)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),hE=function(e,t){var r=pe(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=wa(e,0,t),c=wa(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 _=d.float==="left"?"left":"right";return c&&(h.clear==="both"||h.clear===_)?"vertical":"horizontal"}return a&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=o&&r[yv]==="none"||c&&r[yv]==="none"&&m+g>o)?"vertical":"horizontal"},iU=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},aU=function(e,t){var r;return Il.some(function(o){var a=o[xn].options.emptyInsertThreshold;if(!(!a||Uf(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},fE=function(e){function t(a,c){return function(d,h,m,g){var _=d.options.group.name&&h.options.group.name&&d.options.group.name===h.options.group.name;if(a==null&&(c||_))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||ll(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},mE=function(){!dE&&we&&pe(we,"display","none")},gE=function(){!dE&&we&&pe(we,"display","")};eu&&document.addEventListener("click",function(n){if(bl)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),bl=!1,!1},!0);var si=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=aU(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)}}},sU=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 hE(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&&!ms,emptyInsertThreshold:5};Vs.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);fE(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:oU,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)),Il.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),mo(this,Zx())}_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(gU(r),!Z&&!(/mousedown|pointerdown/.test(c)&&e.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&ms&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Lr(h,o.draggable,r,!1),!(h&&h.animated)&&ul!==h)){if(da=nr(h),ps=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(_){if(_=Lr(m,_.trim(),r,!1),_)return ln({sortable:t,rootEl:_,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,ul=r,Fc=c.group,_e.dragged=Z,ai={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},_v=ai.clientX-m.left,vv=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(),!fv&&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){sE(Z,g.trim(),Qd)}),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),fv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),pn("delayStart",this,{evt:e}),c.delay&&(!c.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Fs||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&&Qd(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?hl(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",sU);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(fr){this._lastX=fr.clientX,this._lastY=fr.clientY,mE();for(var e=document.elementFromPoint(fr.clientX,fr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fr.clientX,fr.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:fr.clientX,clientY:fr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);gE()}},_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=Hc&&Jt&&pv(Jt),g=(a.clientX-ai.clientX+o.x)/(d||1)+(m?m[0]-Jd[0]:0)/(d||1),_=(a.clientY-ai.clientY+o.y)/(h||1)+(m?m[1]-Jd[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-(jd||0),c.f+=_-(Yd||0)):c={a:1,b:0,c:0,d:1,e:g,f:_};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),jd=g,Yd=_,fr=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:ct,t=Rt(Z,!0,Hc,!0,e),r=this.options;if(Hc){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(),Jd=pv(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",Hc?"absolute":"fixed"),pe(we,"zIndex","100000"),pe(we,"pointerEvents","none"),_e.ghost=we,e.appendChild(we),pe(we,"transform-origin",_v/parseInt(we.style.width)*100+"% "+vv/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=uE(Z),gt.draggable=!1,gt.style["will-change"]="",this._hideClone(),Nn(gt,this.options.chosenClass,!1),_e.clone=gt),r.cloneId=hl(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?(bl=!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=hl(r._dragStarted.bind(r,t,e)),Ve(document,"selectstart",r),ss=!0,ms&&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=Fc===h,_=d.sort,p=zt||m,w,C=this,T=!1;if(Fh)return;function k(at,Et){pn(at,C,Wr({evt:e,isOwner:g,axis:w?"vertical":"horizontal",revert:c,dragRect:o,targetRect:a,canSort:_,fromSortable:p,target:r,completed:N,onMove:function(St,jo){return $c(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(bl=!1,m&&!d.disabled&&(g?_||(c=mt!==ct):zt===this||(this.lastPutMode=Fc.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=Uf(t,d.draggable);if(!L||dU(e,w,this)&&!L.animated){if(L===Z)return N(!1);if(L&&t===e.target&&(r=L),r&&(a=Rt(r)),$c(ct,t,Z,o,r,a,e,!!r)!==!1)return I(),t.appendChild(Z),mt=t,D(),N(!0)}else if(L&&uU(e,w,this)){var K=wa(t,0,d,!0);if(K===Z)return N(!1);if(r=K,a=Rt(r),$c(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=!iU(Z.animated&&Z.toRect||o,r.animated&&r.toRect||a,w),X=w?"top":"left",ee=gv(r,"top","top")||gv(Z,"top","top"),ue=ee?ee.scrollTop:void 0;ji!==r&&(M=a[X],vs=!1,Vc=!ae&&d.invertSwap||ce),q=hU(e,r,a,w,ae?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,Vc,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,_s=q;var rn=r.nextElementSibling,qt=!1;qt=q===1;var Mt=$c(ct,t,Z,o,r,a,e,qt);if(Mt!==!1)return(Mt===1||Mt===-1)&&(qt=Mt===1),Fh=!0,setTimeout(lU,30),I(),qt&&!rn?t.appendChild(Z):r.parentNode.insertBefore(Z,qt?rn:r),ee&&lE(ee,0,ue-ee.scrollTop),mt=Z.parentNode,M!==void 0&&!Vc&&(dl=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,Vc=!1,vs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vh(this.cloneId),Vh(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ms&&pe(document.body,"user-select",""),pe(Z,"transform",""),e&&(ss&&(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),Qd(Z),Z.style["will-change"]="",ss&&!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=ps),ln({sortable:this,name:"end",toEl:mt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),ct=Z=mt=we=ui=gt=ul=Lo=ai=fr=ss=Rn=Do=da=ps=ji=_s=zt=Fc=_e.dragged=_e.ghost=_e.clone=_e.active=null,Sl.forEach(function(e){e.checked=!0}),Sl.length=jd=Yd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),cU(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)||mU(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=Vs.modifyOption(this,e,t);typeof o<"u"?r[e]=o:r[e]=t,e==="group"&&fE(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(),Il.splice(Il.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 cU(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function $c(n,e,t,r,o,a,c,d){var h,m=n[xn],g=m.options.onMove,_;return window.CustomEvent&&!po&&!Fs?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&&(_=g.call(m,h,c)),_}function Qd(n){n.draggable=!1}function lU(){Fh=!1}function uU(n,e,t){var r=Rt(wa(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 dU(n,e,t){var r=Rt(Uf(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 hU(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,_=r?t.bottom:t.right,p=!1;if(!c){if(d&&dl<m*o){if(!vs&&(_s===1?h>g+m*a/2:h<_-m*a/2)&&(vs=!0),vs)p=!0;else if(_s===1?h<g+dl:h>_-dl)return-_s}else if(h>g+m*(1-o)/2&&h<_-m*(1-o)/2)return fU(e)}return p=p||c,p&&(h<g+m*a/2||h>_-m*a/2)?h>g+m/2?1:-1:0}function fU(n){return nr(Z)<nr(n)?1:-1}function mU(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 gU(n){Sl.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&Sl.push(r)}}function hl(n){return setTimeout(n,0)}function Vh(n){return clearTimeout(n)}eu&&Ve(document,"touchmove",function(n){(_e.active||oa)&&n.cancelable&&n.preventDefault()});_e.utils={on:Ve,off:xe,css:pe,find:sE,is:function(e,t){return!!Lr(e,t,e,!1)},extend:Qx,throttle:cE,closest:Lr,toggleClass:Nn,clone:uE,index:nr,nextTick:hl,cancelNextTick:Vh,detectDirection:hE,getChild:wa};_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)),Vs.mount(r)})};_e.create=function(n,e){return new _e(n,e)};_e.version=qx;var wt=[],cs,Hh,$h=!1,Xd,Zd,Al,ls;function pU(){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)),Cv(),fl(),Xx()},nulling:function(){Al=Hh=cs=$h=ls=Xd=Zd=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(Al=t,r||this.options.forceAutoScrollFallback||Fs||po||ms){eh(t,this.options,d,r);var h=Fo(d,!0);$h&&(!ls||a!==Xd||c!==Zd)&&(ls&&Cv(),ls=setInterval(function(){var m=Fo(document.elementFromPoint(a,c),!0);m!==h&&(h=m,fl()),eh(t,o.options,m,r)},10),Xd=a,Zd=c)}else{if(!this.options.bubbleScroll||Fo(d,!0)===$r()){fl();return}eh(t,this.options,Fo(d,!1),!1)}}},mo(n,{pluginName:"scroll",initializeByDefault:!0})}function fl(){wt.forEach(function(n){clearInterval(n.pid)}),wt=[]}function Cv(){clearInterval(ls)}var eh=cE(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;Hh!==t&&(Hh=t,fl(),cs=e.scroll,g=e.scrollFn,cs===!0&&(cs=Fo(t,!0)));var _=0,p=cs;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[_])for(var Ct=0;Ct<=_;Ct++)wt[Ct]||(wt[Ct]={});(wt[_].vx!=ue||wt[_].vy!=Be||wt[_].el!==w)&&(wt[_].el=w,wt[_].vx=ue,wt[_].vy=Be,clearInterval(wt[_].pid),(ue!=0||Be!=0)&&(m=!0,wt[_].pid=setInterval((function(){r&&this.layer===0&&_e.active._onTouchMove(Al);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,Al,wt[this.layer].el)!=="continue"||lE(wt[this.layer].el,qt,rn)}).bind({layer:_}),24))),_++}while(e.bubbleScroll&&p!==h&&(p=Fo(p,!1)));$h=m}},30),pE=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,_=document.elementFromPoint(g.clientX,g.clientY);h(),m&&!m.el.contains(_)&&(c("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Bf(){}Bf.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=wa(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:pE};mo(Bf,{pluginName:"revertOnSpill"});function Ff(){}Ff.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:pE};mo(Ff,{pluginName:"removeOnSpill"});_e.mount(new pU);_e.mount(Ff,Bf);function _U(){return typeof window<"u"?window.console:global.console}const vU=_U();function yU(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const CU=/-(\w)/g,Ev=yU(n=>n.replace(CU,(e,t)=>t?t.toUpperCase():""));function th(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function wv(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function EU(n,e){return Object.values(n).indexOf(e)}function wU(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 _E(n,e){this.$nextTick(()=>this.$emit(n.toLowerCase(),e))}function TU(n){return e=>{this.realList!==null&&this["onDrag"+n](e),_E.call(this,n,e)}}function bU(n){return["transition-group","TransitionGroup"].includes(n)}function IU(n){if(!n||n.length!==1)return!1;const[{type:e}]=n;return e?bU(e.name):!1}function SU(n,e){return e?{...e.props,...e.attrs}:n}const Kh=["Start","Add","Remove","Update","End"],Wh=["Choose","Unchoose","Sort","Filter","Clone"],AU=["Move",...Kh,...Wh].map(n=>"on"+n);let nh=null;const kU={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}},NU=l.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Kh.map(n=>n.toLowerCase()),...Wh.map(n=>n.toLowerCase())],props:kU,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const n=this.$slots.default?this.$slots.default():null,e=SU(this.$attrs,this.componentData);return n?(this.transitionMode=IU(n),l.h(this.getTag(),e,n)):l.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&vU.error("list props are mutually exclusive! Please set one.")},mounted(){const n={};Kh.forEach(o=>{n["on"+o]=TU.call(this,o)}),Wh.forEach(o=>{n["on"+o]=_E.bind(this,o)});const e=Object.keys(this.$attrs).reduce((o,a)=>(o[Ev(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=Ev(e);AU.indexOf(t)===-1&&this._sortable.option(t,n[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=wU(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(n){const e=EU(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),nh=n.item)},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;th(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(wv(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){th(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){th(n.item),wv(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(),nh=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(nh)!==-1||!e.willInsertAfter?o:o+1}}}),RU={class:"d-flex flex-row align-center"},Vf=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(Us,{"dd-id":"col-settings",buttons:!1,title:l.unref(o)("dialogs.columnSettings.title")},{default:l.withCtx(()=>[l.createVNode(Zl,{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(NU),{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",RU,[l.createVNode(l.unref(mP),{class:"cursor-grab mb-2"}),l.createVNode(Qt.VListItemAction,null,{default:l.withCtx(()=>[l.createVNode(AO.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(yl.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"])}}}),OU=["src","height","width"],PU={key:0,class:"text-center text-h6"},MU={key:1,class:"text-center text-h5"},DU={key:0,class:"text-center"},LU={class:"d-flex justify-center align-center mt-4 ga-3"},Hf=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,OU)):l.createCommentVNode("",!0)]),_:1})]),_:1}),t()?(l.openBlock(),l.createElementBlock("div",PU,l.toDisplayString(o.item[t()]),1)):l.createCommentVNode("",!0),r()?(l.openBlock(),l.createElementBlock("div",MU,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",DU,l.toDisplayString(c.title)+": "+l.toDisplayString(o.item[c.key]),1)):l.createCommentVNode("",!0)],64))),128)),l.createElementVNode("div",LU,[o.tags?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(o.tags,c=>(l.openBlock(),l.createBlock(kO.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"]))}}),xU=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(Hf,{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}))}}),vE=Aa(xU,[["__scopeId","data-v-e1a4ccbc"]]),UU={key:0,class:"mb-2 ms-1"},yE=l.defineComponent({__name:"JTextField",props:l.mergeModels({name:{},label:{},type:{default:"text"},readonly:{type:Boolean},density:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue");return(t,r)=>(l.openBlock(),l.createElementBlock("div",null,[t.name?(l.openBlock(),l.createElementBlock("p",UU,l.toDisplayString(t.name),1)):l.createCommentVNode("",!0),t.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Vo.VTextField),{variant:"solo-filled",color:"secondary","bg-color":t.readonly?"containerBg30":"containerBg",rounded:"sm",type:t.type,density:t.density,rules:t.rules,modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),class:"j-field",readonly:t.readonly},null,8,["bg-color","type","density","rules","modelValue","readonly"])]))}});function CE(n,e){return function(){return n.apply(e,arguments)}}const{toString:BU}=Object.prototype,{getPrototypeOf:$f}=Object,tu=(n=>e=>{const t=BU.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=n=>(n=n.toLowerCase(),e=>tu(e)===n),nu=n=>e=>typeof e===n,{isArray:Na}=Array,Ps=nu("undefined");function FU(n){return n!==null&&!Ps(n)&&n.constructor!==null&&!Ps(n.constructor)&&Fn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const EE=Ir("ArrayBuffer");function VU(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&EE(n.buffer),e}const HU=nu("string"),Fn=nu("function"),wE=nu("number"),ru=n=>n!==null&&typeof n=="object",$U=n=>n===!0||n===!1,ml=n=>{if(tu(n)!=="object")return!1;const e=$f(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},KU=Ir("Date"),WU=Ir("File"),zU=Ir("Blob"),GU=Ir("FileList"),qU=n=>ru(n)&&Fn(n.pipe),jU=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Fn(n.append)&&((e=tu(n))==="formdata"||e==="object"&&Fn(n.toString)&&n.toString()==="[object FormData]"))},YU=Ir("URLSearchParams"),[JU,QU,XU,ZU]=["ReadableStream","Request","Response","Headers"].map(Ir),eB=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),Na(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 TE(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,bE=n=>!Ps(n)&&n!==mi;function zh(){const{caseless:n}=bE(this)&&this||{},e={},t=(r,o)=>{const a=n&&TE(e,o)||o;ml(e[a])&&ml(r)?e[a]=zh(e[a],r):ml(r)?e[a]=zh({},r):Na(r)?e[a]=r.slice():e[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Hs(arguments[r],t);return e}const tB=(n,e,t,{allOwnKeys:r}={})=>(Hs(e,(o,a)=>{t&&Fn(o)?n[a]=CE(o,t):n[a]=o},{allOwnKeys:r}),n),nB=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),rB=(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)},oB=(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&&$f(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},iB=(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},aB=n=>{if(!n)return null;if(Na(n))return n;let e=n.length;if(!wE(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},sB=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&$f(Uint8Array)),cB=(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])}},lB=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},uB=Ir("HTMLFormElement"),dB=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),Tv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),hB=Ir("RegExp"),IE=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Hs(t,(o,a)=>{let c;(c=e(o,a,n))!==!1&&(r[a]=c||o)}),Object.defineProperties(n,r)},fB=n=>{IE(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+"'")})}})},mB=(n,e)=>{const t={},r=o=>{o.forEach(a=>{t[a]=!0})};return Na(n)?r(n):r(String(n).split(e)),t},gB=()=>{},pB=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,rh="abcdefghijklmnopqrstuvwxyz",bv="0123456789",SE={DIGIT:bv,ALPHA:rh,ALPHA_DIGIT:rh+rh.toUpperCase()+bv},_B=(n=16,e=SE.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function vB(n){return!!(n&&Fn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const yB=n=>{const e=new Array(10),t=(r,o)=>{if(ru(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const a=Na(r)?[]:{};return Hs(r,(c,d)=>{const h=t(c,o+1);!Ps(h)&&(a[d]=h)}),e[o]=void 0,a}}return r};return t(n,0)},CB=Ir("AsyncFunction"),EB=n=>n&&(ru(n)||Fn(n))&&Fn(n.then)&&Fn(n.catch),AE=((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)),wB=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||AE,B={isArray:Na,isArrayBuffer:EE,isBuffer:FU,isFormData:jU,isArrayBufferView:VU,isString:HU,isNumber:wE,isBoolean:$U,isObject:ru,isPlainObject:ml,isReadableStream:JU,isRequest:QU,isResponse:XU,isHeaders:ZU,isUndefined:Ps,isDate:KU,isFile:WU,isBlob:zU,isRegExp:hB,isFunction:Fn,isStream:qU,isURLSearchParams:YU,isTypedArray:sB,isFileList:GU,forEach:Hs,merge:zh,extend:tB,trim:eB,stripBOM:nB,inherits:rB,toFlatObject:oB,kindOf:tu,kindOfTest:Ir,endsWith:iB,toArray:aB,forEachEntry:cB,matchAll:lB,isHTMLForm:uB,hasOwnProperty:Tv,hasOwnProp:Tv,reduceDescriptors:IE,freezeMethods:fB,toObjectSet:mB,toCamelCase:dB,noop:gB,toFiniteNumber:pB,findKey:TE,global:mi,isContextDefined:bE,ALPHABET:SE,generateString:_B,isSpecCompliantForm:vB,toJSONObject:yB,isAsyncFn:CB,isThenable:EB,setImmediate:AE,asap:wB};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 kE=Te.prototype,NE={};["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=>{NE[n]={value:n}});Object.defineProperties(Te,NE);Object.defineProperty(kE,"isAxiosError",{value:!0});Te.from=(n,e,t,r,o,a)=>{const c=Object.create(kE);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 TB=null;function Gh(n){return B.isPlainObject(n)||B.isArray(n)}function RE(n){return B.endsWith(n,"[]")?n.slice(0,-2):n}function Iv(n,e,t){return n?n.concat(e).map(function(o,a){return o=RE(o),!t&&a?"["+o+"]":o}).join(t?".":""):e}function bB(n){return B.isArray(n)&&!n.some(Gh)}const IB=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function ou(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)&&bB(C)||(B.isFileList(C)||B.endsWith(T,"[]"))&&(I=B.toArray(C)))return T=RE(T),I.forEach(function(D,L){!(B.isUndefined(D)||D===null)&&e.append(c===!0?Iv([T],L,a):c===null?T:T+"[]",m(D))}),!1}return Gh(C)?!0:(e.append(Iv(k,T,a),m(C)),!1)}const _=[],p=Object.assign(IB,{defaultVisitor:g,convertValue:m,isVisitable:Gh});function w(C,T){if(!B.isUndefined(C)){if(_.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));_.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])}),_.pop()}}if(!B.isObject(n))throw new TypeError("data must be an object");return w(n),e}function Sv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Kf(n,e){this._pairs=[],n&&ou(n,this,e)}const OE=Kf.prototype;OE.append=function(e,t){this._pairs.push([e,t])};OE.toString=function(e){const t=e?function(r){return e.call(this,r,Sv)}:Sv;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function SB(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function PE(n,e,t){if(!e)return n;const r=t&&t.encode||SB;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 Kf(e,t).toString(r),a){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Av{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 ME={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AB=typeof URLSearchParams<"u"?URLSearchParams:Kf,kB=typeof FormData<"u"?FormData:null,NB=typeof Blob<"u"?Blob:null,RB={isBrowser:!0,classes:{URLSearchParams:AB,FormData:kB,Blob:NB},protocols:["http","https","file","blob","url","data"]},Wf=typeof window<"u"&&typeof document<"u",qh=typeof navigator=="object"&&navigator||void 0,OB=Wf&&(!qh||["ReactNative","NativeScript","NS"].indexOf(qh.product)<0),PB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MB=Wf&&window.location.href||"http://localhost",DB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wf,hasStandardBrowserEnv:OB,hasStandardBrowserWebWorkerEnv:PB,navigator:qh,origin:MB},Symbol.toStringTag,{value:"Module"})),nn={...DB,...RB};function LB(n,e){return ou(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 xB(n){return B.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function UB(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 DE(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]=UB(o[c])),!d)}if(B.isFormData(n)&&B.isFunction(n.entries)){const t={};return B.forEachEntry(n,(r,o)=>{e(xB(r),o,t,0)}),t}return null}function BB(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 $s={transitional:ME,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(DE(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 LB(e,this.formSerializer).toString();if((d=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ou(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),BB(e)):e}],transformResponse:[function(e){const t=this.transitional||$s.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=>{$s.headers[n]={}});const FB=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"]),VB=n=>{const e={};let t,r,o;return n&&n.split(`
42
- `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),r=c.substring(o+1).trim(),!(!t||e[t]&&FB[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},kv=Symbol("internals");function is(n){return n&&String(n).trim().toLowerCase()}function gl(n){return n===!1||n==null?n:B.isArray(n)?n.map(gl):String(n)}function HB(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 $B=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function oh(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 KB(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function WB(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=is(h);if(!g)throw new Error("header name must be a non-empty string");const _=B.findKey(o,g);(!_||o[_]===void 0||m===!0||m===void 0&&o[_]!==!1)&&(o[_||h]=gl(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())&&!$B(e))c(VB(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=is(e),e){const r=B.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return HB(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=is(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||oh(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function a(c){if(c=is(c),c){const d=B.findKey(r,c);d&&(!t||oh(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||oh(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]=gl(o),delete t[a];return}const d=e?KB(a):String(a).trim();d!==a&&delete t[a],t[d]=gl(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[kv]=this[kv]={accessors:{}}).accessors,o=this.prototype;function a(c){const d=is(c);r[d]||(WB(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 ih(n,e){const t=this||$s,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 LE(n){return!!(n&&n.__CANCEL__)}function Ra(n,e,t){Te.call(this,n??"canceled",Te.ERR_CANCELED,e,t),this.name="CanceledError"}B.inherits(Ra,Te,{__CANCEL__:!0});function xE(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 zB(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function GB(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 _=a,p=0;for(;_!==o;)p+=t[_++],_=_%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 qB(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(),_=g-t;_>=r?c(m,g):(o=m,a||(a=setTimeout(()=>{a=null,c(o)},r-_)))},()=>o&&c(o)]}const kl=(n,e,t=3)=>{let r=0;const o=GB(50,250);return qB(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,h=c-r,m=o(h),g=c<=d;r=c;const _={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(_)},t)},Nv=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Rv=n=>(...e)=>B.asap(()=>n(...e)),jB=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,YB=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 JB(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function QB(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function UE(n,e){return n&&!JB(e)?QB(n,e):e}const Ov=n=>n instanceof yn?{...n}:n;function Ei(n,e){e=e||{};const t={};function r(m,g,_,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,_,p){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m,_,p)}else return r(m,g,_,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,_){if(_ in e)return r(m,g);if(_ 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,_)=>o(Ov(m),Ov(g),_,!0)};return B.forEach(Object.keys(Object.assign({},n,e)),function(g){const _=h[g]||o,p=_(n[g],e[g],g);B.isUndefined(p)&&_!==d||(t[g]=p)}),t}const BE=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=PE(UE(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(_=>_.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...g].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&jB(e.url))){const m=o&&a&&YB.read(a);m&&c.set(o,m)}return e},XB=typeof XMLHttpRequest<"u",ZB=XB&&function(n){return new Promise(function(t,r){const o=BE(n);let a=o.data;const c=yn.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=o,g,_,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};xE(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||ME;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]=kl(m,!0),k.addEventListener("progress",p)),h&&k.upload&&([_,w]=kl(h),k.upload.addEventListener("progress",_),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(g=D=>{k&&(r(!D||D.type?new Ra(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=zB(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)})},eF=(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 Ra(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}},tF=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},nF=async function*(n,e){for await(const t of rF(n))yield*tF(t,e)},rF=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()}},Pv=(n,e,t,r)=>{const o=nF(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 _=g.byteLength;if(t){let p=a+=_;t(p)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},iu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",FE=iu&&typeof ReadableStream=="function",oF=iu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),VE=(n,...e)=>{try{return!!n(...e)}catch{return!1}},iF=FE&&VE(()=>{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}),Mv=64*1024,jh=FE&&VE(()=>B.isReadableStream(new Response("").body)),Nl={stream:jh&&(n=>n.body)};iu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Nl[e]&&(Nl[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 aF=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 oF(n)).byteLength},sF=async(n,e)=>{const t=B.toFiniteNumber(n.getContentLength());return t??aF(e)},cF=iu&&(async n=>{let{url:e,method:t,data:r,signal:o,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:g,withCredentials:_="same-origin",fetchOptions:p}=BE(n);m=m?(m+"").toLowerCase():"text";let w=eF([o,a&&a.toAbortSignal()],c),C;const T=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k;try{if(h&&iF&&t!=="get"&&t!=="head"&&(k=await sF(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]=Nv(k,kl(Rv(h)));r=Pv(K.body,Mv,M,ce)}}B.isString(_)||(_=_?"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?_:void 0});let N=await fetch(C);const D=jh&&(m==="stream"||m==="response");if(jh&&(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&&Nv(q,kl(Rv(d),!0))||[];N=new Response(Pv(N.body,Mv,M,()=>{ce&&ce(),T&&T()}),K)}m=m||"text";let L=await Nl[B.findKey(Nl,m)||"text"](N,n);return!D&&T&&T(),await new Promise((K,q)=>{xE(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)}}),Yh={http:TB,xhr:ZB,fetch:cF};B.forEach(Yh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Dv=n=>`- ${n}`,lF=n=>B.isFunction(n)||n===null||n===!1,HE={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,!lF(t)&&(r=Yh[(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
- `+a.map(Dv).join(`
45
- `):" "+Dv(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:Yh};function ah(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ra(null,n)}function Lv(n){return ah(n),n.headers=yn.from(n.headers),n.data=ih.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),HE.getAdapter(n.adapter||$s.adapter)(n).then(function(r){return ah(n),r.data=ih.call(n,n.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return LE(r)||(ah(n),r&&r.response&&(r.response.data=ih.call(n,n.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const $E="1.7.9",au={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{au[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const xv={};au.transitional=function(e,t,r){function o(a,c){return"[Axios v"+$E+"] 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&&!xv[c]&&(xv[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}};au.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function uF(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 pl={assertOptions:uF,validators:au},Mr=pl.validators;class _i{constructor(e){this.defaults=e,this.interceptors={request:new Av,response:new Av}}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&&pl.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}:pl.assertOptions(o,{encode:Mr.function,serialize:Mr.function},!0)),pl.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,_=0,p;if(!h){const C=[Lv.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,m),p=C.length,g=Promise.resolve(t);_<p;)g=g.then(C[_++],C[_++]);return g}p=d.length;let w=t;for(_=0;_<p;){const C=d[_++],T=d[_++];try{w=C(w)}catch(k){T.call(this,k);break}}try{g=Lv.call(this,w)}catch(C){return Promise.reject(C)}for(_=0,p=m.length;_<p;)g=g.then(m[_++],m[_++]);return g}getUri(e){e=Ei(this.defaults,e);const t=UE(e.baseURL,e.url);return PE(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 zf{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 Ra(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 zf(function(o){e=o}),cancel:e}}}function dF(n){return function(t){return n.apply(null,t)}}function hF(n){return B.isObject(n)&&n.isAxiosError===!0}const Jh={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(Jh).forEach(([n,e])=>{Jh[e]=n});function KE(n){const e=new _i(n),t=CE(_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 KE(Ei(n,o))},t}const dt=KE($s);dt.Axios=_i;dt.CanceledError=Ra;dt.CancelToken=zf;dt.isCancel=LE;dt.VERSION=$E;dt.toFormData=ou;dt.AxiosError=Te;dt.Cancel=dt.CanceledError;dt.all=function(e){return Promise.all(e)};dt.spread=dF;dt.isAxiosError=hF;dt.mergeConfig=Ei;dt.AxiosHeaders=yn;dt.formToJSON=n=>DE(B.isHTMLForm(n)?new FormData(n):n);dt.getAdapter=HE.getAdapter;dt.HttpStatusCode=Jh;dt.default=dt;async function fF({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 Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mF(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var us={exports:{}};/**
41
+ */function dv(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?dv(Object(t),!0).forEach(function(r){Hx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):dv(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function cl(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cl=function(e){return typeof e}:cl=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cl(n)}function Hx(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 $x(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 Kx(n,e){if(n==null)return{};var t=$x(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 Wx="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),Fs=ho(/Edge/i),hv=ho(/firefox/i),ms=ho(/safari/i)&&!ho(/chrome/i)&&!ho(/android/i),nE=ho(/iP(ad|od|hone)/i),zx=ho(/chrome/i)&&ho(/android/i),rE={capture:!1,passive:!1};function Ve(n,e,t){n.addEventListener(e,t,!po&&rE)}function xe(n,e,t){n.removeEventListener(e,t,!po&&rE)}function wl(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 Gx(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&&wl(n,e):wl(n,e))||r&&n===t)return n;if(n===t)break}while(n=Gx(n))}return null}var fv=/\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(fv," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(fv," ")}}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 oE(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,_;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,_=a.width):(c=0,d=0,h=window.innerHeight,m=window.innerWidth,g=window.innerHeight,_=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,_/=C,g/=T,h=c+g,m=d+_)}return{top:c,left:d,bottom:h,right:m,width:_,height:g}}}function mv(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 wa(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 xf(n,e){for(var t=n.lastElementChild;t&&(t===_e.ghost||pe(t,"display")==="none"||e&&!wl(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||wl(n,e))&&t++;return t}function gv(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 qx(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 jx(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function zd(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 gs;function iE(n,e){return function(){if(!gs){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),gs=setTimeout(function(){gs=void 0},e)}}}function Yx(){clearTimeout(gs),gs=void 0}function aE(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function sE(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 Jx(){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(qx(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,_=Rt(m),p=m.prevFromRect,w=m.prevToRect,C=d.rect,T=ga(m,!0);T&&(_.top-=T.f,_.left-=T.e),m.toRect=_,m.thisAnimationDuration&&zd(p,_)&&!zd(g,_)&&(C.top-_.top)/(C.left-_.left)===(g.top-_.top)/(g.left-_.left)&&(h=Xx(C,p,w,o.options)),zd(_,g)||(m.prevFromRect=g,m.prevToRect=_,h||(h=o.options.animation),o.animate(m,C,_,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),_=(o.top-a.top)/(m||1);r.animatingX=!!g,r.animatingY=!!_,pe(r,"transform","translate3d("+g+"px,"+_+"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 Xx(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=[],Gd={initializeByDefault:!0},Vs={mount:function(e){for(var t in Gd)Gd.hasOwnProperty(t)&&!(t in e)&&(e[t]=Gd[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 Zx(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,_=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&&!Fs?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=_,T.originalEvent=p,T.pullMode=w?w.lastPutMode:void 0;var N=Wr(Wr({},C),Vs.getEventProperties(r,e));for(var D in N)T[D]=N[D];t&&t.dispatchEvent(T),k[I]&&k[I].call(e,T)}}var eU=["evt"],pn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=Kx(r,eU);Vs.pluginEvent.bind(_e)(e,t,Wr({dragEl:Z,parentEl:ft,ghostEl:we,rootEl:ct,nextEl:ui,lastDownEl:ll,cloneEl:mt,cloneHidden:Lo,dragStarted:ss,putSortable:zt,activeSortable:_e.active,originalEvent:o,oldIndex:da,oldDraggableIndex:ps,newIndex:Rn,newDraggableIndex:Do,hideGhostForTarget:dE,unhideGhostForTarget:hE,cloneNowHidden:function(){Lo=!0},cloneNowShown:function(){Lo=!1},dispatchSortableEvent:function(d){ln({sortable:t,name:d,originalEvent:o})}},a))};function ln(n){Zx(Wr({putSortable:zt,cloneEl:mt,targetEl:Z,rootEl:ct,oldIndex:da,oldDraggableIndex:ps,newIndex:Rn,newDraggableIndex:Do},n))}var Z,ft,we,ct,ui,ll,mt,Lo,da,Rn,ps,Do,Fc,zt,oa=!1,Tl=!1,bl=[],ai,fr,qd,jd,pv,_v,ss,ji,_s,vs=!1,Vc=!1,ul,Jt,Yd=[],Bh=!1,Il=[],Zl=typeof document<"u",Hc=nE,vv=Fs||po?"cssFloat":"float",tU=Zl&&!zx&&!nE&&"draggable"in document.createElement("div"),cE=function(){if(Zl){if(po)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),lE=function(e,t){var r=pe(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=wa(e,0,t),c=wa(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 _=d.float==="left"?"left":"right";return c&&(h.clear==="both"||h.clear===_)?"vertical":"horizontal"}return a&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=o&&r[vv]==="none"||c&&r[vv]==="none"&&m+g>o)?"vertical":"horizontal"},nU=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},rU=function(e,t){var r;return bl.some(function(o){var a=o[xn].options.emptyInsertThreshold;if(!(!a||xf(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},uE=function(e){function t(a,c){return function(d,h,m,g){var _=d.options.group.name&&h.options.group.name&&d.options.group.name===h.options.group.name;if(a==null&&(c||_))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||cl(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},dE=function(){!cE&&we&&pe(we,"display","none")},hE=function(){!cE&&we&&pe(we,"display","")};Zl&&document.addEventListener("click",function(n){if(Tl)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Tl=!1,!1},!0);var si=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=rU(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)}}},oU=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 lE(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&&!ms,emptyInsertThreshold:5};Vs.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);uE(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:tU,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)),bl.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),mo(this,Jx())}_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(hU(r),!Z&&!(/mousedown|pointerdown/.test(c)&&e.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&ms&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Lr(h,o.draggable,r,!1),!(h&&h.animated)&&ll!==h)){if(da=nr(h),ps=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(_){if(_=Lr(m,_.trim(),r,!1),_)return ln({sortable:t,rootEl:_,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,ft=Z.parentNode,ui=Z.nextSibling,ll=r,Fc=c.group,_e.dragged=Z,ai={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},pv=ai.clientX-m.left,_v=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(),!hv&&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){oE(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),hv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),pn("delayStart",this,{evt:e}),c.delay&&(!c.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Fs||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?dl(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",oU);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(fr){this._lastX=fr.clientX,this._lastY=fr.clientY,dE();for(var e=document.elementFromPoint(fr.clientX,fr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fr.clientX,fr.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:fr.clientX,clientY:fr.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);hE()}},_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=Hc&&Jt&&gv(Jt),g=(a.clientX-ai.clientX+o.x)/(d||1)+(m?m[0]-Yd[0]:0)/(d||1),_=(a.clientY-ai.clientY+o.y)/(h||1)+(m?m[1]-Yd[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-(qd||0),c.f+=_-(jd||0)):c={a:1,b:0,c:0,d:1,e:g,f:_};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),qd=g,jd=_,fr=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:ct,t=Rt(Z,!0,Hc,!0,e),r=this.options;if(Hc){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(),Yd=gv(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",Hc?"absolute":"fixed"),pe(we,"zIndex","100000"),pe(we,"pointerEvents","none"),_e.ghost=we,e.appendChild(we),pe(we,"transform-origin",pv/parseInt(we.style.width)*100+"% "+_v/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||(mt=sE(Z),mt.draggable=!1,mt.style["will-change"]="",this._hideClone(),Nn(mt,this.options.chosenClass,!1),_e.clone=mt),r.cloneId=dl(function(){pn("clone",r),!_e.eventCanceled&&(r.options.removeCloneOnHide||ct.insertBefore(mt,Z),r._hideClone(),ln({sortable:r,name:"clone"}))}),!t&&Nn(Z,a.dragClass,!0),t?(Tl=!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=dl(r._dragStarted.bind(r,t,e)),Ve(document,"selectstart",r),ss=!0,ms&&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=Fc===h,_=d.sort,p=zt||m,w,C=this,T=!1;if(Bh)return;function k(at,Et){pn(at,C,Wr({evt:e,isOwner:g,axis:w?"vertical":"horizontal",revert:c,dragRect:o,targetRect:a,canSort:_,fromSortable:p,target:r,completed:N,onMove:function(St,jo){return $c(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(Tl=!1,m&&!d.disabled&&(g?_||(c=ft!==ct):zt===this||(this.lastPutMode=Fc.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 ft=ct,I(),this._hideClone(),k("revert"),_e.eventCanceled||(ui?ct.insertBefore(Z,ui):ct.appendChild(Z)),N(!0);var L=xf(t,d.draggable);if(!L||cU(e,w,this)&&!L.animated){if(L===Z)return N(!1);if(L&&t===e.target&&(r=L),r&&(a=Rt(r)),$c(ct,t,Z,o,r,a,e,!!r)!==!1)return I(),t.appendChild(Z),ft=t,D(),N(!0)}else if(L&&sU(e,w,this)){var K=wa(t,0,d,!0);if(K===Z)return N(!1);if(r=K,a=Rt(r),$c(ct,t,Z,o,r,a,e,!1)!==!1)return I(),t.insertBefore(Z,K),ft=t,D(),N(!0)}else if(r.parentNode===t){a=Rt(r);var q=0,M,ce=Z.parentNode!==t,ae=!nU(Z.animated&&Z.toRect||o,r.animated&&r.toRect||a,w),X=w?"top":"left",ee=mv(r,"top","top")||mv(Z,"top","top"),ue=ee?ee.scrollTop:void 0;ji!==r&&(M=a[X],vs=!1,Vc=!ae&&d.invertSwap||ce),q=lU(e,r,a,w,ae?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,Vc,ji===r);var Be;if(q!==0){var Ct=nr(Z);do Ct-=q,Be=ft.children[Ct];while(Be&&(pe(Be,"display")==="none"||Be===we))}if(q===0||Be===r)return N(!1);ji=r,_s=q;var rn=r.nextElementSibling,qt=!1;qt=q===1;var Mt=$c(ct,t,Z,o,r,a,e,qt);if(Mt!==!1)return(Mt===1||Mt===-1)&&(qt=Mt===1),Bh=!0,setTimeout(aU,30),I(),qt&&!rn?t.appendChild(Z):r.parentNode.insertBefore(Z,qt?rn:r),ee&&aE(ee,0,ue-ee.scrollTop),ft=Z.parentNode,M!==void 0&&!Vc&&(ul=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}),ft=Z&&Z.parentNode,Rn=nr(Z),Do=nr(Z,r.draggable),_e.eventCanceled){this._nulling();return}oa=!1,Vc=!1,vs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fh(this.cloneId),Fh(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ms&&pe(document.body,"user-select",""),pe(Z,"transform",""),e&&(ss&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),we&&we.parentNode&&we.parentNode.removeChild(we),(ct===ft||zt&&zt.lastPutMode!=="clone")&&mt&&mt.parentNode&&mt.parentNode.removeChild(mt),Z&&(this.nativeDraggable&&xe(Z,"dragend",this),Jd(Z),Z.style["will-change"]="",ss&&!oa&&Nn(Z,zt?zt.options.ghostClass:this.options.ghostClass,!1),Nn(Z,this.options.chosenClass,!1),ln({sortable:this,name:"unchoose",toEl:ft,newIndex:null,newDraggableIndex:null,originalEvent:e}),ct!==ft?(Rn>=0&&(ln({rootEl:ft,name:"add",toEl:ft,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"remove",toEl:ft,originalEvent:e}),ln({rootEl:ft,name:"sort",toEl:ft,fromEl:ct,originalEvent:e}),ln({sortable:this,name:"sort",toEl:ft,originalEvent:e})),zt&&zt.save()):Rn!==da&&Rn>=0&&(ln({sortable:this,name:"update",toEl:ft,originalEvent:e}),ln({sortable:this,name:"sort",toEl:ft,originalEvent:e})),_e.active&&((Rn==null||Rn===-1)&&(Rn=da,Do=ps),ln({sortable:this,name:"end",toEl:ft,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),ct=Z=ft=we=ui=mt=ll=Lo=ai=fr=ss=Rn=Do=da=ps=ji=_s=zt=Fc=_e.dragged=_e.ghost=_e.clone=_e.active=null,Il.forEach(function(e){e.checked=!0}),Il.length=qd=jd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),iU(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)||dU(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=Vs.modifyOption(this,e,t);typeof o<"u"?r[e]=o:r[e]=t,e==="group"&&uE(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(),bl.splice(bl.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Lo){if(pn("hideClone",this),_e.eventCanceled)return;pe(mt,"display","none"),this.options.removeCloneOnHide&&mt.parentNode&&mt.parentNode.removeChild(mt),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(mt,Z):ui?ct.insertBefore(mt,ui):ct.appendChild(mt),this.options.group.revertClone&&this.animate(Z,mt),pe(mt,"display",""),Lo=!1}}};function iU(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function $c(n,e,t,r,o,a,c,d){var h,m=n[xn],g=m.options.onMove,_;return window.CustomEvent&&!po&&!Fs?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&&(_=g.call(m,h,c)),_}function Jd(n){n.draggable=!1}function aU(){Bh=!1}function sU(n,e,t){var r=Rt(wa(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 cU(n,e,t){var r=Rt(xf(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 lU(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,_=r?t.bottom:t.right,p=!1;if(!c){if(d&&ul<m*o){if(!vs&&(_s===1?h>g+m*a/2:h<_-m*a/2)&&(vs=!0),vs)p=!0;else if(_s===1?h<g+ul:h>_-ul)return-_s}else if(h>g+m*(1-o)/2&&h<_-m*(1-o)/2)return uU(e)}return p=p||c,p&&(h<g+m*a/2||h>_-m*a/2)?h>g+m/2?1:-1:0}function uU(n){return nr(Z)<nr(n)?1:-1}function dU(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 hU(n){Il.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&Il.push(r)}}function dl(n){return setTimeout(n,0)}function Fh(n){return clearTimeout(n)}Zl&&Ve(document,"touchmove",function(n){(_e.active||oa)&&n.cancelable&&n.preventDefault()});_e.utils={on:Ve,off:xe,css:pe,find:oE,is:function(e,t){return!!Lr(e,t,e,!1)},extend:jx,throttle:iE,closest:Lr,toggleClass:Nn,clone:sE,index:nr,nextTick:dl,cancelNextTick:Fh,detectDirection:lE,getChild:wa};_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)),Vs.mount(r)})};_e.create=function(n,e){return new _e(n,e)};_e.version=Wx;var wt=[],cs,Vh,Hh=!1,Qd,Xd,Sl,ls;function fU(){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)),yv(),hl(),Yx()},nulling:function(){Sl=Vh=cs=Hh=ls=Qd=Xd=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(Sl=t,r||this.options.forceAutoScrollFallback||Fs||po||ms){Zd(t,this.options,d,r);var h=Fo(d,!0);Hh&&(!ls||a!==Qd||c!==Xd)&&(ls&&yv(),ls=setInterval(function(){var m=Fo(document.elementFromPoint(a,c),!0);m!==h&&(h=m,hl()),Zd(t,o.options,m,r)},10),Qd=a,Xd=c)}else{if(!this.options.bubbleScroll||Fo(d,!0)===$r()){hl();return}Zd(t,this.options,Fo(d,!1),!1)}}},mo(n,{pluginName:"scroll",initializeByDefault:!0})}function hl(){wt.forEach(function(n){clearInterval(n.pid)}),wt=[]}function yv(){clearInterval(ls)}var Zd=iE(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;Vh!==t&&(Vh=t,hl(),cs=e.scroll,g=e.scrollFn,cs===!0&&(cs=Fo(t,!0)));var _=0,p=cs;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[_])for(var Ct=0;Ct<=_;Ct++)wt[Ct]||(wt[Ct]={});(wt[_].vx!=ue||wt[_].vy!=Be||wt[_].el!==w)&&(wt[_].el=w,wt[_].vx=ue,wt[_].vy=Be,clearInterval(wt[_].pid),(ue!=0||Be!=0)&&(m=!0,wt[_].pid=setInterval((function(){r&&this.layer===0&&_e.active._onTouchMove(Sl);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,Sl,wt[this.layer].el)!=="continue"||aE(wt[this.layer].el,qt,rn)}).bind({layer:_}),24))),_++}while(e.bubbleScroll&&p!==h&&(p=Fo(p,!1)));Hh=m}},30),fE=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,_=document.elementFromPoint(g.clientX,g.clientY);h(),m&&!m.el.contains(_)&&(c("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Uf(){}Uf.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=wa(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:fE};mo(Uf,{pluginName:"revertOnSpill"});function Bf(){}Bf.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:fE};mo(Bf,{pluginName:"removeOnSpill"});_e.mount(new fU);_e.mount(Bf,Uf);function mU(){return typeof window<"u"?window.console:global.console}const gU=mU();function pU(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const _U=/-(\w)/g,Cv=pU(n=>n.replace(_U,(e,t)=>t?t.toUpperCase():""));function eh(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Ev(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function vU(n,e){return Object.values(n).indexOf(e)}function yU(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 mE(n,e){this.$nextTick(()=>this.$emit(n.toLowerCase(),e))}function CU(n){return e=>{this.realList!==null&&this["onDrag"+n](e),mE.call(this,n,e)}}function EU(n){return["transition-group","TransitionGroup"].includes(n)}function wU(n){if(!n||n.length!==1)return!1;const[{type:e}]=n;return e?EU(e.name):!1}function TU(n,e){return e?{...e.props,...e.attrs}:n}const $h=["Start","Add","Remove","Update","End"],Kh=["Choose","Unchoose","Sort","Filter","Clone"],bU=["Move",...$h,...Kh].map(n=>"on"+n);let th=null;const IU={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}},SU=l.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...$h.map(n=>n.toLowerCase()),...Kh.map(n=>n.toLowerCase())],props:IU,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const n=this.$slots.default?this.$slots.default():null,e=TU(this.$attrs,this.componentData);return n?(this.transitionMode=wU(n),l.h(this.getTag(),e,n)):l.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&gU.error("list props are mutually exclusive! Please set one.")},mounted(){const n={};$h.forEach(o=>{n["on"+o]=CU.call(this,o)}),Kh.forEach(o=>{n["on"+o]=mE.bind(this,o)});const e=Object.keys(this.$attrs).reduce((o,a)=>(o[Cv(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=Cv(e);bU.indexOf(t)===-1&&this._sortable.option(t,n[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=yU(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(n){const e=vU(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),th=n.item)},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;eh(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(Ev(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){eh(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){eh(n.item),Ev(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(),th=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(th)!==-1||!e.willInsertAfter?o:o+1}}}),AU={class:"d-flex flex-row align-center"},Ff=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(Us,{"dd-id":"col-settings",buttons:!1,title:l.unref(o)("dialogs.columnSettings.title")},{default:l.withCtx(()=>[l.createVNode(Xl,{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(SU),{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",AU,[l.createVNode(l.unref(dP),{class:"cursor-grab mb-2"}),l.createVNode(Qt.VListItemAction,null,{default:l.withCtx(()=>[l.createVNode(bO.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(vl.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"])}}}),kU=["src","height","width"],NU={key:0,class:"text-center text-h6"},RU={key:1,class:"text-center text-h5"},OU={key:0,class:"text-center"},PU={class:"d-flex justify-center align-center mt-4 ga-3"},Vf=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,kU)):l.createCommentVNode("",!0)]),_:1})]),_:1}),t()?(l.openBlock(),l.createElementBlock("div",NU,l.toDisplayString(o.item[t()]),1)):l.createCommentVNode("",!0),r()?(l.openBlock(),l.createElementBlock("div",RU,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",OU,l.toDisplayString(c.title)+": "+l.toDisplayString(o.item[c.key]),1)):l.createCommentVNode("",!0)],64))),128)),l.createElementVNode("div",PU,[o.tags?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(o.tags,c=>(l.openBlock(),l.createBlock(IO.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"]))}}),MU=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(Vf,{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}))}}),gE=Aa(MU,[["__scopeId","data-v-e1a4ccbc"]]),DU={key:0,class:"mb-2 ms-1"},pE=l.defineComponent({__name:"JTextField",props:l.mergeModels({name:{},label:{},type:{default:"text"},readonly:{type:Boolean},density:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=n,r=l.computed(()=>t.readonly?"solo":"solo-filled");return(o,a)=>(l.openBlock(),l.createElementBlock("div",null,[o.name?(l.openBlock(),l.createElementBlock("p",DU,l.toDisplayString(o.name),1)):l.createCommentVNode("",!0),o.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Vo.VTextField),{variant:r.value,color:"secondary","bg-color":"containerBg",rounded:"sm",type:o.type,density:o.density,rules:o.rules,modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=c=>e.value=c),class:"j-field",readonly:o.readonly},null,8,["variant","type","density","rules","modelValue","readonly"])]))}});function _E(n,e){return function(){return n.apply(e,arguments)}}const{toString:LU}=Object.prototype,{getPrototypeOf:Hf}=Object,eu=(n=>e=>{const t=LU.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=n=>(n=n.toLowerCase(),e=>eu(e)===n),tu=n=>e=>typeof e===n,{isArray:Na}=Array,Ps=tu("undefined");function xU(n){return n!==null&&!Ps(n)&&n.constructor!==null&&!Ps(n.constructor)&&Fn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const vE=Ir("ArrayBuffer");function UU(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&vE(n.buffer),e}const BU=tu("string"),Fn=tu("function"),yE=tu("number"),nu=n=>n!==null&&typeof n=="object",FU=n=>n===!0||n===!1,fl=n=>{if(eu(n)!=="object")return!1;const e=Hf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},VU=Ir("Date"),HU=Ir("File"),$U=Ir("Blob"),KU=Ir("FileList"),WU=n=>nu(n)&&Fn(n.pipe),zU=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Fn(n.append)&&((e=eu(n))==="formdata"||e==="object"&&Fn(n.toString)&&n.toString()==="[object FormData]"))},GU=Ir("URLSearchParams"),[qU,jU,YU,JU]=["ReadableStream","Request","Response","Headers"].map(Ir),QU=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),Na(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 CE(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,EE=n=>!Ps(n)&&n!==mi;function Wh(){const{caseless:n}=EE(this)&&this||{},e={},t=(r,o)=>{const a=n&&CE(e,o)||o;fl(e[a])&&fl(r)?e[a]=Wh(e[a],r):fl(r)?e[a]=Wh({},r):Na(r)?e[a]=r.slice():e[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Hs(arguments[r],t);return e}const XU=(n,e,t,{allOwnKeys:r}={})=>(Hs(e,(o,a)=>{t&&Fn(o)?n[a]=_E(o,t):n[a]=o},{allOwnKeys:r}),n),ZU=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),eB=(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)},tB=(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&&Hf(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},nB=(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},rB=n=>{if(!n)return null;if(Na(n))return n;let e=n.length;if(!yE(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},oB=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Hf(Uint8Array)),iB=(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])}},aB=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},sB=Ir("HTMLFormElement"),cB=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),wv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),lB=Ir("RegExp"),wE=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Hs(t,(o,a)=>{let c;(c=e(o,a,n))!==!1&&(r[a]=c||o)}),Object.defineProperties(n,r)},uB=n=>{wE(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+"'")})}})},dB=(n,e)=>{const t={},r=o=>{o.forEach(a=>{t[a]=!0})};return Na(n)?r(n):r(String(n).split(e)),t},hB=()=>{},fB=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,nh="abcdefghijklmnopqrstuvwxyz",Tv="0123456789",TE={DIGIT:Tv,ALPHA:nh,ALPHA_DIGIT:nh+nh.toUpperCase()+Tv},mB=(n=16,e=TE.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function gB(n){return!!(n&&Fn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const pB=n=>{const e=new Array(10),t=(r,o)=>{if(nu(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const a=Na(r)?[]:{};return Hs(r,(c,d)=>{const h=t(c,o+1);!Ps(h)&&(a[d]=h)}),e[o]=void 0,a}}return r};return t(n,0)},_B=Ir("AsyncFunction"),vB=n=>n&&(nu(n)||Fn(n))&&Fn(n.then)&&Fn(n.catch),bE=((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)),yB=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||bE,B={isArray:Na,isArrayBuffer:vE,isBuffer:xU,isFormData:zU,isArrayBufferView:UU,isString:BU,isNumber:yE,isBoolean:FU,isObject:nu,isPlainObject:fl,isReadableStream:qU,isRequest:jU,isResponse:YU,isHeaders:JU,isUndefined:Ps,isDate:VU,isFile:HU,isBlob:$U,isRegExp:lB,isFunction:Fn,isStream:WU,isURLSearchParams:GU,isTypedArray:oB,isFileList:KU,forEach:Hs,merge:Wh,extend:XU,trim:QU,stripBOM:ZU,inherits:eB,toFlatObject:tB,kindOf:eu,kindOfTest:Ir,endsWith:nB,toArray:rB,forEachEntry:iB,matchAll:aB,isHTMLForm:sB,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:wE,freezeMethods:uB,toObjectSet:dB,toCamelCase:cB,noop:hB,toFiniteNumber:fB,findKey:CE,global:mi,isContextDefined:EE,ALPHABET:TE,generateString:mB,isSpecCompliantForm:gB,toJSONObject:pB,isAsyncFn:_B,isThenable:vB,setImmediate:bE,asap:yB};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 IE=Te.prototype,SE={};["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=>{SE[n]={value:n}});Object.defineProperties(Te,SE);Object.defineProperty(IE,"isAxiosError",{value:!0});Te.from=(n,e,t,r,o,a)=>{const c=Object.create(IE);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 CB=null;function zh(n){return B.isPlainObject(n)||B.isArray(n)}function AE(n){return B.endsWith(n,"[]")?n.slice(0,-2):n}function bv(n,e,t){return n?n.concat(e).map(function(o,a){return o=AE(o),!t&&a?"["+o+"]":o}).join(t?".":""):e}function EB(n){return B.isArray(n)&&!n.some(zh)}const wB=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function ru(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)&&EB(C)||(B.isFileList(C)||B.endsWith(T,"[]"))&&(I=B.toArray(C)))return T=AE(T),I.forEach(function(D,L){!(B.isUndefined(D)||D===null)&&e.append(c===!0?bv([T],L,a):c===null?T:T+"[]",m(D))}),!1}return zh(C)?!0:(e.append(bv(k,T,a),m(C)),!1)}const _=[],p=Object.assign(wB,{defaultVisitor:g,convertValue:m,isVisitable:zh});function w(C,T){if(!B.isUndefined(C)){if(_.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));_.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])}),_.pop()}}if(!B.isObject(n))throw new TypeError("data must be an object");return w(n),e}function Iv(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function $f(n,e){this._pairs=[],n&&ru(n,this,e)}const kE=$f.prototype;kE.append=function(e,t){this._pairs.push([e,t])};kE.toString=function(e){const t=e?function(r){return e.call(this,r,Iv)}:Iv;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function TB(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function NE(n,e,t){if(!e)return n;const r=t&&t.encode||TB;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 $f(e,t).toString(r),a){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class Sv{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 RE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bB=typeof URLSearchParams<"u"?URLSearchParams:$f,IB=typeof FormData<"u"?FormData:null,SB=typeof Blob<"u"?Blob:null,AB={isBrowser:!0,classes:{URLSearchParams:bB,FormData:IB,Blob:SB},protocols:["http","https","file","blob","url","data"]},Kf=typeof window<"u"&&typeof document<"u",Gh=typeof navigator=="object"&&navigator||void 0,kB=Kf&&(!Gh||["ReactNative","NativeScript","NS"].indexOf(Gh.product)<0),NB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RB=Kf&&window.location.href||"http://localhost",OB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kf,hasStandardBrowserEnv:kB,hasStandardBrowserWebWorkerEnv:NB,navigator:Gh,origin:RB},Symbol.toStringTag,{value:"Module"})),nn={...OB,...AB};function PB(n,e){return ru(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 MB(n){return B.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function DB(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 OE(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]=DB(o[c])),!d)}if(B.isFormData(n)&&B.isFunction(n.entries)){const t={};return B.forEachEntry(n,(r,o)=>{e(MB(r),o,t,0)}),t}return null}function LB(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(0,JSON.stringify)(n)}const $s={transitional:RE,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(OE(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 PB(e,this.formSerializer).toString();if((d=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ru(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),LB(e)):e}],transformResponse:[function(e){const t=this.transitional||$s.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=>{$s.headers[n]={}});const xB=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"]),UB=n=>{const e={};let t,r,o;return n&&n.split(`
42
+ `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),r=c.substring(o+1).trim(),!(!t||e[t]&&xB[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Av=Symbol("internals");function rs(n){return n&&String(n).trim().toLowerCase()}function ml(n){return n===!1||n==null?n:B.isArray(n)?n.map(ml):String(n)}function BB(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 FB=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function rh(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 VB(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function HB(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=rs(h);if(!g)throw new Error("header name must be a non-empty string");const _=B.findKey(o,g);(!_||o[_]===void 0||m===!0||m===void 0&&o[_]!==!1)&&(o[_||h]=ml(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())&&!FB(e))c(UB(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=rs(e),e){const r=B.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return BB(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=rs(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||rh(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function a(c){if(c=rs(c),c){const d=B.findKey(r,c);d&&(!t||rh(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||rh(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]=ml(o),delete t[a];return}const d=e?VB(a):String(a).trim();d!==a&&delete t[a],t[d]=ml(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[Av]=this[Av]={accessors:{}}).accessors,o=this.prototype;function a(c){const d=rs(c);r[d]||(HB(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 oh(n,e){const t=this||$s,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 PE(n){return!!(n&&n.__CANCEL__)}function Ra(n,e,t){Te.call(this,n??"canceled",Te.ERR_CANCELED,e,t),this.name="CanceledError"}B.inherits(Ra,Te,{__CANCEL__:!0});function ME(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 $B(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function KB(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 _=a,p=0;for(;_!==o;)p+=t[_++],_=_%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 WB(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(),_=g-t;_>=r?c(m,g):(o=m,a||(a=setTimeout(()=>{a=null,c(o)},r-_)))},()=>o&&c(o)]}const Al=(n,e,t=3)=>{let r=0;const o=KB(50,250);return WB(a=>{const c=a.loaded,d=a.lengthComputable?a.total:void 0,h=c-r,m=o(h),g=c<=d;r=c;const _={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(_)},t)},kv=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Nv=n=>(...e)=>B.asap(()=>n(...e)),zB=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,GB=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 qB(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function jB(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function DE(n,e){return n&&!qB(e)?jB(n,e):e}const Rv=n=>n instanceof yn?{...n}:n;function Ei(n,e){e=e||{};const t={};function r(m,g,_,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,_,p){if(B.isUndefined(g)){if(!B.isUndefined(m))return r(void 0,m,_,p)}else return r(m,g,_,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,_){if(_ in e)return r(m,g);if(_ 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,_)=>o(Rv(m),Rv(g),_,!0)};return B.forEach(Object.keys(Object.assign({},n,e)),function(g){const _=h[g]||o,p=_(n[g],e[g],g);B.isUndefined(p)&&_!==d||(t[g]=p)}),t}const LE=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=NE(DE(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(_=>_.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...g].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&zB(e.url))){const m=o&&a&&GB.read(a);m&&c.set(o,m)}return e},YB=typeof XMLHttpRequest<"u",JB=YB&&function(n){return new Promise(function(t,r){const o=LE(n);let a=o.data;const c=yn.from(o.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=o,g,_,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};ME(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||RE;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]=Al(m,!0),k.addEventListener("progress",p)),h&&k.upload&&([_,w]=Al(h),k.upload.addEventListener("progress",_),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(g=D=>{k&&(r(!D||D.type?new Ra(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=$B(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)})},QB=(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 Ra(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}},XB=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},ZB=async function*(n,e){for await(const t of eF(n))yield*XB(t,e)},eF=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()}},Ov=(n,e,t,r)=>{const o=ZB(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 _=g.byteLength;if(t){let p=a+=_;t(p)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),o.return()}},{highWaterMark:2})},ou=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xE=ou&&typeof ReadableStream=="function",tF=ou&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),UE=(n,...e)=>{try{return!!n(...e)}catch{return!1}},nF=xE&&UE(()=>{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}),Pv=64*1024,qh=xE&&UE(()=>B.isReadableStream(new Response("").body)),kl={stream:qh&&(n=>n.body)};ou&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kl[e]&&(kl[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 rF=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 tF(n)).byteLength},oF=async(n,e)=>{const t=B.toFiniteNumber(n.getContentLength());return t??rF(e)},iF=ou&&(async n=>{let{url:e,method:t,data:r,signal:o,cancelToken:a,timeout:c,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:g,withCredentials:_="same-origin",fetchOptions:p}=LE(n);m=m?(m+"").toLowerCase():"text";let w=QB([o,a&&a.toAbortSignal()],c),C;const T=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k;try{if(h&&nF&&t!=="get"&&t!=="head"&&(k=await oF(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]=kv(k,Al(Nv(h)));r=Ov(K.body,Pv,M,ce)}}B.isString(_)||(_=_?"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?_:void 0});let N=await fetch(C);const D=qh&&(m==="stream"||m==="response");if(qh&&(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&&kv(q,Al(Nv(d),!0))||[];N=new Response(Ov(N.body,Pv,M,()=>{ce&&ce(),T&&T()}),K)}m=m||"text";let L=await kl[B.findKey(kl,m)||"text"](N,n);return!D&&T&&T(),await new Promise((K,q)=>{ME(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)}}),jh={http:CB,xhr:JB,fetch:iF};B.forEach(jh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Mv=n=>`- ${n}`,aF=n=>B.isFunction(n)||n===null||n===!1,BE={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,!aF(t)&&(r=jh[(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
+ `+a.map(Mv).join(`
45
+ `):" "+Mv(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:jh};function ih(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ra(null,n)}function Dv(n){return ih(n),n.headers=yn.from(n.headers),n.data=oh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),BE.getAdapter(n.adapter||$s.adapter)(n).then(function(r){return ih(n),r.data=oh.call(n,n.transformResponse,r),r.headers=yn.from(r.headers),r},function(r){return PE(r)||(ih(n),r&&r.response&&(r.response.data=oh.call(n,n.transformResponse,r.response),r.response.headers=yn.from(r.response.headers))),Promise.reject(r)})}const FE="1.7.9",iu={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{iu[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Lv={};iu.transitional=function(e,t,r){function o(a,c){return"[Axios v"+FE+"] 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&&!Lv[c]&&(Lv[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}};iu.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function sF(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 gl={assertOptions:sF,validators:iu},Mr=gl.validators;class _i{constructor(e){this.defaults=e,this.interceptors={request:new Sv,response:new Sv}}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&&gl.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}:gl.assertOptions(o,{encode:Mr.function,serialize:Mr.function},!0)),gl.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,_=0,p;if(!h){const C=[Dv.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,m),p=C.length,g=Promise.resolve(t);_<p;)g=g.then(C[_++],C[_++]);return g}p=d.length;let w=t;for(_=0;_<p;){const C=d[_++],T=d[_++];try{w=C(w)}catch(k){T.call(this,k);break}}try{g=Dv.call(this,w)}catch(C){return Promise.reject(C)}for(_=0,p=m.length;_<p;)g=g.then(m[_++],m[_++]);return g}getUri(e){e=Ei(this.defaults,e);const t=DE(e.baseURL,e.url);return NE(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 Wf{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 Ra(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 Wf(function(o){e=o}),cancel:e}}}function cF(n){return function(t){return n.apply(null,t)}}function lF(n){return B.isObject(n)&&n.isAxiosError===!0}const Yh={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(Yh).forEach(([n,e])=>{Yh[e]=n});function VE(n){const e=new _i(n),t=_E(_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 VE(Ei(n,o))},t}const yt=VE($s);yt.Axios=_i;yt.CanceledError=Ra;yt.CancelToken=Wf;yt.isCancel=PE;yt.VERSION=FE;yt.toFormData=ru;yt.AxiosError=Te;yt.Cancel=yt.CanceledError;yt.all=function(e){return Promise.all(e)};yt.spread=cF;yt.isAxiosError=lF;yt.mergeConfig=Ei;yt.AxiosHeaders=yn;yt.formToJSON=n=>OE(B.isHTMLForm(n)?new FormData(n):n);yt.getAdapter=BE.getAdapter;yt.HttpStatusCode=Yh;yt.default=yt;async function uF({url:n,method:e,header:t={},body:r,bearerToken:o}){const a=o?{Authorization:`Bearer ${o}`}:{};try{return(await yt({url:n,method:e,headers:{...t,...a},data:r??{}})).data}catch(c){throw console.error(`Request failed for ${e} ${n}:`,c),c}}var Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dF(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var us={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 gF=us.exports,Uv;function pF(){return Uv||(Uv=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__",_=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,xa=St>>>1,Ua=[["ary",M],["bind",k],["bindKey",I],["curry",D],["curryRight",L],["flip",ae],["partial",K],["partialRight",q],["rearg",ce]],Sr="[object Arguments]",Yo="[object Array]",Ba="[object AsyncFunction]",Ar="[object Boolean]",qr="[object Date]",Fa="[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]",sr="[object Float32Array]",Co="[object Float64Array]",kr="[object Int8Array]",cr="[object Int16Array]",Va="[object Int32Array]",ki="[object Uint8Array]",wu="[object Uint8ClampedArray]",Tu="[object Uint16Array]",bu="[object Uint32Array]",qT=/\b__p \+= '';/g,jT=/\b(__p \+=) '' \+/g,YT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lm=/&(?:amp|lt|gt|quot|#39);/g,xm=/[&<>"']/g,JT=RegExp(Lm.source),QT=RegExp(xm.source),XT=/<%-([\s\S]+?)%>/g,ZT=/<%([\s\S]+?)%>/g,Um=/<%=([\s\S]+?)%>/g,eb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tb=/^\w*$/,nb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Iu=/[\\^$.*+?()[\]{}|]/g,rb=RegExp(Iu.source),Su=/^\s+/,ob=/\s/,ib=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ab=/\{\n\/\* \[wrapped with (.+)\] \*/,sb=/,? & /,cb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lb=/[()=,{}\[\]\/\s]/,ub=/\\(\\)?/g,db=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bm=/\w*$/,hb=/^[-+]0x[0-9a-f]+$/i,fb=/^0b[01]+$/i,mb=/^\[object .+?Constructor\]$/,gb=/^0o[0-7]+$/i,pb=/^(?:0|[1-9]\d*)$/,_b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qs=/($^)/,vb=/['\n\r\u2028\u2029\\]/g,js="\\ud800-\\udfff",yb="\\u0300-\\u036f",Cb="\\ufe20-\\ufe2f",Eb="\\u20d0-\\u20ff",Fm=yb+Cb+Eb,Vm="\\u2700-\\u27bf",Hm="a-z\\xdf-\\xf6\\xf8-\\xff",wb="\\xac\\xb1\\xd7\\xf7",Tb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bb="\\u2000-\\u206f",Ib=" \\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",$m="A-Z\\xc0-\\xd6\\xd8-\\xde",Km="\\ufe0e\\ufe0f",Wm=wb+Tb+bb+Ib,Au="['’]",Sb="["+js+"]",zm="["+Wm+"]",Ys="["+Fm+"]",Gm="\\d+",Ab="["+Vm+"]",qm="["+Hm+"]",jm="[^"+js+Wm+Gm+Vm+Hm+$m+"]",ku="\\ud83c[\\udffb-\\udfff]",kb="(?:"+Ys+"|"+ku+")",Ym="[^"+js+"]",Nu="(?:\\ud83c[\\udde6-\\uddff]){2}",Ru="[\\ud800-\\udbff][\\udc00-\\udfff]",Ni="["+$m+"]",Jm="\\u200d",Qm="(?:"+qm+"|"+jm+")",Nb="(?:"+Ni+"|"+jm+")",Xm="(?:"+Au+"(?:d|ll|m|re|s|t|ve))?",Zm="(?:"+Au+"(?:D|LL|M|RE|S|T|VE))?",eg=kb+"?",tg="["+Km+"]?",Rb="(?:"+Jm+"(?:"+[Ym,Nu,Ru].join("|")+")"+tg+eg+")*",Ob="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ng=tg+eg+Rb,Mb="(?:"+[Ab,Nu,Ru].join("|")+")"+ng,Db="(?:"+[Ym+Ys+"?",Ys,Nu,Ru,Sb].join("|")+")",Lb=RegExp(Au,"g"),xb=RegExp(Ys,"g"),Ou=RegExp(ku+"(?="+ku+")|"+Db+ng,"g"),Ub=RegExp([Ni+"?"+qm+"+"+Xm+"(?="+[zm,Ni,"$"].join("|")+")",Nb+"+"+Zm+"(?="+[zm,Ni+Qm,"$"].join("|")+")",Ni+"?"+Qm+"+"+Xm,Ni+"+"+Zm,Pb,Ob,Gm,Mb].join("|"),"g"),Bb=RegExp("["+Jm+js+Fm+Km+"]"),Fb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vb=["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"],Hb=-1,rt={};rt[sr]=rt[Co]=rt[kr]=rt[cr]=rt[Va]=rt[ki]=rt[wu]=rt[Tu]=rt[bu]=!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[sr]=et[Co]=et[kr]=et[cr]=et[Va]=et[Ft]=et[En]=et[wn]=et[G]=et[oe]=et[je]=et[Ze]=et[ki]=et[wu]=et[Tu]=et[bu]=!0,et[_o]=et[vo]=et[V]=!1;var $b={À:"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"},Kb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gb=parseFloat,qb=parseInt,rg=typeof Kc=="object"&&Kc&&Kc.Object===Object&&Kc,jb=typeof self=="object"&&self&&self.Object===Object&&self,Vt=rg||jb||Function("return this")(),Pu=e&&!e.nodeType&&e,Qo=Pu&&!0&&n&&!n.nodeType&&n,og=Qo&&Qo.exports===Pu,Mu=og&&rg.process,Vn=function(){try{var O=Qo&&Qo.require&&Qo.require("util").types;return O||Mu&&Mu.binding&&Mu.binding("util")}catch{}}(),ig=Vn&&Vn.isArrayBuffer,ag=Vn&&Vn.isDate,sg=Vn&&Vn.isMap,cg=Vn&&Vn.isRegExp,lg=Vn&&Vn.isSet,ug=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 Yb(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 Jb(O,H){for(var U=O==null?0:O.length;U--&&H(O[U],U,O)!==!1;);return O}function dg(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 Du(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 Lu(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 Qb(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 xu(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 Xb=Uu("length");function Zb(O){return O.split("")}function eI(O){return O.match(cb)||[]}function hg(O,H,U){var re;return U(O,function(Ce,Fe,At){if(H(Ce,Fe,At))return re=Fe,!1}),re}function Qs(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?hI(O,H,U):Qs(O,fg,U)}function tI(O,H,U,re){for(var Ce=U-1,Fe=O.length;++Ce<Fe;)if(re(O[Ce],H))return Ce;return-1}function fg(O){return O!==O}function mg(O,H){var U=O==null?0:O.length;return U?Fu(O,H)/U:on}function Uu(O){return function(H){return H==null?t:H[O]}}function Bu(O){return function(H){return O==null?t:O[H]}}function gg(O,H,U,re,Ce){return Ce(O,function(Fe,At,Ye){U=re?(re=!1,Fe):H(U,Fe,At,Ye)}),U}function nI(O,H){var U=O.length;for(O.sort(H);U--;)O[U]=O[U].value;return O}function Fu(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 Vu(O,H){for(var U=-1,re=Array(O);++U<O;)re[U]=H(U);return re}function rI(O,H){return st(H,function(U){return[U,O[U]]})}function pg(O){return O&&O.slice(0,Cg(O)+1).replace(Su,"")}function bn(O){return function(H){return O(H)}}function Hu(O,H){return st(H,function(U){return O[U]})}function Ha(O,H){return O.has(H)}function _g(O,H){for(var U=-1,re=O.length;++U<re&&Ri(H,O[U],0)>-1;);return U}function vg(O,H){for(var U=O.length;U--&&Ri(H,O[U],0)>-1;);return U}function oI(O,H){for(var U=O.length,re=0;U--;)O[U]===H&&++re;return re}var iI=Bu($b),aI=Bu(Kb);function sI(O){return"\\"+zb[O]}function cI(O,H){return O==null?t:O[H]}function Oi(O){return Bb.test(O)}function lI(O){return Fb.test(O)}function uI(O){for(var H,U=[];!(H=O.next()).done;)U.push(H.value);return U}function $u(O){var H=-1,U=Array(O.size);return O.forEach(function(re,Ce){U[++H]=[Ce,re]}),U}function yg(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 Xs(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=re}),U}function dI(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=[re,re]}),U}function hI(O,H,U){for(var re=U-1,Ce=O.length;++re<Ce;)if(O[re]===H)return re;return-1}function fI(O,H,U){for(var re=U+1;re--;)if(O[re]===H)return re;return re}function Pi(O){return Oi(O)?gI(O):Xb(O)}function lr(O){return Oi(O)?pI(O):Zb(O)}function Cg(O){for(var H=O.length;H--&&ob.test(O.charAt(H)););return H}var mI=Bu(Wb);function gI(O){for(var H=Ou.lastIndex=0;Ou.test(O);)++H;return H}function pI(O){return O.match(Ou)||[]}function _I(O){return O.match(Ub)||[]}var vI=function O(H){H=H==null?Vt:Mi.defaults(Vt.Object(),H,Mi.pick(Vt,Vb));var U=H.Array,re=H.Date,Ce=H.Error,Fe=H.Function,At=H.Math,Ye=H.Object,Ku=H.RegExp,yI=H.String,$n=H.TypeError,Zs=U.prototype,CI=Fe.prototype,Di=Ye.prototype,ec=H["__core-js_shared__"],tc=CI.toString,$e=Di.hasOwnProperty,EI=0,Eg=function(){var i=/[^.]+$/.exec(ec&&ec.keys&&ec.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),nc=Di.toString,wI=tc.call(Ye),TI=Vt._,bI=Ku("^"+tc.call($e).replace(Iu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rc=og?H.Buffer:t,bo=H.Symbol,oc=H.Uint8Array,wg=rc?rc.allocUnsafe:t,ic=yg(Ye.getPrototypeOf,Ye),Tg=Ye.create,bg=Di.propertyIsEnumerable,ac=Zs.splice,Ig=bo?bo.isConcatSpreadable:t,$a=bo?bo.iterator:t,Xo=bo?bo.toStringTag:t,sc=function(){try{var i=ri(Ye,"defineProperty");return i({},"",{}),i}catch{}}(),II=H.clearTimeout!==Vt.clearTimeout&&H.clearTimeout,SI=re&&re.now!==Vt.Date.now&&re.now,AI=H.setTimeout!==Vt.setTimeout&&H.setTimeout,cc=At.ceil,lc=At.floor,Wu=Ye.getOwnPropertySymbols,kI=rc?rc.isBuffer:t,Sg=H.isFinite,NI=Zs.join,RI=yg(Ye.keys,Ye),kt=At.max,jt=At.min,OI=re.now,PI=H.parseInt,Ag=At.random,MI=Zs.reverse,zu=ri(H,"DataView"),Ka=ri(H,"Map"),Gu=ri(H,"Promise"),Li=ri(H,"Set"),Wa=ri(H,"WeakMap"),za=ri(Ye,"create"),uc=Wa&&new Wa,xi={},DI=oi(zu),LI=oi(Ka),xI=oi(Gu),UI=oi(Li),BI=oi(Wa),dc=bo?bo.prototype:t,Ga=dc?dc.valueOf:t,kg=dc?dc.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 Np(i)}return new Kn(i)}var Ui=function(){function i(){}return function(s){if(!ut(s))return{};if(Tg)return Tg(s);i.prototype=s;var u=new i;return i.prototype=t,u}}();function hc(){}function Kn(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=t}y.templateSettings={escape:XT,evaluate:ZT,interpolate:Um,variable:"",imports:{_:y}},y.prototype=hc.prototype,y.prototype.constructor=y,Kn.prototype=Ui(hc.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 FI(){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 VI(){if(this.__filtered__){var i=new Oe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function HI(){var i=this.__wrapped__.value(),s=this.__dir__,u=Ee(i),f=s<0,v=u?i.length:0,E=ZS(0,v,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&&v==P&&se==P)return Xg(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(hc.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 $I(){this.__data__=za?za(null):{},this.size=0}function KI(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function WI(i){var s=this.__data__;if(za){var u=s[i];return u===h?t:u}return $e.call(s,i)?s[i]:t}function zI(i){var s=this.__data__;return za?s[i]!==t:$e.call(s,i)}function GI(i,s){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=za&&s===t?h:s,this}Zo.prototype.clear=$I,Zo.prototype.delete=KI,Zo.prototype.get=WI,Zo.prototype.has=zI,Zo.prototype.set=GI;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 qI(){this.__data__=[],this.size=0}function jI(i){var s=this.__data__,u=fc(s,i);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():ac.call(s,u,1),--this.size,!0}function YI(i){var s=this.__data__,u=fc(s,i);return u<0?t:s[u][1]}function JI(i){return fc(this.__data__,i)>-1}function QI(i,s){var u=this.__data__,f=fc(u,i);return f<0?(++this.size,u.push([i,s])):u[f][1]=s,this}jr.prototype.clear=qI,jr.prototype.delete=jI,jr.prototype.get=YI,jr.prototype.has=JI,jr.prototype.set=QI;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 XI(){this.size=0,this.__data__={hash:new Zo,map:new(Ka||jr),string:new Zo}}function ZI(i){var s=Ic(this,i).delete(i);return this.size-=s?1:0,s}function eS(i){return Ic(this,i).get(i)}function tS(i){return Ic(this,i).has(i)}function nS(i,s){var u=Ic(this,i),f=u.size;return u.set(i,s),this.size+=u.size==f?0:1,this}Yr.prototype.clear=XI,Yr.prototype.delete=ZI,Yr.prototype.get=eS,Yr.prototype.has=tS,Yr.prototype.set=nS;function ei(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new Yr;++s<u;)this.add(i[s])}function rS(i){return this.__data__.set(i,h),this}function oS(i){return this.__data__.has(i)}ei.prototype.add=ei.prototype.push=rS,ei.prototype.has=oS;function ur(i){var s=this.__data__=new jr(i);this.size=s.size}function iS(){this.__data__=new jr,this.size=0}function aS(i){var s=this.__data__,u=s.delete(i);return this.size=s.size,u}function sS(i){return this.__data__.get(i)}function cS(i){return this.__data__.has(i)}function lS(i,s){var u=this.__data__;if(u instanceof jr){var f=u.__data__;if(!Ka||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}ur.prototype.clear=iS,ur.prototype.delete=aS,ur.prototype.get=sS,ur.prototype.has=cS,ur.prototype.set=lS;function Ng(i,s){var u=Ee(i),f=!u&&ii(i),v=!u&&!f&&No(i),E=!u&&!f&&!v&&Hi(i),b=u||f||v||E,S=b?Vu(i.length,yI):[],P=S.length;for(var W in i)(s||$e.call(i,W))&&!(b&&(W=="length"||v&&(W=="offset"||W=="parent")||E&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Zr(W,P)))&&S.push(W);return S}function Rg(i){var s=i.length;return s?i[rd(0,s-1)]:t}function uS(i,s){return Sc(hn(i),ti(s,0,i.length))}function dS(i){return Sc(hn(i))}function qu(i,s,u){(u!==t&&!dr(i[s],u)||u===t&&!(s in i))&&Jr(i,s,u)}function qa(i,s,u){var f=i[s];(!($e.call(i,s)&&dr(f,u))||u===t&&!(s in i))&&Jr(i,s,u)}function fc(i,s){for(var u=i.length;u--;)if(dr(i[u][0],s))return u;return-1}function hS(i,s,u,f){return Io(i,function(v,E,b){s(f,v,u(v),b)}),f}function Og(i,s){return i&&Rr(s,Dt(s),i)}function fS(i,s){return i&&Rr(s,mn(s),i)}function Jr(i,s,u){s=="__proto__"&&sc?sc(i,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[s]=u}function ju(i,s){for(var u=-1,f=s.length,v=U(f),E=i==null;++u<f;)v[u]=E?t:kd(i,s[u]);return v}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,v,E){var b,S=s&_,P=s&p,W=s&w;if(u&&(b=v?u(i,f,v,E):u(i)),b!==t)return b;if(!ut(i))return i;var z=Ee(i);if(z){if(b=tA(i),!S)return hn(i,b)}else{var j=Yt(i),te=j==vo||j==yo;if(No(i))return tp(i,S);if(j==wn||j==Sr||te&&!v){if(b=P||te?{}:Cp(i),!S)return P?WS(i,fS(b,i)):KS(i,Og(b,i))}else{if(!et[j])return v?i:{};b=nA(i,j,S)}}E||(E=new ur);var se=E.get(i);if(se)return se;E.set(i,b),Yp(i)?i.forEach(function(fe){b.add(Wn(fe,s,u,fe,i,E))}):qp(i)&&i.forEach(function(fe,Re){b.set(Re,Wn(fe,s,u,Re,i,E))});var he=W?P?md:fd:P?mn:Dt,Ie=z?t:he(i);return Hn(Ie||i,function(fe,Re){Ie&&(Re=fe,fe=i[Re]),qa(b,Re,Wn(fe,s,u,Re,i,E))}),b}function mS(i){var s=Dt(i);return function(u){return Pg(u,i,s)}}function Pg(i,s,u){var f=u.length;if(i==null)return!f;for(i=Ye(i);f--;){var v=u[f],E=s[v],b=i[v];if(b===t&&!(v in i)||!E(b))return!1}return!0}function Mg(i,s,u){if(typeof i!="function")throw new $n(c);return es(function(){i.apply(t,u)},s)}function ja(i,s,u,f){var v=-1,E=Js,b=!0,S=i.length,P=[],W=s.length;if(!S)return P;u&&(s=st(s,bn(u))),f?(E=Du,b=!1):s.length>=o&&(E=Ha,b=!1,s=new ei(s));e:for(;++v<S;){var z=i[v],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=ap(Nr),Dg=ap(Ju,!0);function gS(i,s){var u=!0;return Io(i,function(f,v,E){return u=!!s(f,v,E),u}),u}function mc(i,s,u){for(var f=-1,v=i.length;++f<v;){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 pS(i,s,u,f){var v=i.length;for(u=be(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:be(f),f<0&&(f+=v),f=u>f?0:Qp(f);u<f;)i[u++]=s;return i}function Lg(i,s){var u=[];return Io(i,function(f,v,E){s(f,v,E)&&u.push(f)}),u}function Ht(i,s,u,f,v){var E=-1,b=i.length;for(u||(u=oA),v||(v=[]);++E<b;){var S=i[E];s>0&&u(S)?s>1?Ht(S,s-1,u,f,v):wo(v,S):f||(v[v.length]=S)}return v}var Yu=sp(),xg=sp(!0);function Nr(i,s){return i&&Yu(i,s,Dt)}function Ju(i,s){return i&&xg(i,s,Dt)}function gc(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 Ug(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)?XS(i):dA(i)}function Qu(i,s){return i>s}function _S(i,s){return i!=null&&$e.call(i,s)}function vS(i,s){return i!=null&&s in Ye(i)}function yS(i,s,u){return i>=jt(s,u)&&i<kt(s,u)}function Xu(i,s,u){for(var f=u?Du:Js,v=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||v>=120&&z.length>=120)?new ei(b&&z):t}z=i[0];var j=-1,te=S[0];e:for(;++j<v&&W.length<P;){var se=z[j],he=s?s(se):se;if(se=u||se!==0?se:0,!(te?Ha(te,he):f(W,he,u))){for(b=E;--b;){var Ie=S[b];if(!(Ie?Ha(Ie,he):f(i[b],he,u)))continue e}te&&te.push(he),W.push(se)}}return W}function CS(i,s,u,f){return Nr(i,function(v,E,b){s(f,u(v),E,b)}),f}function Ya(i,s,u){s=Ao(s,i),i=bp(i,s);var f=i==null?i:i[Or(Gn(s))];return f==null?t:Tn(f,i,u)}function Bg(i){return ht(i)&&an(i)==Sr}function ES(i){return ht(i)&&an(i)==Ne}function wS(i){return ht(i)&&an(i)==qr}function Ja(i,s,u,f,v){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:TS(i,s,u,f,Ja,v)}function TS(i,s,u,f,v,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 ur),b||Hi(i)?_p(i,s,u,f,v,E):JS(i,s,P,u,f,v,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 ur),v(Ie,fe,u,f,E)}}return te?(E||(E=new ur),QS(i,s,u,f,v,E)):!1}function bS(i){return ht(i)&&Yt(i)==Ft}function Zu(i,s,u,f){var v=u.length,E=v,b=!f;if(i==null)return!E;for(i=Ye(i);v--;){var S=u[v];if(b&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++v<E;){S=u[v];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 ur;if(f)var te=f(W,z,P,i,s,j);if(!(te===t?Ja(z,W,C|T,f,j):te))return!1}}return!0}function Fg(i){if(!ut(i)||aA(i))return!1;var s=eo(i)?bI:mb;return s.test(oi(i))}function IS(i){return ht(i)&&an(i)==G}function SS(i){return ht(i)&&Yt(i)==oe}function AS(i){return ht(i)&&Pc(i.length)&&!!rt[an(i)]}function Vg(i){return typeof i=="function"?i:i==null?gn:typeof i=="object"?Ee(i)?Kg(i[0],i[1]):$g(i):c_(i)}function ed(i){if(!Za(i))return RI(i);var s=[];for(var u in Ye(i))$e.call(i,u)&&u!="constructor"&&s.push(u);return s}function kS(i){if(!ut(i))return uA(i);var s=Za(i),u=[];for(var f in i)f=="constructor"&&(s||!$e.call(i,f))||u.push(f);return u}function td(i,s){return i<s}function Hg(i,s){var u=-1,f=fn(i)?U(i.length):[];return Io(i,function(v,E,b){f[++u]=s(v,E,b)}),f}function $g(i){var s=pd(i);return s.length==1&&s[0][2]?wp(s[0][0],s[0][1]):function(u){return u===i||Zu(u,i,s)}}function Kg(i,s){return vd(i)&&Ep(s)?wp(Or(i),s):function(u){var f=kd(u,i);return f===t&&f===s?Nd(u,i):Ja(s,f,C|T)}}function pc(i,s,u,f,v){i!==s&&Yu(s,function(E,b){if(v||(v=new ur),ut(E))NS(i,s,b,u,pc,f,v);else{var S=f?f(Cd(i,b),E,b+"",i,s,v):t;S===t&&(S=E),qu(i,b,S)}},mn)}function NS(i,s,u,f,v,E,b){var S=Cd(i,u),P=Cd(s,u),W=b.get(P);if(W){qu(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=tp(P,!0)):he?(j=!1,z=np(P,!0)):z=[]:ts(P)||ii(P)?(z=S,ii(S)?z=Xp(S):(!ut(S)||eo(S))&&(z=Cp(P))):j=!1}j&&(b.set(P,z),v(z,P,f,E,b),b.delete(P)),qu(i,u,z)}function Wg(i,s){var u=i.length;if(u)return s+=s<0?u:0,Zr(s,u)?i[s]:t}function zg(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 v=Hg(i,function(E,b,S){var P=st(s,function(W){return W(E)});return{criteria:P,index:++f,value:E}});return nI(v,function(E,b){return $S(E,b,u)})}function RS(i,s){return Gg(i,s,function(u,f){return Nd(i,f)})}function Gg(i,s,u){for(var f=-1,v=s.length,E={};++f<v;){var b=s[f],S=ni(i,b);u(S,b)&&Qa(E,Ao(b,i),S)}return E}function OS(i){return function(s){return ni(s,i)}}function nd(i,s,u,f){var v=f?tI: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=v(S,z,P,f))>-1;)S!==i&&ac.call(S,P,1),ac.call(i,P,1);return i}function qg(i,s){for(var u=i?s.length:0,f=u-1;u--;){var v=s[u];if(u==f||v!==E){var E=v;Zr(v)?ac.call(i,v,1):ad(i,v)}}return i}function rd(i,s){return i+lc(Ag()*(s-i+1))}function PS(i,s,u,f){for(var v=-1,E=kt(cc((s-i)/(u||1)),0),b=U(E);E--;)b[f?E:++v]=i,i+=u;return b}function od(i,s){var u="";if(!i||s<1||s>at)return u;do s%2&&(u+=i),s=lc(s/2),s&&(i+=i);while(s);return u}function Se(i,s){return Ed(Tp(i,s,gn),i+"")}function MS(i){return Rg($i(i))}function DS(i,s){var u=$i(i);return Sc(u,ti(s,0,u.length))}function Qa(i,s,u,f){if(!ut(i))return i;s=Ao(s,i);for(var v=-1,E=s.length,b=E-1,S=i;S!=null&&++v<E;){var P=Or(s[v]),W=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return i;if(v!=b){var z=S[P];W=f?f(z,P,S):t,W===t&&(W=ut(z)?z:Zr(s[v+1])?[]:{})}qa(S,P,W),S=S[P]}return i}var jg=uc?function(i,s){return uc.set(i,s),i}:gn,LS=sc?function(i,s){return sc(i,"toString",{configurable:!0,enumerable:!1,value:Od(s),writable:!0})}:gn;function xS(i){return Sc($i(i))}function zn(i,s,u){var f=-1,v=i.length;s<0&&(s=-s>v?0:v+s),u=u>v?v:u,u<0&&(u+=v),v=s>u?0:u-s>>>0,s>>>=0;for(var E=U(v);++f<v;)E[f]=i[f+s];return E}function US(i,s){var u;return Io(i,function(f,v,E){return u=s(f,v,E),!u}),!!u}function _c(i,s,u){var f=0,v=i==null?f:i.length;if(typeof s=="number"&&s===s&&v<=xa){for(;f<v;){var E=f+v>>>1,b=i[E];b!==null&&!Sn(b)&&(u?b<=s:b<s)?f=E+1:v=E}return v}return id(i,s,gn,u)}function id(i,s,u,f){var v=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;v<E;){var z=lc((v+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?v=z+1:E=z}return jt(E,jo)}function Yg(i,s){for(var u=-1,f=i.length,v=0,E=[];++u<f;){var b=i[u],S=s?s(b):b;if(!u||!dr(S,P)){var P=S;E[v++]=b===0?0:b}}return E}function Jg(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 kg?kg.call(i):"";var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function So(i,s,u){var f=-1,v=Js,E=i.length,b=!0,S=[],P=S;if(u)b=!1,v=Du;else if(E>=o){var W=s?null:jS(i);if(W)return Xs(W);b=!1,v=Ha,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 v(P,j,u)||(P!==S&&P.push(j),S.push(z))}return S}function ad(i,s){return s=Ao(s,i),i=bp(i,s),i==null||delete i[Or(Gn(s))]}function Qg(i,s,u,f){return Qa(i,s,u(ni(i,s)),f)}function vc(i,s,u,f){for(var v=i.length,E=f?v:-1;(f?E--:++E<v)&&s(i[E],E,i););return u?zn(i,f?0:E,f?E+1:v):zn(i,f?E+1:0,f?v:E)}function Xg(i,s){var u=i;return u instanceof Oe&&(u=u.value()),Lu(s,function(f,v){return v.func.apply(v.thisArg,wo([f],v.args))},u)}function sd(i,s,u){var f=i.length;if(f<2)return f?So(i[0]):[];for(var v=-1,E=U(f);++v<f;)for(var b=i[v],S=-1;++S<f;)S!=v&&(E[v]=ja(E[v]||b,i[S],s,u));return So(Ht(E,1),s,u)}function Zg(i,s,u){for(var f=-1,v=i.length,E=s.length,b={};++f<v;){var S=f<E?s[f]:t;u(b,i[f],S)}return b}function cd(i){return pt(i)?i:[]}function ld(i){return typeof i=="function"?i:gn}function Ao(i,s){return Ee(i)?i:vd(i,s)?[i]:kp(He(i))}var BS=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 ep=II||function(i){return Vt.clearTimeout(i)};function tp(i,s){if(s)return i.slice();var u=i.length,f=wg?wg(u):new i.constructor(u);return i.copy(f),f}function ud(i){var s=new i.constructor(i.byteLength);return new oc(s).set(new oc(i)),s}function FS(i,s){var u=s?ud(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function VS(i){var s=new i.constructor(i.source,Bm.exec(i));return s.lastIndex=i.lastIndex,s}function HS(i){return Ga?Ye(Ga.call(i)):{}}function np(i,s){var u=s?ud(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function rp(i,s){if(i!==s){var u=i!==t,f=i===null,v=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||!v)return 1;if(!f&&!E&&!W&&i<s||W&&u&&v&&!f&&!E||S&&u&&v||!b&&v||!P)return-1}return 0}function $S(i,s,u){for(var f=-1,v=i.criteria,E=s.criteria,b=v.length,S=u.length;++f<b;){var P=rp(v[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 op(i,s,u,f){for(var v=-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(;++v<b;)(j||v<E)&&(z[u[v]]=i[v]);for(;W--;)z[S++]=i[v++];return z}function ip(i,s,u,f){for(var v=-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;++v<z;)j[v]=i[v];for(var se=v;++P<W;)j[se+P]=s[P];for(;++b<S;)(te||v<E)&&(j[se+u[b]]=i[v++]);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 v=!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]),v?Jr(u,S,P):qa(u,S,P)}return u}function KS(i,s){return Rr(i,_d(i),s)}function WS(i,s){return Rr(i,vp(i),s)}function yc(i,s){return function(u,f){var v=Ee(u)?Yb:hS,E=s?s():{};return v(u,i,de(f,2),E)}}function Bi(i){return Se(function(s,u){var f=-1,v=u.length,E=v>1?u[v-1]:t,b=v>2?u[2]:t;for(E=i.length>3&&typeof E=="function"?(v--,E):t,b&&sn(u[0],u[1],b)&&(E=v<3?t:E,v=1),s=Ye(s);++f<v;){var S=u[f];S&&i(s,S,f,E)}return s})}function ap(i,s){return function(u,f){if(u==null)return u;if(!fn(u))return i(u,f);for(var v=u.length,E=s?v:-1,b=Ye(u);(s?E--:++E<v)&&f(b[E],E,b)!==!1;);return u}}function sp(i){return function(s,u,f){for(var v=-1,E=Ye(s),b=f(s),S=b.length;S--;){var P=b[i?S:++v];if(u(E[P],P,E)===!1)break}return s}}function zS(i,s,u){var f=s&k,v=Xa(i);function E(){var b=this&&this!==Vt&&this instanceof E?v:i;return b.apply(f?u:this,arguments)}return E}function cp(i){return function(s){s=He(s);var u=Oi(s)?lr(s):t,f=u?u[0]:s.charAt(0),v=u?ko(u,1).join(""):s.slice(1);return f[i]()+v}}function Fi(i){return function(s){return Lu(a_(i_(s).replace(Lb,"")),i,"")}}function Xa(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 GS(i,s,u){var f=Xa(i);function v(){for(var E=arguments.length,b=U(E),S=E,P=Vi(v);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 fp(i,s,Cc,v.placeholder,t,b,W,t,t,u-E);var z=this&&this!==Vt&&this instanceof v?f:i;return Tn(z,this,b)}return v}function lp(i){return function(s,u,f){var v=Ye(s);if(!fn(s)){var E=de(u,3);s=Dt(s),u=function(S){return E(v[S],S,v)}}var b=i(s,u,f);return b>-1?v[E?s[b]:b]:t}}function up(i){return Xr(function(s){var u=s.length,f=u,v=Kn.prototype.thru;for(i&&s.reverse();f--;){var E=s[f];if(typeof E!="function")throw new $n(c);if(v&&!b&&bc(E)=="wrapper")var b=new Kn([],!0)}for(f=b?f:u;++f<u;){E=s[f];var S=bc(E),P=S=="wrapper"?gd(E):t;P&&yd(P[0])&&P[1]==(M|D|K|ce)&&!P[4].length&&P[9]==1?b=b[bc(P[0])].apply(b,P[3]):b=E.length==1&&yd(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 Cc(i,s,u,f,v,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:Xa(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=oI(Pe,cn);if(f&&(Pe=op(Pe,f,v,se)),E&&(Pe=ip(Pe,E,b,se)),Re-=kn,se&&Re<W){var _t=To(Pe,cn);return fp(i,s,Cc,fe.placeholder,u,Pe,_t,S,P,W-Re)}var hr=j?u:this,no=te?hr[i]:i;return Re=Pe.length,S?Pe=hA(Pe,S):he&&Re>1&&Pe.reverse(),z&&P<Re&&(Pe.length=P),this&&this!==Vt&&this instanceof fe&&(no=Ie||Xa(no)),no.apply(hr,Pe)}return fe}function dp(i,s){return function(u,f){return CS(u,i,s(f),{})}}function Ec(i,s){return function(u,f){var v;if(u===t&&f===t)return s;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=In(u),f=In(f)):(u=Jg(u),f=Jg(f)),v=i(u,f)}return v}}function dd(i){return Xr(function(s){return s=st(s,bn(de())),Se(function(u){var f=this;return i(s,function(v){return Tn(v,f,u)})})})}function wc(i,s){s=s===t?" ":In(s);var u=s.length;if(u<2)return u?od(s,i):s;var f=od(s,cc(i/Pi(s)));return Oi(s)?ko(lr(f),0,i).join(""):f.slice(0,i)}function qS(i,s,u,f){var v=s&k,E=Xa(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,v?u:this,j)}return b}function hp(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),PS(s,u,f,i)}}function Tc(i){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=qn(s),u=qn(u)),i(s,u)}}function fp(i,s,u,f,v,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,v,se,j,he,te,S,P,W],fe=u.apply(t,Ie);return yd(i)&&Ip(fe,Ie),fe.placeholder=f,Sp(fe,i,s)}function hd(i){var s=At[i];return function(u,f){if(u=qn(u),f=f==null?0:jt(be(f),292),f&&Sg(u)){var v=(He(u)+"e").split("e"),E=s(v[0]+"e"+(+v[1]+f));return v=(He(E)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return s(u)}}var jS=Li&&1/Xs(new Li([,-0]))[1]==Mt?function(i){return new Li(i)}:Dd;function mp(i){return function(s){var u=Yt(s);return u==Ft?$u(s):u==oe?dI(s):rI(s,i(s))}}function Qr(i,s,u,f,v,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=v=t),b=b===t?b:kt(be(b),0),S=S===t?S:be(S),W-=v?v.length:0,s&q){var z=f,j=v;f=v=t}var te=P?t:gd(i),se=[i,s,u,f,v,z,j,E,b,S];if(te&&lA(se,te),i=se[0],s=se[1],u=se[2],f=se[3],v=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=zS(i,s,u);else s==D||s==L?he=GS(i,s,S):(s==K||s==(k|K))&&!v.length?he=qS(i,s,u,f):he=Cc.apply(t,se);var Ie=te?jg:Ip;return Sp(Ie(he,se),i,s)}function gp(i,s,u,f){return i===t||dr(i,Di[u])&&!$e.call(f,u)?s:i}function pp(i,s,u,f,v,E){return ut(i)&&ut(s)&&(E.set(s,i),pc(i,s,t,pp,E),E.delete(s)),i}function YS(i){return ts(i)?t:i}function _p(i,s,u,f,v,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(!xu(s,function(Re,Pe){if(!Ha(se,Pe)&&(he===Re||v(he,Re,u,f,E)))return se.push(Pe)})){te=!1;break}}else if(!(he===Ie||v(he,Ie,u,f,E))){te=!1;break}}return E.delete(i),E.delete(s),te}function JS(i,s,u,f,v,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 oc(i),new oc(s)));case Ar:case qr:case En:return dr(+i,+s);case _o:return i.name==s.name&&i.message==s.message;case G:case je:return i==s+"";case Ft:var S=$u;case oe:var P=f&C;if(S||(S=Xs),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=_p(S(i),S(s),f,v,E,b);return b.delete(i),z;case Ze:if(Ga)return Ga.call(i)==Ga.call(s)}return!1}function QS(i,s,u,f,v,E){var b=u&C,S=fd(i),P=S.length,W=fd(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||v(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 Ed(Tp(i,t,Pp),i+"")}function fd(i){return Ug(i,Dt,_d)}function md(i){return Ug(i,mn,vp)}var gd=uc?function(i){return uc.get(i)}:Dd;function bc(i){for(var s=i.name+"",u=xi[s],f=$e.call(xi,s)?u.length:0;f--;){var v=u[f],E=v.func;if(E==null||E==i)return v.name}return s}function Vi(i){var s=$e.call(y,"placeholder")?y:i;return s.placeholder}function de(){var i=y.iteratee||Pd;return i=i===Pd?Vg:i,arguments.length?i(arguments[0],arguments[1]):i}function Ic(i,s){var u=i.__data__;return iA(s)?u[typeof s=="string"?"string":"hash"]:u.map}function pd(i){for(var s=Dt(i),u=s.length;u--;){var f=s[u],v=i[f];s[u]=[f,v,Ep(v)]}return s}function ri(i,s){var u=cI(i,s);return Fg(u)?u:t}function XS(i){var s=$e.call(i,Xo),u=i[Xo];try{i[Xo]=t;var f=!0}catch{}var v=nc.call(i);return f&&(s?i[Xo]=u:delete i[Xo]),v}var _d=Wu?function(i){return i==null?[]:(i=Ye(i),Eo(Wu(i),function(s){return bg.call(i,s)}))}:Ld,vp=Wu?function(i){for(var s=[];i;)wo(s,_d(i)),i=ic(i);return s}:Ld,Yt=an;(zu&&Yt(new zu(new ArrayBuffer(1)))!=ze||Ka&&Yt(new Ka)!=Ft||Gu&&Yt(Gu.resolve())!=A||Li&&Yt(new Li)!=oe||Wa&&Yt(new Wa)!=V)&&(Yt=function(i){var s=an(i),u=s==wn?i.constructor:t,f=u?oi(u):"";if(f)switch(f){case DI:return ze;case LI:return Ft;case xI:return A;case UI:return oe;case BI:return V}return s});function ZS(i,s,u){for(var f=-1,v=u.length;++f<v;){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 eA(i){var s=i.match(ab);return s?s[1].split(sb):[]}function yp(i,s,u){s=Ao(s,i);for(var f=-1,v=s.length,E=!1;++f<v;){var b=Or(s[f]);if(!(E=i!=null&&u(i,b)))break;i=i[b]}return E||++f!=v?E:(v=i==null?0:i.length,!!v&&Pc(v)&&Zr(b,v)&&(Ee(i)||ii(i)))}function tA(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 Cp(i){return typeof i.constructor=="function"&&!Za(i)?Ui(ic(i)):{}}function nA(i,s,u){var f=i.constructor;switch(s){case Ne:return ud(i);case Ar:case qr:return new f(+i);case ze:return FS(i,u);case sr:case Co:case kr:case cr:case Va:case ki:case wu:case Tu:case bu:return np(i,u);case Ft:return new f;case En:case je:return new f(i);case G:return VS(i);case oe:return new f;case Ze:return HS(i)}}function rA(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(ib,`{
53
+ */var hF=us.exports,xv;function fF(){return xv||(xv=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__",_=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,xa=St>>>1,Ua=[["ary",M],["bind",k],["bindKey",I],["curry",D],["curryRight",L],["flip",ae],["partial",K],["partialRight",q],["rearg",ce]],Sr="[object Arguments]",Yo="[object Array]",Ba="[object AsyncFunction]",Ar="[object Boolean]",qr="[object Date]",Fa="[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]",sr="[object Float32Array]",Co="[object Float64Array]",kr="[object Int8Array]",cr="[object Int16Array]",Va="[object Int32Array]",ki="[object Uint8Array]",Eu="[object Uint8ClampedArray]",wu="[object Uint16Array]",Tu="[object Uint32Array]",WT=/\b__p \+= '';/g,zT=/\b(__p \+=) '' \+/g,GT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dm=/&(?:amp|lt|gt|quot|#39);/g,Lm=/[&<>"']/g,qT=RegExp(Dm.source),jT=RegExp(Lm.source),YT=/<%-([\s\S]+?)%>/g,JT=/<%([\s\S]+?)%>/g,xm=/<%=([\s\S]+?)%>/g,QT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XT=/^\w*$/,ZT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bu=/[\\^$.*+?()[\]{}|]/g,eb=RegExp(bu.source),Iu=/^\s+/,tb=/\s/,nb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rb=/\{\n\/\* \[wrapped with (.+)\] \*/,ob=/,? & /,ib=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ab=/[()=,{}\[\]\/\s]/,sb=/\\(\\)?/g,cb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Um=/\w*$/,lb=/^[-+]0x[0-9a-f]+$/i,ub=/^0b[01]+$/i,db=/^\[object .+?Constructor\]$/,hb=/^0o[0-7]+$/i,fb=/^(?:0|[1-9]\d*)$/,mb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qs=/($^)/,gb=/['\n\r\u2028\u2029\\]/g,js="\\ud800-\\udfff",pb="\\u0300-\\u036f",_b="\\ufe20-\\ufe2f",vb="\\u20d0-\\u20ff",Bm=pb+_b+vb,Fm="\\u2700-\\u27bf",Vm="a-z\\xdf-\\xf6\\xf8-\\xff",yb="\\xac\\xb1\\xd7\\xf7",Cb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Eb="\\u2000-\\u206f",wb=" \\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",Hm="A-Z\\xc0-\\xd6\\xd8-\\xde",$m="\\ufe0e\\ufe0f",Km=yb+Cb+Eb+wb,Su="['’]",Tb="["+js+"]",Wm="["+Km+"]",Ys="["+Bm+"]",zm="\\d+",bb="["+Fm+"]",Gm="["+Vm+"]",qm="[^"+js+Km+zm+Fm+Vm+Hm+"]",Au="\\ud83c[\\udffb-\\udfff]",Ib="(?:"+Ys+"|"+Au+")",jm="[^"+js+"]",ku="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",Ni="["+Hm+"]",Ym="\\u200d",Jm="(?:"+Gm+"|"+qm+")",Sb="(?:"+Ni+"|"+qm+")",Qm="(?:"+Su+"(?:d|ll|m|re|s|t|ve))?",Xm="(?:"+Su+"(?:D|LL|M|RE|S|T|VE))?",Zm=Ib+"?",eg="["+$m+"]?",Ab="(?:"+Ym+"(?:"+[jm,ku,Nu].join("|")+")"+eg+Zm+")*",kb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tg=eg+Zm+Ab,Rb="(?:"+[bb,ku,Nu].join("|")+")"+tg,Ob="(?:"+[jm+Ys+"?",Ys,ku,Nu,Tb].join("|")+")",Pb=RegExp(Su,"g"),Mb=RegExp(Ys,"g"),Ru=RegExp(Au+"(?="+Au+")|"+Ob+tg,"g"),Db=RegExp([Ni+"?"+Gm+"+"+Qm+"(?="+[Wm,Ni,"$"].join("|")+")",Sb+"+"+Xm+"(?="+[Wm,Ni+Jm,"$"].join("|")+")",Ni+"?"+Jm+"+"+Qm,Ni+"+"+Xm,Nb,kb,zm,Rb].join("|"),"g"),Lb=RegExp("["+Ym+js+Bm+$m+"]"),xb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ub=["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"],Bb=-1,rt={};rt[sr]=rt[Co]=rt[kr]=rt[cr]=rt[Va]=rt[ki]=rt[Eu]=rt[wu]=rt[Tu]=!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[sr]=et[Co]=et[kr]=et[cr]=et[Va]=et[Ft]=et[En]=et[wn]=et[G]=et[oe]=et[je]=et[Ze]=et[ki]=et[Eu]=et[wu]=et[Tu]=!0,et[_o]=et[vo]=et[V]=!1;var Fb={À:"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"},Vb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$b={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kb=parseFloat,Wb=parseInt,ng=typeof Kc=="object"&&Kc&&Kc.Object===Object&&Kc,zb=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ng||zb||Function("return this")(),Ou=e&&!e.nodeType&&e,Qo=Ou&&!0&&n&&!n.nodeType&&n,rg=Qo&&Qo.exports===Ou,Pu=rg&&ng.process,Vn=function(){try{var O=Qo&&Qo.require&&Qo.require("util").types;return O||Pu&&Pu.binding&&Pu.binding("util")}catch{}}(),og=Vn&&Vn.isArrayBuffer,ig=Vn&&Vn.isDate,ag=Vn&&Vn.isMap,sg=Vn&&Vn.isRegExp,cg=Vn&&Vn.isSet,lg=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 Gb(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 qb(O,H){for(var U=O==null?0:O.length;U--&&H(O[U],U,O)!==!1;);return O}function ug(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 Mu(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 Du(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 jb(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 Lu(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 Yb=xu("length");function Jb(O){return O.split("")}function Qb(O){return O.match(ib)||[]}function dg(O,H,U){var re;return U(O,function(Ce,Fe,At){if(H(Ce,Fe,At))return re=Fe,!1}),re}function Qs(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?lI(O,H,U):Qs(O,hg,U)}function Xb(O,H,U,re){for(var Ce=U-1,Fe=O.length;++Ce<Fe;)if(re(O[Ce],H))return Ce;return-1}function hg(O){return O!==O}function fg(O,H){var U=O==null?0:O.length;return U?Bu(O,H)/U:on}function xu(O){return function(H){return H==null?t:H[O]}}function Uu(O){return function(H){return O==null?t:O[H]}}function mg(O,H,U,re,Ce){return Ce(O,function(Fe,At,Ye){U=re?(re=!1,Fe):H(U,Fe,At,Ye)}),U}function Zb(O,H){var U=O.length;for(O.sort(H);U--;)O[U]=O[U].value;return O}function Bu(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 Fu(O,H){for(var U=-1,re=Array(O);++U<O;)re[U]=H(U);return re}function eI(O,H){return st(H,function(U){return[U,O[U]]})}function gg(O){return O&&O.slice(0,yg(O)+1).replace(Iu,"")}function bn(O){return function(H){return O(H)}}function Vu(O,H){return st(H,function(U){return O[U]})}function Ha(O,H){return O.has(H)}function pg(O,H){for(var U=-1,re=O.length;++U<re&&Ri(H,O[U],0)>-1;);return U}function _g(O,H){for(var U=O.length;U--&&Ri(H,O[U],0)>-1;);return U}function tI(O,H){for(var U=O.length,re=0;U--;)O[U]===H&&++re;return re}var nI=Uu(Fb),rI=Uu(Vb);function oI(O){return"\\"+$b[O]}function iI(O,H){return O==null?t:O[H]}function Oi(O){return Lb.test(O)}function aI(O){return xb.test(O)}function sI(O){for(var H,U=[];!(H=O.next()).done;)U.push(H.value);return U}function Hu(O){var H=-1,U=Array(O.size);return O.forEach(function(re,Ce){U[++H]=[Ce,re]}),U}function vg(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 Xs(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=re}),U}function cI(O){var H=-1,U=Array(O.size);return O.forEach(function(re){U[++H]=[re,re]}),U}function lI(O,H,U){for(var re=U-1,Ce=O.length;++re<Ce;)if(O[re]===H)return re;return-1}function uI(O,H,U){for(var re=U+1;re--;)if(O[re]===H)return re;return re}function Pi(O){return Oi(O)?hI(O):Yb(O)}function lr(O){return Oi(O)?fI(O):Jb(O)}function yg(O){for(var H=O.length;H--&&tb.test(O.charAt(H)););return H}var dI=Uu(Hb);function hI(O){for(var H=Ru.lastIndex=0;Ru.test(O);)++H;return H}function fI(O){return O.match(Ru)||[]}function mI(O){return O.match(Db)||[]}var gI=function O(H){H=H==null?Vt:Mi.defaults(Vt.Object(),H,Mi.pick(Vt,Ub));var U=H.Array,re=H.Date,Ce=H.Error,Fe=H.Function,At=H.Math,Ye=H.Object,$u=H.RegExp,pI=H.String,$n=H.TypeError,Zs=U.prototype,_I=Fe.prototype,Di=Ye.prototype,ec=H["__core-js_shared__"],tc=_I.toString,$e=Di.hasOwnProperty,vI=0,Cg=function(){var i=/[^.]+$/.exec(ec&&ec.keys&&ec.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),nc=Di.toString,yI=tc.call(Ye),CI=Vt._,EI=$u("^"+tc.call($e).replace(bu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rc=rg?H.Buffer:t,bo=H.Symbol,oc=H.Uint8Array,Eg=rc?rc.allocUnsafe:t,ic=vg(Ye.getPrototypeOf,Ye),wg=Ye.create,Tg=Di.propertyIsEnumerable,ac=Zs.splice,bg=bo?bo.isConcatSpreadable:t,$a=bo?bo.iterator:t,Xo=bo?bo.toStringTag:t,sc=function(){try{var i=ri(Ye,"defineProperty");return i({},"",{}),i}catch{}}(),wI=H.clearTimeout!==Vt.clearTimeout&&H.clearTimeout,TI=re&&re.now!==Vt.Date.now&&re.now,bI=H.setTimeout!==Vt.setTimeout&&H.setTimeout,cc=At.ceil,lc=At.floor,Ku=Ye.getOwnPropertySymbols,II=rc?rc.isBuffer:t,Ig=H.isFinite,SI=Zs.join,AI=vg(Ye.keys,Ye),kt=At.max,jt=At.min,kI=re.now,NI=H.parseInt,Sg=At.random,RI=Zs.reverse,Wu=ri(H,"DataView"),Ka=ri(H,"Map"),zu=ri(H,"Promise"),Li=ri(H,"Set"),Wa=ri(H,"WeakMap"),za=ri(Ye,"create"),uc=Wa&&new Wa,xi={},OI=oi(Wu),PI=oi(Ka),MI=oi(zu),DI=oi(Li),LI=oi(Wa),dc=bo?bo.prototype:t,Ga=dc?dc.valueOf:t,Ag=dc?dc.toString:t;function y(i){if(dt(i)&&!Ee(i)&&!(i instanceof Oe)){if(i instanceof Kn)return i;if($e.call(i,"__wrapped__"))return kp(i)}return new Kn(i)}var Ui=function(){function i(){}return function(s){if(!ut(s))return{};if(wg)return wg(s);i.prototype=s;var u=new i;return i.prototype=t,u}}();function hc(){}function Kn(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=t}y.templateSettings={escape:YT,evaluate:JT,interpolate:xm,variable:"",imports:{_:y}},y.prototype=hc.prototype,y.prototype.constructor=y,Kn.prototype=Ui(hc.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 xI(){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 UI(){if(this.__filtered__){var i=new Oe(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function BI(){var i=this.__wrapped__.value(),s=this.__dir__,u=Ee(i),f=s<0,v=u?i.length:0,E=JS(0,v,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&&v==P&&se==P)return Qg(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(hc.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 FI(){this.__data__=za?za(null):{},this.size=0}function VI(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function HI(i){var s=this.__data__;if(za){var u=s[i];return u===h?t:u}return $e.call(s,i)?s[i]:t}function $I(i){var s=this.__data__;return za?s[i]!==t:$e.call(s,i)}function KI(i,s){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=za&&s===t?h:s,this}Zo.prototype.clear=FI,Zo.prototype.delete=VI,Zo.prototype.get=HI,Zo.prototype.has=$I,Zo.prototype.set=KI;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 WI(){this.__data__=[],this.size=0}function zI(i){var s=this.__data__,u=fc(s,i);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():ac.call(s,u,1),--this.size,!0}function GI(i){var s=this.__data__,u=fc(s,i);return u<0?t:s[u][1]}function qI(i){return fc(this.__data__,i)>-1}function jI(i,s){var u=this.__data__,f=fc(u,i);return f<0?(++this.size,u.push([i,s])):u[f][1]=s,this}jr.prototype.clear=WI,jr.prototype.delete=zI,jr.prototype.get=GI,jr.prototype.has=qI,jr.prototype.set=jI;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 YI(){this.size=0,this.__data__={hash:new Zo,map:new(Ka||jr),string:new Zo}}function JI(i){var s=Ic(this,i).delete(i);return this.size-=s?1:0,s}function QI(i){return Ic(this,i).get(i)}function XI(i){return Ic(this,i).has(i)}function ZI(i,s){var u=Ic(this,i),f=u.size;return u.set(i,s),this.size+=u.size==f?0:1,this}Yr.prototype.clear=YI,Yr.prototype.delete=JI,Yr.prototype.get=QI,Yr.prototype.has=XI,Yr.prototype.set=ZI;function ei(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new Yr;++s<u;)this.add(i[s])}function eS(i){return this.__data__.set(i,h),this}function tS(i){return this.__data__.has(i)}ei.prototype.add=ei.prototype.push=eS,ei.prototype.has=tS;function ur(i){var s=this.__data__=new jr(i);this.size=s.size}function nS(){this.__data__=new jr,this.size=0}function rS(i){var s=this.__data__,u=s.delete(i);return this.size=s.size,u}function oS(i){return this.__data__.get(i)}function iS(i){return this.__data__.has(i)}function aS(i,s){var u=this.__data__;if(u instanceof jr){var f=u.__data__;if(!Ka||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}ur.prototype.clear=nS,ur.prototype.delete=rS,ur.prototype.get=oS,ur.prototype.has=iS,ur.prototype.set=aS;function kg(i,s){var u=Ee(i),f=!u&&ii(i),v=!u&&!f&&No(i),E=!u&&!f&&!v&&Hi(i),b=u||f||v||E,S=b?Fu(i.length,pI):[],P=S.length;for(var W in i)(s||$e.call(i,W))&&!(b&&(W=="length"||v&&(W=="offset"||W=="parent")||E&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Zr(W,P)))&&S.push(W);return S}function Ng(i){var s=i.length;return s?i[nd(0,s-1)]:t}function sS(i,s){return Sc(hn(i),ti(s,0,i.length))}function cS(i){return Sc(hn(i))}function Gu(i,s,u){(u!==t&&!dr(i[s],u)||u===t&&!(s in i))&&Jr(i,s,u)}function qa(i,s,u){var f=i[s];(!($e.call(i,s)&&dr(f,u))||u===t&&!(s in i))&&Jr(i,s,u)}function fc(i,s){for(var u=i.length;u--;)if(dr(i[u][0],s))return u;return-1}function lS(i,s,u,f){return Io(i,function(v,E,b){s(f,v,u(v),b)}),f}function Rg(i,s){return i&&Rr(s,Dt(s),i)}function uS(i,s){return i&&Rr(s,mn(s),i)}function Jr(i,s,u){s=="__proto__"&&sc?sc(i,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[s]=u}function qu(i,s){for(var u=-1,f=s.length,v=U(f),E=i==null;++u<f;)v[u]=E?t:Ad(i,s[u]);return v}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,v,E){var b,S=s&_,P=s&p,W=s&w;if(u&&(b=v?u(i,f,v,E):u(i)),b!==t)return b;if(!ut(i))return i;var z=Ee(i);if(z){if(b=XS(i),!S)return hn(i,b)}else{var j=Yt(i),te=j==vo||j==yo;if(No(i))return ep(i,S);if(j==wn||j==Sr||te&&!v){if(b=P||te?{}:yp(i),!S)return P?HS(i,uS(b,i)):VS(i,Rg(b,i))}else{if(!et[j])return v?i:{};b=ZS(i,j,S)}}E||(E=new ur);var se=E.get(i);if(se)return se;E.set(i,b),jp(i)?i.forEach(function(fe){b.add(Wn(fe,s,u,fe,i,E))}):Gp(i)&&i.forEach(function(fe,Re){b.set(Re,Wn(fe,s,u,Re,i,E))});var he=W?P?fd:hd:P?mn:Dt,Ie=z?t:he(i);return Hn(Ie||i,function(fe,Re){Ie&&(Re=fe,fe=i[Re]),qa(b,Re,Wn(fe,s,u,Re,i,E))}),b}function dS(i){var s=Dt(i);return function(u){return Og(u,i,s)}}function Og(i,s,u){var f=u.length;if(i==null)return!f;for(i=Ye(i);f--;){var v=u[f],E=s[v],b=i[v];if(b===t&&!(v in i)||!E(b))return!1}return!0}function Pg(i,s,u){if(typeof i!="function")throw new $n(c);return es(function(){i.apply(t,u)},s)}function ja(i,s,u,f){var v=-1,E=Js,b=!0,S=i.length,P=[],W=s.length;if(!S)return P;u&&(s=st(s,bn(u))),f?(E=Mu,b=!1):s.length>=o&&(E=Ha,b=!1,s=new ei(s));e:for(;++v<S;){var z=i[v],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=ip(Nr),Mg=ip(Yu,!0);function hS(i,s){var u=!0;return Io(i,function(f,v,E){return u=!!s(f,v,E),u}),u}function mc(i,s,u){for(var f=-1,v=i.length;++f<v;){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 fS(i,s,u,f){var v=i.length;for(u=be(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:be(f),f<0&&(f+=v),f=u>f?0:Jp(f);u<f;)i[u++]=s;return i}function Dg(i,s){var u=[];return Io(i,function(f,v,E){s(f,v,E)&&u.push(f)}),u}function Ht(i,s,u,f,v){var E=-1,b=i.length;for(u||(u=tA),v||(v=[]);++E<b;){var S=i[E];s>0&&u(S)?s>1?Ht(S,s-1,u,f,v):wo(v,S):f||(v[v.length]=S)}return v}var ju=ap(),Lg=ap(!0);function Nr(i,s){return i&&ju(i,s,Dt)}function Yu(i,s){return i&&Lg(i,s,Dt)}function gc(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 xg(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)?YS(i):cA(i)}function Ju(i,s){return i>s}function mS(i,s){return i!=null&&$e.call(i,s)}function gS(i,s){return i!=null&&s in Ye(i)}function pS(i,s,u){return i>=jt(s,u)&&i<kt(s,u)}function Qu(i,s,u){for(var f=u?Mu:Js,v=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||v>=120&&z.length>=120)?new ei(b&&z):t}z=i[0];var j=-1,te=S[0];e:for(;++j<v&&W.length<P;){var se=z[j],he=s?s(se):se;if(se=u||se!==0?se:0,!(te?Ha(te,he):f(W,he,u))){for(b=E;--b;){var Ie=S[b];if(!(Ie?Ha(Ie,he):f(i[b],he,u)))continue e}te&&te.push(he),W.push(se)}}return W}function _S(i,s,u,f){return Nr(i,function(v,E,b){s(f,u(v),E,b)}),f}function Ya(i,s,u){s=Ao(s,i),i=Tp(i,s);var f=i==null?i:i[Or(Gn(s))];return f==null?t:Tn(f,i,u)}function Ug(i){return dt(i)&&an(i)==Sr}function vS(i){return dt(i)&&an(i)==Ne}function yS(i){return dt(i)&&an(i)==qr}function Ja(i,s,u,f,v){return i===s?!0:i==null||s==null||!dt(i)&&!dt(s)?i!==i&&s!==s:CS(i,s,u,f,Ja,v)}function CS(i,s,u,f,v,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 ur),b||Hi(i)?pp(i,s,u,f,v,E):qS(i,s,P,u,f,v,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 ur),v(Ie,fe,u,f,E)}}return te?(E||(E=new ur),jS(i,s,u,f,v,E)):!1}function ES(i){return dt(i)&&Yt(i)==Ft}function Xu(i,s,u,f){var v=u.length,E=v,b=!f;if(i==null)return!E;for(i=Ye(i);v--;){var S=u[v];if(b&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++v<E;){S=u[v];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 ur;if(f)var te=f(W,z,P,i,s,j);if(!(te===t?Ja(z,W,C|T,f,j):te))return!1}}return!0}function Bg(i){if(!ut(i)||rA(i))return!1;var s=eo(i)?EI:db;return s.test(oi(i))}function wS(i){return dt(i)&&an(i)==G}function TS(i){return dt(i)&&Yt(i)==oe}function bS(i){return dt(i)&&Pc(i.length)&&!!rt[an(i)]}function Fg(i){return typeof i=="function"?i:i==null?gn:typeof i=="object"?Ee(i)?$g(i[0],i[1]):Hg(i):s_(i)}function Zu(i){if(!Za(i))return AI(i);var s=[];for(var u in Ye(i))$e.call(i,u)&&u!="constructor"&&s.push(u);return s}function IS(i){if(!ut(i))return sA(i);var s=Za(i),u=[];for(var f in i)f=="constructor"&&(s||!$e.call(i,f))||u.push(f);return u}function ed(i,s){return i<s}function Vg(i,s){var u=-1,f=fn(i)?U(i.length):[];return Io(i,function(v,E,b){f[++u]=s(v,E,b)}),f}function Hg(i){var s=gd(i);return s.length==1&&s[0][2]?Ep(s[0][0],s[0][1]):function(u){return u===i||Xu(u,i,s)}}function $g(i,s){return _d(i)&&Cp(s)?Ep(Or(i),s):function(u){var f=Ad(u,i);return f===t&&f===s?kd(u,i):Ja(s,f,C|T)}}function pc(i,s,u,f,v){i!==s&&ju(s,function(E,b){if(v||(v=new ur),ut(E))SS(i,s,b,u,pc,f,v);else{var S=f?f(yd(i,b),E,b+"",i,s,v):t;S===t&&(S=E),Gu(i,b,S)}},mn)}function SS(i,s,u,f,v,E,b){var S=yd(i,u),P=yd(s,u),W=b.get(P);if(W){Gu(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:gt(S)?z=hn(S):se?(j=!1,z=ep(P,!0)):he?(j=!1,z=tp(P,!0)):z=[]:ts(P)||ii(P)?(z=S,ii(S)?z=Qp(S):(!ut(S)||eo(S))&&(z=yp(P))):j=!1}j&&(b.set(P,z),v(z,P,f,E,b),b.delete(P)),Gu(i,u,z)}function Kg(i,s){var u=i.length;if(u)return s+=s<0?u:0,Zr(s,u)?i[s]:t}function Wg(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 v=Vg(i,function(E,b,S){var P=st(s,function(W){return W(E)});return{criteria:P,index:++f,value:E}});return Zb(v,function(E,b){return FS(E,b,u)})}function AS(i,s){return zg(i,s,function(u,f){return kd(i,f)})}function zg(i,s,u){for(var f=-1,v=s.length,E={};++f<v;){var b=s[f],S=ni(i,b);u(S,b)&&Qa(E,Ao(b,i),S)}return E}function kS(i){return function(s){return ni(s,i)}}function td(i,s,u,f){var v=f?Xb: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=v(S,z,P,f))>-1;)S!==i&&ac.call(S,P,1),ac.call(i,P,1);return i}function Gg(i,s){for(var u=i?s.length:0,f=u-1;u--;){var v=s[u];if(u==f||v!==E){var E=v;Zr(v)?ac.call(i,v,1):id(i,v)}}return i}function nd(i,s){return i+lc(Sg()*(s-i+1))}function NS(i,s,u,f){for(var v=-1,E=kt(cc((s-i)/(u||1)),0),b=U(E);E--;)b[f?E:++v]=i,i+=u;return b}function rd(i,s){var u="";if(!i||s<1||s>at)return u;do s%2&&(u+=i),s=lc(s/2),s&&(i+=i);while(s);return u}function Se(i,s){return Cd(wp(i,s,gn),i+"")}function RS(i){return Ng($i(i))}function OS(i,s){var u=$i(i);return Sc(u,ti(s,0,u.length))}function Qa(i,s,u,f){if(!ut(i))return i;s=Ao(s,i);for(var v=-1,E=s.length,b=E-1,S=i;S!=null&&++v<E;){var P=Or(s[v]),W=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return i;if(v!=b){var z=S[P];W=f?f(z,P,S):t,W===t&&(W=ut(z)?z:Zr(s[v+1])?[]:{})}qa(S,P,W),S=S[P]}return i}var qg=uc?function(i,s){return uc.set(i,s),i}:gn,PS=sc?function(i,s){return sc(i,"toString",{configurable:!0,enumerable:!1,value:Rd(s),writable:!0})}:gn;function MS(i){return Sc($i(i))}function zn(i,s,u){var f=-1,v=i.length;s<0&&(s=-s>v?0:v+s),u=u>v?v:u,u<0&&(u+=v),v=s>u?0:u-s>>>0,s>>>=0;for(var E=U(v);++f<v;)E[f]=i[f+s];return E}function DS(i,s){var u;return Io(i,function(f,v,E){return u=s(f,v,E),!u}),!!u}function _c(i,s,u){var f=0,v=i==null?f:i.length;if(typeof s=="number"&&s===s&&v<=xa){for(;f<v;){var E=f+v>>>1,b=i[E];b!==null&&!Sn(b)&&(u?b<=s:b<s)?f=E+1:v=E}return v}return od(i,s,gn,u)}function od(i,s,u,f){var v=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;v<E;){var z=lc((v+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?v=z+1:E=z}return jt(E,jo)}function jg(i,s){for(var u=-1,f=i.length,v=0,E=[];++u<f;){var b=i[u],S=s?s(b):b;if(!u||!dr(S,P)){var P=S;E[v++]=b===0?0:b}}return E}function Yg(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 Ag?Ag.call(i):"";var s=i+"";return s=="0"&&1/i==-Mt?"-0":s}function So(i,s,u){var f=-1,v=Js,E=i.length,b=!0,S=[],P=S;if(u)b=!1,v=Mu;else if(E>=o){var W=s?null:zS(i);if(W)return Xs(W);b=!1,v=Ha,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 v(P,j,u)||(P!==S&&P.push(j),S.push(z))}return S}function id(i,s){return s=Ao(s,i),i=Tp(i,s),i==null||delete i[Or(Gn(s))]}function Jg(i,s,u,f){return Qa(i,s,u(ni(i,s)),f)}function vc(i,s,u,f){for(var v=i.length,E=f?v:-1;(f?E--:++E<v)&&s(i[E],E,i););return u?zn(i,f?0:E,f?E+1:v):zn(i,f?E+1:0,f?v:E)}function Qg(i,s){var u=i;return u instanceof Oe&&(u=u.value()),Du(s,function(f,v){return v.func.apply(v.thisArg,wo([f],v.args))},u)}function ad(i,s,u){var f=i.length;if(f<2)return f?So(i[0]):[];for(var v=-1,E=U(f);++v<f;)for(var b=i[v],S=-1;++S<f;)S!=v&&(E[v]=ja(E[v]||b,i[S],s,u));return So(Ht(E,1),s,u)}function Xg(i,s,u){for(var f=-1,v=i.length,E=s.length,b={};++f<v;){var S=f<E?s[f]:t;u(b,i[f],S)}return b}function sd(i){return gt(i)?i:[]}function cd(i){return typeof i=="function"?i:gn}function Ao(i,s){return Ee(i)?i:_d(i,s)?[i]:Ap(He(i))}var LS=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 Zg=wI||function(i){return Vt.clearTimeout(i)};function ep(i,s){if(s)return i.slice();var u=i.length,f=Eg?Eg(u):new i.constructor(u);return i.copy(f),f}function ld(i){var s=new i.constructor(i.byteLength);return new oc(s).set(new oc(i)),s}function xS(i,s){var u=s?ld(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function US(i){var s=new i.constructor(i.source,Um.exec(i));return s.lastIndex=i.lastIndex,s}function BS(i){return Ga?Ye(Ga.call(i)):{}}function tp(i,s){var u=s?ld(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function np(i,s){if(i!==s){var u=i!==t,f=i===null,v=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||!v)return 1;if(!f&&!E&&!W&&i<s||W&&u&&v&&!f&&!E||S&&u&&v||!b&&v||!P)return-1}return 0}function FS(i,s,u){for(var f=-1,v=i.criteria,E=s.criteria,b=v.length,S=u.length;++f<b;){var P=np(v[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 rp(i,s,u,f){for(var v=-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(;++v<b;)(j||v<E)&&(z[u[v]]=i[v]);for(;W--;)z[S++]=i[v++];return z}function op(i,s,u,f){for(var v=-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;++v<z;)j[v]=i[v];for(var se=v;++P<W;)j[se+P]=s[P];for(;++b<S;)(te||v<E)&&(j[se+u[b]]=i[v++]);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 v=!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]),v?Jr(u,S,P):qa(u,S,P)}return u}function VS(i,s){return Rr(i,pd(i),s)}function HS(i,s){return Rr(i,_p(i),s)}function yc(i,s){return function(u,f){var v=Ee(u)?Gb:lS,E=s?s():{};return v(u,i,de(f,2),E)}}function Bi(i){return Se(function(s,u){var f=-1,v=u.length,E=v>1?u[v-1]:t,b=v>2?u[2]:t;for(E=i.length>3&&typeof E=="function"?(v--,E):t,b&&sn(u[0],u[1],b)&&(E=v<3?t:E,v=1),s=Ye(s);++f<v;){var S=u[f];S&&i(s,S,f,E)}return s})}function ip(i,s){return function(u,f){if(u==null)return u;if(!fn(u))return i(u,f);for(var v=u.length,E=s?v:-1,b=Ye(u);(s?E--:++E<v)&&f(b[E],E,b)!==!1;);return u}}function ap(i){return function(s,u,f){for(var v=-1,E=Ye(s),b=f(s),S=b.length;S--;){var P=b[i?S:++v];if(u(E[P],P,E)===!1)break}return s}}function $S(i,s,u){var f=s&k,v=Xa(i);function E(){var b=this&&this!==Vt&&this instanceof E?v:i;return b.apply(f?u:this,arguments)}return E}function sp(i){return function(s){s=He(s);var u=Oi(s)?lr(s):t,f=u?u[0]:s.charAt(0),v=u?ko(u,1).join(""):s.slice(1);return f[i]()+v}}function Fi(i){return function(s){return Du(i_(o_(s).replace(Pb,"")),i,"")}}function Xa(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 KS(i,s,u){var f=Xa(i);function v(){for(var E=arguments.length,b=U(E),S=E,P=Vi(v);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 hp(i,s,Cc,v.placeholder,t,b,W,t,t,u-E);var z=this&&this!==Vt&&this instanceof v?f:i;return Tn(z,this,b)}return v}function cp(i){return function(s,u,f){var v=Ye(s);if(!fn(s)){var E=de(u,3);s=Dt(s),u=function(S){return E(v[S],S,v)}}var b=i(s,u,f);return b>-1?v[E?s[b]:b]:t}}function lp(i){return Xr(function(s){var u=s.length,f=u,v=Kn.prototype.thru;for(i&&s.reverse();f--;){var E=s[f];if(typeof E!="function")throw new $n(c);if(v&&!b&&bc(E)=="wrapper")var b=new Kn([],!0)}for(f=b?f:u;++f<u;){E=s[f];var S=bc(E),P=S=="wrapper"?md(E):t;P&&vd(P[0])&&P[1]==(M|D|K|ce)&&!P[4].length&&P[9]==1?b=b[bc(P[0])].apply(b,P[3]):b=E.length==1&&vd(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 Cc(i,s,u,f,v,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:Xa(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=tI(Pe,cn);if(f&&(Pe=rp(Pe,f,v,se)),E&&(Pe=op(Pe,E,b,se)),Re-=kn,se&&Re<W){var pt=To(Pe,cn);return hp(i,s,Cc,fe.placeholder,u,Pe,pt,S,P,W-Re)}var hr=j?u:this,no=te?hr[i]:i;return Re=Pe.length,S?Pe=lA(Pe,S):he&&Re>1&&Pe.reverse(),z&&P<Re&&(Pe.length=P),this&&this!==Vt&&this instanceof fe&&(no=Ie||Xa(no)),no.apply(hr,Pe)}return fe}function up(i,s){return function(u,f){return _S(u,i,s(f),{})}}function Ec(i,s){return function(u,f){var v;if(u===t&&f===t)return s;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=In(u),f=In(f)):(u=Yg(u),f=Yg(f)),v=i(u,f)}return v}}function ud(i){return Xr(function(s){return s=st(s,bn(de())),Se(function(u){var f=this;return i(s,function(v){return Tn(v,f,u)})})})}function wc(i,s){s=s===t?" ":In(s);var u=s.length;if(u<2)return u?rd(s,i):s;var f=rd(s,cc(i/Pi(s)));return Oi(s)?ko(lr(f),0,i).join(""):f.slice(0,i)}function WS(i,s,u,f){var v=s&k,E=Xa(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,v?u:this,j)}return b}function dp(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),NS(s,u,f,i)}}function Tc(i){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=qn(s),u=qn(u)),i(s,u)}}function hp(i,s,u,f,v,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,v,se,j,he,te,S,P,W],fe=u.apply(t,Ie);return vd(i)&&bp(fe,Ie),fe.placeholder=f,Ip(fe,i,s)}function dd(i){var s=At[i];return function(u,f){if(u=qn(u),f=f==null?0:jt(be(f),292),f&&Ig(u)){var v=(He(u)+"e").split("e"),E=s(v[0]+"e"+(+v[1]+f));return v=(He(E)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return s(u)}}var zS=Li&&1/Xs(new Li([,-0]))[1]==Mt?function(i){return new Li(i)}:Md;function fp(i){return function(s){var u=Yt(s);return u==Ft?Hu(s):u==oe?cI(s):eI(s,i(s))}}function Qr(i,s,u,f,v,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=v=t),b=b===t?b:kt(be(b),0),S=S===t?S:be(S),W-=v?v.length:0,s&q){var z=f,j=v;f=v=t}var te=P?t:md(i),se=[i,s,u,f,v,z,j,E,b,S];if(te&&aA(se,te),i=se[0],s=se[1],u=se[2],f=se[3],v=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=$S(i,s,u);else s==D||s==L?he=KS(i,s,S):(s==K||s==(k|K))&&!v.length?he=WS(i,s,u,f):he=Cc.apply(t,se);var Ie=te?qg:bp;return Ip(Ie(he,se),i,s)}function mp(i,s,u,f){return i===t||dr(i,Di[u])&&!$e.call(f,u)?s:i}function gp(i,s,u,f,v,E){return ut(i)&&ut(s)&&(E.set(s,i),pc(i,s,t,gp,E),E.delete(s)),i}function GS(i){return ts(i)?t:i}function pp(i,s,u,f,v,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(!Lu(s,function(Re,Pe){if(!Ha(se,Pe)&&(he===Re||v(he,Re,u,f,E)))return se.push(Pe)})){te=!1;break}}else if(!(he===Ie||v(he,Ie,u,f,E))){te=!1;break}}return E.delete(i),E.delete(s),te}function qS(i,s,u,f,v,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 oc(i),new oc(s)));case Ar:case qr:case En:return dr(+i,+s);case _o:return i.name==s.name&&i.message==s.message;case G:case je:return i==s+"";case Ft:var S=Hu;case oe:var P=f&C;if(S||(S=Xs),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=pp(S(i),S(s),f,v,E,b);return b.delete(i),z;case Ze:if(Ga)return Ga.call(i)==Ga.call(s)}return!1}function jS(i,s,u,f,v,E){var b=u&C,S=hd(i),P=S.length,W=hd(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||v(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 Cd(wp(i,t,Op),i+"")}function hd(i){return xg(i,Dt,pd)}function fd(i){return xg(i,mn,_p)}var md=uc?function(i){return uc.get(i)}:Md;function bc(i){for(var s=i.name+"",u=xi[s],f=$e.call(xi,s)?u.length:0;f--;){var v=u[f],E=v.func;if(E==null||E==i)return v.name}return s}function Vi(i){var s=$e.call(y,"placeholder")?y:i;return s.placeholder}function de(){var i=y.iteratee||Od;return i=i===Od?Fg:i,arguments.length?i(arguments[0],arguments[1]):i}function Ic(i,s){var u=i.__data__;return nA(s)?u[typeof s=="string"?"string":"hash"]:u.map}function gd(i){for(var s=Dt(i),u=s.length;u--;){var f=s[u],v=i[f];s[u]=[f,v,Cp(v)]}return s}function ri(i,s){var u=iI(i,s);return Bg(u)?u:t}function YS(i){var s=$e.call(i,Xo),u=i[Xo];try{i[Xo]=t;var f=!0}catch{}var v=nc.call(i);return f&&(s?i[Xo]=u:delete i[Xo]),v}var pd=Ku?function(i){return i==null?[]:(i=Ye(i),Eo(Ku(i),function(s){return Tg.call(i,s)}))}:Dd,_p=Ku?function(i){for(var s=[];i;)wo(s,pd(i)),i=ic(i);return s}:Dd,Yt=an;(Wu&&Yt(new Wu(new ArrayBuffer(1)))!=ze||Ka&&Yt(new Ka)!=Ft||zu&&Yt(zu.resolve())!=A||Li&&Yt(new Li)!=oe||Wa&&Yt(new Wa)!=V)&&(Yt=function(i){var s=an(i),u=s==wn?i.constructor:t,f=u?oi(u):"";if(f)switch(f){case OI:return ze;case PI:return Ft;case MI:return A;case DI:return oe;case LI:return V}return s});function JS(i,s,u){for(var f=-1,v=u.length;++f<v;){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 QS(i){var s=i.match(rb);return s?s[1].split(ob):[]}function vp(i,s,u){s=Ao(s,i);for(var f=-1,v=s.length,E=!1;++f<v;){var b=Or(s[f]);if(!(E=i!=null&&u(i,b)))break;i=i[b]}return E||++f!=v?E:(v=i==null?0:i.length,!!v&&Pc(v)&&Zr(b,v)&&(Ee(i)||ii(i)))}function XS(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 yp(i){return typeof i.constructor=="function"&&!Za(i)?Ui(ic(i)):{}}function ZS(i,s,u){var f=i.constructor;switch(s){case Ne:return ld(i);case Ar:case qr:return new f(+i);case ze:return xS(i,u);case sr:case Co:case kr:case cr:case Va:case ki:case Eu:case wu:case Tu:return tp(i,u);case Ft:return new f;case En:case je:return new f(i);case G:return US(i);case oe:return new f;case Ze:return BS(i)}}function eA(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(nb,`{
54
54
  /* [wrapped with `+s+`] */
55
- `)}function oA(i){return Ee(i)||ii(i)||!!(Ig&&i&&i[Ig])}function Zr(i,s){var u=typeof i;return s=s??at,!!s&&(u=="number"||u!="symbol"&&pb.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)?dr(u[s],i):!1}function vd(i,s){if(Ee(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||Sn(i)?!0:tb.test(i)||!eb.test(i)||s!=null&&i in Ye(s)}function iA(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function yd(i){var s=bc(i),u=y[s];if(typeof u!="function"||!(s in Oe.prototype))return!1;if(i===u)return!0;var f=gd(u);return!!f&&i===f[0]}function aA(i){return!!Eg&&Eg in i}var sA=ec?eo:xd;function Za(i){var s=i&&i.constructor,u=typeof s=="function"&&s.prototype||Di;return i===u}function Ep(i){return i===i&&!ut(i)}function wp(i,s){return function(u){return u==null?!1:u[i]===s&&(s!==t||i in Ye(u))}}function cA(i){var s=Rc(i,function(f){return u.size===m&&u.clear(),f}),u=s.cache;return s}function lA(i,s){var u=i[1],f=s[1],v=u|f,E=v<(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],v|=u&k?0:N);var S=s[3];if(S){var P=i[3];i[3]=P?op(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?ip(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]=v,i}function uA(i){var s=[];if(i!=null)for(var u in Ye(i))s.push(u);return s}function dA(i){return nc.call(i)}function Tp(i,s,u){return s=kt(s===t?i.length-1:s,0),function(){for(var f=arguments,v=-1,E=kt(f.length-s,0),b=U(E);++v<E;)b[v]=f[s+v];v=-1;for(var S=U(s+1);++v<s;)S[v]=f[v];return S[s]=u(b),Tn(i,this,S)}}function bp(i,s){return s.length<2?i:ni(i,zn(s,0,-1))}function hA(i,s){for(var u=i.length,f=jt(s.length,u),v=hn(i);f--;){var E=s[f];i[f]=Zr(E,u)?v[E]:t}return i}function Cd(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var Ip=Ap(jg),es=AI||function(i,s){return Vt.setTimeout(i,s)},Ed=Ap(LS);function Sp(i,s,u){var f=s+"";return Ed(i,rA(f,fA(eA(f),u)))}function Ap(i){var s=0,u=0;return function(){var f=OI(),v=Be-(f-u);if(u=f,v>0){if(++s>=ue)return arguments[0]}else s=0;return i.apply(t,arguments)}}function Sc(i,s){var u=-1,f=i.length,v=f-1;for(s=s===t?f:s;++u<s;){var E=rd(u,v),b=i[E];i[E]=i[u],i[u]=b}return i.length=s,i}var kp=cA(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(nb,function(u,f,v,E){s.push(v?E.replace(ub,"$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 tc.call(i)}catch{}try{return i+""}catch{}}return""}function fA(i,s){return Hn(Ua,function(u){var f="_."+u[0];s&u[1]&&!Js(i,f)&&i.push(f)}),i.sort()}function Np(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 mA(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 v=0,E=0,b=U(cc(f/s));v<f;)b[E++]=zn(i,v,v+=s);return b}function gA(i){for(var s=-1,u=i==null?0:i.length,f=0,v=[];++s<u;){var E=i[s];E&&(v[f++]=E)}return v}function pA(){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 _A=Se(function(i,s){return pt(i)?ja(i,Ht(s,1,pt,!0)):[]}),vA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?ja(i,Ht(s,1,pt,!0),de(u,2)):[]}),yA=Se(function(i,s){var u=Gn(s);return pt(u)&&(u=t),pt(i)?ja(i,Ht(s,1,pt,!0),t,u):[]});function CA(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 EA(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 wA(i,s){return i&&i.length?vc(i,de(s,3),!0,!0):[]}function TA(i,s){return i&&i.length?vc(i,de(s,3),!0):[]}function bA(i,s,u,f){var v=i==null?0:i.length;return v?(u&&typeof u!="number"&&sn(i,s,u)&&(u=0,f=v),pS(i,s,u,f)):[]}function Rp(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=u==null?0:be(u);return v<0&&(v=kt(f+v,0)),Qs(i,de(s,3),v)}function Op(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=f-1;return u!==t&&(v=be(u),v=u<0?kt(f+v,0):jt(v,f-1)),Qs(i,de(s,3),v,!0)}function Pp(i){var s=i==null?0:i.length;return s?Ht(i,1):[]}function IA(i){var s=i==null?0:i.length;return s?Ht(i,Mt):[]}function SA(i,s){var u=i==null?0:i.length;return u?(s=s===t?1:be(s),Ht(i,s)):[]}function AA(i){for(var s=-1,u=i==null?0:i.length,f={};++s<u;){var v=i[s];f[v[0]]=v[1]}return f}function Mp(i){return i&&i.length?i[0]:t}function kA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=u==null?0:be(u);return v<0&&(v=kt(f+v,0)),Ri(i,s,v)}function NA(i){var s=i==null?0:i.length;return s?zn(i,0,-1):[]}var RA=Se(function(i){var s=st(i,cd);return s.length&&s[0]===i[0]?Xu(s):[]}),OA=Se(function(i){var s=Gn(i),u=st(i,cd);return s===Gn(u)?s=t:u.pop(),u.length&&u[0]===i[0]?Xu(u,de(s,2)):[]}),PA=Se(function(i){var s=Gn(i),u=st(i,cd);return s=typeof s=="function"?s:t,s&&u.pop(),u.length&&u[0]===i[0]?Xu(u,t,s):[]});function MA(i,s){return i==null?"":NI.call(i,s)}function Gn(i){var s=i==null?0:i.length;return s?i[s-1]:t}function DA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=f;return u!==t&&(v=be(u),v=v<0?kt(f+v,0):jt(v,f-1)),s===s?fI(i,s,v):Qs(i,fg,v,!0)}function LA(i,s){return i&&i.length?Wg(i,be(s)):t}var xA=Se(Dp);function Dp(i,s){return i&&i.length&&s&&s.length?nd(i,s):i}function UA(i,s,u){return i&&i.length&&s&&s.length?nd(i,s,de(u,2)):i}function BA(i,s,u){return i&&i.length&&s&&s.length?nd(i,s,t,u):i}var FA=Xr(function(i,s){var u=i==null?0:i.length,f=ju(i,s);return qg(i,st(s,function(v){return Zr(v,u)?+v:v}).sort(rp)),f});function VA(i,s){var u=[];if(!(i&&i.length))return u;var f=-1,v=[],E=i.length;for(s=de(s,3);++f<E;){var b=i[f];s(b,f,i)&&(u.push(b),v.push(f))}return qg(i,v),u}function wd(i){return i==null?i:MI.call(i)}function HA(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 $A(i,s){return _c(i,s)}function KA(i,s,u){return id(i,s,de(u,2))}function WA(i,s){var u=i==null?0:i.length;if(u){var f=_c(i,s);if(f<u&&dr(i[f],s))return f}return-1}function zA(i,s){return _c(i,s,!0)}function GA(i,s,u){return id(i,s,de(u,2),!0)}function qA(i,s){var u=i==null?0:i.length;if(u){var f=_c(i,s,!0)-1;if(dr(i[f],s))return f}return-1}function jA(i){return i&&i.length?Yg(i):[]}function YA(i,s){return i&&i.length?Yg(i,de(s,2)):[]}function JA(i){var s=i==null?0:i.length;return s?zn(i,1,s):[]}function QA(i,s,u){return i&&i.length?(s=u||s===t?1:be(s),zn(i,0,s<0?0:s)):[]}function XA(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 ZA(i,s){return i&&i.length?vc(i,de(s,3),!1,!0):[]}function ek(i,s){return i&&i.length?vc(i,de(s,3)):[]}var tk=Se(function(i){return So(Ht(i,1,pt,!0))}),nk=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),So(Ht(i,1,pt,!0),de(s,2))}),rk=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,So(Ht(i,1,pt,!0),t,s)});function ok(i){return i&&i.length?So(i):[]}function ik(i,s){return i&&i.length?So(i,de(s,2)):[]}function ak(i,s){return s=typeof s=="function"?s:t,i&&i.length?So(i,t,s):[]}function Td(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}),Vu(s,function(u){return st(i,Uu(u))})}function Lp(i,s){if(!(i&&i.length))return[];var u=Td(i);return s==null?u:st(u,function(f){return Tn(s,t,f)})}var sk=Se(function(i,s){return pt(i)?ja(i,s):[]}),ck=Se(function(i){return sd(Eo(i,pt))}),lk=Se(function(i){var s=Gn(i);return pt(s)&&(s=t),sd(Eo(i,pt),de(s,2))}),uk=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,sd(Eo(i,pt),t,s)}),dk=Se(Td);function hk(i,s){return Zg(i||[],s||[],qa)}function fk(i,s){return Zg(i||[],s||[],Qa)}var mk=Se(function(i){var s=i.length,u=s>1?i[s-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Lp(i,u)});function xp(i){var s=y(i);return s.__chain__=!0,s}function gk(i,s){return s(i),i}function Ac(i,s){return s(i)}var pk=Xr(function(i){var s=i.length,u=s?i[0]:0,f=this.__wrapped__,v=function(E){return ju(E,i)};return s>1||this.__actions__.length||!(f instanceof Oe)||!Zr(u)?this.thru(v):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Ac,args:[v],thisArg:t}),new Kn(f,this.__chain__).thru(function(E){return s&&!E.length&&E.push(t),E}))});function _k(){return xp(this)}function vk(){return new Kn(this.value(),this.__chain__)}function yk(){this.__values__===t&&(this.__values__=Jp(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function Ck(){return this}function Ek(i){for(var s,u=this;u instanceof hc;){var f=Np(u);f.__index__=0,f.__values__=t,s?v.__wrapped__=f:s=f;var v=f;u=u.__wrapped__}return v.__wrapped__=i,s}function wk(){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:Ac,args:[wd],thisArg:t}),new Kn(s,this.__chain__)}return this.thru(wd)}function Tk(){return Xg(this.__wrapped__,this.__actions__)}var bk=yc(function(i,s,u){$e.call(i,u)?++i[u]:Jr(i,u,1)});function Ik(i,s,u){var f=Ee(i)?dg:gS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}function Sk(i,s){var u=Ee(i)?Eo:Lg;return u(i,de(s,3))}var Ak=lp(Rp),kk=lp(Op);function Nk(i,s){return Ht(kc(i,s),1)}function Rk(i,s){return Ht(kc(i,s),Mt)}function Ok(i,s,u){return u=u===t?1:be(u),Ht(kc(i,s),u)}function Up(i,s){var u=Ee(i)?Hn:Io;return u(i,de(s,3))}function Bp(i,s){var u=Ee(i)?Jb:Dg;return u(i,de(s,3))}var Pk=yc(function(i,s,u){$e.call(i,u)?i[u].push(s):Jr(i,u,[s])});function Mk(i,s,u,f){i=fn(i)?i:$i(i),u=u&&!f?be(u):0;var v=i.length;return u<0&&(u=kt(v+u,0)),Mc(i)?u<=v&&i.indexOf(s,u)>-1:!!v&&Ri(i,s,u)>-1}var Dk=Se(function(i,s,u){var f=-1,v=typeof s=="function",E=fn(i)?U(i.length):[];return Io(i,function(b){E[++f]=v?Tn(s,b,u):Ya(b,s,u)}),E}),Lk=yc(function(i,s,u){Jr(i,u,s)});function kc(i,s){var u=Ee(i)?st:Hg;return u(i,de(s,3))}function xk(i,s,u,f){return i==null?[]:(Ee(s)||(s=s==null?[]:[s]),u=f?t:u,Ee(u)||(u=u==null?[]:[u]),zg(i,s,u))}var Uk=yc(function(i,s,u){i[u?0:1].push(s)},function(){return[[],[]]});function Bk(i,s,u){var f=Ee(i)?Lu:gg,v=arguments.length<3;return f(i,de(s,4),u,v,Io)}function Fk(i,s,u){var f=Ee(i)?Qb:gg,v=arguments.length<3;return f(i,de(s,4),u,v,Dg)}function Vk(i,s){var u=Ee(i)?Eo:Lg;return u(i,Oc(de(s,3)))}function Hk(i){var s=Ee(i)?Rg:MS;return s(i)}function $k(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=be(s);var f=Ee(i)?uS:DS;return f(i,s)}function Kk(i){var s=Ee(i)?dS:xS;return s(i)}function Wk(i){if(i==null)return 0;if(fn(i))return Mc(i)?Pi(i):i.length;var s=Yt(i);return s==Ft||s==oe?i.size:ed(i).length}function zk(i,s,u){var f=Ee(i)?xu:US;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}var Gk=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]]),zg(i,Ht(s,1),[])}),Nc=SI||function(){return Vt.Date.now()};function qk(i,s){if(typeof s!="function")throw new $n(c);return i=be(i),function(){if(--i<1)return s.apply(this,arguments)}}function Fp(i,s,u){return s=u?t:s,s=i&&s==null?i.length:s,Qr(i,M,t,t,t,t,s)}function Vp(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 bd=Se(function(i,s,u){var f=k;if(u.length){var v=To(u,Vi(bd));f|=K}return Qr(i,f,s,u,v)}),Hp=Se(function(i,s,u){var f=k|I;if(u.length){var v=To(u,Vi(Hp));f|=K}return Qr(s,f,i,u,v)});function $p(i,s,u){s=u?t:s;var f=Qr(i,D,t,t,t,t,t,s);return f.placeholder=$p.placeholder,f}function Kp(i,s,u){s=u?t:s;var f=Qr(i,L,t,t,t,t,t,s);return f.placeholder=Kp.placeholder,f}function Wp(i,s,u){var f,v,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 hr=f,no=v;return f=v=t,W=_t,b=i.apply(no,hr),b}function he(_t){return W=_t,S=es(Re,s),z?se(_t):b}function Ie(_t){var hr=_t-P,no=_t-W,l_=s-hr;return j?jt(l_,E-no):l_}function fe(_t){var hr=_t-P,no=_t-W;return P===t||hr>=s||hr<0||j&&no>=E}function Re(){var _t=Nc();if(fe(_t))return Pe(_t);S=es(Re,Ie(_t))}function Pe(_t){return S=t,te&&f?se(_t):(f=v=t,b)}function An(){S!==t&&ep(S),W=0,f=P=v=S=t}function cn(){return S===t?b:Pe(Nc())}function kn(){var _t=Nc(),hr=fe(_t);if(f=arguments,v=this,P=_t,hr){if(S===t)return he(P);if(j)return ep(S),S=es(Re,s),se(P)}return S===t&&(S=es(Re,s)),b}return kn.cancel=An,kn.flush=cn,kn}var jk=Se(function(i,s){return Mg(i,1,s)}),Yk=Se(function(i,s,u){return Mg(i,qn(s)||0,u)});function Jk(i){return Qr(i,ae)}function Rc(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new $n(c);var u=function(){var f=arguments,v=s?s.apply(this,f):f[0],E=u.cache;if(E.has(v))return E.get(v);var b=i.apply(this,f);return u.cache=E.set(v,b)||E,b};return u.cache=new(Rc.Cache||Yr),u}Rc.Cache=Yr;function Oc(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 Qk(i){return Vp(2,i)}var Xk=BS(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 v=-1,E=jt(f.length,u);++v<E;)f[v]=s[v].call(this,f[v]);return Tn(i,this,f)})}),Id=Se(function(i,s){var u=To(s,Vi(Id));return Qr(i,K,t,s,u)}),zp=Se(function(i,s){var u=To(s,Vi(zp));return Qr(i,q,t,s,u)}),Zk=Xr(function(i,s){return Qr(i,ce,t,t,t,s)});function eN(i,s){if(typeof i!="function")throw new $n(c);return s=s===t?s:be(s),Se(i,s)}function tN(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],v=ko(u,0,s);return f&&wo(v,f),Tn(i,this,v)})}function nN(i,s,u){var f=!0,v=!0;if(typeof i!="function")throw new $n(c);return ut(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),Wp(i,s,{leading:f,maxWait:s,trailing:v})}function rN(i){return Fp(i,1)}function oN(i,s){return Id(ld(s),i)}function iN(){if(!arguments.length)return[];var i=arguments[0];return Ee(i)?i:[i]}function aN(i){return Wn(i,w)}function sN(i,s){return s=typeof s=="function"?s:t,Wn(i,w,s)}function cN(i){return Wn(i,_|w)}function lN(i,s){return s=typeof s=="function"?s:t,Wn(i,_|w,s)}function uN(i,s){return s==null||Pg(i,s,Dt(s))}function dr(i,s){return i===s||i!==i&&s!==s}var dN=Tc(Qu),hN=Tc(function(i,s){return i>=s}),ii=Bg(function(){return arguments}())?Bg:function(i){return ht(i)&&$e.call(i,"callee")&&!bg.call(i,"callee")},Ee=U.isArray,fN=ig?bn(ig):ES;function fn(i){return i!=null&&Pc(i.length)&&!eo(i)}function pt(i){return ht(i)&&fn(i)}function mN(i){return i===!0||i===!1||ht(i)&&an(i)==Ar}var No=kI||xd,gN=ag?bn(ag):wS;function pN(i){return ht(i)&&i.nodeType===1&&!ts(i)}function _N(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(Za(i))return!ed(i).length;for(var u in i)if($e.call(i,u))return!1;return!0}function vN(i,s){return Ja(i,s)}function yN(i,s,u){u=typeof u=="function"?u:t;var f=u?u(i,s):t;return f===t?Ja(i,s,t,u):!!f}function Sd(i){if(!ht(i))return!1;var s=an(i);return s==_o||s==Fa||typeof i.message=="string"&&typeof i.name=="string"&&!ts(i)}function CN(i){return typeof i=="number"&&Sg(i)}function eo(i){if(!ut(i))return!1;var s=an(i);return s==vo||s==yo||s==Ba||s==R}function Gp(i){return typeof i=="number"&&i==be(i)}function Pc(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 qp=sg?bn(sg):bS;function EN(i,s){return i===s||Zu(i,s,pd(s))}function wN(i,s,u){return u=typeof u=="function"?u:t,Zu(i,s,pd(s),u)}function TN(i){return jp(i)&&i!=+i}function bN(i){if(sA(i))throw new Ce(a);return Fg(i)}function IN(i){return i===null}function SN(i){return i==null}function jp(i){return typeof i=="number"||ht(i)&&an(i)==En}function ts(i){if(!ht(i)||an(i)!=wn)return!1;var s=ic(i);if(s===null)return!0;var u=$e.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&tc.call(u)==wI}var Ad=cg?bn(cg):IS;function AN(i){return Gp(i)&&i>=-at&&i<=at}var Yp=lg?bn(lg):SS;function Mc(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=ug?bn(ug):AS;function kN(i){return i===t}function NN(i){return ht(i)&&Yt(i)==V}function RN(i){return ht(i)&&an(i)==J}var ON=Tc(td),PN=Tc(function(i,s){return i<=s});function Jp(i){if(!i)return[];if(fn(i))return Mc(i)?lr(i):hn(i);if($a&&i[$a])return uI(i[$a]());var s=Yt(i),u=s==Ft?$u:s==oe?Xs:$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 Qp(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=pg(i);var u=fb.test(i);return u||gb.test(i)?qb(i.slice(2),u?2:8):hb.test(i)?on:+i}function Xp(i){return Rr(i,mn(i))}function MN(i){return i?ti(be(i),-at,at):i===0?i:0}function He(i){return i==null?"":In(i)}var DN=Bi(function(i,s){if(Za(s)||fn(s)){Rr(s,Dt(s),i);return}for(var u in s)$e.call(s,u)&&qa(i,u,s[u])}),Zp=Bi(function(i,s){Rr(s,mn(s),i)}),Dc=Bi(function(i,s,u,f){Rr(s,mn(s),i,f)}),LN=Bi(function(i,s,u,f){Rr(s,Dt(s),i,f)}),xN=Xr(ju);function UN(i,s){var u=Ui(i);return s==null?u:Og(u,s)}var BN=Se(function(i,s){i=Ye(i);var u=-1,f=s.length,v=f>2?s[2]:t;for(v&&sn(s[0],s[1],v)&&(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||dr(z,Di[W])&&!$e.call(i,W))&&(i[W]=E[W])}return i}),FN=Se(function(i){return i.push(t,pp),Tn(e_,t,i)});function VN(i,s){return hg(i,de(s,3),Nr)}function HN(i,s){return hg(i,de(s,3),Ju)}function $N(i,s){return i==null?i:Yu(i,de(s,3),mn)}function KN(i,s){return i==null?i:xg(i,de(s,3),mn)}function WN(i,s){return i&&Nr(i,de(s,3))}function zN(i,s){return i&&Ju(i,de(s,3))}function GN(i){return i==null?[]:gc(i,Dt(i))}function qN(i){return i==null?[]:gc(i,mn(i))}function kd(i,s,u){var f=i==null?t:ni(i,s);return f===t?u:f}function jN(i,s){return i!=null&&yp(i,s,_S)}function Nd(i,s){return i!=null&&yp(i,s,vS)}var YN=dp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=nc.call(s)),i[s]=u},Od(gn)),JN=dp(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=nc.call(s)),$e.call(i,s)?i[s].push(u):i[s]=[u]},de),QN=Se(Ya);function Dt(i){return fn(i)?Ng(i):ed(i)}function mn(i){return fn(i)?Ng(i,!0):kS(i)}function XN(i,s){var u={};return s=de(s,3),Nr(i,function(f,v,E){Jr(u,s(f,v,E),f)}),u}function ZN(i,s){var u={};return s=de(s,3),Nr(i,function(f,v,E){Jr(u,v,s(f,v,E))}),u}var eR=Bi(function(i,s,u){pc(i,s,u)}),e_=Bi(function(i,s,u,f){pc(i,s,u,f)}),tR=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,md(i),u),f&&(u=Wn(u,_|p|w,YS));for(var v=s.length;v--;)ad(u,s[v]);return u});function nR(i,s){return t_(i,Oc(de(s)))}var rR=Xr(function(i,s){return i==null?{}:RS(i,s)});function t_(i,s){if(i==null)return{};var u=st(md(i),function(f){return[f]});return s=de(s),Gg(i,u,function(f,v){return s(f,v[0])})}function oR(i,s,u){s=Ao(s,i);var f=-1,v=s.length;for(v||(v=1,i=t);++f<v;){var E=i==null?t:i[Or(s[f])];E===t&&(f=v,E=u),i=eo(E)?E.call(i):E}return i}function iR(i,s,u){return i==null?i:Qa(i,s,u)}function aR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Qa(i,s,u,f)}var n_=mp(Dt),r_=mp(mn);function sR(i,s,u){var f=Ee(i),v=f||No(i)||Hi(i);if(s=de(s,4),u==null){var E=i&&i.constructor;v?u=f?new E:[]:ut(i)?u=eo(E)?Ui(ic(i)):{}:u={}}return(v?Hn:Nr)(i,function(b,S,P){return s(u,b,S,P)}),u}function cR(i,s){return i==null?!0:ad(i,s)}function lR(i,s,u){return i==null?i:Qg(i,s,ld(u))}function uR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Qg(i,s,ld(u),f)}function $i(i){return i==null?[]:Hu(i,Dt(i))}function dR(i){return i==null?[]:Hu(i,mn(i))}function hR(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 fR(i,s,u){return s=to(s),u===t?(u=s,s=0):u=to(u),i=qn(i),yS(i,s,u)}function mR(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 v=Ag();return jt(i+v*(s-i+Gb("1e-"+((v+"").length-1))),s)}return rd(i,s)}var gR=Fi(function(i,s,u){return s=s.toLowerCase(),i+(u?o_(s):s)});function o_(i){return Rd(He(i).toLowerCase())}function i_(i){return i=He(i),i&&i.replace(_b,iI).replace(xb,"")}function pR(i,s,u){i=He(i),s=In(s);var f=i.length;u=u===t?f:ti(be(u),0,f);var v=u;return u-=s.length,u>=0&&i.slice(u,v)==s}function _R(i){return i=He(i),i&&QT.test(i)?i.replace(xm,aI):i}function vR(i){return i=He(i),i&&rb.test(i)?i.replace(Iu,"\\$&"):i}var yR=Fi(function(i,s,u){return i+(u?"-":"")+s.toLowerCase()}),CR=Fi(function(i,s,u){return i+(u?" ":"")+s.toLowerCase()}),ER=cp("toLowerCase");function wR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;if(!s||f>=s)return i;var v=(s-f)/2;return wc(lc(v),u)+i+wc(cc(v),u)}function TR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?i+wc(s-f,u):i}function bR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?wc(s-f,u)+i:i}function IR(i,s,u){return u||s==null?s=0:s&&(s=+s),PI(He(i).replace(Su,""),s||0)}function SR(i,s,u){return(u?sn(i,s,u):s===t)?s=1:s=be(s),od(He(i),s)}function AR(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var kR=Fi(function(i,s,u){return i+(u?"_":"")+s.toLowerCase()});function NR(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&&!Ad(s))&&(s=In(s),!s&&Oi(i))?ko(lr(i),0,u):i.split(s,u)):[]}var RR=Fi(function(i,s,u){return i+(u?" ":"")+Rd(s)});function OR(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 PR(i,s,u){var f=y.templateSettings;u&&sn(i,s,u)&&(s=t),i=He(i),s=Dc({},s,f,gp);var v=Dc({},s.imports,f.imports,gp),E=Dt(v),b=Hu(v,E),S,P,W=0,z=s.interpolate||qs,j="__p += '",te=Ku((s.escape||qs).source+"|"+z.source+"|"+(z===Um?db:qs).source+"|"+(s.evaluate||qs).source+"|$","g"),se="//# sourceURL="+($e.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hb+"]")+`
56
- `;i.replace(te,function(fe,Re,Pe,An,cn,kn){return Pe||(Pe=An),j+=i.slice(W,kn).replace(vb,sI),Re&&(S=!0,j+=`' +
55
+ `)}function tA(i){return Ee(i)||ii(i)||!!(bg&&i&&i[bg])}function Zr(i,s){var u=typeof i;return s=s??at,!!s&&(u=="number"||u!="symbol"&&fb.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)?dr(u[s],i):!1}function _d(i,s){if(Ee(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||Sn(i)?!0:XT.test(i)||!QT.test(i)||s!=null&&i in Ye(s)}function nA(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function vd(i){var s=bc(i),u=y[s];if(typeof u!="function"||!(s in Oe.prototype))return!1;if(i===u)return!0;var f=md(u);return!!f&&i===f[0]}function rA(i){return!!Cg&&Cg in i}var oA=ec?eo:Ld;function Za(i){var s=i&&i.constructor,u=typeof s=="function"&&s.prototype||Di;return i===u}function Cp(i){return i===i&&!ut(i)}function Ep(i,s){return function(u){return u==null?!1:u[i]===s&&(s!==t||i in Ye(u))}}function iA(i){var s=Rc(i,function(f){return u.size===m&&u.clear(),f}),u=s.cache;return s}function aA(i,s){var u=i[1],f=s[1],v=u|f,E=v<(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],v|=u&k?0:N);var S=s[3];if(S){var P=i[3];i[3]=P?rp(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?op(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]=v,i}function sA(i){var s=[];if(i!=null)for(var u in Ye(i))s.push(u);return s}function cA(i){return nc.call(i)}function wp(i,s,u){return s=kt(s===t?i.length-1:s,0),function(){for(var f=arguments,v=-1,E=kt(f.length-s,0),b=U(E);++v<E;)b[v]=f[s+v];v=-1;for(var S=U(s+1);++v<s;)S[v]=f[v];return S[s]=u(b),Tn(i,this,S)}}function Tp(i,s){return s.length<2?i:ni(i,zn(s,0,-1))}function lA(i,s){for(var u=i.length,f=jt(s.length,u),v=hn(i);f--;){var E=s[f];i[f]=Zr(E,u)?v[E]:t}return i}function yd(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var bp=Sp(qg),es=bI||function(i,s){return Vt.setTimeout(i,s)},Cd=Sp(PS);function Ip(i,s,u){var f=s+"";return Cd(i,eA(f,uA(QS(f),u)))}function Sp(i){var s=0,u=0;return function(){var f=kI(),v=Be-(f-u);if(u=f,v>0){if(++s>=ue)return arguments[0]}else s=0;return i.apply(t,arguments)}}function Sc(i,s){var u=-1,f=i.length,v=f-1;for(s=s===t?f:s;++u<s;){var E=nd(u,v),b=i[E];i[E]=i[u],i[u]=b}return i.length=s,i}var Ap=iA(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(ZT,function(u,f,v,E){s.push(v?E.replace(sb,"$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 tc.call(i)}catch{}try{return i+""}catch{}}return""}function uA(i,s){return Hn(Ua,function(u){var f="_."+u[0];s&u[1]&&!Js(i,f)&&i.push(f)}),i.sort()}function kp(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 dA(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 v=0,E=0,b=U(cc(f/s));v<f;)b[E++]=zn(i,v,v+=s);return b}function hA(i){for(var s=-1,u=i==null?0:i.length,f=0,v=[];++s<u;){var E=i[s];E&&(v[f++]=E)}return v}function fA(){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 mA=Se(function(i,s){return gt(i)?ja(i,Ht(s,1,gt,!0)):[]}),gA=Se(function(i,s){var u=Gn(s);return gt(u)&&(u=t),gt(i)?ja(i,Ht(s,1,gt,!0),de(u,2)):[]}),pA=Se(function(i,s){var u=Gn(s);return gt(u)&&(u=t),gt(i)?ja(i,Ht(s,1,gt,!0),t,u):[]});function _A(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 vA(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 yA(i,s){return i&&i.length?vc(i,de(s,3),!0,!0):[]}function CA(i,s){return i&&i.length?vc(i,de(s,3),!0):[]}function EA(i,s,u,f){var v=i==null?0:i.length;return v?(u&&typeof u!="number"&&sn(i,s,u)&&(u=0,f=v),fS(i,s,u,f)):[]}function Np(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=u==null?0:be(u);return v<0&&(v=kt(f+v,0)),Qs(i,de(s,3),v)}function Rp(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=f-1;return u!==t&&(v=be(u),v=u<0?kt(f+v,0):jt(v,f-1)),Qs(i,de(s,3),v,!0)}function Op(i){var s=i==null?0:i.length;return s?Ht(i,1):[]}function wA(i){var s=i==null?0:i.length;return s?Ht(i,Mt):[]}function TA(i,s){var u=i==null?0:i.length;return u?(s=s===t?1:be(s),Ht(i,s)):[]}function bA(i){for(var s=-1,u=i==null?0:i.length,f={};++s<u;){var v=i[s];f[v[0]]=v[1]}return f}function Pp(i){return i&&i.length?i[0]:t}function IA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=u==null?0:be(u);return v<0&&(v=kt(f+v,0)),Ri(i,s,v)}function SA(i){var s=i==null?0:i.length;return s?zn(i,0,-1):[]}var AA=Se(function(i){var s=st(i,sd);return s.length&&s[0]===i[0]?Qu(s):[]}),kA=Se(function(i){var s=Gn(i),u=st(i,sd);return s===Gn(u)?s=t:u.pop(),u.length&&u[0]===i[0]?Qu(u,de(s,2)):[]}),NA=Se(function(i){var s=Gn(i),u=st(i,sd);return s=typeof s=="function"?s:t,s&&u.pop(),u.length&&u[0]===i[0]?Qu(u,t,s):[]});function RA(i,s){return i==null?"":SI.call(i,s)}function Gn(i){var s=i==null?0:i.length;return s?i[s-1]:t}function OA(i,s,u){var f=i==null?0:i.length;if(!f)return-1;var v=f;return u!==t&&(v=be(u),v=v<0?kt(f+v,0):jt(v,f-1)),s===s?uI(i,s,v):Qs(i,hg,v,!0)}function PA(i,s){return i&&i.length?Kg(i,be(s)):t}var MA=Se(Mp);function Mp(i,s){return i&&i.length&&s&&s.length?td(i,s):i}function DA(i,s,u){return i&&i.length&&s&&s.length?td(i,s,de(u,2)):i}function LA(i,s,u){return i&&i.length&&s&&s.length?td(i,s,t,u):i}var xA=Xr(function(i,s){var u=i==null?0:i.length,f=qu(i,s);return Gg(i,st(s,function(v){return Zr(v,u)?+v:v}).sort(np)),f});function UA(i,s){var u=[];if(!(i&&i.length))return u;var f=-1,v=[],E=i.length;for(s=de(s,3);++f<E;){var b=i[f];s(b,f,i)&&(u.push(b),v.push(f))}return Gg(i,v),u}function Ed(i){return i==null?i:RI.call(i)}function BA(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 FA(i,s){return _c(i,s)}function VA(i,s,u){return od(i,s,de(u,2))}function HA(i,s){var u=i==null?0:i.length;if(u){var f=_c(i,s);if(f<u&&dr(i[f],s))return f}return-1}function $A(i,s){return _c(i,s,!0)}function KA(i,s,u){return od(i,s,de(u,2),!0)}function WA(i,s){var u=i==null?0:i.length;if(u){var f=_c(i,s,!0)-1;if(dr(i[f],s))return f}return-1}function zA(i){return i&&i.length?jg(i):[]}function GA(i,s){return i&&i.length?jg(i,de(s,2)):[]}function qA(i){var s=i==null?0:i.length;return s?zn(i,1,s):[]}function jA(i,s,u){return i&&i.length?(s=u||s===t?1:be(s),zn(i,0,s<0?0:s)):[]}function YA(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?vc(i,de(s,3),!1,!0):[]}function QA(i,s){return i&&i.length?vc(i,de(s,3)):[]}var XA=Se(function(i){return So(Ht(i,1,gt,!0))}),ZA=Se(function(i){var s=Gn(i);return gt(s)&&(s=t),So(Ht(i,1,gt,!0),de(s,2))}),ek=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,So(Ht(i,1,gt,!0),t,s)});function tk(i){return i&&i.length?So(i):[]}function nk(i,s){return i&&i.length?So(i,de(s,2)):[]}function rk(i,s){return s=typeof s=="function"?s:t,i&&i.length?So(i,t,s):[]}function wd(i){if(!(i&&i.length))return[];var s=0;return i=Eo(i,function(u){if(gt(u))return s=kt(u.length,s),!0}),Fu(s,function(u){return st(i,xu(u))})}function Dp(i,s){if(!(i&&i.length))return[];var u=wd(i);return s==null?u:st(u,function(f){return Tn(s,t,f)})}var ok=Se(function(i,s){return gt(i)?ja(i,s):[]}),ik=Se(function(i){return ad(Eo(i,gt))}),ak=Se(function(i){var s=Gn(i);return gt(s)&&(s=t),ad(Eo(i,gt),de(s,2))}),sk=Se(function(i){var s=Gn(i);return s=typeof s=="function"?s:t,ad(Eo(i,gt),t,s)}),ck=Se(wd);function lk(i,s){return Xg(i||[],s||[],qa)}function uk(i,s){return Xg(i||[],s||[],Qa)}var dk=Se(function(i){var s=i.length,u=s>1?i[s-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Dp(i,u)});function Lp(i){var s=y(i);return s.__chain__=!0,s}function hk(i,s){return s(i),i}function Ac(i,s){return s(i)}var fk=Xr(function(i){var s=i.length,u=s?i[0]:0,f=this.__wrapped__,v=function(E){return qu(E,i)};return s>1||this.__actions__.length||!(f instanceof Oe)||!Zr(u)?this.thru(v):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Ac,args:[v],thisArg:t}),new Kn(f,this.__chain__).thru(function(E){return s&&!E.length&&E.push(t),E}))});function mk(){return Lp(this)}function gk(){return new Kn(this.value(),this.__chain__)}function pk(){this.__values__===t&&(this.__values__=Yp(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function _k(){return this}function vk(i){for(var s,u=this;u instanceof hc;){var f=kp(u);f.__index__=0,f.__values__=t,s?v.__wrapped__=f:s=f;var v=f;u=u.__wrapped__}return v.__wrapped__=i,s}function yk(){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:Ac,args:[Ed],thisArg:t}),new Kn(s,this.__chain__)}return this.thru(Ed)}function Ck(){return Qg(this.__wrapped__,this.__actions__)}var Ek=yc(function(i,s,u){$e.call(i,u)?++i[u]:Jr(i,u,1)});function wk(i,s,u){var f=Ee(i)?ug:hS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}function Tk(i,s){var u=Ee(i)?Eo:Dg;return u(i,de(s,3))}var bk=cp(Np),Ik=cp(Rp);function Sk(i,s){return Ht(kc(i,s),1)}function Ak(i,s){return Ht(kc(i,s),Mt)}function kk(i,s,u){return u=u===t?1:be(u),Ht(kc(i,s),u)}function xp(i,s){var u=Ee(i)?Hn:Io;return u(i,de(s,3))}function Up(i,s){var u=Ee(i)?qb:Mg;return u(i,de(s,3))}var Nk=yc(function(i,s,u){$e.call(i,u)?i[u].push(s):Jr(i,u,[s])});function Rk(i,s,u,f){i=fn(i)?i:$i(i),u=u&&!f?be(u):0;var v=i.length;return u<0&&(u=kt(v+u,0)),Mc(i)?u<=v&&i.indexOf(s,u)>-1:!!v&&Ri(i,s,u)>-1}var Ok=Se(function(i,s,u){var f=-1,v=typeof s=="function",E=fn(i)?U(i.length):[];return Io(i,function(b){E[++f]=v?Tn(s,b,u):Ya(b,s,u)}),E}),Pk=yc(function(i,s,u){Jr(i,u,s)});function kc(i,s){var u=Ee(i)?st:Vg;return u(i,de(s,3))}function Mk(i,s,u,f){return i==null?[]:(Ee(s)||(s=s==null?[]:[s]),u=f?t:u,Ee(u)||(u=u==null?[]:[u]),Wg(i,s,u))}var Dk=yc(function(i,s,u){i[u?0:1].push(s)},function(){return[[],[]]});function Lk(i,s,u){var f=Ee(i)?Du:mg,v=arguments.length<3;return f(i,de(s,4),u,v,Io)}function xk(i,s,u){var f=Ee(i)?jb:mg,v=arguments.length<3;return f(i,de(s,4),u,v,Mg)}function Uk(i,s){var u=Ee(i)?Eo:Dg;return u(i,Oc(de(s,3)))}function Bk(i){var s=Ee(i)?Ng:RS;return s(i)}function Fk(i,s,u){(u?sn(i,s,u):s===t)?s=1:s=be(s);var f=Ee(i)?sS:OS;return f(i,s)}function Vk(i){var s=Ee(i)?cS:MS;return s(i)}function Hk(i){if(i==null)return 0;if(fn(i))return Mc(i)?Pi(i):i.length;var s=Yt(i);return s==Ft||s==oe?i.size:Zu(i).length}function $k(i,s,u){var f=Ee(i)?Lu:DS;return u&&sn(i,s,u)&&(s=t),f(i,de(s,3))}var Kk=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]]),Wg(i,Ht(s,1),[])}),Nc=TI||function(){return Vt.Date.now()};function Wk(i,s){if(typeof s!="function")throw new $n(c);return i=be(i),function(){if(--i<1)return s.apply(this,arguments)}}function Bp(i,s,u){return s=u?t:s,s=i&&s==null?i.length:s,Qr(i,M,t,t,t,t,s)}function Fp(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 Td=Se(function(i,s,u){var f=k;if(u.length){var v=To(u,Vi(Td));f|=K}return Qr(i,f,s,u,v)}),Vp=Se(function(i,s,u){var f=k|I;if(u.length){var v=To(u,Vi(Vp));f|=K}return Qr(s,f,i,u,v)});function Hp(i,s,u){s=u?t:s;var f=Qr(i,D,t,t,t,t,t,s);return f.placeholder=Hp.placeholder,f}function $p(i,s,u){s=u?t:s;var f=Qr(i,L,t,t,t,t,t,s);return f.placeholder=$p.placeholder,f}function Kp(i,s,u){var f,v,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(pt){var hr=f,no=v;return f=v=t,W=pt,b=i.apply(no,hr),b}function he(pt){return W=pt,S=es(Re,s),z?se(pt):b}function Ie(pt){var hr=pt-P,no=pt-W,c_=s-hr;return j?jt(c_,E-no):c_}function fe(pt){var hr=pt-P,no=pt-W;return P===t||hr>=s||hr<0||j&&no>=E}function Re(){var pt=Nc();if(fe(pt))return Pe(pt);S=es(Re,Ie(pt))}function Pe(pt){return S=t,te&&f?se(pt):(f=v=t,b)}function An(){S!==t&&Zg(S),W=0,f=P=v=S=t}function cn(){return S===t?b:Pe(Nc())}function kn(){var pt=Nc(),hr=fe(pt);if(f=arguments,v=this,P=pt,hr){if(S===t)return he(P);if(j)return Zg(S),S=es(Re,s),se(P)}return S===t&&(S=es(Re,s)),b}return kn.cancel=An,kn.flush=cn,kn}var zk=Se(function(i,s){return Pg(i,1,s)}),Gk=Se(function(i,s,u){return Pg(i,qn(s)||0,u)});function qk(i){return Qr(i,ae)}function Rc(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new $n(c);var u=function(){var f=arguments,v=s?s.apply(this,f):f[0],E=u.cache;if(E.has(v))return E.get(v);var b=i.apply(this,f);return u.cache=E.set(v,b)||E,b};return u.cache=new(Rc.Cache||Yr),u}Rc.Cache=Yr;function Oc(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 jk(i){return Fp(2,i)}var Yk=LS(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 v=-1,E=jt(f.length,u);++v<E;)f[v]=s[v].call(this,f[v]);return Tn(i,this,f)})}),bd=Se(function(i,s){var u=To(s,Vi(bd));return Qr(i,K,t,s,u)}),Wp=Se(function(i,s){var u=To(s,Vi(Wp));return Qr(i,q,t,s,u)}),Jk=Xr(function(i,s){return Qr(i,ce,t,t,t,s)});function Qk(i,s){if(typeof i!="function")throw new $n(c);return s=s===t?s:be(s),Se(i,s)}function Xk(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],v=ko(u,0,s);return f&&wo(v,f),Tn(i,this,v)})}function Zk(i,s,u){var f=!0,v=!0;if(typeof i!="function")throw new $n(c);return ut(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),Kp(i,s,{leading:f,maxWait:s,trailing:v})}function eN(i){return Bp(i,1)}function tN(i,s){return bd(cd(s),i)}function nN(){if(!arguments.length)return[];var i=arguments[0];return Ee(i)?i:[i]}function rN(i){return Wn(i,w)}function oN(i,s){return s=typeof s=="function"?s:t,Wn(i,w,s)}function iN(i){return Wn(i,_|w)}function aN(i,s){return s=typeof s=="function"?s:t,Wn(i,_|w,s)}function sN(i,s){return s==null||Og(i,s,Dt(s))}function dr(i,s){return i===s||i!==i&&s!==s}var cN=Tc(Ju),lN=Tc(function(i,s){return i>=s}),ii=Ug(function(){return arguments}())?Ug:function(i){return dt(i)&&$e.call(i,"callee")&&!Tg.call(i,"callee")},Ee=U.isArray,uN=og?bn(og):vS;function fn(i){return i!=null&&Pc(i.length)&&!eo(i)}function gt(i){return dt(i)&&fn(i)}function dN(i){return i===!0||i===!1||dt(i)&&an(i)==Ar}var No=II||Ld,hN=ig?bn(ig):yS;function fN(i){return dt(i)&&i.nodeType===1&&!ts(i)}function mN(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(Za(i))return!Zu(i).length;for(var u in i)if($e.call(i,u))return!1;return!0}function gN(i,s){return Ja(i,s)}function pN(i,s,u){u=typeof u=="function"?u:t;var f=u?u(i,s):t;return f===t?Ja(i,s,t,u):!!f}function Id(i){if(!dt(i))return!1;var s=an(i);return s==_o||s==Fa||typeof i.message=="string"&&typeof i.name=="string"&&!ts(i)}function _N(i){return typeof i=="number"&&Ig(i)}function eo(i){if(!ut(i))return!1;var s=an(i);return s==vo||s==yo||s==Ba||s==R}function zp(i){return typeof i=="number"&&i==be(i)}function Pc(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 dt(i){return i!=null&&typeof i=="object"}var Gp=ag?bn(ag):ES;function vN(i,s){return i===s||Xu(i,s,gd(s))}function yN(i,s,u){return u=typeof u=="function"?u:t,Xu(i,s,gd(s),u)}function CN(i){return qp(i)&&i!=+i}function EN(i){if(oA(i))throw new Ce(a);return Bg(i)}function wN(i){return i===null}function TN(i){return i==null}function qp(i){return typeof i=="number"||dt(i)&&an(i)==En}function ts(i){if(!dt(i)||an(i)!=wn)return!1;var s=ic(i);if(s===null)return!0;var u=$e.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&tc.call(u)==yI}var Sd=sg?bn(sg):wS;function bN(i){return zp(i)&&i>=-at&&i<=at}var jp=cg?bn(cg):TS;function Mc(i){return typeof i=="string"||!Ee(i)&&dt(i)&&an(i)==je}function Sn(i){return typeof i=="symbol"||dt(i)&&an(i)==Ze}var Hi=lg?bn(lg):bS;function IN(i){return i===t}function SN(i){return dt(i)&&Yt(i)==V}function AN(i){return dt(i)&&an(i)==J}var kN=Tc(ed),NN=Tc(function(i,s){return i<=s});function Yp(i){if(!i)return[];if(fn(i))return Mc(i)?lr(i):hn(i);if($a&&i[$a])return sI(i[$a]());var s=Yt(i),u=s==Ft?Hu:s==oe?Xs:$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=gg(i);var u=ub.test(i);return u||hb.test(i)?Wb(i.slice(2),u?2:8):lb.test(i)?on:+i}function Qp(i){return Rr(i,mn(i))}function RN(i){return i?ti(be(i),-at,at):i===0?i:0}function He(i){return i==null?"":In(i)}var ON=Bi(function(i,s){if(Za(s)||fn(s)){Rr(s,Dt(s),i);return}for(var u in s)$e.call(s,u)&&qa(i,u,s[u])}),Xp=Bi(function(i,s){Rr(s,mn(s),i)}),Dc=Bi(function(i,s,u,f){Rr(s,mn(s),i,f)}),PN=Bi(function(i,s,u,f){Rr(s,Dt(s),i,f)}),MN=Xr(qu);function DN(i,s){var u=Ui(i);return s==null?u:Rg(u,s)}var LN=Se(function(i,s){i=Ye(i);var u=-1,f=s.length,v=f>2?s[2]:t;for(v&&sn(s[0],s[1],v)&&(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||dr(z,Di[W])&&!$e.call(i,W))&&(i[W]=E[W])}return i}),xN=Se(function(i){return i.push(t,gp),Tn(Zp,t,i)});function UN(i,s){return dg(i,de(s,3),Nr)}function BN(i,s){return dg(i,de(s,3),Yu)}function FN(i,s){return i==null?i:ju(i,de(s,3),mn)}function VN(i,s){return i==null?i:Lg(i,de(s,3),mn)}function HN(i,s){return i&&Nr(i,de(s,3))}function $N(i,s){return i&&Yu(i,de(s,3))}function KN(i){return i==null?[]:gc(i,Dt(i))}function WN(i){return i==null?[]:gc(i,mn(i))}function Ad(i,s,u){var f=i==null?t:ni(i,s);return f===t?u:f}function zN(i,s){return i!=null&&vp(i,s,mS)}function kd(i,s){return i!=null&&vp(i,s,gS)}var GN=up(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=nc.call(s)),i[s]=u},Rd(gn)),qN=up(function(i,s,u){s!=null&&typeof s.toString!="function"&&(s=nc.call(s)),$e.call(i,s)?i[s].push(u):i[s]=[u]},de),jN=Se(Ya);function Dt(i){return fn(i)?kg(i):Zu(i)}function mn(i){return fn(i)?kg(i,!0):IS(i)}function YN(i,s){var u={};return s=de(s,3),Nr(i,function(f,v,E){Jr(u,s(f,v,E),f)}),u}function JN(i,s){var u={};return s=de(s,3),Nr(i,function(f,v,E){Jr(u,v,s(f,v,E))}),u}var QN=Bi(function(i,s,u){pc(i,s,u)}),Zp=Bi(function(i,s,u,f){pc(i,s,u,f)}),XN=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,fd(i),u),f&&(u=Wn(u,_|p|w,GS));for(var v=s.length;v--;)id(u,s[v]);return u});function ZN(i,s){return e_(i,Oc(de(s)))}var eR=Xr(function(i,s){return i==null?{}:AS(i,s)});function e_(i,s){if(i==null)return{};var u=st(fd(i),function(f){return[f]});return s=de(s),zg(i,u,function(f,v){return s(f,v[0])})}function tR(i,s,u){s=Ao(s,i);var f=-1,v=s.length;for(v||(v=1,i=t);++f<v;){var E=i==null?t:i[Or(s[f])];E===t&&(f=v,E=u),i=eo(E)?E.call(i):E}return i}function nR(i,s,u){return i==null?i:Qa(i,s,u)}function rR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Qa(i,s,u,f)}var t_=fp(Dt),n_=fp(mn);function oR(i,s,u){var f=Ee(i),v=f||No(i)||Hi(i);if(s=de(s,4),u==null){var E=i&&i.constructor;v?u=f?new E:[]:ut(i)?u=eo(E)?Ui(ic(i)):{}:u={}}return(v?Hn:Nr)(i,function(b,S,P){return s(u,b,S,P)}),u}function iR(i,s){return i==null?!0:id(i,s)}function aR(i,s,u){return i==null?i:Jg(i,s,cd(u))}function sR(i,s,u,f){return f=typeof f=="function"?f:t,i==null?i:Jg(i,s,cd(u),f)}function $i(i){return i==null?[]:Vu(i,Dt(i))}function cR(i){return i==null?[]:Vu(i,mn(i))}function lR(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 uR(i,s,u){return s=to(s),u===t?(u=s,s=0):u=to(u),i=qn(i),pS(i,s,u)}function dR(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 v=Sg();return jt(i+v*(s-i+Kb("1e-"+((v+"").length-1))),s)}return nd(i,s)}var hR=Fi(function(i,s,u){return s=s.toLowerCase(),i+(u?r_(s):s)});function r_(i){return Nd(He(i).toLowerCase())}function o_(i){return i=He(i),i&&i.replace(mb,nI).replace(Mb,"")}function fR(i,s,u){i=He(i),s=In(s);var f=i.length;u=u===t?f:ti(be(u),0,f);var v=u;return u-=s.length,u>=0&&i.slice(u,v)==s}function mR(i){return i=He(i),i&&jT.test(i)?i.replace(Lm,rI):i}function gR(i){return i=He(i),i&&eb.test(i)?i.replace(bu,"\\$&"):i}var pR=Fi(function(i,s,u){return i+(u?"-":"")+s.toLowerCase()}),_R=Fi(function(i,s,u){return i+(u?" ":"")+s.toLowerCase()}),vR=sp("toLowerCase");function yR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;if(!s||f>=s)return i;var v=(s-f)/2;return wc(lc(v),u)+i+wc(cc(v),u)}function CR(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?i+wc(s-f,u):i}function ER(i,s,u){i=He(i),s=be(s);var f=s?Pi(i):0;return s&&f<s?wc(s-f,u)+i:i}function wR(i,s,u){return u||s==null?s=0:s&&(s=+s),NI(He(i).replace(Iu,""),s||0)}function TR(i,s,u){return(u?sn(i,s,u):s===t)?s=1:s=be(s),rd(He(i),s)}function bR(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var IR=Fi(function(i,s,u){return i+(u?"_":"")+s.toLowerCase()});function SR(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&&!Sd(s))&&(s=In(s),!s&&Oi(i))?ko(lr(i),0,u):i.split(s,u)):[]}var AR=Fi(function(i,s,u){return i+(u?" ":"")+Nd(s)});function kR(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 NR(i,s,u){var f=y.templateSettings;u&&sn(i,s,u)&&(s=t),i=He(i),s=Dc({},s,f,mp);var v=Dc({},s.imports,f.imports,mp),E=Dt(v),b=Vu(v,E),S,P,W=0,z=s.interpolate||qs,j="__p += '",te=$u((s.escape||qs).source+"|"+z.source+"|"+(z===xm?cb:qs).source+"|"+(s.evaluate||qs).source+"|$","g"),se="//# sourceURL="+($e.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bb+"]")+`
56
+ `;i.replace(te,function(fe,Re,Pe,An,cn,kn){return Pe||(Pe=An),j+=i.slice(W,kn).replace(gb,oI),Re&&(S=!0,j+=`' +
57
57
  __e(`+Re+`) +
58
58
  '`),cn&&(P=!0,j+=`';
59
59
  `+cn+`;
@@ -63,51 +63,51 @@ __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(lb.test(he))throw new Ce(d);j=(P?j.replace(qT,""):j).replace(jT,"$1").replace(YT,"$1;"),j="function("+(he||"obj")+`) {
66
+ `;else if(ab.test(he))throw new Ce(d);j=(P?j.replace(WT,""):j).replace(zT,"$1").replace(GT,"$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=s_(function(){return Fe(E,se+"return "+j).apply(t,b)});if(Ie.source=j,Sd(Ie))throw Ie;return Ie}function MR(i){return He(i).toLowerCase()}function DR(i){return He(i).toUpperCase()}function LR(i,s,u){if(i=He(i),i&&(u||s===t))return pg(i);if(!i||!(s=In(s)))return i;var f=lr(i),v=lr(s),E=_g(f,v),b=vg(f,v)+1;return ko(f,E,b).join("")}function xR(i,s,u){if(i=He(i),i&&(u||s===t))return i.slice(0,Cg(i)+1);if(!i||!(s=In(s)))return i;var f=lr(i),v=vg(f,lr(s))+1;return ko(f,0,v).join("")}function UR(i,s,u){if(i=He(i),i&&(u||s===t))return i.replace(Su,"");if(!i||!(s=In(s)))return i;var f=lr(i),v=_g(f,lr(s));return ko(f,v).join("")}function BR(i,s){var u=X,f=ee;if(ut(s)){var v="separator"in s?s.separator:v;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=lr(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(v===t)return P+f;if(b&&(S+=P.length-S),Ad(v)){if(i.slice(S).search(v)){var W,z=P;for(v.global||(v=Ku(v.source,He(Bm.exec(v))+"g")),v.lastIndex=0;W=v.exec(z);)var j=W.index;P=P.slice(0,j===t?S:j)}}else if(i.indexOf(In(v),S)!=S){var te=P.lastIndexOf(v);te>-1&&(P=P.slice(0,te))}return P+f}function FR(i){return i=He(i),i&&JT.test(i)?i.replace(Lm,mI):i}var VR=Fi(function(i,s,u){return i+(u?" ":"")+s.toUpperCase()}),Rd=cp("toUpperCase");function a_(i,s,u){return i=He(i),s=u?t:s,s===t?lI(i)?_I(i):eI(i):i.match(s)||[]}var s_=Se(function(i,s){try{return Tn(i,t,s)}catch(u){return Sd(u)?u:new Ce(u)}}),HR=Xr(function(i,s){return Hn(s,function(u){u=Or(u),Jr(i,u,bd(i[u],i))}),i});function $R(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 v=-1;++v<s;){var E=i[v];if(Tn(E[0],this,f))return Tn(E[1],this,f)}})}function KR(i){return mS(Wn(i,_))}function Od(i){return function(){return i}}function WR(i,s){return i==null||i!==i?s:i}var zR=up(),GR=up(!0);function gn(i){return i}function Pd(i){return Vg(typeof i=="function"?i:Wn(i,_))}function qR(i){return $g(Wn(i,_))}function jR(i,s){return Kg(i,Wn(s,_))}var YR=Se(function(i,s){return function(u){return Ya(u,i,s)}}),JR=Se(function(i,s){return function(u){return Ya(i,u,s)}});function Md(i,s,u){var f=Dt(s),v=gc(s,f);u==null&&!(ut(s)&&(v.length||!f.length))&&(u=s,s=i,i=this,v=gc(s,Dt(s)));var E=!(ut(u)&&"chain"in u)||!!u.chain,b=eo(i);return Hn(v,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 QR(){return Vt._===this&&(Vt._=TI),this}function Dd(){}function XR(i){return i=be(i),Se(function(s){return Wg(s,i)})}var ZR=dd(st),eO=dd(dg),tO=dd(xu);function c_(i){return vd(i)?Uu(Or(i)):OS(i)}function nO(i){return function(s){return i==null?t:ni(i,s)}}var rO=hp(),oO=hp(!0);function Ld(){return[]}function xd(){return!1}function iO(){return{}}function aO(){return""}function sO(){return!0}function cO(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 v=Vu(f,s);++u<i;)s(u);return v}function lO(i){return Ee(i)?st(i,Or):Sn(i)?[i]:hn(kp(He(i)))}function uO(i){var s=++EI;return He(i)+s}var dO=Ec(function(i,s){return i+s},0),hO=hd("ceil"),fO=Ec(function(i,s){return i/s},1),mO=hd("floor");function gO(i){return i&&i.length?mc(i,gn,Qu):t}function pO(i,s){return i&&i.length?mc(i,de(s,2),Qu):t}function _O(i){return mg(i,gn)}function vO(i,s){return mg(i,de(s,2))}function yO(i){return i&&i.length?mc(i,gn,td):t}function CO(i,s){return i&&i.length?mc(i,de(s,2),td):t}var EO=Ec(function(i,s){return i*s},1),wO=hd("round"),TO=Ec(function(i,s){return i-s},0);function bO(i){return i&&i.length?Fu(i,gn):0}function IO(i,s){return i&&i.length?Fu(i,de(s,2)):0}return y.after=qk,y.ary=Fp,y.assign=DN,y.assignIn=Zp,y.assignInWith=Dc,y.assignWith=LN,y.at=xN,y.before=Vp,y.bind=bd,y.bindAll=HR,y.bindKey=Hp,y.castArray=iN,y.chain=xp,y.chunk=mA,y.compact=gA,y.concat=pA,y.cond=$R,y.conforms=KR,y.constant=Od,y.countBy=bk,y.create=UN,y.curry=$p,y.curryRight=Kp,y.debounce=Wp,y.defaults=BN,y.defaultsDeep=FN,y.defer=jk,y.delay=Yk,y.difference=_A,y.differenceBy=vA,y.differenceWith=yA,y.drop=CA,y.dropRight=EA,y.dropRightWhile=wA,y.dropWhile=TA,y.fill=bA,y.filter=Sk,y.flatMap=Nk,y.flatMapDeep=Rk,y.flatMapDepth=Ok,y.flatten=Pp,y.flattenDeep=IA,y.flattenDepth=SA,y.flip=Jk,y.flow=zR,y.flowRight=GR,y.fromPairs=AA,y.functions=GN,y.functionsIn=qN,y.groupBy=Pk,y.initial=NA,y.intersection=RA,y.intersectionBy=OA,y.intersectionWith=PA,y.invert=YN,y.invertBy=JN,y.invokeMap=Dk,y.iteratee=Pd,y.keyBy=Lk,y.keys=Dt,y.keysIn=mn,y.map=kc,y.mapKeys=XN,y.mapValues=ZN,y.matches=qR,y.matchesProperty=jR,y.memoize=Rc,y.merge=eR,y.mergeWith=e_,y.method=YR,y.methodOf=JR,y.mixin=Md,y.negate=Oc,y.nthArg=XR,y.omit=tR,y.omitBy=nR,y.once=Qk,y.orderBy=xk,y.over=ZR,y.overArgs=Xk,y.overEvery=eO,y.overSome=tO,y.partial=Id,y.partialRight=zp,y.partition=Uk,y.pick=rR,y.pickBy=t_,y.property=c_,y.propertyOf=nO,y.pull=xA,y.pullAll=Dp,y.pullAllBy=UA,y.pullAllWith=BA,y.pullAt=FA,y.range=rO,y.rangeRight=oO,y.rearg=Zk,y.reject=Vk,y.remove=VA,y.rest=eN,y.reverse=wd,y.sampleSize=$k,y.set=iR,y.setWith=aR,y.shuffle=Kk,y.slice=HA,y.sortBy=Gk,y.sortedUniq=jA,y.sortedUniqBy=YA,y.split=NR,y.spread=tN,y.tail=JA,y.take=QA,y.takeRight=XA,y.takeRightWhile=ZA,y.takeWhile=ek,y.tap=gk,y.throttle=nN,y.thru=Ac,y.toArray=Jp,y.toPairs=n_,y.toPairsIn=r_,y.toPath=lO,y.toPlainObject=Xp,y.transform=sR,y.unary=rN,y.union=tk,y.unionBy=nk,y.unionWith=rk,y.uniq=ok,y.uniqBy=ik,y.uniqWith=ak,y.unset=cR,y.unzip=Td,y.unzipWith=Lp,y.update=lR,y.updateWith=uR,y.values=$i,y.valuesIn=dR,y.without=sk,y.words=a_,y.wrap=oN,y.xor=ck,y.xorBy=lk,y.xorWith=uk,y.zip=dk,y.zipObject=hk,y.zipObjectDeep=fk,y.zipWith=mk,y.entries=n_,y.entriesIn=r_,y.extend=Zp,y.extendWith=Dc,Md(y,y),y.add=dO,y.attempt=s_,y.camelCase=gR,y.capitalize=o_,y.ceil=hO,y.clamp=hR,y.clone=aN,y.cloneDeep=cN,y.cloneDeepWith=lN,y.cloneWith=sN,y.conformsTo=uN,y.deburr=i_,y.defaultTo=WR,y.divide=fO,y.endsWith=pR,y.eq=dr,y.escape=_R,y.escapeRegExp=vR,y.every=Ik,y.find=Ak,y.findIndex=Rp,y.findKey=VN,y.findLast=kk,y.findLastIndex=Op,y.findLastKey=HN,y.floor=mO,y.forEach=Up,y.forEachRight=Bp,y.forIn=$N,y.forInRight=KN,y.forOwn=WN,y.forOwnRight=zN,y.get=kd,y.gt=dN,y.gte=hN,y.has=jN,y.hasIn=Nd,y.head=Mp,y.identity=gn,y.includes=Mk,y.indexOf=kA,y.inRange=fR,y.invoke=QN,y.isArguments=ii,y.isArray=Ee,y.isArrayBuffer=fN,y.isArrayLike=fn,y.isArrayLikeObject=pt,y.isBoolean=mN,y.isBuffer=No,y.isDate=gN,y.isElement=pN,y.isEmpty=_N,y.isEqual=vN,y.isEqualWith=yN,y.isError=Sd,y.isFinite=CN,y.isFunction=eo,y.isInteger=Gp,y.isLength=Pc,y.isMap=qp,y.isMatch=EN,y.isMatchWith=wN,y.isNaN=TN,y.isNative=bN,y.isNil=SN,y.isNull=IN,y.isNumber=jp,y.isObject=ut,y.isObjectLike=ht,y.isPlainObject=ts,y.isRegExp=Ad,y.isSafeInteger=AN,y.isSet=Yp,y.isString=Mc,y.isSymbol=Sn,y.isTypedArray=Hi,y.isUndefined=kN,y.isWeakMap=NN,y.isWeakSet=RN,y.join=MA,y.kebabCase=yR,y.last=Gn,y.lastIndexOf=DA,y.lowerCase=CR,y.lowerFirst=ER,y.lt=ON,y.lte=PN,y.max=gO,y.maxBy=pO,y.mean=_O,y.meanBy=vO,y.min=yO,y.minBy=CO,y.stubArray=Ld,y.stubFalse=xd,y.stubObject=iO,y.stubString=aO,y.stubTrue=sO,y.multiply=EO,y.nth=LA,y.noConflict=QR,y.noop=Dd,y.now=Nc,y.pad=wR,y.padEnd=TR,y.padStart=bR,y.parseInt=IR,y.random=mR,y.reduce=Bk,y.reduceRight=Fk,y.repeat=SR,y.replace=AR,y.result=oR,y.round=wO,y.runInContext=O,y.sample=Hk,y.size=Wk,y.snakeCase=kR,y.some=zk,y.sortedIndex=$A,y.sortedIndexBy=KA,y.sortedIndexOf=WA,y.sortedLastIndex=zA,y.sortedLastIndexBy=GA,y.sortedLastIndexOf=qA,y.startCase=RR,y.startsWith=OR,y.subtract=TO,y.sum=bO,y.sumBy=IO,y.template=PR,y.times=cO,y.toFinite=to,y.toInteger=be,y.toLength=Qp,y.toLower=MR,y.toNumber=qn,y.toSafeInteger=MN,y.toString=He,y.toUpper=DR,y.trim=LR,y.trimEnd=xR,y.trimStart=UR,y.truncate=BR,y.unescape=FR,y.uniqueId=uO,y.upperCase=VR,y.upperFirst=Rd,y.each=Up,y.eachRight=Bp,y.first=Mp,Md(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(v){var E=this.clone();return E.__iteratees__.push({iteratee:de(v,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 Ya(u,i,s)})}),Oe.prototype.reject=function(i){return this.filter(Oc(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),v=y[f?"take"+(s=="last"?"Right":""):s],E=f||/^find/.test(s);v&&(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=v.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:Ac,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=Zs[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var v=arguments;if(f&&!this.__chain__){var E=this.value();return s.apply(Ee(E)?E:[],v)}return this[u](function(b){return s.apply(Ee(b)?b:[],v)})}}),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[Cc(t,I).name]=[{name:"wrapper",func:t}],Oe.prototype.clone=FI,Oe.prototype.reverse=VI,Oe.prototype.value=HI,y.prototype.at=pk,y.prototype.chain=_k,y.prototype.commit=vk,y.prototype.next=yk,y.prototype.plant=Ek,y.prototype.reverse=wk,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Tk,y.prototype.first=y.prototype.head,$a&&(y.prototype[$a]=Ck),y},Mi=vI();Qo?((Qo.exports=Mi)._=Mi,Pu._=Mi):Vt._=Mi}).call(gF)}(us,us.exports)),us.exports}var Oa=pF();const _l=mF(Oa);function Pa(n,e,t=[]){const r=vF(e);if(!r)return n;const o=r.split(" ");return n.filter(a=>_F(a,o,t))}function _F(n,e,t){return t.some(r=>{const o=_l.get(n,r);if(_l.isNil(o))return!1;const a=_l.toString(o).toLowerCase();return e.every(c=>a.includes(c))})}function vF(n){return _l.trim(n).toLowerCase().replace(/\s+/g," ")}const yF={class:"text-faded mt-7"},CF={key:0,class:"d-flex align-baseline mb-1"},EF={class:"me-1"},wF={class:"max-w-_form-metadataJ"},TF={key:0,class:"mb-1"},bF={key:1,class:"mb-1"},IF={class:"mb-1"},su=l.defineComponent({__name:"FormMetadata",props:{meta:{},id:{}},setup(n){const{t:e}=br();return(t,r)=>(l.openBlock(),l.createElementBlock("div",yF,[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",CF,[l.createElementVNode("b",EF,l.toDisplayString(t.id.title)+": ",1),l.createElementVNode("span",wF,l.toDisplayString(t.id.key||"-"),1),l.createElementVNode("span",null,[l.createVNode(Hl,{"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(fs)(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",TF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.updated"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(fs)(t.meta.updated_at))+" - "+l.toDisplayString(t.meta.updated_by),1)])):(l.openBlock(),l.createElementBlock("p",bF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.modified"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(fs)(t.meta.modified_at))+" - "+l.toDisplayString(t.meta.modified_by),1)])),l.createElementVNode("p",IF,[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})]))}}),SF={key:0,class:"mb-2 ms-1"},WE=l.defineComponent({__name:"JSelect",props:l.mergeModels({name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue");return(t,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.name?(l.openBlock(),l.createElementBlock("p",SF,l.toDisplayString(t.name),1)):l.createCommentVNode("",!0),t.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Vo.VSelect),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),variant:"solo-filled",items:t.items,"item-title":t.itemTitle,"item-value":t.itemValue,loading:t.loading,placeholder:t.placeholder,density:t.density,"bg-color":t.readonly?"containerBg30":"containerBg",rounded:"false",class:"j-field",clearable:!t.readonly&&t.clearable,readonly:t.readonly,rules:t.rules},null,8,["modelValue","items","item-title","item-value","loading","placeholder","density","bg-color","clearable","readonly","rules"])],64))}}),AF={key:0,class:"mb-2 ms-1"},kF={key:3,class:"j-field px-4 py-3 rounded-sm bg-containerBg elevation-10"},zE=l.defineComponent({__name:"JAutocomplete",props:l.mergeModels({name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=n,r=l.computed(()=>{if(Array.isArray(t.items)&&t.items.length>0&&e!=null)if(typeof t.items[0]=="object"&&t.itemValue&&t.itemTitle){const o=t.items.find(a=>a[t.itemValue]===e);return o?o[t.itemTitle]:e}else{const o=t.items.indexOf(e);return o!==-1?t.items[o]:e}return e});return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.name?(l.openBlock(),l.createElementBlock("p",AF,l.toDisplayString(t.name),1)):l.createCommentVNode("",!0),t.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.label),1)]),_:1})):l.createCommentVNode("",!0),t.readonly?(l.openBlock(),l.createElementBlock("div",kF,l.toDisplayString(r.value),1)):(l.openBlock(),l.createBlock(NO.VAutocomplete,{key:2,variant:"solo-filled",modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=c=>e.value=c),"bg-color":o.readonly?"containerBg30":"containerBg",items:t.items,"item-title":t.itemTitle,"item-value":t.itemValue,loading:t.loading,placeholder:t.placeholder,density:t.density,rounded:"false","hide-details":"",class:"j-field",clearable:!t.readonly&&t.clearable,readonly:t.readonly},null,8,["modelValue","bg-color","items","item-title","item-value","loading","placeholder","density","clearable","readonly"]))],64))}}),NF={key:0,class:"mb-2 ms-1"},GE=l.defineComponent({__name:"JTextArea",props:l.mergeModels({name:{},label:{},readonly:{type:Boolean},rows:{},hideDetails:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue");return(t,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.name?(l.openBlock(),l.createElementBlock("p",NF,l.toDisplayString(t.name),1)):l.createCommentVNode("",!0),t.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(RO.VTextarea,{variant:"solo-filled","bg-color":t.readonly?"containerBg30":"containerBg",rounded:"false",rows:t.rows,hideDetails:t.hideDetails,modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),"no-resize":"",readonly:t.readonly,class:"j-textarea"},null,8,["bg-color","rows","hideDetails","modelValue","readonly"])],64))}}),qE=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}))}}),jE=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"]))}}),RF={class:"mt-4"},YE=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(Gl,{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",RF,[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(su,{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(qE,{"cancel-return":r.cancelReturn,onCancel:o[0]||(o[0]=a=>t("onCancel"))},null,8,["cancel-return"]),l.createVNode(jE,{onOnSave:o[1]||(o[1]=a=>t("onSave"))})]),_:1})]),_:1})]),_:1})]),_:3},8,["title"]))}}),OF={class:"d-flex align-items-center"},PF={key:0,class:"d-flex align-center"},MF={class:"ms-1"},DF={class:"d-flex"},LF={class:"d-flex mb-1 align-center"},xF={class:"min-w-100 relative"},JE=l.defineComponent({__name:"TabFormHeader",props:{id:{},readonly:{type:Boolean,default:!1}},emits:["update:isEdition","save","cancel","delete","disable"],setup(n,{emit:e}){var _;const t=n,r=e,o=l.getCurrentInstance(),a=((_=o==null?void 0:o.vnode.props)==null?void 0:_.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",OF,[p.id?(l.openBlock(),l.createElementBlock("div",PF,[w[0]||(w[0]=l.createElementVNode("b",null,"ID:",-1)),l.createElementVNode("span",MF,l.toDisplayString(p.id),1),l.createVNode(Hl,{"content-to-copy":p.id,size:20},null,8,["content-to-copy"])])):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createElementVNode("div",DF,[l.createVNode(it.VBtn,{onClick:m,variant:"text"},{default:l.withCtx(()=>[a?(l.openBlock(),l.createBlock(l.unref(lP),{key:0,size:"11",class:"me-2"})):(l.openBlock(),l.createBlock(yl.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",LF,[l.createVNode(pi.VDivider,{class:"mx-2 my-1",vertical:""}),l.createElementVNode("div",xF,[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(yl.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]])])])])]))}}),UF={class:"d-flex flex-column"},BF={class:"height d-flex flex-column"},FF={class:"d-flex justify-between align-end"},VF=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(Gl,null,{default:l.withCtx(()=>[l.createElementVNode("div",UF,[l.createElementVNode("div",BF,[l.renderSlot(c.$slots,"default",{},void 0,!0)])]),l.createElementVNode("div",FF,[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(su,{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(qE,{key:0,title:"Back",onCancel:d[0]||(d[0]=h=>t("cancel"))})):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createBlock(jE,{key:1,onOnSave:d[1]||(d[1]=h=>t("save"))})):l.createCommentVNode("",!0)]),_:1}))]),_:1})])]),_:3}))}}),QE=Aa(VF,[["__scopeId","data-v-e7e4d99c"]]);/**
72
+ }`;var Ie=a_(function(){return Fe(E,se+"return "+j).apply(t,b)});if(Ie.source=j,Id(Ie))throw Ie;return Ie}function RR(i){return He(i).toLowerCase()}function OR(i){return He(i).toUpperCase()}function PR(i,s,u){if(i=He(i),i&&(u||s===t))return gg(i);if(!i||!(s=In(s)))return i;var f=lr(i),v=lr(s),E=pg(f,v),b=_g(f,v)+1;return ko(f,E,b).join("")}function MR(i,s,u){if(i=He(i),i&&(u||s===t))return i.slice(0,yg(i)+1);if(!i||!(s=In(s)))return i;var f=lr(i),v=_g(f,lr(s))+1;return ko(f,0,v).join("")}function DR(i,s,u){if(i=He(i),i&&(u||s===t))return i.replace(Iu,"");if(!i||!(s=In(s)))return i;var f=lr(i),v=pg(f,lr(s));return ko(f,v).join("")}function LR(i,s){var u=X,f=ee;if(ut(s)){var v="separator"in s?s.separator:v;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=lr(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(v===t)return P+f;if(b&&(S+=P.length-S),Sd(v)){if(i.slice(S).search(v)){var W,z=P;for(v.global||(v=$u(v.source,He(Um.exec(v))+"g")),v.lastIndex=0;W=v.exec(z);)var j=W.index;P=P.slice(0,j===t?S:j)}}else if(i.indexOf(In(v),S)!=S){var te=P.lastIndexOf(v);te>-1&&(P=P.slice(0,te))}return P+f}function xR(i){return i=He(i),i&&qT.test(i)?i.replace(Dm,dI):i}var UR=Fi(function(i,s,u){return i+(u?" ":"")+s.toUpperCase()}),Nd=sp("toUpperCase");function i_(i,s,u){return i=He(i),s=u?t:s,s===t?aI(i)?mI(i):Qb(i):i.match(s)||[]}var a_=Se(function(i,s){try{return Tn(i,t,s)}catch(u){return Id(u)?u:new Ce(u)}}),BR=Xr(function(i,s){return Hn(s,function(u){u=Or(u),Jr(i,u,Td(i[u],i))}),i});function FR(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 v=-1;++v<s;){var E=i[v];if(Tn(E[0],this,f))return Tn(E[1],this,f)}})}function VR(i){return dS(Wn(i,_))}function Rd(i){return function(){return i}}function HR(i,s){return i==null||i!==i?s:i}var $R=lp(),KR=lp(!0);function gn(i){return i}function Od(i){return Fg(typeof i=="function"?i:Wn(i,_))}function WR(i){return Hg(Wn(i,_))}function zR(i,s){return $g(i,Wn(s,_))}var GR=Se(function(i,s){return function(u){return Ya(u,i,s)}}),qR=Se(function(i,s){return function(u){return Ya(i,u,s)}});function Pd(i,s,u){var f=Dt(s),v=gc(s,f);u==null&&!(ut(s)&&(v.length||!f.length))&&(u=s,s=i,i=this,v=gc(s,Dt(s)));var E=!(ut(u)&&"chain"in u)||!!u.chain,b=eo(i);return Hn(v,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 jR(){return Vt._===this&&(Vt._=CI),this}function Md(){}function YR(i){return i=be(i),Se(function(s){return Kg(s,i)})}var JR=ud(st),QR=ud(ug),XR=ud(Lu);function s_(i){return _d(i)?xu(Or(i)):kS(i)}function ZR(i){return function(s){return i==null?t:ni(i,s)}}var eO=dp(),tO=dp(!0);function Dd(){return[]}function Ld(){return!1}function nO(){return{}}function rO(){return""}function oO(){return!0}function iO(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 v=Fu(f,s);++u<i;)s(u);return v}function aO(i){return Ee(i)?st(i,Or):Sn(i)?[i]:hn(Ap(He(i)))}function sO(i){var s=++vI;return He(i)+s}var cO=Ec(function(i,s){return i+s},0),lO=dd("ceil"),uO=Ec(function(i,s){return i/s},1),dO=dd("floor");function hO(i){return i&&i.length?mc(i,gn,Ju):t}function fO(i,s){return i&&i.length?mc(i,de(s,2),Ju):t}function mO(i){return fg(i,gn)}function gO(i,s){return fg(i,de(s,2))}function pO(i){return i&&i.length?mc(i,gn,ed):t}function _O(i,s){return i&&i.length?mc(i,de(s,2),ed):t}var vO=Ec(function(i,s){return i*s},1),yO=dd("round"),CO=Ec(function(i,s){return i-s},0);function EO(i){return i&&i.length?Bu(i,gn):0}function wO(i,s){return i&&i.length?Bu(i,de(s,2)):0}return y.after=Wk,y.ary=Bp,y.assign=ON,y.assignIn=Xp,y.assignInWith=Dc,y.assignWith=PN,y.at=MN,y.before=Fp,y.bind=Td,y.bindAll=BR,y.bindKey=Vp,y.castArray=nN,y.chain=Lp,y.chunk=dA,y.compact=hA,y.concat=fA,y.cond=FR,y.conforms=VR,y.constant=Rd,y.countBy=Ek,y.create=DN,y.curry=Hp,y.curryRight=$p,y.debounce=Kp,y.defaults=LN,y.defaultsDeep=xN,y.defer=zk,y.delay=Gk,y.difference=mA,y.differenceBy=gA,y.differenceWith=pA,y.drop=_A,y.dropRight=vA,y.dropRightWhile=yA,y.dropWhile=CA,y.fill=EA,y.filter=Tk,y.flatMap=Sk,y.flatMapDeep=Ak,y.flatMapDepth=kk,y.flatten=Op,y.flattenDeep=wA,y.flattenDepth=TA,y.flip=qk,y.flow=$R,y.flowRight=KR,y.fromPairs=bA,y.functions=KN,y.functionsIn=WN,y.groupBy=Nk,y.initial=SA,y.intersection=AA,y.intersectionBy=kA,y.intersectionWith=NA,y.invert=GN,y.invertBy=qN,y.invokeMap=Ok,y.iteratee=Od,y.keyBy=Pk,y.keys=Dt,y.keysIn=mn,y.map=kc,y.mapKeys=YN,y.mapValues=JN,y.matches=WR,y.matchesProperty=zR,y.memoize=Rc,y.merge=QN,y.mergeWith=Zp,y.method=GR,y.methodOf=qR,y.mixin=Pd,y.negate=Oc,y.nthArg=YR,y.omit=XN,y.omitBy=ZN,y.once=jk,y.orderBy=Mk,y.over=JR,y.overArgs=Yk,y.overEvery=QR,y.overSome=XR,y.partial=bd,y.partialRight=Wp,y.partition=Dk,y.pick=eR,y.pickBy=e_,y.property=s_,y.propertyOf=ZR,y.pull=MA,y.pullAll=Mp,y.pullAllBy=DA,y.pullAllWith=LA,y.pullAt=xA,y.range=eO,y.rangeRight=tO,y.rearg=Jk,y.reject=Uk,y.remove=UA,y.rest=Qk,y.reverse=Ed,y.sampleSize=Fk,y.set=nR,y.setWith=rR,y.shuffle=Vk,y.slice=BA,y.sortBy=Kk,y.sortedUniq=zA,y.sortedUniqBy=GA,y.split=SR,y.spread=Xk,y.tail=qA,y.take=jA,y.takeRight=YA,y.takeRightWhile=JA,y.takeWhile=QA,y.tap=hk,y.throttle=Zk,y.thru=Ac,y.toArray=Yp,y.toPairs=t_,y.toPairsIn=n_,y.toPath=aO,y.toPlainObject=Qp,y.transform=oR,y.unary=eN,y.union=XA,y.unionBy=ZA,y.unionWith=ek,y.uniq=tk,y.uniqBy=nk,y.uniqWith=rk,y.unset=iR,y.unzip=wd,y.unzipWith=Dp,y.update=aR,y.updateWith=sR,y.values=$i,y.valuesIn=cR,y.without=ok,y.words=i_,y.wrap=tN,y.xor=ik,y.xorBy=ak,y.xorWith=sk,y.zip=ck,y.zipObject=lk,y.zipObjectDeep=uk,y.zipWith=dk,y.entries=t_,y.entriesIn=n_,y.extend=Xp,y.extendWith=Dc,Pd(y,y),y.add=cO,y.attempt=a_,y.camelCase=hR,y.capitalize=r_,y.ceil=lO,y.clamp=lR,y.clone=rN,y.cloneDeep=iN,y.cloneDeepWith=aN,y.cloneWith=oN,y.conformsTo=sN,y.deburr=o_,y.defaultTo=HR,y.divide=uO,y.endsWith=fR,y.eq=dr,y.escape=mR,y.escapeRegExp=gR,y.every=wk,y.find=bk,y.findIndex=Np,y.findKey=UN,y.findLast=Ik,y.findLastIndex=Rp,y.findLastKey=BN,y.floor=dO,y.forEach=xp,y.forEachRight=Up,y.forIn=FN,y.forInRight=VN,y.forOwn=HN,y.forOwnRight=$N,y.get=Ad,y.gt=cN,y.gte=lN,y.has=zN,y.hasIn=kd,y.head=Pp,y.identity=gn,y.includes=Rk,y.indexOf=IA,y.inRange=uR,y.invoke=jN,y.isArguments=ii,y.isArray=Ee,y.isArrayBuffer=uN,y.isArrayLike=fn,y.isArrayLikeObject=gt,y.isBoolean=dN,y.isBuffer=No,y.isDate=hN,y.isElement=fN,y.isEmpty=mN,y.isEqual=gN,y.isEqualWith=pN,y.isError=Id,y.isFinite=_N,y.isFunction=eo,y.isInteger=zp,y.isLength=Pc,y.isMap=Gp,y.isMatch=vN,y.isMatchWith=yN,y.isNaN=CN,y.isNative=EN,y.isNil=TN,y.isNull=wN,y.isNumber=qp,y.isObject=ut,y.isObjectLike=dt,y.isPlainObject=ts,y.isRegExp=Sd,y.isSafeInteger=bN,y.isSet=jp,y.isString=Mc,y.isSymbol=Sn,y.isTypedArray=Hi,y.isUndefined=IN,y.isWeakMap=SN,y.isWeakSet=AN,y.join=RA,y.kebabCase=pR,y.last=Gn,y.lastIndexOf=OA,y.lowerCase=_R,y.lowerFirst=vR,y.lt=kN,y.lte=NN,y.max=hO,y.maxBy=fO,y.mean=mO,y.meanBy=gO,y.min=pO,y.minBy=_O,y.stubArray=Dd,y.stubFalse=Ld,y.stubObject=nO,y.stubString=rO,y.stubTrue=oO,y.multiply=vO,y.nth=PA,y.noConflict=jR,y.noop=Md,y.now=Nc,y.pad=yR,y.padEnd=CR,y.padStart=ER,y.parseInt=wR,y.random=dR,y.reduce=Lk,y.reduceRight=xk,y.repeat=TR,y.replace=bR,y.result=tR,y.round=yO,y.runInContext=O,y.sample=Bk,y.size=Hk,y.snakeCase=IR,y.some=$k,y.sortedIndex=FA,y.sortedIndexBy=VA,y.sortedIndexOf=HA,y.sortedLastIndex=$A,y.sortedLastIndexBy=KA,y.sortedLastIndexOf=WA,y.startCase=AR,y.startsWith=kR,y.subtract=CO,y.sum=EO,y.sumBy=wO,y.template=NR,y.times=iO,y.toFinite=to,y.toInteger=be,y.toLength=Jp,y.toLower=RR,y.toNumber=qn,y.toSafeInteger=RN,y.toString=He,y.toUpper=OR,y.trim=PR,y.trimEnd=MR,y.trimStart=DR,y.truncate=LR,y.unescape=xR,y.uniqueId=sO,y.upperCase=UR,y.upperFirst=Nd,y.each=xp,y.eachRight=Up,y.first=Pp,Pd(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(v){var E=this.clone();return E.__iteratees__.push({iteratee:de(v,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 Ya(u,i,s)})}),Oe.prototype.reject=function(i){return this.filter(Oc(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),v=y[f?"take"+(s=="last"?"Right":""):s],E=f||/^find/.test(s);v&&(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=v.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:Ac,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=Zs[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var v=arguments;if(f&&!this.__chain__){var E=this.value();return s.apply(Ee(E)?E:[],v)}return this[u](function(b){return s.apply(Ee(b)?b:[],v)})}}),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[Cc(t,I).name]=[{name:"wrapper",func:t}],Oe.prototype.clone=xI,Oe.prototype.reverse=UI,Oe.prototype.value=BI,y.prototype.at=fk,y.prototype.chain=mk,y.prototype.commit=gk,y.prototype.next=pk,y.prototype.plant=vk,y.prototype.reverse=yk,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Ck,y.prototype.first=y.prototype.head,$a&&(y.prototype[$a]=_k),y},Mi=gI();Qo?((Qo.exports=Mi)._=Mi,Ou._=Mi):Vt._=Mi}).call(hF)}(us,us.exports)),us.exports}var Oa=fF();const pl=dF(Oa);function Pa(n,e,t=[]){const r=gF(e);if(!r)return n;const o=r.split(" ");return n.filter(a=>mF(a,o,t))}function mF(n,e,t){return t.some(r=>{const o=pl.get(n,r);if(pl.isNil(o))return!1;const a=pl.toString(o).toLowerCase();return e.every(c=>a.includes(c))})}function gF(n){return pl.trim(n).toLowerCase().replace(/\s+/g," ")}const pF={class:"text-faded mt-7"},_F={key:0,class:"d-flex align-baseline mb-1"},vF={class:"me-1"},yF={class:"max-w-_form-metadataJ"},CF={key:0,class:"mb-1"},EF={key:1,class:"mb-1"},wF={class:"mb-1"},au=l.defineComponent({__name:"FormMetadata",props:{meta:{},id:{}},setup(n){const{t:e}=br();return(t,r)=>(l.openBlock(),l.createElementBlock("div",pF,[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",_F,[l.createElementVNode("b",vF,l.toDisplayString(t.id.title)+": ",1),l.createElementVNode("span",yF,l.toDisplayString(t.id.key||"-"),1),l.createElementVNode("span",null,[l.createVNode(Vl,{"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(fs)(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",CF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.updated"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(fs)(t.meta.updated_at))+" - "+l.toDisplayString(t.meta.updated_by),1)])):(l.openBlock(),l.createElementBlock("p",EF,[l.createElementVNode("b",null,l.toDisplayString(l.unref(e)("forms.metadata.modified"))+":  ",1),l.createTextVNode(l.toDisplayString(l.unref(fs)(t.meta.modified_at))+" - "+l.toDisplayString(t.meta.modified_by),1)])),l.createElementVNode("p",wF,[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})]))}}),TF={key:0,class:"mb-2 ms-1"},HE=l.defineComponent({__name:"JSelect",props:l.mergeModels({name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=n,r=l.computed(()=>t.readonly?"solo":"solo-filled");return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[o.name?(l.openBlock(),l.createElementBlock("p",TF,l.toDisplayString(o.name),1)):l.createCommentVNode("",!0),o.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Vo.VSelect),{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=c=>e.value=c),variant:r.value,items:o.items,"item-title":o.itemTitle,"item-value":o.itemValue,loading:o.loading,placeholder:o.placeholder,density:o.density,"bg-color":"containerBg",rounded:"false",class:"j-field",clearable:o.clearable,readonly:o.readonly,rules:o.rules},null,8,["modelValue","variant","items","item-title","item-value","loading","placeholder","density","clearable","readonly","rules"])],64))}}),bF={key:0,class:"mb-2 ms-1"},IF={key:3,class:"j-field px-4 py-3 rounded-sm bg-containerBg elevation-10"},$E=l.defineComponent({__name:"JAutocomplete",props:l.mergeModels({name:{},label:{},placeholder:{},readonly:{type:Boolean},items:{},itemTitle:{},itemValue:{},density:{},loading:{type:Boolean},clearable:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=n,r=l.computed(()=>t.readonly?"solo":"solo-filled"),o=l.computed(()=>{if(Array.isArray(t.items)&&t.items.length>0&&e!=null)if(typeof t.items[0]=="object"&&t.itemValue&&t.itemTitle){const a=t.items.find(c=>c[t.itemValue]===e);return a?a[t.itemTitle]:e}else{const a=t.items.indexOf(e);return a!==-1?t.items[a]:e}return e});return(a,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.name?(l.openBlock(),l.createElementBlock("p",bF,l.toDisplayString(t.name),1)):l.createCommentVNode("",!0),t.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.label),1)]),_:1})):l.createCommentVNode("",!0),t.readonly?(l.openBlock(),l.createElementBlock("div",IF,l.toDisplayString(o.value),1)):(l.openBlock(),l.createBlock(SO.VAutocomplete,{key:2,modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=d=>e.value=d),variant:r.value,items:t.items,"item-title":t.itemTitle,"item-value":t.itemValue,loading:t.loading,placeholder:t.placeholder,density:t.density,"bg-color":"containerBg",rounded:"false","hide-details":"",class:"j-field",clearable:t.clearable,readonly:t.readonly},null,8,["modelValue","variant","items","item-title","item-value","loading","placeholder","density","clearable","readonly"]))],64))}}),SF={key:0,class:"mb-2 ms-1"},KE=l.defineComponent({__name:"JTextArea",props:l.mergeModels({name:{},label:{},readonly:{type:Boolean},rows:{},hideDetails:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=l.useModel(n,"modelValue"),t=n,r=l.computed(()=>t.readonly?"solo":"solo-filled");return(o,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[o.name?(l.openBlock(),l.createElementBlock("p",SF,l.toDisplayString(o.name),1)):l.createCommentVNode("",!0),o.label?(l.openBlock(),l.createBlock(va.VLabel,{key:1,class:"text-subtitle-1 text-high-emphasis mb-2"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:1})):l.createCommentVNode("",!0),l.createVNode(AO.VTextarea,{variant:r.value,"bg-color":"containerBg",rounded:"false",rows:o.rows,hideDetails:o.hideDetails,modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=c=>e.value=c),"no-resize":"",readonly:o.readonly,class:"j-textarea"},null,8,["variant","rows","hideDetails","modelValue","readonly"])],64))}}),WE=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}))}}),zE=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"]))}}),AF={class:"mt-4"},GE=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(zl,{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",AF,[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(au,{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(WE,{"cancel-return":r.cancelReturn,onCancel:o[0]||(o[0]=a=>t("onCancel"))},null,8,["cancel-return"]),l.createVNode(zE,{onOnSave:o[1]||(o[1]=a=>t("onSave"))})]),_:1})]),_:1})]),_:1})]),_:3},8,["title"]))}}),kF={class:"d-flex align-items-center"},NF={key:0,class:"d-flex align-center"},RF={class:"ms-1"},OF={class:"d-flex"},PF={class:"d-flex mb-1 align-center"},MF={class:"min-w-100 relative"},qE=l.defineComponent({__name:"TabFormHeader",props:{id:{},readonly:{type:Boolean,default:!1}},emits:["update:isEdition","save","cancel","delete","disable"],setup(n,{emit:e}){var _;const t=n,r=e,o=l.getCurrentInstance(),a=((_=o==null?void 0:o.vnode.props)==null?void 0:_.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",kF,[p.id?(l.openBlock(),l.createElementBlock("div",NF,[w[0]||(w[0]=l.createElementVNode("b",null,"ID:",-1)),l.createElementVNode("span",RF,l.toDisplayString(p.id),1),l.createVNode(Vl,{"content-to-copy":p.id,size:20},null,8,["content-to-copy"])])):l.createCommentVNode("",!0),l.createVNode(Qe.VSpacer),l.createElementVNode("div",OF,[l.createVNode(it.VBtn,{onClick:m,variant:"text"},{default:l.withCtx(()=>[a?(l.openBlock(),l.createBlock(l.unref(aP),{key:0,size:"11",class:"me-2"})):(l.openBlock(),l.createBlock(vl.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",PF,[l.createVNode(pi.VDivider,{class:"mx-2 my-1",vertical:""}),l.createElementVNode("div",MF,[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(vl.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]])])])])]))}}),DF={class:"d-flex flex-column"},LF={class:"height d-flex flex-column"},xF={class:"d-flex justify-between align-end"},UF=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(zl,null,{default:l.withCtx(()=>[l.createElementVNode("div",DF,[l.createElementVNode("div",LF,[l.renderSlot(c.$slots,"default",{},void 0,!0)])]),l.createElementVNode("div",xF,[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(au,{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(WE,{key:0,title:"Back",onCancel:d[0]||(d[0]=h=>t("cancel"))})):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createBlock(zE,{key:1,onOnSave:d[1]||(d[1]=h=>t("save"))})):l.createCommentVNode("",!0)]),_:1}))]),_:1})])]),_:3}))}}),jE=Aa(UF,[["__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.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */var Bv={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
77
+ */var Uv={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
78
78
  * @license @tabler/icons-vue v3.22.0 - MIT
79
79
  *
80
80
  * This source code is licensed under the MIT license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const Ks=(n,e,t,r)=>({color:o="currentColor",size:a=24,stroke:c=2,title:d,class:h,...m},{attrs:g,slots:_})=>{let p=[...r.map(w=>l.h(...w)),..._.default?[_.default()]:[]];return d&&(p=[l.h("title",d),...p]),l.h("svg",{...Bv[n],width:a,height:a,...g,class:["tabler-icon",`tabler-icon-${e}`],...n==="filled"?{fill:o}:{"stroke-width":c??Bv[n]["stroke-width"],stroke:o},...m},p)};/**
82
+ */const Ks=(n,e,t,r)=>({color:o="currentColor",size:a=24,stroke:c=2,title:d,class:h,...m},{attrs:g,slots:_})=>{let p=[...r.map(w=>l.h(...w)),..._.default?[_.default()]:[]];return d&&(p=[l.h("title",d),...p]),l.h("svg",{...Uv[n],width:a,height:a,...g,class:["tabler-icon",`tabler-icon-${e}`],...n==="filled"?{fill:o}:{"stroke-width":c??Uv[n]["stroke-width"],stroke:o},...m},p)};/**
83
83
  * @license @tabler/icons-vue v3.22.0 - MIT
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 HF=Ks("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 BF=Ks("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 $F=Ks("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 FF=Ks("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 KF=Ks("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 VF=Ks("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 WF=Ks("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 HF=Ks("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 zF=Ks("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"},Wc={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},Ma=[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE],Fv=[...Ma,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"},zc={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"},Vv={PLAIN:"plain",S256:"S256"},Ws={QUERY:"query",FRAGMENT:"fragment"},GF={...Ws,FORM_POST:"form_post"},XE={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"},Gc={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"},Gf="appmetadata",qF="client_info",ys="1",Rl={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"},Cs={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Hv={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},$v={username:"username",password:"password"},qc={httpSuccess:200,httpBadRequest:400},Yi={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},sh={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"},jF={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},YF=300;/*! @azure/msal-common v14.16.0 2024-11-05 */const qf="unexpected_error",JF="post_request_failed";/*! @azure/msal-common v14.16.0 2024-11-05 */const Kv={[qf]:"Unexpected error in authentication.",[JF]:"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 ZE(n,e){return new lt(n,e?`${Kv[n]} ${e}`:Kv[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */const jf="client_info_decoding_error",ew="client_info_empty_error",Yf="token_parsing_error",tw="null_or_empty_token",ao="endpoints_resolution_error",nw="network_error",rw="openid_config_error",ow="hash_not_deserialized",Ta="invalid_state",iw="state_mismatch",Ol="state_not_found",aw="nonce_mismatch",Jf="auth_time_not_found",sw="max_age_transpired",QF="multiple_matching_tokens",XF="multiple_matching_accounts",cw="multiple_matching_appMetadata",lw="request_cannot_be_made",uw="cannot_remove_empty_scope",dw="cannot_append_scopeset",Qh="empty_input_scopeset",ZF="device_code_polling_cancelled",eV="device_code_expired",tV="device_code_unknown_error",Qf="no_account_in_silent_request",hw="invalid_cache_record",Xf="invalid_cache_environment",Xh="no_account_found",Zh="no_crypto_object",ef="unexpected_credential_type",nV="invalid_assertion",rV="invalid_client_credential",co="token_refresh_required",oV="user_timeout_reached",fw="token_claims_cnf_required_for_signedjwt",mw="authorization_code_missing_from_server_response",gw="binding_key_not_removed",pw="end_session_endpoint_not_supported",Zf="key_id_missing",iV="no_network_connectivity",aV="user_canceled",sV="missing_tenant_id_error",Ae="method_not_implemented",cV="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.0 2024-11-05 */const Wv={[jf]:"The client info could not be parsed/decoded correctly",[ew]:"The client info was empty",[Yf]:"Token cannot be parsed",[tw]:"The token is null or empty",[ao]:"Endpoints cannot be resolved",[nw]:"Network request failed",[rw]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[ow]:"The hash parameters could not be deserialized",[Ta]:"State was not the expected format",[iw]:"State mismatch error",[Ol]:"State not found",[aw]:"Nonce mismatch error",[Jf]:"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.",[sw]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[QF]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[XF]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[cw]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[lw]:"Token request cannot be made without authorization code or refresh token.",[uw]:"Cannot remove null or empty scope from ScopeSet",[dw]:"Cannot append ScopeSet",[Qh]:"Empty input ScopeSet cannot be processed",[ZF]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[eV]:"Device code is expired.",[tV]:"Device code stopped polling for unknown reasons.",[Qf]:"Please pass an account object, silent flow is not supported without account information",[hw]:"Cache record object was null or undefined.",[Xf]:"Invalid environment when attempting to create cache entry",[Xh]:"No account found in cache for given key.",[Zh]:"No crypto object detected.",[ef]:"Unexpected credential type.",[nV]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[rV]:"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.",[oV]:"User defined timeout for device code polling reached",[fw]:"Cannot generate a POP jwt if the token_claims are not populated",[mw]:"Server response does not contain an authorization code to proceed",[gw]:"Could not remove the credential's binding key from storage.",[pw]:"The provided authority does not support logout",[Zf]:"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.",[iV]:"No network connectivity. Check your internet connection.",[aV]:"User cancelled the flow.",[sV]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Ae]:"This method has not been implemented",[cV]:"The nested app auth bridge is disabled"};class cu extends lt{constructor(e,t){super(e,t?`${Wv[e]}: ${t}`:Wv[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,cu.prototype)}}function Y(n,e){return new cu(n,e)}/*! @azure/msal-common v14.16.0 2024-11-05 */const Pl={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 _w="@azure/msal-common",em="14.16.0";/*! @azure/msal-common v14.16.0 2024-11-05 */const tm={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=lV(n);try{const r=e(t);return JSON.parse(r)}catch{throw Y(Yf)}}function lV(n){if(!n)throw Y(tw);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw Y(Yf);return t[2]}function vw(n,e){if(e===0||Date.now()-3e5>n+e)throw Y(sw)}/*! @azure/msal-common v14.16.0 2024-11-05 */function zr(){return Math.round(new Date().getTime()/1e3)}function tf(n,e){const t=Number(n)||0;return zr()+e>t}function uV(n){return Number(n)>zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */function ha(n){return[dV(n),hV(n),fV(n),mV(n),gV(n)].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function lu(n,e,t,r,o){return{credentialType:ge.ID_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t,realm:o}}function uu(n,e,t,r,o,a,c,d,h,m,g,_,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(_&&(T.userAssertionHash=_),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(fw);T.keyId=N.cnf.kid;break;case Ge.SSH:T.keyId=p}return T}function yw(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 nm(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function zv(n){return n?nm(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===ge.ACCESS_TOKEN||n.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function Gv(n){return n?nm(n)&&n.hasOwnProperty("realm")&&n.credentialType===ge.ID_TOKEN:!1}function qv(n){return n?nm(n)&&n.credentialType===ge.REFRESH_TOKEN:!1}function dV(n){return[n.homeAccountId,n.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function hV(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 fV(n){return(n.target||"").toLowerCase()}function mV(n){return(n.requestedClaimsHash||"").toLowerCase()}function gV(n){return n.tokenType&&n.tokenType.toLowerCase()!==Ge.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function pV(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 _V(n,e){let t=!1;n&&(t=n.indexOf(Cs.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),t&&r}function vV({environment:n,clientId:e}){return[Gf,n,e].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function yV(n,e){return e?n.indexOf(Gf)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function CV(n,e){return e?n.indexOf(Rl.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 jv(){return zr()+Rl.REFRESH_TIME_SECONDS}function jc(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 ch(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function Yv(n){return n.expiresAt<=zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */const Cw="redirect_uri_empty",EV="claims_request_parsing_error",Ew="authority_uri_insecure",ds="url_parse_error",ww="empty_url_error",Tw="empty_input_scopes_error",bw="invalid_prompt_value",rm="invalid_claims",Iw="token_request_empty",Sw="logout_request_empty",Aw="invalid_code_challenge_method",om="pkce_params_missing",im="invalid_cloud_discovery_metadata",kw="invalid_authority_metadata",Nw="untrusted_authority",du="missing_ssh_jwk",Rw="missing_ssh_kid",wV="missing_nonce_authentication_header",TV="invalid_authentication_header",Ow="cannot_set_OIDCOptions",Pw="cannot_allow_native_broker",Mw="authority_mismatch";/*! @azure/msal-common v14.16.0 2024-11-05 */const bV={[Cw]:"A redirect URI is required for all calls, and none has been set.",[EV]:"Could not parse the given claims request object.",[Ew]:"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",[ds]:"URL could not be parsed into appropriate segments.",[ww]:"URL was empty or null.",[Tw]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[bw]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[rm]:"Given claims parameter must be a stringified JSON object.",[Iw]:"Token request was empty and not found in cache.",[Sw]:"The logout request was null or undefined.",[Aw]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[om]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[im]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[kw]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[Nw]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[du]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[Rw]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[wV]:"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.",[TV]:"Invalid authentication header provided",[Ow]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Pw]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[Mw]:"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 am extends lt{constructor(e){super(e,bV[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,am.prototype)}}function Xe(n){return new am(n)}/*! @azure/msal-common v14.16.0 2024-11-05 */class yr{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?yr.trimArrayEntries([...e]):[],r=t?yr.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(Tw)}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 Fv.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(dw)}}removeScope(e){if(!e)throw Y(uw);this.scopes.delete(e.trim())}removeOIDCScopes(){Fv.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw Y(Qh);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(Qh);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 Ml(n,e){if(!n)throw Y(ew);try{const t=e(n);return JSON.parse(t)}catch{throw Y(jf)}}function fa(n){if(!n)throw Y(jf);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 Dl(n,e){return!!n&&!!e&&n===e.split(".")[1]}function sm(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:Dl(g,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:Dl(t,n)}}function cm(n,e,t,r){let o=n;if(e){const{isHomeTenant:a,...c}=e;o={...n,...c}}if(t){const{isHomeTenant:a,...c}=sm(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 gr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.0 2024-11-05 */function Dw(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,_,p,w,C;const o=new Pt;t.authorityType===gr.Adfs?o.authorityType=Gc.ADFS_ACCOUNT_TYPE:t.protocolMode===fo.AAD?o.authorityType=Gc.MSSTS_ACCOUNT_TYPE:o.authorityType=Gc.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=Ml(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(Xf);o.environment=c,o.realm=(a==null?void 0:a.utid)||Dw(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=((_=e.idTokenClaims)==null?void 0:_.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=sm(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||Gc.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===gr.Adfs||t===gr.Dsts)){if(e)try{const c=Ml(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 Lw(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function Ll(n){if(!n||n.indexOf("=")<0)return null;try{const e=Lw(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Y(ow)}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(ww);e.includes("#")||(this._urlString=De.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return yr.endsWith(t,"?")?t=t.slice(0,-1):yr.endsWith(t,"?/")&&(t=t.slice(0,-2)),yr.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Xe(ds)}if(!e.HostNameAndPort||!e.PathSegments)throw Xe(ds);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Xe(Ew)}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(ds);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(ds);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!!Ll(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const xw={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"]}]}},Jv=xw.endpointMetadata,lm=xw.instanceDiscoveryMetadata,Uw=new Set;lm.metadata.forEach(n=>{n.aliases.forEach(e=>{Uw.add(e)})});function IV(n,e){var o;let t;const r=n.canonicalAuthority;if(r){const a=new De(r).getUrlComponents().HostNameAndPort;t=Qv(a,(o=n.cloudDiscoveryMetadata)==null?void 0:o.metadata,On.CONFIG,e)||Qv(a,lm.metadata,On.HARDCODED_VALUES,e)||n.knownAuthorities}return t||[]}function Qv(n,e,t,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${t}`),n&&e){const o=xl(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 SV(n){return xl(lm.metadata,n)}function xl(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 Bw="cache_quota_exceeded",um="cache_error_unknown";/*! @azure/msal-common v14.16.0 2024-11-05 */const lh={[Bw]:"Exceeded cache storage capacity.",[um]:"Unexpected error occurred when using cache storage."};class pa extends Error{constructor(e,t){const r=t||(lh[e]?lh[e]:lh[um]);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 ba{constructor(e,t,r,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(_w,em),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=cm(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(hw);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(Bw)):new pa(h.name,h.message)):((d=this.commonLogger)==null||d.errorPii(`CacheManager.saveCacheRecord: ${h}`,r),new pa(um))}}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}${ys}${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 _=this.getCachedAccountEntity(g);_&&c.push(_)});const d=c.find(g=>Dl(g.realm,g.homeAccountId))||c[0];d.tenantProfiles=c.map(g=>({tenantId:g.realm,localAccountId:g.localAccountId,name:g.name,isHomeTenant:Dl(g.realm,g.homeAccountId)}));const h=ba.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(gw)}}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 _=g.size;if(_<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(_===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,_)=>{this.removeIdToken(_)}),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},_=r&&r.accessToken||this.getTokenKeys().accessToken,p=[];_.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?ys: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(_=>{if(this.refreshTokenKeyMatchesFilter(_,d)){const p=this.getRefreshTokenCredential(_);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(cw);return o[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===ys)}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=IV(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(Gf)!==-1}isAuthorityMetadata(e){return e.indexOf(Rl.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Rl.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class AV extends ba{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 Fw={tokenRenewalOffsetSeconds:YF,preventCorsPreflight:!1},kV={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info,correlationId:F.EMPTY_STRING},NV={claimsBasedCachingEnabled:!1},RV={async sendGetRequestAsync(){throw Y(Ae)},async sendPostRequestAsync(){throw Y(Ae)}},OV={sku:F.SKU,version:em,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},PV={clientSecret:F.EMPTY_STRING,clientAssertion:void 0},MV={azureCloudInstance:tm.None,tenant:`${F.DEFAULT_COMMON_TENANT}`},DV={application:{appName:"",appVersion:""}};function LV({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:r,storageInterface:o,networkInterface:a,cryptoInterface:c,clientCredentials:d,libraryInfo:h,telemetry:m,serverTelemetryManager:g,persistencePlugin:_,serializableCache:p}){const w={...kV,...t};return{authOptions:xV(n),systemOptions:{...Fw,...e},loggerOptions:w,cacheOptions:{...NV,...r},storageInterface:o||new AV(n.clientId,Pl,new Ko(w)),networkInterface:a||RV,cryptoInterface:c||Pl,clientCredentials:d||PV,libraryInfo:{...OV,...h},telemetry:{...DV,...m},serverTelemetryManager:g||null,persistencePlugin:_||null,serializableCache:p||null}}function xV(n){return{clientCapabilities:[],azureCloudOptions:MV,skipAuthorityMetadataCache:!1,instanceAware:!1,...n}}function nf(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",Vw="redirect_uri",Xv="response_type",UV="response_mode",BV="grant_type",FV="claims",VV="scope",HV="refresh_token",$V="state",KV="nonce",WV="prompt",zV="code",GV="code_challenge",qV="code_challenge_method",jV="code_verifier",YV="client-request-id",JV="x-client-SKU",QV="x-client-VER",XV="x-client-OS",ZV="x-client-CPU",e2="x-client-current-telemetry",t2="x-client-last-telemetry",n2="x-ms-lib-capability",r2="x-app-name",o2="x-app-ver",i2="post_logout_redirect_uri",a2="id_token_hint",s2="device_code",c2="client_secret",l2="client_assertion",u2="client_assertion_type",Zv="token_type",ey="req_cnf",d2="assertion",h2="requested_token_use",ty="return_spa_code",f2="nativebroker",m2="logout_hint",g2="sid",p2="login_hint",_2="domain_hint",v2="x-client-xtra-sku",dm="brk_client_id",rf="brk_redirect_uri";/*! @azure/msal-common v14.16.0 2024-11-05 */class ia{static validateRedirectUri(e){if(!e)throw Xe(Cw)}static validatePrompt(e){const t=[];for(const r in Bt)t.push(Bt[r]);if(t.indexOf(e)<0)throw Xe(bw)}static validateClaims(e){try{JSON.parse(e)}catch{throw Xe(rm)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw Xe(om);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Vv.PLAIN,Vv.S256].indexOf(e)<0)throw Xe(Aw)}}/*! @azure/msal-common v14.16.0 2024-11-05 */function y2(n,e,t){if(!e)return;const r=n.get(wi);r&&n.has(dm)&&(t==null||t.addFields({embeddedClientId:r,embeddedRedirectUri:n.get(Vw)},e))}class Es{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Xv,encodeURIComponent(F.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Xv,encodeURIComponent(`${F.TOKEN_RESPONSE_TYPE} ${F.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(UV,encodeURIComponent(e||GF.QUERY))}addNativeBroker(){this.parameters.set(f2,encodeURIComponent("1"))}addScopes(e,t=!0,r=Ma){t&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=t?[...e||[],...r]:e||[],a=new vt(o);this.parameters.set(VV,encodeURIComponent(a.printScopes()))}addClientId(e){this.parameters.set(wi,encodeURIComponent(e))}addRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(Vw,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(i2,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(a2,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(_2,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(p2,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(g2,encodeURIComponent(e))}addClaims(e,t){const r=this.addClientCapabilitiesToClaims(e,t);ia.validateClaims(r),this.parameters.set(FV,encodeURIComponent(r))}addCorrelationId(e){this.parameters.set(YV,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(JV,e.sku),this.parameters.set(QV,e.version),e.os&&this.parameters.set(XV,e.os),e.cpu&&this.parameters.set(ZV,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(r2,e.appName),e!=null&&e.appVersion&&this.parameters.set(o2,e.appVersion)}addPrompt(e){ia.validatePrompt(e),this.parameters.set(`${WV}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set($V,encodeURIComponent(e))}addNonce(e){this.parameters.set(KV,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(ia.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(GV,encodeURIComponent(e)),this.parameters.set(qV,encodeURIComponent(t));else throw Xe(om)}addAuthorizationCode(e){this.parameters.set(zV,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(s2,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(HV,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(jV,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(c2,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(l2,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(u2,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(d2,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(h2,encodeURIComponent(e))}addGrantType(e){this.parameters.set(BV,encodeURIComponent(e))}addClientInfo(){this.parameters.set(qF,"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(rm)}return t&&t.length>0&&(r.hasOwnProperty(zc.ACCESS_TOKEN)||(r[zc.ACCESS_TOKEN]={}),r[zc.ACCESS_TOKEN][zc.XMS_CC]={values:t}),JSON.stringify(r)}addUsername(e){this.parameters.set($v.username,encodeURIComponent(e))}addPassword(e){this.parameters.set($v.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Zv,Ge.POP),this.parameters.set(ey,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Zv,Ge.SSH),this.parameters.set(ey,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(e2,e.generateCurrentRequestHeaderValue()),this.parameters.set(t2,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(n2,Cs.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(m2,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[dm]=e.brokerClientId,t[rf]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,r)=>{e.push(`${r}=${t}`)}),y2(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.0 2024-11-05 */function C2(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 E2(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.0 2024-11-05 */function w2(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"},T2={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 hu{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=hu.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===qc.httpSuccess&&(r=c.body,t.region_source=Yi.IMDS),c.status===qc.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===qc.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===qc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}hu.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 hu(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(F.CIAM_AUTH_URL))return gr.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case F.ADFS:return gr.Adfs;case F.DSTS:return gr.Dsts}return gr.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(pw);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)===gr.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===gr.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:jv(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==On.CACHE&&(r==null?void 0:r.source)!==On.CACHE&&(e.expiresAt=jv(),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);jc(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)),jc(e,r,!0),On.NETWORK;throw Y(rw,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"),jc(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 jc(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=Yv(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(kw)}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 C2(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 Jv?Jv[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=sh.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=sh.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,Xt.replaceWithRegionalInformation(e,c);this.regionDiscoveryMetadata.region_outcome=sh.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 ch(e,r,!0),On.NETWORK;throw Xe(Nw)}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"),ch(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=SV(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),ch(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=Yv(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===gr.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=xl(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(im)}}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(E2(a.body))c=a.body,d=c.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${c.tenant_discovery_endpoint}`);else if(w2(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=xl(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 $F=Ks("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"},Wc={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},Ma=[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE],Bv=[...Ma,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"},zc={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"},Fv={PLAIN:"plain",S256:"S256"},Ws={QUERY:"query",FRAGMENT:"fragment"},KF={...Ws,FORM_POST:"form_post"},YE={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"},Gc={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"},zf="appmetadata",WF="client_info",ys="1",Nl={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"},Cs={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Vv={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Hv={username:"username",password:"password"},qc={httpSuccess:200,httpBadRequest:400},Yi={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},ah={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"},zF={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},GF=300;/*! @azure/msal-common v14.16.0 2024-11-05 */const Gf="unexpected_error",qF="post_request_failed";/*! @azure/msal-common v14.16.0 2024-11-05 */const $v={[Gf]:"Unexpected error in authentication.",[qF]:"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?`${$v[n]} ${e}`:$v[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */const qf="client_info_decoding_error",QE="client_info_empty_error",jf="token_parsing_error",XE="null_or_empty_token",ao="endpoints_resolution_error",ZE="network_error",ew="openid_config_error",tw="hash_not_deserialized",Ta="invalid_state",nw="state_mismatch",Rl="state_not_found",rw="nonce_mismatch",Yf="auth_time_not_found",ow="max_age_transpired",jF="multiple_matching_tokens",YF="multiple_matching_accounts",iw="multiple_matching_appMetadata",aw="request_cannot_be_made",sw="cannot_remove_empty_scope",cw="cannot_append_scopeset",Jh="empty_input_scopeset",JF="device_code_polling_cancelled",QF="device_code_expired",XF="device_code_unknown_error",Jf="no_account_in_silent_request",lw="invalid_cache_record",Qf="invalid_cache_environment",Qh="no_account_found",Xh="no_crypto_object",Zh="unexpected_credential_type",ZF="invalid_assertion",eV="invalid_client_credential",co="token_refresh_required",tV="user_timeout_reached",uw="token_claims_cnf_required_for_signedjwt",dw="authorization_code_missing_from_server_response",hw="binding_key_not_removed",fw="end_session_endpoint_not_supported",Xf="key_id_missing",nV="no_network_connectivity",rV="user_canceled",oV="missing_tenant_id_error",Ae="method_not_implemented",iV="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.0 2024-11-05 */const Kv={[qf]:"The client info could not be parsed/decoded correctly",[QE]:"The client info was empty",[jf]:"Token cannot be parsed",[XE]:"The token is null or empty",[ao]:"Endpoints cannot be resolved",[ZE]:"Network request failed",[ew]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[tw]:"The hash parameters could not be deserialized",[Ta]:"State was not the expected format",[nw]:"State mismatch error",[Rl]:"State not found",[rw]:"Nonce mismatch error",[Yf]:"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.",[ow]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[jF]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[YF]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[iw]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[aw]:"Token request cannot be made without authorization code or refresh token.",[sw]:"Cannot remove null or empty scope from ScopeSet",[cw]:"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.",[QF]:"Device code is expired.",[XF]:"Device code stopped polling for unknown reasons.",[Jf]:"Please pass an account object, silent flow is not supported without account information",[lw]:"Cache record object was null or undefined.",[Qf]:"Invalid environment when attempting to create cache entry",[Qh]:"No account found in cache for given key.",[Xh]:"No crypto object detected.",[Zh]:"Unexpected credential type.",[ZF]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[eV]:"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.",[tV]:"User defined timeout for device code polling reached",[uw]:"Cannot generate a POP jwt if the token_claims are not populated",[dw]:"Server response does not contain an authorization code to proceed",[hw]:"Could not remove the credential's binding key from storage.",[fw]:"The provided authority does not support logout",[Xf]:"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.",[nV]:"No network connectivity. Check your internet connection.",[rV]:"User cancelled the flow.",[oV]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Ae]:"This method has not been implemented",[iV]:"The nested app auth bridge is disabled"};class su extends lt{constructor(e,t){super(e,t?`${Kv[e]}: ${t}`:Kv[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,su.prototype)}}function Y(n,e){return new su(n,e)}/*! @azure/msal-common v14.16.0 2024-11-05 */const Ol={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 mw="@azure/msal-common",Zf="14.16.0";/*! @azure/msal-common v14.16.0 2024-11-05 */const em={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=aV(n);try{const r=e(t);return JSON.parse(r)}catch{throw Y(jf)}}function aV(n){if(!n)throw Y(XE);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw Y(jf);return t[2]}function gw(n,e){if(e===0||Date.now()-3e5>n+e)throw Y(ow)}/*! @azure/msal-common v14.16.0 2024-11-05 */function zr(){return Math.round(new Date().getTime()/1e3)}function ef(n,e){const t=Number(n)||0;return zr()+e>t}function sV(n){return Number(n)>zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */function ha(n){return[cV(n),lV(n),uV(n),dV(n),hV(n)].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function cu(n,e,t,r,o){return{credentialType:ge.ID_TOKEN,homeAccountId:n,environment:e,clientId:r,secret:t,realm:o}}function lu(n,e,t,r,o,a,c,d,h,m,g,_,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(_&&(T.userAssertionHash=_),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(uw);T.keyId=N.cnf.kid;break;case Ge.SSH:T.keyId=p}return T}function pw(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 tm(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function Wv(n){return n?tm(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===ge.ACCESS_TOKEN||n.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function zv(n){return n?tm(n)&&n.hasOwnProperty("realm")&&n.credentialType===ge.ID_TOKEN:!1}function Gv(n){return n?tm(n)&&n.credentialType===ge.REFRESH_TOKEN:!1}function cV(n){return[n.homeAccountId,n.environment].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function lV(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 uV(n){return(n.target||"").toLowerCase()}function dV(n){return(n.requestedClaimsHash||"").toLowerCase()}function hV(n){return n.tokenType&&n.tokenType.toLowerCase()!==Ge.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function fV(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 mV(n,e){let t=!1;n&&(t=n.indexOf(Cs.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),t&&r}function gV({environment:n,clientId:e}){return[zf,n,e].join(tn.CACHE_KEY_SEPARATOR).toLowerCase()}function pV(n,e){return e?n.indexOf(zf)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function _V(n,e){return e?n.indexOf(Nl.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 qv(){return zr()+Nl.REFRESH_TIME_SECONDS}function jc(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 sh(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function jv(n){return n.expiresAt<=zr()}/*! @azure/msal-common v14.16.0 2024-11-05 */const _w="redirect_uri_empty",vV="claims_request_parsing_error",vw="authority_uri_insecure",ds="url_parse_error",yw="empty_url_error",Cw="empty_input_scopes_error",Ew="invalid_prompt_value",nm="invalid_claims",ww="token_request_empty",Tw="logout_request_empty",bw="invalid_code_challenge_method",rm="pkce_params_missing",om="invalid_cloud_discovery_metadata",Iw="invalid_authority_metadata",Sw="untrusted_authority",uu="missing_ssh_jwk",Aw="missing_ssh_kid",yV="missing_nonce_authentication_header",CV="invalid_authentication_header",kw="cannot_set_OIDCOptions",Nw="cannot_allow_native_broker",Rw="authority_mismatch";/*! @azure/msal-common v14.16.0 2024-11-05 */const EV={[_w]:"A redirect URI is required for all calls, and none has been set.",[vV]:"Could not parse the given claims request object.",[vw]:"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",[ds]:"URL could not be parsed into appropriate segments.",[yw]:"URL was empty or null.",[Cw]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Ew]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[nm]:"Given claims parameter must be a stringified JSON object.",[ww]:"Token request was empty and not found in cache.",[Tw]:"The logout request was null or undefined.",[bw]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[rm]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[om]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[Iw]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[Sw]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[uu]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[Aw]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[yV]:"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.",[CV]:"Invalid authentication header provided",[kw]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Nw]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[Rw]:"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 im extends lt{constructor(e){super(e,EV[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,im.prototype)}}function Xe(n){return new im(n)}/*! @azure/msal-common v14.16.0 2024-11-05 */class yr{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 _t{constructor(e){const t=e?yr.trimArrayEntries([...e]):[],r=t?yr.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 _t(r)}static createSearchScopes(e){const t=new _t(e);return t.containsOnlyOIDCScopes()?t.removeScope(F.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw Xe(Cw)}containsScope(e){const t=this.printScopesLowerCase().split(" "),r=new _t(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 Bv.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(cw)}}removeScope(e){if(!e)throw Y(sw);this.scopes.delete(e.trim())}removeOIDCScopes(){Bv.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 Pl(n,e){if(!n)throw Y(QE);try{const t=e(n);return JSON.parse(t)}catch{throw Y(qf)}}function fa(n){if(!n)throw Y(qf);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 Ml(n,e){return!!n&&!!e&&n===e.split(".")[1]}function am(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:Ml(g,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:Ml(t,n)}}function sm(n,e,t,r){let o=n;if(e){const{isHomeTenant:a,...c}=e;o={...n,...c}}if(t){const{isHomeTenant:a,...c}=am(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 gr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.0 2024-11-05 */function Ow(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,_,p,w,C;const o=new Pt;t.authorityType===gr.Adfs?o.authorityType=Gc.ADFS_ACCOUNT_TYPE:t.protocolMode===fo.AAD?o.authorityType=Gc.MSSTS_ACCOUNT_TYPE:o.authorityType=Gc.GENERIC_ACCOUNT_TYPE;let a;e.clientInfo&&r&&(a=Pl(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(Qf);o.environment=c,o.realm=(a==null?void 0:a.utid)||Ow(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=((_=e.idTokenClaims)==null?void 0:_.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=am(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||Gc.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===gr.Adfs||t===gr.Dsts)){if(e)try{const c=Pl(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 Pw(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function Dl(n){if(!n||n.indexOf("=")<0)return null;try{const e=Pw(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Y(tw)}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(yw);e.includes("#")||(this._urlString=De.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return yr.endsWith(t,"?")?t=t.slice(0,-1):yr.endsWith(t,"?/")&&(t=t.slice(0,-2)),yr.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Xe(ds)}if(!e.HostNameAndPort||!e.PathSegments)throw Xe(ds);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Xe(vw)}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(ds);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(ds);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!!Dl(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Mw={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"]}]}},Yv=Mw.endpointMetadata,cm=Mw.instanceDiscoveryMetadata,Dw=new Set;cm.metadata.forEach(n=>{n.aliases.forEach(e=>{Dw.add(e)})});function wV(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,cm.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=Ll(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 TV(n){return Ll(cm.metadata,n)}function Ll(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 Lw="cache_quota_exceeded",lm="cache_error_unknown";/*! @azure/msal-common v14.16.0 2024-11-05 */const ch={[Lw]:"Exceeded cache storage capacity.",[lm]:"Unexpected error occurred when using cache storage."};class pa extends Error{constructor(e,t){const r=t||(ch[e]?ch[e]:ch[lm]);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 ba{constructor(e,t,r,o){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(mw,Zf),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=sm(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(lw);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(Lw)):new pa(h.name,h.message)):((d=this.commonLogger)==null||d.errorPii(`CacheManager.saveCacheRecord: ${h}`,r),new pa(lm))}}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=_t.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)&&_t.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}${ys}${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 _=this.getCachedAccountEntity(g);_&&c.push(_)});const d=c.find(g=>Ml(g.realm,g.homeAccountId))||c[0];d.tenantProfiles=c.map(g=>({tenantId:g.realm,localAccountId:g.localAccountId,name:g.name,isHomeTenant:Ml(g.realm,g.homeAccountId)}));const h=ba.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(hw)}}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 _=g.size;if(_<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(_===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,_)=>{this.removeIdToken(_)}),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=_t.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},_=r&&r.accessToken||this.getTokenKeys().accessToken,p=[];_.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?ys: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(_=>{if(this.refreshTokenKeyMatchesFilter(_,d)){const p=this.getRefreshTokenCredential(_);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(iw);return o[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===ys)}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=wV(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:_t.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(zf)!==-1}isAuthorityMetadata(e){return e.indexOf(Nl.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Nl.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const r in t)e[r]=t[r];return e}}class bV extends ba{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 xw={tokenRenewalOffsetSeconds:GF,preventCorsPreflight:!1},IV={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info,correlationId:F.EMPTY_STRING},SV={claimsBasedCachingEnabled:!1},AV={async sendGetRequestAsync(){throw Y(Ae)},async sendPostRequestAsync(){throw Y(Ae)}},kV={sku:F.SKU,version:Zf,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},NV={clientSecret:F.EMPTY_STRING,clientAssertion:void 0},RV={azureCloudInstance:em.None,tenant:`${F.DEFAULT_COMMON_TENANT}`},OV={application:{appName:"",appVersion:""}};function PV({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:r,storageInterface:o,networkInterface:a,cryptoInterface:c,clientCredentials:d,libraryInfo:h,telemetry:m,serverTelemetryManager:g,persistencePlugin:_,serializableCache:p}){const w={...IV,...t};return{authOptions:MV(n),systemOptions:{...xw,...e},loggerOptions:w,cacheOptions:{...SV,...r},storageInterface:o||new bV(n.clientId,Ol,new Ko(w)),networkInterface:a||AV,cryptoInterface:c||Ol,clientCredentials:d||NV,libraryInfo:{...kV,...h},telemetry:{...OV,...m},serverTelemetryManager:g||null,persistencePlugin:_||null,serializableCache:p||null}}function MV(n){return{clientCapabilities:[],azureCloudOptions:RV,skipAuthorityMetadataCache:!1,instanceAware:!1,...n}}function tf(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",Uw="redirect_uri",Qv="response_type",DV="response_mode",LV="grant_type",xV="claims",UV="scope",BV="refresh_token",FV="state",VV="nonce",HV="prompt",$V="code",KV="code_challenge",WV="code_challenge_method",zV="code_verifier",GV="client-request-id",qV="x-client-SKU",jV="x-client-VER",YV="x-client-OS",JV="x-client-CPU",QV="x-client-current-telemetry",XV="x-client-last-telemetry",ZV="x-ms-lib-capability",e2="x-app-name",t2="x-app-ver",n2="post_logout_redirect_uri",r2="id_token_hint",o2="device_code",i2="client_secret",a2="client_assertion",s2="client_assertion_type",Xv="token_type",Zv="req_cnf",c2="assertion",l2="requested_token_use",ey="return_spa_code",u2="nativebroker",d2="logout_hint",h2="sid",f2="login_hint",m2="domain_hint",g2="x-client-xtra-sku",um="brk_client_id",nf="brk_redirect_uri";/*! @azure/msal-common v14.16.0 2024-11-05 */class ia{static validateRedirectUri(e){if(!e)throw Xe(_w)}static validatePrompt(e){const t=[];for(const r in Bt)t.push(Bt[r]);if(t.indexOf(e)<0)throw Xe(Ew)}static validateClaims(e){try{JSON.parse(e)}catch{throw Xe(nm)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw Xe(rm);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Fv.PLAIN,Fv.S256].indexOf(e)<0)throw Xe(bw)}}/*! @azure/msal-common v14.16.0 2024-11-05 */function p2(n,e,t){if(!e)return;const r=n.get(wi);r&&n.has(um)&&(t==null||t.addFields({embeddedClientId:r,embeddedRedirectUri:n.get(Uw)},e))}class Es{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Qv,encodeURIComponent(F.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Qv,encodeURIComponent(`${F.TOKEN_RESPONSE_TYPE} ${F.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(DV,encodeURIComponent(e||KF.QUERY))}addNativeBroker(){this.parameters.set(u2,encodeURIComponent("1"))}addScopes(e,t=!0,r=Ma){t&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=t?[...e||[],...r]:e||[],a=new _t(o);this.parameters.set(UV,encodeURIComponent(a.printScopes()))}addClientId(e){this.parameters.set(wi,encodeURIComponent(e))}addRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(Uw,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ia.validateRedirectUri(e),this.parameters.set(n2,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(r2,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(m2,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(f2,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(h2,encodeURIComponent(e))}addClaims(e,t){const r=this.addClientCapabilitiesToClaims(e,t);ia.validateClaims(r),this.parameters.set(xV,encodeURIComponent(r))}addCorrelationId(e){this.parameters.set(GV,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(qV,e.sku),this.parameters.set(jV,e.version),e.os&&this.parameters.set(YV,e.os),e.cpu&&this.parameters.set(JV,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(e2,e.appName),e!=null&&e.appVersion&&this.parameters.set(t2,e.appVersion)}addPrompt(e){ia.validatePrompt(e),this.parameters.set(`${HV}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(FV,encodeURIComponent(e))}addNonce(e){this.parameters.set(VV,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(ia.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(KV,encodeURIComponent(e)),this.parameters.set(WV,encodeURIComponent(t));else throw Xe(rm)}addAuthorizationCode(e){this.parameters.set($V,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(o2,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(BV,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(zV,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(i2,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(a2,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(s2,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(c2,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(l2,encodeURIComponent(e))}addGrantType(e){this.parameters.set(LV,encodeURIComponent(e))}addClientInfo(){this.parameters.set(WF,"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(nm)}return t&&t.length>0&&(r.hasOwnProperty(zc.ACCESS_TOKEN)||(r[zc.ACCESS_TOKEN]={}),r[zc.ACCESS_TOKEN][zc.XMS_CC]={values:t}),JSON.stringify(r)}addUsername(e){this.parameters.set(Hv.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(Hv.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Xv,Ge.POP),this.parameters.set(Zv,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Xv,Ge.SSH),this.parameters.set(Zv,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(QV,e.generateCurrentRequestHeaderValue()),this.parameters.set(XV,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(ZV,Cs.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(d2,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[um]=e.brokerClientId,t[nf]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;return this.parameters.forEach((t,r)=>{e.push(`${r}=${t}`)}),p2(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.0 2024-11-05 */function _2(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 v2(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.0 2024-11-05 */function y2(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"},C2={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 du{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=du.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===qc.httpSuccess&&(r=c.body,t.region_source=Yi.IMDS),c.status===qc.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===qc.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===qc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}du.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 du(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(F.CIAM_AUTH_URL))return gr.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case F.ADFS:return gr.Adfs;case F.DSTS:return gr.Dsts}return gr.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(fw);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)===gr.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===gr.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:qv(),jwks_uri:""}),e}updateCachedMetadata(e,t,r){t!==On.CACHE&&(r==null?void 0:r.source)!==On.CACHE&&(e.expiresAt=qv(),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);jc(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)),jc(e,r,!0),On.NETWORK;throw Y(ew,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"),jc(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 jc(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=jv(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(Iw)}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 _2(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 Yv?Yv[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=ah.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=ah.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,Xt.replaceWithRegionalInformation(e,c);this.regionDiscoveryMetadata.region_outcome=ah.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 sh(e,r,!0),On.NETWORK;throw Xe(Sw)}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"),sh(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=TV(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),sh(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=jv(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===gr.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=Ll(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(om)}}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(v2(a.body))c=a.body,d=c.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${c.tenant_discovery_endpoint}`);else if(y2(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=Ll(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!==tm.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 Uw.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 b2(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 Hw(n){return n.endsWith(F.FORWARD_SLASH)?n:`${n}${F.FORWARD_SLASH}`}function I2(n){const e=n.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw Xe(im)}return{canonicalAuthority:n.authority?Hw(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.0 2024-11-05 */async function $w(n,e,t,r,o,a,c){c==null||c.addQueueMeasurement(x.AuthorityFactoryCreateDiscoveredInstance,a);const d=Xt.transformCIAMAuthority(Hw(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`${Cs.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||Cs.DEFAULT_THROTTLE_TIME_SECONDS),r+Cs.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 fu extends lt{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,fu.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function ny(n,e,t){return new fu(n,e,t)}/*! @azure/msal-common v14.16.0 2024-11-05 */class hm{constructor(e,t){this.config=LV(e),this.logger=new Ko(this.config.loggerOptions,_w,em),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 fu){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(nw)}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 $w(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const t=new Es(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 Ul="no_tokens_found",Kw="native_account_unavailable",fm="refresh_token_expired",S2="interaction_required",A2="consent_required",k2="login_required",mu="bad_token";/*! @azure/msal-common v14.16.0 2024-11-05 */const ry=[S2,A2,k2,mu],N2=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],R2={[Ul]:"No refresh token found in the cache. Please sign-in.",[Kw]:"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.",[fm]:"Refresh token has expired.",[mu]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class wr extends lt{constructor(e,t,r,o,a,c,d,h){super(e,t,r),Object.setPrototypeOf(this,wr.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 oy(n,e,t){const r=!!n&&ry.indexOf(n)>-1,o=!!t&&N2.indexOf(t)>-1,a=!!e&&ry.some(c=>e.indexOf(c)>-1);return r||a||o}function of(n){return new wr(n,R2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class Cr{static setRequestState(e,t,r){const o=Cr.generateLibraryState(e,r);return t?`${o}${F.RESOURCE_DELIM}${t}`:o}static generateLibraryState(e,t){if(!e)throw Y(Zh);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(Zh);if(!t)throw Y(Ta);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(Ta)}}}/*! @azure/msal-common v14.16.0 2024-11-05 */const O2={SW:"sw",UHW:"uhw"};class Ia{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:O2.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,_=g==null?void 0:g.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:zr(),m:a==null?void 0:a.toUpperCase(),u:_==null?void 0:_.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:_==null?void 0:_.AbsolutePath,q:_!=null&&_.QueryString?[[],_.QueryString]:void 0,client_claims:d||void 0,...o},t,m,r.correlationId)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class P2{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 M2(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(Ol,"Cached State"):Y(Ol,"Server State");let r,o;try{r=decodeURIComponent(e.state)}catch{throw Y(Ta,e.state)}try{o=decodeURIComponent(t)}catch{throw Y(Ta,e.state)}if(r!==o)throw Y(iw);if(e.error||e.error_description||e.suberror){const a=M2(e);throw oy(e.error,e.error_description,e.suberror)?new wr(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>=Wc.SERVER_ERROR_RANGE_START&&e.status<=Wc.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!==em.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 Dw.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 E2(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 Bw(n){return n.endsWith(F.FORWARD_SLASH)?n:`${n}${F.FORWARD_SLASH}`}function w2(n){const e=n.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw Xe(om)}return{canonicalAuthority:n.authority?Bw(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Fw(n,e,t,r,o,a,c){c==null||c.addQueueMeasurement(x.AuthorityFactoryCreateDiscoveredInstance,a);const d=Xt.transformCIAMAuthority(Bw(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`${Cs.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||Cs.DEFAULT_THROTTLE_TIME_SECONDS),r+Cs.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 hu extends lt{constructor(e,t,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,hu.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=r}}function ty(n,e,t){return new hu(n,e,t)}/*! @azure/msal-common v14.16.0 2024-11-05 */class dm{constructor(e,t){this.config=PV(e),this.logger=new Ko(this.config.loggerOptions,mw,Zf),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 hu){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(ZE)}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 Fw(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const t=new Es(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 xl="no_tokens_found",Vw="native_account_unavailable",hm="refresh_token_expired",T2="interaction_required",b2="consent_required",I2="login_required",fu="bad_token";/*! @azure/msal-common v14.16.0 2024-11-05 */const ny=[T2,b2,I2,fu],S2=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],A2={[xl]:"No refresh token found in the cache. Please sign-in.",[Vw]:"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.",[hm]:"Refresh token has expired.",[fu]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class wr extends lt{constructor(e,t,r,o,a,c,d,h){super(e,t,r),Object.setPrototypeOf(this,wr.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 ry(n,e,t){const r=!!n&&ny.indexOf(n)>-1,o=!!t&&S2.indexOf(t)>-1,a=!!e&&ny.some(c=>e.indexOf(c)>-1);return r||a||o}function rf(n){return new wr(n,A2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class Cr{static setRequestState(e,t,r){const o=Cr.generateLibraryState(e,r);return t?`${o}${F.RESOURCE_DELIM}${t}`:o}static generateLibraryState(e,t){if(!e)throw Y(Xh);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(Xh);if(!t)throw Y(Ta);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(Ta)}}}/*! @azure/msal-common v14.16.0 2024-11-05 */const k2={SW:"sw",UHW:"uhw"};class Ia{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:k2.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,_=g==null?void 0:g.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:zr(),m:a==null?void 0:a.toUpperCase(),u:_==null?void 0:_.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:_==null?void 0:_.AbsolutePath,q:_!=null&&_.QueryString?[[],_.QueryString]:void 0,client_claims:d||void 0,...o},t,m,r.correlationId)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class N2{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 R2(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(Rl,"Cached State"):Y(Rl,"Server State");let r,o;try{r=decodeURIComponent(e.state)}catch{throw Y(Ta,e.state)}try{o=decodeURIComponent(t)}catch{throw Y(Ta,e.state)}if(r!==o)throw Y(nw);if(e.error||e.error_description||e.suberror){const a=R2(e);throw ry(e.error,e.error_description,e.suberror)?new wr(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>=Wc.SERVER_ERROR_RANGE_START&&e.status<=Wc.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>=Wc.CLIENT_ERROR_RANGE_START&&e.status<=Wc.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 oy(e.error,e.error_description,e.suberror)?new wr(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(aw);if(o.maxAge||o.maxAge===0){const T=g.auth_time;if(!T)throw Y(Jf);vw(T,o.maxAge)}}this.homeAccountIdentifier=Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,g);let _;a&&a.state&&(_=Cr.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 P2(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,_,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,_,e,m)}generateCacheRecord(e,t,r,o,a,c,d){const h=t.getPreferredCache();if(!h)throw Y(Xf);const m=Dw(a);let g,_;e.id_token&&a&&(g=lu(this.homeAccountIdentifier,h,e.id_token,this.clientId,m||""),_=mm(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=uu(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=yw(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:_,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,_=[],p=null,w,C,T=F.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===Ge.POP&&!a.popKid){const ce=new Ia(e),{secret:ae,keyId:X}=r.accessToken;if(!X)throw Y(Zf);g=await ce.signPopToken(ae,X,a)}else g=r.accessToken.secret;_=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===ys?ys:"");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?cm(r.account.getAccountInfo(),void 0,c,(D=r.idToken)==null?void 0:D.secret):null;return{authority:t.canonicalAuthority,uniqueId:k,tenantId:I,scopes:_,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 mm(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=sm(t,C.localAccountId,k,o);T.push(I)}return C.tenantProfiles=T,C}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Ww(n,e,t){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.0 2024-11-05 */class zw extends hm{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(lw);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(mw);return e}getLogoutUri(e){if(!e)throw Xe(Sw);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 _=Ml(t.clientInfo,this.cryptoUtils.base64Decode);c={credential:`${_.uid}${tn.CLIENT_INFO_SEPARATOR}${_.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(_){this.logger.verbose("Could not parse client info for CCS Header: "+_)}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 Es(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&&!nf(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 Ww(c.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(c.assertionType)}if(t.addGrantType(XE.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Ge.POP){const c=new Ia(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(du);(!yr.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=Ml(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[ty])&&t.addExtraQueryParameters({[ty]:"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 Es(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),nf(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 Ia(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 Es(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 D2=300;class af extends hm{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(Iw);if((r=this.performanceClient)==null||r.addQueueMeasurement(x.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Y(Qf);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 wr&&o.errorCode===Ul,c=o instanceof Wo&&o.errorCode===Hv.INVALID_GRANT_ERROR&&o.subError===Hv.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 of(Ul);if(r.expiresOn&&tf(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||D2))throw of(fm);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 wr&&c.subError===mu){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 Es(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(XE.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!nf(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 Ww(d.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(d.assertionType)}if(e.authenticationScheme===Ge.POP){const d=new Ia(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(du);if((!yr.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 L2 extends hm{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:[...Ma]});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 af(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof cu&&r.errorCode===co)return new af(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&&!yr.isEmptyObj(e.claims))throw this.setCacheOutcome(Mo.FORCE_REFRESH_OR_CLAIMS,e.correlationId),Y(co);if(!e.account)throw Y(Qf);const r=e.account.tenantId||b2(e.authority),o=this.cacheManager.getTokenKeys(),a=this.cacheManager.getAccessToken(e.account,e,o,r,this.performanceClient,e.correlationId);if(a){if(uV(a.cachedAt)||tf(a.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Mo.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Y(co);a.refreshOn&&tf(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(Jf);vw(a,t.maxAge)}return Ti.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const x2={sendGetRequestAsync:()=>Promise.reject(Y(Ae)),sendPostRequestAsync:()=>Promise.reject(Y(Ae))};/*! @azure/msal-common v14.16.0 2024-11-05 */const iy=",",Gw="|";function U2(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(iy),d.length<4)return e}else d=Array.from({length:4},()=>Gw);return c.forEach((h,m)=>{var g,_;h.length===2&&((g=h[0])!=null&&g.length)&&((_=h[1])!=null&&_.length)&&B2({skuArr:d,index:m,skuName:h[0],skuVersion:h[1]})}),d.join(iy)}function B2(n){const{skuArr:e,index:t,skuName:r,skuVersion:o}=n;t>=e.length||(e[t]=[r,o].join(Gw))}class Ms{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=Ms.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=Ms.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 U2(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const qw="missing_kid_error",jw="missing_alg_error";/*! @azure/msal-common v14.16.0 2024-11-05 */const F2={[qw]:"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.",[jw]:"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 gm extends lt{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,gm.prototype)}}function ay(n){return new gm(n,F2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class pm{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw ay(qw);if(!e.alg)throw ay(jw);const t=new pm({typ:e.typ||jF.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class sy{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class V2{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:T2.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new sy}}startPerformanceMeasurement(){return new sy}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 _m="pkce_not_created",sf="crypto_nonexistent",gu="empty_navigate_uri",Yw="hash_empty_error",vm="no_state_in_hash",Jw="hash_does_not_contain_known_properties",Qw="unable_to_parse_state",Xw="state_interaction_type_mismatch",Zw="interaction_in_progress",eT="popup_window_error",tT="empty_window_error",bi="user_cancelled",H2="monitor_popup_timeout",nT="monitor_window_timeout",rT="redirect_in_iframe",oT="block_iframe_reload",iT="block_nested_popups",$2="iframe_closed_prematurely",pu="silent_logout_unsupported",aT="no_account_error",K2="silent_prompt_value_error",sT="no_token_request_cache_error",cT="unable_to_parse_token_request_cache_error",ym="no_cached_authority_error",W2="auth_request_not_set_error",z2="invalid_cache_type",_u="non_browser_environment",aa="database_not_open",Bl="no_network_connectivity",lT="post_request_failed",uT="get_request_failed",cf="failed_to_parse_response",dT="unable_to_load_token",Cm="crypto_key_not_found",hT="auth_code_required",fT="auth_code_or_nativeAccountId_required",mT="spa_code_and_nativeAccountId_present",Em="database_unavailable",gT="unable_to_acquire_token_from_native_platform",pT="native_handshake_timeout",_T="native_extension_not_installed",zs="native_connection_not_established",vT="uninitialized_public_client_application",yT="native_prompt_not_supported",CT="invalid_base64_string",ET="invalid_pop_token_request",wT="failed_to_build_headers",TT="failed_to_parse_headers";/*! @azure/msal-browser v3.28.1 2025-01-14 */const io="For more visit: aka.ms/msaljs/browser-errors",G2={[_m]:"The PKCE code challenge and verifier could not be generated.",[sf]:"The crypto object or function is not available.",[gu]:"Navigation URI is empty. Please check stack trace for more info.",[Yw]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${io}`,[vm]:"Hash does not contain state. Please verify that the request originated from msal.",[Jw]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${io}`,[Qw]:"Unable to parse state. Please verify that the request originated from msal.",[Xw]:"Hash contains state but the interaction type does not match the caller.",[Zw]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${io}`,[eT]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[tT]:"window.open returned null or undefined window object.",[bi]:"User cancelled the flow.",[H2]:`Token acquisition in popup failed due to timeout. ${io}`,[nT]:`Token acquisition in iframe failed due to timeout. ${io}`,[rT]:"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.",[oT]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${io}`,[iT]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[$2]:"The iframe being monitored was closed prematurely.",[pu]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[aT]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[K2]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[sT]:"No token request found in cache.",[cT]:"The cached token request could not be parsed.",[ym]:"No cached authority found.",[W2]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[z2]:"Invalid cache type",[_u]:"Login and token requests are not supported in non-browser environments.",[aa]:"Database is not open!",[Bl]:"No network connectivity. Check your internet connection.",[lT]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[uT]:"Network request failed. Please check the network trace to determine root cause.",[cf]:"Failed to parse network response. Check network trace.",[dT]:"Error loading token to cache.",[Cm]:"Cryptographic Key or Keypair not found in browser storage.",[hT]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[fT]:"An authorization code or nativeAccountId must be provided to this flow.",[mT]:"Request cannot contain both spa code and native account id.",[Em]:"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.",[gT]:`Unable to acquire token from native platform. ${io}`,[pT]:"Timed out while attempting to establish connection to browser extension",[_T]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[zs]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${io}`,[vT]:`You must call and await the initialize function before attempting to call any other MSAL API. ${io}`,[yT]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[CT]:"Invalid base64 encoded string.",[ET]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[wT]:"Failed to build request headers object.",[TT]:"Failed to parse response headers"};class Gs extends lt{constructor(e,t){super(e,G2[e],t),Object.setPrototypeOf(this,Gs.prototype),this.name="BrowserAuthError"}}function ie(n,e){return new Gs(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"},cy={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"},Yc={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 ly={scopes:Ma},bT="jwk",lf="msal.db",q2=1,j2=`${lf}.keys`,Pn={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},Y2=[Pn.Default,Pn.Skip,Pn.RefreshTokenAndNetwork],J2="msal.browser.log.level",Q2="msal.browser.log.pii";/*! @azure/msal-browser v3.28.1 2025-01-14 */function Jc(n){return encodeURIComponent(wm(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function vu(n){return IT(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function wm(n){return IT(new TextEncoder().encode(n))}function IT(n){const e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const X2="RSASSA-PKCS1-v1_5",ST="SHA-256",Z2=2048,eH=new Uint8Array([1,0,1]),uy="0123456789abcdef",dy=new Uint32Array(1),tH="crypto_subtle_undefined",Tm={name:X2,hash:ST,modulusLength:Z2,publicExponent:eH};function nH(n){if(!window)throw ie(_u);if(!window.crypto)throw ie(sf);if(!n&&!window.crypto.subtle)throw ie(sf,tH)}async function AT(n,e,t){e==null||e.addQueueMeasurement(x.Sha256Digest,t);const o=new TextEncoder().encode(n);return window.crypto.subtle.digest(ST,o)}function rH(n){return window.crypto.getRandomValues(n)}function uh(){return window.crypto.getRandomValues(dy),dy[0]}function go(){const n=Date.now(),e=uh()*1024+(uh()&1023),t=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,a=uh();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+=uy.charAt(t[d]>>>4),c+=uy.charAt(t[d]&15),(d===3||d===5||d===7||d===9)&&(c+="-");return c}async function oH(n,e){return window.crypto.subtle.generateKey(Tm,n,e)}async function dh(n){return window.crypto.subtle.exportKey(bT,n)}async function iH(n,e,t){return window.crypto.subtle.importKey(bT,n,Tm,e,t)}async function aH(n,e){return window.crypto.subtle.sign(Tm,n,e)}async function kT(n){const e=await AT(n),t=new Uint8Array(e);return vu(t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Ds="storage_not_supported",uf="stubbed_public_client_application_called",Fl="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.28.1 2025-01-14 */const vl={[Ds]:"Given storage configuration option was not supported.",[uf]:"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",[Fl]:"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."};vl[Ds],vl[uf],vl[Fl];class bm extends lt{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,bm.prototype)}}function Im(n){return new bm(n,vl[n])}/*! @azure/msal-browser v3.28.1 2025-01-14 */function sH(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function cH(n){const e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Sm(){return window.parent!==window}function lH(){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 uH(){const e=new De(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function dH(){if(De.hashContainsKnownProperties(window.location.hash)&&Sm())throw ie(oT)}function hH(n){if(Sm()&&!n)throw ie(rT)}function fH(){if(lH())throw ie(iT)}function NT(){if(typeof window>"u")throw ie(_u)}function RT(n){if(!n)throw ie(vT)}function Am(n){NT(),dH(),fH(),RT(n)}function hy(n,e){if(Am(n),hH(e.system.allowRedirectInIframe),e.cache.cacheLocation===vn.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw Im(Fl)}function OT(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 mH(){return go()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Vl{navigateInternal(e,t){return Vl.defaultNavigateWindow(e,t)}navigateExternal(e,t){return Vl.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 gH{async sendGetRequestAsync(e,t){let r,o={},a=0;const c=fy(t);try{r=await fetch(e,{method:cy.GET,headers:c})}catch{throw ie(window.navigator.onLine?uT:Bl)}o=my(r.headers);try{return a=r.status,{headers:o,body:await r.json(),status:a}}catch{throw ny(ie(cf),a,o)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=fy(t);let a,c=0,d={};try{a=await fetch(e,{method:cy.POST,headers:o,body:r})}catch{throw ie(window.navigator.onLine?lT:Bl)}d=my(a.headers);try{return c=a.status,{headers:d,body:await a.json(),status:c}}catch{throw ny(ie(cf),c,d)}}}function fy(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(wT)}}function my(n){try{const e={};return n.forEach((t,r)=>{e[r]=t}),e}catch{throw ie(TT)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const pH=6e4,df=1e4,_H=3e4,vH=2e3;function yH({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:Ws.FRAGMENT,defaultScopes:[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:tm.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={...{...Fw,loggerOptions:d,networkClient:o?new gH:x2,navigationClient:new Vl,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||pH,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||df,navigateFrameWait:0,redirectNavigationTimeout:_H,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||vH,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 V2};if((n==null?void 0:n.protocolMode)!==fo.OIDC&&(n!=null&&n.OIDCOptions)&&new Ko(m.loggerOptions).warning(JSON.stringify(Xe(Ow))),n!=null&&n.protocolMode&&n.protocolMode!==fo.AAD&&(m!=null&&m.allowNativeBroker))throw Xe(Pw);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 CH="@azure/msal-browser",yu="3.28.1";/*! @azure/msal-browser v3.28.1 2025-01-14 */class km{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=yH(e,this.browserEnvironment);let t;try{t=window[vn.SessionStorage]}catch{}const r=t==null?void 0:t.getItem(J2),o=(h=t==null?void 0:t.getItem(Q2))==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=km.loggerCallback,c.logLevel=d),a!==void 0&&(c.piiLoggingEnabled=a),this.logger=new Ko(c,CH,yu),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 km{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(EH(n))}function EH(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(CT)}const t=atob(e);return Uint8Array.from(t,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class wH{constructor(){this.dbName=lf,this.version=q2,this.tableName=j2,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(Em)))})}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(lf),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 hf{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 TH{constructor(e){this.inMemoryCache=new hf,this.indexedDBCache=new wH,this.logger=e}handleDatabaseAccessError(e){if(e instanceof Gs&&e.errorCode===Em)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 Sa{constructor(e,t,r){this.logger=e,nH(r??!1),this.cache=new TH(this.logger),this.performanceClient=t}createNewGuid(){return go()}base64Encode(e){return wm(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 oH(Sa.EXTRACTABLE,Sa.POP_KEY_USAGES),o=await dh(r.publicKey),a={e:o.e,kty:o.kty,n:o.n},c=gy(a),d=await this.hashString(c),h=await dh(r.privateKey),m=await iH(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(Cm);const d=await dh(c.publicKey),h=gy(d),m=Jc(JSON.stringify({kid:t})),g=pm.getShrHeaderString({...r==null?void 0:r.header,alg:d.alg,kid:m}),_=Jc(g);e.cnf={jwk:JSON.parse(h)};const p=Jc(JSON.stringify(e)),w=`${_}.${p}`,T=new TextEncoder().encode(w),k=await aH(c.privateKey,T),I=vu(new Uint8Array(k)),N=`${w}.${I}`;return a&&a.end({success:!0}),N}async hashString(e){return kT(e)}}Sa.POP_KEY_USAGES=["sign","verify"];Sa.EXTRACTABLE=!0;function gy(n){return JSON.stringify(n,Object.keys(n).sort())}/*! @azure/msal-browser v3.28.1 2025-01-14 */class bH{constructor(){if(!window.localStorage)throw Im(Ds)}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 IH{constructor(){if(!window.sessionStorage)throw Im(Ds)}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 PT(n,e){if(!e)return null;try{return Cr.parseRequestState(n,e).libraryState.meta}catch{throw Y(Ta)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const SH=24*60*60*1e3;class AH{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=kH(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 kH(n){const e=new Date;return new Date(e.getTime()+n*SH).toUTCString()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class ff extends ba{constructor(e,t,r,o,a,c){super(e,r,o,a),this.cacheConfig=t,this.logger=o,this.internalStorage=new hf,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new AH,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=c}setupBrowserStorage(e){try{switch(e){case vn.LocalStorage:return new bH;case vn.SessionStorage:return new IH;case vn.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=vn.MemoryStorage,new hf}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((_,p)=>{const w=m[p];w&&this.setTemporaryCache(_,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(Gv(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(zv(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(qv(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):ba.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(ef)}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(ef)}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||!Gv(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||!zv(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||!qv(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||!yV(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=vV(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||!pV(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&&CV(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(Yc.WRAPPER_SKU,e),this.internalStorage.setItem(Yc.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(Yc.WRAPPER_SKU)||F.EMPTY_STRING,t=this.internalStorage.getItem(Yc.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||!_V(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):yr.startsWith(e,F.CACHE_PREFIX)||yr.startsWith(e,Lt.ADAL_ID_TOKEN)?e:`${F.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=Cr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=Cr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=Cr.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=PT(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=wm(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(sT);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(cT)}if(this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),!r.authority){const o=this.generateAuthorityKey(e),a=this.getTemporaryCache(o);if(!a)throw ie(ym);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(Zw);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=lu((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=uu((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 NH=(n,e)=>{const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new ff(n,t,Pl,e)};/*! @azure/msal-browser v3.28.1 2025-01-14 */function RH(n,e,t,r){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(r):[]}function OH(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 PH(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 MH(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 DH(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 LH(n,e){e.setActiveAccount(n)}function xH(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 UH{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Ko({})}addEventCallback(e,t,r){if(typeof window<"u"){const o=r||mH();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 MT{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,yu,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 Ms(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($w,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(Mw);return m}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const BH=32;async function FH(n,e,t){n.addQueueMeasurement(x.GeneratePkceCodes,t);const r=Ai(VH,x.GenerateCodeVerifier,e,n,t)(n,e,t),o=await Q(HH,x.GenerateCodeChallengeFromVerifier,e,n,t)(r,n,e,t);return{verifier:r,challenge:o}}function VH(n,e,t){try{const r=new Uint8Array(BH);return Ai(rH,x.GetRandomValues,e,n,t)(r),vu(r)}catch{throw ie(_m)}}async function HH(n,e,t,r){e.addQueueMeasurement(x.GenerateCodeChallengeFromVerifier,r);try{const o=await Q(AT,x.Sha256Digest,t,e,r)(n,e,r);return vu(new Uint8Array(o))}catch{throw ie(_m)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function Nm(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(du);if(!n.sshKid)throw Xe(Rw)}r.verbose(`Authentication Scheme set to "${c.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!yr.isEmptyObj(n.claims)&&(c.requestedClaimsHash=await kT(n.claims)),c}async function $H(n,e,t,r,o){r.addQueueMeasurement(x.InitializeSilentRequest,n.correlationId);const a=await Q(Nm,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 Da extends MT{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await Q(FH,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 zw(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:yu,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=Cr.setRequestState(this.browserCrypto,e&&e.state||F.EMPTY_STRING,o),d={...await Q(Nm,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 KH="ContentError",DT="user_switch";/*! @azure/msal-browser v3.28.1 2025-01-14 */const WH="USER_INTERACTION_REQUIRED",zH="USER_CANCEL",GH="NO_NETWORK",qH="PERSISTENT_ERROR",jH="DISABLED",YH="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.28.1 2025-01-14 */const JH=-2147186943,QH={[DT]:"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===qH||n.ext.status===jH)||n.ext&&n.ext.error&&n.ext.error===JH)return!0;switch(n.errorCode){case KH:return!0;default:return!1}}function mf(n,e,t){if(t&&t.status)switch(t.status){case YH:return of(Kw);case WH:return new wr(n,e);case zH:return ie(bi);case GH:return ie(Bl)}return new Br(n,QH[n]||e,t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class LT extends Da{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 L2(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 Gs&&a.errorCode===Cm&&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 MT{constructor(e,t,r,o,a,c,d,h,m,g,_,p){var C;super(e,t,r,o,a,c,h,m,p),this.apiId=d,this.accountId=g,this.nativeMessageHandler=m,this.nativeStorageManager=_,this.silentCacheClient=new LT(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=Ms.makeExtraSkuString({libraryName:Dn.MSAL_SKU,libraryVersion:yu,extensionName:w,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[v2]: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(Xh);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!r)throw Y(Xh);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 mf(DT);const d=await this.getDiscoveredAuthority({requestAuthority:t.authority}),h=mm(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,gr.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 Ia(this.browserCrypto),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Y(Zf);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,_=m.TenantId||r.tid||F.EMPTY_STRING,p=cm(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:_,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=lu(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,_=this.generateScopes(e,t),p=uu(r,t.authority,a,t.clientId,o.tid||c,_.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 ZE(qf,"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(Ma);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(yT)}},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(ET);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 Ia(this.browserCrypto);let _;if(h.keyId)_=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);_=p.reqCnfString,h.keyId=p.kid,h.signPopToken=!0}h.reqCnf=_}return this.addRequestSKUs(h),h}handleExtraBrokerParams(e){var a;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(dm)&&e.extraParameters.hasOwnProperty(rf)&&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[rf],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(pT)),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(_T))}}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(mf(c.code,c.description,c.ext));else if(c.result)c.result.code&&c.result.description?r.reject(mf(c.result.code,c.result.description,c.result.ext)):r.resolve(c.result);else throw ZE(qf,"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 Rm{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 xT(n,e,t){const r=Ll(n);if(!r)throw Lw(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(Jw)):(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(Yw));return r}function XH(n,e,t){if(!n.state)throw ie(vm);const r=PT(e,n.state);if(!r)throw ie(Qw);if(r.interactionType!==t)throw ie(Xw)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class ZH extends Da{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||Ma,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);OT(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}),_=new Rm(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(xT,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(zs);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}=Cr.parseRequestState(this.browserCrypto,o.state);return await k.acquireToken({...o,state:I,prompt:void 0})}return await _.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 _=g.getLogoutUri(e);this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e);const p=this.openPopup(_,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(gu)}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===Ws.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(tT);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(eT)}}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,_=(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),(!_||_<0||_>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),_=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=${_}, 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 py{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(gu)}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(Ol,"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 e$(){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 t$ extends Da{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 py(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),e$()!=="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&&cH(c),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Sm()||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 _=uH();this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,_,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),g=await this.navigationClient.navigateInternal(_,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===Ws.QUERY?t=window.location.search:t=window.location.hash);let r=Ll(t);if(r){try{XH(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 sH(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=Ll(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(vm);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(zs);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}=Cr.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(ym);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 py(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 n$(n,e,t,r,o){if(e.addQueueMeasurement(x.SilentHandlerInitiateAuthRequest,r),!n)throw t.info("Navigate url is empty"),ie(gu);return o?Q(o$,x.SilentHandlerLoadFrame,t,e,r)(n,o,e,r):Ai(i$,x.SilentHandlerLoadFrameSync,t,e,r)(n)}async function r$(n,e,t,r,o,a,c){return r.addQueueMeasurement(x.SilentHandlerMonitorIframeForHash,a),new Promise((d,h)=>{e<df&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${df}ms). This may result in timeouts.`);const m=window.setTimeout(()=>{window.clearInterval(g),h(ie(nT))},e),g=window.setInterval(()=>{let _="";const p=n.contentWindow;try{_=p?p.location.href:""}catch{}if(!_||_==="about:blank")return;let w="";p&&(c===Ws.QUERY?w=p.location.search:w=p.location.hash),window.clearTimeout(m),window.clearInterval(g),d(w)},t)}).finally(()=>{Ai(a$,x.RemoveHiddenIframe,o,r,a)(n)})}function o$(n,e,t,r){return t.addQueueMeasurement(x.SilentHandlerLoadFrame,r),new Promise((o,a)=>{const c=UT();window.setTimeout(()=>{if(!c){a("Unable to load iframe");return}c.src=n,o(c)},e)})}function i$(n){const e=UT();return e.src=n,e}function UT(){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 a$(n){document.body===n.parentNode&&document.body.removeChild(n)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class s$ extends Da{constructor(e,t,r,o,a,c,d,h,m,g,_){super(e,t,r,o,a,c,h,g,_),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);OT(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(pu))}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 Rm(e,this.browserStorage,o,this.logger,this.performanceClient),d=await Q(n$,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(r$,x.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(d,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,h),g=Ai(xT,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(zs);const _=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}=Cr.parseRequestState(this.browserCrypto,t.state);return Q(_.acquireToken.bind(_),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 c$ extends Da{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentRefreshClientAcquireToken,e.correlationId);const t=await Q(Nm,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(pu))}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 af(t,this.performanceClient)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class l${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(_u);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(dT);const a=Pt.generateHomeAccountId(t,o.authorityType,this.logger,this.cryptoObj,r),c=r==null?void 0:r.tid,d=mm(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=lu(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=uu(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=yw(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,_,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:((_=t.refreshToken)==null?void 0:_.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 u$ extends zw{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class d$ extends Da{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(hT);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 u$(a);this.logger.verbose("Auth code client created");const d=new Rm(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(pu))}}/*! @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 Qc(n,e){try{Am(n)}catch(t){throw e.end({success:!1},t),t}}class Cu{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 Sa(this.logger,this.performanceClient):Pl,this.eventHandler=new UH(this.logger),this.browserStorage=this.isBrowserEnvironment?new ff(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,I2(this.config.auth),this.performanceClient):NH(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 ff(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new l$(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 Cu(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"),RT(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{hy(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 wr)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),Qc(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 wr)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)}),Qc(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);Qc(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(mT);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(gT);else throw ie(fT)}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 hy(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return Am(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 RH(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return OH(e,this.logger,this.browserStorage)}getAccountByUsername(e){return PH(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return MH(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return DH(e,this.logger,this.browserStorage)}setActiveAccount(e){LH(e,this.browserStorage)}getActiveAccount(){return xH(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(zs);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 ZH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new t$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new s$(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 LT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new c$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new d$(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 NT(),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=ba.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||ly})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||ly})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenSilent,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Qc(this.initialized,r),this.logger.verbose("acquireTokenSilent called",t);const o=e.account||this.getActiveAccount();if(!o)throw ie(aT);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($H,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(h$(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 _=this.performanceClient.startMeasurement(x.AwaitConcurrentIframe,o.correlationId);_.add({awaitIframeCorrelationId:g});const p=await m;if(_.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 h$(n,e){const t=!(n instanceof wr&&n.subError!==mu),r=n.errorCode===Dn.INVALID_GRANT_ERROR||n.errorCode===co,o=t&&r||n.errorCode===Ul||n.errorCode===fm,a=Y2.includes(e);return o&&a}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function f$(n,e){const t=new Ii(n);return await t.initialize(),Cu.createController(t,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Om{static async createPublicClientApplication(e){const t=await f$(e);return new Om(e,t)}constructor(e,t){this.controller=t||new Cu(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 hh=process.env.JPLAN_WEBAPP__APP_PROXY_TENANT_NAME??"",m$=process.env.JPLAN_WEBAPP__APP_PROXY_CLIENT_ID??"",g$=process.env.JPLAN_WEBAPP__APP_PROXY_USER_FLOW??"",gf=process.env.JPLAN_WEBAPP__URL_AUTH??process.env.JPLAN_WEBAPP__URL_BASE??"",p$={auth:{clientId:m$,authority:`https://${hh}.b2clogin.com/${hh}.onmicrosoft.com/${g$}`,knownAuthorities:[`${hh}.b2clogin.com`],redirectUri:process.env.JPLAN_AUTOMATION_ENVIRONMENT?`${gf}/_/dashboard`:gf},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(n,e)=>{n===tt.Error&&console.error(e)},logLevel:tt.Warning}}},BT=(n,e)=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:`${gf}${n}`,extraQueryParameters:e}),Gt=new Om(p$),_y=l.ref(null);function FT(){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"),_y.value=m}catch(r){console.error("Erro ao obter token de acesso:",r)}}return{jToken:_y,setJToken:n}}let Xc=null;const tr=l.ref(null),Ji=l.ref(null),VT=l.ref(Math.floor(Date.now()/1e3));pf.useIntervalFn(()=>_$(),1e3);function _$(){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;VT.value=t-n-e}function Pm(){if(Xc)return Xc;const{setJToken:n,jToken:e}=FT(),t=l.computed(()=>!!tr.value),r=l.computed(()=>tr.value);let o;async function a(p,w){if(!t.value)switch(p){case"redirect":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=BT(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(VT,async p=>{p<=0&&Ji.value==="updated"&&await m()});const _=l.computed(()=>e.value);return Xc={isAuthenticated:t,authState:Ji,account:r,token:_,refreshToken:m,handleRedirect:a,logout:g},Xc}const{jToken:vy}=FT(),{toast:Zc}=hC();function yy(n){return{success:e=>Zc.server.success(e,n()),error:e=>Zc.server.error(e,n()),warning:e=>Zc.server.warning(e,n()),info:e=>Zc.server.info(e,n())}}const Mm=()=>{const n=dt.create({headers:{"Content-Type":"application/json"}});l.watch(vy,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.notify=yy(()=>{var a,c;return{url:((a=o.config)==null?void 0:a.url)||"",method:((c=o.config)==null?void 0:c.method)||"",status:o.status}}),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 ${vy.value}`,await n(c)}catch(d){return Promise.reject(d)}}}return o.response&&(o.response.notify=yy(()=>{var c,d,h;return{url:((c=o.config)==null?void 0:c.url)||"",method:((d=o.config)==null?void 0:d.method)||"",status:((h=o.response)==null?void 0:h.status)||0}})),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:_}=m;throw new Error(`Axios error: ${_}, 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:_}=m;console.error(`Raw Request Error: ${_}, Status: ${g==null?void 0:g.status}`)}return Promise.reject(m)}}return Object.assign(n,{_request:t,rawRequest:r})},{request:Cy}=Mm(),Ey=l.ref(null),wy=l.ref("default"),fh=l.ref(null),mh=l.ref({scope_type:"org"});function Eu(){var _,p;const{handleRedirect:n,account:e,logout:t}=Pm();(p=(_=e.value)==null?void 0:_.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:wy.value,...mh.value}}),o=l.computed(()=>mh.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 Cy({url:`https://api.jplan.com.br/platform/user/profile/?email=${T}`,method:"GET"});fh.value=k.data??null}catch(T){console.error("Failed to fetch user profile:",T)}}async function d(){var w;try{if(!((w=fh.value)!=null&&w.email))throw new Error("User email is undefined");const C=await Cy({url:"https://api.jplan.com.br/platform/user/domain/",method:"GET"});Ey.value=C.data.data??[]}catch(C){console.error("Failed to fetch user domains:",C)}}function h(w){mh.value=w}function m(w){wy.value=w}async function g(w,C){const T=BT(w,{request_domain:C});await Gt.loginRedirect(T)}return{__init__:a,user:fh,userDomains:Ey,setEnv:m,setScope:h,changeDomain:g,session:r,scope:o,logout:t}}const v$={path:"/_/dashboard",component:()=>Promise.resolve().then(()=>require("./AuthRoute-BYtmXWOj.js")),meta:{requiresAuth:!1}},y$={path:"/jplan-auth-fail",component:()=>Promise.resolve().then(()=>require("./AuthFailRoute-DHl-IhUQ.js")),meta:{requiresAuth:!1}},{isAuthenticated:Ty,handleRedirect:C$}=Pm(),E$=Eu();function w$(n,e){n.addRoute(v$),n.addRoute(y$),n.beforeEach(async(t,r,o)=>{function a(d){return d.matched.some(h=>h.meta.requiresAuth)}if(!a(t))return o();if(!Ty.value){ve.value=!0;try{await C$(e,t.fullPath),await E$.__init__()}catch(d){console.error("Fail to authenticate",d),await n.push("/jplan-auth-fail")}ve.value=!1}if(Ty.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:by}=Eu();function T$(){const n=Mm(),e=l.ref({scope_type:"org"});async function t(r){e.value=r}return l.watch(by,()=>{n.interceptors.request.use(r=>{const o=r.headers,a=o.Authorization;a&&(o.Authorization=a);const c=by.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 La(n){const e=T$();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 Iy={enUS:{widget:"widget",spacer:"spacer"},ptBr:{widget:"widget",spacer:"Espaçador"}},Dm={"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:Iy.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:Iy.ptBr}}},b$=Object.keys(Dm),Sy=navigator.language,I$=b$.includes(Sy)?Sy:"pt-BR",$=Ix({locale:I$,fallbackLocale:"en-US",messages:Dm});function S$(){const n=La("https://api.jplan.com.br/management/organization"),{error:e}=ar();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=S$();function A$(){const n=La("https://api.jplan.com.br/management/branch/"),{error:e}=ar();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=A$();function k$(){const n=La("https://api.jplan.com.br/management/team"),{error:e}=ar();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=k$();let el=!1;const gh=l.ref(!1),jn=l.ref([]),Ay=l.ref([]),ft=l.ref(null),Qi=l.ref([]),Xi=l.ref([]),HT=()=>{const n=ar(),e=async C=>{gh.value=!0;const T=C?`_active eq true and ${C}`:"_active eq true",k=await xo.getOrgList(T);k&&(jn.value=k,el=!0),gh.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=Pa(jn.value,C,["name","description"]);return C!==""?T:jn.value}const o=C=>{Ay.value=C},a=C=>{ft.value=Oa.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"})),el&&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(el&&(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),el){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 _(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:gh,columns:Ay,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:_,linkTeam:p,unlinkTeam:w}};let tl=!1;const Yn=l.ref([]),ky=l.ref([]),Nt=l.ref(null),ph=l.ref(!1),Zi=l.ref([]),$T=()=>{const n=ar(),e=async p=>{ph.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Mn.getTeamList(w);C&&(Yn.value=C,tl=!0),ph.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=Pa(Yn.value,p,["name","description"]);return p!==""?w:Yn.value}const o=p=>{ky.value=p},a=p=>{Nt.value=Oa.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"})),tl&&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(tl&&(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),tl)){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 _(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:ph,columns:ky,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:_}},KT=l.defineComponent({__name:"GlobalScopeFilter",setup(n){var T,k,I;const{openDialog:e}=Ls("global-scope__J-"),{user:t,scope:r,session:o,setScope:a}=Eu(),{getData:c,data:d}=HT(),{getData:h,data:m}=$T(),g=l.ref(!1);l.onBeforeMount(async()=>{g.value=!0,await c(),await h(),g.value=!1});const _=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;_.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 KF;case"org":return HF;case"team":return WF;default:return $F}});async function C(){var N;((N=r.value)==null?void 0:N.scope_type)!==""&&a(_.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(Us),{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(OO.VBtnToggle,{density:"compact",variant:"outlined",modelValue:_.value.scope_type,"onUpdate:modelValue":D[0]||(D[0]=L=>_.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(va.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(hs.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:_.value.organization,"onUpdate:modelValue":D[1]||(D[1]=L=>_.value.organization=L),clearable:""},null,8,["items","placeholder","modelValue"]),l.createVNode(va.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(hs.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:_.value.team,"onUpdate:modelValue":D[2]||(D[2]=L=>_.value.team=L),clearable:""},null,8,["items","placeholder","modelValue"])])])]),_:1},8,["loading","title"])],64))}}),N$={},R$={class:"double-ring-spinner-container"};function O$(n,e){return l.openBlock(),l.createElementBlock("div",R$,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 WT=Aa(N$,[["render",O$],["__scopeId","data-v-00d7a69f"]]),P$={key:0,class:"_jspinner-overlay_jj"},zT=l.defineComponent({__name:"GlobalSpinner",setup(n){return(e,t)=>l.unref(ve)?(l.openBlock(),l.createElementBlock("div",P$,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)}}),GT=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(zF))]),default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.title),1)]),_:1}),l.createVNode(vf.VMenu,{activator:"parent","open-on-hover":"",submenu:"",density:"compact"},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3})]),_:3}))}}),M$=Object.freeze(Object.defineProperty({__proto__:null,AvatarPicture:vC,ColumnSettingsDialog:Vf,ConfirmDialog:pC,ContextMenu:yC,CopyButton:Hl,DeleteAllBtn:Tf,DotsMenu:gC,EditButton:mC,FormHeadless:QE,FormMetadata:su,GlobalScopeFilter:KT,GlobalSpinner:zT,JAutocomplete:zE,JAvatar:_C,JBtn:Ly,JDialog:Us,JForm:YE,JIconBtn:Dy,JSelect:WE,JTextArea:GE,JTextField:yE,ParentCard:Gl,SearchFilter:Zl,SpinnerLoader:WT,SubMenu:GT,TabFormHeader:JE,TableAdvanced:rE,TableCard:Hf,TableCardsView:vE,TableHeader:oE,UiTable:CC},Symbol.toStringTag,{value:"Module"})),D$=a0(),L$={transition:"Vue-Toastification__fade",maxToasts:20,newestOnTop:!0};let _h=!1;const vh=l.ref(!1),Jn=l.ref([]),Ny=l.ref([]),$t=l.ref(null),ea=l.ref([]),x$=()=>{const n=ar(),e=async p=>{vh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Uo.getBranchList(w);C&&(Jn.value=C,_h=!0),vh.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=Pa(Jn.value,p,["name","description"]);return p!==""?w:Jn.value}const o=p=>{Ny.value=p},a=p=>{$t.value=Oa.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"})),_h&&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(_h&&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 _(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:Ny,item:$t,loading:vh,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,branchTeams:ea,linkTeam:g,unlinkTeam:_}};function U$(){const n=La("https://api.jplan.com.br/management/division"),{error:e}=ar();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=U$();let yh=!1;const Ch=l.ref(!1),Qn=l.ref([]),Ry=l.ref([]),Kt=l.ref(null),ta=l.ref([]),B$=()=>{const n=ar(),e=async p=>{Ch.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await ca.getDivisionList(w);C&&(Qn.value=C,yh=!0),Ch.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=Pa(Qn.value,p,["name","description"]);return p!==""?w:Qn.value}const o=p=>{Ry.value=p},a=p=>{Kt.value=Oa.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"})),yh&&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(yh&&(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 _(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:Ry,item:Kt,loading:Ch,__init__:e,filterData:r,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgs:ta,linkDivision:g,unlinkDivision:_}};function F$(){const n=La("https://api.jplan.com.br/management/user"),{error:e}=ar();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=F$();let Eh=!1,wh=l.ref(!1);const Xn=l.ref([]),Oy=l.ref([]),Zn=l.ref(null),V$=l.ref(null),H$=l.ref([]),$$=()=>{const n=ar(),e=async g=>{wh.value=!0;const _=g?`_active eq true and ${g}`:"_active eq true",p=await la.getManageUserList(_);p&&(Xn.value=p,Eh=!0),wh.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 _=Pa(Xn.value,g,["name","description"]);return g!==""?_:Xn.value}return{data:Xn,loading:wh,columns:Oy,item:Zn,filterData:r,__init__:e,getData:t,setColumns:g=>{Oy.value=g},setItem:g=>{Zn.value=Oa.cloneDeep(g)},getItem:async g=>await la.getManageUser(g),createItem:async()=>{if(Zn.value!=null){const g=crypto.randomUUID(),_=await la.createManageUser({...Zn.value,__id:g});return _!=null&&_.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"User"})),Eh&&Xn.value.push(_.data)),_==null?void 0:_.data}},updateItem:async()=>{if(ve.value=!0,Zn.value&&Zn.value.created_at){const g=await la.updateManageUser(Zn.value);if(Eh&&(g!=null&&g.data)){const _=Xn.value.findIndex(p=>p.__id===(g==null?void 0:g.data.__id));_!==-1?(Xn.value[_]=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(_=>{var p;return _.__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:V$,userTeams:H$}},Th=Object.freeze({colNum:24,rowHeight:50,useCssTransforms:!0,responsive:!0,margin:[12,10]}),na=l.ref(!1),K$=l.ref([]);function W$(){const n=l.ref({...Th,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={...Th,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"}}return{DEFAULT_CONFIG:Th,config:n,layout:K$,edition:na,toggleEdit:e,resetLayout:t}}const z$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetTask-BFEjXsbm.js"))),G$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetImage-CmXW7a_H.js"))),q$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetShortcut-Csv8Xy1k.js"))),j$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetSpacer-BJCiTN51.js"))),Y$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetLabel-CwQTdN7f.js"))),J$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartBar-ChMg_dbz.js"))),Q$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartPie-C2AIgVQ2.js"))),X$={WidgetSpacer:j$,WidgetLabel:Y$,WidgetTask:z$,WidgetImage:G$,WidgetShortcut:q$,WidgetChartBar:J$,WidgetChartPie:Q$},Z$={defaultI18n:!0},eK=(n,e)=>{const t={...Z$,...e};n.use(D$),n.use(cP,L$),t.defaultI18n&&n.use($),Object.entries(M$).forEach(([r,o])=>{n.component(r,o)}),Object.entries(MO).forEach(([r,o])=>{n.provide(r,o)})},tK={install:eK};exports.ContextMenu=yC;exports.EmptyListImg=Bh;exports.EventBus=Wl;exports.FormHeadless=QE;exports.HttpCore=fF;exports.I18nMessages=Dm;exports.SpinnerLoader=WT;exports.TableCardsView=vE;exports.TableHeader=oE;exports.__spinner=ve;exports._export_sfc=Aa;exports._sfc_main=Us;exports._sfc_main$1=CC;exports._sfc_main$10=Ly;exports._sfc_main$11=Tf;exports._sfc_main$12=mC;exports._sfc_main$13=Dy;exports._sfc_main$14=WE;exports._sfc_main$15=zE;exports._sfc_main$16=GE;exports._sfc_main$17=yE;exports._sfc_main$18=YE;exports._sfc_main$19=JE;exports._sfc_main$2=rE;exports._sfc_main$20=Gl;exports._sfc_main$21=_C;exports._sfc_main$22=vC;exports._sfc_main$23=GT;exports._sfc_main$24=KT;exports._sfc_main$25=zT;exports._sfc_main$3=Vf;exports._sfc_main$4=Hf;exports._sfc_main$5=Zl;exports._sfc_main$6=pC;exports._sfc_main$7=Hl;exports._sfc_main$8=gC;exports._sfc_main$9=su;exports.branchInstance=Uo;exports.coreClient=Mm;exports.createToastInterface=bs;exports.dateFormat=fs;exports.divisionInstance=ca;exports.filterQuery=Pa;exports.globalEventBus=wf;exports.i18n=$;exports.index=tK;exports.manageUserInstance=la;exports.msal=Gt;exports.orgInstance=xo;exports.provideToast=sP;exports.scopedClient=La;exports.setupAuthGuard=w$;exports.teamInstance=Mn;exports.toastInjectionKey=zl;exports.useAuth=Pm;exports.useBranchStore=x$;exports.useCustomizer=d0;exports.useDashboardStore=W$;exports.useDialog=Ls;exports.useDivisionStore=B$;exports.useManageUserStore=$$;exports.useNotifications=hC;exports.useOrganizationStore=HT;exports.useSession=Eu;exports.useTeamStore=$T;exports.useToast=ar;exports.widgets=X$;
113
+ ${c}`);return}throw ry(e.error,e.error_description,e.suberror)?new wr(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(rw);if(o.maxAge||o.maxAge===0){const T=g.auth_time;if(!T)throw Y(Yf);gw(T,o.maxAge)}}this.homeAccountIdentifier=Pt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,g);let _;a&&a.state&&(_=Cr.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 N2(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,_,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,_,e,m)}generateCacheRecord(e,t,r,o,a,c,d){const h=t.getPreferredCache();if(!h)throw Y(Qf);const m=Ow(a);let g,_;e.id_token&&a&&(g=cu(this.homeAccountIdentifier,h,e.id_token,this.clientId,m||""),_=fm(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?_t.fromString(e.scope):new _t(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=lu(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=pw(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:_,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,_=[],p=null,w,C,T=F.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===Ge.POP&&!a.popKid){const ce=new Ia(e),{secret:ae,keyId:X}=r.accessToken;if(!X)throw Y(Xf);g=await ce.signPopToken(ae,X,a)}else g=r.accessToken.secret;_=_t.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===ys?ys:"");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?sm(r.account.getAccountInfo(),void 0,c,(D=r.idToken)==null?void 0:D.secret):null;return{authority:t.canonicalAuthority,uniqueId:k,tenantId:I,scopes:_,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 fm(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=am(t,C.localAccountId,k,o);T.push(I)}return C.tenantProfiles=T,C}/*! @azure/msal-common v14.16.0 2024-11-05 */async function Hw(n,e,t){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.0 2024-11-05 */class $w extends dm{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(aw);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(dw);return e}getLogoutUri(e){if(!e)throw Xe(Tw);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 _=Pl(t.clientInfo,this.cryptoUtils.base64Decode);c={credential:`${_.uid}${tn.CLIENT_INFO_SEPARATOR}${_.utid}`,type:Bn.HOME_ACCOUNT_ID}}catch(_){this.logger.verbose("Could not parse client info for CCS Header: "+_)}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 Es(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&&!tf(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 Hw(c.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(c.assertionType)}if(t.addGrantType(YE.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Ge.POP){const c=new Ia(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(uu);(!yr.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=Pl(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[ey])&&t.addExtraQueryParameters({[ey]:"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 Es(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),tf(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 Ia(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 Es(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 O2=300;class of extends dm{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(ww);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 wr&&o.errorCode===xl,c=o instanceof Wo&&o.errorCode===Vv.INVALID_GRANT_ERROR&&o.subError===Vv.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 rf(xl);if(r.expiresOn&&ef(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||O2))throw rf(hm);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 wr&&c.subError===fu){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 Es(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(YE.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!tf(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 Hw(d.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(d.assertionType)}if(e.authenticationScheme===Ge.POP){const d=new Ia(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(uu);if((!yr.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 P2 extends dm{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:[...Ma]});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 of(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof su&&r.errorCode===co)return new of(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&&!yr.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||E2(e.authority),o=this.cacheManager.getTokenKeys(),a=this.cacheManager.getAccessToken(e.account,e,o,r,this.performanceClient,e.correlationId);if(a){if(sV(a.cachedAt)||ef(a.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Mo.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Y(co);a.refreshOn&&ef(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(Yf);gw(a,t.maxAge)}return Ti.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,r)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const M2={sendGetRequestAsync:()=>Promise.reject(Y(Ae)),sendPostRequestAsync:()=>Promise.reject(Y(Ae))};/*! @azure/msal-common v14.16.0 2024-11-05 */const oy=",",Kw="|";function D2(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(oy),d.length<4)return e}else d=Array.from({length:4},()=>Kw);return c.forEach((h,m)=>{var g,_;h.length===2&&((g=h[0])!=null&&g.length)&&((_=h[1])!=null&&_.length)&&L2({skuArr:d,index:m,skuName:h[0],skuVersion:h[1]})}),d.join(oy)}function L2(n){const{skuArr:e,index:t,skuName:r,skuVersion:o}=n;t>=e.length||(e[t]=[r,o].join(Kw))}class Ms{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=Ms.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=Ms.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 D2(e)}}/*! @azure/msal-common v14.16.0 2024-11-05 */const Ww="missing_kid_error",zw="missing_alg_error";/*! @azure/msal-common v14.16.0 2024-11-05 */const x2={[Ww]:"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.",[zw]:"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 mm extends lt{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,mm.prototype)}}function iy(n){return new mm(n,x2[n])}/*! @azure/msal-common v14.16.0 2024-11-05 */class gm{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw iy(Ww);if(!e.alg)throw iy(zw);const t=new gm({typ:e.typ||zF.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}}/*! @azure/msal-common v14.16.0 2024-11-05 */class ay{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class U2{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:C2.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new ay}}startPerformanceMeasurement(){return new ay}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 pm="pkce_not_created",af="crypto_nonexistent",mu="empty_navigate_uri",Gw="hash_empty_error",_m="no_state_in_hash",qw="hash_does_not_contain_known_properties",jw="unable_to_parse_state",Yw="state_interaction_type_mismatch",Jw="interaction_in_progress",Qw="popup_window_error",Xw="empty_window_error",bi="user_cancelled",B2="monitor_popup_timeout",Zw="monitor_window_timeout",eT="redirect_in_iframe",tT="block_iframe_reload",nT="block_nested_popups",F2="iframe_closed_prematurely",gu="silent_logout_unsupported",rT="no_account_error",V2="silent_prompt_value_error",oT="no_token_request_cache_error",iT="unable_to_parse_token_request_cache_error",vm="no_cached_authority_error",H2="auth_request_not_set_error",$2="invalid_cache_type",pu="non_browser_environment",aa="database_not_open",Ul="no_network_connectivity",aT="post_request_failed",sT="get_request_failed",sf="failed_to_parse_response",cT="unable_to_load_token",ym="crypto_key_not_found",lT="auth_code_required",uT="auth_code_or_nativeAccountId_required",dT="spa_code_and_nativeAccountId_present",Cm="database_unavailable",hT="unable_to_acquire_token_from_native_platform",fT="native_handshake_timeout",mT="native_extension_not_installed",zs="native_connection_not_established",gT="uninitialized_public_client_application",pT="native_prompt_not_supported",_T="invalid_base64_string",vT="invalid_pop_token_request",yT="failed_to_build_headers",CT="failed_to_parse_headers";/*! @azure/msal-browser v3.28.1 2025-01-14 */const io="For more visit: aka.ms/msaljs/browser-errors",K2={[pm]:"The PKCE code challenge and verifier could not be generated.",[af]:"The crypto object or function is not available.",[mu]:"Navigation URI is empty. Please check stack trace for more info.",[Gw]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${io}`,[_m]:"Hash does not contain state. Please verify that the request originated from msal.",[qw]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${io}`,[jw]:"Unable to parse state. Please verify that the request originated from msal.",[Yw]:"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}`,[Qw]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Xw]:"window.open returned null or undefined window object.",[bi]:"User cancelled the flow.",[B2]:`Token acquisition in popup failed due to timeout. ${io}`,[Zw]:`Token acquisition in iframe failed due to timeout. ${io}`,[eT]:"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.",[tT]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${io}`,[nT]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[F2]:"The iframe being monitored was closed prematurely.",[gu]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[rT]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[V2]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[oT]:"No token request found in cache.",[iT]:"The cached token request could not be parsed.",[vm]:"No cached authority found.",[H2]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[$2]:"Invalid cache type",[pu]:"Login and token requests are not supported in non-browser environments.",[aa]:"Database is not open!",[Ul]:"No network connectivity. Check your internet connection.",[aT]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[sT]:"Network request failed. Please check the network trace to determine root cause.",[sf]:"Failed to parse network response. Check network trace.",[cT]:"Error loading token to cache.",[ym]:"Cryptographic Key or Keypair not found in browser storage.",[lT]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[uT]:"An authorization code or nativeAccountId must be provided to this flow.",[dT]:"Request cannot contain both spa code and native account id.",[Cm]:"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.",[hT]:`Unable to acquire token from native platform. ${io}`,[fT]:"Timed out while attempting to establish connection to browser extension",[mT]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[zs]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${io}`,[gT]:`You must call and await the initialize function before attempting to call any other MSAL API. ${io}`,[pT]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[_T]:"Invalid base64 encoded string.",[vT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[yT]:"Failed to build request headers object.",[CT]:"Failed to parse response headers"};class Gs extends lt{constructor(e,t){super(e,K2[e],t),Object.setPrototypeOf(this,Gs.prototype),this.name="BrowserAuthError"}}function ie(n,e){return new Gs(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"},sy={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"},Yc={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 cy={scopes:Ma},ET="jwk",cf="msal.db",W2=1,z2=`${cf}.keys`,Pn={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},G2=[Pn.Default,Pn.Skip,Pn.RefreshTokenAndNetwork],q2="msal.browser.log.level",j2="msal.browser.log.pii";/*! @azure/msal-browser v3.28.1 2025-01-14 */function Jc(n){return encodeURIComponent(Em(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function _u(n){return wT(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Em(n){return wT(new TextEncoder().encode(n))}function wT(n){const e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Y2="RSASSA-PKCS1-v1_5",TT="SHA-256",J2=2048,Q2=new Uint8Array([1,0,1]),ly="0123456789abcdef",uy=new Uint32Array(1),X2="crypto_subtle_undefined",wm={name:Y2,hash:TT,modulusLength:J2,publicExponent:Q2};function Z2(n){if(!window)throw ie(pu);if(!window.crypto)throw ie(af);if(!n&&!window.crypto.subtle)throw ie(af,X2)}async function bT(n,e,t){e==null||e.addQueueMeasurement(x.Sha256Digest,t);const o=new TextEncoder().encode(n);return window.crypto.subtle.digest(TT,o)}function eH(n){return window.crypto.getRandomValues(n)}function lh(){return window.crypto.getRandomValues(uy),uy[0]}function go(){const n=Date.now(),e=lh()*1024+(lh()&1023),t=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,a=lh();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+=ly.charAt(t[d]>>>4),c+=ly.charAt(t[d]&15),(d===3||d===5||d===7||d===9)&&(c+="-");return c}async function tH(n,e){return window.crypto.subtle.generateKey(wm,n,e)}async function uh(n){return window.crypto.subtle.exportKey(ET,n)}async function nH(n,e,t){return window.crypto.subtle.importKey(ET,n,wm,e,t)}async function rH(n,e){return window.crypto.subtle.sign(wm,n,e)}async function IT(n){const e=await bT(n),t=new Uint8Array(e);return _u(t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */const Ds="storage_not_supported",lf="stubbed_public_client_application_called",Bl="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.28.1 2025-01-14 */const _l={[Ds]:"Given storage configuration option was not supported.",[lf]:"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",[Bl]:"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."};_l[Ds],_l[lf],_l[Bl];class Tm extends lt{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Tm.prototype)}}function bm(n){return new Tm(n,_l[n])}/*! @azure/msal-browser v3.28.1 2025-01-14 */function oH(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function iH(n){const e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Im(){return window.parent!==window}function aH(){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 sH(){const e=new De(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function cH(){if(De.hashContainsKnownProperties(window.location.hash)&&Im())throw ie(tT)}function lH(n){if(Im()&&!n)throw ie(eT)}function uH(){if(aH())throw ie(nT)}function ST(){if(typeof window>"u")throw ie(pu)}function AT(n){if(!n)throw ie(gT)}function Sm(n){ST(),cH(),uH(),AT(n)}function dy(n,e){if(Sm(n),lH(e.system.allowRedirectInIframe),e.cache.cacheLocation===vn.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw bm(Bl)}function kT(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 dH(){return go()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Fl{navigateInternal(e,t){return Fl.defaultNavigateWindow(e,t)}navigateExternal(e,t){return Fl.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 hH{async sendGetRequestAsync(e,t){let r,o={},a=0;const c=hy(t);try{r=await fetch(e,{method:sy.GET,headers:c})}catch{throw ie(window.navigator.onLine?sT:Ul)}o=fy(r.headers);try{return a=r.status,{headers:o,body:await r.json(),status:a}}catch{throw ty(ie(sf),a,o)}}async sendPostRequestAsync(e,t){const r=t&&t.body||"",o=hy(t);let a,c=0,d={};try{a=await fetch(e,{method:sy.POST,headers:o,body:r})}catch{throw ie(window.navigator.onLine?aT:Ul)}d=fy(a.headers);try{return c=a.status,{headers:d,body:await a.json(),status:c}}catch{throw ty(ie(sf),c,d)}}}function hy(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(yT)}}function fy(n){try{const e={};return n.forEach((t,r)=>{e[r]=t}),e}catch{throw ie(CT)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const fH=6e4,uf=1e4,mH=3e4,gH=2e3;function pH({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:Ws.FRAGMENT,defaultScopes:[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:em.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={...{...xw,loggerOptions:d,networkClient:o?new hH:M2,navigationClient:new Fl,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||fH,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||uf,navigateFrameWait:0,redirectNavigationTimeout:mH,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||gH,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 U2};if((n==null?void 0:n.protocolMode)!==fo.OIDC&&(n!=null&&n.OIDCOptions)&&new Ko(m.loggerOptions).warning(JSON.stringify(Xe(kw))),n!=null&&n.protocolMode&&n.protocolMode!==fo.AAD&&(m!=null&&m.allowNativeBroker))throw Xe(Nw);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 _H="@azure/msal-browser",vu="3.28.1";/*! @azure/msal-browser v3.28.1 2025-01-14 */class Am{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=pH(e,this.browserEnvironment);let t;try{t=window[vn.SessionStorage]}catch{}const r=t==null?void 0:t.getItem(q2),o=(h=t==null?void 0:t.getItem(j2))==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=Am.loggerCallback,c.logLevel=d),a!==void 0&&(c.piiLoggingEnabled=a),this.logger=new Ko(c,_H,vu),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 Am{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(vH(n))}function vH(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(_T)}const t=atob(e);return Uint8Array.from(t,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class yH{constructor(){this.dbName=cf,this.version=W2,this.tableName=z2,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(Cm)))})}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(cf),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 df{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 CH{constructor(e){this.inMemoryCache=new df,this.indexedDBCache=new yH,this.logger=e}handleDatabaseAccessError(e){if(e instanceof Gs&&e.errorCode===Cm)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 Sa{constructor(e,t,r){this.logger=e,Z2(r??!1),this.cache=new CH(this.logger),this.performanceClient=t}createNewGuid(){return go()}base64Encode(e){return Em(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 tH(Sa.EXTRACTABLE,Sa.POP_KEY_USAGES),o=await uh(r.publicKey),a={e:o.e,kty:o.kty,n:o.n},c=my(a),d=await this.hashString(c),h=await uh(r.privateKey),m=await nH(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(ym);const d=await uh(c.publicKey),h=my(d),m=Jc(JSON.stringify({kid:t})),g=gm.getShrHeaderString({...r==null?void 0:r.header,alg:d.alg,kid:m}),_=Jc(g);e.cnf={jwk:JSON.parse(h)};const p=Jc(JSON.stringify(e)),w=`${_}.${p}`,T=new TextEncoder().encode(w),k=await rH(c.privateKey,T),I=_u(new Uint8Array(k)),N=`${w}.${I}`;return a&&a.end({success:!0}),N}async hashString(e){return IT(e)}}Sa.POP_KEY_USAGES=["sign","verify"];Sa.EXTRACTABLE=!0;function my(n){return JSON.stringify(n,Object.keys(n).sort())}/*! @azure/msal-browser v3.28.1 2025-01-14 */class EH{constructor(){if(!window.localStorage)throw bm(Ds)}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 wH{constructor(){if(!window.sessionStorage)throw bm(Ds)}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 NT(n,e){if(!e)return null;try{return Cr.parseRequestState(n,e).libraryState.meta}catch{throw Y(Ta)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const TH=24*60*60*1e3;class bH{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=IH(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 IH(n){const e=new Date;return new Date(e.getTime()+n*TH).toUTCString()}/*! @azure/msal-browser v3.28.1 2025-01-14 */class hf extends ba{constructor(e,t,r,o,a,c){super(e,r,o,a),this.cacheConfig=t,this.logger=o,this.internalStorage=new df,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new bH,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=c}setupBrowserStorage(e){try{switch(e){case vn.LocalStorage:return new EH;case vn.SessionStorage:return new wH;case vn.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=vn.MemoryStorage,new df}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((_,p)=>{const w=m[p];w&&this.setTemporaryCache(_,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(zv(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(Wv(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(Gv(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):ba.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(Zh)}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(Zh)}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||!zv(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||!Wv(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||!Gv(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||!pV(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=gV(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||!fV(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&&_V(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(Yc.WRAPPER_SKU,e),this.internalStorage.setItem(Yc.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(Yc.WRAPPER_SKU)||F.EMPTY_STRING,t=this.internalStorage.getItem(Yc.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||!mV(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):yr.startsWith(e,F.CACHE_PREFIX)||yr.startsWith(e,Lt.ADAL_ID_TOKEN)?e:`${F.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=Cr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=Cr.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ke.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=Cr.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=NT(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=Em(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(oT);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(iT)}if(this.removeTemporaryItem(this.generateCacheKey(Ke.REQUEST_PARAMS)),!r.authority){const o=this.generateAuthorityKey(e),a=this.getTemporaryCache(o);if(!a)throw ie(vm);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=cu((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=lu((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 SH=(n,e)=>{const t={cacheLocation:vn.MemoryStorage,temporaryCacheLocation:vn.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new hf(n,t,Ol,e)};/*! @azure/msal-browser v3.28.1 2025-01-14 */function AH(n,e,t,r){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(r):[]}function kH(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 NH(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 RH(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 OH(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 PH(n,e){e.setActiveAccount(n)}function MH(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 DH{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Ko({})}addEventCallback(e,t,r){if(typeof window<"u"){const o=r||dH();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 RT{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,vu,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 Ms(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(Fw,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(Rw);return m}}/*! @azure/msal-browser v3.28.1 2025-01-14 */const LH=32;async function xH(n,e,t){n.addQueueMeasurement(x.GeneratePkceCodes,t);const r=Ai(UH,x.GenerateCodeVerifier,e,n,t)(n,e,t),o=await Q(BH,x.GenerateCodeChallengeFromVerifier,e,n,t)(r,n,e,t);return{verifier:r,challenge:o}}function UH(n,e,t){try{const r=new Uint8Array(LH);return Ai(eH,x.GetRandomValues,e,n,t)(r),_u(r)}catch{throw ie(pm)}}async function BH(n,e,t,r){e.addQueueMeasurement(x.GenerateCodeChallengeFromVerifier,r);try{const o=await Q(bT,x.Sha256Digest,t,e,r)(n,e,r);return _u(new Uint8Array(o))}catch{throw ie(pm)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function km(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(uu);if(!n.sshKid)throw Xe(Aw)}r.verbose(`Authentication Scheme set to "${c.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!yr.isEmptyObj(n.claims)&&(c.requestedClaimsHash=await IT(n.claims)),c}async function FH(n,e,t,r,o){r.addQueueMeasurement(x.InitializeSilentRequest,n.correlationId);const a=await Q(km,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 Da extends RT{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(x.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await Q(xH,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 $w(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:vu,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=Cr.setRequestState(this.browserCrypto,e&&e.state||F.EMPTY_STRING,o),d={...await Q(km,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 VH="ContentError",OT="user_switch";/*! @azure/msal-browser v3.28.1 2025-01-14 */const HH="USER_INTERACTION_REQUIRED",$H="USER_CANCEL",KH="NO_NETWORK",WH="PERSISTENT_ERROR",zH="DISABLED",GH="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.28.1 2025-01-14 */const qH=-2147186943,jH={[OT]:"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===WH||n.ext.status===zH)||n.ext&&n.ext.error&&n.ext.error===qH)return!0;switch(n.errorCode){case VH:return!0;default:return!1}}function ff(n,e,t){if(t&&t.status)switch(t.status){case GH:return rf(Vw);case HH:return new wr(n,e);case $H:return ie(bi);case KH:return ie(Ul)}return new Br(n,jH[n]||e,t)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class PT extends Da{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 P2(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 Gs&&a.errorCode===ym&&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 RT{constructor(e,t,r,o,a,c,d,h,m,g,_,p){var C;super(e,t,r,o,a,c,h,m,p),this.apiId=d,this.accountId=g,this.nativeMessageHandler=m,this.nativeStorageManager=_,this.silentCacheClient=new PT(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=Ms.makeExtraSkuString({libraryName:Dn.MSAL_SKU,libraryVersion:vu,extensionName:w,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[g2]: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:_t.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Y(Qh);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!r)throw Y(Qh);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 ff(OT);const d=await this.getDiscoveredAuthority({requestAuthority:t.authority}),h=fm(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,gr.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?_t.fromString(e.scope):_t.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 Ia(this.browserCrypto),o={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Y(Xf);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?_t.fromString(e.scope):_t.fromString(t.scope),m=e.account.properties||{},g=m.UID||r.oid||r.sub||F.EMPTY_STRING,_=m.TenantId||r.tid||F.EMPTY_STRING,p=sm(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:_,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=cu(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,_=this.generateScopes(e,t),p=lu(r,t.authority,a,t.clientId,o.tid||c,_.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(Gf,"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 _t(o||[]);c.appendScopes(Ma);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(pT)}},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(vT);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 Ia(this.browserCrypto);let _;if(h.keyId)_=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);_=p.reqCnfString,h.keyId=p.kid,h.signPopToken=!0}h.reqCnf=_}return this.addRequestSKUs(h),h}handleExtraBrokerParams(e){var a;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(um)&&e.extraParameters.hasOwnProperty(nf)&&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[nf],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(fT)),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(mT))}}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(ff(c.code,c.description,c.ext));else if(c.result)c.result.code&&c.result.description?r.reject(ff(c.result.code,c.result.description,c.result.ext)):r.resolve(c.result);else throw JE(Gf,"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 Nm{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 MT(n,e,t){const r=Dl(n);if(!r)throw Pw(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(qw)):(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(Gw));return r}function YH(n,e,t){if(!n.state)throw ie(_m);const r=NT(e,n.state);if(!r)throw ie(jw);if(r.interactionType!==t)throw ie(Yw)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class JH extends Da{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||Ma,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);kT(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}),_=new Nm(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(MT,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(zs);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}=Cr.parseRequestState(this.browserCrypto,o.state);return await k.acquireToken({...o,state:I,prompt:void 0})}return await _.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 _=g.getLogoutUri(e);this.eventHandler.emitEvent(me.LOGOUT_SUCCESS,le.Popup,e);const p=this.openPopup(_,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(mu)}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===Ws.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(Xw);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(Qw)}}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,_=(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),(!_||_<0||_>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),_=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=${_}, 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 gy{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(mu)}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(Rl,"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 QH(){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 XH extends Da{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 gy(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),QH()!=="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&&iH(c),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Im()||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 _=sH();this.browserStorage.setTemporaryCache(Ke.ORIGIN_URI,_,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),g=await this.navigationClient.navigateInternal(_,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===Ws.QUERY?t=window.location.search:t=window.location.hash);let r=Dl(t);if(r){try{YH(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 oH(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=Dl(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(_m);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(zs);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}=Cr.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(vm);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 gy(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 ZH(n,e,t,r,o){if(e.addQueueMeasurement(x.SilentHandlerInitiateAuthRequest,r),!n)throw t.info("Navigate url is empty"),ie(mu);return o?Q(t$,x.SilentHandlerLoadFrame,t,e,r)(n,o,e,r):Ai(n$,x.SilentHandlerLoadFrameSync,t,e,r)(n)}async function e$(n,e,t,r,o,a,c){return r.addQueueMeasurement(x.SilentHandlerMonitorIframeForHash,a),new Promise((d,h)=>{e<uf&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${uf}ms). This may result in timeouts.`);const m=window.setTimeout(()=>{window.clearInterval(g),h(ie(Zw))},e),g=window.setInterval(()=>{let _="";const p=n.contentWindow;try{_=p?p.location.href:""}catch{}if(!_||_==="about:blank")return;let w="";p&&(c===Ws.QUERY?w=p.location.search:w=p.location.hash),window.clearTimeout(m),window.clearInterval(g),d(w)},t)}).finally(()=>{Ai(r$,x.RemoveHiddenIframe,o,r,a)(n)})}function t$(n,e,t,r){return t.addQueueMeasurement(x.SilentHandlerLoadFrame,r),new Promise((o,a)=>{const c=DT();window.setTimeout(()=>{if(!c){a("Unable to load iframe");return}c.src=n,o(c)},e)})}function n$(n){const e=DT();return e.src=n,e}function DT(){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 r$(n){document.body===n.parentNode&&document.body.removeChild(n)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class o$ extends Da{constructor(e,t,r,o,a,c,d,h,m,g,_){super(e,t,r,o,a,c,h,g,_),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);kT(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(gu))}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 Nm(e,this.browserStorage,o,this.logger,this.performanceClient),d=await Q(ZH,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(e$,x.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(d,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,h),g=Ai(MT,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(zs);const _=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}=Cr.parseRequestState(this.browserCrypto,t.state);return Q(_.acquireToken.bind(_),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 i$ extends Da{async acquireToken(e){this.performanceClient.addQueueMeasurement(x.SilentRefreshClientAcquireToken,e.correlationId);const t=await Q(km,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(gu))}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 of(t,this.performanceClient)}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class a${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(pu);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(cT);const a=Pt.generateHomeAccountId(t,o.authorityType,this.logger,this.cryptoObj,r),c=r==null?void 0:r.tid,d=fm(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=cu(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?_t.fromString(t.scope):new _t(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=lu(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=pw(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,_,p;let a="",c=[],d=null,h;t!=null&&t.accessToken&&(a=t.accessToken.secret,c=_t.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:((_=t.refreshToken)==null?void 0:_.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 s$ extends $w{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.28.1 2025-01-14 */class c$ extends Da{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(lT);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 s$(a);this.logger.verbose("Auth code client created");const d=new Nm(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(gu))}}/*! @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 Qc(n,e){try{Sm(n)}catch(t){throw e.end({success:!1},t),t}}class yu{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 Sa(this.logger,this.performanceClient):Ol,this.eventHandler=new DH(this.logger),this.browserStorage=this.isBrowserEnvironment?new hf(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,w2(this.config.auth),this.performanceClient):SH(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 hf(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new a$(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 yu(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"),AT(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{dy(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 wr)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),Qc(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 wr)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)}),Qc(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);Qc(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(dT);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(hT);else throw ie(uT)}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 dy(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return Sm(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 AH(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return kH(e,this.logger,this.browserStorage)}getAccountByUsername(e){return NH(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return RH(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return OH(e,this.logger,this.browserStorage)}setActiveAccount(e){PH(e,this.browserStorage)}getActiveAccount(){return MH(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(zs);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 XH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new o$(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 PT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new i$(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new c$(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 ST(),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=ba.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||cy})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||cy})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(x.AcquireTokenSilent,t);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Qc(this.initialized,r),this.logger.verbose("acquireTokenSilent called",t);const o=e.account||this.getActiveAccount();if(!o)throw ie(rT);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(FH,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(l$(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 _=this.performanceClient.startMeasurement(x.AwaitConcurrentIframe,o.correlationId);_.add({awaitIframeCorrelationId:g});const p=await m;if(_.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 l$(n,e){const t=!(n instanceof wr&&n.subError!==fu),r=n.errorCode===Dn.INVALID_GRANT_ERROR||n.errorCode===co,o=t&&r||n.errorCode===xl||n.errorCode===hm,a=G2.includes(e);return o&&a}/*! @azure/msal-browser v3.28.1 2025-01-14 */async function u$(n,e){const t=new Ii(n);return await t.initialize(),yu.createController(t,e)}/*! @azure/msal-browser v3.28.1 2025-01-14 */class Rm{static async createPublicClientApplication(e){const t=await u$(e);return new Rm(e,t)}constructor(e,t){this.controller=t||new yu(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 dh=process.env.JPLAN_WEBAPP__APP_PROXY_TENANT_NAME??"",d$=process.env.JPLAN_WEBAPP__APP_PROXY_CLIENT_ID??"",h$=process.env.JPLAN_WEBAPP__APP_PROXY_USER_FLOW??"",mf=process.env.JPLAN_WEBAPP__URL_AUTH??process.env.JPLAN_WEBAPP__URL_BASE??"",f$={auth:{clientId:d$,authority:`https://${dh}.b2clogin.com/${dh}.onmicrosoft.com/${h$}`,knownAuthorities:[`${dh}.b2clogin.com`],redirectUri:process.env.JPLAN_AUTOMATION_ENVIRONMENT?`${mf}/_/dashboard`:mf},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(n,e)=>{n===tt.Error&&console.error(e)},logLevel:tt.Warning}}},LT=(n,e)=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:`${mf}${n}`,extraQueryParameters:e}),Gt=new Rm(f$),py=l.ref(null);function xT(){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"),py.value=m}catch(r){console.error("Erro ao obter token de acesso:",r)}}return{jToken:py,setJToken:n}}let Xc=null;const tr=l.ref(null),Ji=l.ref(null),UT=l.ref(Math.floor(Date.now()/1e3));gf.useIntervalFn(()=>m$(),1e3);function m$(){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;UT.value=t-n-e}function Om(){if(Xc)return Xc;const{setJToken:n,jToken:e}=xT(),t=l.computed(()=>!!tr.value),r=l.computed(()=>tr.value);let o;async function a(p,w){if(!t.value)switch(p){case"redirect":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=LT(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(UT,async p=>{p<=0&&Ji.value==="updated"&&await m()});const _=l.computed(()=>e.value);return Xc={isAuthenticated:t,authState:Ji,account:r,token:_,refreshToken:m,handleRedirect:a,logout:g},Xc}const os=l.ref([]),is=l.ref([]);function g$(){const n=ar();function e(g,_,p={}){n[g](_),is.value.push({id:crypto.randomUUID(),read:!1,type:g,message:_,timestamp:new Date,meta:{url:p.url||"",method:p.method||"",status:p.status||0}})}function t(g,_){n[g](_),os.value.push({id:crypto.randomUUID(),read:!1,type:g,message:_,timestamp:new Date})}const r={server:{success:(g,_)=>e("success",g,_),error:(g,_)=>e("error",g,_),warning:(g,_)=>e("warning",g,_),info:(g,_)=>e("info",g)},client:{success:g=>t("success",g),error:g=>t("error",g),warning:g=>t("warning",g),info:g=>t("info",g)}};function o(){return os.value.filter(g=>!g.read)}function a(){return is.value.filter(g=>!g.read)}function c(){return[...o(),...a()].sort((g,_)=>_.timestamp.getTime()-g.timestamp.getTime())}function d(){return o().length+a().length}function h(g){const _=os.value.find(p=>p.id===g)||is.value.find(p=>p.id===g);_&&(_.read=!0)}function m(){os.value.forEach(g=>g.read=!0),is.value.forEach(g=>g.read=!0)}return{client:os,server:is,toast:r,getUnreadClient:o,getUnreadServer:a,getNewNotifications:c,getUnreadCount:d,markAsRead:h,markAllAsRead:m}}const{jToken:_y}=xT(),Pm=()=>{const{toast:n}=g$(),e=yt.create({headers:{"Content-Type":"application/json"}});function t(c,d){const h={url:c.url||"",method:(c.method||"get").toUpperCase(),status:(d==null?void 0:d.status)||0};return{success:m=>n.server.success(m,h),error:m=>n.server.error(m,h),warning:m=>n.server.warning(m,h),info:m=>n.server.info(m,h)}}l.watch(_y,c=>{e.interceptors.request.use(d=>(c&&(d.headers.Authorization=`Bearer ${c}`),d))},{immediate:!0});let r=1;e.interceptors.response.use(c=>(c.notify=t(c.config,c),c),async c=>{var d;if(c.config&&(c.notify=t(c.config,c.response)),c.config&&c.config.headers){const h=c.config;if(((d=c.response)==null?void 0:d.status)===401&&r>0){r--;try{return h.headers.Authorization=`Bearer ${_y.value}`,await e(h)}catch(m){return Promise.reject(m)}}}return Promise.reject(c)});async function o({url:c,method:d,header:h={},body:m,baseURL:g}){return g&&(e.defaults.baseURL=g),e({url:c,method:d,headers:h,data:m})}async function a({url:c,method:d,header:h,body:m,baseURL:g}){return g&&(e.defaults.baseURL=g),e({url:c,method:d,headers:h,data:m})}return Object.assign(e,{_request:o,rawRequest:a})},{request:vy}=Pm(),yy=l.ref(null),Cy=l.ref("default"),hh=l.ref(null),fh=l.ref({scope_type:"org"});function Cu(){var _,p;const{handleRedirect:n,account:e,logout:t}=Om();(p=(_=e.value)==null?void 0:_.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:Cy.value,...fh.value}}),o=l.computed(()=>fh.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 vy({url:`https://api.jplan.com.br/platform/user/profile/?email=${T}`,method:"GET"});hh.value=k.data??null}catch(T){console.error("Failed to fetch user profile:",T)}}async function d(){var w;try{if(!((w=hh.value)!=null&&w.email))throw new Error("User email is undefined");const C=await vy({url:"https://api.jplan.com.br/platform/user/domain/",method:"GET"});yy.value=C.data.data??[]}catch(C){console.error("Failed to fetch user domains:",C)}}function h(w){fh.value=w}function m(w){Cy.value=w,h(r.value)}async function g(w,C){const T=LT(w,{request_domain:C});await Gt.loginRedirect(T)}return{__init__:a,user:hh,userDomains:yy,setEnv:m,setScope:h,changeDomain:g,session:r,scope:o,logout:t}}const p$={path:"/_/dashboard",component:()=>Promise.resolve().then(()=>require("./AuthRoute-DwwjZZsA.js")),meta:{requiresAuth:!1}},_$={path:"/jplan-auth-fail",component:()=>Promise.resolve().then(()=>require("./AuthFailRoute-DHl-IhUQ.js")),meta:{requiresAuth:!1}},{isAuthenticated:Ey,handleRedirect:v$}=Om(),y$=Cu();function C$(n,e){n.addRoute(p$),n.addRoute(_$),n.beforeEach(async(t,r,o)=>{function a(d){return d.matched.some(h=>h.meta.requiresAuth)}if(!a(t))return o();if(!Ey.value){ve.value=!0;try{await v$(e,t.fullPath),await y$.__init__()}catch(d){console.error("Fail to authenticate",d),await n.push("/jplan-auth-fail")}ve.value=!1}if(Ey.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:wy}=Cu();function E$(){const n=Pm(),e=l.ref({scope_type:"org"});async function t(r){e.value=r}return l.watch(wy,()=>{n.interceptors.request.use(r=>{const o=r.headers,a=o.Authorization;a&&(o.Authorization=a);const c=wy.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 La(n){const e=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 Ty={enUS:{widget:"widget",spacer:"spacer"},ptBr:{widget:"widget",spacer:"Espaçador"}},Mm={"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:Ty.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:Ty.ptBr}}},w$=Object.keys(Mm),by=navigator.language,T$=w$.includes(by)?by:"pt-BR",$=wx({locale:T$,fallbackLocale:"en-US",messages:Mm});function b$(){const n=La("https://api.jplan.com.br/management/organization"),{error:e}=ar();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=b$();function I$(){const n=La("https://api.jplan.com.br/management/branch/"),{error:e}=ar();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=I$();function S$(){const n=La("https://api.jplan.com.br/management/team"),{error:e}=ar();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=S$();let Zc=!1;const mh=l.ref(!1),jn=l.ref([]),Iy=l.ref([]),ht=l.ref(null),Qi=l.ref([]),Xi=l.ref([]),BT=()=>{const n=ar(),e=async C=>{mh.value=!0;const T=C?`_active eq true and ${C}`:"_active eq true",k=await xo.getOrgList(T);k&&(jn.value=k,Zc=!0),mh.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=Pa(jn.value,C,["name","description"]);return C!==""?T:jn.value}const o=C=>{Iy.value=C},a=C=>{ht.value=Oa.cloneDeep(C)},c=async C=>await xo.getOrg(C),d=async()=>{if(ht.value!=null){const C=await xo.createOrg(ht.value);return C!=null&&C.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"Organization"})),Zc&&jn.value.push(C.data)),C==null?void 0:C.data}},h=async()=>{if(ve.value=!0,ht.value&&ht.value.__id){const C=await xo.updateOrg(ht.value);if(Zc&&(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,ht.value&&ht.value.created_at){if(await xo.deactivateOrg(ht.value.__id),Zc){const C=jn.value.findIndex(T=>{var k;return T.__id===((k=ht.value)==null?void 0:k.__id)});if(C!==-1)return jn.value.splice(C,1),ht.value;n.error($.global.t("toast.error.deactivate_failed",{entity:"Organization"}))}ve.value=!1}};async function g(C){ve.value=!0;try{if(ht.value&&ht.value.__id){const T={...C,organization:ht.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 _(C){if(ve.value=!0,ht.value&&ht.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(ht.value&&ht.value.__id){const T={...C,organization:ht.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,ht.value&&ht.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:mh,columns:Iy,item:ht,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:_,linkTeam:p,unlinkTeam:w}};let el=!1;const Yn=l.ref([]),Sy=l.ref([]),Nt=l.ref(null),gh=l.ref(!1),Zi=l.ref([]),FT=()=>{const n=ar(),e=async p=>{gh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Mn.getTeamList(w);C&&(Yn.value=C,el=!0),gh.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=Pa(Yn.value,p,["name","description"]);return p!==""?w:Yn.value}const o=p=>{Sy.value=p},a=p=>{Nt.value=Oa.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"})),el&&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(el&&(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),el)){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 _(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:gh,columns:Sy,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:_}},VT=l.defineComponent({__name:"GlobalScopeFilter",setup(n){var T,k,I;const{openDialog:e}=Ls("global-scope__J-"),{user:t,scope:r,session:o,setScope:a}=Cu(),{getData:c,data:d}=BT(),{getData:h,data:m}=FT(),g=l.ref(!1);l.onBeforeMount(async()=>{g.value=!0,await c(),await h(),g.value=!1});const _=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;_.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 VF;case"org":return BF;case"team":return HF;default:return FF}});async function C(){var N;((N=r.value)==null?void 0:N.scope_type)!==""&&a(_.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(Us),{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(kO.VBtnToggle,{density:"compact",variant:"outlined",modelValue:_.value.scope_type,"onUpdate:modelValue":D[0]||(D[0]=L=>_.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(va.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(hs.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:_.value.organization,"onUpdate:modelValue":D[1]||(D[1]=L=>_.value.organization=L),clearable:""},null,8,["items","placeholder","modelValue"]),l.createVNode(va.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(hs.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:_.value.team,"onUpdate:modelValue":D[2]||(D[2]=L=>_.value.team=L),clearable:""},null,8,["items","placeholder","modelValue"])])])]),_:1},8,["loading","title"])],64))}}),A$={},k$={class:"double-ring-spinner-container"};function N$(n,e){return l.openBlock(),l.createElementBlock("div",k$,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 HT=Aa(A$,[["render",N$],["__scopeId","data-v-00d7a69f"]]),R$={key:0,class:"_jspinner-overlay_jj"},$T=l.defineComponent({__name:"GlobalSpinner",setup(n){return(e,t)=>l.unref(ve)?(l.openBlock(),l.createElementBlock("div",R$,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)}}),KT=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($F))]),default:l.withCtx(()=>[l.createVNode(Qt.VListItemTitle,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.title),1)]),_:1}),l.createVNode(_f.VMenu,{activator:"parent","open-on-hover":"",submenu:"",density:"compact"},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),_:3})]),_:3}))}}),O$=Object.freeze(Object.defineProperty({__proto__:null,AvatarPicture:gC,ColumnSettingsDialog:Ff,ConfirmDialog:fC,ContextMenu:pC,CopyButton:Vl,DeleteAllBtn:wf,DotsMenu:hC,EditButton:dC,FormHeadless:jE,FormMetadata:au,GlobalScopeFilter:VT,GlobalSpinner:$T,JAutocomplete:$E,JAvatar:mC,JBtn:My,JDialog:Us,JForm:GE,JIconBtn:Py,JSelect:HE,JTextArea:KE,JTextField:pE,ParentCard:zl,SearchFilter:Xl,SpinnerLoader:HT,SubMenu:KT,TabFormHeader:qE,TableAdvanced:eE,TableCard:Vf,TableCardsView:gE,TableHeader:tE,UiTable:_C},Symbol.toStringTag,{value:"Module"})),P$=r0(),M$={transition:"Vue-Toastification__fade",maxToasts:20,newestOnTop:!0};let ph=!1;const _h=l.ref(!1),Jn=l.ref([]),Ay=l.ref([]),$t=l.ref(null),ea=l.ref([]),D$=()=>{const n=ar(),e=async p=>{_h.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await Uo.getBranchList(w);C&&(Jn.value=C,ph=!0),_h.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=Pa(Jn.value,p,["name","description"]);return p!==""?w:Jn.value}const o=p=>{Ay.value=p},a=p=>{$t.value=Oa.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"})),ph&&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(ph&&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 _(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:Ay,item:$t,loading:_h,__init__:e,getData:t,filterData:r,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,branchTeams:ea,linkTeam:g,unlinkTeam:_}};function L$(){const n=La("https://api.jplan.com.br/management/division"),{error:e}=ar();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=L$();let vh=!1;const yh=l.ref(!1),Qn=l.ref([]),ky=l.ref([]),Kt=l.ref(null),ta=l.ref([]),x$=()=>{const n=ar(),e=async p=>{yh.value=!0;const w=p?`_active eq true and ${p}`:"_active eq true",C=await ca.getDivisionList(w);C&&(Qn.value=C,vh=!0),yh.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=Pa(Qn.value,p,["name","description"]);return p!==""?w:Qn.value}const o=p=>{ky.value=p},a=p=>{Kt.value=Oa.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"})),vh&&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(vh&&(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 _(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:ky,item:Kt,loading:yh,__init__:e,filterData:r,getData:t,setColumns:o,setItem:a,getItem:c,createItem:d,updateItem:h,removeItem:m,orgs:ta,linkDivision:g,unlinkDivision:_}};function U$(){const n=La("https://api.jplan.com.br/management/user"),{error:e}=ar();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=U$();let Ch=!1,Eh=l.ref(!1);const Xn=l.ref([]),Ny=l.ref([]),Zn=l.ref(null),B$=l.ref(null),F$=l.ref([]),V$=()=>{const n=ar(),e=async g=>{Eh.value=!0;const _=g?`_active eq true and ${g}`:"_active eq true",p=await la.getManageUserList(_);p&&(Xn.value=p,Ch=!0),Eh.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 _=Pa(Xn.value,g,["name","description"]);return g!==""?_:Xn.value}return{data:Xn,loading:Eh,columns:Ny,item:Zn,filterData:r,__init__:e,getData:t,setColumns:g=>{Ny.value=g},setItem:g=>{Zn.value=Oa.cloneDeep(g)},getItem:async g=>await la.getManageUser(g),createItem:async()=>{if(Zn.value!=null){const g=crypto.randomUUID(),_=await la.createManageUser({...Zn.value,__id:g});return _!=null&&_.data.created_at&&(n.success($.global.t("toast.success.create_success",{entity:"User"})),Ch&&Xn.value.push(_.data)),_==null?void 0:_.data}},updateItem:async()=>{if(ve.value=!0,Zn.value&&Zn.value.created_at){const g=await la.updateManageUser(Zn.value);if(Ch&&(g!=null&&g.data)){const _=Xn.value.findIndex(p=>p.__id===(g==null?void 0:g.data.__id));_!==-1?(Xn.value[_]=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(_=>{var p;return _.__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:B$,userTeams:F$}},wh=Object.freeze({colNum:24,rowHeight:50,useCssTransforms:!0,responsive:!0,margin:[12,10]}),na=l.ref(!1),H$=l.ref([]);function $$(){const n=l.ref({...wh,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={...wh,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"}}return{DEFAULT_CONFIG:wh,config:n,layout:H$,edition:na,toggleEdit:e,resetLayout:t}}const K$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetTask-B02xWxts.js"))),W$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetImage-CmXW7a_H.js"))),z$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetShortcut-DfCNpVgO.js"))),G$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetSpacer-CXF5oAcc.js"))),q$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetLabel-T588tWM_.js"))),j$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartBar-ChMg_dbz.js"))),Y$=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./WidgetChartPie-C2AIgVQ2.js"))),J$={WidgetSpacer:G$,WidgetLabel:q$,WidgetTask:K$,WidgetImage:W$,WidgetShortcut:z$,WidgetChartBar:j$,WidgetChartPie:Y$},Q$={defaultI18n:!0},X$=(n,e)=>{const t={...Q$,...e};n.use(P$),n.use(iP,M$),t.defaultI18n&&n.use($),Object.entries(O$).forEach(([r,o])=>{n.component(r,o)}),Object.entries(RO).forEach(([r,o])=>{n.provide(r,o)})},Z$={install:X$};exports.ContextMenu=pC;exports.EmptyListImg=Uh;exports.EventBus=Kl;exports.FormHeadless=jE;exports.HttpCore=uF;exports.I18nMessages=Mm;exports.SpinnerLoader=HT;exports.TableCardsView=gE;exports.TableHeader=tE;exports.__spinner=ve;exports._export_sfc=Aa;exports._sfc_main=Us;exports._sfc_main$1=_C;exports._sfc_main$10=My;exports._sfc_main$11=wf;exports._sfc_main$12=dC;exports._sfc_main$13=Py;exports._sfc_main$14=HE;exports._sfc_main$15=$E;exports._sfc_main$16=KE;exports._sfc_main$17=pE;exports._sfc_main$18=GE;exports._sfc_main$19=qE;exports._sfc_main$2=eE;exports._sfc_main$20=zl;exports._sfc_main$21=mC;exports._sfc_main$22=gC;exports._sfc_main$23=KT;exports._sfc_main$24=VT;exports._sfc_main$25=$T;exports._sfc_main$3=Ff;exports._sfc_main$4=Vf;exports._sfc_main$5=Xl;exports._sfc_main$6=fC;exports._sfc_main$7=Vl;exports._sfc_main$8=hC;exports._sfc_main$9=au;exports.branchInstance=Uo;exports.coreClient=Pm;exports.createToastInterface=bs;exports.dateFormat=fs;exports.divisionInstance=ca;exports.filterQuery=Pa;exports.globalEventBus=Ef;exports.i18n=$;exports.index=Z$;exports.manageUserInstance=la;exports.msal=Gt;exports.orgInstance=xo;exports.provideToast=oP;exports.scopedClient=La;exports.setupAuthGuard=C$;exports.teamInstance=Mn;exports.toastInjectionKey=Wl;exports.useAuth=Om;exports.useBranchStore=D$;exports.useCustomizer=c0;exports.useDashboardStore=$$;exports.useDialog=Ls;exports.useDivisionStore=x$;exports.useManageUserStore=V$;exports.useOrganizationStore=BT;exports.useSession=Cu;exports.useTeamStore=FT;exports.useToast=ar;exports.widgets=J$;