/*! third party licenses: js/vendor.LICENSE.txt */
function r(i,n,o){const a=`#initial-state-${i}-${n}`;if(window._nc_initial_state?.has(a))return window._nc_initial_state.get(a);window._nc_initial_state||(window._nc_initial_state=new Map);const e=document.querySelector(a);if(e===null){if(o!==void 0)return o;throw new Error(`Could not find initial state ${n} of ${i}`)}try{const t=JSON.parse(atob(e.value));return window._nc_initial_state.set(a,t),t}catch(t){if(console.error("[@nextcloud/initial-state] Could not parse initial state",{key:n,app:i,error:t}),o!==void 0)return o;throw new Error(`Could not parse initial state ${n} of ${i}`,{cause:t})}}export{r as l};
//# sourceMappingURL=index-BiMVUFfi.chunk.mjs.map
