mnfst 0.5.325 → 0.5.327

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.
@@ -494,7 +494,7 @@ async function initializeMarkdownPlugin() {
494
494
  };
495
495
  };
496
496
 
497
- Alpine.directive('markdown', (el, { expression, modifiers }, { effect, evaluateLater }) => {
497
+ Alpine.directive('markdown', (el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {
498
498
  // `.safe` runs parsed HTML through DOMPurify before injection. Default
499
499
  // is unsanitized (raw HTML + custom-element extensions); use .safe for
500
500
  // untrusted source (Appwrite, API responses, crowdsourced translations).
@@ -682,6 +682,13 @@ async function initializeMarkdownPlugin() {
682
682
  // hides the element like it always did.
683
683
  let bakedOnly = hasBakedContent;
684
684
 
685
+ let headingsSectionId = null;
686
+ let destroyed = false;
687
+ cleanup(() => {
688
+ destroyed = true;
689
+ if (headingsSectionId && window._manifestHeadings) delete window._manifestHeadings[headingsSectionId];
690
+ });
691
+
685
692
  effect(() => {
686
693
  getMarkdownContent(async (pathOrContent) => {
687
694
  const mdDone = mdTrack();
@@ -818,28 +825,22 @@ async function initializeMarkdownPlugin() {
818
825
  bakedOnly = false;
819
826
  el.style.opacity = '1';
820
827
 
821
- // Extract headings for anchor links
822
- const headings = [];
823
- const headingElements = el.querySelectorAll('h1, h2, h3');
824
- headingElements.forEach(heading => {
825
- headings.push({
826
- id: heading.id,
827
- text: heading.textContent,
828
- level: parseInt(heading.tagName.charAt(1))
828
+ // Headings registry (.headings): one entry per element
829
+ if (modifiers.includes('headings') && !destroyed) {
830
+ const headings = [];
831
+ el.querySelectorAll('h1, h2, h3').forEach(heading => {
832
+ headings.push({
833
+ id: heading.id,
834
+ text: heading.textContent,
835
+ level: parseInt(heading.tagName.charAt(1))
836
+ });
829
837
  });
830
- });
831
-
832
- // Store headings in Alpine data if 'headings' modifier is used
833
- if (modifiers.includes('headings')) {
834
- // Generate a unique ID for this markdown section
835
- const sectionId = 'markdown-' + Math.random().toString(36).substr(2, 9);
836
- el.setAttribute('data-headings-section', sectionId);
837
-
838
- // Store headings in a global registry
838
+ if (!headingsSectionId) headingsSectionId = 'markdown-' + Math.random().toString(36).substr(2, 9);
839
+ el.setAttribute('data-headings-section', headingsSectionId);
839
840
  if (!window._manifestHeadings) {
840
841
  window._manifestHeadings = {};
841
842
  }
842
- window._manifestHeadings[sectionId] = headings;
843
+ window._manifestHeadings[headingsSectionId] = headings;
843
844
  }
844
845
  } finally {
845
846
  mdDone();
@@ -1,2 +1,2 @@
1
- !function(){if(!window.ManifestVendor){const e="https://cdn.jsdelivr.net/npm/";window.ManifestVendor={get checked(){return!(!window.Manifest||!window.Manifest.integrity)},script(t,n){const i=window.Manifest;return i&&i.loadVendor?i.loadVendor(t,n):new Promise((i,r)=>{const o=e+t,a=document.querySelector(`script[src="${o}"]`);if(a&&a.dataset.vendorLoaded)return i();const s=a||document.createElement("script");if(s.addEventListener("load",()=>{s.dataset.vendorLoaded="1",i()}),s.addEventListener("error",()=>r(new Error(`Failed to load ${o}`))),a){const e=()=>{try{return performance.getEntriesByName(o).length>0}catch(e){return!1}},t=setInterval(()=>{e()&&(clearInterval(t),i())},50);return void setTimeout(()=>{clearInterval(t),i()},4e3)}n&&(s.integrity=n,s.crossOrigin="anonymous"),s.src=o,document.head.appendChild(s)})},fetch(t,n){const i=window.Manifest;return i&&i.fetchVendor?i.fetchVendor(t,n):fetch(e+t,n?{integrity:n,mode:"cors",credentials:"omit"}:void 0).then(n=>{if(!n.ok)throw new Error(`Failed to load ${e+t}`);return n})}}}let e=null;const t=new Map;"undefined"!=typeof window&&window.addEventListener("manifest:dev-reload",()=>{t.clear()});const n={USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","template","dialog","video","audio"],FORBID_ATTR:["style","popover","popovertarget","popovertargetaction","formaction","command","commandfor","autoplay","background"],ALLOW_DATA_ATTR:!1,SANITIZE_NAMED_PROPS:!0},i=new Set(["brand","accent","positive","negative","frame"]);async function r(e,t){if(!t)return e;try{return function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll('input[type="image" i]').forEach(e=>e.remove()),t.content.querySelectorAll("[class]").forEach(e=>{const t="ASIDE"===e.tagName?[...e.classList].filter(e=>i.has(e)):[];t.length?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}),t.content.querySelectorAll('a[href^="#"]').forEach(e=>{const n=e.getAttribute("href").slice(1);let i;try{i=decodeURIComponent(n)}catch{i=n}i&&t.content.getElementById("user-content-"+i)&&e.setAttribute("href","#user-content-"+i)}),t.innerHTML}((await window.ManifestDOMPurify.load()).sanitize(e,n))}catch{const t=String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return console.warn("[Manifest Markdown] x-markdown.safe: DOMPurify unavailable — emitting escaped text."),t}}async function o(){return"undefined"!=typeof marked?marked:e||(e=window.ManifestVendor.script("marked@15.0.12/marked.min.js","sha384-948ahk4ZmxYVYOc+rxN1H2gM1EJ2Duhp7uHtZ4WSLkV4Vtx5MUqnV+l7u9B+jFv+").then(()=>{if("undefined"==typeof marked)throw new Error("marked.js failed to load");return marked}).catch(t=>{throw console.error("[Manifest Markdown] marked.js failed to load:",t),e=null,t}),e)}function a(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(e){return e.replace(/(<(?:div|section|article|aside)[^>]*\bx-code-group\b[^>]*>)(?!\s*\n)/g,"$1\n")}function c(e){const t=document.createElement("template");t.innerHTML=e;return t.content.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.removeAttribute("disabled")}),t.innerHTML}function d(e){return e.replace(/<code>([^<]*)<\/code>\{([^}\n]+)\}/g,(e,t,n)=>{const i=n.trim().split(/\s+/).filter(Boolean);let r="";const o=[],s=new Set,l=[];for(const e of i)if("copy"===e||"lines"===e||"edit"===e)s.add(e);else if(e.startsWith("."))o.push(e.slice(1));else if(e.includes("=")){const[t,...n]=e.split("="),i=n.join("=").replace(/^["']|["']$/g,"");l.push([t,i])}else/^[a-z][\w-]*$/i.test(e)&&!r&&(r=e);let c="";r&&(c+=` x-code="${a(r)}"`);for(const e of s)c+=` ${e}`;o.length&&(c+=` class="${a(o.join(" "))}"`);for(const[e,t]of l)c+=` ${e}="${a(t)}"`;return`<code${c}>${t}</code>`})}async function f(){try{const e=await o();await async function(e){e.use({renderer:{code(e){const t=e.lang||"",n=e.text||"",i=function(e){const t={title:null,language:null,lines:!1,copy:!1,edit:!1,collapse:null,from:null};if(!e||""===e.trim())return t;const n=e.split(/\s+/);let i=0;for(;i<n.length;){const e=n[i];if("lines"!==e)if("copy"!==e)if("edit"!==e)if("collapse"!==e)if(e.startsWith("collapse="))t.collapse=e.slice(9).replace(/^"|"$/g,""),i++;else if(e.startsWith("from="))t.from=e.slice(5).replace(/^"|"$/g,""),i++;else if(e.startsWith('"')&&e.endsWith('"')&&e.length>1)t.title=e.slice(1,-1),i++;else{if(e.startsWith('"')){let r=e.slice(1);for(i++;i<n.length;){const e=n[i];if(e.endsWith('"')){r+=" "+e.slice(0,-1),t.title=r,i++;break}r+=" "+e,i++}continue}t.language||(t.language=e),i++}else t.collapse="",i++;else t.edit=!0,i++;else t.copy=!0,i++;else t.lines=!0,i++}return t}(t);let r="";return r+=` x-code="${i.language?a(i.language):""}"`,i.title&&(r+=` name="${a(i.title)}"`),i.lines&&(r+=" lines"),i.copy&&(r+=" copy"),i.edit&&(r+=" edit"),null!==i.collapse&&(r+=""===i.collapse?" collapse":` collapse="${a(i.collapse)}"`),i.from&&(r+=` from="${a(i.from)}"`),`<pre${r}><code>${s(n)}</code></pre>\n`}},breaks:!0,gfm:!0}),e.use({extensions:[{name:"callout",level:"block",start:e=>e.match(/^:::/)?.index,tokenizer(e){const t=e.match(/^:::(.*?)(?:\n|$)/);if(!t)return;const n=t[1].trim();let i="",r="",o="";const a=n.match(/icon="([^"]+)"/);a&&(r=a[1]);const s=n.replace(/\s*icon="[^"]+"\s*/," "),l=s.match(/"([^"]+)"/);l&&(o=l[1]),i=s.replace(/\s*"[^"]+"\s*/," ").replace(/\s+/g," ").trim();const c=t[0].length,d=e.slice(c),f=d.match(/\n:::/);if(f){const e=d.slice(0,f.index);return{type:"callout",raw:t[0]+e+f[0],classes:i,iconValue:r,nameValue:o,text:e.trim()}}},renderer(t){let n=t.classes||"";const i=t.iconValue||"",r=t.nameValue||"",o=/\bframe\b/.test(n)&&/\bdemo\b/.test(n);let l;o&&(n=n.replace(/\bdemo\b/,"").replace(/\s+/g," ").trim()),l=n.includes("frame")?t.text:e.parse(t.text);const c=i?`<span x-icon="${a(i)}"></span>`:"",d=document.createElement("template");d.innerHTML=l;const f=d.content.children.length>=2&&i?`<div>${l}</div>`:l,u=r?` name="${a(r)}"`:"",p=`<aside${n?` class="${n}"`:""}${u}>${c}${f}</aside>`;return o?`${p}\n<pre x-code="html" copy${u}><code>${s(t.text.trim())}</code></pre>\n`:`${p}\n`}}]}),e.setOptions({headerIds:!1,mangle:!1})}(e),e.use({renderer:{heading(e){const t=e.text||"",n=e.depth||1;return`<h${n} id="${t.toLowerCase().replace(/[^\w]+/g,"-").replace(/^-+|-+$/g,"")}">${t}</h${n}>`}}});const n=p(),i=!(!document.querySelector('meta[name="manifest:prerendered"]')||"0"===document.querySelector('meta[name="manifest:prerendered"]').getAttribute("content")),f=()=>(window.__manifestMarkdownPending=(window.__manifestMarkdownPending||0)+1,()=>{window.__manifestMarkdownPending=Math.max(0,(window.__manifestMarkdownPending||1)-1),0===window.__manifestMarkdownPending&&window.dispatchEvent(new CustomEvent("manifest:markdown-idle"))});Alpine.directive("markdown",(e,{expression:n,modifiers:a},{effect:s,evaluateLater:u})=>{const p=Array.isArray(a)&&a.includes("safe");if(!n)return;const m=i&&e.innerHTML&&""!==e.innerHTML.trim();m||(e.style.opacity="0",e.style.transition="opacity 0.15s ease-in-out");let w="",h=!1,g=m;const y=e=>{const t=e.split("\n"),n=t.filter(e=>e.trim()).reduce((e,t)=>{const n=t.match(/^\s*/)[0].length;return Math.min(e,n)},1/0);return t.map(e=>e.slice(n)).join("\n").trim()},v=async(e,t=null)=>{if(h)return;h=!0;const n=f();try{if(null!==t&&""!==t.trim()&&(w=y(t)),!w||""===w.trim())return void(g||(e.style.opacity="0"));const n=await o(),i=l(w);let a=n.parse(i);if(a=c(a),a=d(a),a=await r(a,p),e.innerHTML!==a&&""!==a.trim()){const t=document.createElement("div");for(t.innerHTML=a,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}})),g=!0,e.style.opacity="1"}else g||(e.style.opacity="0")}finally{h=!1,n()}};if(!n||"inline"===n){w=y(e.textContent),v(e);return void new MutationObserver(t=>{let n=null;for(const i of t)if("childList"===i.type){const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE);if(t.length>0){n=t.map(e=>e.textContent).join("");break}}else if("characterData"===i.type){n=i.target.textContent;break}n&&""!==n.trim()&&v(e,n)}).observe(e,{characterData:!0,childList:!0,subtree:!0,characterDataOldValue:!0})}const M=n.trim(),$=M.includes("+")||M.includes("`")||M.includes("${")||M.startsWith("$")||M.startsWith("'")||M.startsWith('"'),A=/\.(md|markdown)([?#]|$)/i.test(M)||/^[\w./-]*\/[\w./-]*$/.test(M),b=!A&&/^[A-Za-z_$][\w$]*(\s*(\?\.|\.)\s*[A-Za-z_$][\w$]*|\s*\[[^\]]*\]|\s*\([^()]*\))+$/.test(M),k=!A&&/^[A-Za-z_$][\w$]*$/.test(M);let E=n;$||(E=b?`(() => { try { return ${M} } catch (_) { return undefined } })()`:k?`(typeof ${M} === 'undefined' ? '${M}' : ${M})`:`'${n.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n")}'`);const T=u(E);let x=null,L=m;s(()=>{T(async i=>{const s=f();try{if(!i||void 0===i||""===i)return void(L||(e.style.opacity="0",g=!1));void 0===i&&(i=n);const s="string"==typeof i&&!/\s/.test(i)&&(/\.(md|markdown)([?#]|$)/i.test(i)||/^[\w./-]*\/[\w./-]*$/.test(i));let l=i;if(s)try{let n=i;if(!i.startsWith("/")){const e=(("function"==typeof window.getManifestBase?window.getManifestBase():"")||"").replace(/\/$/,"")||"";n=(e?e+"/":"/")+i}try{e.setAttribute("data-mnfst-md-src",n)}catch(e){}if(t.has(n))l=t.get(n);else{const e=await fetch(n);e.ok?(l=await e.text(),t.set(n,l)):(console.warn(`[Manifest] Failed to fetch markdown file: ${n}`),l=`# Error Loading Content\n\nCould not load: ${n}`,t.set(n,l))}}catch(e){console.error(`[Manifest] Error fetching markdown file: ${i}`,e),l=`# Error Loading Content\n\nCould not load: ${i}\n\nError: ${e.message}`,resolvedPath&&t.set(resolvedPath,l)}if(l===x)return void(e.innerHTML&&""!==e.innerHTML.trim()&&(g=!0,e.style.opacity="1"));x=l;const f="string"==typeof l?l:"";if(!f||""===f.trim())return void(L||(e.style.opacity="0",g=!1));let u=(await o()).parse(f);if(u=c(u),u=d(u),u=await r(u,p),e.innerHTML!==u){const t=document.createElement("div");for(t.innerHTML=u,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.Alpine&&"function"==typeof window.Alpine.initTree&&(window.Alpine.nextTick?window.Alpine.nextTick(()=>{window.Alpine.initTree(e)}):setTimeout(()=>{window.Alpine.initTree(e)},0)),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}g=!0,L=!1,e.style.opacity="1";const m=[];if(e.querySelectorAll("h1, h2, h3").forEach(e=>{m.push({id:e.id,text:e.textContent,level:parseInt(e.tagName.charAt(1))})}),a.includes("headings")){const t="markdown-"+Math.random().toString(36).substr(2,9);e.setAttribute("data-headings-section",t),window._manifestHeadings||(window._manifestHeadings={}),window._manifestHeadings[t]=m}}finally{s()}})})}),n.length>0&&n.forEach(e=>{const t=e.getAttributeNames().find(u),n=e.getAttribute(t),i=t.split(".").includes("safe");Alpine.$data(e);if(n.startsWith("'")&&n.endsWith("'")){const t=n.slice(1,-1);(async(e,t=null)=>{try{if(!t)return;const n=await o(),a=l(t);let s=n.parse(a);s=s.replace(/<input type="checkbox"([^>]*?)disabled([^>]*?)>/g,'<input type="checkbox"$1$2>'),s=d(s),s=await r(s,i);const c=document.createElement("div");for(c.innerHTML=s,e.innerHTML="";c.firstChild;)e.appendChild(c.firstChild);const f=(t=0)=>{var n;window.Alpine&&"function"==typeof window.Alpine.initTree?"function"!=typeof window._$xProxyFactory&&t<5?setTimeout(()=>f(t+1),50):(n=()=>{try{window.Alpine.initTree(e)}catch(e){console.error("[Manifest Markdown] Error initializing Alpine tree (updateContent):",e)}},window.Alpine?.nextTick?window.Alpine.nextTick(n):setTimeout(n,0)):t<5&&setTimeout(()=>f(t+1),50)};f(),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}catch(e){console.error("[Manifest Markdown] Failed to process element:",e)}})(e,t)}else{const i=n;e.removeAttribute(t),setTimeout(()=>{e.setAttribute(t,i)},50)}})}catch(e){console.error("[Manifest] Failed to initialize markdown plugin:",e)}}window.ManifestDOMPurify||(window.ManifestDOMPurify={_promise:null,load(){return void 0!==window.DOMPurify?Promise.resolve(window.DOMPurify):(this._promise||(this._promise=window.ManifestVendor.script("dompurify@3.4.10/dist/purify.min.js","sha384-eguRoJERj8ghOpzO//Rl7+ScQsQIR1cH+ajll7+fG+IpbNPlkZsQn9h8ccr+wPXx").then(()=>{if(void 0===window.DOMPurify)throw new Error("DOMPurify failed to load");return window.DOMPurify}).catch(e=>{throw this._promise=null,e})),this._promise)}}),o().catch(()=>{});const u=e=>"x-markdown"===e||e.startsWith("x-markdown.");function p(){return[...document.querySelectorAll("*")].filter(e=>e.getAttributeNames().some(u))}let m=!1,w=!1;async function h(){if(!m&&window.Alpine&&"function"==typeof window.Alpine.directive&&(m=!0,await f(),w&&"function"==typeof window.Alpine.initTree)){p().forEach(e=>{e.__x||window.Alpine.initTree(e)})}}document.addEventListener("alpine:initialized",()=>{w=!0}),window.ensureMarkdownPluginInitialized=h,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",h),document.addEventListener("alpine:init",h),window.Alpine&&"function"==typeof window.Alpine.directive&&h()}();
1
+ !function(){if(!window.ManifestVendor){const e="https://cdn.jsdelivr.net/npm/";window.ManifestVendor={get checked(){return!(!window.Manifest||!window.Manifest.integrity)},script(t,n){const i=window.Manifest;return i&&i.loadVendor?i.loadVendor(t,n):new Promise((i,r)=>{const o=e+t,a=document.querySelector(`script[src="${o}"]`);if(a&&a.dataset.vendorLoaded)return i();const s=a||document.createElement("script");if(s.addEventListener("load",()=>{s.dataset.vendorLoaded="1",i()}),s.addEventListener("error",()=>r(new Error(`Failed to load ${o}`))),a){const e=()=>{try{return performance.getEntriesByName(o).length>0}catch(e){return!1}},t=setInterval(()=>{e()&&(clearInterval(t),i())},50);return void setTimeout(()=>{clearInterval(t),i()},4e3)}n&&(s.integrity=n,s.crossOrigin="anonymous"),s.src=o,document.head.appendChild(s)})},fetch(t,n){const i=window.Manifest;return i&&i.fetchVendor?i.fetchVendor(t,n):fetch(e+t,n?{integrity:n,mode:"cors",credentials:"omit"}:void 0).then(n=>{if(!n.ok)throw new Error(`Failed to load ${e+t}`);return n})}}}let e=null;const t=new Map;"undefined"!=typeof window&&window.addEventListener("manifest:dev-reload",()=>{t.clear()});const n={USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","template","dialog","video","audio"],FORBID_ATTR:["style","popover","popovertarget","popovertargetaction","formaction","command","commandfor","autoplay","background"],ALLOW_DATA_ATTR:!1,SANITIZE_NAMED_PROPS:!0},i=new Set(["brand","accent","positive","negative","frame"]);async function r(e,t){if(!t)return e;try{return function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll('input[type="image" i]').forEach(e=>e.remove()),t.content.querySelectorAll("[class]").forEach(e=>{const t="ASIDE"===e.tagName?[...e.classList].filter(e=>i.has(e)):[];t.length?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}),t.content.querySelectorAll('a[href^="#"]').forEach(e=>{const n=e.getAttribute("href").slice(1);let i;try{i=decodeURIComponent(n)}catch{i=n}i&&t.content.getElementById("user-content-"+i)&&e.setAttribute("href","#user-content-"+i)}),t.innerHTML}((await window.ManifestDOMPurify.load()).sanitize(e,n))}catch{const t=String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return console.warn("[Manifest Markdown] x-markdown.safe: DOMPurify unavailable — emitting escaped text."),t}}async function o(){return"undefined"!=typeof marked?marked:e||(e=window.ManifestVendor.script("marked@15.0.12/marked.min.js","sha384-948ahk4ZmxYVYOc+rxN1H2gM1EJ2Duhp7uHtZ4WSLkV4Vtx5MUqnV+l7u9B+jFv+").then(()=>{if("undefined"==typeof marked)throw new Error("marked.js failed to load");return marked}).catch(t=>{throw console.error("[Manifest Markdown] marked.js failed to load:",t),e=null,t}),e)}function a(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(e){return e.replace(/(<(?:div|section|article|aside)[^>]*\bx-code-group\b[^>]*>)(?!\s*\n)/g,"$1\n")}function c(e){const t=document.createElement("template");t.innerHTML=e;return t.content.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.removeAttribute("disabled")}),t.innerHTML}function d(e){return e.replace(/<code>([^<]*)<\/code>\{([^}\n]+)\}/g,(e,t,n)=>{const i=n.trim().split(/\s+/).filter(Boolean);let r="";const o=[],s=new Set,l=[];for(const e of i)if("copy"===e||"lines"===e||"edit"===e)s.add(e);else if(e.startsWith("."))o.push(e.slice(1));else if(e.includes("=")){const[t,...n]=e.split("="),i=n.join("=").replace(/^["']|["']$/g,"");l.push([t,i])}else/^[a-z][\w-]*$/i.test(e)&&!r&&(r=e);let c="";r&&(c+=` x-code="${a(r)}"`);for(const e of s)c+=` ${e}`;o.length&&(c+=` class="${a(o.join(" "))}"`);for(const[e,t]of l)c+=` ${e}="${a(t)}"`;return`<code${c}>${t}</code>`})}async function f(){try{const e=await o();await async function(e){e.use({renderer:{code(e){const t=e.lang||"",n=e.text||"",i=function(e){const t={title:null,language:null,lines:!1,copy:!1,edit:!1,collapse:null,from:null};if(!e||""===e.trim())return t;const n=e.split(/\s+/);let i=0;for(;i<n.length;){const e=n[i];if("lines"!==e)if("copy"!==e)if("edit"!==e)if("collapse"!==e)if(e.startsWith("collapse="))t.collapse=e.slice(9).replace(/^"|"$/g,""),i++;else if(e.startsWith("from="))t.from=e.slice(5).replace(/^"|"$/g,""),i++;else if(e.startsWith('"')&&e.endsWith('"')&&e.length>1)t.title=e.slice(1,-1),i++;else{if(e.startsWith('"')){let r=e.slice(1);for(i++;i<n.length;){const e=n[i];if(e.endsWith('"')){r+=" "+e.slice(0,-1),t.title=r,i++;break}r+=" "+e,i++}continue}t.language||(t.language=e),i++}else t.collapse="",i++;else t.edit=!0,i++;else t.copy=!0,i++;else t.lines=!0,i++}return t}(t);let r="";return r+=` x-code="${i.language?a(i.language):""}"`,i.title&&(r+=` name="${a(i.title)}"`),i.lines&&(r+=" lines"),i.copy&&(r+=" copy"),i.edit&&(r+=" edit"),null!==i.collapse&&(r+=""===i.collapse?" collapse":` collapse="${a(i.collapse)}"`),i.from&&(r+=` from="${a(i.from)}"`),`<pre${r}><code>${s(n)}</code></pre>\n`}},breaks:!0,gfm:!0}),e.use({extensions:[{name:"callout",level:"block",start:e=>e.match(/^:::/)?.index,tokenizer(e){const t=e.match(/^:::(.*?)(?:\n|$)/);if(!t)return;const n=t[1].trim();let i="",r="",o="";const a=n.match(/icon="([^"]+)"/);a&&(r=a[1]);const s=n.replace(/\s*icon="[^"]+"\s*/," "),l=s.match(/"([^"]+)"/);l&&(o=l[1]),i=s.replace(/\s*"[^"]+"\s*/," ").replace(/\s+/g," ").trim();const c=t[0].length,d=e.slice(c),f=d.match(/\n:::/);if(f){const e=d.slice(0,f.index);return{type:"callout",raw:t[0]+e+f[0],classes:i,iconValue:r,nameValue:o,text:e.trim()}}},renderer(t){let n=t.classes||"";const i=t.iconValue||"",r=t.nameValue||"",o=/\bframe\b/.test(n)&&/\bdemo\b/.test(n);let l;o&&(n=n.replace(/\bdemo\b/,"").replace(/\s+/g," ").trim()),l=n.includes("frame")?t.text:e.parse(t.text);const c=i?`<span x-icon="${a(i)}"></span>`:"",d=document.createElement("template");d.innerHTML=l;const f=d.content.children.length>=2&&i?`<div>${l}</div>`:l,u=r?` name="${a(r)}"`:"",p=`<aside${n?` class="${n}"`:""}${u}>${c}${f}</aside>`;return o?`${p}\n<pre x-code="html" copy${u}><code>${s(t.text.trim())}</code></pre>\n`:`${p}\n`}}]}),e.setOptions({headerIds:!1,mangle:!1})}(e),e.use({renderer:{heading(e){const t=e.text||"",n=e.depth||1;return`<h${n} id="${t.toLowerCase().replace(/[^\w]+/g,"-").replace(/^-+|-+$/g,"")}">${t}</h${n}>`}}});const n=p(),i=!(!document.querySelector('meta[name="manifest:prerendered"]')||"0"===document.querySelector('meta[name="manifest:prerendered"]').getAttribute("content")),f=()=>(window.__manifestMarkdownPending=(window.__manifestMarkdownPending||0)+1,()=>{window.__manifestMarkdownPending=Math.max(0,(window.__manifestMarkdownPending||1)-1),0===window.__manifestMarkdownPending&&window.dispatchEvent(new CustomEvent("manifest:markdown-idle"))});Alpine.directive("markdown",(e,{expression:n,modifiers:a},{effect:s,evaluateLater:u,cleanup:p})=>{const m=Array.isArray(a)&&a.includes("safe");if(!n)return;const w=i&&e.innerHTML&&""!==e.innerHTML.trim();w||(e.style.opacity="0",e.style.transition="opacity 0.15s ease-in-out");let h="",g=!1,y=w;const v=e=>{const t=e.split("\n"),n=t.filter(e=>e.trim()).reduce((e,t)=>{const n=t.match(/^\s*/)[0].length;return Math.min(e,n)},1/0);return t.map(e=>e.slice(n)).join("\n").trim()},M=async(e,t=null)=>{if(g)return;g=!0;const n=f();try{if(null!==t&&""!==t.trim()&&(h=v(t)),!h||""===h.trim())return void(y||(e.style.opacity="0"));const n=await o(),i=l(h);let a=n.parse(i);if(a=c(a),a=d(a),a=await r(a,m),e.innerHTML!==a&&""!==a.trim()){const t=document.createElement("div");for(t.innerHTML=a,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}})),y=!0,e.style.opacity="1"}else y||(e.style.opacity="0")}finally{g=!1,n()}};if(!n||"inline"===n){h=v(e.textContent),M(e);return void new MutationObserver(t=>{let n=null;for(const i of t)if("childList"===i.type){const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE);if(t.length>0){n=t.map(e=>e.textContent).join("");break}}else if("characterData"===i.type){n=i.target.textContent;break}n&&""!==n.trim()&&M(e,n)}).observe(e,{characterData:!0,childList:!0,subtree:!0,characterDataOldValue:!0})}const $=n.trim(),A=$.includes("+")||$.includes("`")||$.includes("${")||$.startsWith("$")||$.startsWith("'")||$.startsWith('"'),b=/\.(md|markdown)([?#]|$)/i.test($)||/^[\w./-]*\/[\w./-]*$/.test($),k=!b&&/^[A-Za-z_$][\w$]*(\s*(\?\.|\.)\s*[A-Za-z_$][\w$]*|\s*\[[^\]]*\]|\s*\([^()]*\))+$/.test($),E=!b&&/^[A-Za-z_$][\w$]*$/.test($);let T=n;A||(T=k?`(() => { try { return ${$} } catch (_) { return undefined } })()`:E?`(typeof ${$} === 'undefined' ? '${$}' : ${$})`:`'${n.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n")}'`);const x=u(T);let L=null,_=w,C=null,H=!1;p(()=>{H=!0,C&&window._manifestHeadings&&delete window._manifestHeadings[C]}),s(()=>{x(async i=>{const s=f();try{if(!i||void 0===i||""===i)return void(_||(e.style.opacity="0",y=!1));void 0===i&&(i=n);const s="string"==typeof i&&!/\s/.test(i)&&(/\.(md|markdown)([?#]|$)/i.test(i)||/^[\w./-]*\/[\w./-]*$/.test(i));let l=i;if(s)try{let n=i;if(!i.startsWith("/")){const e=(("function"==typeof window.getManifestBase?window.getManifestBase():"")||"").replace(/\/$/,"")||"";n=(e?e+"/":"/")+i}try{e.setAttribute("data-mnfst-md-src",n)}catch(e){}if(t.has(n))l=t.get(n);else{const e=await fetch(n);e.ok?(l=await e.text(),t.set(n,l)):(console.warn(`[Manifest] Failed to fetch markdown file: ${n}`),l=`# Error Loading Content\n\nCould not load: ${n}`,t.set(n,l))}}catch(e){console.error(`[Manifest] Error fetching markdown file: ${i}`,e),l=`# Error Loading Content\n\nCould not load: ${i}\n\nError: ${e.message}`,resolvedPath&&t.set(resolvedPath,l)}if(l===L)return void(e.innerHTML&&""!==e.innerHTML.trim()&&(y=!0,e.style.opacity="1"));L=l;const f="string"==typeof l?l:"";if(!f||""===f.trim())return void(_||(e.style.opacity="0",y=!1));let u=(await o()).parse(f);if(u=c(u),u=d(u),u=await r(u,m),e.innerHTML!==u){const t=document.createElement("div");for(t.innerHTML=u,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.Alpine&&"function"==typeof window.Alpine.initTree&&(window.Alpine.nextTick?window.Alpine.nextTick(()=>{window.Alpine.initTree(e)}):setTimeout(()=>{window.Alpine.initTree(e)},0)),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}if(y=!0,_=!1,e.style.opacity="1",a.includes("headings")&&!H){const t=[];e.querySelectorAll("h1, h2, h3").forEach(e=>{t.push({id:e.id,text:e.textContent,level:parseInt(e.tagName.charAt(1))})}),C||(C="markdown-"+Math.random().toString(36).substr(2,9)),e.setAttribute("data-headings-section",C),window._manifestHeadings||(window._manifestHeadings={}),window._manifestHeadings[C]=t}}finally{s()}})})}),n.length>0&&n.forEach(e=>{const t=e.getAttributeNames().find(u),n=e.getAttribute(t),i=t.split(".").includes("safe");Alpine.$data(e);if(n.startsWith("'")&&n.endsWith("'")){const t=n.slice(1,-1);(async(e,t=null)=>{try{if(!t)return;const n=await o(),a=l(t);let s=n.parse(a);s=s.replace(/<input type="checkbox"([^>]*?)disabled([^>]*?)>/g,'<input type="checkbox"$1$2>'),s=d(s),s=await r(s,i);const c=document.createElement("div");for(c.innerHTML=s,e.innerHTML="";c.firstChild;)e.appendChild(c.firstChild);const f=(t=0)=>{var n;window.Alpine&&"function"==typeof window.Alpine.initTree?"function"!=typeof window._$xProxyFactory&&t<5?setTimeout(()=>f(t+1),50):(n=()=>{try{window.Alpine.initTree(e)}catch(e){console.error("[Manifest Markdown] Error initializing Alpine tree (updateContent):",e)}},window.Alpine?.nextTick?window.Alpine.nextTick(n):setTimeout(n,0)):t<5&&setTimeout(()=>f(t+1),50)};f(),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}catch(e){console.error("[Manifest Markdown] Failed to process element:",e)}})(e,t)}else{const i=n;e.removeAttribute(t),setTimeout(()=>{e.setAttribute(t,i)},50)}})}catch(e){console.error("[Manifest] Failed to initialize markdown plugin:",e)}}window.ManifestDOMPurify||(window.ManifestDOMPurify={_promise:null,load(){return void 0!==window.DOMPurify?Promise.resolve(window.DOMPurify):(this._promise||(this._promise=window.ManifestVendor.script("dompurify@3.4.10/dist/purify.min.js","sha384-eguRoJERj8ghOpzO//Rl7+ScQsQIR1cH+ajll7+fG+IpbNPlkZsQn9h8ccr+wPXx").then(()=>{if(void 0===window.DOMPurify)throw new Error("DOMPurify failed to load");return window.DOMPurify}).catch(e=>{throw this._promise=null,e})),this._promise)}}),o().catch(()=>{});const u=e=>"x-markdown"===e||e.startsWith("x-markdown.");function p(){return[...document.querySelectorAll("*")].filter(e=>e.getAttributeNames().some(u))}let m=!1,w=!1;async function h(){if(!m&&window.Alpine&&"function"==typeof window.Alpine.directive&&(m=!0,await f(),w&&"function"==typeof window.Alpine.initTree)){p().forEach(e=>{e.__x||window.Alpine.initTree(e)})}}document.addEventListener("alpine:initialized",()=>{w=!0}),window.ensureMarkdownPluginInitialized=h,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",h),document.addEventListener("alpine:init",h),window.Alpine&&"function"==typeof window.Alpine.directive&&h()}();
2
2
  //# sourceMappingURL=manifest.markdown.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.markdown.min.js","names":["window","ManifestVendor","CDN","checked","Manifest","integrity","script","path","hash","M","loadVendor","Promise","resolve","reject","src","found","document","querySelector","dataset","vendorLoaded","s","createElement","addEventListener","Error","done","performance","getEntriesByName","length","_","poll","setInterval","clearInterval","setTimeout","crossOrigin","head","appendChild","fetch","fetchVendor","mode","credentials","undefined","then","r","ok","markedPromise","markdownCache","Map","clear","MARKDOWN_PURIFY_CONFIG","USE_PROFILES","html","FORBID_TAGS","FORBID_ATTR","ALLOW_DATA_ATTR","SANITIZE_NAMED_PROPS","MARKDOWN_SAFE_CLASSES","Set","async","maybeSanitizeMarkdownHtml","safe","t","innerHTML","content","querySelectorAll","forEach","el","remove","keep","tagName","classList","filter","c","has","setAttribute","join","removeAttribute","a","raw","getAttribute","slice","id","decodeURIComponent","getElementById","restrictSafeClasses","ManifestDOMPurify","load","sanitize","escaped","String","replace","console","warn","loadMarkedJS","marked","catch","error","escapeForAttribute","escapeForText","renderXCodeGroup","markdown","enableCheckboxes","temp","checkbox","applyInlineCodeAttributes","body","attrString","tokens","trim","split","Boolean","language","classes","flags","kv","tok","add","startsWith","push","includes","k","rest","v","test","attrs","flag","initializeMarkdownPlugin","use","renderer","code","token","lang","text","languageString","attributes","title","lines","copy","edit","collapse","from","parts","i","part","endsWith","fullName","next","parseLanguageString","preAttrs","breaks","gfm","extensions","name","level","start","match","index","tokenizer","openMatch","openingLine","iconValue","nameValue","iconMatch","withoutIcon","nameMatch","startPos","remainingContent","closeMatch","type","isDemo","parsedContent","parse","iconHtml","wrappedContent","children","nameAttr","aside","setOptions","headerIds","mangle","configureMarked","heading","depth","toLowerCase","existingMarkdownElements","findMarkdownElements","isPrerenderedPage","mdTrack","__manifestMarkdownPending","Math","max","dispatchEvent","CustomEvent","Alpine","directive","expression","modifiers","effect","evaluateLater","Array","isArray","hasBakedContent","style","opacity","transition","markdownSource","isUpdating","hasContent","normalizeContent","commonIndent","line","reduce","min","indent","Infinity","map","updateContent","element","newContent","mdDone","processedMarkdown","firstChild","ManifestCode","observeAll","bubbles","detail","root","textContent","MutationObserver","mutations","mutation","textNodes","childNodes","node","nodeType","Node","TEXT_NODE","target","observe","characterData","childList","subtree","characterDataOldValue","trimmed","isExplicitExpression","looksLikePath","isMemberChain","isBareIdentifier","processedExpression","getMarkdownContent","lastProcessedContent","bakedOnly","pathOrContent","isFilePath","markdownContent","resolvedPath","basePath","getManifestBase","get","response","set","message","contentStr","initTree","nextTick","headings","parseInt","charAt","sectionId","random","toString","substr","_manifestHeadings","attrName","getAttributeNames","find","isMarkdownAttr","$data","initAlpine","retryCount","fn","_$xProxyFactory","e","originalExpression","_promise","DOMPurify","this","err","n","some","markdownPluginInitialized","markdownAlpineHasWalked","ensureMarkdownPluginInitialized","__x","readyState"],"sources":["manifest.markdown.js"],"mappings":"CAEA,WAKA,IAAKA,OAAOC,eAAgB,CACxB,MAAMC,EAAM,gCACZF,OAAOC,eAAiB,CACpB,WAAIE,GAAY,SAAUH,OAAOI,WAAYJ,OAAOI,SAASC,UAAY,EACzE,MAAAC,CAAOC,EAAMC,GACT,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAEC,WAAmBD,EAAEC,WAAWH,EAAMC,GAC1C,IAAIG,QAAQ,CAACC,EAASC,KACzB,MAAMC,EAA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AAO,sCAAuC,2EAC/EmC,KAAK,KACF,QAAgC,IAArBzC,OAAO4R,UAA2B,MAAM,IAAIrQ,MAAM,4BAC7D,OAAOvB,OAAO4R,YAEjB9L,MAAOgM,IAAgC,MAAtBD,KAAKF,SAAW,KAAYG,KANxBD,KAAKF,SAQnC,IA2VR/L,IAAeE,MAAM,QAygBrB,MAAMqL,EAAkBY,GAAY,eAANA,GAAsBA,EAAE3K,WAAW,eACjE,SAASoE,IACL,MAAO,IAAIxK,SAAS+C,iBAAiB,MAAMO,OAAOL,GAAMA,EAAGgN,oBAAoBe,KAAKb,GACxF,CAGA,IAAIc,GAA4B,EAG5BC,GAA0B,EAG9BzO,eAAe0O,IACX,IAAIF,GAGCjS,OAAOgM,QAA6C,mBAA5BhM,OAAOgM,OAAOC,YAI3CgG,GAA4B,QACtBpK,IAIFqK,GAA6D,mBAA3BlS,OAAOgM,OAAOsE,UAAyB,CACxC9E,IACRxH,QAAQC,IACxBA,EAAGmO,KACJpS,OAAOgM,OAAOsE,SAASrM,IAGnC,CACJ,CAvBAjD,SAASM,iBAAiB,qBAAsB,KAAQ4Q,GAA0B,IA0BlFlS,OAAOmS,gCAAkCA,EAGb,YAAxBnR,SAASqR,YACTrR,SAASM,iBAAiB,mBAAoB6Q,GAGlDnR,SAASM,iBAAiB,cAAe6Q,GAGrCnS,OAAOgM,QAA6C,mBAA5BhM,OAAOgM,OAAOC,WACtCkG,GAGH,CAz/BD","ignoreList":[]}
1
+ {"version":3,"file":"manifest.markdown.min.js","names":["window","ManifestVendor","CDN","checked","Manifest","integrity","script","path","hash","M","loadVendor","Promise","resolve","reject","src","found","document","querySelector","dataset","vendorLoaded","s","createElement","addEventListener","Error","done","performance","getEntriesByName","length","_","poll","setInterval","clearInterval","setTimeout","crossOrigin","head","appendChild","fetch","fetchVendor","mode","credentials","undefined","then","r","ok","markedPromise","markdownCache","Map","clear","MARKDOWN_PURIFY_CONFIG","USE_PROFILES","html","FORBID_TAGS","FORBID_ATTR","ALLOW_DATA_ATTR","SANITIZE_NAMED_PROPS","MARKDOWN_SAFE_CLASSES","Set","async","maybeSanitizeMarkdownHtml","safe","t","innerHTML","content","querySelectorAll","forEach","el","remove","keep","tagName","classList","filter","c","has","setAttribute","join","removeAttribute","a","raw","getAttribute","slice","id","decodeURIComponent","getElementById","restrictSafeClasses","ManifestDOMPurify","load","sanitize","escaped","String","replace","console","warn","loadMarkedJS","marked","catch","error","escapeForAttribute","escapeForText","renderXCodeGroup","markdown","enableCheckboxes","temp","checkbox","applyInlineCodeAttributes","body","attrString","tokens","trim","split","Boolean","language","classes","flags","kv","tok","add","startsWith","push","includes","k","rest","v","test","attrs","flag","initializeMarkdownPlugin","use","renderer","code","token","lang","text","languageString","attributes","title","lines","copy","edit","collapse","from","parts","i","part","endsWith","fullName","next","parseLanguageString","preAttrs","breaks","gfm","extensions","name","level","start","match","index","tokenizer","openMatch","openingLine","iconValue","nameValue","iconMatch","withoutIcon","nameMatch","startPos","remainingContent","closeMatch","type","isDemo","parsedContent","parse","iconHtml","wrappedContent","children","nameAttr","aside","setOptions","headerIds","mangle","configureMarked","heading","depth","toLowerCase","existingMarkdownElements","findMarkdownElements","isPrerenderedPage","mdTrack","__manifestMarkdownPending","Math","max","dispatchEvent","CustomEvent","Alpine","directive","expression","modifiers","effect","evaluateLater","cleanup","Array","isArray","hasBakedContent","style","opacity","transition","markdownSource","isUpdating","hasContent","normalizeContent","commonIndent","line","reduce","min","indent","Infinity","map","updateContent","element","newContent","mdDone","processedMarkdown","firstChild","ManifestCode","observeAll","bubbles","detail","root","textContent","MutationObserver","mutations","mutation","textNodes","childNodes","node","nodeType","Node","TEXT_NODE","target","observe","characterData","childList","subtree","characterDataOldValue","trimmed","isExplicitExpression","looksLikePath","isMemberChain","isBareIdentifier","processedExpression","getMarkdownContent","lastProcessedContent","bakedOnly","headingsSectionId","destroyed","_manifestHeadings","pathOrContent","isFilePath","markdownContent","resolvedPath","basePath","getManifestBase","get","response","set","message","contentStr","initTree","nextTick","headings","parseInt","charAt","random","toString","substr","attrName","getAttributeNames","find","isMarkdownAttr","$data","initAlpine","retryCount","fn","_$xProxyFactory","e","originalExpression","_promise","DOMPurify","this","err","n","some","markdownPluginInitialized","markdownAlpineHasWalked","ensureMarkdownPluginInitialized","__x","readyState"],"sources":["manifest.markdown.js"],"mappings":"CAEA,WAKA,IAAKA,OAAOC,eAAgB,CACxB,MAAMC,EAAM,gCACZF,OAAOC,eAAiB,CACpB,WAAIE,GAAY,SAAUH,OAAOI,WAAYJ,OAAOI,SAASC,UAAY,EACzE,MAAAC,CAAOC,EAAMC,GACT,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAEC,WAAmBD,EAAEC,WAAWH,EAAMC,GAC1C,IAAIG,QAAQ,CAACC,EAASC,KACzB,MAAMC,EAAMZ,EAAMK,EACZQ,EAAQC,SAASC,cAAc,eAAeH,OACpD,GAAIC,GAASA,EAAMG,QAAQC,aAAc,OAAOP,IAChD,MAAMQ,EAAIL,GAASC,SAASK,cAAc,UAG1C,GAFAD,EAAEE,iBAAiB,OAAQ,KAAQF,EAAEF,QAAQC,aAAe,IAAKP,MACjEQ,EAAEE,iBAAiB,QAAS,IAAMT,EAAO,IAAIU,MAAM,kBAAkBT,OACjEC,EAAO,CAGP,MAAMS,EAAO,KAAQ,IAAM,OAAOC,YAAYC,iBAAiBZ,GAAKa,OAAS,CAAG,CAAE,MAAOC,GAAK,OAAO,CAAO,GACtGC,EAAOC,YAAY,KAAYN,MAAUO,cAAcF,GAAOjB,MAAgB,IAEpF,YADAoB,WAAW,KAAQD,cAAcF,GAAOjB,KAAc,IAE1D,CACIJ,IAAQY,EAAEf,UAAYG,EAAMY,EAAEa,YAAc,aAChDb,EAAEN,IAAMA,EACRE,SAASkB,KAAKC,YAAYf,IAElC,EACA,KAAAgB,CAAM7B,EAAMC,GACR,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAE4B,YAAoB5B,EAAE4B,YAAY9B,EAAMC,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ACJtS,OAAOgM,OAAO0E,SAASzM,IAGnC,CACJ,CAvBAjD,SAASM,iBAAiB,qBAAsB,KAAQ8Q,GAA0B,IA0BlFpS,OAAOqS,gCAAkCA,EAGb,YAAxBrR,SAASuR,YACTvR,SAASM,iBAAiB,mBAAoB+Q,GAGlDrR,SAASM,iBAAiB,cAAe+Q,GAGrCrS,OAAOgM,QAA6C,mBAA5BhM,OAAOgM,OAAOC,WACtCoG,GAGH,CA1/BD","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const ge=new Map;let he=0;window.ManifestPending={hold(e="work"){const t=++he;return ge.set(t,e),()=>{ge.delete(t)}},get count(){return ge.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...ge.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let d=!e.closest("[x-data],[x-init]"),l=!1,u=null;const f=()=>!!s.evaluate(e,c),m=()=>{u&&(u(),u=null)},p=()=>{t.delete(y),m()},w=()=>{d=!1,l=!1,m(),i._x_ignore=!0,t.add(y)},g=()=>{p(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},h=()=>{d||e._x_currentIfEl!==i||!i.isConnected||a(e)||(d=!0,l=!1,p(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!d&&!l)return e._x_currentIfEl!==i?p():void(i.isConnected?e._x_marker&&!a(e)&&f()&&h():i.getRootNode()instanceof DocumentFragment||p())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?g():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!l||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{l&&f()&&h()})}));u=()=>s.release(n)})())}),a(e)?w():(d&&(d=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(l||(l=!0,window.addEventListener("manifest:ready",()=>{if(l&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return h();g(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),d||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function d(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",d=document.createElement("div");d.innerHTML=c;const l=d.firstElementChild;if(l)try{n.parentNode.replaceChild(l,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),d=o.has(r),l=d?"":n.innerHTML,u=d?"<"+r+" "+c+">":"<"+r+" "+c+">"+l+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const m=f.firstElementChild;if(m)try{n.parentNode.replaceChild(m,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let ye=!1;document.addEventListener("readystatechange",()=>{ye||"loading"===document.readyState||(ye=!0,d())})}else d();if("undefined"!=typeof window&&"undefined"!=typeof document){let ve=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),ve&&clearTimeout(ve),ve=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),ve=null},200)},{passive:!0})}const l="latest",u="0.5.325",f="sha384-y1IrS4GZG5x74Xlx0eWemS4a/+BtKTxPnKN2HypqDp/QA9Okpft/b2RzQ1uTfpD4",m="manifest.modules.integrity.json",p="manifest.vendor.integrity.json";let w=null,g=null,h=!1,y=null,v=l,_=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function b(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=l,t=_[0]){return`${t}/mnfst@${e}/lib`}const E=["components","router","utilities","data","icons","localization","markdown","svg","code","color","toasts","tooltips","dropdowns","combobox","computed","tabs","slides","colorpicker","datepicker","charts","url-parameters","virtual","export","status"],k=["defer","bindings"],S=["edit"],L=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions"],M={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let j=null;function x(e,t=v){const n=e.replace(/-/g,".");if(j){return[`${j.replace(/\/$/,"")}/manifest.${n}.js`]}return _.map(e=>`${$(t,e)}/${b(e,`manifest.${n}.min.js`)}`)}function P(e,t=v){return x(e,t)[0]}function C(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return _.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function R(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function I(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function N(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(I(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{I(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function T(e){return e.split(/[?#]/)[0].split("/").pop()}function q(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function O(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function W(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function z(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let U=null;const D=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function B(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&D.test(n)?n:null}async function F(e,t){const n=B(e,t);if(n)return n;const i=B(e,p);return i&&/\/(languages|langs)\//.test(t)?(U||(U=z(_.map(e=>`${$(u,e)}/${p}`),i,p).then(e=>e.json()).catch(e=>{throw U=null,e})),B(await U,t)):null}async function H(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=g&&!o?await g:null,c=t||T(e[0]||"");let d=null;for(const o of e){let c=n;if(s){const e=t||(i?q(o):T(o));c=e&&await F(s,e)||(i?y:null),c||(i?W(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):W(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await N(o,c,r,a)}catch(t){d=t,c?console.error(`[Manifest Loader] ${T(o)} ${O(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),d||new Error(`Failed to load ${c}`)}const Z=new Map;async function G(e,t=v){const n=Z.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;h&&t!==u&&(W(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return H(x(e,t),{unchecked:n,priority:i})}(e,t);return Z.set(e,{version:t,promise:i}),i.catch(()=>Z.delete(e)),i}function V(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=M[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const K=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text"},{plugin:"submissions",attr:"x-submit"},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"}))].map(e=>({...e,re:e.magic?new RegExp("\\"+e.magic+"\\b"):null}));let Q=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||Q)return;Q=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let X=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||X)return;X=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const J=/^x-(code|code-group)$/,Y=new RegExp("\\$("+K.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),ee=new Set;function te(e,t=("undefined"==typeof document?null:document)){const n=K.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)).size+(i?1:0),a=()=>o.size===r;for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(a())return[...o]}const s=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!J.test(t)&&o.add("components")}for(const t of e.attributes||[]){for(const e of n)e.attr&&!o.has(e.plugin)&&(t.name===e.attr||t.name.startsWith(e.attr+"-")||t.name.startsWith(e.attr+"."))&&o.add(e.plugin);const e=t.value;if(e&&-1!==e.indexOf("$")&&!ee.has(e))if(Y.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else ee.size>2e4&&ee.clear(),ee.add(e)}},c=e=>{for(const t of e.querySelectorAll("*")){if(s(t),a())return;if("TEMPLATE"===t.tagName&&t.content&&(c(t.content),a()))return}};return 1===t.nodeType&&(s(t),"TEMPLATE"===t.tagName&&t.content&&c(t.content)),a()||c(t),[...o]}let ne=!1;const ie=new Set,oe=e=>Z.has(e)||ie.has(e);function re(e,t=v){if(!ne||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=te([...new Set(K.map(e=>e.plugin))].filter(oe).concat("components"),n);if(!i.length)return Promise.resolve([]);const o=V(i).filter(e=>!oe(e));return Promise.all(o.map(e=>G(e,t).catch(t=>{ie.has(e)||(ie.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>o)}function ae(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>re(t,e)),K.every(e=>oe(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0})}const se={"text-edit":"rich-text"};function ce(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!se[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${se[t]}`),!1)})}async function de(e=v){const t=_.map(t=>`${$(e,t)}/${b(t,"manifest.tailwind.min.js")}`);let n=null;try{return await H(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...E,...A,...L,...S,"payments","chat","device","native","import","tailwind"].includes(e))return se[e]?ce([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=V([e]);return Promise.all(n.map(e=>G(e,t)))},loadTailwind:de,loadVendor:function(e,t){return H(_.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=g?await g:null;let i=t||null;return n&&(i=await F(n,e),i||W(`${e} has no integrity hash in this release.`,"Not loaded.")),z(_.map(t=>`${t}/${e}`),i,e)},get integrity(){return h},getPluginUrl:P,getModuleUrl:P,loadUsed:re},window.Manifest.loadModule=window.Manifest.loadPlugin;const le="/sw.js";const ue={registered:!1,version:null,kill:()=>fe(null)};async function fe(e){ue.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(le);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function me(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=function(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,d=await navigator.serviceWorker.getRegistration(le).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",d?"(unregistering)":""),void await fe(d);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let l=null;try{l=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==l||u){const e=await fetch(le,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${le} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${le}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await fe(d);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const m=s&&"string"==typeof s.deployment?s.deployment:"",p=`${le}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(m)}`,g=await navigator.serviceWorker.register(p,{scope:"/"});ue.registered=!0,ue.version=e.version,i("registered",p,g.active?"active":g.installing?"installing":"waiting")}window.Manifest.swStub=function(e=l){const t=`mnfst@${String(e||l).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=ue;const pe=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o=e.getAttribute("data-version")||l,r=!!e.getAttribute("data-version"),a=e.getAttribute("data-alpine"),s=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),c=/^(off|false)$/.test(s)?null:"warn"===s?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,d=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),u=e.getAttribute("data-cdn"),f=e.getAttribute("data-sw");let m=[],p=[],w=!t;if(t){const e=ce(t.split(",").map(e=>e.trim()).filter(e=>e));p=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?m=[...n,...p]:(w=!0,m=E.slice())}else m=E.slice();if(n&&m.length>0){const e=n.split(",").map(e=>e.trim());m=m.filter(t=>!e.includes(t))}return m=V(m),{plugins:m,extraPlugins:p,deriveFromManifest:w,tailwind:i,version:o,versionSet:r,alpine:a,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:c,pluginBase:d,cdn:u,sw:f}}();var we;if(pe&&pe.version&&(v=pe.version),pe&&pe.pluginBase&&(we=pe.pluginBase,j=we||null),pe&&pe.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(pe.cdn),pe&&pe.integrity&&(w=pe.integrity,!pe.versionSet&&f&&(v=pe.version=u),h=pe.version===u,y=pe.alpineIntegrity&&D.test(pe.alpineIntegrity.trim())?pe.alpineIntegrity.trim():null,g=async function(e){if(e.version!==u)return W(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=j?[`${j.replace(/\/$/,"")}/${m}`]:_.map(e=>`${$(u,e)}/${m}`);try{return await(await z(t,f,m)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(pe),g.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{me(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(pe),pe&&pe.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const _e=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],be=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",$e=new Set,Ee=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:($e.has(t)||($e.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},ke=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(be).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(Ee(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),Se=async()=>{if(g){(pe.deriveFromManifest||pe.plugins.some(e=>_e.includes(e)))&&ke();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=pe.plugins,n=null;if(pe.deriveFromManifest){e=await ke();const n=function(e){if(!e||"object"!=typeof e)return E.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return E.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),i=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),o=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),r=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),a=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=V([...k,...n,...i,...o,...r,...a,...pe.extraPlugins||[]])}else{t=V([...k,...t.filter(e=>!k.includes(e))]);pe.plugins.some(e=>_e.includes(e))&&(n=ke()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=V([...t,"device"]))}const i=t.map(e=>G(e,pe.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));pe.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&i.push(de(pe.version).catch(()=>{})),await Promise.all(i),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),R(async()=>{if(pe.deriveFromManifest){try{const e=te(t);if(e.length>0){const n=V(e).filter(e=>!t.includes(e));await Promise.all(n.map(e=>G(e,pe.version).catch(t=>{ie.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}}catch(e){}ne=!0,ae(pe.version)}var e;Le(t,pe.tailwind),e=C(pe.alpine),R(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||H(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function Le(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),d=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},l=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&d()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,l()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,l()}),window.addEventListener("manifest:utilities-idle",l),window.addEventListener("manifest:markdown-idle",l),setTimeout(d,15e3),l()}(()=>{if(g||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(pe.deriveFromManifest||pe.plugins.some(e=>_e.includes(e)))&&ke();const e=j?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),pe.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...k,...pe.plugins])e.includes(n)||t("preload",P(n,pe.version),"script")}R(()=>{try{window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",C(pe.alpine)[0],"script")}catch(e){}})}catch(e){}})(),Se()}}();
1
+ !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const he=new Map;let ye=0;window.ManifestPending={hold(e="work"){const t=++ye;return he.set(t,e),()=>{he.delete(t)}},get count(){return he.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...he.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let d=!e.closest("[x-data],[x-init]"),l=!1,u=null;const f=()=>!!s.evaluate(e,c),m=()=>{u&&(u(),u=null)},p=()=>{t.delete(y),m()},w=()=>{d=!1,l=!1,m(),i._x_ignore=!0,t.add(y)},g=()=>{p(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},h=()=>{d||e._x_currentIfEl!==i||!i.isConnected||a(e)||(d=!0,l=!1,p(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!d&&!l)return e._x_currentIfEl!==i?p():void(i.isConnected?e._x_marker&&!a(e)&&f()&&h():i.getRootNode()instanceof DocumentFragment||p())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?g():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!l||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{l&&f()&&h()})}));u=()=>s.release(n)})())}),a(e)?w():(d&&(d=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(l||(l=!0,window.addEventListener("manifest:ready",()=>{if(l&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return h();g(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),d||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function d(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",d=document.createElement("div");d.innerHTML=c;const l=d.firstElementChild;if(l)try{n.parentNode.replaceChild(l,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),d=o.has(r),l=d?"":n.innerHTML,u=d?"<"+r+" "+c+">":"<"+r+" "+c+">"+l+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const m=f.firstElementChild;if(m)try{n.parentNode.replaceChild(m,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let ve=!1;document.addEventListener("readystatechange",()=>{ve||"loading"===document.readyState||(ve=!0,d())})}else d();if("undefined"!=typeof window&&"undefined"!=typeof document){let _e=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),_e&&clearTimeout(_e),_e=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),_e=null},200)},{passive:!0})}const l="latest",u="0.5.327",f="sha384-sv3psmy86c9Ic8pAWVegj9cA16a1bImwlfxLXzn30n7Myw60TiLQGX3DgPBzSiHp",m="manifest.modules.integrity.json",p="manifest.vendor.integrity.json";let w=null,g=null,h=!1,y=null,v=l,_=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function b(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=l,t=_[0]){return`${t}/mnfst@${e}/lib`}const E=["components","router","utilities","data","icons","localization","markdown","svg","code","color","toasts","tooltips","dropdowns","combobox","computed","tabs","slides","colorpicker","datepicker","charts","url-parameters","virtual","export","status"],L=["defer","bindings"],k=["edit"],S=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions"],M={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let j=null;let x=[];function P(e,t=v){const n=e.replace(/-/g,".");if(j){return[`${j.replace(/\/$/,"")}/manifest.${n}.js`]}return _.map(e=>`${$(t,e)}/${b(e,`manifest.${n}.min.js`)}`)}function C(e,t=v){return P(e,t)[0]}function I(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return _.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function N(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function R(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function T(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(R(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{R(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function q(e){return e.split(/[?#]/)[0].split("/").pop()}function O(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function W(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function z(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function U(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let D=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function F(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&B.test(n)?n:null}async function H(e,t){const n=F(e,t);if(n)return n;const i=F(e,p);return i&&/\/(languages|langs)\//.test(t)?(D||(D=U(_.map(e=>`${$(u,e)}/${p}`),i,p).then(e=>e.json()).catch(e=>{throw D=null,e})),F(await D,t)):null}async function V(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=g&&!o?await g:null,c=t||q(e[0]||"");let d=null;for(const o of e){let c=n;if(s){const e=t||(i?O(o):q(o));c=e&&await H(s,e)||(i?y:null),c||(i?z(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):z(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await T(o,c,r,a)}catch(t){d=t,c?console.error(`[Manifest Loader] ${q(o)} ${W(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),d||new Error(`Failed to load ${c}`)}const X=new Map;async function Z(e,t=v){const n=X.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;h&&t!==u&&(z(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return V(P(e,t),{unchecked:n,priority:i})}(e,t);return X.set(e,{version:t,promise:i}),i.catch(()=>X.delete(e)),i}function G(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=M[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const J=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text"},{plugin:"submissions",attr:"x-submit"},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"}))].map(e=>({...e,re:e.magic?new RegExp("\\"+e.magic+"\\b"):null}));let Q=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||Q)return;Q=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let K=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||K)return;K=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const Y=/^x-(code|code-group)$/,ee=new RegExp("\\$("+J.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),te=new Set;function ne(e,t=("undefined"==typeof document?null:document)){const n=J.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)).size+(i?1:0),a=()=>o.size===r;for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(a())return[...o]}const s=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!Y.test(t)&&o.add("components")}for(const t of e.attributes||[]){for(const e of n)e.attr&&!o.has(e.plugin)&&(t.name===e.attr||t.name.startsWith(e.attr+"-")||t.name.startsWith(e.attr+"."))&&o.add(e.plugin);const e=t.value;if(e&&-1!==e.indexOf("$")&&!te.has(e))if(ee.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else te.size>2e4&&te.clear(),te.add(e)}},c=e=>{for(const t of e.querySelectorAll("*")){if(s(t),a())return;if("TEMPLATE"===t.tagName&&t.content&&(c(t.content),a()))return}};return 1===t.nodeType&&(s(t),"TEMPLATE"===t.tagName&&t.content&&c(t.content)),a()||c(t),[...o]}let ie=!1;const oe=new Set,re=e=>X.has(e)||oe.has(e);function ae(e,t=v){if(!ie||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=ne([...new Set(J.map(e=>e.plugin))].filter(re).concat("components",x),n);if(!i.length)return Promise.resolve([]);const o=G(i).filter(e=>!re(e));return Promise.all(o.map(e=>Z(e,t).catch(t=>{oe.has(e)||(oe.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>o)}function se(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>ae(t,e)),J.every(e=>re(e.plugin)||x.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0})}const ce={"text-edit":"rich-text"};function de(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!ce[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${ce[t]}`),!1)})}async function le(e=v){const t=_.map(t=>`${$(e,t)}/${b(t,"manifest.tailwind.min.js")}`);let n=null;try{return await V(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...E,...A,...S,...k,"payments","chat","device","native","import","tailwind"].includes(e))return ce[e]?de([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=G([e]);return Promise.all(n.map(e=>Z(e,t)))},loadTailwind:le,loadVendor:function(e,t){return V(_.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=g?await g:null;let i=t||null;return n&&(i=await H(n,e),i||z(`${e} has no integrity hash in this release.`,"Not loaded.")),U(_.map(t=>`${t}/${e}`),i,e)},get integrity(){return h},getPluginUrl:C,getModuleUrl:C,loadUsed:ae},window.Manifest.loadModule=window.Manifest.loadPlugin;const ue="/sw.js";const fe={registered:!1,version:null,kill:()=>me(null)};async function me(e){fe.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(ue);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function pe(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=function(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,d=await navigator.serviceWorker.getRegistration(ue).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",d?"(unregistering)":""),void await me(d);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let l=null;try{l=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==l||u){const e=await fetch(ue,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${ue} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${ue}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await me(d);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const m=s&&"string"==typeof s.deployment?s.deployment:"",p=`${ue}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(m)}`,g=await navigator.serviceWorker.register(p,{scope:"/"});fe.registered=!0,fe.version=e.version,i("registered",p,g.active?"active":g.installing?"installing":"waiting")}window.Manifest.swStub=function(e=l){const t=`mnfst@${String(e||l).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=fe;const we=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o=e.getAttribute("data-version")||l,r=!!e.getAttribute("data-version"),a=e.getAttribute("data-alpine"),s=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),c=/^(off|false)$/.test(s)?null:"warn"===s?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,d=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),u=e.getAttribute("data-cdn"),f=e.getAttribute("data-sw");let m=[],p=[],w=!t;if(t){const e=de(t.split(",").map(e=>e.trim()).filter(e=>e));p=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?m=[...n,...p]:(w=!0,m=E.slice())}else m=E.slice();const g={native:"device","text-edit":"rich-text"},h=n?n.split(",").map(e=>e.trim().toLowerCase()).map(e=>g[e]||e).filter(e=>e&&!L.includes(e)):[];return h.length>0&&m.length>0&&(m=m.filter(e=>!h.includes(e))),m=G(m),{plugins:m,extraPlugins:p,omitted:h,deriveFromManifest:w,tailwind:i,version:o,versionSet:r,alpine:a,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:c,pluginBase:d,cdn:u,sw:f}}();var ge;if(we&&we.version&&(v=we.version),we&&we.pluginBase&&(ge=we.pluginBase,j=ge||null),we&&we.omitted&&(x=we.omitted),we&&we.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(we.cdn),we&&we.integrity&&(w=we.integrity,!we.versionSet&&f&&(v=we.version=u),h=we.version===u,y=we.alpineIntegrity&&B.test(we.alpineIntegrity.trim())?we.alpineIntegrity.trim():null,g=async function(e){if(e.version!==u)return z(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=j?[`${j.replace(/\/$/,"")}/${m}`]:_.map(e=>`${$(u,e)}/${m}`);try{return await(await U(t,f,m)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(we),g.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{pe(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(we),we&&we.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const be=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],$e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",Ee=new Set,Le=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:(Ee.has(t)||(Ee.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},ke=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch($e).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(Le(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),Se=async()=>{if(g){(we.deriveFromManifest||we.plugins.some(e=>be.includes(e)))&&ke();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=we.plugins,n=null;if(we.deriveFromManifest){e=await ke();const n=function(e){if(!e||"object"!=typeof e)return E.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return E.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),o=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),r=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),a=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),s=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=G([...L,...(i=[...n,...o,...r,...a,...s,...we.extraPlugins||[]],x.length?i.filter(e=>!x.includes(e)):i)])}else{t=G([...L,...t.filter(e=>!L.includes(e))]);we.plugins.some(e=>be.includes(e))&&(n=ke()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=G([...t,"device"]))}var i;const o=t.map(e=>Z(e,we.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));we.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&o.push(le(we.version).catch(()=>{})),await Promise.all(o),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),N(async()=>{if(we.deriveFromManifest){try{const e=x.length?ne(t).filter(e=>x.includes(e)):[];e.length&&console.warn(`[Manifest Loader] data-omit lists ${e.join(", ")}, but this page uses ${e.length>1?"them":"it"}. Not loaded: remove ${e.length>1?"them":"it"} from data-omit to load.`);const n=ne([...t,...x]);if(n.length>0){const e=G(n).filter(e=>!t.includes(e));await Promise.all(e.map(e=>Z(e,we.version).catch(t=>{oe.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}}catch(e){}ie=!0,se(we.version)}var e;Ae(t,we.tailwind),e=I(we.alpine),N(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||V(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function Ae(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),d=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},l=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&d()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,l()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,l()}),window.addEventListener("manifest:utilities-idle",l),window.addEventListener("manifest:markdown-idle",l),setTimeout(d,15e3),l()}(()=>{if(g||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(we.deriveFromManifest||we.plugins.some(e=>be.includes(e)))&&ke();const e=j?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),we.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...L,...we.plugins])e.includes(n)||t("preload",C(n,we.version),"script")}N(()=>{try{window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(we.alpine)[0],"script")}catch(e){}})}catch(e){}})(),Se()}}();
2
2
  //# sourceMappingURL=manifest.min.js.map