@webjsdev/core 0.7.60 → 0.7.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var Nl=Object.defineProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ss=(e,t)=>{for(var r in t)Nl(e,r,{get:t[r],enumerable:!0})};function is(e,...t){return{_$webjs:"template",strings:e,values:t}}function W(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var M,Pt=v(()=>{M="wjm-"});function Cr(e){return Object.prototype.hasOwnProperty.call(qt,e)}var qt,Vn=v(()=>{qt=Object.freeze({"@":"event",".":"prop","?":"bool"})});function Wn(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function H(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}var Qe=v(()=>{});function Rl(e){cs=e}function zn(e){if(typeof e!="function")return null;let t=e[oa];return typeof t=="string"&&t?t:null}async function Lr(e){let t=zn(e);if(t)return t;if(typeof e!="function"||!cs)return null;try{let r=await cs(e);return typeof r=="string"&&r?r:null}catch{return null}}function et(e,t,r){if(typeof e!="function")return!1;let n=String(t).toLowerCase(),o=String(r||"").toLowerCase();return n==="action"?o==="form":n==="formaction"?o==="button"||o==="input":!1}function Dt(e,t,r=!0){if(!e||e===F&&r)return;let n=e===F?'a second "name" attribute':`name="${e}"`;throw new Error(`[webjs] formaction=\${action} on <${t||"button"}> cannot be used when the element already carries a "name" attribute (found ${n}). The action identity is submitted as the button's own name/value pair, so there is no room for a second one. Move the action to the enclosing <form action=\${action}> or drop the submitter's "name".`)}function ls(e,t){let r=String(e||"").toLowerCase(),n=t==null?null:String(t).toLowerCase();if(Ll(r,n)){if(r==="input"&&n==="image")throw new Error('[webjs] formaction=${action} is not supported on <input type="image"> because image submitters submit coordinate pairs (name.x/name.y) instead of name=value, so the action identity would never arrive. Use a <button> instead.');if(r==="input")throw new Error('[webjs] formaction=${action} is not supported on <input type="submit"> because the action identity has to occupy the submitter\'s "value", which on this control is also its visible label, so the button would render captioned with the action\'s id and could not be given a real one. Use <button formaction=${action}>Publish</button>, whose label is its children.');return}throw new Error(`[webjs] formaction=\${action} on <${r}>${n?` type="${n}"`:""} requires a submitter control, and formaction is inert on anything else. Use <button formaction=\${action}>.`)}function Ll(e,t){let r=t==null?null:String(t).toLowerCase();return e==="button"?r==null||r===""||r==="submit":e==="input"?r==="submit"||r==="image":!1}function Mt(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used when the element already carries a "value" attribute. The action identity is submitted as the button's own name/value pair, so both halves are taken. Drop the "value", or dispatch on it from one form-level action instead.`)}function us(e){throw new Error(`[webjs] a bound formaction=\${action} on <${e||"button"}> cannot also carry a plain formaction attribute: the two name different targets and the renderers resolve them differently. Drop the static attribute.`)}function Ft(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used with a "form" attribute, which re-points the submitter at a form other than the bound one it sits in. Keep the submitter inside its bound <form>.`)}function $t(e,t){if(e)throw new Error(`[webjs] two formaction=\${action} holes were found on one <${t||"button"}>. Only one can win, and the two renderers pick differently, so bind exactly one action per submitter.`)}function fs(e,t){let n=(e||[]).filter(o=>Bt(o))[0];if(n)throw new Error(`[webjs] a <${t||"button"}> submitter binds .${n}=. That property is a reflected IDL attribute on a submitter, so a property binding is dropped at SSR and written to the attribute in the browser: the page would render on the server and throw on hydration. Write it as a plain attribute.`)}function Bt(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function Ol(e,t,r){let n=t==null?null:String(t),o=r==null?null:String(r);if(n!=null&&/^dialog$/i.test(n))throw new Error(`[webjs] formaction=\${action} on <${e}> cannot be combined with formmethod="dialog", which dismisses a <dialog> instead of submitting, so the bound action would never run. Drop one of the two.`);if(n!=null&&!/^post$/i.test(n))throw new Error(`[webjs] <${e} formmethod="${n}" formaction=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${n}" submission sends none, so the action would never run. Drop the formmethod attribute (WebJs emits formmethod="post" on a bound submitter), or drop the binding.`);if(o!=null&&!sa.has(o.toLowerCase()))throw new Error(`[webjs] <${e} formenctype="${o}" formaction=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${o}" body is neither, so the bound action could never read it. Drop the formenctype attribute (WebJs emits multipart/form-data on a bound submitter).`)}function ie(e,t,r){if(Kn(e)&&Fl(t))throw new Error($l(t,r))}function Or(e,t,r){Ml(t,r)&&ie(e,t,r)}function Ie(e,t){if(e)return e;let r=t==="button"||t==="input"?"formaction=":"action=";throw new Error(`[webjs] the function in ${r} on <${t||"form"}> is not a server action. Only a function imported from a 'use server' *.server.{js,ts} module can be bound to a form or a submitter, because the identity the browser submits has to resolve back to something the server can run. Move the handler into a server action and import it, or pass a url string.`)}function jl(e,t){if(e!=null&&!/^post$/i.test(e))throw new Error(`[webjs] <form method="${e}" action=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${e}" form sends no body. Drop the method attribute (WebJs emits method="post") or remove the bound action.`);if(t!=null&&!sa.has(t.toLowerCase()))throw new Error(`[webjs] <form enctype="${t}" action=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${t}" body is neither, so the submission would run under JS and do nothing without it. Drop the enctype attribute (WebJs emits multipart/form-data).`)}function ds(e,t){let r=Ht(e);jr({staticAction:r.has("action")});let n=ia(r.has("method")?r.get("method"):K,r.has("enctype")?r.get("enctype"):K),o=e.endsWith("/>")?"/>":">",s=e.slice(0,e.length-o.length),i="";return n.method!==null&&(i+=` method="${n.method}"`),n.enctype!==null&&(i+=` enctype="${n.enctype}"`),{tag:s+i+o,hidden:Pl(t)}}function jr(e){if(e.duplicateAction)throw new Error("[webjs] two action=${...} holes were found on one <form>. A form can carry only one action binding. Move one to a submit button's formaction=${action} or remove the duplicate.");if(e.staticAction)throw new Error('[webjs] a bound <form action=${action}> also carries a plain action="..." attribute. A bound form posts to the page\'s own url, so the two say different things: without JS the browser would post to the written url and with JS it would not. Drop the action attribute, or drop the binding.');let t=e.propAttrs&&e.propAttrs[0];if(t)throw new Error(`[webjs] a bound <form action=\${action}> also binds .${t}=. A property binding on a native element is dropped at SSR and applied in the browser, so the form would submit one way with JS and another way without it. Write it as a plain attribute.`)}function ia(e,t){let r=e!==K&&e!=null,n=t!==K&&t!=null;return jl(r?e:null,n?t:null),{method:r?null:"post",enctype:n?null:"multipart/form-data"}}function ps(e,t,r){let n=t!==K&&t!=null,o=r!==K&&r!=null;return Ol(e,n?t:null,o?r:null),{formMethod:n?null:"post",formEnctype:o?null:"multipart/form-data"}}function ms(e,t,r){ql(e,t,r);let n=Ht(e),o=ps(t,n.has("formmethod")?n.get("formmethod"):K,n.has("formenctype")?n.get("formenctype"):K),s=e.endsWith("/>")?"/>":">",i=e.slice(0,e.length-s.length),a="";return o.formMethod!==null&&(a+=` formmethod="${o.formMethod}"`),o.formEnctype!==null&&(a+=` formenctype="${o.formEnctype}"`),i+a+s}function Pl(e){return`<input type="hidden" name="${F}" value="${H(e)}">`}function aa(e,t,r,n,o){let s=typeof t=="function"?zn(t):null;if(!s){typeof t=="function"&&Ie(null,e.localName),Dl(e,r,n,o.propAttrs);return}jr(o);let i=ia(r,n);e.removeAttribute("action"),Rr(e,"method",r,i.method),Rr(e,"enctype",n,i.enctype),Il(e,s)}function Rr(e,t,r,n){if(n!==null){e.setAttribute(t,n);return}r!==K&&e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Il(e,t){let r=e.firstElementChild,n=r&&r.localName==="input"&&r.getAttribute("name")===F?r:null;if(!n){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===F){n=o;break}}n||(n=e.ownerDocument.createElement("input"),n.setAttribute("type","hidden"),n.setAttribute("name",F),e.insertBefore(n,e.firstChild)),n.getAttribute("value")!==t&&n.setAttribute("value",t)}function ql(e,t,r){let n=Ht(e),o=n.has("type")?n.get("type"):null;fs(r.propAttrs,t),$t(!!r.duplicateAction,t),n.has("formaction")&&us(t),na(e,"value")>1&&Mt(t),na(e,"name")>1&&Dt(n.get("name")||F,t,!1),ls(t,o),n.has("form")&&Ft(t)}function Dl(e,t,r,n){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===F)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===F){i.remove();break}let s=i=>(n||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===K&&!s("method")&&e.removeAttribute("method"),r===K&&!s("enctype")&&e.removeAttribute("enctype")}function ca(e,t,r,n){let o=s=>(n||[]).some(i=>String(i).toLowerCase()===s);t===K&&!o("formmethod")&&e.removeAttribute("formmethod"),r===K&&!o("formenctype")&&e.removeAttribute("formenctype")}function Ht(e){return new Map(la(e))}function la(e){let t=[],r=1;for(;r<e.length&&!/[\s/>]/.test(e[r]);)r++;for(;r<e.length;){for(;r<e.length&&/[\s/]/.test(e[r]);)r++;if(r>=e.length||e[r]===">")break;let n="";for(;r<e.length&&!/[\s/>=]/.test(e[r]);)n+=e[r++];for(;r<e.length&&/\s/.test(e[r]);)r++;if(e[r]!=="="){n&&t.push([n.toLowerCase(),""]);continue}for(r++;r<e.length&&/\s/.test(e[r]);)r++;let o="",s=e[r];if(s==='"'||s==="'"){for(r++;r<e.length&&e[r]!==s;)o+=e[r++];r++}else for(;r<e.length&&!/[\s>]/.test(e[r]);)o+=e[r++];n&&t.push([n.toLowerCase(),o])}return t}function na(e,t){let r=String(t).toLowerCase();return la(e).filter(([n])=>n===r).length}function Ml(e,t){let r=String(e).toLowerCase();Cr(r[0])&&(r=r.slice(1));let n=String(t||"").toLowerCase();return r==="action"?n==="form":r==="formaction"?n==="button"||n==="input":!1}function Kn(e,t){if(typeof e=="function")return!0;if(!Array.isArray(e))return!1;let r=t||new Set;return r.has(e)?!1:(r.add(e),e.some(n=>Kn(n,r)))}function Fl(e){let t=String(e).toLowerCase();return Cr(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function $l(e,t){return`[webjs] a function was interpolated into ${String(e).toLowerCase()}= on <${t||"form"}>. Stringifying a function into HTML would leak its source (a 'use server' action's body included) to every visitor, so this is refused. To run a server action from a form, write an unquoted action=\${action} on the <form> itself or a formaction=\${action} on a <button> inside a bound form. Anywhere else, pass a URL string.`}var F,oa,cs,sa,K,ke=v(()=>{Vn();Qe();F="__webjs_action",oa="$$webjsAction",cs=null;sa=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);K=Symbol("webjs.attr.absent")});function fa(e,t,r){return{[ua]:!0,items:[...e],keyFn:t,templateFn:r}}function tt(e){return!!e&&typeof e=="object"&&e[ua]===!0}var ua,Pr=v(()=>{ua=Symbol.for("webjs.repeat")});function hs(e){return{_$webjs:"unsafe-html",value:String(e??"")}}function Ut(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function Bl(e){return{_$webjs:"live",value:e}}function Y(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function Hl(e,t){return{_$webjs:"keyed",key:e,value:t}}function rt(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function Ul(e,t){return{_$webjs:"guard",deps:e,fn:t}}function nt(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function Vl(e){return{_$webjs:"template-content",template:e}}function Vt(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function Wl(e){return{_$webjs:"ref",target:e}}function ot(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function zl(){return{value:void 0}}function Kl(e){return{_$webjs:"cache",value:e}}function st(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function Gl(...e){return{_$webjs:"until",args:e}}function it(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function Yl(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function Wt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function Jl(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function zt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function Zl(e){return{_$webjs:"watch",signal:e}}function at(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}var Kt=v(()=>{Pr()});var L,O,z,J,gs,qe,ct,bs,da,U,ys,be,j,De=v(()=>{L=Symbol("webjs.slot.state"),O="data-webjs-light",z="data-projection",J="actual",gs="fallback",qe=Symbol("webjs.slot.fallbackFrag"),ct=Symbol("webjs.slot.templateOwner"),bs="data-wj-slot-owner",da=64,U=Symbol("webjs.slot.rendering"),ys=Symbol("webjs.slot.intercepted"),be=Symbol("webjs.slot.park"),j=new WeakSet});function Z(e){let t=e,r=t[L];return r||(r={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[L]=r),r}function Ir(e){return!!e[L]}function ws(e){let t=Z(e);for(;e.firstChild;){let r=e.firstChild;t.authored.push(r),j.add(r),e.removeChild(r)}ye(t)}function ye(e){let t=e.assignedByName;t.clear();for(let r of e.authored)Xl(t,Me(e,r),r)}function Me(e,t){let r=Dr(e,t);if(r)return Q(r.getAttribute("name"));if(e.adoptedKey){let n=e.adoptedKey.get(t);if(n!==void 0)return n}return pa(t)}function Ss(e){let t=Z(e);t.adopted=!0;let r=new Set,n=e.querySelectorAll(`slot[${O}]`);for(let o of n){let s=o;if(!X(e,s)||s.getAttribute(z)!==J||Gt(t,e,s))continue;let i=Q(s.getAttribute("name"));if(!r.has(i)){r.add(i);let a=Array.from(s.childNodes);for(let c of a)t.authored.push(c),pa(c)!==i&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(c,i));t.lastSnapshot.set(s,a.slice())}}for(let o of e.querySelectorAll("wj-slot-park"))if(X(e,o)){for(let s of Array.from(o.childNodes))j.add(s),t.authored.push(s);o.remove()}ye(t)}function Q(e){return e==null||e===""||e==="default"?null:e}function pa(e){return e.nodeType!==1?null:Q(e.getAttribute("slot"))}function Xl(e,t,r){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(r)}var lt=v(()=>{ft();qr();ut();De()});function ma(){we||!ae||(we=Node.prototype.appendChild,_s=Node.prototype.insertBefore,Fe=Node.prototype.removeChild,Gn=Node.prototype.replaceChild,As=Element.prototype.append,xs=Element.prototype.prepend,vs=Element.prototype.replaceChildren,Mr=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),Yn=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function dt(e,t){let r=e[U];e[U]=!0;try{return t()}finally{e[U]=r,r||Jn(e)}}function Es(e){if(!ae)return;let t=e,r=Z(e);r.backstop||(r.backstop=new MutationObserver(n=>Fr(e,r,n)),r.backstop.observe(e,{childList:!0,subtree:!1}),r.flipSensor=new MutationObserver(n=>ha(e,n)),r.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function Fr(e,t,r){let n=e,o=n[be],s=n[Symbol.for("webjs.instance")],i=!1,a=new Set;for(let c of r){for(let l of c.addedNodes)if(a.add(l),l!==o&&!(s&&Ns(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}j.add(l),t.authored.push(l),i=!0}for(let l of c.removedNodes){let u=t.authored.indexOf(l);if(u===-1||e.contains(l))continue;j.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&ne(e)}function Jn(e){let t=e,r=t[L];if(!(r&&r.backstop))return;let n=r.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&Fr(e,r,n)}function ha(e,t){let r=e[L];if(!r)return;let n=!1;for(let o of t){if(o.type!=="attributes")continue;let s=o.target;o.attributeName==="name"?s.tagName==="SLOT"&&s.hasAttribute(O)&&X(e,s)&&(n=!0):o.attributeName==="slot"&&(r.adoptedKey&&r.adoptedKey.delete(s),r.authored.indexOf(s)!==-1&&(n=!0))}n&&ne(e)}function Ts(e){let t=e[L];t&&(t.backstop&&(Fr(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(ha(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function ks(e){if(!ae)return;let t=e,r=t[L];if(!r)return;let n=t[Symbol.for("webjs.instance")],o=Symbol.for("webjs.instance")in t,s=!o&&r.adopted===!0,i=!1;for(let a of Array.from(e.childNodes))if(a!==t[be]){if(r.authored.indexOf(a)!==-1){i=!0;continue}o&&(!n||Ns(n,a))||!o&&s||(j.add(a),r.authored.push(a),i=!0)}i&&ne(e)}var we,_s,Fe,Gn,As,xs,vs,Mr,Yn,Zn=v(()=>{ft();qr();ut();$r();lt();De();we=null,_s=null,Fe=null,Gn=null,As=null,xs=null,vs=null,Mr=null,Yn=null});function Ns(e,t){if(!e||!e.startNode||!e.endNode)return!1;if(t===e.startNode||t===e.endNode)return!0;for(let r=e.startNode.nextSibling;r&&r!==e.endNode;r=r.nextSibling)if(r===t)return!0;return!1}function ga(e){let t=e,r=t[be];return(!r||!r.isConnected)&&(r||(r=e.ownerDocument.createElement("wj-slot-park"),r.setAttribute("hidden",""),r.style.display="none",t[be]=r),dt(e,()=>we.call(e,r))),r}function pt(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function Cs(e,t,r){if(r&&!pt(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!pt(t))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");if(t&&t.nodeType===11){let n=Array.from(t.childNodes);Xn(e,n);for(let o of n)Fe.call(t,o);return n}return Xn(e,[t]),[t]}function Xn(e,t){Yt(e,t);for(let r of t){if(!pt(r))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");let n=r.nodeType;if(n!==1&&n!==3&&n!==4&&n!==7&&n!==8&&n!==11)throw new DOMException("Failed to execute insertion on the host: the node type may not be inserted here.","HierarchyRequestError")}}function Yt(e,t){for(let r of t)if(r===e||r.nodeType===1&&r.contains(e))throw new DOMException("Failed to execute insertion on the host: the new child contains the parent.","HierarchyRequestError")}function Rs(e,t,r){let n=e.authored;for(let s of t){let i=n.indexOf(s);i!==-1&&n.splice(i,1)}let o=r==null?n.length:n.indexOf(r);o===-1&&(o=n.length),n.splice(o,0,...t)}function js(e,t){let r=e[L];return r?Gt(r,e,t):!1}function Gt(e,t,r){for(let n=r;n&&n!==t;n=n.parentNode)if(e.authored.indexOf(n)!==-1)return!0;return!1}function Ls(e,t){if(j.has(t))return!0;let r=t.parentNode;if(r==null)return!1;if(r===e||r===e[be])return!0;let n=e[L];return r.nodeType===1&&r.tagName==="SLOT"&&r.hasAttribute(O)&&(n&&n.lastSnapshot.has(r)||e.contains(r)&&X(e,r))}function Os(e,t){let r=[];for(let s of t)pt(s)?s.nodeType===11?r.push({frag:s}):r.push({node:s}):r.push({text:`${s}`});for(let s of r)s.frag?Yt(e,Array.from(s.frag.childNodes)):s.node&&Xn(e,[s.node]);let n=e.ownerDocument.createDocumentFragment();for(let s of r)if(s.text!==void 0)we.call(n,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);Xn(e,i);for(let a of i)we.call(n,a)}else s.node&&(Yt(e,[s.node]),we.call(n,s.node));let o=Array.from(n.childNodes);Yt(e,o);for(let s of o)Fe.call(n,s);return o}function Ne(e,t,r){if(t.applying&&t.pendingRecordNodes)for(let n of r||[])t.pendingRecordNodes.add(n);else t.pendingRecordNodes=new Set(r||[]);if(t.adoptedKey&&r)for(let n of r)t.adoptedKey.delete(n);ye(t),ne(e)}function Ps(e){if(!ae)return;let t=e;if(t[ys])return;ma(),t[ys]=!0;let r=Z(e);t.appendChild=function(n){if(t[U])return we.call(this,n);let o=Cs(e,n,!1);for(let s of o)j.add(s);return Rs(r,o,null),Ne(e,r,o),n},t.insertBefore=function(n,o){if(t[U])return _s.call(this,n,o);if(!pt(n))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!pt(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(Yt(e,n.nodeType===11?Array.from(n.childNodes):[n]),o!=null&&(r.authored.indexOf(o)===-1||!Ls(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(n===o)return n;let s=Cs(e,n,!1);for(let i of s)j.add(i);return Rs(r,s,o||null),Ne(e,r,s),n},t.removeChild=function(n){if(t[U])return Fe.call(this,n);let o=r.authored.indexOf(n);if(o===-1)return Fe.call(this,n);if(!Ls(e,n))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return r.authored.splice(o,1),Ne(e,r,[n]),n},t.replaceChild=function(n,o){if(t[U])return Gn.call(this,n,o);if(r.authored.indexOf(o)===-1)return Gn.call(this,n,o);if(!pt(n))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(Yt(e,n.nodeType===11?Array.from(n.childNodes):[n]),!Ls(e,o))throw new DOMException("replaceChild: the node to be replaced is not an assigned child of this host","NotFoundError");if(n===o)return o;let i=Cs(e,n,!1);for(let c of i)j.add(c);for(let c of i){if(c===o)continue;let l=r.authored.indexOf(c);l!==-1&&r.authored.splice(l,1)}let a=r.authored.indexOf(o);return r.authored.splice(a,1,...i),Ne(e,r,[...i,o]),o},t.append=function(...n){if(t[U])return As.apply(this,n);let o=Os(e,n);for(let s of o)j.add(s);Rs(r,o,null),Ne(e,r,o)},t.prepend=function(...n){if(t[U])return xs.apply(this,n);let o=Os(e,n);for(let s of o)j.add(s);for(let s of o){let i=r.authored.indexOf(s);i!==-1&&r.authored.splice(i,1)}r.authored.unshift(...o),Ne(e,r,o)},t.replaceChildren=function(...n){if(t[U])return vs.apply(this,n);let o=Os(e,n);for(let i of o)j.add(i);let s=r.authored;r.authored=o.slice(),Ne(e,r,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return Mr.get.call(this)},set(n){if(t[U]){Mr.set.call(this,n);return}let o=e.ownerDocument.createElement("div");Mr.set.call(o,n===null?"":`${n}`);let s=Array.from(o.childNodes);for(let a of s)j.add(a);let i=r.authored;r.authored=s,Ne(e,r,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return Yn.get.call(this)},set(n){if(t[U]){Yn.set.call(this,n);return}let o=n==null||n===""?[]:[e.ownerDocument.createTextNode(`${n}`)];for(let i of o)j.add(i);let s=r.authored;r.authored=o,Ne(e,r,[...s,...o])}})}var ba,qr=v(()=>{ft();ut();$r();Zn();lt();De();ba=new Set});function $e(e,t,r){let n=Z(e),o=Q(t),s=Array.isArray(r)?r.filter(Boolean):r?[r]:[],i=n.authored.findIndex(c=>Me(n,c)===o),a=n.authored.filter(c=>Me(n,c)===o);n.authored=n.authored.filter(c=>Me(n,c)!==o),(i===-1||i>n.authored.length)&&(i=n.authored.length);for(let c of s)c.nodeType===1&&!Dr(n,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),j.add(c);if(n.authored.splice(i,0,...s),n.applying&&n.pendingRecordNodes){for(let c of a)n.pendingRecordNodes.add(c);for(let c of s)n.pendingRecordNodes.add(c)}else n.pendingRecordNodes=new Set([...a,...s]);if(n.adoptedKey){for(let c of a)n.adoptedKey.delete(c);for(let c of s)n.adoptedKey.delete(c)}ye(n),ne(e)}function ne(e){if(!ae)return;let t=e[L];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let r=t.pendingRecordNodes||ba;t.pendingRecordNodes=void 0,Ql(e,t,r),eu(e,t),ye(t);let n=[],o=new Set;for(let u of e.querySelectorAll(`slot[${O}]`))if(X(e,u)&&!Gt(t,e,u)){if(!u.hasAttribute(z)&&!(qe in u)){o.add(Q(u.getAttribute("name")));continue}n.push(u)}let s=new Map;for(let u of n){let f=Q(u.getAttribute("name")),p=s.get(f);p||(p=[],s.set(f,p)),p.push(u)}let i=[];for(let[u,f]of s){let p=t.assignedByName.get(u)||[];for(let d=0;d<f.length;d++){let m=f[d],g=p.filter(_=>{let b=Dr(t,_);return b?b===m:d===0}),w=g.filter(_=>_===e||_.nodeType===1&&_.contains(e));if(w.length){for(let _ of w)j.delete(_);g=g.filter(_=>w.indexOf(_)===-1)}g.length>0?Is(t,m,g)&&i.push(m):qs(t,m)&&i.push(m)}}for(let u of i)Ds(t,u);let a=new Set(s.keys());for(let u of o)a.add(u);let c=new Set;for(let u of t.authored)a.has(Me(t,u))||c.add(u);let l=e[be];if(l)for(let u of Array.from(l.childNodes))c.has(u)||Fe.call(l,u);if(c.size){let u=ga(e);for(let f of c)f.parentNode!==u&&(j.delete(f),dt(e,()=>we.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&Fr(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function Ql(e,t,r){for(let n of e.querySelectorAll(`slot[${O}][${z}="${J}"]`)){if(!X(e,n)||Gt(t,e,n))continue;let o=n,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(Qn(i,s))continue;let a=t.authored,c=Q(o.getAttribute("name")),l=i.filter(m=>!r.has(m));for(let m of l)a.indexOf(m)===-1&&Me(t,m)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(m,c));for(let m of a){if(l.indexOf(m)!==-1||Me(t,m)!==c)continue;let g=a.indexOf(m),w=0;for(let _=0;_<l.length;_++){let b=a.indexOf(l[_]);b!==-1&&b<g&&(w=_+1)}l.splice(w,0,m)}let u=new Set(l);for(let m of s)u.add(m);let f=-1,p=0;for(let m of a){if(u.has(m)){f===-1&&(f=p);continue}p+=1}let d=a.filter(m=>!u.has(m));(f===-1||f>d.length)&&(f=d.length),d.splice(f,0,...l),t.authored=d}}function eu(e,t){let r=e[be];t.authored=t.authored.filter(n=>{if(j.has(n))return!0;let o=n.parentNode;return o==null?!1:!!(o===e||o===r||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(O)&&(t.lastSnapshot.has(o)||e.contains(o)&&X(e,o)))})}var $r=v(()=>{ft();qr();ut();Zn();lt();De()});function Sa(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function _a(){if(ya||(ae=Sa(),!ae))return;Br=HTMLSlotElement.prototype.assignedNodes,Ms=HTMLSlotElement.prototype.assignedElements,eo=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(r){return this.hasAttribute(O)&&!$s(this)?Bs(this,r):Br?Br.call(this,r):[]},HTMLSlotElement.prototype.assignedElements=function(r){return this.hasAttribute(O)&&!$s(this)?Bs(this,r).filter(n=>n.nodeType===1):Ms?Ms.call(this,r):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=eo&&eo.get?eo.get.call(this):null;return r||wa(this)}});let e=Object.getOwnPropertyDescriptor(Text.prototype,"assignedSlot");Object.defineProperty(Text.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=e&&e.get?e.get.call(this):null;return r||wa(this)}}),Fs=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...r){if(this.hasAttribute(O)&&!$s(this)){let n=tu(this);if(n){let o=Z(n);o.manualAssign||(o.manualAssign=new Map);let s=r.filter(Boolean);for(let[i,a]of o.manualAssign){if(i===this)continue;let c=a.filter(l=>{let u=l.deref();return u!==void 0&&s.indexOf(u)===-1});c.length!==a.length&&(c.length?o.manualAssign.set(i,c):o.manualAssign.delete(i))}if(s.length?o.manualAssign.set(this,s.map(i=>new WeakRef(i))):o.manualAssign.delete(this),o.applying&&o.pendingRecordNodes)for(let i of s)o.pendingRecordNodes.add(i);else o.pendingRecordNodes=new Set(s);ye(o),ne(n)}return}return Fs?Fs.apply(this,r):void 0},ya=!0}function Dr(e,t){let r=e.manualAssign;if(!r||!r.size)return null;for(let[n,o]of r){let s=!1,i=o.filter(a=>{let c=a.deref();return c===void 0?!1:(c===t&&(s=!0),!0)});if(i.length!==o.length&&(i.length?r.set(n,i):r.delete(n)),s){let a=e.host;return a&&(n===a||a.contains(n))?n:null}}return null}function tu(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[L])return X(t,e)?t:null;return null}function $s(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function Bs(e,t){if(e.getAttribute(z)!==J)return[];let r=Array.from(e.childNodes);return!t||!t.flatten?r:Hs(r,new Set,0)}function Hs(e,t,r){if(r>=da)return e.slice();let n=[];for(let o of e)if(o.nodeType===1&&o.tagName==="SLOT"){let s=o;if(t.has(s))continue;if(t.add(s),s.hasAttribute(O)){let i=Bs(s,{flatten:!1});if(i.length>0)for(let a of Hs(i,t,r+1))n.push(a);else for(let a of Hs(Array.from(s.childNodes),t,r+1))n.push(a)}else if(Br){let i=Br.call(s,{flatten:!0});for(let a of i)n.push(a)}else n.push(o)}else n.push(o);return n}function wa(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(O)&&t.getAttribute(z)===J?t:null}var ae,Br,Ms,eo,Fs,ya,ut=v(()=>{ft();$r();lt();De();ae=Sa(),Br=null,Ms=null,eo=null,Fs=null,ya=!1;_a()});function Us(e){if(!ae)return!1;for(let t of e.querySelectorAll(`slot[${O}][${z}]`))if(X(e,t))return!0;return!1}function X(e,t){let r=t[ct];if(r)return r===e;let n=typeof t.getAttribute=="function"?t.getAttribute(bs):null;if(n){let o=ru(t,n);if(o)return o===e}for(let o=t.parentElement;o&&o!==e;o=o.parentElement)if(o.tagName.includes("-"))return!1;return!0}function ru(e,t){let r=t.toLowerCase();for(let n=e.parentElement;n;n=n.parentElement)if(n.tagName.toLowerCase()===r)return n;return null}function Is(e,t,r){for(let l of r)j.delete(l);let n=t.getAttribute(z)!==J,o=e.lastSnapshot.get(t)||[],s=n||!Qn(o,r);if(!n&&Qn(Array.from(t.childNodes),r))return e.lastSnapshot.set(t,r.slice()),s;let i=t[qe];if(n&&i)for(;t.firstChild;)i.appendChild(t.firstChild);let a=new Set(r);for(let l of Array.from(t.childNodes))a.has(l)||t.removeChild(l);let c=t.firstChild;for(let l of r){if(l===c){c=c.nextSibling;continue}t.insertBefore(l,c)}return t.setAttribute(z,J),e.lastSnapshot.set(t,r.slice()),s}function qs(e,t){let r=t.getAttribute(z)===J;if(t.setAttribute(z,gs),!r)return Aa(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return Aa(t),!0}function Aa(e){let t=e[qe];!t||t.childNodes.length===0||e.appendChild(t)}function Vs(e,t){if(!Ir(e))return;let r=Z(e),n=Q(t.getAttribute("name")),o=r.assignedByName.get(n);if(o)for(let s of o)s.parentNode===t&&(j.add(s),t.removeChild(s));r.lastSnapshot.delete(t)}function xa(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function Ds(e,t){e.pendingSlotChanges||(e.pendingSlotChanges=new Set),e.pendingSlotChanges.add(t),!e.slotChangeScheduled&&(e.slotChangeScheduled=!0,queueMicrotask(()=>{e.slotChangeScheduled=!1;let r=e.pendingSlotChanges||new Set;e.pendingSlotChanges=new Set;for(let n of r)xa(n)}))}function Qn(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var ft=v(()=>{ut();lt();De()});var mt=v(()=>{ft();qr();ut();$r();Zn();lt();De()});function za(e,t,r){Uu.has(t)?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}async function Jr(e){return JSON.stringify(await Ka(e))}function Ce(e){return Ga(JSON.parse(e))}async function Ka(e){let t=Vu();return await Wu(e,t),yt(e,t)}function Ga(e){return Ue(e,Yu())}function Vu(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function Wu(e,t){let r=[e];for(;r.length;){let n=r.pop();if(!Zu(n))continue;let o=t.refCount.get(n)||0;if(t.refCount.set(n,o+1),!(o>0)){if(typeof Blob<"u"&&n instanceof Blob){let s=new Uint8Array(await n.arrayBuffer());t.blobBytes.set(n,s);continue}if(typeof FormData<"u"&&n instanceof FormData){let s=t.fdEntries.get(n)||[...n.entries()];t.fdEntries.set(n,s);for(let[,i]of s)typeof i!="string"&&r.push(i);continue}if(Array.isArray(n))for(let s=0;s<n.length;s++)r.push(n[s]);else if(n instanceof Map)for(let[s,i]of n)r.push(s),r.push(i);else if(n instanceof Set)for(let s of n)r.push(s);else if(Xu(n))for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.push(n[s])}}for(let[n,o]of t.refCount)o>1&&t.idOf.set(n,t.nextId++)}function yt(e,t){if(e===null)return null;if(e===void 0)return{[$]:"undef"};let r=typeof e;if(r==="string"||r==="boolean")return e;if(r==="number")return Number.isNaN(e)?{[$]:"NaN"}:e===1/0?{[$]:"Inf"}:e===-1/0?{[$]:"-Inf"}:Object.is(e,-0)?{[$]:"-0"}:e;if(r==="bigint")return{[$]:"BigInt",v:e.toString()};if(r==="symbol"){let s=Symbol.keyFor(e);if(s===void 0)throw new TypeError("Cannot serialize a local Symbol; only Symbol.for() registered symbols are supported.");return{[$]:"Sym",v:s}}if(r==="function")throw new TypeError("Cannot serialize a function.");let n=t.idOf.get(e);if(n!==void 0&&t.emitted.has(n))return{[$]:"Ref",v:n};n!==void 0&&t.emitted.add(n);let o;if(e instanceof Date)o={[$]:"Date",v:Number.isNaN(e.getTime())?null:e.toISOString()};else if(e instanceof Error)o={[$]:"Error",v:{name:e.name,message:e.message,stack:e.stack||null}};else if(typeof Blob<"u"&&e instanceof Blob){let s=t.blobBytes.get(e);typeof File<"u"&&e instanceof File?o={[$]:"File",v:Yr(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[$]:"Blob",v:Yr(s),t:e.type||""}}else if(typeof FormData<"u"&&e instanceof FormData){let s=t.fdEntries.get(e)||[...e.entries()],i=[];for(let[a,c]of s)i.push([a,yt(c,t)]);o={[$]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=zu(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([yt(i,t),yt(a,t)]);o={[$]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(yt(i,t));o={[$]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>yt(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=Qu(s)?"_"+s:s;za(o,i,yt(e[s],t))}}if(n!==void 0){if(Array.isArray(o))return{[$]:"Arr",_id:n,v:o};o._id=n}return o}function zu(e){if(e instanceof ArrayBuffer)return{[$]:"buf",v:Yr(new Uint8Array(e))};if(e instanceof DataView)return{[$]:"dv",v:Yr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,r=Ku[t];if(!r)throw new TypeError(`Unsupported typed array: ${t}`);let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[$]:r,v:Yr(n)}}function Yu(){return{refs:new Map}}function Ue(e,t){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){let s=[];for(let i=0;i<e.length;i++)s.push(Ue(e[i],t));return s}let r=e[$];if(typeof r=="string")return Ju(e,r,t);let n={},o=e._id;typeof o=="number"&&t.refs.set(o,n);for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||s==="_id")continue;let i=ef(s)?s.slice(1):s;za(n,i,Ue(e[s],t))}return n}function Ju(e,t,r){let n=e._id,o=s=>(typeof n=="number"&&r.refs.set(n,s),s);switch(t){case"undef":return;case"NaN":return NaN;case"Inf":return 1/0;case"-Inf":return-1/0;case"-0":return-0;case"BigInt":return o(BigInt(e.v));case"Sym":return o(Symbol.for(e.v));case"Date":return o(e.v==null?new Date(NaN):new Date(e.v));case"Error":{let s=new Error(e.v.message);return s.name=e.v.name,e.v.stack&&(s.stack=e.v.stack),typeof n=="number"&&r.refs.set(n,s),s}case"Map":{let s=new Map;typeof n=="number"&&r.refs.set(n,s);for(let[i,a]of e.v)s.set(Ue(i,r),Ue(a,r));return s}case"Set":{let s=new Set;typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.add(Ue(i,r));return s}case"Arr":{let s=[];typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.push(Ue(i,r));return s}case"Ref":{let s=r.refs.get(e.v);if(s===void 0)throw new TypeError(`Dangling reference: id=${e.v}`);return s}case"Blob":{if(typeof Blob>"u")throw new TypeError("Blob is not available in this environment.");let s=Gr(e.v);return o(new Blob([s],{type:e.t||""}))}case"File":{if(typeof File>"u")throw new TypeError("File is not available in this environment.");let s=Gr(e.v);return o(new File([s],e.n,{type:e.t||"",lastModified:e.m}))}case"FD":{if(typeof FormData>"u")throw new TypeError("FormData is not available in this environment.");let s=new FormData;o(s);for(let[i,a]of e.v){let c=Ue(a,r);s.append(i,c)}return s}default:{if(t==="buf"){let i=Gr(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=Gr(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=Gu[t];if(s){let i=Gr(e.v),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength);return o(new s(a))}throw new TypeError(`Unknown serialization tag: ${t}`)}}}function Zu(e){return e!==null&&typeof e=="object"}function Xu(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Qu(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function ef(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function Yr(e){if(Ya)return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64");let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Gr(e){if(Ya){let n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}var $,Uu,Ku,Gu,Ya,wt=v(()=>{$="_$wj",Uu=new Set(["__proto__","constructor","prototype"]);Ku={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},Gu={i8:Int8Array,u8:Uint8Array,u8c:Uint8ClampedArray,i16:Int16Array,u16:Uint16Array,i32:Int32Array,u32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:typeof BigInt64Array<"u"?BigInt64Array:null,bu64:typeof BigUint64Array<"u"?BigUint64Array:null};Ya=typeof Buffer<"u"&&typeof Buffer.from=="function"});function cf(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function yo(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}var Tm,pi=v(()=>{Tm=Symbol.for("webjs.suspense")});function nc(e){return lf.has(e.toLowerCase())}function mi(e,t){let r=t+4;if(e[r]===">")return r+1;if(e.startsWith("->",r))return r+2;for(;r<e.length;){if(e.startsWith("-->",r))return r+3;if(e.startsWith("--!>",r))return r+4;r+=1}return-1}function uf(e,t){let r=/<!--|-->|<\/script(?=[\s/>])|<script(?=[\s/>])/gi;r.lastIndex=t;let n=!1,o=!1,s;for(;(s=r.exec(e))!==null;){let i=s[0];if(i==="<!--"){let a=s.index+4;for(;e[a]==="-";)a+=1;e[a]===">"?(n=!1,o=!1,r.lastIndex=a+1):n||(n=!0)}else if(i==="-->")n=!1,o=!1;else if(i[1]==="/")if(o)o=!1;else return s.index;else n&&(o=!0)}return-1}function nr(e){let t=[],r=e.length,n=0;for(;n<r;){let o=e.indexOf("<",n);if(o===-1)break;if(e.startsWith("<!--",o)){let d=mi(e,o),m=d===-1?r:d;t.push([o,m]),n=m;continue}if(e.startsWith("<!",o)||e.startsWith("<?",o)){let d=e.indexOf(">",o),m=d===-1?r:d+1;t.push([o,m]),n=m;continue}let s=/^<\/?([a-zA-Z][^\s/>]*)/.exec(e.slice(o,o+64));if(!s){if(e.startsWith("</",o)){let d=e.indexOf(">",o),m=d===-1?r:d+1;t.push([o,m]),n=m;continue}n=o+1;continue}let i=o+1,a="",c=!1,l=!1,u=!1;for(;i<r;){let d=e[i],m=d===" "||d===" "||d===`
2
- `||d==="\r"||d==="\f";if(a)d===a&&(a="");else if(d===">"){u=!l&&e[i-1]==="/",i+=1;break}else c?m||(d==='"'||d==="'"?a=d:l=!0,c=!1):l?m&&(l=!1):d==="="&&(c=!0);i+=1}i>o+1&&t.push([o+1,i]),n=i;let f=s[1].toLowerCase();if(!(e[o+1]==="/")&&!u&&pf(f)){let d;if(f==="plaintext")d=r;else if(f==="script"){let m=uf(e,i);d=m===-1?r:m}else{let m=new RegExp(`</${f}(?=[\\s/>])`,"i").exec(e.slice(i));d=m?i+m.index:r}d>i&&t.push([i,d]),n=d}}return t}function ff(e,t){for(let[r,n]of e){if(r>t)return!1;if(t<n)return!0}return!1}function Qr(e){let t=0;return r=>{for(;t<e.length&&e[t][1]<=r;)t+=1;return t>=e.length?!1:r>=e[t][0]}}function St(e,t,r,n){let o=_t(r),s=new RegExp(`<${o}(?:[\\s>/])`,"gi"),i=new RegExp(`</${o}\\s*>`,"gi"),a=n===void 0?nr(e):n,c=u=>{let f;for(;(f=u.exec(e))!==null;)if(a.length===0||!ff(a,f.index))return f;return null};s.lastIndex=t,i.lastIndex=t;let l=1;for(;l>0;){let u=c(s),f=c(i);if(!f)return-1;if(u&&u.index<f.index)l++,i.lastIndex=u.index+1;else{if(l--,l===0)return f.index;s.lastIndex=f.index+1}}return-1}function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wo(e){return e==="script"||e==="style"}function df(e){return e==="textarea"||e==="title"}function pf(e){return wo(e)||df(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}var lf,So=v(()=>{lf=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"])});var oc,sc,ic=v(()=>{oc={AElig:198,AMP:38,Aacute:193,Abreve:258,Acirc:194,Acy:1040,Afr:120068,Agrave:192,Alpha:913,Amacr:256,And:10835,Aogon:260,Aopf:120120,ApplyFunction:8289,Aring:197,Ascr:119964,Assign:8788,Atilde:195,Auml:196,Backslash:8726,Barv:10983,Barwed:8966,Bcy:1041,Because:8757,Bernoullis:8492,Beta:914,Bfr:120069,Bopf:120121,Breve:728,Bscr:8492,Bumpeq:8782,CHcy:1063,COPY:169,Cacute:262,Cap:8914,CapitalDifferentialD:8517,Cayleys:8493,Ccaron:268,Ccedil:199,Ccirc:264,Cconint:8752,Cdot:266,Cedilla:184,CenterDot:183,Cfr:8493,Chi:935,CircleDot:8857,CircleMinus:8854,CirclePlus:8853,CircleTimes:8855,ClockwiseContourIntegral:8754,CloseCurlyDoubleQuote:8221,CloseCurlyQuote:8217,Colon:8759,Colone:10868,Congruent:8801,Conint:8751,ContourIntegral:8750,Copf:8450,Coproduct:8720,CounterClockwiseContourIntegral:8755,Cross:10799,Cscr:119966,Cup:8915,CupCap:8781,DD:8517,DDotrahd:10513,DJcy:1026,DScy:1029,DZcy:1039,Dagger:8225,Darr:8609,Dashv:10980,Dcaron:270,Dcy:1044,Del:8711,Delta:916,Dfr:120071,DiacriticalAcute:180,DiacriticalDot:729,DiacriticalDoubleAcute:733,DiacriticalGrave:96,DiacriticalTilde:732,Diamond:8900,DifferentialD:8518,Dopf:120123,Dot:168,DotDot:8412,DotEqual:8784,DoubleContourIntegral:8751,DoubleDot:168,DoubleDownArrow:8659,DoubleLeftArrow:8656,DoubleLeftRightArrow:8660,DoubleLeftTee:10980,DoubleLongLeftArrow:10232,DoubleLongLeftRightArrow:10234,DoubleLongRightArrow:10233,DoubleRightArrow:8658,DoubleRightTee:8872,DoubleUpArrow:8657,DoubleUpDownArrow:8661,DoubleVerticalBar:8741,DownArrow:8595,DownArrowBar:10515,DownArrowUpArrow:8693,DownBreve:785,DownLeftRightVector:10576,DownLeftTeeVector:10590,DownLeftVector:8637,DownLeftVectorBar:10582,DownRightTeeVector:10591,DownRightVector:8641,DownRightVectorBar:10583,DownTee:8868,DownTeeArrow:8615,Downarrow:8659,Dscr:119967,Dstrok:272,ENG:330,ETH:208,Eacute:201,Ecaron:282,Ecirc:202,Ecy:1069,Edot:278,Efr:120072,Egrave:200,Element:8712,Emacr:274,EmptySmallSquare:9723,EmptyVerySmallSquare:9643,Eogon:280,Eopf:120124,Epsilon:917,Equal:10869,EqualTilde:8770,Equilibrium:8652,Escr:8496,Esim:10867,Eta:919,Euml:203,Exists:8707,ExponentialE:8519,Fcy:1060,Ffr:120073,FilledSmallSquare:9724,FilledVerySmallSquare:9642,Fopf:120125,ForAll:8704,Fouriertrf:8497,Fscr:8497,GJcy:1027,GT:62,Gamma:915,Gammad:988,Gbreve:286,Gcedil:290,Gcirc:284,Gcy:1043,Gdot:288,Gfr:120074,Gg:8921,Gopf:120126,GreaterEqual:8805,GreaterEqualLess:8923,GreaterFullEqual:8807,GreaterGreater:10914,GreaterLess:8823,GreaterSlantEqual:10878,GreaterTilde:8819,Gscr:119970,Gt:8811,HARDcy:1066,Hacek:711,Hat:94,Hcirc:292,Hfr:8460,HilbertSpace:8459,Hopf:8461,HorizontalLine:9472,Hscr:8459,Hstrok:294,HumpDownHump:8782,HumpEqual:8783,IEcy:1045,IJlig:306,IOcy:1025,Iacute:205,Icirc:206,Icy:1048,Idot:304,Ifr:8465,Igrave:204,Im:8465,Imacr:298,ImaginaryI:8520,Implies:8658,Int:8748,Integral:8747,Intersection:8898,InvisibleComma:8291,InvisibleTimes:8290,Iogon:302,Iopf:120128,Iota:921,Iscr:8464,Itilde:296,Iukcy:1030,Iuml:207,Jcirc:308,Jcy:1049,Jfr:120077,Jopf:120129,Jscr:119973,Jsercy:1032,Jukcy:1028,KHcy:1061,KJcy:1036,Kappa:922,Kcedil:310,Kcy:1050,Kfr:120078,Kopf:120130,Kscr:119974,LJcy:1033,LT:60,Lacute:313,Lambda:923,Lang:10218,Laplacetrf:8466,Larr:8606,Lcaron:317,Lcedil:315,Lcy:1051,LeftAngleBracket:10216,LeftArrow:8592,LeftArrowBar:8676,LeftArrowRightArrow:8646,LeftCeiling:8968,LeftDoubleBracket:10214,LeftDownTeeVector:10593,LeftDownVector:8643,LeftDownVectorBar:10585,LeftFloor:8970,LeftRightArrow:8596,LeftRightVector:10574,LeftTee:8867,LeftTeeArrow:8612,LeftTeeVector:10586,LeftTriangle:8882,LeftTriangleBar:10703,LeftTriangleEqual:8884,LeftUpDownVector:10577,LeftUpTeeVector:10592,LeftUpVector:8639,LeftUpVectorBar:10584,LeftVector:8636,LeftVectorBar:10578,Leftarrow:8656,Leftrightarrow:8660,LessEqualGreater:8922,LessFullEqual:8806,LessGreater:8822,LessLess:10913,LessSlantEqual:10877,LessTilde:8818,Lfr:120079,Ll:8920,Lleftarrow:8666,Lmidot:319,LongLeftArrow:10229,LongLeftRightArrow:10231,LongRightArrow:10230,Longleftarrow:10232,Longleftrightarrow:10234,Longrightarrow:10233,Lopf:120131,LowerLeftArrow:8601,LowerRightArrow:8600,Lscr:8466,Lsh:8624,Lstrok:321,Lt:8810,Map:10501,Mcy:1052,MediumSpace:8287,Mellintrf:8499,Mfr:120080,MinusPlus:8723,Mopf:120132,Mscr:8499,Mu:924,NJcy:1034,Nacute:323,Ncaron:327,Ncedil:325,Ncy:1053,NegativeMediumSpace:8203,NegativeThickSpace:8203,NegativeThinSpace:8203,NegativeVeryThinSpace:8203,NestedGreaterGreater:8811,NestedLessLess:8810,NewLine:10,Nfr:120081,NoBreak:8288,NonBreakingSpace:160,Nopf:8469,Not:10988,NotCongruent:8802,NotCupCap:8813,NotDoubleVerticalBar:8742,NotElement:8713,NotEqual:8800,NotEqualTilde:[8770,824],NotExists:8708,NotGreater:8815,NotGreaterEqual:8817,NotGreaterFullEqual:[8807,824],NotGreaterGreater:[8811,824],NotGreaterLess:8825,NotGreaterSlantEqual:[10878,824],NotGreaterTilde:8821,NotHumpDownHump:[8782,824],NotHumpEqual:[8783,824],NotLeftTriangle:8938,NotLeftTriangleBar:[10703,824],NotLeftTriangleEqual:8940,NotLess:8814,NotLessEqual:8816,NotLessGreater:8824,NotLessLess:[8810,824],NotLessSlantEqual:[10877,824],NotLessTilde:8820,NotNestedGreaterGreater:[10914,824],NotNestedLessLess:[10913,824],NotPrecedes:8832,NotPrecedesEqual:[10927,824],NotPrecedesSlantEqual:8928,NotReverseElement:8716,NotRightTriangle:8939,NotRightTriangleBar:[10704,824],NotRightTriangleEqual:8941,NotSquareSubset:[8847,824],NotSquareSubsetEqual:8930,NotSquareSuperset:[8848,824],NotSquareSupersetEqual:8931,NotSubset:[8834,8402],NotSubsetEqual:8840,NotSucceeds:8833,NotSucceedsEqual:[10928,824],NotSucceedsSlantEqual:8929,NotSucceedsTilde:[8831,824],NotSuperset:[8835,8402],NotSupersetEqual:8841,NotTilde:8769,NotTildeEqual:8772,NotTildeFullEqual:8775,NotTildeTilde:8777,NotVerticalBar:8740,Nscr:119977,Ntilde:209,Nu:925,OElig:338,Oacute:211,Ocirc:212,Ocy:1054,Odblac:336,Ofr:120082,Ograve:210,Omacr:332,Omega:937,Omicron:927,Oopf:120134,OpenCurlyDoubleQuote:8220,OpenCurlyQuote:8216,Or:10836,Oscr:119978,Oslash:216,Otilde:213,Otimes:10807,Ouml:214,OverBar:8254,OverBrace:9182,OverBracket:9140,OverParenthesis:9180,PartialD:8706,Pcy:1055,Pfr:120083,Phi:934,Pi:928,PlusMinus:177,Poincareplane:8460,Popf:8473,Pr:10939,Precedes:8826,PrecedesEqual:10927,PrecedesSlantEqual:8828,PrecedesTilde:8830,Prime:8243,Product:8719,Proportion:8759,Proportional:8733,Pscr:119979,Psi:936,QUOT:34,Qfr:120084,Qopf:8474,Qscr:119980,RBarr:10512,REG:174,Racute:340,Rang:10219,Rarr:8608,Rarrtl:10518,Rcaron:344,Rcedil:342,Rcy:1056,Re:8476,ReverseElement:8715,ReverseEquilibrium:8651,ReverseUpEquilibrium:10607,Rfr:8476,Rho:929,RightAngleBracket:10217,RightArrow:8594,RightArrowBar:8677,RightArrowLeftArrow:8644,RightCeiling:8969,RightDoubleBracket:10215,RightDownTeeVector:10589,RightDownVector:8642,RightDownVectorBar:10581,RightFloor:8971,RightTee:8866,RightTeeArrow:8614,RightTeeVector:10587,RightTriangle:8883,RightTriangleBar:10704,RightTriangleEqual:8885,RightUpDownVector:10575,RightUpTeeVector:10588,RightUpVector:8638,RightUpVectorBar:10580,RightVector:8640,RightVectorBar:10579,Rightarrow:8658,Ropf:8477,RoundImplies:10608,Rrightarrow:8667,Rscr:8475,Rsh:8625,RuleDelayed:10740,SHCHcy:1065,SHcy:1064,SOFTcy:1068,Sacute:346,Sc:10940,Scaron:352,Scedil:350,Scirc:348,Scy:1057,Sfr:120086,ShortDownArrow:8595,ShortLeftArrow:8592,ShortRightArrow:8594,ShortUpArrow:8593,Sigma:931,SmallCircle:8728,Sopf:120138,Sqrt:8730,Square:9633,SquareIntersection:8851,SquareSubset:8847,SquareSubsetEqual:8849,SquareSuperset:8848,SquareSupersetEqual:8850,SquareUnion:8852,Sscr:119982,Star:8902,Sub:8912,Subset:8912,SubsetEqual:8838,Succeeds:8827,SucceedsEqual:10928,SucceedsSlantEqual:8829,SucceedsTilde:8831,SuchThat:8715,Sum:8721,Sup:8913,Superset:8835,SupersetEqual:8839,Supset:8913,THORN:222,TRADE:8482,TSHcy:1035,TScy:1062,Tab:9,Tau:932,Tcaron:356,Tcedil:354,Tcy:1058,Tfr:120087,Therefore:8756,Theta:920,ThickSpace:[8287,8202],ThinSpace:8201,Tilde:8764,TildeEqual:8771,TildeFullEqual:8773,TildeTilde:8776,Topf:120139,TripleDot:8411,Tscr:119983,Tstrok:358,Uacute:218,Uarr:8607,Uarrocir:10569,Ubrcy:1038,Ubreve:364,Ucirc:219,Ucy:1059,Udblac:368,Ufr:120088,Ugrave:217,Umacr:362,UnderBar:95,UnderBrace:9183,UnderBracket:9141,UnderParenthesis:9181,Union:8899,UnionPlus:8846,Uogon:370,Uopf:120140,UpArrow:8593,UpArrowBar:10514,UpArrowDownArrow:8645,UpDownArrow:8597,UpEquilibrium:10606,UpTee:8869,UpTeeArrow:8613,Uparrow:8657,Updownarrow:8661,UpperLeftArrow:8598,UpperRightArrow:8599,Upsi:978,Upsilon:933,Uring:366,Uscr:119984,Utilde:360,Uuml:220,VDash:8875,Vbar:10987,Vcy:1042,Vdash:8873,Vdashl:10982,Vee:8897,Verbar:8214,Vert:8214,VerticalBar:8739,VerticalLine:124,VerticalSeparator:10072,VerticalTilde:8768,VeryThinSpace:8202,Vfr:120089,Vopf:120141,Vscr:119985,Vvdash:8874,Wcirc:372,Wedge:8896,Wfr:120090,Wopf:120142,Wscr:119986,Xfr:120091,Xi:926,Xopf:120143,Xscr:119987,YAcy:1071,YIcy:1031,YUcy:1070,Yacute:221,Ycirc:374,Ycy:1067,Yfr:120092,Yopf:120144,Yscr:119988,Yuml:376,ZHcy:1046,Zacute:377,Zcaron:381,Zcy:1047,Zdot:379,ZeroWidthSpace:8203,Zeta:918,Zfr:8488,Zopf:8484,Zscr:119989,aacute:225,abreve:259,ac:8766,acE:[8766,819],acd:8767,acirc:226,acute:180,acy:1072,aelig:230,af:8289,afr:120094,agrave:224,alefsym:8501,aleph:8501,alpha:945,amacr:257,amalg:10815,amp:38,and:8743,andand:10837,andd:10844,andslope:10840,andv:10842,ang:8736,ange:10660,angle:8736,angmsd:8737,angmsdaa:10664,angmsdab:10665,angmsdac:10666,angmsdad:10667,angmsdae:10668,angmsdaf:10669,angmsdag:10670,angmsdah:10671,angrt:8735,angrtvb:8894,angrtvbd:10653,angsph:8738,angst:197,angzarr:9084,aogon:261,aopf:120146,ap:8776,apE:10864,apacir:10863,ape:8778,apid:8779,apos:39,approx:8776,approxeq:8778,aring:229,ascr:119990,ast:42,asymp:8776,asympeq:8781,atilde:227,auml:228,awconint:8755,awint:10769,bNot:10989,backcong:8780,backepsilon:1014,backprime:8245,backsim:8765,backsimeq:8909,barvee:8893,barwed:8965,barwedge:8965,bbrk:9141,bbrktbrk:9142,bcong:8780,bcy:1073,bdquo:8222,becaus:8757,because:8757,bemptyv:10672,bepsi:1014,bernou:8492,beta:946,beth:8502,between:8812,bfr:120095,bigcap:8898,bigcirc:9711,bigcup:8899,bigodot:10752,bigoplus:10753,bigotimes:10754,bigsqcup:10758,bigstar:9733,bigtriangledown:9661,bigtriangleup:9651,biguplus:10756,bigvee:8897,bigwedge:8896,bkarow:10509,blacklozenge:10731,blacksquare:9642,blacktriangle:9652,blacktriangledown:9662,blacktriangleleft:9666,blacktriangleright:9656,blank:9251,blk12:9618,blk14:9617,blk34:9619,block:9608,bne:[61,8421],bnequiv:[8801,8421],bnot:8976,bopf:120147,bot:8869,bottom:8869,bowtie:8904,boxDL:9559,boxDR:9556,boxDl:9558,boxDr:9555,boxH:9552,boxHD:9574,boxHU:9577,boxHd:9572,boxHu:9575,boxUL:9565,boxUR:9562,boxUl:9564,boxUr:9561,boxV:9553,boxVH:9580,boxVL:9571,boxVR:9568,boxVh:9579,boxVl:9570,boxVr:9567,boxbox:10697,boxdL:9557,boxdR:9554,boxdl:9488,boxdr:9484,boxh:9472,boxhD:9573,boxhU:9576,boxhd:9516,boxhu:9524,boxminus:8863,boxplus:8862,boxtimes:8864,boxuL:9563,boxuR:9560,boxul:9496,boxur:9492,boxv:9474,boxvH:9578,boxvL:9569,boxvR:9566,boxvh:9532,boxvl:9508,boxvr:9500,bprime:8245,breve:728,brvbar:166,bscr:119991,bsemi:8271,bsim:8765,bsime:8909,bsol:92,bsolb:10693,bsolhsub:10184,bull:8226,bullet:8226,bump:8782,bumpE:10926,bumpe:8783,bumpeq:8783,cacute:263,cap:8745,capand:10820,capbrcup:10825,capcap:10827,capcup:10823,capdot:10816,caps:[8745,65024],caret:8257,caron:711,ccaps:10829,ccaron:269,ccedil:231,ccirc:265,ccups:10828,ccupssm:10832,cdot:267,cedil:184,cemptyv:10674,cent:162,centerdot:183,cfr:120096,chcy:1095,check:10003,checkmark:10003,chi:967,cir:9675,cirE:10691,circ:710,circeq:8791,circlearrowleft:8634,circlearrowright:8635,circledR:174,circledS:9416,circledast:8859,circledcirc:8858,circleddash:8861,cire:8791,cirfnint:10768,cirmid:10991,cirscir:10690,clubs:9827,clubsuit:9827,colon:58,colone:8788,coloneq:8788,comma:44,commat:64,comp:8705,compfn:8728,complement:8705,complexes:8450,cong:8773,congdot:10861,conint:8750,copf:120148,coprod:8720,copy:169,copysr:8471,crarr:8629,cross:10007,cscr:119992,csub:10959,csube:10961,csup:10960,csupe:10962,ctdot:8943,cudarrl:10552,cudarrr:10549,cuepr:8926,cuesc:8927,cularr:8630,cularrp:10557,cup:8746,cupbrcap:10824,cupcap:10822,cupcup:10826,cupdot:8845,cupor:10821,cups:[8746,65024],curarr:8631,curarrm:10556,curlyeqprec:8926,curlyeqsucc:8927,curlyvee:8910,curlywedge:8911,curren:164,curvearrowleft:8630,curvearrowright:8631,cuvee:8910,cuwed:8911,cwconint:8754,cwint:8753,cylcty:9005,dArr:8659,dHar:10597,dagger:8224,daleth:8504,darr:8595,dash:8208,dashv:8867,dbkarow:10511,dblac:733,dcaron:271,dcy:1076,dd:8518,ddagger:8225,ddarr:8650,ddotseq:10871,deg:176,delta:948,demptyv:10673,dfisht:10623,dfr:120097,dharl:8643,dharr:8642,diam:8900,diamond:8900,diamondsuit:9830,diams:9830,die:168,digamma:989,disin:8946,div:247,divide:247,divideontimes:8903,divonx:8903,djcy:1106,dlcorn:8990,dlcrop:8973,dollar:36,dopf:120149,dot:729,doteq:8784,doteqdot:8785,dotminus:8760,dotplus:8724,dotsquare:8865,doublebarwedge:8966,downarrow:8595,downdownarrows:8650,downharpoonleft:8643,downharpoonright:8642,drbkarow:10512,drcorn:8991,drcrop:8972,dscr:119993,dscy:1109,dsol:10742,dstrok:273,dtdot:8945,dtri:9663,dtrif:9662,duarr:8693,duhar:10607,dwangle:10662,dzcy:1119,dzigrarr:10239,eDDot:10871,eDot:8785,eacute:233,easter:10862,ecaron:283,ecir:8790,ecirc:234,ecolon:8789,ecy:1101,edot:279,ee:8519,efDot:8786,efr:120098,eg:10906,egrave:232,egs:10902,egsdot:10904,el:10905,elinters:9191,ell:8467,els:10901,elsdot:10903,emacr:275,empty:8709,emptyset:8709,emptyv:8709,emsp:8195,emsp13:8196,emsp14:8197,eng:331,ensp:8194,eogon:281,eopf:120150,epar:8917,eparsl:10723,eplus:10865,epsi:949,epsilon:949,epsiv:1013,eqcirc:8790,eqcolon:8789,eqsim:8770,eqslantgtr:10902,eqslantless:10901,equals:61,equest:8799,equiv:8801,equivDD:10872,eqvparsl:10725,erDot:8787,erarr:10609,escr:8495,esdot:8784,esim:8770,eta:951,eth:240,euml:235,euro:8364,excl:33,exist:8707,expectation:8496,exponentiale:8519,fallingdotseq:8786,fcy:1092,female:9792,ffilig:64259,fflig:64256,ffllig:64260,ffr:120099,filig:64257,fjlig:[102,106],flat:9837,fllig:64258,fltns:9649,fnof:402,fopf:120151,forall:8704,fork:8916,forkv:10969,fpartint:10765,frac12:189,frac13:8531,frac14:188,frac15:8533,frac16:8537,frac18:8539,frac23:8532,frac25:8534,frac34:190,frac35:8535,frac38:8540,frac45:8536,frac56:8538,frac58:8541,frac78:8542,frasl:8260,frown:8994,fscr:119995,gE:8807,gEl:10892,gacute:501,gamma:947,gammad:989,gap:10886,gbreve:287,gcirc:285,gcy:1075,gdot:289,ge:8805,gel:8923,geq:8805,geqq:8807,geqslant:10878,ges:10878,gescc:10921,gesdot:10880,gesdoto:10882,gesdotol:10884,gesl:[8923,65024],gesles:10900,gfr:120100,gg:8811,ggg:8921,gimel:8503,gjcy:1107,gl:8823,glE:10898,gla:10917,glj:10916,gnE:8809,gnap:10890,gnapprox:10890,gne:10888,gneq:10888,gneqq:8809,gnsim:8935,gopf:120152,grave:96,gscr:8458,gsim:8819,gsime:10894,gsiml:10896,gt:62,gtcc:10919,gtcir:10874,gtdot:8919,gtlPar:10645,gtquest:10876,gtrapprox:10886,gtrarr:10616,gtrdot:8919,gtreqless:8923,gtreqqless:10892,gtrless:8823,gtrsim:8819,gvertneqq:[8809,65024],gvnE:[8809,65024],hArr:8660,hairsp:8202,half:189,hamilt:8459,hardcy:1098,harr:8596,harrcir:10568,harrw:8621,hbar:8463,hcirc:293,hearts:9829,heartsuit:9829,hellip:8230,hercon:8889,hfr:120101,hksearow:10533,hkswarow:10534,hoarr:8703,homtht:8763,hookleftarrow:8617,hookrightarrow:8618,hopf:120153,horbar:8213,hscr:119997,hslash:8463,hstrok:295,hybull:8259,hyphen:8208,iacute:237,ic:8291,icirc:238,icy:1080,iecy:1077,iexcl:161,iff:8660,ifr:120102,igrave:236,ii:8520,iiiint:10764,iiint:8749,iinfin:10716,iiota:8489,ijlig:307,imacr:299,image:8465,imagline:8464,imagpart:8465,imath:305,imof:8887,imped:437,in:8712,incare:8453,infin:8734,infintie:10717,inodot:305,int:8747,intcal:8890,integers:8484,intercal:8890,intlarhk:10775,intprod:10812,iocy:1105,iogon:303,iopf:120154,iota:953,iprod:10812,iquest:191,iscr:119998,isin:8712,isinE:8953,isindot:8949,isins:8948,isinsv:8947,isinv:8712,it:8290,itilde:297,iukcy:1110,iuml:239,jcirc:309,jcy:1081,jfr:120103,jmath:567,jopf:120155,jscr:119999,jsercy:1112,jukcy:1108,kappa:954,kappav:1008,kcedil:311,kcy:1082,kfr:120104,kgreen:312,khcy:1093,kjcy:1116,kopf:120156,kscr:12e4,lAarr:8666,lArr:8656,lAtail:10523,lBarr:10510,lE:8806,lEg:10891,lHar:10594,lacute:314,laemptyv:10676,lagran:8466,lambda:955,lang:10216,langd:10641,langle:10216,lap:10885,laquo:171,larr:8592,larrb:8676,larrbfs:10527,larrfs:10525,larrhk:8617,larrlp:8619,larrpl:10553,larrsim:10611,larrtl:8610,lat:10923,latail:10521,late:10925,lates:[10925,65024],lbarr:10508,lbbrk:10098,lbrace:123,lbrack:91,lbrke:10635,lbrksld:10639,lbrkslu:10637,lcaron:318,lcedil:316,lceil:8968,lcub:123,lcy:1083,ldca:10550,ldquo:8220,ldquor:8222,ldrdhar:10599,ldrushar:10571,ldsh:8626,le:8804,leftarrow:8592,leftarrowtail:8610,leftharpoondown:8637,leftharpoonup:8636,leftleftarrows:8647,leftrightarrow:8596,leftrightarrows:8646,leftrightharpoons:8651,leftrightsquigarrow:8621,leftthreetimes:8907,leg:8922,leq:8804,leqq:8806,leqslant:10877,les:10877,lescc:10920,lesdot:10879,lesdoto:10881,lesdotor:10883,lesg:[8922,65024],lesges:10899,lessapprox:10885,lessdot:8918,lesseqgtr:8922,lesseqqgtr:10891,lessgtr:8822,lesssim:8818,lfisht:10620,lfloor:8970,lfr:120105,lg:8822,lgE:10897,lhard:8637,lharu:8636,lharul:10602,lhblk:9604,ljcy:1113,ll:8810,llarr:8647,llcorner:8990,llhard:10603,lltri:9722,lmidot:320,lmoust:9136,lmoustache:9136,lnE:8808,lnap:10889,lnapprox:10889,lne:10887,lneq:10887,lneqq:8808,lnsim:8934,loang:10220,loarr:8701,lobrk:10214,longleftarrow:10229,longleftrightarrow:10231,longmapsto:10236,longrightarrow:10230,looparrowleft:8619,looparrowright:8620,lopar:10629,lopf:120157,loplus:10797,lotimes:10804,lowast:8727,lowbar:95,loz:9674,lozenge:9674,lozf:10731,lpar:40,lparlt:10643,lrarr:8646,lrcorner:8991,lrhar:8651,lrhard:10605,lrm:8206,lrtri:8895,lsaquo:8249,lscr:120001,lsh:8624,lsim:8818,lsime:10893,lsimg:10895,lsqb:91,lsquo:8216,lsquor:8218,lstrok:322,lt:60,ltcc:10918,ltcir:10873,ltdot:8918,lthree:8907,ltimes:8905,ltlarr:10614,ltquest:10875,ltrPar:10646,ltri:9667,ltrie:8884,ltrif:9666,lurdshar:10570,luruhar:10598,lvertneqq:[8808,65024],lvnE:[8808,65024],mDDot:8762,macr:175,male:9794,malt:10016,maltese:10016,map:8614,mapsto:8614,mapstodown:8615,mapstoleft:8612,mapstoup:8613,marker:9646,mcomma:10793,mcy:1084,mdash:8212,measuredangle:8737,mfr:120106,mho:8487,micro:181,mid:8739,midast:42,midcir:10992,middot:183,minus:8722,minusb:8863,minusd:8760,minusdu:10794,mlcp:10971,mldr:8230,mnplus:8723,models:8871,mopf:120158,mp:8723,mscr:120002,mstpos:8766,mu:956,multimap:8888,mumap:8888,nGg:[8921,824],nGt:[8811,8402],nGtv:[8811,824],nLeftarrow:8653,nLeftrightarrow:8654,nLl:[8920,824],nLt:[8810,8402],nLtv:[8810,824],nRightarrow:8655,nVDash:8879,nVdash:8878,nabla:8711,nacute:324,nang:[8736,8402],nap:8777,napE:[10864,824],napid:[8779,824],napos:329,napprox:8777,natur:9838,natural:9838,naturals:8469,nbsp:160,nbump:[8782,824],nbumpe:[8783,824],ncap:10819,ncaron:328,ncedil:326,ncong:8775,ncongdot:[10861,824],ncup:10818,ncy:1085,ndash:8211,ne:8800,neArr:8663,nearhk:10532,nearr:8599,nearrow:8599,nedot:[8784,824],nequiv:8802,nesear:10536,nesim:[8770,824],nexist:8708,nexists:8708,nfr:120107,ngE:[8807,824],nge:8817,ngeq:8817,ngeqq:[8807,824],ngeqslant:[10878,824],nges:[10878,824],ngsim:8821,ngt:8815,ngtr:8815,nhArr:8654,nharr:8622,nhpar:10994,ni:8715,nis:8956,nisd:8954,niv:8715,njcy:1114,nlArr:8653,nlE:[8806,824],nlarr:8602,nldr:8229,nle:8816,nleftarrow:8602,nleftrightarrow:8622,nleq:8816,nleqq:[8806,824],nleqslant:[10877,824],nles:[10877,824],nless:8814,nlsim:8820,nlt:8814,nltri:8938,nltrie:8940,nmid:8740,nopf:120159,not:172,notin:8713,notinE:[8953,824],notindot:[8949,824],notinva:8713,notinvb:8951,notinvc:8950,notni:8716,notniva:8716,notnivb:8958,notnivc:8957,npar:8742,nparallel:8742,nparsl:[11005,8421],npart:[8706,824],npolint:10772,npr:8832,nprcue:8928,npre:[10927,824],nprec:8832,npreceq:[10927,824],nrArr:8655,nrarr:8603,nrarrc:[10547,824],nrarrw:[8605,824],nrightarrow:8603,nrtri:8939,nrtrie:8941,nsc:8833,nsccue:8929,nsce:[10928,824],nscr:120003,nshortmid:8740,nshortparallel:8742,nsim:8769,nsime:8772,nsimeq:8772,nsmid:8740,nspar:8742,nsqsube:8930,nsqsupe:8931,nsub:8836,nsubE:[10949,824],nsube:8840,nsubset:[8834,8402],nsubseteq:8840,nsubseteqq:[10949,824],nsucc:8833,nsucceq:[10928,824],nsup:8837,nsupE:[10950,824],nsupe:8841,nsupset:[8835,8402],nsupseteq:8841,nsupseteqq:[10950,824],ntgl:8825,ntilde:241,ntlg:8824,ntriangleleft:8938,ntrianglelefteq:8940,ntriangleright:8939,ntrianglerighteq:8941,nu:957,num:35,numero:8470,numsp:8199,nvDash:8877,nvHarr:10500,nvap:[8781,8402],nvdash:8876,nvge:[8805,8402],nvgt:[62,8402],nvinfin:10718,nvlArr:10498,nvle:[8804,8402],nvlt:[60,8402],nvltrie:[8884,8402],nvrArr:10499,nvrtrie:[8885,8402],nvsim:[8764,8402],nwArr:8662,nwarhk:10531,nwarr:8598,nwarrow:8598,nwnear:10535,oS:9416,oacute:243,oast:8859,ocir:8858,ocirc:244,ocy:1086,odash:8861,odblac:337,odiv:10808,odot:8857,odsold:10684,oelig:339,ofcir:10687,ofr:120108,ogon:731,ograve:242,ogt:10689,ohbar:10677,ohm:937,oint:8750,olarr:8634,olcir:10686,olcross:10683,oline:8254,olt:10688,omacr:333,omega:969,omicron:959,omid:10678,ominus:8854,oopf:120160,opar:10679,operp:10681,oplus:8853,or:8744,orarr:8635,ord:10845,order:8500,orderof:8500,ordf:170,ordm:186,origof:8886,oror:10838,orslope:10839,orv:10843,oscr:8500,oslash:248,osol:8856,otilde:245,otimes:8855,otimesas:10806,ouml:246,ovbar:9021,par:8741,para:182,parallel:8741,parsim:10995,parsl:11005,part:8706,pcy:1087,percnt:37,period:46,permil:8240,perp:8869,pertenk:8241,pfr:120109,phi:966,phiv:981,phmmat:8499,phone:9742,pi:960,pitchfork:8916,piv:982,planck:8463,planckh:8462,plankv:8463,plus:43,plusacir:10787,plusb:8862,pluscir:10786,plusdo:8724,plusdu:10789,pluse:10866,plusmn:177,plussim:10790,plustwo:10791,pm:177,pointint:10773,popf:120161,pound:163,pr:8826,prE:10931,prap:10935,prcue:8828,pre:10927,prec:8826,precapprox:10935,preccurlyeq:8828,preceq:10927,precnapprox:10937,precneqq:10933,precnsim:8936,precsim:8830,prime:8242,primes:8473,prnE:10933,prnap:10937,prnsim:8936,prod:8719,profalar:9006,profline:8978,profsurf:8979,prop:8733,propto:8733,prsim:8830,prurel:8880,pscr:120005,psi:968,puncsp:8200,qfr:120110,qint:10764,qopf:120162,qprime:8279,qscr:120006,quaternions:8461,quatint:10774,quest:63,questeq:8799,quot:34,rAarr:8667,rArr:8658,rAtail:10524,rBarr:10511,rHar:10596,race:[8765,817],racute:341,radic:8730,raemptyv:10675,rang:10217,rangd:10642,range:10661,rangle:10217,raquo:187,rarr:8594,rarrap:10613,rarrb:8677,rarrbfs:10528,rarrc:10547,rarrfs:10526,rarrhk:8618,rarrlp:8620,rarrpl:10565,rarrsim:10612,rarrtl:8611,rarrw:8605,ratail:10522,ratio:8758,rationals:8474,rbarr:10509,rbbrk:10099,rbrace:125,rbrack:93,rbrke:10636,rbrksld:10638,rbrkslu:10640,rcaron:345,rcedil:343,rceil:8969,rcub:125,rcy:1088,rdca:10551,rdldhar:10601,rdquo:8221,rdquor:8221,rdsh:8627,real:8476,realine:8475,realpart:8476,reals:8477,rect:9645,reg:174,rfisht:10621,rfloor:8971,rfr:120111,rhard:8641,rharu:8640,rharul:10604,rho:961,rhov:1009,rightarrow:8594,rightarrowtail:8611,rightharpoondown:8641,rightharpoonup:8640,rightleftarrows:8644,rightleftharpoons:8652,rightrightarrows:8649,rightsquigarrow:8605,rightthreetimes:8908,ring:730,risingdotseq:8787,rlarr:8644,rlhar:8652,rlm:8207,rmoust:9137,rmoustache:9137,rnmid:10990,roang:10221,roarr:8702,robrk:10215,ropar:10630,ropf:120163,roplus:10798,rotimes:10805,rpar:41,rpargt:10644,rppolint:10770,rrarr:8649,rsaquo:8250,rscr:120007,rsh:8625,rsqb:93,rsquo:8217,rsquor:8217,rthree:8908,rtimes:8906,rtri:9657,rtrie:8885,rtrif:9656,rtriltri:10702,ruluhar:10600,rx:8478,sacute:347,sbquo:8218,sc:8827,scE:10932,scap:10936,scaron:353,sccue:8829,sce:10928,scedil:351,scirc:349,scnE:10934,scnap:10938,scnsim:8937,scpolint:10771,scsim:8831,scy:1089,sdot:8901,sdotb:8865,sdote:10854,seArr:8664,searhk:10533,searr:8600,searrow:8600,sect:167,semi:59,seswar:10537,setminus:8726,setmn:8726,sext:10038,sfr:120112,sfrown:8994,sharp:9839,shchcy:1097,shcy:1096,shortmid:8739,shortparallel:8741,shy:173,sigma:963,sigmaf:962,sigmav:962,sim:8764,simdot:10858,sime:8771,simeq:8771,simg:10910,simgE:10912,siml:10909,simlE:10911,simne:8774,simplus:10788,simrarr:10610,slarr:8592,smallsetminus:8726,smashp:10803,smeparsl:10724,smid:8739,smile:8995,smt:10922,smte:10924,smtes:[10924,65024],softcy:1100,sol:47,solb:10692,solbar:9023,sopf:120164,spades:9824,spadesuit:9824,spar:8741,sqcap:8851,sqcaps:[8851,65024],sqcup:8852,sqcups:[8852,65024],sqsub:8847,sqsube:8849,sqsubset:8847,sqsubseteq:8849,sqsup:8848,sqsupe:8850,sqsupset:8848,sqsupseteq:8850,squ:9633,square:9633,squarf:9642,squf:9642,srarr:8594,sscr:120008,ssetmn:8726,ssmile:8995,sstarf:8902,star:9734,starf:9733,straightepsilon:1013,straightphi:981,strns:175,sub:8834,subE:10949,subdot:10941,sube:8838,subedot:10947,submult:10945,subnE:10955,subne:8842,subplus:10943,subrarr:10617,subset:8834,subseteq:8838,subseteqq:10949,subsetneq:8842,subsetneqq:10955,subsim:10951,subsub:10965,subsup:10963,succ:8827,succapprox:10936,succcurlyeq:8829,succeq:10928,succnapprox:10938,succneqq:10934,succnsim:8937,succsim:8831,sum:8721,sung:9834,sup:8835,sup1:185,sup2:178,sup3:179,supE:10950,supdot:10942,supdsub:10968,supe:8839,supedot:10948,suphsol:10185,suphsub:10967,suplarr:10619,supmult:10946,supnE:10956,supne:8843,supplus:10944,supset:8835,supseteq:8839,supseteqq:10950,supsetneq:8843,supsetneqq:10956,supsim:10952,supsub:10964,supsup:10966,swArr:8665,swarhk:10534,swarr:8601,swarrow:8601,swnwar:10538,szlig:223,target:8982,tau:964,tbrk:9140,tcaron:357,tcedil:355,tcy:1090,tdot:8411,telrec:8981,tfr:120113,there4:8756,therefore:8756,theta:952,thetasym:977,thetav:977,thickapprox:8776,thicksim:8764,thinsp:8201,thkap:8776,thksim:8764,thorn:254,tilde:732,times:215,timesb:8864,timesbar:10801,timesd:10800,tint:8749,toea:10536,top:8868,topbot:9014,topcir:10993,topf:120165,topfork:10970,tosa:10537,tprime:8244,trade:8482,triangle:9653,triangledown:9663,triangleleft:9667,trianglelefteq:8884,triangleq:8796,triangleright:9657,trianglerighteq:8885,tridot:9708,trie:8796,triminus:10810,triplus:10809,trisb:10701,tritime:10811,trpezium:9186,tscr:120009,tscy:1094,tshcy:1115,tstrok:359,twixt:8812,twoheadleftarrow:8606,twoheadrightarrow:8608,uArr:8657,uHar:10595,uacute:250,uarr:8593,ubrcy:1118,ubreve:365,ucirc:251,ucy:1091,udarr:8645,udblac:369,udhar:10606,ufisht:10622,ufr:120114,ugrave:249,uharl:8639,uharr:8638,uhblk:9600,ulcorn:8988,ulcorner:8988,ulcrop:8975,ultri:9720,umacr:363,uml:168,uogon:371,uopf:120166,uparrow:8593,updownarrow:8597,upharpoonleft:8639,upharpoonright:8638,uplus:8846,upsi:965,upsih:978,upsilon:965,upuparrows:8648,urcorn:8989,urcorner:8989,urcrop:8974,uring:367,urtri:9721,uscr:120010,utdot:8944,utilde:361,utri:9653,utrif:9652,uuarr:8648,uuml:252,uwangle:10663,vArr:8661,vBar:10984,vBarv:10985,vDash:8872,vangrt:10652,varepsilon:1013,varkappa:1008,varnothing:8709,varphi:981,varpi:982,varpropto:8733,varr:8597,varrho:1009,varsigma:962,varsubsetneq:[8842,65024],varsubsetneqq:[10955,65024],varsupsetneq:[8843,65024],varsupsetneqq:[10956,65024],vartheta:977,vartriangleleft:8882,vartriangleright:8883,vcy:1074,vdash:8866,vee:8744,veebar:8891,veeeq:8794,vellip:8942,verbar:124,vert:124,vfr:120115,vltri:8882,vnsub:[8834,8402],vnsup:[8835,8402],vopf:120167,vprop:8733,vrtri:8883,vscr:120011,vsubnE:[10955,65024],vsubne:[8842,65024],vsupnE:[10956,65024],vsupne:[8843,65024],vzigzag:10650,wcirc:373,wedbar:10847,wedge:8743,wedgeq:8793,weierp:8472,wfr:120116,wopf:120168,wp:8472,wr:8768,wreath:8768,wscr:120012,xcap:8898,xcirc:9711,xcup:8899,xdtri:9661,xfr:120117,xhArr:10234,xharr:10231,xi:958,xlArr:10232,xlarr:10229,xmap:10236,xnis:8955,xodot:10752,xopf:120169,xoplus:10753,xotime:10754,xrArr:10233,xrarr:10230,xscr:120013,xsqcup:10758,xuplus:10756,xutri:9651,xvee:8897,xwedge:8896,yacute:253,yacy:1103,ycirc:375,ycy:1099,yen:165,yfr:120118,yicy:1111,yopf:120170,yscr:120014,yucy:1102,yuml:255,zacute:378,zcaron:382,zcy:1079,zdot:380,zeetrf:8488,zeta:950,zfr:120119,zhcy:1078,zigrarr:8669,zopf:120171,zscr:120015,zwj:8205,zwnj:8204},sc=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});function fc(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function dc(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function or(e){return e.indexOf("&")===-1?e:e.replace(mf,(t,r,n,o,s,i)=>r!==void 0?uc(parseInt(r,10)):n!==void 0?uc(parseInt(n,16)):gf(t,o,s===";",e[i+t.length]))}function gf(e,t,r,n){if(r){let o=cc.get(t);return o===void 0?e:lc(o)}return!hf.has(t)||n==="="?e:lc(cc.get(t))}function lc(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function uc(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":ac[e]!==void 0?String.fromCodePoint(ac[e]):String.fromCodePoint(e)}var ac,mf,cc,hf,_o=v(()=>{ic();ac={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},mf=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,cc=new Map(Object.entries(oc)),hf=new Set(sc)});var gc={};ss(gc,{browserMemberHint:()=>hi,defaultSSRErrorTemplate:()=>en,isProd:()=>pc,render:()=>I,renderTemplate:()=>mc,streamRender:()=>te,streamTemplate:()=>hc});function pc(){return typeof process<"u"&&process.env&&!0}function hi(e){let t=e&&typeof e.message=="string"?e.message:"",r=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&r&&bf.has(r[1])?`\`${r[1]}\` is a browser-only global and is undefined during SSR.`:(r=/\.(\w+) is not a function\b/.exec(t),e instanceof TypeError&&r&&yf.has(r[1])?`\`${r[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}function en(e,t,r){if(!(r===void 0?!pc():!!r))return"";let o=t&&t.message?t.message:String(t);return is`<div data-webjs-error="${e}" style="border:1px solid #f5c2c7;background:#f8d7da;color:#842029;padding:8px 12px;border-radius:6px;font:13px/1.4 system-ui,sans-serif">
1
+ var Il=Object.defineProperty;var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var is=(e,t)=>{for(var r in t)Il(e,r,{get:t[r],enumerable:!0})};function as(e,...t){return{_$webjs:"template",strings:e,values:t}}function z(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var F,$t=T(()=>{F="wjm-"});function Rr(e){return Object.prototype.hasOwnProperty.call(Ht,e)}var Ht,Vn=T(()=>{Ht=Object.freeze({"@":"event",".":"prop","?":"bool"})});function Wn(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function H(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}var ot=T(()=>{});function Dl(e){ls=e}function zn(e){if(typeof e!="function")return null;let t=e[ia];return typeof t=="string"&&t?t:null}async function Or(e){let t=zn(e);if(t)return t;if(typeof e!="function"||!ls)return null;try{let r=await ls(e);return typeof r=="string"&&r?r:null}catch{return null}}function st(e,t,r){if(typeof e!="function")return!1;let n=String(t).toLowerCase(),o=String(r||"").toLowerCase();return n==="action"?o==="form":n==="formaction"?o==="button"||o==="input":!1}function Ut(e,t,r=!0){if(!e||e===$&&r)return;let n=e===$?'a second "name" attribute':`name="${e}"`;throw new Error(`[webjs] formaction=\${action} on <${t||"button"}> cannot be used when the element already carries a "name" attribute (found ${n}). The action identity is submitted as the button's own name/value pair, so there is no room for a second one. Move the action to the enclosing <form action=\${action}> or drop the submitter's "name".`)}function us(e,t){let r=String(e||"").toLowerCase(),n=t==null?null:String(t).toLowerCase();if(Ml(r,n)){if(r==="input"&&n==="image")throw new Error('[webjs] formaction=${action} is not supported on <input type="image"> because image submitters submit coordinate pairs (name.x/name.y) instead of name=value, so the action identity would never arrive. Use a <button> instead.');if(r==="input")throw new Error('[webjs] formaction=${action} is not supported on <input type="submit"> because the action identity has to occupy the submitter\'s "value", which on this control is also its visible label, so the button would render captioned with the action\'s id and could not be given a real one. Use <button formaction=${action}>Publish</button>, whose label is its children.');return}throw new Error(`[webjs] formaction=\${action} on <${r}>${n?` type="${n}"`:""} requires a submitter control, and formaction is inert on anything else. Use <button formaction=\${action}>.`)}function Ml(e,t){let r=t==null?null:String(t).toLowerCase();return e==="button"?r==null||r===""||r==="submit":e==="input"?r==="submit"||r==="image":!1}function Vt(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used when the element already carries a "value" attribute. The action identity is submitted as the button's own name/value pair, so both halves are taken. Drop the "value", or dispatch on it from one form-level action instead.`)}function fs(e){throw new Error(`[webjs] a bound formaction=\${action} on <${e||"button"}> cannot also carry a plain formaction attribute: the two name different targets and the renderers resolve them differently. Drop the static attribute.`)}function Wt(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used with a "form" attribute, which re-points the submitter at a form other than the bound one it sits in. Keep the submitter inside its bound <form>.`)}function zt(e,t){if(e)throw new Error(`[webjs] two formaction=\${action} holes were found on one <${t||"button"}>. Only one can win, and the two renderers pick differently, so bind exactly one action per submitter.`)}function ds(e,t){let n=(e||[]).filter(o=>Kt(o))[0];if(n)throw new Error(`[webjs] a <${t||"button"}> submitter binds .${n}=. That property is a reflected IDL attribute on a submitter, so a property binding is dropped at SSR and written to the attribute in the browser: the page would render on the server and throw on hydration. Write it as a plain attribute.`)}function Kt(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function Fl(e,t,r){let n=t==null?null:String(t),o=r==null?null:String(r);if(n!=null&&/^dialog$/i.test(n))throw new Error(`[webjs] formaction=\${action} on <${e}> cannot be combined with formmethod="dialog", which dismisses a <dialog> instead of submitting, so the bound action would never run. Drop one of the two.`);if(n!=null&&!/^post$/i.test(n))throw new Error(`[webjs] <${e} formmethod="${n}" formaction=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${n}" submission sends none, so the action would never run. Drop the formmethod attribute (WebJs emits formmethod="post" on a bound submitter), or drop the binding.`);if(o!=null&&!aa.has(o.toLowerCase()))throw new Error(`[webjs] <${e} formenctype="${o}" formaction=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${o}" body is neither, so the bound action could never read it. Drop the formenctype attribute (WebJs emits multipart/form-data on a bound submitter).`)}function ae(e,t,r){if(Kn(e)&&zl(t))throw new Error(Kl(t,r))}function jr(e,t,r){Wl(t,r)&&ae(e,t,r)}function $e(e,t){if(e)return e;let r=t==="button"||t==="input"?"formaction=":"action=";throw new Error(`[webjs] the function in ${r} on <${t||"form"}> is not a server action. Only a function imported from a 'use server' *.server.{js,ts} module can be bound to a form or a submitter, because the identity the browser submits has to resolve back to something the server can run. Move the handler into a server action and import it, or pass a url string.`)}function $l(e,t){if(e!=null&&!/^post$/i.test(e))throw new Error(`[webjs] <form method="${e}" action=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${e}" form sends no body. Drop the method attribute (WebJs emits method="post") or remove the bound action.`);if(t!=null&&!aa.has(t.toLowerCase()))throw new Error(`[webjs] <form enctype="${t}" action=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${t}" body is neither, so the submission would run under JS and do nothing without it. Drop the enctype attribute (WebJs emits multipart/form-data).`)}function ps(e,t){let r=Gt(e);Pr({staticAction:r.has("action")});let n=ca(r.has("method")?r.get("method"):G,r.has("enctype")?r.get("enctype"):G),o=e.endsWith("/>")?"/>":">",s=e.slice(0,e.length-o.length),i="";return n.method!==null&&(i+=` method="${n.method}"`),n.enctype!==null&&(i+=` enctype="${n.enctype}"`),{tag:s+i+o,hidden:Bl(t)}}function Pr(e){if(e.duplicateAction)throw new Error("[webjs] two action=${...} holes were found on one <form>. A form can carry only one action binding. Move one to a submit button's formaction=${action} or remove the duplicate.");if(e.staticAction)throw new Error('[webjs] a bound <form action=${action}> also carries a plain action="..." attribute. A bound form posts to the page\'s own url, so the two say different things: without JS the browser would post to the written url and with JS it would not. Drop the action attribute, or drop the binding.');let t=e.propAttrs&&e.propAttrs[0];if(t)throw new Error(`[webjs] a bound <form action=\${action}> also binds .${t}=. A property binding on a native element is dropped at SSR and applied in the browser, so the form would submit one way with JS and another way without it. Write it as a plain attribute.`)}function ca(e,t){let r=e!==G&&e!=null,n=t!==G&&t!=null;return $l(r?e:null,n?t:null),{method:r?null:"post",enctype:n?null:"multipart/form-data"}}function ms(e,t,r){let n=t!==G&&t!=null,o=r!==G&&r!=null;return Fl(e,n?t:null,o?r:null),{formMethod:n?null:"post",formEnctype:o?null:"multipart/form-data"}}function hs(e,t,r){Ul(e,t,r);let n=Gt(e),o=ms(t,n.has("formmethod")?n.get("formmethod"):G,n.has("formenctype")?n.get("formenctype"):G),s=e.endsWith("/>")?"/>":">",i=e.slice(0,e.length-s.length),a="";return o.formMethod!==null&&(a+=` formmethod="${o.formMethod}"`),o.formEnctype!==null&&(a+=` formenctype="${o.formEnctype}"`),i+a+s}function Bl(e){return`<input type="hidden" name="${$}" value="${H(e)}">`}function la(e,t,r,n,o){let s=typeof t=="function"?zn(t):null;if(!s){typeof t=="function"&&$e(null,e.localName),Vl(e,r,n,o.propAttrs);return}Pr(o);let i=ca(r,n);e.removeAttribute("action"),Lr(e,"method",r,i.method),Lr(e,"enctype",n,i.enctype),Hl(e,s)}function Lr(e,t,r,n){if(n!==null){e.setAttribute(t,n);return}r!==G&&e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Hl(e,t){let r=e.firstElementChild,n=r&&r.localName==="input"&&r.getAttribute("name")===$?r:null;if(!n){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===$){n=o;break}}n||(n=e.ownerDocument.createElement("input"),n.setAttribute("type","hidden"),n.setAttribute("name",$),e.insertBefore(n,e.firstChild)),n.getAttribute("value")!==t&&n.setAttribute("value",t)}function Ul(e,t,r){let n=Gt(e),o=n.has("type")?n.get("type"):null;ds(r.propAttrs,t),zt(!!r.duplicateAction,t),n.has("formaction")&&fs(t),sa(e,"value")>1&&Vt(t),sa(e,"name")>1&&Ut(n.get("name")||$,t,!1),us(t,o),n.has("form")&&Wt(t)}function Vl(e,t,r,n){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===$)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===$){i.remove();break}let s=i=>(n||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===G&&!s("method")&&e.removeAttribute("method"),r===G&&!s("enctype")&&e.removeAttribute("enctype")}function ua(e,t,r,n){let o=s=>(n||[]).some(i=>String(i).toLowerCase()===s);t===G&&!o("formmethod")&&e.removeAttribute("formmethod"),r===G&&!o("formenctype")&&e.removeAttribute("formenctype")}function Gt(e){return new Map(fa(e))}function fa(e){let t=[],r=1;for(;r<e.length&&!/[\s/>]/.test(e[r]);)r++;for(;r<e.length;){for(;r<e.length&&/[\s/]/.test(e[r]);)r++;if(r>=e.length||e[r]===">")break;let n="";for(;r<e.length&&!/[\s/>=]/.test(e[r]);)n+=e[r++];for(;r<e.length&&/\s/.test(e[r]);)r++;if(e[r]!=="="){n&&t.push([n.toLowerCase(),""]);continue}for(r++;r<e.length&&/\s/.test(e[r]);)r++;let o="",s=e[r];if(s==='"'||s==="'"){for(r++;r<e.length&&e[r]!==s;)o+=e[r++];r++}else for(;r<e.length&&!/[\s>]/.test(e[r]);)o+=e[r++];n&&t.push([n.toLowerCase(),o])}return t}function sa(e,t){let r=String(t).toLowerCase();return fa(e).filter(([n])=>n===r).length}function Wl(e,t){let r=String(e).toLowerCase();Rr(r[0])&&(r=r.slice(1));let n=String(t||"").toLowerCase();return r==="action"?n==="form":r==="formaction"?n==="button"||n==="input":!1}function Kn(e,t){if(typeof e=="function")return!0;if(!Array.isArray(e))return!1;let r=t||new Set;return r.has(e)?!1:(r.add(e),e.some(n=>Kn(n,r)))}function zl(e){let t=String(e).toLowerCase();return Rr(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function Kl(e,t){return`[webjs] a function was interpolated into ${String(e).toLowerCase()}= on <${t||"form"}>. Stringifying a function into HTML would leak its source (a 'use server' action's body included) to every visitor, so this is refused. To run a server action from a form, write an unquoted action=\${action} on the <form> itself or a formaction=\${action} on a <button> inside a bound form. Anywhere else, pass a URL string.`}var $,ia,ls,aa,G,Ce=T(()=>{Vn();ot();$="__webjs_action",ia="$$webjsAction",ls=null;aa=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);G=Symbol("webjs.attr.absent")});function pa(e,t,r){return{[da]:!0,items:[...e],keyFn:t,templateFn:r}}function it(e){return!!e&&typeof e=="object"&&e[da]===!0}var da,Ir=T(()=>{da=Symbol.for("webjs.repeat")});function gs(e){return{_$webjs:"unsafe-html",value:String(e??"")}}function Yt(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function Gl(e){return{_$webjs:"live",value:e}}function J(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function Yl(e,t){return{_$webjs:"keyed",key:e,value:t}}function at(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function Jl(e,t){return{_$webjs:"guard",deps:e,fn:t}}function ct(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function Zl(e){return{_$webjs:"template-content",template:e}}function Jt(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function Xl(e){return{_$webjs:"ref",target:e}}function lt(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function Ql(){return{value:void 0}}function eu(e){return{_$webjs:"cache",value:e}}function ut(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function tu(...e){return{_$webjs:"until",args:e}}function ft(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function ru(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function Zt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function nu(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function Xt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function ou(e){return{_$webjs:"watch",signal:e}}function dt(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}var Qt=T(()=>{Ir()});var R,L,K,Z,bs,Be,pt,ys,ma,U,ws,we,O,He=T(()=>{R=Symbol("webjs.slot.state"),L="data-webjs-light",K="data-projection",Z="actual",bs="fallback",Be=Symbol("webjs.slot.fallbackFrag"),pt=Symbol("webjs.slot.templateOwner"),ys="data-wj-slot-owner",ma=64,U=Symbol("webjs.slot.rendering"),ws=Symbol("webjs.slot.intercepted"),we=Symbol("webjs.slot.park"),O=new WeakSet});function X(e){let t=e,r=t[R];return r||(r={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[R]=r),r}function qr(e){return!!e[R]}function Ss(e){let t=X(e);for(;e.firstChild;){let r=e.firstChild;t.authored.push(r),O.add(r),e.removeChild(r)}Se(t)}function Se(e){let t=e.assignedByName;t.clear();for(let r of e.authored)su(t,Ue(e,r),r)}function Ue(e,t){let r=Mr(e,t);if(r)return te(r.getAttribute("name"));if(e.adoptedKey){let n=e.adoptedKey.get(t);if(n!==void 0)return n}return ha(t)}function _s(e){let t=X(e);t.adopted=!0;let r=new Set,n=e.querySelectorAll(`slot[${L}]`);for(let o of n){let s=o;if(!ee(e,s)||s.getAttribute(K)!==Z||er(t,e,s))continue;let i=te(s.getAttribute("name"));if(!r.has(i)){r.add(i);let a=Array.from(s.childNodes);for(let c of a)t.authored.push(c),ha(c)!==i&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(c,i));t.lastSnapshot.set(s,a.slice())}}for(let o of e.querySelectorAll("wj-slot-park"))if(ee(e,o)){for(let s of Array.from(o.childNodes))O.add(s),t.authored.push(s);o.remove()}Se(t)}function te(e){return e==null||e===""||e==="default"?null:e}function ha(e){return e.nodeType!==1?null:te(e.getAttribute("slot"))}function su(e,t,r){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(r)}var mt=T(()=>{gt();Dr();ht();He()});function ga(){_e||!ce||(_e=Node.prototype.appendChild,As=Node.prototype.insertBefore,Ve=Node.prototype.removeChild,Gn=Node.prototype.replaceChild,xs=Element.prototype.append,vs=Element.prototype.prepend,Es=Element.prototype.replaceChildren,Fr=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),Yn=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function bt(e,t){let r=e[U];e[U]=!0;try{return t()}finally{e[U]=r,r||Jn(e)}}function Ts(e){if(!ce)return;let t=e,r=X(e);r.backstop||(r.backstop=new MutationObserver(n=>$r(e,r,n)),r.backstop.observe(e,{childList:!0,subtree:!1}),r.flipSensor=new MutationObserver(n=>ba(e,n)),r.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function $r(e,t,r){let n=e,o=n[we],s=n[Symbol.for("webjs.instance")],i=!1,a=new Set;for(let c of r){for(let l of c.addedNodes)if(a.add(l),l!==o&&!(s&&Cs(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}O.add(l),t.authored.push(l),i=!0}for(let l of c.removedNodes){let u=t.authored.indexOf(l);if(u===-1||e.contains(l))continue;O.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&oe(e)}function Jn(e){let t=e,r=t[R];if(!(r&&r.backstop))return;let n=r.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&$r(e,r,n)}function ba(e,t){let r=e[R];if(!r)return;let n=!1;for(let o of t){if(o.type!=="attributes")continue;let s=o.target;o.attributeName==="name"?s.tagName==="SLOT"&&s.hasAttribute(L)&&ee(e,s)&&(n=!0):o.attributeName==="slot"&&(r.adoptedKey&&r.adoptedKey.delete(s),r.authored.indexOf(s)!==-1&&(n=!0))}n&&oe(e)}function ks(e){let t=e[R];t&&(t.backstop&&($r(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(ba(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function Ns(e){if(!ce)return;let t=e,r=t[R];if(!r)return;let n=t[Symbol.for("webjs.instance")],o=Symbol.for("webjs.instance")in t,s=!o&&r.adopted===!0,i=!1;for(let a of Array.from(e.childNodes))if(a!==t[we]){if(r.authored.indexOf(a)!==-1){i=!0;continue}o&&(!n||Cs(n,a))||!o&&s||(O.add(a),r.authored.push(a),i=!0)}i&&oe(e)}var _e,As,Ve,Gn,xs,vs,Es,Fr,Yn,Zn=T(()=>{gt();Dr();ht();Br();mt();He();_e=null,As=null,Ve=null,Gn=null,xs=null,vs=null,Es=null,Fr=null,Yn=null});function Cs(e,t){if(!e||!e.startNode||!e.endNode)return!1;if(t===e.startNode||t===e.endNode)return!0;for(let r=e.startNode.nextSibling;r&&r!==e.endNode;r=r.nextSibling)if(r===t)return!0;return!1}function ya(e){let t=e,r=t[we];return(!r||!r.isConnected)&&(r||(r=e.ownerDocument.createElement("wj-slot-park"),r.setAttribute("hidden",""),r.style.display="none",t[we]=r),bt(e,()=>_e.call(e,r))),r}function yt(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function Rs(e,t,r){if(r&&!yt(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!yt(t))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");if(t&&t.nodeType===11){let n=Array.from(t.childNodes);Xn(e,n);for(let o of n)Ve.call(t,o);return n}return Xn(e,[t]),[t]}function Xn(e,t){tr(e,t);for(let r of t){if(!yt(r))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");let n=r.nodeType;if(n!==1&&n!==3&&n!==4&&n!==7&&n!==8&&n!==11)throw new DOMException("Failed to execute insertion on the host: the node type may not be inserted here.","HierarchyRequestError")}}function tr(e,t){for(let r of t)if(r===e||r.nodeType===1&&r.contains(e))throw new DOMException("Failed to execute insertion on the host: the new child contains the parent.","HierarchyRequestError")}function Ls(e,t,r){let n=e.authored;for(let s of t){let i=n.indexOf(s);i!==-1&&n.splice(i,1)}let o=r==null?n.length:n.indexOf(r);o===-1&&(o=n.length),n.splice(o,0,...t)}function Ps(e,t){let r=e[R];return r?er(r,e,t):!1}function er(e,t,r){for(let n=r;n&&n!==t;n=n.parentNode)if(e.authored.indexOf(n)!==-1)return!0;return!1}function Os(e,t){if(O.has(t))return!0;let r=t.parentNode;if(r==null)return!1;if(r===e||r===e[we])return!0;let n=e[R];return r.nodeType===1&&r.tagName==="SLOT"&&r.hasAttribute(L)&&(n&&n.lastSnapshot.has(r)||e.contains(r)&&ee(e,r))}function js(e,t){let r=[];for(let s of t)yt(s)?s.nodeType===11?r.push({frag:s}):r.push({node:s}):r.push({text:`${s}`});for(let s of r)s.frag?tr(e,Array.from(s.frag.childNodes)):s.node&&Xn(e,[s.node]);let n=e.ownerDocument.createDocumentFragment();for(let s of r)if(s.text!==void 0)_e.call(n,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);Xn(e,i);for(let a of i)_e.call(n,a)}else s.node&&(tr(e,[s.node]),_e.call(n,s.node));let o=Array.from(n.childNodes);tr(e,o);for(let s of o)Ve.call(n,s);return o}function Re(e,t,r){if(t.applying&&t.pendingRecordNodes)for(let n of r||[])t.pendingRecordNodes.add(n);else t.pendingRecordNodes=new Set(r||[]);if(t.adoptedKey&&r)for(let n of r)t.adoptedKey.delete(n);Se(t),oe(e)}function Is(e){if(!ce)return;let t=e;if(t[ws])return;ga(),t[ws]=!0;let r=X(e);t.appendChild=function(n){if(t[U])return _e.call(this,n);let o=Rs(e,n,!1);for(let s of o)O.add(s);return Ls(r,o,null),Re(e,r,o),n},t.insertBefore=function(n,o){if(t[U])return As.call(this,n,o);if(!yt(n))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!yt(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(tr(e,n.nodeType===11?Array.from(n.childNodes):[n]),o!=null&&(r.authored.indexOf(o)===-1||!Os(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(n===o)return n;let s=Rs(e,n,!1);for(let i of s)O.add(i);return Ls(r,s,o||null),Re(e,r,s),n},t.removeChild=function(n){if(t[U])return Ve.call(this,n);let o=r.authored.indexOf(n);if(o===-1)return Ve.call(this,n);if(!Os(e,n))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return r.authored.splice(o,1),Re(e,r,[n]),n},t.replaceChild=function(n,o){if(t[U])return Gn.call(this,n,o);if(r.authored.indexOf(o)===-1)return Gn.call(this,n,o);if(!yt(n))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(tr(e,n.nodeType===11?Array.from(n.childNodes):[n]),!Os(e,o))throw new DOMException("replaceChild: the node to be replaced is not an assigned child of this host","NotFoundError");if(n===o)return o;let i=Rs(e,n,!1);for(let c of i)O.add(c);for(let c of i){if(c===o)continue;let l=r.authored.indexOf(c);l!==-1&&r.authored.splice(l,1)}let a=r.authored.indexOf(o);return r.authored.splice(a,1,...i),Re(e,r,[...i,o]),o},t.append=function(...n){if(t[U])return xs.apply(this,n);let o=js(e,n);for(let s of o)O.add(s);Ls(r,o,null),Re(e,r,o)},t.prepend=function(...n){if(t[U])return vs.apply(this,n);let o=js(e,n);for(let s of o)O.add(s);for(let s of o){let i=r.authored.indexOf(s);i!==-1&&r.authored.splice(i,1)}r.authored.unshift(...o),Re(e,r,o)},t.replaceChildren=function(...n){if(t[U])return Es.apply(this,n);let o=js(e,n);for(let i of o)O.add(i);let s=r.authored;r.authored=o.slice(),Re(e,r,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return Fr.get.call(this)},set(n){if(t[U]){Fr.set.call(this,n);return}let o=e.ownerDocument.createElement("div");Fr.set.call(o,n===null?"":`${n}`);let s=Array.from(o.childNodes);for(let a of s)O.add(a);let i=r.authored;r.authored=s,Re(e,r,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return Yn.get.call(this)},set(n){if(t[U]){Yn.set.call(this,n);return}let o=n==null||n===""?[]:[e.ownerDocument.createTextNode(`${n}`)];for(let i of o)O.add(i);let s=r.authored;r.authored=o,Re(e,r,[...s,...o])}})}var wa,Dr=T(()=>{gt();ht();Br();Zn();mt();He();wa=new Set});function We(e,t,r){let n=X(e),o=te(t),s=Array.isArray(r)?r.filter(Boolean):r?[r]:[],i=n.authored.findIndex(c=>Ue(n,c)===o),a=n.authored.filter(c=>Ue(n,c)===o);n.authored=n.authored.filter(c=>Ue(n,c)!==o),(i===-1||i>n.authored.length)&&(i=n.authored.length);for(let c of s)c.nodeType===1&&!Mr(n,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),O.add(c);if(n.authored.splice(i,0,...s),n.applying&&n.pendingRecordNodes){for(let c of a)n.pendingRecordNodes.add(c);for(let c of s)n.pendingRecordNodes.add(c)}else n.pendingRecordNodes=new Set([...a,...s]);if(n.adoptedKey){for(let c of a)n.adoptedKey.delete(c);for(let c of s)n.adoptedKey.delete(c)}Se(n),oe(e)}function oe(e){if(!ce)return;let t=e[R];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let r=t.pendingRecordNodes||wa;t.pendingRecordNodes=void 0,iu(e,t,r),au(e,t),Se(t);let n=[],o=new Set;for(let u of e.querySelectorAll(`slot[${L}]`))if(ee(e,u)&&!er(t,e,u)){if(!u.hasAttribute(K)&&!(Be in u)){o.add(te(u.getAttribute("name")));continue}n.push(u)}let s=new Map;for(let u of n){let f=te(u.getAttribute("name")),d=s.get(f);d||(d=[],s.set(f,d)),d.push(u)}let i=[];for(let[u,f]of s){let d=t.assignedByName.get(u)||[];for(let p=0;p<f.length;p++){let m=f[p],y=d.filter(S=>{let b=Mr(t,S);return b?b===m:p===0}),g=y.filter(S=>S===e||S.nodeType===1&&S.contains(e));if(g.length){for(let S of g)O.delete(S);y=y.filter(S=>g.indexOf(S)===-1)}y.length>0?qs(t,m,y)&&i.push(m):Ds(t,m)&&i.push(m)}}for(let u of i)Ms(t,u);let a=new Set(s.keys());for(let u of o)a.add(u);let c=new Set;for(let u of t.authored)a.has(Ue(t,u))||c.add(u);let l=e[we];if(l)for(let u of Array.from(l.childNodes))c.has(u)||Ve.call(l,u);if(c.size){let u=ya(e);for(let f of c)f.parentNode!==u&&(O.delete(f),bt(e,()=>_e.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&$r(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function iu(e,t,r){for(let n of e.querySelectorAll(`slot[${L}][${K}="${Z}"]`)){if(!ee(e,n)||er(t,e,n))continue;let o=n,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(Qn(i,s))continue;let a=t.authored,c=te(o.getAttribute("name")),l=i.filter(m=>!r.has(m));for(let m of l)a.indexOf(m)===-1&&Ue(t,m)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(m,c));for(let m of a){if(l.indexOf(m)!==-1||Ue(t,m)!==c)continue;let y=a.indexOf(m),g=0;for(let S=0;S<l.length;S++){let b=a.indexOf(l[S]);b!==-1&&b<y&&(g=S+1)}l.splice(g,0,m)}let u=new Set(l);for(let m of s)u.add(m);let f=-1,d=0;for(let m of a){if(u.has(m)){f===-1&&(f=d);continue}d+=1}let p=a.filter(m=>!u.has(m));(f===-1||f>p.length)&&(f=p.length),p.splice(f,0,...l),t.authored=p}}function au(e,t){let r=e[we];t.authored=t.authored.filter(n=>{if(O.has(n))return!0;let o=n.parentNode;return o==null?!1:!!(o===e||o===r||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(L)&&(t.lastSnapshot.has(o)||e.contains(o)&&ee(e,o)))})}var Br=T(()=>{gt();Dr();ht();Zn();mt();He()});function Aa(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function xa(){if(Sa||(ce=Aa(),!ce))return;Hr=HTMLSlotElement.prototype.assignedNodes,Fs=HTMLSlotElement.prototype.assignedElements,eo=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(r){return this.hasAttribute(L)&&!Bs(this)?Hs(this,r):Hr?Hr.call(this,r):[]},HTMLSlotElement.prototype.assignedElements=function(r){return this.hasAttribute(L)&&!Bs(this)?Hs(this,r).filter(n=>n.nodeType===1):Fs?Fs.call(this,r):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=eo&&eo.get?eo.get.call(this):null;return r||_a(this)}});let e=Object.getOwnPropertyDescriptor(Text.prototype,"assignedSlot");Object.defineProperty(Text.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=e&&e.get?e.get.call(this):null;return r||_a(this)}}),$s=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...r){if(this.hasAttribute(L)&&!Bs(this)){let n=cu(this);if(n){let o=X(n);o.manualAssign||(o.manualAssign=new Map);let s=r.filter(Boolean);for(let[i,a]of o.manualAssign){if(i===this)continue;let c=a.filter(l=>{let u=l.deref();return u!==void 0&&s.indexOf(u)===-1});c.length!==a.length&&(c.length?o.manualAssign.set(i,c):o.manualAssign.delete(i))}if(s.length?o.manualAssign.set(this,s.map(i=>new WeakRef(i))):o.manualAssign.delete(this),o.applying&&o.pendingRecordNodes)for(let i of s)o.pendingRecordNodes.add(i);else o.pendingRecordNodes=new Set(s);Se(o),oe(n)}return}return $s?$s.apply(this,r):void 0},Sa=!0}function Mr(e,t){let r=e.manualAssign;if(!r||!r.size)return null;for(let[n,o]of r){let s=!1,i=o.filter(a=>{let c=a.deref();return c===void 0?!1:(c===t&&(s=!0),!0)});if(i.length!==o.length&&(i.length?r.set(n,i):r.delete(n)),s){let a=e.host;return a&&(n===a||a.contains(n))?n:null}}return null}function cu(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[R])return ee(t,e)?t:null;return null}function Bs(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function Hs(e,t){if(e.getAttribute(K)!==Z)return[];let r=Array.from(e.childNodes);return!t||!t.flatten?r:Us(r,new Set,0)}function Us(e,t,r){if(r>=ma)return e.slice();let n=[];for(let o of e)if(o.nodeType===1&&o.tagName==="SLOT"){let s=o;if(t.has(s))continue;if(t.add(s),s.hasAttribute(L)){let i=Hs(s,{flatten:!1});if(i.length>0)for(let a of Us(i,t,r+1))n.push(a);else for(let a of Us(Array.from(s.childNodes),t,r+1))n.push(a)}else if(Hr){let i=Hr.call(s,{flatten:!0});for(let a of i)n.push(a)}else n.push(o)}else n.push(o);return n}function _a(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(L)&&t.getAttribute(K)===Z?t:null}var ce,Hr,Fs,eo,$s,Sa,ht=T(()=>{gt();Br();mt();He();ce=Aa(),Hr=null,Fs=null,eo=null,$s=null,Sa=!1;xa()});function Vs(e){if(!ce)return!1;for(let t of e.querySelectorAll(`slot[${L}][${K}]`))if(ee(e,t))return!0;return!1}function ee(e,t){let r=t[pt];if(r)return r===e;let n=typeof t.getAttribute=="function"?t.getAttribute(ys):null;if(n){let o=lu(t,n);if(o)return o===e}for(let o=t.parentElement;o&&o!==e;o=o.parentElement)if(o.tagName.includes("-"))return!1;return!0}function lu(e,t){let r=t.toLowerCase();for(let n=e.parentElement;n;n=n.parentElement)if(n.tagName.toLowerCase()===r)return n;return null}function qs(e,t,r){for(let l of r)O.delete(l);let n=t.getAttribute(K)!==Z,o=e.lastSnapshot.get(t)||[],s=n||!Qn(o,r);if(!n&&Qn(Array.from(t.childNodes),r))return e.lastSnapshot.set(t,r.slice()),s;let i=t[Be];if(n&&i)for(;t.firstChild;)i.appendChild(t.firstChild);let a=new Set(r);for(let l of Array.from(t.childNodes))a.has(l)||t.removeChild(l);let c=t.firstChild;for(let l of r){if(l===c){c=c.nextSibling;continue}t.insertBefore(l,c)}return t.setAttribute(K,Z),e.lastSnapshot.set(t,r.slice()),s}function Ds(e,t){let r=t.getAttribute(K)===Z;if(t.setAttribute(K,bs),!r)return va(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return va(t),!0}function va(e){let t=e[Be];!t||t.childNodes.length===0||e.appendChild(t)}function Ws(e,t){if(!qr(e))return;let r=X(e),n=te(t.getAttribute("name")),o=r.assignedByName.get(n);if(o)for(let s of o)s.parentNode===t&&(O.add(s),t.removeChild(s));r.lastSnapshot.delete(t)}function Ea(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function Ms(e,t){e.pendingSlotChanges||(e.pendingSlotChanges=new Set),e.pendingSlotChanges.add(t),!e.slotChangeScheduled&&(e.slotChangeScheduled=!0,queueMicrotask(()=>{e.slotChangeScheduled=!1;let r=e.pendingSlotChanges||new Set;e.pendingSlotChanges=new Set;for(let n of r)Ea(n)}))}function Qn(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var gt=T(()=>{ht();mt();He()});var wt=T(()=>{gt();Dr();ht();Br();Zn();mt();He()});function Ga(e,t,r){Ju.has(t)?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}async function Zr(e){return JSON.stringify(await Ya(e))}function Le(e){return Ja(JSON.parse(e))}async function Ya(e){let t=Zu();return await Xu(e,t),xt(e,t)}function Ja(e){return Ge(e,rf())}function Zu(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function Xu(e,t){let r=[e];for(;r.length;){let n=r.pop();if(!of(n))continue;let o=t.refCount.get(n)||0;if(t.refCount.set(n,o+1),!(o>0)){if(typeof Blob<"u"&&n instanceof Blob){let s=new Uint8Array(await n.arrayBuffer());t.blobBytes.set(n,s);continue}if(typeof FormData<"u"&&n instanceof FormData){let s=t.fdEntries.get(n)||[...n.entries()];t.fdEntries.set(n,s);for(let[,i]of s)typeof i!="string"&&r.push(i);continue}if(Array.isArray(n))for(let s=0;s<n.length;s++)r.push(n[s]);else if(n instanceof Map)for(let[s,i]of n)r.push(s),r.push(i);else if(n instanceof Set)for(let s of n)r.push(s);else if(sf(n))for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.push(n[s])}}for(let[n,o]of t.refCount)o>1&&t.idOf.set(n,t.nextId++)}function xt(e,t){if(e===null)return null;if(e===void 0)return{[B]:"undef"};let r=typeof e;if(r==="string"||r==="boolean")return e;if(r==="number")return Number.isNaN(e)?{[B]:"NaN"}:e===1/0?{[B]:"Inf"}:e===-1/0?{[B]:"-Inf"}:Object.is(e,-0)?{[B]:"-0"}:e;if(r==="bigint")return{[B]:"BigInt",v:e.toString()};if(r==="symbol"){let s=Symbol.keyFor(e);if(s===void 0)throw new TypeError("Cannot serialize a local Symbol; only Symbol.for() registered symbols are supported.");return{[B]:"Sym",v:s}}if(r==="function")throw new TypeError("Cannot serialize a function.");let n=t.idOf.get(e);if(n!==void 0&&t.emitted.has(n))return{[B]:"Ref",v:n};n!==void 0&&t.emitted.add(n);let o;if(e instanceof Date)o={[B]:"Date",v:Number.isNaN(e.getTime())?null:e.toISOString()};else if(e instanceof Error)o={[B]:"Error",v:{name:e.name,message:e.message,stack:e.stack||null}};else if(typeof Blob<"u"&&e instanceof Blob){let s=t.blobBytes.get(e);typeof File<"u"&&e instanceof File?o={[B]:"File",v:Jr(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[B]:"Blob",v:Jr(s),t:e.type||""}}else if(typeof FormData<"u"&&e instanceof FormData){let s=t.fdEntries.get(e)||[...e.entries()],i=[];for(let[a,c]of s)i.push([a,xt(c,t)]);o={[B]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=Qu(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([xt(i,t),xt(a,t)]);o={[B]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(xt(i,t));o={[B]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>xt(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=af(s)?"_"+s:s;Ga(o,i,xt(e[s],t))}}if(n!==void 0){if(Array.isArray(o))return{[B]:"Arr",_id:n,v:o};o._id=n}return o}function Qu(e){if(e instanceof ArrayBuffer)return{[B]:"buf",v:Jr(new Uint8Array(e))};if(e instanceof DataView)return{[B]:"dv",v:Jr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,r=ef[t];if(!r)throw new TypeError(`Unsupported typed array: ${t}`);let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[B]:r,v:Jr(n)}}function rf(){return{refs:new Map}}function Ge(e,t){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){let s=[];for(let i=0;i<e.length;i++)s.push(Ge(e[i],t));return s}let r=e[B];if(typeof r=="string")return nf(e,r,t);let n={},o=e._id;typeof o=="number"&&t.refs.set(o,n);for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||s==="_id")continue;let i=cf(s)?s.slice(1):s;Ga(n,i,Ge(e[s],t))}return n}function nf(e,t,r){let n=e._id,o=s=>(typeof n=="number"&&r.refs.set(n,s),s);switch(t){case"undef":return;case"NaN":return NaN;case"Inf":return 1/0;case"-Inf":return-1/0;case"-0":return-0;case"BigInt":return o(BigInt(e.v));case"Sym":return o(Symbol.for(e.v));case"Date":return o(e.v==null?new Date(NaN):new Date(e.v));case"Error":{let s=new Error(e.v.message);return s.name=e.v.name,e.v.stack&&(s.stack=e.v.stack),typeof n=="number"&&r.refs.set(n,s),s}case"Map":{let s=new Map;typeof n=="number"&&r.refs.set(n,s);for(let[i,a]of e.v)s.set(Ge(i,r),Ge(a,r));return s}case"Set":{let s=new Set;typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.add(Ge(i,r));return s}case"Arr":{let s=[];typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.push(Ge(i,r));return s}case"Ref":{let s=r.refs.get(e.v);if(s===void 0)throw new TypeError(`Dangling reference: id=${e.v}`);return s}case"Blob":{if(typeof Blob>"u")throw new TypeError("Blob is not available in this environment.");let s=Yr(e.v);return o(new Blob([s],{type:e.t||""}))}case"File":{if(typeof File>"u")throw new TypeError("File is not available in this environment.");let s=Yr(e.v);return o(new File([s],e.n,{type:e.t||"",lastModified:e.m}))}case"FD":{if(typeof FormData>"u")throw new TypeError("FormData is not available in this environment.");let s=new FormData;o(s);for(let[i,a]of e.v){let c=Ge(a,r);s.append(i,c)}return s}default:{if(t==="buf"){let i=Yr(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=Yr(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=tf[t];if(s){let i=Yr(e.v),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength);return o(new s(a))}throw new TypeError(`Unknown serialization tag: ${t}`)}}}function of(e){return e!==null&&typeof e=="object"}function sf(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function af(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function cf(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function Jr(e){if(Za)return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64");let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Yr(e){if(Za){let n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}var B,Ju,ef,tf,Za,vt=T(()=>{B="_$wj",Ju=new Set(["__proto__","constructor","prototype"]);ef={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},tf={i8:Int8Array,u8:Uint8Array,u8c:Uint8ClampedArray,i16:Int16Array,u16:Uint16Array,i32:Int32Array,u32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:typeof BigInt64Array<"u"?BigInt64Array:null,bu64:typeof BigUint64Array<"u"?BigUint64Array:null};Za=typeof Buffer<"u"&&typeof Buffer.from=="function"});function hf(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function yo(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}var Im,mi=T(()=>{Im=Symbol.for("webjs.suspense")});function sc(e){return gf.has(e.toLowerCase())}function hi(e,t){let r=t+4;if(e[r]===">")return r+1;if(e.startsWith("->",r))return r+2;for(;r<e.length;){if(e.startsWith("-->",r))return r+3;if(e.startsWith("--!>",r))return r+4;r+=1}return-1}function bf(e,t){let r=/<!--|-->|<\/script(?=[\s/>])|<script(?=[\s/>])/gi;r.lastIndex=t;let n=!1,o=!1,s;for(;(s=r.exec(e))!==null;){let i=s[0];if(i==="<!--"){let a=s.index+4;for(;e[a]==="-";)a+=1;e[a]===">"?(n=!1,o=!1,r.lastIndex=a+1):n||(n=!0)}else if(i==="-->")n=!1,o=!1;else if(i[1]==="/")if(o)o=!1;else return s.index;else n&&(o=!0)}return-1}function lr(e){let t=[],r=e.length,n=0;for(;n<r;){let o=e.indexOf("<",n);if(o===-1)break;if(e.startsWith("<!--",o)){let p=hi(e,o),m=p===-1?r:p;t.push([o,m]),n=m;continue}if(e.startsWith("<!",o)||e.startsWith("<?",o)){let p=e.indexOf(">",o),m=p===-1?r:p+1;t.push([o,m]),n=m;continue}let s=/^<\/?([a-zA-Z][^\s/>]*)/.exec(e.slice(o,o+64));if(!s){if(e.startsWith("</",o)){let p=e.indexOf(">",o),m=p===-1?r:p+1;t.push([o,m]),n=m;continue}n=o+1;continue}let i=o+1,a="",c=!1,l=!1,u=!1;for(;i<r;){let p=e[i],m=p===" "||p===" "||p===`
2
+ `||p==="\r"||p==="\f";if(a)p===a&&(a="");else if(p===">"){u=!l&&e[i-1]==="/",i+=1;break}else c?m||(p==='"'||p==="'"?a=p:l=!0,c=!1):l?m&&(l=!1):p==="="&&(c=!0);i+=1}i>o+1&&t.push([o+1,i]),n=i;let f=s[1].toLowerCase();if(!(e[o+1]==="/")&&!u&&Sf(f)){let p;if(f==="plaintext")p=r;else if(f==="script"){let m=bf(e,i);p=m===-1?r:m}else{let m=new RegExp(`</${f}(?=[\\s/>])`,"i").exec(e.slice(i));p=m?i+m.index:r}p>i&&t.push([i,p]),n=p}}return t}function yf(e,t){for(let[r,n]of e){if(r>t)return!1;if(t<n)return!0}return!1}function en(e){let t=0;return r=>{for(;t<e.length&&e[t][1]<=r;)t+=1;return t>=e.length?!1:r>=e[t][0]}}function Et(e,t,r,n){let o=Tt(r),s=new RegExp(`<${o}(?:[\\s>/])`,"gi"),i=new RegExp(`</${o}\\s*>`,"gi"),a=n===void 0?lr(e):n,c=u=>{let f;for(;(f=u.exec(e))!==null;)if(a.length===0||!yf(a,f.index))return f;return null};s.lastIndex=t,i.lastIndex=t;let l=1;for(;l>0;){let u=c(s),f=c(i);if(!f)return-1;if(u&&u.index<f.index)l++,i.lastIndex=u.index+1;else{if(l--,l===0)return f.index;s.lastIndex=f.index+1}}return-1}function Tt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wo(e){return e==="script"||e==="style"}function wf(e){return e==="textarea"||e==="title"}function Sf(e){return wo(e)||wf(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}var gf,So=T(()=>{gf=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"])});var ic,ac,cc=T(()=>{ic={AElig:198,AMP:38,Aacute:193,Abreve:258,Acirc:194,Acy:1040,Afr:120068,Agrave:192,Alpha:913,Amacr:256,And:10835,Aogon:260,Aopf:120120,ApplyFunction:8289,Aring:197,Ascr:119964,Assign:8788,Atilde:195,Auml:196,Backslash:8726,Barv:10983,Barwed:8966,Bcy:1041,Because:8757,Bernoullis:8492,Beta:914,Bfr:120069,Bopf:120121,Breve:728,Bscr:8492,Bumpeq:8782,CHcy:1063,COPY:169,Cacute:262,Cap:8914,CapitalDifferentialD:8517,Cayleys:8493,Ccaron:268,Ccedil:199,Ccirc:264,Cconint:8752,Cdot:266,Cedilla:184,CenterDot:183,Cfr:8493,Chi:935,CircleDot:8857,CircleMinus:8854,CirclePlus:8853,CircleTimes:8855,ClockwiseContourIntegral:8754,CloseCurlyDoubleQuote:8221,CloseCurlyQuote:8217,Colon:8759,Colone:10868,Congruent:8801,Conint:8751,ContourIntegral:8750,Copf:8450,Coproduct:8720,CounterClockwiseContourIntegral:8755,Cross:10799,Cscr:119966,Cup:8915,CupCap:8781,DD:8517,DDotrahd:10513,DJcy:1026,DScy:1029,DZcy:1039,Dagger:8225,Darr:8609,Dashv:10980,Dcaron:270,Dcy:1044,Del:8711,Delta:916,Dfr:120071,DiacriticalAcute:180,DiacriticalDot:729,DiacriticalDoubleAcute:733,DiacriticalGrave:96,DiacriticalTilde:732,Diamond:8900,DifferentialD:8518,Dopf:120123,Dot:168,DotDot:8412,DotEqual:8784,DoubleContourIntegral:8751,DoubleDot:168,DoubleDownArrow:8659,DoubleLeftArrow:8656,DoubleLeftRightArrow:8660,DoubleLeftTee:10980,DoubleLongLeftArrow:10232,DoubleLongLeftRightArrow:10234,DoubleLongRightArrow:10233,DoubleRightArrow:8658,DoubleRightTee:8872,DoubleUpArrow:8657,DoubleUpDownArrow:8661,DoubleVerticalBar:8741,DownArrow:8595,DownArrowBar:10515,DownArrowUpArrow:8693,DownBreve:785,DownLeftRightVector:10576,DownLeftTeeVector:10590,DownLeftVector:8637,DownLeftVectorBar:10582,DownRightTeeVector:10591,DownRightVector:8641,DownRightVectorBar:10583,DownTee:8868,DownTeeArrow:8615,Downarrow:8659,Dscr:119967,Dstrok:272,ENG:330,ETH:208,Eacute:201,Ecaron:282,Ecirc:202,Ecy:1069,Edot:278,Efr:120072,Egrave:200,Element:8712,Emacr:274,EmptySmallSquare:9723,EmptyVerySmallSquare:9643,Eogon:280,Eopf:120124,Epsilon:917,Equal:10869,EqualTilde:8770,Equilibrium:8652,Escr:8496,Esim:10867,Eta:919,Euml:203,Exists:8707,ExponentialE:8519,Fcy:1060,Ffr:120073,FilledSmallSquare:9724,FilledVerySmallSquare:9642,Fopf:120125,ForAll:8704,Fouriertrf:8497,Fscr:8497,GJcy:1027,GT:62,Gamma:915,Gammad:988,Gbreve:286,Gcedil:290,Gcirc:284,Gcy:1043,Gdot:288,Gfr:120074,Gg:8921,Gopf:120126,GreaterEqual:8805,GreaterEqualLess:8923,GreaterFullEqual:8807,GreaterGreater:10914,GreaterLess:8823,GreaterSlantEqual:10878,GreaterTilde:8819,Gscr:119970,Gt:8811,HARDcy:1066,Hacek:711,Hat:94,Hcirc:292,Hfr:8460,HilbertSpace:8459,Hopf:8461,HorizontalLine:9472,Hscr:8459,Hstrok:294,HumpDownHump:8782,HumpEqual:8783,IEcy:1045,IJlig:306,IOcy:1025,Iacute:205,Icirc:206,Icy:1048,Idot:304,Ifr:8465,Igrave:204,Im:8465,Imacr:298,ImaginaryI:8520,Implies:8658,Int:8748,Integral:8747,Intersection:8898,InvisibleComma:8291,InvisibleTimes:8290,Iogon:302,Iopf:120128,Iota:921,Iscr:8464,Itilde:296,Iukcy:1030,Iuml:207,Jcirc:308,Jcy:1049,Jfr:120077,Jopf:120129,Jscr:119973,Jsercy:1032,Jukcy:1028,KHcy:1061,KJcy:1036,Kappa:922,Kcedil:310,Kcy:1050,Kfr:120078,Kopf:120130,Kscr:119974,LJcy:1033,LT:60,Lacute:313,Lambda:923,Lang:10218,Laplacetrf:8466,Larr:8606,Lcaron:317,Lcedil:315,Lcy:1051,LeftAngleBracket:10216,LeftArrow:8592,LeftArrowBar:8676,LeftArrowRightArrow:8646,LeftCeiling:8968,LeftDoubleBracket:10214,LeftDownTeeVector:10593,LeftDownVector:8643,LeftDownVectorBar:10585,LeftFloor:8970,LeftRightArrow:8596,LeftRightVector:10574,LeftTee:8867,LeftTeeArrow:8612,LeftTeeVector:10586,LeftTriangle:8882,LeftTriangleBar:10703,LeftTriangleEqual:8884,LeftUpDownVector:10577,LeftUpTeeVector:10592,LeftUpVector:8639,LeftUpVectorBar:10584,LeftVector:8636,LeftVectorBar:10578,Leftarrow:8656,Leftrightarrow:8660,LessEqualGreater:8922,LessFullEqual:8806,LessGreater:8822,LessLess:10913,LessSlantEqual:10877,LessTilde:8818,Lfr:120079,Ll:8920,Lleftarrow:8666,Lmidot:319,LongLeftArrow:10229,LongLeftRightArrow:10231,LongRightArrow:10230,Longleftarrow:10232,Longleftrightarrow:10234,Longrightarrow:10233,Lopf:120131,LowerLeftArrow:8601,LowerRightArrow:8600,Lscr:8466,Lsh:8624,Lstrok:321,Lt:8810,Map:10501,Mcy:1052,MediumSpace:8287,Mellintrf:8499,Mfr:120080,MinusPlus:8723,Mopf:120132,Mscr:8499,Mu:924,NJcy:1034,Nacute:323,Ncaron:327,Ncedil:325,Ncy:1053,NegativeMediumSpace:8203,NegativeThickSpace:8203,NegativeThinSpace:8203,NegativeVeryThinSpace:8203,NestedGreaterGreater:8811,NestedLessLess:8810,NewLine:10,Nfr:120081,NoBreak:8288,NonBreakingSpace:160,Nopf:8469,Not:10988,NotCongruent:8802,NotCupCap:8813,NotDoubleVerticalBar:8742,NotElement:8713,NotEqual:8800,NotEqualTilde:[8770,824],NotExists:8708,NotGreater:8815,NotGreaterEqual:8817,NotGreaterFullEqual:[8807,824],NotGreaterGreater:[8811,824],NotGreaterLess:8825,NotGreaterSlantEqual:[10878,824],NotGreaterTilde:8821,NotHumpDownHump:[8782,824],NotHumpEqual:[8783,824],NotLeftTriangle:8938,NotLeftTriangleBar:[10703,824],NotLeftTriangleEqual:8940,NotLess:8814,NotLessEqual:8816,NotLessGreater:8824,NotLessLess:[8810,824],NotLessSlantEqual:[10877,824],NotLessTilde:8820,NotNestedGreaterGreater:[10914,824],NotNestedLessLess:[10913,824],NotPrecedes:8832,NotPrecedesEqual:[10927,824],NotPrecedesSlantEqual:8928,NotReverseElement:8716,NotRightTriangle:8939,NotRightTriangleBar:[10704,824],NotRightTriangleEqual:8941,NotSquareSubset:[8847,824],NotSquareSubsetEqual:8930,NotSquareSuperset:[8848,824],NotSquareSupersetEqual:8931,NotSubset:[8834,8402],NotSubsetEqual:8840,NotSucceeds:8833,NotSucceedsEqual:[10928,824],NotSucceedsSlantEqual:8929,NotSucceedsTilde:[8831,824],NotSuperset:[8835,8402],NotSupersetEqual:8841,NotTilde:8769,NotTildeEqual:8772,NotTildeFullEqual:8775,NotTildeTilde:8777,NotVerticalBar:8740,Nscr:119977,Ntilde:209,Nu:925,OElig:338,Oacute:211,Ocirc:212,Ocy:1054,Odblac:336,Ofr:120082,Ograve:210,Omacr:332,Omega:937,Omicron:927,Oopf:120134,OpenCurlyDoubleQuote:8220,OpenCurlyQuote:8216,Or:10836,Oscr:119978,Oslash:216,Otilde:213,Otimes:10807,Ouml:214,OverBar:8254,OverBrace:9182,OverBracket:9140,OverParenthesis:9180,PartialD:8706,Pcy:1055,Pfr:120083,Phi:934,Pi:928,PlusMinus:177,Poincareplane:8460,Popf:8473,Pr:10939,Precedes:8826,PrecedesEqual:10927,PrecedesSlantEqual:8828,PrecedesTilde:8830,Prime:8243,Product:8719,Proportion:8759,Proportional:8733,Pscr:119979,Psi:936,QUOT:34,Qfr:120084,Qopf:8474,Qscr:119980,RBarr:10512,REG:174,Racute:340,Rang:10219,Rarr:8608,Rarrtl:10518,Rcaron:344,Rcedil:342,Rcy:1056,Re:8476,ReverseElement:8715,ReverseEquilibrium:8651,ReverseUpEquilibrium:10607,Rfr:8476,Rho:929,RightAngleBracket:10217,RightArrow:8594,RightArrowBar:8677,RightArrowLeftArrow:8644,RightCeiling:8969,RightDoubleBracket:10215,RightDownTeeVector:10589,RightDownVector:8642,RightDownVectorBar:10581,RightFloor:8971,RightTee:8866,RightTeeArrow:8614,RightTeeVector:10587,RightTriangle:8883,RightTriangleBar:10704,RightTriangleEqual:8885,RightUpDownVector:10575,RightUpTeeVector:10588,RightUpVector:8638,RightUpVectorBar:10580,RightVector:8640,RightVectorBar:10579,Rightarrow:8658,Ropf:8477,RoundImplies:10608,Rrightarrow:8667,Rscr:8475,Rsh:8625,RuleDelayed:10740,SHCHcy:1065,SHcy:1064,SOFTcy:1068,Sacute:346,Sc:10940,Scaron:352,Scedil:350,Scirc:348,Scy:1057,Sfr:120086,ShortDownArrow:8595,ShortLeftArrow:8592,ShortRightArrow:8594,ShortUpArrow:8593,Sigma:931,SmallCircle:8728,Sopf:120138,Sqrt:8730,Square:9633,SquareIntersection:8851,SquareSubset:8847,SquareSubsetEqual:8849,SquareSuperset:8848,SquareSupersetEqual:8850,SquareUnion:8852,Sscr:119982,Star:8902,Sub:8912,Subset:8912,SubsetEqual:8838,Succeeds:8827,SucceedsEqual:10928,SucceedsSlantEqual:8829,SucceedsTilde:8831,SuchThat:8715,Sum:8721,Sup:8913,Superset:8835,SupersetEqual:8839,Supset:8913,THORN:222,TRADE:8482,TSHcy:1035,TScy:1062,Tab:9,Tau:932,Tcaron:356,Tcedil:354,Tcy:1058,Tfr:120087,Therefore:8756,Theta:920,ThickSpace:[8287,8202],ThinSpace:8201,Tilde:8764,TildeEqual:8771,TildeFullEqual:8773,TildeTilde:8776,Topf:120139,TripleDot:8411,Tscr:119983,Tstrok:358,Uacute:218,Uarr:8607,Uarrocir:10569,Ubrcy:1038,Ubreve:364,Ucirc:219,Ucy:1059,Udblac:368,Ufr:120088,Ugrave:217,Umacr:362,UnderBar:95,UnderBrace:9183,UnderBracket:9141,UnderParenthesis:9181,Union:8899,UnionPlus:8846,Uogon:370,Uopf:120140,UpArrow:8593,UpArrowBar:10514,UpArrowDownArrow:8645,UpDownArrow:8597,UpEquilibrium:10606,UpTee:8869,UpTeeArrow:8613,Uparrow:8657,Updownarrow:8661,UpperLeftArrow:8598,UpperRightArrow:8599,Upsi:978,Upsilon:933,Uring:366,Uscr:119984,Utilde:360,Uuml:220,VDash:8875,Vbar:10987,Vcy:1042,Vdash:8873,Vdashl:10982,Vee:8897,Verbar:8214,Vert:8214,VerticalBar:8739,VerticalLine:124,VerticalSeparator:10072,VerticalTilde:8768,VeryThinSpace:8202,Vfr:120089,Vopf:120141,Vscr:119985,Vvdash:8874,Wcirc:372,Wedge:8896,Wfr:120090,Wopf:120142,Wscr:119986,Xfr:120091,Xi:926,Xopf:120143,Xscr:119987,YAcy:1071,YIcy:1031,YUcy:1070,Yacute:221,Ycirc:374,Ycy:1067,Yfr:120092,Yopf:120144,Yscr:119988,Yuml:376,ZHcy:1046,Zacute:377,Zcaron:381,Zcy:1047,Zdot:379,ZeroWidthSpace:8203,Zeta:918,Zfr:8488,Zopf:8484,Zscr:119989,aacute:225,abreve:259,ac:8766,acE:[8766,819],acd:8767,acirc:226,acute:180,acy:1072,aelig:230,af:8289,afr:120094,agrave:224,alefsym:8501,aleph:8501,alpha:945,amacr:257,amalg:10815,amp:38,and:8743,andand:10837,andd:10844,andslope:10840,andv:10842,ang:8736,ange:10660,angle:8736,angmsd:8737,angmsdaa:10664,angmsdab:10665,angmsdac:10666,angmsdad:10667,angmsdae:10668,angmsdaf:10669,angmsdag:10670,angmsdah:10671,angrt:8735,angrtvb:8894,angrtvbd:10653,angsph:8738,angst:197,angzarr:9084,aogon:261,aopf:120146,ap:8776,apE:10864,apacir:10863,ape:8778,apid:8779,apos:39,approx:8776,approxeq:8778,aring:229,ascr:119990,ast:42,asymp:8776,asympeq:8781,atilde:227,auml:228,awconint:8755,awint:10769,bNot:10989,backcong:8780,backepsilon:1014,backprime:8245,backsim:8765,backsimeq:8909,barvee:8893,barwed:8965,barwedge:8965,bbrk:9141,bbrktbrk:9142,bcong:8780,bcy:1073,bdquo:8222,becaus:8757,because:8757,bemptyv:10672,bepsi:1014,bernou:8492,beta:946,beth:8502,between:8812,bfr:120095,bigcap:8898,bigcirc:9711,bigcup:8899,bigodot:10752,bigoplus:10753,bigotimes:10754,bigsqcup:10758,bigstar:9733,bigtriangledown:9661,bigtriangleup:9651,biguplus:10756,bigvee:8897,bigwedge:8896,bkarow:10509,blacklozenge:10731,blacksquare:9642,blacktriangle:9652,blacktriangledown:9662,blacktriangleleft:9666,blacktriangleright:9656,blank:9251,blk12:9618,blk14:9617,blk34:9619,block:9608,bne:[61,8421],bnequiv:[8801,8421],bnot:8976,bopf:120147,bot:8869,bottom:8869,bowtie:8904,boxDL:9559,boxDR:9556,boxDl:9558,boxDr:9555,boxH:9552,boxHD:9574,boxHU:9577,boxHd:9572,boxHu:9575,boxUL:9565,boxUR:9562,boxUl:9564,boxUr:9561,boxV:9553,boxVH:9580,boxVL:9571,boxVR:9568,boxVh:9579,boxVl:9570,boxVr:9567,boxbox:10697,boxdL:9557,boxdR:9554,boxdl:9488,boxdr:9484,boxh:9472,boxhD:9573,boxhU:9576,boxhd:9516,boxhu:9524,boxminus:8863,boxplus:8862,boxtimes:8864,boxuL:9563,boxuR:9560,boxul:9496,boxur:9492,boxv:9474,boxvH:9578,boxvL:9569,boxvR:9566,boxvh:9532,boxvl:9508,boxvr:9500,bprime:8245,breve:728,brvbar:166,bscr:119991,bsemi:8271,bsim:8765,bsime:8909,bsol:92,bsolb:10693,bsolhsub:10184,bull:8226,bullet:8226,bump:8782,bumpE:10926,bumpe:8783,bumpeq:8783,cacute:263,cap:8745,capand:10820,capbrcup:10825,capcap:10827,capcup:10823,capdot:10816,caps:[8745,65024],caret:8257,caron:711,ccaps:10829,ccaron:269,ccedil:231,ccirc:265,ccups:10828,ccupssm:10832,cdot:267,cedil:184,cemptyv:10674,cent:162,centerdot:183,cfr:120096,chcy:1095,check:10003,checkmark:10003,chi:967,cir:9675,cirE:10691,circ:710,circeq:8791,circlearrowleft:8634,circlearrowright:8635,circledR:174,circledS:9416,circledast:8859,circledcirc:8858,circleddash:8861,cire:8791,cirfnint:10768,cirmid:10991,cirscir:10690,clubs:9827,clubsuit:9827,colon:58,colone:8788,coloneq:8788,comma:44,commat:64,comp:8705,compfn:8728,complement:8705,complexes:8450,cong:8773,congdot:10861,conint:8750,copf:120148,coprod:8720,copy:169,copysr:8471,crarr:8629,cross:10007,cscr:119992,csub:10959,csube:10961,csup:10960,csupe:10962,ctdot:8943,cudarrl:10552,cudarrr:10549,cuepr:8926,cuesc:8927,cularr:8630,cularrp:10557,cup:8746,cupbrcap:10824,cupcap:10822,cupcup:10826,cupdot:8845,cupor:10821,cups:[8746,65024],curarr:8631,curarrm:10556,curlyeqprec:8926,curlyeqsucc:8927,curlyvee:8910,curlywedge:8911,curren:164,curvearrowleft:8630,curvearrowright:8631,cuvee:8910,cuwed:8911,cwconint:8754,cwint:8753,cylcty:9005,dArr:8659,dHar:10597,dagger:8224,daleth:8504,darr:8595,dash:8208,dashv:8867,dbkarow:10511,dblac:733,dcaron:271,dcy:1076,dd:8518,ddagger:8225,ddarr:8650,ddotseq:10871,deg:176,delta:948,demptyv:10673,dfisht:10623,dfr:120097,dharl:8643,dharr:8642,diam:8900,diamond:8900,diamondsuit:9830,diams:9830,die:168,digamma:989,disin:8946,div:247,divide:247,divideontimes:8903,divonx:8903,djcy:1106,dlcorn:8990,dlcrop:8973,dollar:36,dopf:120149,dot:729,doteq:8784,doteqdot:8785,dotminus:8760,dotplus:8724,dotsquare:8865,doublebarwedge:8966,downarrow:8595,downdownarrows:8650,downharpoonleft:8643,downharpoonright:8642,drbkarow:10512,drcorn:8991,drcrop:8972,dscr:119993,dscy:1109,dsol:10742,dstrok:273,dtdot:8945,dtri:9663,dtrif:9662,duarr:8693,duhar:10607,dwangle:10662,dzcy:1119,dzigrarr:10239,eDDot:10871,eDot:8785,eacute:233,easter:10862,ecaron:283,ecir:8790,ecirc:234,ecolon:8789,ecy:1101,edot:279,ee:8519,efDot:8786,efr:120098,eg:10906,egrave:232,egs:10902,egsdot:10904,el:10905,elinters:9191,ell:8467,els:10901,elsdot:10903,emacr:275,empty:8709,emptyset:8709,emptyv:8709,emsp:8195,emsp13:8196,emsp14:8197,eng:331,ensp:8194,eogon:281,eopf:120150,epar:8917,eparsl:10723,eplus:10865,epsi:949,epsilon:949,epsiv:1013,eqcirc:8790,eqcolon:8789,eqsim:8770,eqslantgtr:10902,eqslantless:10901,equals:61,equest:8799,equiv:8801,equivDD:10872,eqvparsl:10725,erDot:8787,erarr:10609,escr:8495,esdot:8784,esim:8770,eta:951,eth:240,euml:235,euro:8364,excl:33,exist:8707,expectation:8496,exponentiale:8519,fallingdotseq:8786,fcy:1092,female:9792,ffilig:64259,fflig:64256,ffllig:64260,ffr:120099,filig:64257,fjlig:[102,106],flat:9837,fllig:64258,fltns:9649,fnof:402,fopf:120151,forall:8704,fork:8916,forkv:10969,fpartint:10765,frac12:189,frac13:8531,frac14:188,frac15:8533,frac16:8537,frac18:8539,frac23:8532,frac25:8534,frac34:190,frac35:8535,frac38:8540,frac45:8536,frac56:8538,frac58:8541,frac78:8542,frasl:8260,frown:8994,fscr:119995,gE:8807,gEl:10892,gacute:501,gamma:947,gammad:989,gap:10886,gbreve:287,gcirc:285,gcy:1075,gdot:289,ge:8805,gel:8923,geq:8805,geqq:8807,geqslant:10878,ges:10878,gescc:10921,gesdot:10880,gesdoto:10882,gesdotol:10884,gesl:[8923,65024],gesles:10900,gfr:120100,gg:8811,ggg:8921,gimel:8503,gjcy:1107,gl:8823,glE:10898,gla:10917,glj:10916,gnE:8809,gnap:10890,gnapprox:10890,gne:10888,gneq:10888,gneqq:8809,gnsim:8935,gopf:120152,grave:96,gscr:8458,gsim:8819,gsime:10894,gsiml:10896,gt:62,gtcc:10919,gtcir:10874,gtdot:8919,gtlPar:10645,gtquest:10876,gtrapprox:10886,gtrarr:10616,gtrdot:8919,gtreqless:8923,gtreqqless:10892,gtrless:8823,gtrsim:8819,gvertneqq:[8809,65024],gvnE:[8809,65024],hArr:8660,hairsp:8202,half:189,hamilt:8459,hardcy:1098,harr:8596,harrcir:10568,harrw:8621,hbar:8463,hcirc:293,hearts:9829,heartsuit:9829,hellip:8230,hercon:8889,hfr:120101,hksearow:10533,hkswarow:10534,hoarr:8703,homtht:8763,hookleftarrow:8617,hookrightarrow:8618,hopf:120153,horbar:8213,hscr:119997,hslash:8463,hstrok:295,hybull:8259,hyphen:8208,iacute:237,ic:8291,icirc:238,icy:1080,iecy:1077,iexcl:161,iff:8660,ifr:120102,igrave:236,ii:8520,iiiint:10764,iiint:8749,iinfin:10716,iiota:8489,ijlig:307,imacr:299,image:8465,imagline:8464,imagpart:8465,imath:305,imof:8887,imped:437,in:8712,incare:8453,infin:8734,infintie:10717,inodot:305,int:8747,intcal:8890,integers:8484,intercal:8890,intlarhk:10775,intprod:10812,iocy:1105,iogon:303,iopf:120154,iota:953,iprod:10812,iquest:191,iscr:119998,isin:8712,isinE:8953,isindot:8949,isins:8948,isinsv:8947,isinv:8712,it:8290,itilde:297,iukcy:1110,iuml:239,jcirc:309,jcy:1081,jfr:120103,jmath:567,jopf:120155,jscr:119999,jsercy:1112,jukcy:1108,kappa:954,kappav:1008,kcedil:311,kcy:1082,kfr:120104,kgreen:312,khcy:1093,kjcy:1116,kopf:120156,kscr:12e4,lAarr:8666,lArr:8656,lAtail:10523,lBarr:10510,lE:8806,lEg:10891,lHar:10594,lacute:314,laemptyv:10676,lagran:8466,lambda:955,lang:10216,langd:10641,langle:10216,lap:10885,laquo:171,larr:8592,larrb:8676,larrbfs:10527,larrfs:10525,larrhk:8617,larrlp:8619,larrpl:10553,larrsim:10611,larrtl:8610,lat:10923,latail:10521,late:10925,lates:[10925,65024],lbarr:10508,lbbrk:10098,lbrace:123,lbrack:91,lbrke:10635,lbrksld:10639,lbrkslu:10637,lcaron:318,lcedil:316,lceil:8968,lcub:123,lcy:1083,ldca:10550,ldquo:8220,ldquor:8222,ldrdhar:10599,ldrushar:10571,ldsh:8626,le:8804,leftarrow:8592,leftarrowtail:8610,leftharpoondown:8637,leftharpoonup:8636,leftleftarrows:8647,leftrightarrow:8596,leftrightarrows:8646,leftrightharpoons:8651,leftrightsquigarrow:8621,leftthreetimes:8907,leg:8922,leq:8804,leqq:8806,leqslant:10877,les:10877,lescc:10920,lesdot:10879,lesdoto:10881,lesdotor:10883,lesg:[8922,65024],lesges:10899,lessapprox:10885,lessdot:8918,lesseqgtr:8922,lesseqqgtr:10891,lessgtr:8822,lesssim:8818,lfisht:10620,lfloor:8970,lfr:120105,lg:8822,lgE:10897,lhard:8637,lharu:8636,lharul:10602,lhblk:9604,ljcy:1113,ll:8810,llarr:8647,llcorner:8990,llhard:10603,lltri:9722,lmidot:320,lmoust:9136,lmoustache:9136,lnE:8808,lnap:10889,lnapprox:10889,lne:10887,lneq:10887,lneqq:8808,lnsim:8934,loang:10220,loarr:8701,lobrk:10214,longleftarrow:10229,longleftrightarrow:10231,longmapsto:10236,longrightarrow:10230,looparrowleft:8619,looparrowright:8620,lopar:10629,lopf:120157,loplus:10797,lotimes:10804,lowast:8727,lowbar:95,loz:9674,lozenge:9674,lozf:10731,lpar:40,lparlt:10643,lrarr:8646,lrcorner:8991,lrhar:8651,lrhard:10605,lrm:8206,lrtri:8895,lsaquo:8249,lscr:120001,lsh:8624,lsim:8818,lsime:10893,lsimg:10895,lsqb:91,lsquo:8216,lsquor:8218,lstrok:322,lt:60,ltcc:10918,ltcir:10873,ltdot:8918,lthree:8907,ltimes:8905,ltlarr:10614,ltquest:10875,ltrPar:10646,ltri:9667,ltrie:8884,ltrif:9666,lurdshar:10570,luruhar:10598,lvertneqq:[8808,65024],lvnE:[8808,65024],mDDot:8762,macr:175,male:9794,malt:10016,maltese:10016,map:8614,mapsto:8614,mapstodown:8615,mapstoleft:8612,mapstoup:8613,marker:9646,mcomma:10793,mcy:1084,mdash:8212,measuredangle:8737,mfr:120106,mho:8487,micro:181,mid:8739,midast:42,midcir:10992,middot:183,minus:8722,minusb:8863,minusd:8760,minusdu:10794,mlcp:10971,mldr:8230,mnplus:8723,models:8871,mopf:120158,mp:8723,mscr:120002,mstpos:8766,mu:956,multimap:8888,mumap:8888,nGg:[8921,824],nGt:[8811,8402],nGtv:[8811,824],nLeftarrow:8653,nLeftrightarrow:8654,nLl:[8920,824],nLt:[8810,8402],nLtv:[8810,824],nRightarrow:8655,nVDash:8879,nVdash:8878,nabla:8711,nacute:324,nang:[8736,8402],nap:8777,napE:[10864,824],napid:[8779,824],napos:329,napprox:8777,natur:9838,natural:9838,naturals:8469,nbsp:160,nbump:[8782,824],nbumpe:[8783,824],ncap:10819,ncaron:328,ncedil:326,ncong:8775,ncongdot:[10861,824],ncup:10818,ncy:1085,ndash:8211,ne:8800,neArr:8663,nearhk:10532,nearr:8599,nearrow:8599,nedot:[8784,824],nequiv:8802,nesear:10536,nesim:[8770,824],nexist:8708,nexists:8708,nfr:120107,ngE:[8807,824],nge:8817,ngeq:8817,ngeqq:[8807,824],ngeqslant:[10878,824],nges:[10878,824],ngsim:8821,ngt:8815,ngtr:8815,nhArr:8654,nharr:8622,nhpar:10994,ni:8715,nis:8956,nisd:8954,niv:8715,njcy:1114,nlArr:8653,nlE:[8806,824],nlarr:8602,nldr:8229,nle:8816,nleftarrow:8602,nleftrightarrow:8622,nleq:8816,nleqq:[8806,824],nleqslant:[10877,824],nles:[10877,824],nless:8814,nlsim:8820,nlt:8814,nltri:8938,nltrie:8940,nmid:8740,nopf:120159,not:172,notin:8713,notinE:[8953,824],notindot:[8949,824],notinva:8713,notinvb:8951,notinvc:8950,notni:8716,notniva:8716,notnivb:8958,notnivc:8957,npar:8742,nparallel:8742,nparsl:[11005,8421],npart:[8706,824],npolint:10772,npr:8832,nprcue:8928,npre:[10927,824],nprec:8832,npreceq:[10927,824],nrArr:8655,nrarr:8603,nrarrc:[10547,824],nrarrw:[8605,824],nrightarrow:8603,nrtri:8939,nrtrie:8941,nsc:8833,nsccue:8929,nsce:[10928,824],nscr:120003,nshortmid:8740,nshortparallel:8742,nsim:8769,nsime:8772,nsimeq:8772,nsmid:8740,nspar:8742,nsqsube:8930,nsqsupe:8931,nsub:8836,nsubE:[10949,824],nsube:8840,nsubset:[8834,8402],nsubseteq:8840,nsubseteqq:[10949,824],nsucc:8833,nsucceq:[10928,824],nsup:8837,nsupE:[10950,824],nsupe:8841,nsupset:[8835,8402],nsupseteq:8841,nsupseteqq:[10950,824],ntgl:8825,ntilde:241,ntlg:8824,ntriangleleft:8938,ntrianglelefteq:8940,ntriangleright:8939,ntrianglerighteq:8941,nu:957,num:35,numero:8470,numsp:8199,nvDash:8877,nvHarr:10500,nvap:[8781,8402],nvdash:8876,nvge:[8805,8402],nvgt:[62,8402],nvinfin:10718,nvlArr:10498,nvle:[8804,8402],nvlt:[60,8402],nvltrie:[8884,8402],nvrArr:10499,nvrtrie:[8885,8402],nvsim:[8764,8402],nwArr:8662,nwarhk:10531,nwarr:8598,nwarrow:8598,nwnear:10535,oS:9416,oacute:243,oast:8859,ocir:8858,ocirc:244,ocy:1086,odash:8861,odblac:337,odiv:10808,odot:8857,odsold:10684,oelig:339,ofcir:10687,ofr:120108,ogon:731,ograve:242,ogt:10689,ohbar:10677,ohm:937,oint:8750,olarr:8634,olcir:10686,olcross:10683,oline:8254,olt:10688,omacr:333,omega:969,omicron:959,omid:10678,ominus:8854,oopf:120160,opar:10679,operp:10681,oplus:8853,or:8744,orarr:8635,ord:10845,order:8500,orderof:8500,ordf:170,ordm:186,origof:8886,oror:10838,orslope:10839,orv:10843,oscr:8500,oslash:248,osol:8856,otilde:245,otimes:8855,otimesas:10806,ouml:246,ovbar:9021,par:8741,para:182,parallel:8741,parsim:10995,parsl:11005,part:8706,pcy:1087,percnt:37,period:46,permil:8240,perp:8869,pertenk:8241,pfr:120109,phi:966,phiv:981,phmmat:8499,phone:9742,pi:960,pitchfork:8916,piv:982,planck:8463,planckh:8462,plankv:8463,plus:43,plusacir:10787,plusb:8862,pluscir:10786,plusdo:8724,plusdu:10789,pluse:10866,plusmn:177,plussim:10790,plustwo:10791,pm:177,pointint:10773,popf:120161,pound:163,pr:8826,prE:10931,prap:10935,prcue:8828,pre:10927,prec:8826,precapprox:10935,preccurlyeq:8828,preceq:10927,precnapprox:10937,precneqq:10933,precnsim:8936,precsim:8830,prime:8242,primes:8473,prnE:10933,prnap:10937,prnsim:8936,prod:8719,profalar:9006,profline:8978,profsurf:8979,prop:8733,propto:8733,prsim:8830,prurel:8880,pscr:120005,psi:968,puncsp:8200,qfr:120110,qint:10764,qopf:120162,qprime:8279,qscr:120006,quaternions:8461,quatint:10774,quest:63,questeq:8799,quot:34,rAarr:8667,rArr:8658,rAtail:10524,rBarr:10511,rHar:10596,race:[8765,817],racute:341,radic:8730,raemptyv:10675,rang:10217,rangd:10642,range:10661,rangle:10217,raquo:187,rarr:8594,rarrap:10613,rarrb:8677,rarrbfs:10528,rarrc:10547,rarrfs:10526,rarrhk:8618,rarrlp:8620,rarrpl:10565,rarrsim:10612,rarrtl:8611,rarrw:8605,ratail:10522,ratio:8758,rationals:8474,rbarr:10509,rbbrk:10099,rbrace:125,rbrack:93,rbrke:10636,rbrksld:10638,rbrkslu:10640,rcaron:345,rcedil:343,rceil:8969,rcub:125,rcy:1088,rdca:10551,rdldhar:10601,rdquo:8221,rdquor:8221,rdsh:8627,real:8476,realine:8475,realpart:8476,reals:8477,rect:9645,reg:174,rfisht:10621,rfloor:8971,rfr:120111,rhard:8641,rharu:8640,rharul:10604,rho:961,rhov:1009,rightarrow:8594,rightarrowtail:8611,rightharpoondown:8641,rightharpoonup:8640,rightleftarrows:8644,rightleftharpoons:8652,rightrightarrows:8649,rightsquigarrow:8605,rightthreetimes:8908,ring:730,risingdotseq:8787,rlarr:8644,rlhar:8652,rlm:8207,rmoust:9137,rmoustache:9137,rnmid:10990,roang:10221,roarr:8702,robrk:10215,ropar:10630,ropf:120163,roplus:10798,rotimes:10805,rpar:41,rpargt:10644,rppolint:10770,rrarr:8649,rsaquo:8250,rscr:120007,rsh:8625,rsqb:93,rsquo:8217,rsquor:8217,rthree:8908,rtimes:8906,rtri:9657,rtrie:8885,rtrif:9656,rtriltri:10702,ruluhar:10600,rx:8478,sacute:347,sbquo:8218,sc:8827,scE:10932,scap:10936,scaron:353,sccue:8829,sce:10928,scedil:351,scirc:349,scnE:10934,scnap:10938,scnsim:8937,scpolint:10771,scsim:8831,scy:1089,sdot:8901,sdotb:8865,sdote:10854,seArr:8664,searhk:10533,searr:8600,searrow:8600,sect:167,semi:59,seswar:10537,setminus:8726,setmn:8726,sext:10038,sfr:120112,sfrown:8994,sharp:9839,shchcy:1097,shcy:1096,shortmid:8739,shortparallel:8741,shy:173,sigma:963,sigmaf:962,sigmav:962,sim:8764,simdot:10858,sime:8771,simeq:8771,simg:10910,simgE:10912,siml:10909,simlE:10911,simne:8774,simplus:10788,simrarr:10610,slarr:8592,smallsetminus:8726,smashp:10803,smeparsl:10724,smid:8739,smile:8995,smt:10922,smte:10924,smtes:[10924,65024],softcy:1100,sol:47,solb:10692,solbar:9023,sopf:120164,spades:9824,spadesuit:9824,spar:8741,sqcap:8851,sqcaps:[8851,65024],sqcup:8852,sqcups:[8852,65024],sqsub:8847,sqsube:8849,sqsubset:8847,sqsubseteq:8849,sqsup:8848,sqsupe:8850,sqsupset:8848,sqsupseteq:8850,squ:9633,square:9633,squarf:9642,squf:9642,srarr:8594,sscr:120008,ssetmn:8726,ssmile:8995,sstarf:8902,star:9734,starf:9733,straightepsilon:1013,straightphi:981,strns:175,sub:8834,subE:10949,subdot:10941,sube:8838,subedot:10947,submult:10945,subnE:10955,subne:8842,subplus:10943,subrarr:10617,subset:8834,subseteq:8838,subseteqq:10949,subsetneq:8842,subsetneqq:10955,subsim:10951,subsub:10965,subsup:10963,succ:8827,succapprox:10936,succcurlyeq:8829,succeq:10928,succnapprox:10938,succneqq:10934,succnsim:8937,succsim:8831,sum:8721,sung:9834,sup:8835,sup1:185,sup2:178,sup3:179,supE:10950,supdot:10942,supdsub:10968,supe:8839,supedot:10948,suphsol:10185,suphsub:10967,suplarr:10619,supmult:10946,supnE:10956,supne:8843,supplus:10944,supset:8835,supseteq:8839,supseteqq:10950,supsetneq:8843,supsetneqq:10956,supsim:10952,supsub:10964,supsup:10966,swArr:8665,swarhk:10534,swarr:8601,swarrow:8601,swnwar:10538,szlig:223,target:8982,tau:964,tbrk:9140,tcaron:357,tcedil:355,tcy:1090,tdot:8411,telrec:8981,tfr:120113,there4:8756,therefore:8756,theta:952,thetasym:977,thetav:977,thickapprox:8776,thicksim:8764,thinsp:8201,thkap:8776,thksim:8764,thorn:254,tilde:732,times:215,timesb:8864,timesbar:10801,timesd:10800,tint:8749,toea:10536,top:8868,topbot:9014,topcir:10993,topf:120165,topfork:10970,tosa:10537,tprime:8244,trade:8482,triangle:9653,triangledown:9663,triangleleft:9667,trianglelefteq:8884,triangleq:8796,triangleright:9657,trianglerighteq:8885,tridot:9708,trie:8796,triminus:10810,triplus:10809,trisb:10701,tritime:10811,trpezium:9186,tscr:120009,tscy:1094,tshcy:1115,tstrok:359,twixt:8812,twoheadleftarrow:8606,twoheadrightarrow:8608,uArr:8657,uHar:10595,uacute:250,uarr:8593,ubrcy:1118,ubreve:365,ucirc:251,ucy:1091,udarr:8645,udblac:369,udhar:10606,ufisht:10622,ufr:120114,ugrave:249,uharl:8639,uharr:8638,uhblk:9600,ulcorn:8988,ulcorner:8988,ulcrop:8975,ultri:9720,umacr:363,uml:168,uogon:371,uopf:120166,uparrow:8593,updownarrow:8597,upharpoonleft:8639,upharpoonright:8638,uplus:8846,upsi:965,upsih:978,upsilon:965,upuparrows:8648,urcorn:8989,urcorner:8989,urcrop:8974,uring:367,urtri:9721,uscr:120010,utdot:8944,utilde:361,utri:9653,utrif:9652,uuarr:8648,uuml:252,uwangle:10663,vArr:8661,vBar:10984,vBarv:10985,vDash:8872,vangrt:10652,varepsilon:1013,varkappa:1008,varnothing:8709,varphi:981,varpi:982,varpropto:8733,varr:8597,varrho:1009,varsigma:962,varsubsetneq:[8842,65024],varsubsetneqq:[10955,65024],varsupsetneq:[8843,65024],varsupsetneqq:[10956,65024],vartheta:977,vartriangleleft:8882,vartriangleright:8883,vcy:1074,vdash:8866,vee:8744,veebar:8891,veeeq:8794,vellip:8942,verbar:124,vert:124,vfr:120115,vltri:8882,vnsub:[8834,8402],vnsup:[8835,8402],vopf:120167,vprop:8733,vrtri:8883,vscr:120011,vsubnE:[10955,65024],vsubne:[8842,65024],vsupnE:[10956,65024],vsupne:[8843,65024],vzigzag:10650,wcirc:373,wedbar:10847,wedge:8743,wedgeq:8793,weierp:8472,wfr:120116,wopf:120168,wp:8472,wr:8768,wreath:8768,wscr:120012,xcap:8898,xcirc:9711,xcup:8899,xdtri:9661,xfr:120117,xhArr:10234,xharr:10231,xi:958,xlArr:10232,xlarr:10229,xmap:10236,xnis:8955,xodot:10752,xopf:120169,xoplus:10753,xotime:10754,xrArr:10233,xrarr:10230,xscr:120013,xsqcup:10758,xuplus:10756,xutri:9651,xvee:8897,xwedge:8896,yacute:253,yacy:1103,ycirc:375,ycy:1099,yen:165,yfr:120118,yicy:1111,yopf:120170,yscr:120014,yucy:1102,yuml:255,zacute:378,zcaron:382,zcy:1079,zdot:380,zeetrf:8488,zeta:950,zfr:120119,zhcy:1078,zigrarr:8669,zopf:120171,zscr:120015,zwj:8205,zwnj:8204},ac=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});function pc(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function mc(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ur(e){return e.indexOf("&")===-1?e:e.replace(_f,(t,r,n,o,s,i)=>r!==void 0?dc(parseInt(r,10)):n!==void 0?dc(parseInt(n,16)):xf(t,o,s===";",e[i+t.length]))}function xf(e,t,r,n){if(r){let o=uc.get(t);return o===void 0?e:fc(o)}return!Af.has(t)||n==="="?e:fc(uc.get(t))}function fc(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function dc(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":lc[e]!==void 0?String.fromCodePoint(lc[e]):String.fromCodePoint(e)}var lc,_f,uc,Af,_o=T(()=>{cc();lc={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},_f=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,uc=new Map(Object.entries(ic)),Af=new Set(ac)});var yc={};is(yc,{browserMemberHint:()=>gi,defaultSSRErrorTemplate:()=>tn,isProd:()=>hc,render:()=>P,renderTemplate:()=>gc,streamRender:()=>ne,streamTemplate:()=>bc});function hc(){return typeof process<"u"&&process.env&&!0}function gi(e){let t=e&&typeof e.message=="string"?e.message:"",r=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&r&&vf.has(r[1])?`\`${r[1]}\` is a browser-only global and is undefined during SSR.`:(r=/\.(\w+) is not a function\b/.exec(t),e instanceof TypeError&&r&&Ef.has(r[1])?`\`${r[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}function tn(e,t,r){if(!(r===void 0?!hc():!!r))return"";let o=t&&t.message?t.message:String(t);return as`<div data-webjs-error="${e}" style="border:1px solid #f5c2c7;background:#f8d7da;color:#842029;padding:8px 12px;border-radius:6px;font:13px/1.4 system-ui,sans-serif">
3
3
  <strong>&lt;${e}&gt; failed to render</strong>
4
4
  <div style="margin-top:4px;white-space:pre-wrap">${o}</div>
5
- </div>`}async function I(e,t){if(e==null||e===!1||e===!0)return"";if(e&&typeof e.then=="function")return e=await e,I(e,t);if(Ut(e))return String(e.value??"");if(Y(e))return I(e.value,t);if(at(e))return I(e.signal.get(),t);if(rt(e))return I(e.value,t);if(nt(e))return I(e.fn(),t);if(Vt(e)){let r=e.template;return String(r?.innerHTML??"")}if(ot(e))return"";if(st(e))return I(e.value,t);if(it(e)){let r=e.args;for(let n of r)if(!n||typeof n.then!="function")return I(n,t);if(r.length>0)try{let n=await Promise.race(r.map(o=>Promise.resolve(o).catch(()=>{})));return I(n,t)}catch{return""}return""}if(Wt(e)||zt(e))return"";if(Array.isArray(e))return(await Promise.all(e.map(n=>I(n,t)))).join("");if(tt(e)){let r=e;return(await Promise.all(r.items.map((o,s)=>I(r.templateFn(o,s),t)))).join("")}if(yo(e)){let r=e,n=await I(r.fallback,t);if(t){let o=`s${t.nextId++}`;return t.pending.push({id:o,promise:Promise.resolve(r.children)}),`<webjs-boundary id="${o}">${n}</webjs-boundary>`}return n}return W(e)?mc(e,t):Wn(String(e))}async function mc(e,t){let{strings:r,values:n}=e,o="",s="text",i="",a=0,c="",l=0,u="",f="",p=-1,d=null,m=null,g=0,w=[],_=[],b=()=>{let k=w,N=_,S=g>1,h=m;if(w=[],_=[],g=0,m=null,d!=null){jr({duplicateAction:S,propAttrs:k});let y=ds(o.slice(p),d);o=o.slice(0,p)+y.tag+y.hidden,d=null}h!=null&&(o=o.slice(0,p)+ms(o.slice(p),h,{duplicateAction:S,propAttrs:N}))},E=(k,N)=>{let S=String(N).toLowerCase();if(S==="button"||S==="input"){Bt(k)&&_.push(String(k));return}if(S!=="form")return;let h=String(k).toLowerCase();h==="encoding"&&(h="enctype"),(h==="method"||h==="enctype")&&w.push(String(k))},A=(k,N)=>{let S=String(N).toLowerCase(),h=String(k).toLowerCase();(S==="form"&&h==="action"||(S==="button"||S==="input")&&h==="formaction")&&(g+=1)},T=k=>{b(),s=k&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let k=0;k<r.length;k++){let N=r[k];for(let S=0;S<N.length;S++){let h=N[S];switch(s){case"text":o+=h,h==="<"&&(s="tag-open",p=o.length-1);break;case"tag-open":o+=h,h==="!"?s="bang-1":h==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(h)?(s="tag-name",u=h.toLowerCase()):s="text";break;case"bang-1":o+=h,s=h==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=h,h==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=h,h==="-"?l+=1:(h===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=h,h===">"?T(!0):/\s/.test(h)?s="in-tag":u+=h.toLowerCase();break;case"in-tag":o+=h,h===">"?T(!0):!/\s/.test(h)&&h!=="/"&&(s="attr-name",i=h,a=o.length-1);break;case"rawtext":o+=h,f=(f+h.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":h==="="?(s="after-eq",o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(i+=h,o+=h);break;case"after-eq":h==='"'||h==="'"?(s="attr-quoted",c=h,o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(s="attr-unquoted",o+=h);break;case"attr-unquoted":/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):o+=h;break;case"attr-quoted":o+=h,h===c&&(s="in-tag",i="");break}}if(k<n.length){let S=n[k];if(S&&typeof S.then=="function"&&(S=await S),Y(S)&&(S=S.value),s==="comment")o+=String(S??""),l=0;else if(s==="rawtext")o+=String(S??""),f="";else if(s==="text")o+=await I(S,t);else if(s==="after-eq"){let h=i[0],y=i.slice(1),C=qt[h];if(C==="event")o=o.slice(0,a),s="in-tag",i="";else if(C==="prop"){if(o=o.slice(0,a),u==="webjs-suspense"&&y==="fallback"){let x=await I(S,t);o+=`data-webjs-fallback="${H(x)}"`,s="in-tag",i="";continue}if(!u.includes("-")){Or(S,y,u),E(y,u),s="in-tag",i="";continue}if(S===void 0){s="in-tag",i="";continue}try{let x=await Jr(S);o+=`data-webjs-prop-${dc(y)}="${H(x)}"`}catch(x){console.warn(`[webjs] property binding .${y} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${x&&x.message}`)}s="in-tag",i=""}else if(C==="bool")ie(S,y,u),o=o.slice(0,a),S&&(o+=`${y}=""`),s="in-tag",i="";else if(et(S,i,u)){if(A(i,u),u==="form")d=Ie(await Lr(S),u),o=o.slice(0,a).replace(/\s+$/,"");else{$t(m!=null,u);let x=Ht(o.slice(p));x.has("name")&&Dt(x.get("name")||"",u,!1),x.has("value")&&Mt(u),x.has("form")&&Ft(u);let q=Ie(await Lr(S),u);m=u,o=o.slice(0,a)+`name="${F}" value="${H(q)}"`}s="in-tag",i=""}else A(i,u),ie(S,i,u),o+=`"${H(String(S??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ie(S,i,u),o+=H(String(S??"")))}}return o}async function te(e,t,r){if(!(e==null||e===!1||e===!0)){if(e&&typeof e.then=="function")return e=await e,te(e,t,r);if(Ut(e)){r.enqueue(String(e.value??""));return}if(Y(e))return te(e.value,t,r);if(at(e))return te(e.signal.get(),t,r);if(rt(e))return te(e.value,t,r);if(nt(e))return te(e.fn(),t,r);if(Vt(e)){let n=e.template;r.enqueue(String(n?.innerHTML??""));return}if(!ot(e)){if(st(e))return te(e.value,t,r);if(it(e)){let n=e.args;for(let o of n)if(!o||typeof o.then!="function")return te(o,t,r);if(n.length>0)try{let o=await Promise.race(n.map(s=>Promise.resolve(s).catch(()=>{})));return te(o,t,r)}catch{return}return}if(!(Wt(e)||zt(e))){if(Array.isArray(e)){for(let n of e)await te(n,t,r);return}if(tt(e)){let n=e;for(let o=0;o<n.items.length;o++)await te(n.templateFn(n.items[o],o),t,r);return}if(yo(e)){let n=e;if(t){let o=`s${t.nextId++}`;r.enqueue(`<webjs-boundary id="${o}">`),await te(n.fallback,t,r),r.enqueue("</webjs-boundary>"),t.pending.push({id:o,promise:Promise.resolve(n.children)})}else await te(n.fallback,t,r);return}if(W(e)){await hc(e,t,r);return}r.enqueue(Wn(String(e)))}}}}async function hc(e,t,r){let{strings:n,values:o}=e,s="text",i="",a=0,c="",l=0,u="",f="",p="",d=-1,m=null,g=0,w=[],_=[],b=null,E=()=>{let N=w,S=_,h=g>1,y=b;if(w=[],_=[],g=0,b=null,m!=null){jr({duplicateAction:h,propAttrs:N});let C=ds(p.slice(d),m);p=p.slice(0,d)+C.tag+C.hidden,m=null}y!=null&&(p=p.slice(0,d)+ms(p.slice(d),y,{duplicateAction:h,propAttrs:S}))},A=(N,S)=>{let h=String(S).toLowerCase();if(h==="button"||h==="input"){Bt(N)&&_.push(String(N));return}if(h!=="form")return;let y=String(N).toLowerCase();y==="encoding"&&(y="enctype"),(y==="method"||y==="enctype")&&w.push(String(N))},T=(N,S)=>{let h=String(S).toLowerCase(),y=String(N).toLowerCase();(h==="form"&&y==="action"||(h==="button"||h==="input")&&y==="formaction")&&(g+=1)},k=N=>{E(),s=N&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let N=0;N<n.length;N++){let S=n[N];for(let h=0;h<S.length;h++){let y=S[h];switch(s){case"text":p+=y,y==="<"&&(s="tag-open",d=p.length-1);break;case"tag-open":p+=y,y==="!"?s="bang-1":y==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(y)?(s="tag-name",u=y.toLowerCase()):s="text";break;case"bang-1":p+=y,s=y==="-"?"bang-dash":"tag-name";break;case"bang-dash":p+=y,y==="-"?(s="comment",l=0):s="tag-name";break;case"comment":p+=y,y==="-"?l+=1:(y===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":p+=y,y===">"?k(!0):/\s/.test(y)?s="in-tag":u+=y.toLowerCase();break;case"in-tag":p+=y,y===">"?k(!0):!/\s/.test(y)&&y!=="/"&&(s="attr-name",i=y,a=p.length-1);break;case"rawtext":p+=y,f=(f+y.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":y==="="?(s="after-eq",p+=y):/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,k(!1)):(i+=y,p+=y);break;case"after-eq":y==='"'||y==="'"?(s="attr-quoted",c=y,p+=y):/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,k(!1)):(s="attr-unquoted",p+=y);break;case"attr-unquoted":/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,k(!1)):p+=y;break;case"attr-quoted":p+=y,y===c&&(s="in-tag",i="");break}}if(N<o.length){let h=o[N];if(h&&typeof h.then=="function"&&(h=await h),Y(h)&&(h=h.value),s==="comment")p+=String(h??""),l=0;else if(s==="rawtext")p+=String(h??""),f="";else if(s==="text")p&&(r.enqueue(p),p=""),await te(h,t,r);else if(s==="after-eq"){let y=i[0],C=i.slice(1),x=qt[y];if(x==="event"||x==="prop")x==="prop"&&!u.includes("-")&&(Or(h,C,u),A(C,u)),p=p.slice(0,a),s="in-tag",i="";else if(x==="bool")ie(h,C,u),p=p.slice(0,a),h&&(p+=`${C}=""`),s="in-tag",i="";else if(et(h,i,u)){if(T(i,u),u==="form")m=Ie(await Lr(h),u),p=p.slice(0,a).replace(/\s+$/,"");else{$t(b!=null,u);let q=Ht(p.slice(d));q.has("name")&&Dt(q.get("name")||"",u,!1),q.has("value")&&Mt(u),q.has("form")&&Ft(u);let B=Ie(await Lr(h),u);b=u,p=p.slice(0,a)+`name="${F}" value="${H(B)}"`}s="in-tag",i=""}else T(i,u),ie(h,i,u),p+=`"${H(String(h??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ie(h,i,u),p+=H(String(h??"")))}}p&&r.enqueue(p)}var bf,yf,Ao=v(()=>{Pt();Vn();Qe();ke();Pr();pi();Kt();wt();So();_o();bf=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),yf=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"])});var Oc={};ss(Oc,{observeLazy:()=>If,observeViewportOnce:()=>Mf});function Lc(e){let t=_i.get(e);return t||(t=import(e).finally(()=>_i.delete(e)),_i.set(e,t),t)}function If(e){for(let[t,r]of Object.entries(e))Ve.set(t.toLowerCase(),r);if(typeof IntersectionObserver>"u"){for(let t of Ve.values())Lc(t);Ve.clear();return}rn||(rn=new IntersectionObserver(qf,{rootMargin:"200px"})),Rc(),!Si&&typeof MutationObserver<"u"&&(Si=new MutationObserver(()=>Rc()),Si.observe(document.body,{childList:!0,subtree:!0}))}function Rc(){if(!(!rn||!Ve.size))for(let e of Ve.keys()){if(customElements.get(e)){Ve.delete(e);continue}for(let t of document.querySelectorAll(e))rn.observe(t)}}function qf(e){for(let t of e){if(!t.isIntersecting)continue;let r=t.target.tagName.toLowerCase(),n=Ve.get(r);n&&(Lc(n),Ve.delete(r),rn?.unobserve(t.target))}}function Df(e){for(let t of e){if(!t.isIntersecting)continue;let r=xo.get(t.target);xo.delete(t.target),tn?.unobserve(t.target),r&&r()}}function Mf(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(tn||(tn=new IntersectionObserver(Df,{rootMargin:"200px"})),xo.set(e,t),tn.observe(e),()=>{xo.delete(e),tn?.unobserve(e)})}var Ve,rn,Si,_i,tn,xo,jc=v(()=>{Ve=new Map,rn=null,Si=null,_i=new Map;tn=null,xo=new WeakMap});var Ai,xi=v(()=>{Ai=typeof HTMLElement<"u"?class extends HTMLElement{constructor(){super(),this._webjsLoadedSrc=null,this._webjsLazyTeardown=null}static get observedAttributes(){return["src"]}connectedCallback(){this._webjsScheduleLoad()}disconnectedCallback(){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null)}attributeChangedCallback(t,r,n){t==="src"&&this.isConnected&&this._webjsScheduleLoad()}_webjsScheduleLoad(){let t=this.getAttribute("src");if(!t){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),this._webjsLoadedSrc=null;return}let r=t;try{r=new URL(t,location.href).href}catch{}if(r===this._webjsLoadedSrc)return;this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),(this.getAttribute("loading")||"eager").toLowerCase()==="lazy"?(this._webjsLoadedSrc=r,Promise.resolve().then(()=>(jc(),Oc)).then(({observeViewportOnce:o})=>{this._webjsLoadedSrc!==r||!this.isConnected||(this._webjsLazyTeardown=o(this,()=>{this._webjsLazyTeardown=null,this._webjsLoad(r)}))})):(this._webjsLoadedSrc=r,this._webjsLoad(r))}_webjsLoad(t){Promise.resolve().then(()=>(vi(),Pc)).then(({loadFrame:r})=>{this._webjsLoadedSrc!==t||!this.isConnected||r(this,t)})}}:null;typeof customElements<"u"&&Ai&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",Ai)});function $f(e,t,r){switch(e){case"append":r&&t.append(r);break;case"prepend":r&&t.prepend(r);break;case"before":r&&t.before(r);break;case"after":r&&t.after(r);break;case"replace":r&&t.replaceWith(r);break;case"update":r&&t.replaceChildren(r);break;case"remove":t.remove();break;default:break}}function Ti(e,t){let r=t||(typeof document<"u"?document:null);if(!r)return;let n=null;if(typeof e=="string"){let s=r.createElement("template");s.innerHTML=e,n=s.content}else if(e&&e.nodeType)n=e;else return;let o=n.querySelectorAll?Array.from(n.querySelectorAll("webjs-stream")):[];if(o.length)for(let s of o)r.body.append(s);else r.body.append(n)}var Ff,Ei,nn=v(()=>{Ff=new Set(["append","prepend","before","after","replace","update"]);Ei=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this._webjsApplied||(this._webjsApplied=!0,this._webjsApply())}_webjsApply(){let t=(this.getAttribute("action")||"").toLowerCase(),r=this.ownerDocument||document,n=[],o=this.getAttribute("target");if(o){let i=r.getElementById(o);i&&(n=[i])}else{let i=this.getAttribute("targets");if(i)try{n=Array.from(r.querySelectorAll(i))}catch{n=[]}}let s=Ff.has(t)?this.querySelector("template"):null;try{for(let i of n){let a=s?s.content.cloneNode(!0):null;$f(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&Ei&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",Ei)});var Ic,qc=v(()=>{Ic=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&Ic&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",Ic)});function vo(e,t){let r=typeof document<"u"?document:null,n=e||r;if(!n||typeof n.querySelectorAll!="function")return;if(t&&t.frame===!0){ki(n,!0);return}Fc();let o=n===r,s=!!r&&!o&&typeof r.contains=="function"&&r.contains(n),i=!!r&&!o&&!s;i&&(ki(r,!0),We.clear(),Ci.clear()),(o||i)&&(Ni=!0);let a=G.ingested+G.replaced;Uf(ki(n),a)}function ki(e,t){let r=null;for(let n of e.querySelectorAll('script[type="application/json"]#__webjs-seeds, script[type="application/json"][data-webjs-seeds]')){let o=Hf(n.getAttribute?.("data-webjs-dev"));o!==null&&(r=o),Dc(t?null:n.textContent,n)}for(let n of e.querySelectorAll("[data-webjs-seed]"))Dc(t?null:n.getAttribute("data-webjs-seed"),n,()=>n.removeAttribute("data-webjs-seed"));return r}function Dc(e,t,r){if(e)try{let n=Ce(e);if(n&&typeof n=="object")for(let o in n){We.has(o)?G.replaced++:G.ingested++,We.set(o,n[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&Ci.add(o.slice(0,s))}}catch{}r?r():t.remove?.()}function Hf(e){return typeof e!="string"?null:e||"ok"}function Uf(e,t){if(e===null)return;let r=++Bf;sr={epoch:r,hits:G.hits,misses:G.misses,keyMisses:G.keyMisses,merged:t,marker:e};let n=()=>{!sr||sr.epoch!==r||Fc()};try{typeof requestIdleCallback=="function"?requestIdleCallback(n,{timeout:1e3}):setTimeout(n,250)}catch{sr=null}}function Fc(){let e=sr;if(sr=null,!!e)try{Vf(e)}catch{}}function Vf(e){let t=G.hits-e.hits,r=G.misses-e.misses,n=G.ingested+G.replaced-e.merged,o=G.keyMisses-e.keyMisses;if(r===0)return;let s=e.marker==="streamed"?"This page streams (a Suspense or <webjs-suspense> boundary), and a streamed render emits no seeds, so every action call on it goes to the network.":e.marker==="drop"?"The page's seeds could not be serialized, so the whole block was dropped. Something an action returned is not serializer-safe; the server response reports collected above emitted.":o===0?null:"The key is the action file hash plus the function name plus the serialized arguments, so an argument the SSR render never used misses (a deliberate refetch after hydration misses too, and is expected). A miss on an action this page never seeded is NOT counted here, because a mutation or a client-only read could never have been seeded.";if(s===null)return;let a=e.marker==="streamed"||e.marker==="drop"?`${r} of ${t+r} action call(s) in the hydration window went to the network`:`${o} action call(s) in the hydration window asked for a key this page seeded under DIFFERENT arguments`;console.warn(`[webjs] SSR action seeding: ${a} (${n} seed(s) on this page, ${We.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function Wf(e,t,r){Ni||(Ni=!0,vo());let n=`${e}/${t}/${r}`;if(We.has(n)){let o=We.get(n);return We.delete(n),G.hits++,o}return G.misses++,Ci.has(`${e}/${t}`)&&G.keyMisses++,Mc}function zf(){return{...G,pending:We.size}}var We,Mc,Ni,G,Ci,sr,Bf,Eo=v(()=>{wt();We=new Map,Mc=Symbol("webjs.seed.miss"),Ni=!1,G={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},Ci=new Set,sr=null,Bf=0});function Ri(e){if(!(!Array.isArray(e)||!e.length)){To+=1;for(let t of e)t&&$c.set(t,To)}}function Gf(){return To}function Yf(e,t,r){if(!(!Array.isArray(t)||!t.length)&&(ir.delete(e),ir.set(e,{tags:t.slice(),since:typeof r=="number"?r:To}),ir.size>Kf)){let n=ir.keys().next().value;n!==void 0&&ir.delete(n)}}function Jf(e){let t=ir.get(e);if(!t)return!1;for(let r of t.tags)if(($c.get(r)||0)>t.since)return!0;return!1}function Li(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var To,$c,ir,Kf,ko=v(()=>{To=0,$c=new Map,ir=new Map,Kf=1e3});function Bc(e){return ar.test(e)}var Oi,ji,ar,on,At,cr,No,Hc,re=v(()=>{Oi="text/vnd.webjs-stream.html",ji=["wheel","touchmove","keydown","pointerdown"],ar=/\.(?:pdf|zip|tar|gz|7z|rar|dmg|exe|msi|deb|rpm|apk|ipa|xlsx?|docx?|pptx?|csv|odt|ods|odp|rtf|epub|mobi|xml|json|rss|atom|txt|md|wasm|mp3|mp4|mov|avi|webm|ogg|flac|wav|m4a|m4v|mkv|png|jpe?g|gif|webp|avif|bmp|ico|svg|tiff?|heic)$/i,on="_top",At="webjs:nav-fallback",cr=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]),No="name=csp-nonce";Hc=250});function ze(e,t,r="warn"){if(Pi.has(e)||(Pi.add(e),typeof console>"u"))return;let n=r==="error"?console.error:console.warn;n&&n.call(console,t)}function Vc(e,t,r,n){if(typeof process<"u"&&process.env||!n.has(F))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(r!=="post"){ze(`submit-nowhere:${o}:${r}`,`[webjs] this submission carries a bound server action's identity but submits as ${r.toUpperCase()}, which sends no body, so the identity rides the query string and the action never runs. A submitter's own formmethod overrides the form's, and WebJs honours it rather than refusing it, so check for a formmethod on the button that was pressed.`,"error");return}let s=t&&t.getAttribute("formenctype")||e.getAttribute("enctype")||"application/x-www-form-urlencoded";if(s.toLowerCase()==="text/plain"){ze(`submit-nowhere:${o}:${s}`,`[webjs] this submission carries a bound server action's identity but declares enctype="${s}", which the server cannot parse. The router declines to send it so both paths behave the same way, and both are answered with a 405. Drop the enctype and let the binding supply it.`,"error");return}o&&o!==location.pathname&&ze(`submit-elsewhere:${o}`,`[webjs] this submission carries a bound server action's identity but posts to "${o}" rather than this page, because the enclosing <form> declares its own action. A bound submitter emits no formaction, so the form's target wins, which is what native HTML does. The action runs only if "${o}" is a page route; against a route.ts or another origin the identity is ignored and nothing runs. Drop the form's action attribute to keep the submission on this page.`)}function qi(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function Co(e,t,r,n){if(e!=="navigate"||!t||n&&n===r)return!1;try{return new URL(t).origin===new URL(r).origin}catch{return!1}}function Wc(){if(typeof location>"u"||Uc)return;Uc=!0;let e=null;try{e=sessionStorage.getItem(At),sessionStorage.removeItem(At)}catch{}let t="";try{let r=performance.getEntriesByType("navigation")[0];t=r?r.type:""}catch{}Co(t,document.referrer,location.href,e)&&pe("pre-boot-navigation",location.href,!1)}function pe(e,t,r=!0){if(r)try{sessionStorage.setItem(At,t)}catch{}if(typeof document<"u"&&typeof CustomEvent<"u")try{document.dispatchEvent(new CustomEvent("webjs:navigation-fallback",{detail:{cause:e,href:t,willReload:r}}))}catch{}typeof process<"u"&&process.env||ze(`fallback:${e}`,r?`[webjs] client router fell back to a full page load (${e}) navigating to ${t}. This is correct (no DOM corruption), just not a soft nav.`:`[webjs] client router degraded a soft navigation (${e}) for ${t}, without a full page load.`)}function zc(e){typeof process<"u"&&process.env||ze(`stream-drop:${e}`,`[webjs] dropped a streamed Suspense resolve for "${e}": no #${e} boundary in the DOM. Benign if this navigation was superseded or degraded. A stuck skeleton here means the shell swap did not place the boundary.`)}function Kc(){if(typeof process<"u"&&process.env||Ii||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;Ii=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&ze("scroll-behavior-smooth-html","[webjs] Detected `scroll-behavior: smooth` on <html>. The client router scrolls to the top instantly on navigation (like a native page load), so route transitions are not affected by it. It still applies to in-page #anchor links. Pairing it with a sticky `backdrop-filter` header can also flash on iOS during navigation.")}function sn(e){if(typeof document>"u")return;let t=document.documentElement;if(!(!t||!t.hasAttribute("data-webjs-nav-progress")))try{e?t.setAttribute("data-navigating",""):t.removeAttribute("data-navigating")}catch{}}function Gc(){Pi.clear(),Ii=!1}function Yc(e,t){return qi(e,t)}var Pi,Uc,Ii,me=v(()=>{ke();re();Pi=new Set;Uc=!1;Ii=!1});function he(e){let t=new Map,r=[],n=!1;function o(s){if(!n){if(s.nodeType===8){let i=s.data.trim();if(i.startsWith("wj:children:")){let a=i.slice(12),c=a.lastIndexOf(":");if(c<=0||c===a.length-1){n=!0;return}let l=a.slice(0,c),u=a.slice(c+1);if(t.has(l)||r.some(f=>f.segment===l)){n=!0;return}r.push({segment:l,routeKey:u,start:s});return}if(i.startsWith("/wj:children")){let a=i.slice(12).replace(/^:/,""),c=r.pop();if(!c||c.segment!==a){n=!0;return}if(c.start.parentNode!==s.parentNode){n=!0;return}{let l=c.start.parentNode.tagName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TFOOT"||l==="TR"){n=!0;return}}t.set(c.segment,{routeKey:c.routeKey,start:c.start,end:s});return}return}if(s.hasChildNodes&&s.hasChildNodes())for(let i=s.firstChild;i&&!n;i=i.nextSibling)o(i)}}return o(e),n||r.length>0?null:t}function an(e,t){let r=[...e.keys()].filter(i=>t.has(i)).sort((i,a)=>i.length-a.length);if(r.length===0)return null;for(let i of r)if(e.get(i).routeKey!==t.get(i).routeKey){let a=null;for(let c of r){if(c===i)break;i.startsWith(c==="/"?c:c+"/")&&(a=c)}return a?{mode:"replace",segment:a,live:e.get(a),incoming:t.get(a)}:null}let n=r[r.length-1],o=i=>{let a=null;for(let c of i.keys())(a===null||c.length>a.length)&&(a=c);return a};return{mode:o(e)===n&&o(t)===n?"morph":"replace",segment:n,live:e.get(n),incoming:t.get(n)}}function Ae(){let e=he(document.body);return e?[...e.entries()].map(([t,r])=>`${t}:${r.routeKey}`).join(","):""}var Ke=v(()=>{});function Jc(e){xe=e||(t=>{location.href=t})}function Zc(){return V}function Xc(){return++V}function Ro(){return++V}function Di(e){oe=e}function Qc(e){cn=e}function el(e){let t=cn!==null&&cn===e;return cn=null,t}function Lo(){cn=null}var V,xe,oe,cn,Le=v(()=>{V=0,xe=e=>{location.href=e};oe=!1;cn=null});function xt(e){if(!/^\s*(?:<!doctype|<html)/i.test(e)&&typeof document<"u"&&document.implementation)try{let r=document.implementation.createHTMLDocument();if(typeof r.body.setHTMLUnsafe=="function")r.body.setHTMLUnsafe(e);else{let n=r.createElement("template");n.innerHTML=e,r.body.appendChild(n.content)}return r}catch{}return typeof Document<"u"&&typeof Document.parseHTMLUnsafe=="function"&&Zf()?Document.parseHTMLUnsafe(e):Xf(e)}function Zf(){if(lr!==null)return lr;try{lr=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{lr=!1}return lr}function Mi(){lr=null}function Xf(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}var lr,ln=v(()=>{lr=null});function Oo(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function Fi(e){let t=e;for(;t;){if(t instanceof HTMLAnchorElement)return t;let r=t.nodeType===1?t:null;if(r){let o=r.closest&&r.closest("a");if(o instanceof HTMLAnchorElement)return o}let n=t.getRootNode?t.getRootNode():null;t=n&&n.host?n.host:null}return null}var jo=v(()=>{});function un(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function fn(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function Qf(e){let t=String(e||"").toLowerCase();return t==="multipart/form-data"?"multipart/form-data":t==="text/plain"?"text/plain":"application/x-www-form-urlencoded"}function dn(e,t){return Qf(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function pn(e,t){if(t==="multipart/form-data")return e;let r=new URLSearchParams;for(let[n,o]of e)r.append(n,typeof o=="string"?o:o.name);return r}function mn(e,t){try{return new FormData(e,t||void 0)}catch{let r=new FormData(e);return t&&t.getAttribute("name")&&r.append(t.getAttribute("name"),t.getAttribute("value")||""),r}}var Po=v(()=>{});function tl(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function hn(e){let t=document.createElement("script");for(let n of e.attributes)n.name!=="nonce"&&t.setAttribute(n.name,n.value);let r=tl();return r&&t.setAttribute("nonce",r),t.textContent=e.textContent,t}function $i(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),r=tl();return r?t.setAttribute("nonce",r):t.removeAttribute("nonce"),t}function ve(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function Io(e){let t=e.getAttribute("name");if(t)return"name="+t;let r=e.getAttribute("property");if(r)return"property="+r;let n=e.getAttribute("http-equiv");return n?"http-equiv="+n:e.hasAttribute("charset")?"charset":null}function ed(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=Io(i);if(!a||a===No)continue;let c=s.get(a);c?c.push(i):s.set(a,[i])}return s},r=t(e),n=t(document.head);for(let[o,s]of r){let i=n.get(o)||[],a=s.map(ve).join(`
6
- `),c=i.map(ve).join(`
7
- `);if(a!==c){if(s.length===1&&i.length===1){let l=i[0];for(let u of[...l.attributes])l.removeAttribute(u.name);for(let u of s[0].attributes)l.setAttribute(u.name,u.value);continue}for(let l of i)l.remove();for(let l of s)document.head.appendChild($i(l))}}for(let[o,s]of n)if(!r.has(o))for(let i of s)i.remove()}function ur(e){let t=e.querySelector("title");t&&(document.title=t.textContent||"");let r=new Set;for(let n of document.head.children)r.add(ve(n));for(let n of e.children)n.tagName==="SCRIPT"&&n.getAttribute("type")==="importmap"||n.tagName!=="BASE"&&n.tagName!=="TITLE"&&(n.tagName==="META"&&Io(n)||r.has(ve(n))||(n.tagName==="SCRIPT"?document.head.appendChild(hn(n)):document.head.appendChild($i(n))));ed(e)}function td(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&(e.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}function gn(e){let t=document.head,r=e.querySelector("title");r&&(document.title=r.textContent||"");let n=new Set;for(let s of t.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&n.add(ve(s));let o=new Set;for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&o.add(ve(s));for(let s of[...t.children])s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(td(s)||s.tagName==="META"&&Io(s)===No||o.has(ve(s))||s.remove());for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&Io(s)===No||n.has(ve(s))||(s.tagName==="SCRIPT"?t.appendChild(hn(s)):t.appendChild($i(s))))}var bn=v(()=>{re()});function Mo(e){let t=e;for(;t;){let r=t.closest("webjs-frame");if(r&&r.id)return r.id;let n=t.getRootNode();if(n&&n.host)t=n.host;else break}return null}function ge(e){if(!e)return null;let t=e.closest&&e.closest("[data-webjs-frame]"),r=t?t.dataset?t.dataset.webjsFrame:t.getAttribute("data-webjs-frame"):null;if(r!=null&&r!==""){if(r===on)return null;let n=typeof document<"u"?document.getElementById(r):null;return n&&n.tagName&&n.tagName.toLowerCase()==="webjs-frame"?r:(ze(`webjs:frame-unresolved:${r}`,`[webjs] data-webjs-frame="${r}" did not match a live <webjs-frame id="${r}">; performing a normal navigation instead.`),null)}return Mo(e)}function Bi(e){if(!e||typeof document>"u")return null;let t=null;try{t=document.querySelector(`webjs-frame#${CSS.escape(e)}`)}catch{t=document.getElementById(e)}return!t||!t.tagName||t.tagName.toLowerCase()!=="webjs-frame"?null:t}function yn(e,t){let r=Bi(e);if(!r)return null;let n=qo.has(r);return qo.set(r,t),r.setAttribute("aria-busy","true"),n||r.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:e,busy:!0}})),r}function wn(e,t){if(qo.get(e)!==t)return;qo.delete(e),e.setAttribute("aria-busy","false");let r=e.id||null;e.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:r,busy:!1}}))}function Sn(e,t,r){let n=Do.has(e);return Do.set(e,t),e.setAttribute("aria-busy","true"),n||e.dispatchEvent(new CustomEvent("webjs:submit-start",{bubbles:!0,detail:{form:e,url:r}})),e}function _n(e,t,r,n){if(Do.get(e)!==t)return;Do.delete(e),e.setAttribute("aria-busy","false");let o=new CustomEvent("webjs:submit-end",{bubbles:!0,detail:{form:e,url:r,ok:!!n}});e.isConnected?e.dispatchEvent(o):typeof document<"u"?document.dispatchEvent(o):e.dispatchEvent(o)}function Hi(e){if(!e||!e.head)return"";let t=e.head.querySelectorAll('[data-webjs-track="reload"]');if(!t.length)return"";let r="";for(let n of t)r+=ve(n);return r}var qo,Do,Ge=v(()=>{re();me();bn();qo=new WeakMap;Do=new WeakMap});function ol(e,t){if(typeof document>"u"||!document.documentElement)return()=>{};ce&&ce();let r=document.documentElement,n=r.style.getPropertyValue("overflow-anchor");r.style.setProperty("overflow-anchor","none");let o=null,s=typeof t=="number",a=s&&typeof setTimeout=="function"?setTimeout(()=>{s=!1},Hc):null,c=typeof t=="number"&&typeof window<"u"?()=>{s&&(Math.abs(window.scrollY-t)<=1&&Math.abs(window.scrollX-(e||0))<=1||window.scrollTo({left:e||0,top:t,behavior:"instant"}))}:null,l=()=>{if(ce===l){if(ce=null,o&&(clearTimeout(o),o=null),a&&clearTimeout(a),s=!1,typeof window<"u"){for(let u of ji)window.removeEventListener(u,l,{capture:!0});c&&window.removeEventListener("scroll",c)}n?r.style.setProperty("overflow-anchor",n):r.style.removeProperty("overflow-anchor")}};if(ce=l,o=setTimeout(l,2e3),typeof window<"u"){for(let u of ji)window.addEventListener(u,l,{capture:!0,passive:!0});c&&window.addEventListener("scroll",c,{passive:!0})}return l}function sl(e){if(typeof document>"u"||!document.documentElement)return()=>{};if(le&&le(),!(e>0))return()=>{};let t=document.documentElement,r=t.style.getPropertyValue("min-height");t.style.setProperty("min-height",e+"px");let n=null,o=()=>{le===o&&(le=null,n&&(clearTimeout(n),n=null),r?t.style.setProperty("min-height",r):t.style.removeProperty("min-height"))};return le=o,n=setTimeout(o,2e3),o}function $o(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function Bo(){Fo+=1}function An(e,t){let r=rl(e)||rl(t);return r?(r.getAttribute("data-preserve-scroll")||"").toLowerCase().trim()!=="false":!1}function rl(e){return!e||typeof e.closest!="function"?null:e.closest("[data-preserve-scroll]")}var ce,le,Fo,Ho=v(()=>{re();ce=null;le=null;Fo=0});function Ui(e){if(!oe||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=Oo(e);if(!t||t.hasAttribute("download")||t.target&&t.target!=="_self")return;let r=t.href;if(!r)return;let n=new URL(r);if(n.origin!==location.origin)return;if(n.pathname===location.pathname&&n.search===location.search&&n.href.includes("#")){Qc(n.href);return}if(t.hasAttribute("data-no-router")||ar.test(n.pathname))return;e.preventDefault();let o=ge(t);xn(r,!1,o,{preserveScroll:An(t)})}function fr(e){il(location.href)||xn(location.href,!0,null)}function dr(e){if(!oe||e.defaultPrevented)return;let t=e.target;if(!t||t.nodeType!==1||t.tagName!=="FORM"||t.hasAttribute("data-no-router"))return;let r=e.submitter??null;if(r&&r.hasAttribute("data-no-router"))return;let n=r&&r.hasAttribute("formtarget")?r.getAttribute("formtarget")||"":t.getAttribute("target")||"";if(n&&n!=="_self")return;let o=un(t,r);if(o==="dialog")return;let s=dn(t,r),i=o==="get"||o==="head",a=fn(t,r),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||ar.test(c.pathname))return;let l=mn(t,r);if(Vc(t,r,o,l),!i&&s==="text/plain")return;let u=pn(l,s);e.preventDefault();let f=ge(r||t),p=An(r||t,t);al(c.href,o,u,f,t,{preserveScroll:p})}var Uo=v(()=>{jo();re();Le();me();Po();Ge();Ho();vn()});function Vi(e){let t=Ee(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),D.has(t)&&D.delete(t);let r={html:document.documentElement.outerHTML,scrollX:typeof window<"u"&&window.scrollX||0,scrollY:typeof window<"u"&&window.scrollY||0,scrollHeight:typeof document<"u"&&document.documentElement&&document.documentElement.scrollHeight||0};for(D.set(t,r);D.size>16;){let n=D.keys().next().value;D.delete(n)}}function cl(e){let t=Ee(e),r=D.get(t);return r==null?null:(D.delete(t),D.set(t,r),typeof r=="string"?{html:r,scrollX:0,scrollY:0,scrollHeight:0}:r)}function Ee(e,t){let r=new URL(e,location.href),n=r.pathname+r.search;return t?`${t} ${n}`:n}var D,pr=v(()=>{re();D=new Map});function cd(e){let t=Te.get(e);return t==null?!1:Cn()-t>=Wi?(Te.delete(e),!1):!0}function wr(){Te.clear()}function ld(e){for(Te.has(e)&&Te.delete(e),Te.set(e,Cn());Te.size>ad;)Te.delete(Te.keys().next().value)}function Rn(){try{let e=typeof navigator<"u"?navigator.connection:null;if(e&&(e.saveData===!0||typeof e.effectiveType=="string"&&/2g$/.test(e.effectiveType))||typeof matchMedia=="function"&&matchMedia("(prefers-reduced-data: reduce)").matches)return!0}catch{}return!1}function Vo(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function ud(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function br(e){if(!e||!(e instanceof HTMLAnchorElement)||e.hasAttribute("download")||e.hasAttribute("data-no-router")||e.target&&e.target!=="_self")return null;let t=e.href;if(!t)return null;let r;try{r=new URL(t)}catch{return null}return r.origin!==location.origin||r.pathname===location.pathname&&r.search===location.search&&r.href.includes("#")||ar.test(r.pathname)?null:t}function Wo(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=ud(e);return t.includes("external")||t.includes("no-prefetch")}function yr(e){if(Wo(e))return"none";switch((e.getAttribute("data-prefetch")||"").toLowerCase().trim()){case"false":case"none":return"none";case"true":case"render":return"render";case"auto":case"viewport":return"viewport";case"intent":return"intent";default:return Vo()?"intent":"viewport"}}function Je(e,t){if(!oe||typeof fetch!="function"||Rn())return;let r=Ee(e,t);if(typeof location<"u"&&r===Ee(location.href,t)||Oe.has(r)||En.has(r))return;let n=P.get(r);if(n&&Cn()-n.at<Wi||cd(r))return;if(Oe.size>=ll){for(En.add(r),hr.push({href:e,frameId:t||null});hr.length>od;){let i=hr.shift();En.delete(Ee(i.href,i.frameId))}return}let o=Ae();if(!o&&typeof document<"u"&&document.readyState==="loading")return;Oe.add(r);let s={"x-webjs-router":"1","x-webjs-prefetch":"1"};o&&(s["x-webjs-have"]=o),t&&(s["x-webjs-frame"]=t),fetch(e,{method:"GET",headers:s,credentials:"same-origin",cache:"no-cache"}).then(async i=>{let a=i.headers.get("content-type")||"";if(!/^text\/html\b/i.test(a)||i.status>=400)return;let c=i.headers.get("x-webjs-build"),l=i.headers.get("x-webjs-src"),u=typeof document<"u"?document.querySelector('script[type="importmap"]'):null,f=u?u.getAttribute("data-webjs-build"):null,p=u?u.getAttribute("data-webjs-src"):null;if((c&&f&&c!==f||l&&p&&l!==p)&&(D.clear(),Et(r),wr()),(i.headers.get("x-webjs-frame")||null)!==(t||null)){ld(r);return}let m=i.redirected&&i.url?i.url:e,g=await i.text();Nn.has(r)||dd(r,{html:g,build:c,src:l,finalUrl:m,frameId:t||null,at:Cn()})}).catch(()=>{}).finally(()=>{Oe.delete(r),Nn.delete(r),fd()})}function fd(){for(;hr.length&&Oe.size<ll;){let{href:e,frameId:t}=hr.shift();En.delete(Ee(e,t)),Je(e,t)}}function dd(e,t){for(P.has(e)&&P.delete(e),P.set(e,t);P.size>nd;){let r=P.keys().next().value;P.delete(r)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function zo(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function Ln(e,t,r){let n=Ee(e,r),o=P.get(n);if(!o)return null;if(Cn()-o.at>=Wi)return P.delete(n),null;if(o.frameId)return P.delete(n),Bi(o.frameId)?o:null;let s=zo(o.html);return s&&!new Set(String(t??(Ae()||"")).split(",").filter(Boolean)).has(s)?(P.delete(n),null):(P.delete(n),o)}function Cn(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function vt(e){if(!oe)return;let t=Fi(e.target);if(!t)return;let r=yr(t);if(r==="none"||r==="render")return;let n=br(t);if(n){if(e.type==="touchstart"){Je(n,ge(t));return}r==="intent"&&(Tn===t&&gr||(On(),Tn=t,gr=setTimeout(()=>{gr=null,Tn=null,Je(n,ge(t))},sd)))}}function zi(e){let t=Fi(e.target);t&&t===Tn&&On()}function On(){gr&&(clearTimeout(gr),gr=null),Tn=null}function Ko(){for(let e of kn)clearTimeout(e);kn.clear(),mr=new WeakMap}function Go(){if(typeof document>"u"||Rn())return;let e=typeof IntersectionObserver<"u";e&&(Ye?(Ye.disconnect(),Ko()):Ye=new IntersectionObserver(t=>{for(let r of t){let n=r.target;if(r.isIntersecting){if(mr.has(n))continue;let o=setTimeout(()=>{kn.delete(o),mr.delete(n),Ye.unobserve(n);let s=br(n);s&&yr(n)==="viewport"&&Je(s,ge(n))},id);mr.set(n,o),kn.add(o)}else{let o=mr.get(n);o&&(clearTimeout(o),kn.delete(o),mr.delete(n))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let r=yr(t);if(r==="render"){let n=br(t);n&&Je(n,ge(t))}else r==="viewport"&&e&&Ye.observe(t)}}function Et(e){P.clear();for(let t of Oe)t!==e&&Nn.add(t)}function ul(e,t){let r=Ee(e,t);P.delete(r),Oe.has(r)&&Nn.add(r)}function fl(e,t){return P.get(Ee(e,t))||null}function dl(){return Oe.size}function pl(){P.clear(),Te.clear(),Oe.clear(),Nn.clear(),hr.length=0,En.clear(),On(),Ko()}function ml(){Ye&&(Ye.disconnect(),Ye=null)}var nd,Wi,ll,od,sd,id,P,Te,ad,Oe,Nn,hr,En,gr,Tn,Ye,mr,kn,Tt=v(()=>{jo();Ke();re();Ge();Le();pr();nd=8,Wi=3e4,ll=3,od=24,sd=100,id=250,P=new Map,Te=new Map,ad=16;Oe=new Set,Nn=new Set,hr=[],En=new Set,gr=null,Tn=null,Ye=null,mr=new WeakMap,kn=new Set});function Ki(e){for(let t of e.querySelectorAll("template[data-webjs-resolve]")){let r=t.cloneNode(!0);document.body.appendChild(r);let n=r.getAttribute("data-webjs-resolve"),o=window.__webjsResolve;n&&typeof o=="function"&&o(n)}}async function jn(e){if(!e.body||typeof e.body.getReader!="function")return{shell:await e.text(),streaming:!1};let t=e.body.getReader(),r=new TextDecoder,n="",o="<template data-webjs-resolve",s="<!--wj-stream-shell-->",i=/<\/html\s*>/i;for(;;){let{value:a,done:c}=await t.read();a&&(n+=r.decode(a,{stream:!0})),c&&(n+=r.decode());let l=n.indexOf(s);if(l!==-1)return{shell:n.slice(0,l),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(l+s.length)};let u=n.indexOf(o);if(u!==-1)return{shell:n.slice(0,u),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(u)};if(c)return{shell:n,streaming:!1};let f=i.exec(n);if(f){let p=f.index+f[0].length;return{shell:n.slice(0,p),streaming:!0,reader:t,dec:r,rest:n.slice(p)}}}}function Yo(e){let t=/<template\s+data-webjs-resolve="([^"]+)"\s*>/i.exec(e);if(!t)return null;let r=t[1],n=t.index+t[0].length,o=/<(\/?)template\b[^>]*>/gi;o.lastIndex=n;let s=1,i;for(;i=o.exec(e);)if(i[1]==="/"){if(s--,s===0)return{id:r,content:e.slice(n,i.index),rest:e.slice(i.index+i[0].length)}}else s++;return null}function Jo(e,t){let r=document.getElementById(e);if(!r){zc(e);return}let n=document.createElement("template");n.innerHTML=t;let o=[...n.content.childNodes];r.replaceWith(n.content);for(let s of o)s.nodeType===1&&Zo(s)}async function Pn(e,t,r,n){let o=r,s=()=>{let i;for(;i=Yo(o);){if(!n())return!1;Jo(i.id,i.content),o=i.rest}return!0};if(!e){s();return}try{for(;;){if(!s()){try{await e.cancel()}catch{}return}let{value:i,done:a}=await e.read();if(i&&(o+=t.decode(i,{stream:!0})),a){o+=t.decode(),s();return}}}catch{}}var In=v(()=>{me();Sr()});function Ar(){if(typeof document>"u")return!1;let e=document.querySelector('meta[name="view-transition"]');return e?(e.getAttribute("content")||"").trim().toLowerCase()==="same-origin":!1}function kt(e,t){let r=typeof document<"u"?document.startViewTransition:void 0;if(Ar()&&typeof r=="function"){let n=r.call(document,e);return n&&n.finished&&typeof n.finished.then=="function"?n.finished.then(()=>{t&&t()}).catch(()=>{}):t&&t(),n&&n.updateCallbackDone&&typeof n.updateCallbackDone.then=="function"?n.updateCallbackDone.catch(()=>{}):Promise.resolve()}return e(),t&&t(),Promise.resolve()}function qn(e,t){if(!e||!t||typeof e.querySelectorAll!="function")return;let r=e.querySelectorAll("[data-webjs-permanent][id]");for(let n of r){let o=n.id;if(!o)continue;let s=null;try{s=t.querySelector(`#${CSS.escape(o)}`)}catch{s=null}if(!s||!n.hasAttribute||!n.hasAttribute("data-webjs-permanent"))continue;let i=s.parentNode;i&&s!==n&&(i.replaceChild(n,s),_r.add(n))}}function Nt(e,t){let r=[];for(let n of e){if(n.nodeType!==1)continue;let o=n;if(o.hasAttribute&&o.hasAttribute("data-webjs-permanent")&&o.id&&r.push(o),typeof o.querySelectorAll=="function")for(let s of o.querySelectorAll("[data-webjs-permanent][id]"))r.push(s)}if(r.length)for(let n of r){let o=n.id;if(!o)continue;let s=pd(t,o);if(!s||s===n)continue;let i=s.parentNode;if(i)i.replaceChild(n,s),_r.add(n);else{let a=t.indexOf(s);a!==-1&&(t[a]=n,_r.add(n))}}}function pd(e,t){for(let r of e){if(r.nodeType!==1)continue;let n=r;if(n.id===t)return n;if(typeof n.querySelector=="function"){let o=null;try{o=n.querySelector(`#${CSS.escape(t)}`)}catch{o=null}if(o)return o}}return null}var _r,xr=v(()=>{_r=new WeakSet});function Ot(e,t,r,n,o,s,i,a){let c=!1,l=()=>{if(!c){c=!0;try{vo(e,{frame:!!t})}catch{}}};try{for(let d of e.querySelectorAll("[data-wj-host]"))d.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!n||t||r)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(n&&!t&&!r){let d=document.querySelector('script[type="importmap"]'),m=d?d.getAttribute("data-webjs-build"):null,g=!1;if(o&&m&&(g=o!==m),!g&&e.head&&e.head.children.length>0){let w=Hi(document),_=Hi(e);w!==_&&(g=!0)}if(g&&typeof location<"u"){D.clear(),Et(),wr();try{let w="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(w))sessionStorage.removeItem(w),pe("deploy-mismatch-reload-suppressed",n,!1);else return sessionStorage&&sessionStorage.setItem(w,"1"),pe("deploy-mismatch",n),xe(n),"none"}catch{return pe("deploy-mismatch",n),xe(n),"none"}}else if(!g){let w=d?d.getAttribute("data-webjs-src"):null;s&&w&&s!==w&&(D.clear(),Et(),wr(),d&&d.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){l();let d=document.querySelector(`webjs-frame#${CSS.escape(t)}`),m=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(d&&m){a&&a(),ur(e.head),Ct=kt(()=>{Sl(d,m),vr(d),Rt(d),Ki(e.body),Lt()},()=>Rt(d));return}let g=new CustomEvent("webjs:frame-missing",{bubbles:!0,cancelable:!0,detail:{frameId:t,url:n||(typeof location<"u"?location.href:null),document:e}});return(d||document).dispatchEvent(g),g.defaultPrevented||console.warn(`[webjs] frame "${t}" was not in the navigation response, leaving it unchanged. Handle "webjs:frame-missing" (preventDefault) to override.`),"none"}if(i==="shell"){l(),a&&a(),hl(e);return}let u=he(document.body),f=he(e.body),p=u&&f?an(u,f):null;if(p){l(),a&&a();let{mode:d,live:m,incoming:g}=p;ur(e.head),Ct=kt(()=>{d==="replace"?bl(m,g):yl(m,g,e),wl(m.start,g.start),Ki(e.body),Lt()},()=>gl(m));return}if(n&&!r&&typeof location<"u")return pe(u?f?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",n),xe(n),"none";if(n&&r)return pe("revalidation-discarded",n,!1),"discard";l(),a&&a(),hl(e)}function hl(e){gn(e.head),qn(document.body,e.body);let t=[...e.body.childNodes];Ct=kt(()=>{document.body.replaceChildren(...t),vr(document.body),Rt(document.body),Lt()},()=>Rt(document.body))}var Ct,Dn=v(()=>{Eo();Ke();me();Er();Ge();bn();Tt();pr();Le();In();Sr();xr();Ct=Promise.resolve()});function _l(){Gi||typeof MutationObserver>"u"||typeof customElements>"u"||(Gi=new MutationObserver(e=>{for(let t of e)for(let r of t.addedNodes){if(r.nodeType!==1)continue;let n=r;n.tagName?.includes("-")&&customElements.upgrade(n);for(let o of n.querySelectorAll("*"))o.tagName?.includes("-")&&customElements.upgrade(o)}}),Gi.observe(document.body,{childList:!0,subtree:!0}))}function gl(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&Rt(t)}function Rt(e){typeof customElements>"u"||Zo(e)}function Zo(e){let t=e instanceof Element?[e,...e.querySelectorAll("*")]:[...e.querySelectorAll("*")];for(let r of t)r.tagName&&r.tagName.includes("-")&&(customElements.upgrade(r),r.shadowRoot&&Zo(r.shadowRoot))}function vr(e){if(e.tagName==="SCRIPT"){let r=hn(e);return e.replaceWith(r),r}let t=[];_r.has(e)&&t.push(e);for(let r of e.querySelectorAll("[data-webjs-permanent]"))_r.has(r)&&t.push(r);for(let r of e.querySelectorAll("script"))t.length&&t.some(n=>n!==r&&n.contains(r))||r.replaceWith(hn(r));return e}function Mn(e){let t=[];for(let r=e.start.nextSibling;r&&r!==e.end;r=r.nextSibling)r.nodeType===1&&t.push(r);for(let r of t){let n=vr(r);n.isConnected!==!1&&Rt(n)}}var Gi,Sr=v(()=>{Ke();re();me();Er();ln();Uo();Po();Ge();bn();Tt();pr();In();Dn();xr();Gi=null});function Lt(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function bl(e,t){let r=e.start.parentNode;if(!r)return;let n=[];for(let s=e.start.nextSibling;s&&s!==e.end;s=s.nextSibling)n.push(s);let o=[];for(let s=t.start.nextSibling;s&&s!==t.end;s=s.nextSibling)o.push(document.importNode(s,!0));Nt(n,o);for(let s of n)s.parentNode===r&&r.removeChild(s);for(let s of o)r.insertBefore(s,e.end);Mn(e)}function yl(e,t,r){if(!e||!t)return;let n=e.start.parentNode;if(!n)return;let o=[];for(let i=e.start.nextSibling;i&&i!==e.end;i=i.nextSibling)o.push(i);let s=[];for(let i=t.start.nextSibling;i&&i!==t.end;i=i.nextSibling)s.push(document.importNode(i,!0));Nt(o,s),md(n,e.start,e.end,o,s),Mn(e)}function md(e,t,r,n,o){let s=new Map;for(let c of n){if(c.nodeType!==1)continue;let l=Ze(c);l&&s.set(l,c)}let i=r,a=[];for(let c of o){if(c.nodeType===1){let l=Ze(c);if(l&&s.has(l)){let u=s.get(l);Tr(u,c),a.push(u),s.delete(l);continue}}a.push(c)}for(let c of n)if(c.parentNode===e){if(c.nodeType===1&&a.includes(c))continue;e.removeChild(c)}for(let c of a)e.insertBefore(c,i)}function Tr(e,t){if(e===t)return;if(e.tagName!==t.tagName){e.replaceWith(t);return}let r=new Set;for(let n of t.attributes)r.add(n.name),!cr.has(n.name)&&n.name!=="data-wj-serialized"&&e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value);for(let n of[...e.attributes])cr.has(n.name)||r.has(n.name)||e.removeAttribute(n.name);if(hd(e)){bd(e,t);return}kr(e,t)}function hd(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[L]!=null}function gd(e,t){for(let r=e.parentElement;r&&r!==t;r=r.parentElement)if(r.tagName.includes("-"))return!1;return!0}function Xo(e){let t=new Map,r=`slot[${O}][${z}="${J}"]`;for(let n of e.querySelectorAll(r)){let o=n;if(!gd(o,e)||js(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(O)&&a.getAttribute(z)===J){s=!0;break}if(s)continue;let i=Q(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function wl(e,t){let r=e.parentNode;if(!r||r.nodeType!==1)return;let n=r;if(n.tagName!=="SLOT"||!n.hasAttribute(O))return;let o=null;for(let f=n.parentElement;f;f=f.parentElement){if(f[L]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=Q(n.getAttribute("name"));$e(o,s,[...n.childNodes]);let i=t.parentNode;if(!i||i.nodeType!==1)return;let a=i;if(a.tagName!=="SLOT")return;let c=null;for(let f=a.parentElement;f;f=f.parentElement)if(f.tagName.includes("-")){c=f;break}if(!c||c.tagName!==o.tagName)return;let l=Xo(o),u=Xo(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let p=u.get(f);p?$e(o,f,[...p.childNodes].map(d=>document.importNode(d,!0))):l.get(f)&&$e(o,f,null)}}function bd(e,t){if(!e[L])return;let r=Xo(e),n=Xo(t);if(r.size===0&&n.size===0)return;let o=new Set([...r.keys(),...n.keys()]);for(let s of o){let i=r.get(s),a=n.get(s);i&&a?(kr(i,a),$e(e,s,[...i.childNodes])):a?$e(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):$e(e,s,null)}}function kr(e,t){let r=[...e.childNodes],n=[...t.childNodes].map(a=>document.importNode(a,!0));Nt(r,n);let o=new Map;for(let a of r){if(a.nodeType!==1)continue;let c=Ze(a);c&&o.set(c,a)}let s=[];for(let a=0;a<n.length;a++){let c=n[a];if(c.nodeType===1){let l=Ze(c);if(l&&o.has(l)){let f=o.get(l);Tr(f,c),s.push(f),o.delete(l);continue}let u=r[a];if(u&&u.nodeType===1&&!Ze(u)&&u.tagName===c.tagName){Tr(u,c),s.push(u);continue}}else if(c.nodeType===3){let l=r[a];if(l&&l.nodeType===3){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}else if(c.nodeType===8){let l=r[a];if(l&&l.nodeType===8){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}s.push(c)}let i=new Set(s);for(let a of r)!i.has(a)&&a.parentNode===e&&e.removeChild(a);for(let a=0;a<s.length;a++){let c=s[a];(c.parentNode!==e||e.childNodes[a]!==c)&&e.insertBefore(c,e.childNodes[a]||null)}}function Ze(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function Nr(){let e=he(document.body);if(!e||e.size===0)return null;let t=[...e.keys()].sort((c,l)=>l.length-c.length),r=null,n=null;for(let c of t){let l=document.getElementById(`wj-loading:${c}`);if(l instanceof HTMLTemplateElement){r=c,n=l;break}}if(r===null||n===null)return null;let o=e.get(r),s=Ae(),i=[];for(let c=o.start.nextSibling;c&&c!==o.end;c=c.nextSibling)i.push(c);let a=document.createRange();return a.setStartAfter(o.start),a.setEndBefore(o.end),a.deleteContents(),o.start.parentNode.insertBefore(n.content.cloneNode(!0),o.end),{slot:o,oldChildren:i,token:V,haveKeys:s}}function Xe(e){if(!e||e.token!==V)return;let{slot:t,oldChildren:r}=e;if(t.start.parentNode!==t.end.parentNode)return;let n=document.createRange();n.setStartAfter(t.start),n.setEndBefore(t.end),n.deleteContents();for(let o of r)t.start.parentNode.insertBefore(o,t.end)}function Sl(e,t){kr(e,t)}var Er=v(()=>{mt();Ke();re();Le();Sr();xr()});function yd(e){if(typeof document>"u"||!document.body)return!1;let t=he(document.body);if(!t)return!1;let r,n=-1;for(let[c,l]of t)c.length>n&&(n=c.length,r=l);if(!r)return!1;let o=r.start.parentNode;if(!o||r.start.parentNode!==r.end.parentNode)return!1;let s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("data-webjs-nav-error","");let i=e?`This page could not be loaded. (status ${e})`:"This page could not be loaded.";s.textContent=i;let a=document.createRange();return a.setStartAfter(r.start),a.setEndBefore(r.end),a.deleteContents(),o.insertBefore(s,r.end),!0}function Qo(e,t,r){let n=new CustomEvent("webjs:navigation-error",{bubbles:!0,cancelable:!0,detail:{url:e,status:t??null,error:r||null}});if(typeof document<"u")try{document.dispatchEvent(n)}catch{}n.defaultPrevented||yd(t)||typeof location<"u"&&(pe("navigation-error-unrecoverable",e),xe(e))}var Al=v(()=>{Ke();me();Le()});async function Fn(e,t,r,n,o,s,i,a,c,l){o=o||"GET";let u=l&&l.refresh||void 0,f=!!(l&&l.noPrefetch),p=!!(l&&l.preserveScroll),d=typeof a=="number"?a:V,m,g=null,w=null,_=null,b=null,E=!1,A=e,T=t?yn(t,d):null;try{try{let C=o==="GET"&&!s&&!u&&!f?Ln(e,n?n.haveKeys:void 0,t):null;if(C)m=C.html,w=C.build,_=C.src,A=C.finalUrl,b=200,E=!0;else{let x={"x-webjs-router":"1"},q=u?"":Ae();q&&(x["x-webjs-have"]=q),t&&(x["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(x.accept=Oi+", text/html");let B={method:o,headers:x,credentials:"same-origin",cache:"no-cache"};i&&(B.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(B.body=s);let R=await fetch(e,B);b=R.status,E=R.ok;let Pe=Li(R.headers.get("x-webjs-invalidate"));Pe.length&&Ri(Pe);let jt=R.headers.get("content-type")||"",Bn=/^text\/html\b/i.test(jt);if(jt.toLowerCase().indexOf(Oi)===0){let kl=await R.text(),Hn=d===V;return Hn&&(Xe(n),Ti(kl)),{ok:Hn&&E,status:b,aborted:!Hn,applied:Hn}}if(R.redirected&&R.url&&(A=R.url),R.status===204||R.status===205)return d===V&&r&&history.pushState(null,"",A),{ok:E,status:b,aborted:!1,applied:!1};if(!Bn)return d===V&&(Xe(n),Qo(e,R.status,null)),{ok:!1,status:b,aborted:!1,applied:!1};w=R.headers.get("x-webjs-build"),_=R.headers.get("x-webjs-src");let os=await jn(R);m=os.shell,os.streaming&&(g=os)}}catch(C){return C&&C.name==="AbortError"?{ok:!1,status:null,aborted:!0,applied:!1}:d!==V?{ok:!1,status:null,aborted:!0,applied:!1}:(Xe(n),Qo(e,null,C instanceof Error?C:new Error(String(C))),{ok:!1,status:null,aborted:!1,applied:!1})}if(d!==V){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:!1,status:b,aborted:!0,applied:!1}}let k=xt(m);if(!k)return Xe(n),Qo(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:b,aborted:!1,applied:!1};let N=!1,S=r?()=>{N||(N=!0,history.pushState(null,"",A))}:null,h=Ot(k,t,!!c,A,w,_,u,S),y=h!=="none";if(h==="discard"){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:E,status:b,aborted:!1,applied:!1}}if(S&&S(),r&&!t){let C=new URL(A),x=C.hash?document.getElementById(C.hash.slice(1)):null;x?x.scrollIntoView():p||(Kc(),window.scrollTo({left:0,top:0,behavior:"instant"}))}return g&&(g.reader||g.rest)&&Ct.then(()=>Pn(g.reader,g.dec,g.rest,()=>d===V)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:A,frameId:t,from:"navigate"}})),{ok:E,status:b,aborted:!1,applied:y}}finally{T&&wn(T,d)}}var xl=v(()=>{ko();nn();Ke();re();me();Er();ln();Ge();Al();vn();Tt();Le();In();Dn()});function il(e){if(!el(e)||!se)return!1;let t,r;try{t=new URL(se),r=new URL(e,location.href)}catch{return!1}return t.pathname!==r.pathname||t.search!==r.search?!1:(se=r.href,!0)}function $n(){oe||typeof document>"u"||(Di(!0),globalThis.__webjsRefreshPage=rs,document.addEventListener("click",Ui,!1),document.addEventListener("submit",dr,!1),window.addEventListener("popstate",fr),document.addEventListener("pointerover",vt,!0),document.addEventListener("focusin",vt,!0),document.addEventListener("touchstart",vt,{capture:!0,passive:!0}),document.addEventListener("pointerout",zi,!0),document.addEventListener("webjs:navigate",Go),_l(),Go(),typeof history<"u"&&"scrollRestoration"in history&&(es=history.scrollRestoration,history.scrollRestoration="auto"),typeof location<"u"&&(se=location.href),Wc())}function Yi(){oe&&(Di(!1),document.removeEventListener("click",Ui,!1),document.removeEventListener("submit",dr,!1),window.removeEventListener("popstate",fr),Lo(),document.removeEventListener("pointerover",vt,!0),document.removeEventListener("focusin",vt,!0),document.removeEventListener("touchstart",vt,{capture:!0}),document.removeEventListener("pointerout",zi,!0),document.removeEventListener("webjs:navigate",Go),On(),Ko(),ml(),typeof history<"u"&&es!==null&&(history.scrollRestoration=es,es=null),Bo(),ce&&ce(),le&&le(),se=null,delete globalThis.__webjsRefreshPage)}async function Ji(e,t){let r=new URL(e,location.href);if(r.origin!==location.origin){xe(e);return}await xn(r.href,t?.replace??!1,null,{preserveScroll:t?.scroll===!1})}async function Zi(e,t){if(typeof location>"u")return{ok:!1,status:null,aborted:!1,applied:!1};let r=e&&e.id;if(!r)return{ok:!1,status:null,aborted:!1,applied:!1};let n=new URL(t,location.href);if(n.origin!==location.origin)return{ok:!1,status:null,aborted:!1,applied:!1};ue&&ue.abort(),ue=new AbortController;let o=ue.signal,s=Ro(),i=await Fn(n.href,r,!1,null,"GET",null,o,s,!1,{noPrefetch:!0});return i&&i.applied&&ul(n.href,r),i}function ts(e){if(!e){D.clear(),Et();return}let t=new URL(e,location.href),r=t.pathname+t.search;D.delete(r),P.delete(r);let n=` ${r}`;for(let o of[...P.keys()])o.endsWith(n)&&P.delete(o)}async function rs(e){if(!oe||typeof location>"u")return!1;ts(),wr();try{let t=await xn(location.href,!1,null,{refresh:e==="shell"?"shell":"page"});return!t||t.aborted?!0:t.applied}catch{return!1}}async function xn(e,t,r,n){Lo();let o=n&&n.refresh||void 0,s=!!(n&&n.preserveScroll);if(qi(t,r)&&typeof location<"u")return pe("readyState-loading",e),xe(e),null;ue&&ue.abort(),ue=new AbortController;let i=ue.signal,a=Ro();r||(Bo(),ce&&ce(),le&&le()),!o&&se&&Vi(se);let c=setTimeout(()=>{sn(!0),c=null},150),l=null;!t&&!o&&(l=Nr());let u=!1;try{if(t){let p=cl(e);if(p){let d=xt(p.html);if(d){let m=sl(p.scrollHeight);Ot(d,r,!0,null);let g=()=>{};if(typeof window<"u"){let b=()=>{g=ol(p.scrollX,p.scrollY)};if(Ar()&&typeof document.startViewTransition=="function"){let E=Fo;Ct.then(()=>{E!==Fo||!oe||b()}).catch(()=>{})}else b()}let w=Fn(e,r,!1,l,"GET",null,i,a,!0).catch(()=>{}),_=new Promise(b=>setTimeout(b,500));return Promise.all([w,_]).then(()=>$o(()=>{g(),$o(m)})),null}}u=!0,typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}let f=await Fn(e,r,!t&&!o,l,"GET",null,i,a,!1,{refresh:o,preserveScroll:s});return u&&f&&f.applied&&typeof window<"u"&&$o(()=>{a!==V||!oe||window.scrollTo({left:0,top:0,behavior:"instant"})}),f}finally{c&&clearTimeout(c),a===V&&(sn(!1),typeof location<"u"&&(se=location.href))}}async function al(e,t,r,n,o,s){Lo(),ue&&ue.abort(),ue=new AbortController;let i=ue.signal,a=Ro();n||(Bo(),ce&&ce(),le&&le());let c=t==="get"||t==="head",l=new URL(e,location.href);if(c){l.search="";for(let[m,g]of r)l.searchParams.append(m,typeof g=="string"?g:g.name)}se&&Vi(se);let u=setTimeout(()=>{sn(!0),u=null},150),f=Nr(),p=o?Sn(o,a,l.href):null,d=!1;try{let m=await Fn(l.href,n,!0,f,c?"GET":t.toUpperCase(),c?null:r,i,a,!1,{preserveScroll:!!(s&&s.preserveScroll)});d=!!(m&&m.ok),!c&&a===V&&(D.clear(),Et())}finally{p&&_n(p,a,l.href,d),u&&clearTimeout(u),a===V&&(sn(!1),typeof location<"u"&&(se=location.href))}}function vl(){return se}function El(e){se=e}var ue,se,es,vn=v(()=>{re();me();Er();ln();Uo();xl();Ge();Tt();Ho();pr();Le();Dn();Sr();xr();ue=null,se=null;es=null});var Pc={};ss(Pc,{_FALLBACK_MARKER_KEY:()=>At,_FRAME_TOP:()=>on,_LIVE_ATTRS:()=>cr,_activateSwappedRange:()=>Mn,_activeFrameId:()=>Mo,_addNewHeadElements:()=>ur,_applyOptimisticLoading:()=>Nr,_applyStreamedResolve:()=>Jo,_applySwap:()=>Ot,_blurOutgoingFocus:()=>Lt,_buildHaveHeader:()=>Ae,_buildSubmitFormData:()=>mn,_bumpNavToken:()=>Xc,_clearFormBusy:()=>_n,_clearFrameBusy:()=>wn,_collectBoundaries:()=>he,_currentPageUrl:()=>vl,_diffElementInPlace:()=>Tr,_eligibleAnchorHref:()=>br,_encodeSubmitBody:()=>pn,_findAnchorInPath:()=>Oo,_getSubmitAction:()=>fn,_getSubmitEnctype:()=>dn,_getSubmitMethod:()=>un,_isNonHtmlPath:()=>Bc,_isPreBootNavigation:()=>Co,_keyOf:()=>Ze,_markFormBusy:()=>Sn,_markFrameBusy:()=>yn,_mergeHead:()=>gn,_navToken:()=>Zc,_onPopState:()=>fr,_onSubmit:()=>dr,_parseHTML:()=>xt,_planBoundarySwap:()=>an,_prefetch:()=>Je,_prefetchAnchor:()=>zo,_prefetchCache:()=>P,_prefetchHasHoverPointer:()=>Vo,_prefetchInflightSize:()=>dl,_prefetchMode:()=>yr,_prefetchPeek:()=>fl,_prefetchSaysSaveData:()=>Rn,_prefetchSuppressed:()=>Wo,_prefetchTake:()=>Ln,_reactivateScripts:()=>vr,_readStreamedShell:()=>jn,_reconcileChildren:()=>kr,_regraftPermanentElements:()=>qn,_regraftPermanentInSlice:()=>Nt,_resetParseProbe:()=>Mi,_resetPrefetch:()=>pl,_resetWarnOnce:()=>Gc,_resolvePreserveScroll:()=>An,_resolveTargetFrameId:()=>ge,_restoreOptimistic:()=>Xe,_runWithTransition:()=>kt,_setCurrentPageUrl:()=>El,_setHardNavigate:()=>Jc,_shouldFullLoadDuringParse:()=>Yc,_snapshotCache:()=>D,_streamBoundariesProgressively:()=>Pn,_takeResolveUnit:()=>Yo,_viewTransitionsEnabled:()=>Ar,disableClientRouter:()=>Yi,enableClientRouter:()=>$n,loadFrame:()=>Zi,navigate:()=>Ji,refreshPage:()=>rs,revalidate:()=>ts});var vi=v(()=>{xi();nn();nn();ke();qc();Eo();ko();mt();vn();re();me();vn();Tt();Le();Ke();re();me();Er();ln();jo();Uo();Po();Ge();bn();Tt();Ho();pr();In();Dn();Sr();xr();(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&$n()});Pt();function Cl(e,...t){let r=e[0];for(let n=1;n<e.length;n++)r+=String(t[n-1]??"")+e[n];return{_$webjsCss:!0,text:r}}function It(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function as(e,t){if(!(!t||!t.length))if("adoptedStyleSheets"in e&&typeof CSSStyleSheet<"u"){let r=t.map(n=>{let o=new CSSStyleSheet;return o.replaceSync(n.text),o});e.adoptedStyleSheets=r}else{let r=e,n=document.createElement("style");n.textContent=t.map(o=>o.text).join(`
5
+ </div>`}async function P(e,t){if(e==null||e===!1||e===!0)return"";if(e&&typeof e.then=="function")return e=await e,P(e,t);if(Yt(e))return String(e.value??"");if(J(e))return P(e.value,t);if(dt(e))return P(e.signal.get(),t);if(at(e))return P(e.value,t);if(ct(e))return P(e.fn(),t);if(Jt(e)){let r=e.template;return String(r?.innerHTML??"")}if(lt(e))return"";if(ut(e))return P(e.value,t);if(ft(e)){let r=e.args;for(let n of r)if(!n||typeof n.then!="function")return P(n,t);if(r.length>0)try{let n=await Promise.race(r.map(o=>Promise.resolve(o).catch(()=>{})));return P(n,t)}catch{return""}return""}if(Zt(e)||Xt(e))return"";if(Array.isArray(e))return(await Promise.all(e.map(n=>P(n,t)))).join("");if(it(e)){let r=e;return(await Promise.all(r.items.map((o,s)=>P(r.templateFn(o,s),t)))).join("")}if(yo(e)){let r=e,n=await P(r.fallback,t);if(t){let o=`s${t.nextId++}`;return t.pending.push({id:o,promise:Promise.resolve(r.children)}),`<webjs-boundary id="${o}">${n}</webjs-boundary>`}return n}return z(e)?gc(e,t):Wn(String(e))}async function gc(e,t){let{strings:r,values:n}=e,o="",s="text",i="",a=0,c="",l=0,u="",f="",d=-1,p=null,m=null,y=0,g=[],S=[],b=()=>{let k=g,N=S,_=y>1,h=m;if(g=[],S=[],y=0,m=null,p!=null){Pr({duplicateAction:_,propAttrs:k});let w=ps(o.slice(d),p);o=o.slice(0,d)+w.tag+w.hidden,p=null}h!=null&&(o=o.slice(0,d)+hs(o.slice(d),h,{duplicateAction:_,propAttrs:N}))},E=(k,N)=>{let _=String(N).toLowerCase();if(_==="button"||_==="input"){Kt(k)&&S.push(String(k));return}if(_!=="form")return;let h=String(k).toLowerCase();h==="encoding"&&(h="enctype"),(h==="method"||h==="enctype")&&g.push(String(k))},A=(k,N)=>{let _=String(N).toLowerCase(),h=String(k).toLowerCase();(_==="form"&&h==="action"||(_==="button"||_==="input")&&h==="formaction")&&(y+=1)},v=k=>{b(),s=k&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let k=0;k<r.length;k++){let N=r[k];for(let _=0;_<N.length;_++){let h=N[_];switch(s){case"text":o+=h,h==="<"&&(s="tag-open",d=o.length-1);break;case"tag-open":o+=h,h==="!"?s="bang-1":h==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(h)?(s="tag-name",u=h.toLowerCase()):s="text";break;case"bang-1":o+=h,s=h==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=h,h==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=h,h==="-"?l+=1:(h===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=h,h===">"?v(!0):/\s/.test(h)?s="in-tag":u+=h.toLowerCase();break;case"in-tag":o+=h,h===">"?v(!0):!/\s/.test(h)&&h!=="/"&&(s="attr-name",i=h,a=o.length-1);break;case"rawtext":o+=h,f=(f+h.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":h==="="?(s="after-eq",o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,v(!1)):(i+=h,o+=h);break;case"after-eq":h==='"'||h==="'"?(s="attr-quoted",c=h,o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,v(!1)):(s="attr-unquoted",o+=h);break;case"attr-unquoted":/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,v(!1)):o+=h;break;case"attr-quoted":o+=h,h===c&&(s="in-tag",i="");break}}if(k<n.length){let _=n[k];if(_&&typeof _.then=="function"&&(_=await _),J(_)&&(_=_.value),s==="comment")o+=String(_??""),l=0;else if(s==="rawtext")o+=String(_??""),f="";else if(s==="text")o+=await P(_,t);else if(s==="after-eq"){let h=i[0],w=i.slice(1),I=Ht[h];if(I==="event")o=o.slice(0,a),s="in-tag",i="";else if(I==="prop"){if(o=o.slice(0,a),u==="webjs-suspense"&&w==="fallback"){let x=await P(_,t);o+=`data-webjs-fallback="${H(x)}"`,s="in-tag",i="";continue}if(!u.includes("-")){jr(_,w,u),E(w,u),s="in-tag",i="";continue}if(_===void 0){s="in-tag",i="";continue}try{let x=await Zr(_);o+=`data-webjs-prop-${mc(w)}="${H(x)}"`}catch(x){console.warn(`[webjs] property binding .${w} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${x&&x.message}`)}s="in-tag",i=""}else if(I==="bool")ae(_,w,u),o=o.slice(0,a),_&&(o+=`${w}=""`),s="in-tag",i="";else if(st(_,i,u)){if(A(i,u),u==="form")p=$e(await Or(_),u),o=o.slice(0,a).replace(/\s+$/,"");else{zt(m!=null,u);let x=Gt(o.slice(d));x.has("name")&&Ut(x.get("name")||"",u,!1),x.has("value")&&Vt(u),x.has("form")&&Wt(u);let C=$e(await Or(_),u);m=u,o=o.slice(0,a)+`name="${$}" value="${H(C)}"`}s="in-tag",i=""}else A(i,u),ae(_,i,u),o+=`"${H(String(_??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ae(_,i,u),o+=H(String(_??"")))}}return o}async function ne(e,t,r){if(!(e==null||e===!1||e===!0)){if(e&&typeof e.then=="function")return e=await e,ne(e,t,r);if(Yt(e)){r.enqueue(String(e.value??""));return}if(J(e))return ne(e.value,t,r);if(dt(e))return ne(e.signal.get(),t,r);if(at(e))return ne(e.value,t,r);if(ct(e))return ne(e.fn(),t,r);if(Jt(e)){let n=e.template;r.enqueue(String(n?.innerHTML??""));return}if(!lt(e)){if(ut(e))return ne(e.value,t,r);if(ft(e)){let n=e.args;for(let o of n)if(!o||typeof o.then!="function")return ne(o,t,r);if(n.length>0)try{let o=await Promise.race(n.map(s=>Promise.resolve(s).catch(()=>{})));return ne(o,t,r)}catch{return}return}if(!(Zt(e)||Xt(e))){if(Array.isArray(e)){for(let n of e)await ne(n,t,r);return}if(it(e)){let n=e;for(let o=0;o<n.items.length;o++)await ne(n.templateFn(n.items[o],o),t,r);return}if(yo(e)){let n=e;if(t){let o=`s${t.nextId++}`;r.enqueue(`<webjs-boundary id="${o}">`),await ne(n.fallback,t,r),r.enqueue("</webjs-boundary>"),t.pending.push({id:o,promise:Promise.resolve(n.children)})}else await ne(n.fallback,t,r);return}if(z(e)){await bc(e,t,r);return}r.enqueue(Wn(String(e)))}}}}async function bc(e,t,r){let{strings:n,values:o}=e,s="text",i="",a=0,c="",l=0,u="",f="",d="",p=-1,m=null,y=0,g=[],S=[],b=null,E=()=>{let N=g,_=S,h=y>1,w=b;if(g=[],S=[],y=0,b=null,m!=null){Pr({duplicateAction:h,propAttrs:N});let I=ps(d.slice(p),m);d=d.slice(0,p)+I.tag+I.hidden,m=null}w!=null&&(d=d.slice(0,p)+hs(d.slice(p),w,{duplicateAction:h,propAttrs:_}))},A=(N,_)=>{let h=String(_).toLowerCase();if(h==="button"||h==="input"){Kt(N)&&S.push(String(N));return}if(h!=="form")return;let w=String(N).toLowerCase();w==="encoding"&&(w="enctype"),(w==="method"||w==="enctype")&&g.push(String(N))},v=(N,_)=>{let h=String(_).toLowerCase(),w=String(N).toLowerCase();(h==="form"&&w==="action"||(h==="button"||h==="input")&&w==="formaction")&&(y+=1)},k=N=>{E(),s=N&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let N=0;N<n.length;N++){let _=n[N];for(let h=0;h<_.length;h++){let w=_[h];switch(s){case"text":d+=w,w==="<"&&(s="tag-open",p=d.length-1);break;case"tag-open":d+=w,w==="!"?s="bang-1":w==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(w)?(s="tag-name",u=w.toLowerCase()):s="text";break;case"bang-1":d+=w,s=w==="-"?"bang-dash":"tag-name";break;case"bang-dash":d+=w,w==="-"?(s="comment",l=0):s="tag-name";break;case"comment":d+=w,w==="-"?l+=1:(w===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":d+=w,w===">"?k(!0):/\s/.test(w)?s="in-tag":u+=w.toLowerCase();break;case"in-tag":d+=w,w===">"?k(!0):!/\s/.test(w)&&w!=="/"&&(s="attr-name",i=w,a=d.length-1);break;case"rawtext":d+=w,f=(f+w.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":w==="="?(s="after-eq",d+=w):/\s/.test(w)?(s="in-tag",i="",d+=w):w===">"?(s="text",i="",d+=w,k(!1)):(i+=w,d+=w);break;case"after-eq":w==='"'||w==="'"?(s="attr-quoted",c=w,d+=w):/\s/.test(w)?(s="in-tag",i="",d+=w):w===">"?(s="text",i="",d+=w,k(!1)):(s="attr-unquoted",d+=w);break;case"attr-unquoted":/\s/.test(w)?(s="in-tag",i="",d+=w):w===">"?(s="text",i="",d+=w,k(!1)):d+=w;break;case"attr-quoted":d+=w,w===c&&(s="in-tag",i="");break}}if(N<o.length){let h=o[N];if(h&&typeof h.then=="function"&&(h=await h),J(h)&&(h=h.value),s==="comment")d+=String(h??""),l=0;else if(s==="rawtext")d+=String(h??""),f="";else if(s==="text")d&&(r.enqueue(d),d=""),await ne(h,t,r);else if(s==="after-eq"){let w=i[0],I=i.slice(1),x=Ht[w];if(x==="event"||x==="prop")x==="prop"&&!u.includes("-")&&(jr(h,I,u),A(I,u)),d=d.slice(0,a),s="in-tag",i="";else if(x==="bool")ae(h,I,u),d=d.slice(0,a),h&&(d+=`${I}=""`),s="in-tag",i="";else if(st(h,i,u)){if(v(i,u),u==="form")m=$e(await Or(h),u),d=d.slice(0,a).replace(/\s+$/,"");else{zt(b!=null,u);let C=Gt(d.slice(p));C.has("name")&&Ut(C.get("name")||"",u,!1),C.has("value")&&Vt(u),C.has("form")&&Wt(u);let W=$e(await Or(h),u);b=u,d=d.slice(0,a)+`name="${$}" value="${H(W)}"`}s="in-tag",i=""}else v(i,u),ae(h,i,u),d+=`"${H(String(h??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ae(h,i,u),d+=H(String(h??"")))}}d&&r.enqueue(d)}var vf,Ef,Ao=T(()=>{$t();Vn();ot();Ce();Ir();mi();Qt();vt();So();_o();vf=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),Ef=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"])});var Pc={};is(Pc,{observeLazy:()=>Hf,observeViewportOnce:()=>Wf});function jc(e){let t=Ai.get(e);return t||(t=import(e).finally(()=>Ai.delete(e)),Ai.set(e,t),t)}function Hf(e){for(let[t,r]of Object.entries(e))Ye.set(t.toLowerCase(),r);if(typeof IntersectionObserver>"u"){for(let t of Ye.values())jc(t);Ye.clear();return}nn||(nn=new IntersectionObserver(Uf,{rootMargin:"200px"})),Oc(),!_i&&typeof MutationObserver<"u"&&(_i=new MutationObserver(()=>Oc()),_i.observe(document.body,{childList:!0,subtree:!0}))}function Oc(){if(!(!nn||!Ye.size))for(let e of Ye.keys()){if(customElements.get(e)){Ye.delete(e);continue}for(let t of document.querySelectorAll(e))nn.observe(t)}}function Uf(e){for(let t of e){if(!t.isIntersecting)continue;let r=t.target.tagName.toLowerCase(),n=Ye.get(r);n&&(jc(n),Ye.delete(r),nn?.unobserve(t.target))}}function Vf(e){for(let t of e){if(!t.isIntersecting)continue;let r=xo.get(t.target);xo.delete(t.target),rn?.unobserve(t.target),r&&r()}}function Wf(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(rn||(rn=new IntersectionObserver(Vf,{rootMargin:"200px"})),xo.set(e,t),rn.observe(e),()=>{xo.delete(e),rn?.unobserve(e)})}var Ye,nn,_i,Ai,rn,xo,Ic=T(()=>{Ye=new Map,nn=null,_i=null,Ai=new Map;rn=null,xo=new WeakMap});var xi,vi=T(()=>{xi=typeof HTMLElement<"u"?class extends HTMLElement{constructor(){super(),this._webjsLoadedSrc=null,this._webjsLazyTeardown=null}static get observedAttributes(){return["src"]}connectedCallback(){this._webjsScheduleLoad()}disconnectedCallback(){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null)}attributeChangedCallback(t,r,n){t==="src"&&this.isConnected&&this._webjsScheduleLoad()}_webjsScheduleLoad(){let t=this.getAttribute("src");if(!t){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),this._webjsLoadedSrc=null;return}let r=t;try{r=new URL(t,location.href).href}catch{}if(r===this._webjsLoadedSrc)return;this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),(this.getAttribute("loading")||"eager").toLowerCase()==="lazy"?(this._webjsLoadedSrc=r,Promise.resolve().then(()=>(Ic(),Pc)).then(({observeViewportOnce:o})=>{this._webjsLoadedSrc!==r||!this.isConnected||(this._webjsLazyTeardown=o(this,()=>{this._webjsLazyTeardown=null,this._webjsLoad(r)}))})):(this._webjsLoadedSrc=r,this._webjsLoad(r))}_webjsLoad(t){Promise.resolve().then(()=>(Ei(),qc)).then(({loadFrame:r})=>{this._webjsLoadedSrc!==t||!this.isConnected||r(this,t)})}}:null;typeof customElements<"u"&&xi&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",xi)});function Kf(e,t,r){switch(e){case"append":r&&t.append(r);break;case"prepend":r&&t.prepend(r);break;case"before":r&&t.before(r);break;case"after":r&&t.after(r);break;case"replace":r&&t.replaceWith(r);break;case"update":r&&t.replaceChildren(r);break;case"remove":t.remove();break;default:break}}function ki(e,t){let r=t||(typeof document<"u"?document:null);if(!r)return;let n=null;if(typeof e=="string"){let s=r.createElement("template");s.innerHTML=e,n=s.content}else if(e&&e.nodeType)n=e;else return;let o=n.querySelectorAll?Array.from(n.querySelectorAll("webjs-stream")):[];if(o.length)for(let s of o)r.body.append(s);else r.body.append(n)}var zf,Ti,on=T(()=>{zf=new Set(["append","prepend","before","after","replace","update"]);Ti=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this._webjsApplied||(this._webjsApplied=!0,this._webjsApply())}_webjsApply(){let t=(this.getAttribute("action")||"").toLowerCase(),r=this.ownerDocument||document,n=[],o=this.getAttribute("target");if(o){let i=r.getElementById(o);i&&(n=[i])}else{let i=this.getAttribute("targets");if(i)try{n=Array.from(r.querySelectorAll(i))}catch{n=[]}}let s=zf.has(t)?this.querySelector("template"):null;try{for(let i of n){let a=s?s.content.cloneNode(!0):null;Kf(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&Ti&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",Ti)});var Dc,Mc=T(()=>{Dc=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&Dc&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",Dc)});function vo(e,t){let r=typeof document<"u"?document:null,n=e||r;if(!n||typeof n.querySelectorAll!="function")return;if(t&&t.frame===!0){Ni(n,!0);return}Bc();let o=n===r,s=!!r&&!o&&typeof r.contains=="function"&&r.contains(n),i=!!r&&!o&&!s;i&&(Ni(r,!0),Je.clear(),Ri.clear()),(o||i)&&(Ci=!0);let a=Y.ingested+Y.replaced;Jf(Ni(n),a)}function Ni(e,t){let r=null;for(let n of e.querySelectorAll('script[type="application/json"]#__webjs-seeds, script[type="application/json"][data-webjs-seeds]')){let o=Yf(n.getAttribute?.("data-webjs-dev"));o!==null&&(r=o),Fc(t?null:n.textContent,n)}for(let n of e.querySelectorAll("[data-webjs-seed]"))Fc(t?null:n.getAttribute("data-webjs-seed"),n,()=>n.removeAttribute("data-webjs-seed"));return r}function Fc(e,t,r){if(e)try{let n=Le(e);if(n&&typeof n=="object")for(let o in n){Je.has(o)?Y.replaced++:Y.ingested++,Je.set(o,n[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&Ri.add(o.slice(0,s))}}catch{}r?r():t.remove?.()}function Yf(e){return typeof e!="string"?null:e||"ok"}function Jf(e,t){if(e===null)return;let r=++Gf;fr={epoch:r,hits:Y.hits,misses:Y.misses,keyMisses:Y.keyMisses,merged:t,marker:e};let n=()=>{!fr||fr.epoch!==r||Bc()};try{typeof requestIdleCallback=="function"?requestIdleCallback(n,{timeout:1e3}):setTimeout(n,250)}catch{fr=null}}function Bc(){let e=fr;if(fr=null,!!e)try{Zf(e)}catch{}}function Zf(e){let t=Y.hits-e.hits,r=Y.misses-e.misses,n=Y.ingested+Y.replaced-e.merged,o=Y.keyMisses-e.keyMisses;if(r===0)return;let s=e.marker==="streamed"?"This page streams (a Suspense or <webjs-suspense> boundary), and a streamed render emits no seeds, so every action call on it goes to the network.":e.marker==="drop"?"The page's seeds could not be serialized, so the whole block was dropped. Something an action returned is not serializer-safe; the server response reports collected above emitted.":o===0?null:"The key is the action file hash plus the function name plus the serialized arguments, so an argument the SSR render never used misses (a deliberate refetch after hydration misses too, and is expected). A miss on an action this page never seeded is NOT counted here, because a mutation or a client-only read could never have been seeded.";if(s===null)return;let a=e.marker==="streamed"||e.marker==="drop"?`${r} of ${t+r} action call(s) in the hydration window went to the network`:`${o} action call(s) in the hydration window asked for a key this page seeded under DIFFERENT arguments`;console.warn(`[webjs] SSR action seeding: ${a} (${n} seed(s) on this page, ${Je.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function Xf(e,t,r){Ci||(Ci=!0,vo());let n=`${e}/${t}/${r}`;if(Je.has(n)){let o=Je.get(n);return Je.delete(n),Y.hits++,o}return Y.misses++,Ri.has(`${e}/${t}`)&&Y.keyMisses++,$c}function Qf(){return{...Y,pending:Je.size}}var Je,$c,Ci,Y,Ri,fr,Gf,Eo=T(()=>{vt();Je=new Map,$c=Symbol("webjs.seed.miss"),Ci=!1,Y={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},Ri=new Set,fr=null,Gf=0});function Li(e){if(!(!Array.isArray(e)||!e.length)){To+=1;for(let t of e)t&&Hc.set(t,To)}}function td(){return To}function rd(e,t,r){if(!(!Array.isArray(t)||!t.length)&&(dr.delete(e),dr.set(e,{tags:t.slice(),since:typeof r=="number"?r:To}),dr.size>ed)){let n=dr.keys().next().value;n!==void 0&&dr.delete(n)}}function nd(e){let t=dr.get(e);if(!t)return!1;for(let r of t.tags)if((Hc.get(r)||0)>t.since)return!0;return!1}function Oi(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var To,Hc,dr,ed,ko=T(()=>{To=0,Hc=new Map,dr=new Map,ed=1e3});function Uc(e){return pr.test(e)}var ji,Pi,pr,sn,kt,je,No,Vc,Q=T(()=>{ji="text/vnd.webjs-stream.html",Pi=["wheel","touchmove","keydown","pointerdown"],pr=/\.(?:pdf|zip|tar|gz|7z|rar|dmg|exe|msi|deb|rpm|apk|ipa|xlsx?|docx?|pptx?|csv|odt|ods|odp|rtf|epub|mobi|xml|json|rss|atom|txt|md|wasm|mp3|mp4|mov|avi|webm|ogg|flac|wav|m4a|m4v|mkv|png|jpe?g|gif|webp|avif|bmp|ico|svg|tiff?|heic)$/i,sn="_top",kt="webjs:nav-fallback",je=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]),No="name=csp-nonce";Vc=250});function Ze(e,t,r="warn"){if(Ii.has(e)||(Ii.add(e),typeof console>"u"))return;let n=r==="error"?console.error:console.warn;n&&n.call(console,t)}function zc(e,t,r,n){if(typeof process<"u"&&process.env||!n.has($))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(r!=="post"){Ze(`submit-nowhere:${o}:${r}`,`[webjs] this submission carries a bound server action's identity but submits as ${r.toUpperCase()}, which sends no body, so the identity rides the query string and the action never runs. A submitter's own formmethod overrides the form's, and WebJs honours it rather than refusing it, so check for a formmethod on the button that was pressed.`,"error");return}let s=t&&t.getAttribute("formenctype")||e.getAttribute("enctype")||"application/x-www-form-urlencoded";if(s.toLowerCase()==="text/plain"){Ze(`submit-nowhere:${o}:${s}`,`[webjs] this submission carries a bound server action's identity but declares enctype="${s}", which the server cannot parse. The router declines to send it so both paths behave the same way, and both are answered with a 405. Drop the enctype and let the binding supply it.`,"error");return}o&&o!==location.pathname&&Ze(`submit-elsewhere:${o}`,`[webjs] this submission carries a bound server action's identity but posts to "${o}" rather than this page, because the enclosing <form> declares its own action. A bound submitter emits no formaction, so the form's target wins, which is what native HTML does. The action runs only if "${o}" is a page route; against a route.ts or another origin the identity is ignored and nothing runs. Drop the form's action attribute to keep the submission on this page.`)}function Di(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function Co(e,t,r,n){if(e!=="navigate"||!t||n&&n===r)return!1;try{return new URL(t).origin===new URL(r).origin}catch{return!1}}function Kc(){if(typeof location>"u"||Wc)return;Wc=!0;let e=null;try{e=sessionStorage.getItem(kt),sessionStorage.removeItem(kt)}catch{}let t="";try{let r=performance.getEntriesByType("navigation")[0];t=r?r.type:""}catch{}Co(t,document.referrer,location.href,e)&&he("pre-boot-navigation",location.href,!1)}function he(e,t,r=!0){if(r)try{sessionStorage.setItem(kt,t)}catch{}if(typeof document<"u"&&typeof CustomEvent<"u")try{document.dispatchEvent(new CustomEvent("webjs:navigation-fallback",{detail:{cause:e,href:t,willReload:r}}))}catch{}typeof process<"u"&&process.env||Ze(`fallback:${e}`,r?`[webjs] client router fell back to a full page load (${e}) navigating to ${t}. This is correct (no DOM corruption), just not a soft nav.`:`[webjs] client router degraded a soft navigation (${e}) for ${t}, without a full page load.`)}function Gc(e){typeof process<"u"&&process.env||Ze(`stream-drop:${e}`,`[webjs] dropped a streamed Suspense resolve for "${e}": no #${e} boundary in the DOM. Benign if this navigation was superseded or degraded. A stuck skeleton here means the shell swap did not place the boundary.`)}function Yc(){if(typeof process<"u"&&process.env||qi||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;qi=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&Ze("scroll-behavior-smooth-html","[webjs] Detected `scroll-behavior: smooth` on <html>. The client router scrolls to the top instantly on navigation (like a native page load), so route transitions are not affected by it. It still applies to in-page #anchor links. Pairing it with a sticky `backdrop-filter` header can also flash on iOS during navigation.")}function an(e){if(typeof document>"u")return;let t=document.documentElement;if(!(!t||!t.hasAttribute("data-webjs-nav-progress")))try{e?t.setAttribute("data-navigating",""):t.removeAttribute("data-navigating")}catch{}}function Jc(){Ii.clear(),qi=!1}function Zc(e,t){return Di(e,t)}var Ii,Wc,qi,ge=T(()=>{Ce();Q();Ii=new Set;Wc=!1;qi=!1});function be(e){let t=new Map,r=[],n=!1;function o(s){if(!n){if(s.nodeType===8){let i=s.data.trim();if(i.startsWith("wj:children:")){let a=i.slice(12),c=a.lastIndexOf(":");if(c<=0||c===a.length-1){n=!0;return}let l=a.slice(0,c),u=a.slice(c+1);if(t.has(l)||r.some(f=>f.segment===l)){n=!0;return}r.push({segment:l,routeKey:u,start:s});return}if(i.startsWith("/wj:children")){let a=i.slice(12).replace(/^:/,""),c=r.pop();if(!c||c.segment!==a){n=!0;return}if(c.start.parentNode!==s.parentNode){n=!0;return}{let l=c.start.parentNode.tagName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TFOOT"||l==="TR"){n=!0;return}}t.set(c.segment,{routeKey:c.routeKey,start:c.start,end:s});return}return}if(s.hasChildNodes&&s.hasChildNodes())for(let i=s.firstChild;i&&!n;i=i.nextSibling)o(i)}}return o(e),n||r.length>0?null:t}function cn(e,t){let r=[...e.keys()].filter(i=>t.has(i)).sort((i,a)=>i.length-a.length);if(r.length===0)return null;for(let i of r)if(e.get(i).routeKey!==t.get(i).routeKey){let a=null;for(let c of r){if(c===i)break;i.startsWith(c==="/"?c:c+"/")&&(a=c)}return a?{mode:"replace",segment:a,live:e.get(a),incoming:t.get(a)}:null}let n=r[r.length-1],o=i=>{let a=null;for(let c of i.keys())(a===null||c.length>a.length)&&(a=c);return a};return{mode:o(e)===n&&o(t)===n?"morph":"replace",segment:n,live:e.get(n),incoming:t.get(n)}}function ve(){let e=be(document.body);return e?[...e.entries()].map(([t,r])=>`${t}:${r.routeKey}`).join(","):""}var Xe=T(()=>{});function Xc(e){Ee=e||(t=>{location.href=t})}function Qc(){return V}function el(){return++V}function Ro(){return++V}function Mi(e){se=e}function tl(e){ln=e}function rl(e){let t=ln!==null&&ln===e;return ln=null,t}function Lo(){ln=null}var V,Ee,se,ln,Pe=T(()=>{V=0,Ee=e=>{location.href=e};se=!1;ln=null});function Nt(e){if(!/^\s*(?:<!doctype|<html)/i.test(e)&&typeof document<"u"&&document.implementation)try{let r=document.implementation.createHTMLDocument();if(typeof r.body.setHTMLUnsafe=="function")r.body.setHTMLUnsafe(e);else{let n=r.createElement("template");n.innerHTML=e,r.body.appendChild(n.content)}return r}catch{}return typeof Document<"u"&&typeof Document.parseHTMLUnsafe=="function"&&od()?Document.parseHTMLUnsafe(e):sd(e)}function od(){if(mr!==null)return mr;try{mr=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{mr=!1}return mr}function Fi(){mr=null}function sd(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}var mr,un=T(()=>{mr=null});function Oo(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function $i(e){let t=e;for(;t;){if(t instanceof HTMLAnchorElement)return t;let r=t.nodeType===1?t:null;if(r){let o=r.closest&&r.closest("a");if(o instanceof HTMLAnchorElement)return o}let n=t.getRootNode?t.getRootNode():null;t=n&&n.host?n.host:null}return null}var jo=T(()=>{});function fn(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function dn(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function id(e){let t=String(e||"").toLowerCase();return t==="multipart/form-data"?"multipart/form-data":t==="text/plain"?"text/plain":"application/x-www-form-urlencoded"}function pn(e,t){return id(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function mn(e,t){if(t==="multipart/form-data")return e;let r=new URLSearchParams;for(let[n,o]of e)r.append(n,typeof o=="string"?o:o.name);return r}function hn(e,t){try{return new FormData(e,t||void 0)}catch{let r=new FormData(e);return t&&t.getAttribute("name")&&r.append(t.getAttribute("name"),t.getAttribute("value")||""),r}}var Po=T(()=>{});function nl(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function gn(e){let t=document.createElement("script");for(let n of e.attributes)n.name!=="nonce"&&t.setAttribute(n.name,n.value);let r=nl();return r&&t.setAttribute("nonce",r),t.textContent=e.textContent,t}function Bi(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),r=nl();return r?t.setAttribute("nonce",r):t.removeAttribute("nonce"),t}function Te(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function Io(e){let t=e.getAttribute("name");if(t)return"name="+t;let r=e.getAttribute("property");if(r)return"property="+r;let n=e.getAttribute("http-equiv");return n?"http-equiv="+n:e.hasAttribute("charset")?"charset":null}function ad(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=Io(i);if(!a||a===No)continue;let c=s.get(a);c?c.push(i):s.set(a,[i])}return s},r=t(e),n=t(document.head);for(let[o,s]of r){let i=n.get(o)||[],a=s.map(Te).join(`
6
+ `),c=i.map(Te).join(`
7
+ `);if(a!==c){if(s.length===1&&i.length===1){let l=i[0];for(let u of[...l.attributes])l.removeAttribute(u.name);for(let u of s[0].attributes)l.setAttribute(u.name,u.value);continue}for(let l of i)l.remove();for(let l of s)document.head.appendChild(Bi(l))}}for(let[o,s]of n)if(!r.has(o))for(let i of s)i.remove()}function hr(e){let t=e.querySelector("title");t&&(document.title=t.textContent||"");let r=new Set;for(let n of document.head.children)r.add(Te(n));for(let n of e.children)n.tagName==="SCRIPT"&&n.getAttribute("type")==="importmap"||n.tagName!=="BASE"&&n.tagName!=="TITLE"&&(n.tagName==="META"&&Io(n)||r.has(Te(n))||(n.tagName==="SCRIPT"?document.head.appendChild(gn(n)):document.head.appendChild(Bi(n))));ad(e)}function cd(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&(e.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}function bn(e){let t=document.head,r=e.querySelector("title");r&&(document.title=r.textContent||"");let n=new Set;for(let s of t.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&n.add(Te(s));let o=new Set;for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&o.add(Te(s));for(let s of[...t.children])s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(cd(s)||s.tagName==="META"&&Io(s)===No||o.has(Te(s))||s.remove());for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&Io(s)===No||n.has(Te(s))||(s.tagName==="SCRIPT"?t.appendChild(gn(s)):t.appendChild(Bi(s))))}var yn=T(()=>{Q()});function Mo(e){let t=e;for(;t;){let r=t.closest("webjs-frame");if(r&&r.id)return r.id;let n=t.getRootNode();if(n&&n.host)t=n.host;else break}return null}function ye(e){if(!e)return null;let t=e.closest&&e.closest("[data-webjs-frame]"),r=t?t.dataset?t.dataset.webjsFrame:t.getAttribute("data-webjs-frame"):null;if(r!=null&&r!==""){if(r===sn)return null;let n=typeof document<"u"?document.getElementById(r):null;return n&&n.tagName&&n.tagName.toLowerCase()==="webjs-frame"?r:(Ze(`webjs:frame-unresolved:${r}`,`[webjs] data-webjs-frame="${r}" did not match a live <webjs-frame id="${r}">; performing a normal navigation instead.`),null)}return Mo(e)}function Hi(e){if(!e||typeof document>"u")return null;let t=null;try{t=document.querySelector(`webjs-frame#${CSS.escape(e)}`)}catch{t=document.getElementById(e)}return!t||!t.tagName||t.tagName.toLowerCase()!=="webjs-frame"?null:t}function wn(e,t){let r=Hi(e);if(!r)return null;let n=qo.has(r);return qo.set(r,t),r.setAttribute("aria-busy","true"),n||r.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:e,busy:!0}})),r}function Sn(e,t){if(qo.get(e)!==t)return;qo.delete(e),e.setAttribute("aria-busy","false");let r=e.id||null;e.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:r,busy:!1}}))}function _n(e,t,r){let n=Do.has(e);return Do.set(e,t),e.setAttribute("aria-busy","true"),n||e.dispatchEvent(new CustomEvent("webjs:submit-start",{bubbles:!0,detail:{form:e,url:r}})),e}function An(e,t,r,n){if(Do.get(e)!==t)return;Do.delete(e),e.setAttribute("aria-busy","false");let o=new CustomEvent("webjs:submit-end",{bubbles:!0,detail:{form:e,url:r,ok:!!n}});e.isConnected?e.dispatchEvent(o):typeof document<"u"?document.dispatchEvent(o):e.dispatchEvent(o)}function Ui(e){if(!e||!e.head)return"";let t=e.head.querySelectorAll('[data-webjs-track="reload"]');if(!t.length)return"";let r="";for(let n of t)r+=Te(n);return r}var qo,Do,Qe=T(()=>{Q();ge();yn();qo=new WeakMap;Do=new WeakMap});function il(e,t){if(typeof document>"u"||!document.documentElement)return()=>{};le&&le();let r=document.documentElement,n=r.style.getPropertyValue("overflow-anchor");r.style.setProperty("overflow-anchor","none");let o=null,s=typeof t=="number",a=s&&typeof setTimeout=="function"?setTimeout(()=>{s=!1},Vc):null,c=typeof t=="number"&&typeof window<"u"?()=>{s&&(Math.abs(window.scrollY-t)<=1&&Math.abs(window.scrollX-(e||0))<=1||window.scrollTo({left:e||0,top:t,behavior:"instant"}))}:null,l=()=>{if(le===l){if(le=null,o&&(clearTimeout(o),o=null),a&&clearTimeout(a),s=!1,typeof window<"u"){for(let u of Pi)window.removeEventListener(u,l,{capture:!0});c&&window.removeEventListener("scroll",c)}n?r.style.setProperty("overflow-anchor",n):r.style.removeProperty("overflow-anchor")}};if(le=l,o=setTimeout(l,2e3),typeof window<"u"){for(let u of Pi)window.addEventListener(u,l,{capture:!0,passive:!0});c&&window.addEventListener("scroll",c,{passive:!0})}return l}function al(e){if(typeof document>"u"||!document.documentElement)return()=>{};if(ue&&ue(),!(e>0))return()=>{};let t=document.documentElement,r=t.style.getPropertyValue("min-height");t.style.setProperty("min-height",e+"px");let n=null,o=()=>{ue===o&&(ue=null,n&&(clearTimeout(n),n=null),r?t.style.setProperty("min-height",r):t.style.removeProperty("min-height"))};return ue=o,n=setTimeout(o,2e3),o}function $o(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function Bo(){Fo+=1}function xn(e,t){let r=ol(e)||ol(t);return r?(r.getAttribute("data-preserve-scroll")||"").toLowerCase().trim()!=="false":!1}function ol(e){return!e||typeof e.closest!="function"?null:e.closest("[data-preserve-scroll]")}var le,ue,Fo,Ho=T(()=>{Q();le=null;ue=null;Fo=0});function Vi(e){if(!se||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=Oo(e);if(!t||t.hasAttribute("download")||t.target&&t.target!=="_self")return;let r=t.href;if(!r)return;let n=new URL(r);if(n.origin!==location.origin)return;if(n.pathname===location.pathname&&n.search===location.search&&n.href.includes("#")){tl(n.href);return}if(t.hasAttribute("data-no-router")||pr.test(n.pathname))return;e.preventDefault();let o=ye(t);vn(r,!1,o,{preserveScroll:xn(t)})}function gr(e){cl(location.href)||vn(location.href,!0,null)}function br(e){if(!se||e.defaultPrevented)return;let t=e.target;if(!t||t.nodeType!==1||t.tagName!=="FORM"||t.hasAttribute("data-no-router"))return;let r=e.submitter??null;if(r&&r.hasAttribute("data-no-router"))return;let n=r&&r.hasAttribute("formtarget")?r.getAttribute("formtarget")||"":t.getAttribute("target")||"";if(n&&n!=="_self")return;let o=fn(t,r);if(o==="dialog")return;let s=pn(t,r),i=o==="get"||o==="head",a=dn(t,r),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||pr.test(c.pathname))return;let l=hn(t,r);if(zc(t,r,o,l),!i&&s==="text/plain")return;let u=mn(l,s);e.preventDefault();let f=ye(r||t),d=xn(r||t,t);ll(c.href,o,u,f,t,{preserveScroll:d})}var Uo=T(()=>{jo();Q();Pe();ge();Po();Qe();Ho();En()});function Wi(e){let t=ke(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),D.has(t)&&D.delete(t);let r={html:document.documentElement.outerHTML,scrollX:typeof window<"u"&&window.scrollX||0,scrollY:typeof window<"u"&&window.scrollY||0,scrollHeight:typeof document<"u"&&document.documentElement&&document.documentElement.scrollHeight||0};for(D.set(t,r);D.size>16;){let n=D.keys().next().value;D.delete(n)}}function ul(e){let t=ke(e),r=D.get(t);return r==null?null:(D.delete(t),D.set(t,r),typeof r=="string"?{html:r,scrollX:0,scrollY:0,scrollHeight:0}:r)}function ke(e,t){let r=new URL(e,location.href),n=r.pathname+r.search;return t?`${t} ${n}`:n}var D,yr=T(()=>{Q();D=new Map});function hd(e){let t=Ne.get(e);return t==null?!1:Rn()-t>=zi?(Ne.delete(e),!1):!0}function vr(){Ne.clear()}function gd(e){for(Ne.has(e)&&Ne.delete(e),Ne.set(e,Rn());Ne.size>md;)Ne.delete(Ne.keys().next().value)}function Ln(){try{let e=typeof navigator<"u"?navigator.connection:null;if(e&&(e.saveData===!0||typeof e.effectiveType=="string"&&/2g$/.test(e.effectiveType))||typeof matchMedia=="function"&&matchMedia("(prefers-reduced-data: reduce)").matches)return!0}catch{}return!1}function Vo(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function bd(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function Ar(e){if(!e||!(e instanceof HTMLAnchorElement)||e.hasAttribute("download")||e.hasAttribute("data-no-router")||e.target&&e.target!=="_self")return null;let t=e.href;if(!t)return null;let r;try{r=new URL(t)}catch{return null}return r.origin!==location.origin||r.pathname===location.pathname&&r.search===location.search&&r.href.includes("#")||pr.test(r.pathname)?null:t}function Wo(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=bd(e);return t.includes("external")||t.includes("no-prefetch")}function xr(e){if(Wo(e))return"none";switch((e.getAttribute("data-prefetch")||"").toLowerCase().trim()){case"false":case"none":return"none";case"true":case"render":return"render";case"auto":case"viewport":return"viewport";case"intent":return"intent";default:return Vo()?"intent":"viewport"}}function tt(e,t){if(!se||typeof fetch!="function"||Ln())return;let r=ke(e,t);if(typeof location<"u"&&r===ke(location.href,t)||Ie.has(r)||Tn.has(r))return;let n=j.get(r);if(n&&Rn()-n.at<zi||hd(r))return;if(Ie.size>=fl){for(Tn.add(r),Sr.push({href:e,frameId:t||null});Sr.length>fd;){let i=Sr.shift();Tn.delete(ke(i.href,i.frameId))}return}let o=ve();if(!o&&typeof document<"u"&&document.readyState==="loading")return;Ie.add(r);let s={"x-webjs-router":"1","x-webjs-prefetch":"1"};o&&(s["x-webjs-have"]=o),t&&(s["x-webjs-frame"]=t),fetch(e,{method:"GET",headers:s,credentials:"same-origin",cache:"no-cache"}).then(async i=>{let a=i.headers.get("content-type")||"";if(!/^text\/html\b/i.test(a)||i.status>=400)return;let c=i.headers.get("x-webjs-build"),l=i.headers.get("x-webjs-src"),u=typeof document<"u"?document.querySelector('script[type="importmap"]'):null,f=u?u.getAttribute("data-webjs-build"):null,d=u?u.getAttribute("data-webjs-src"):null;if((c&&f&&c!==f||l&&d&&l!==d)&&(D.clear(),Rt(r),vr()),(i.headers.get("x-webjs-frame")||null)!==(t||null)){gd(r);return}let m=i.redirected&&i.url?i.url:e,y=await i.text();Cn.has(r)||wd(r,{html:y,build:c,src:l,finalUrl:m,frameId:t||null,at:Rn()})}).catch(()=>{}).finally(()=>{Ie.delete(r),Cn.delete(r),yd()})}function yd(){for(;Sr.length&&Ie.size<fl;){let{href:e,frameId:t}=Sr.shift();Tn.delete(ke(e,t)),tt(e,t)}}function wd(e,t){for(j.has(e)&&j.delete(e),j.set(e,t);j.size>ud;){let r=j.keys().next().value;j.delete(r)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function zo(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function On(e,t,r){let n=ke(e,r),o=j.get(n);if(!o)return null;if(Rn()-o.at>=zi)return j.delete(n),null;if(o.frameId)return j.delete(n),Hi(o.frameId)?o:null;let s=zo(o.html);return s&&!new Set(String(t??(ve()||"")).split(",").filter(Boolean)).has(s)?(j.delete(n),null):(j.delete(n),o)}function Rn(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function Ct(e){if(!se)return;let t=$i(e.target);if(!t)return;let r=xr(t);if(r==="none"||r==="render")return;let n=Ar(t);if(n){if(e.type==="touchstart"){tt(n,ye(t));return}r==="intent"&&(kn===t&&_r||(jn(),kn=t,_r=setTimeout(()=>{_r=null,kn=null,tt(n,ye(t))},dd)))}}function Ki(e){let t=$i(e.target);t&&t===kn&&jn()}function jn(){_r&&(clearTimeout(_r),_r=null),kn=null}function Ko(){for(let e of Nn)clearTimeout(e);Nn.clear(),wr=new WeakMap}function Go(){if(typeof document>"u"||Ln())return;let e=typeof IntersectionObserver<"u";e&&(et?(et.disconnect(),Ko()):et=new IntersectionObserver(t=>{for(let r of t){let n=r.target;if(r.isIntersecting){if(wr.has(n))continue;let o=setTimeout(()=>{Nn.delete(o),wr.delete(n),et.unobserve(n);let s=Ar(n);s&&xr(n)==="viewport"&&tt(s,ye(n))},pd);wr.set(n,o),Nn.add(o)}else{let o=wr.get(n);o&&(clearTimeout(o),Nn.delete(o),wr.delete(n))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let r=xr(t);if(r==="render"){let n=Ar(t);n&&tt(n,ye(t))}else r==="viewport"&&e&&et.observe(t)}}function Rt(e){j.clear();for(let t of Ie)t!==e&&Cn.add(t)}function dl(e,t){let r=ke(e,t);j.delete(r),Ie.has(r)&&Cn.add(r)}function pl(e,t){return j.get(ke(e,t))||null}function ml(){return Ie.size}function hl(){j.clear(),Ne.clear(),Ie.clear(),Cn.clear(),Sr.length=0,Tn.clear(),jn(),Ko()}function gl(){et&&(et.disconnect(),et=null)}var ud,zi,fl,fd,dd,pd,j,Ne,md,Ie,Cn,Sr,Tn,_r,kn,et,wr,Nn,Lt=T(()=>{jo();Xe();Q();Qe();Pe();yr();ud=8,zi=3e4,fl=3,fd=24,dd=100,pd=250,j=new Map,Ne=new Map,md=16;Ie=new Set,Cn=new Set,Sr=[],Tn=new Set,_r=null,kn=null,et=null,wr=new WeakMap,Nn=new Set});function Gi(e){for(let t of e.querySelectorAll("template[data-webjs-resolve]")){let r=t.cloneNode(!0);document.body.appendChild(r);let n=r.getAttribute("data-webjs-resolve"),o=window.__webjsResolve;n&&typeof o=="function"&&o(n)}}async function Pn(e){if(!e.body||typeof e.body.getReader!="function")return{shell:await e.text(),streaming:!1};let t=e.body.getReader(),r=new TextDecoder,n="",o="<template data-webjs-resolve",s="<!--wj-stream-shell-->",i=/<\/html\s*>/i;for(;;){let{value:a,done:c}=await t.read();a&&(n+=r.decode(a,{stream:!0})),c&&(n+=r.decode());let l=n.indexOf(s);if(l!==-1)return{shell:n.slice(0,l),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(l+s.length)};let u=n.indexOf(o);if(u!==-1)return{shell:n.slice(0,u),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(u)};if(c)return{shell:n,streaming:!1};let f=i.exec(n);if(f){let d=f.index+f[0].length;return{shell:n.slice(0,d),streaming:!0,reader:t,dec:r,rest:n.slice(d)}}}}function Yo(e){let t=/<template\s+data-webjs-resolve="([^"]+)"\s*>/i.exec(e);if(!t)return null;let r=t[1],n=t.index+t[0].length,o=/<(\/?)template\b[^>]*>/gi;o.lastIndex=n;let s=1,i;for(;i=o.exec(e);)if(i[1]==="/"){if(s--,s===0)return{id:r,content:e.slice(n,i.index),rest:e.slice(i.index+i[0].length)}}else s++;return null}function Jo(e,t){let r=document.getElementById(e);if(!r){Gc(e);return}let n=document.createElement("template");n.innerHTML=t;let o=[...n.content.childNodes];r.replaceWith(n.content);for(let s of o)s.nodeType===1&&Zo(s)}async function In(e,t,r,n){let o=r,s=()=>{let i;for(;i=Yo(o);){if(!n())return!1;Jo(i.id,i.content),o=i.rest}return!0};if(!e){s();return}try{for(;;){if(!s()){try{await e.cancel()}catch{}return}let{value:i,done:a}=await e.read();if(i&&(o+=t.decode(i,{stream:!0})),a){o+=t.decode(),s();return}}}catch{}}var qn=T(()=>{ge();Ot()});function Tr(){if(typeof document>"u")return!1;let e=document.querySelector('meta[name="view-transition"]');return e?(e.getAttribute("content")||"").trim().toLowerCase()==="same-origin":!1}function jt(e,t){let r=typeof document<"u"?document.startViewTransition:void 0;if(Tr()&&typeof r=="function"){let n=r.call(document,e);return n&&n.finished&&typeof n.finished.then=="function"?n.finished.then(()=>{t&&t()}).catch(()=>{}):t&&t(),n&&n.updateCallbackDone&&typeof n.updateCallbackDone.then=="function"?n.updateCallbackDone.catch(()=>{}):Promise.resolve()}return e(),t&&t(),Promise.resolve()}function Dn(e,t){if(!e||!t||typeof e.querySelectorAll!="function")return;let r=e.querySelectorAll("[data-webjs-permanent][id]");for(let n of r){let o=n.id;if(!o)continue;let s=null;try{s=t.querySelector(`#${CSS.escape(o)}`)}catch{s=null}if(!s||!n.hasAttribute||!n.hasAttribute("data-webjs-permanent"))continue;let i=s.parentNode;i&&s!==n&&(i.replaceChild(n,s),Er.add(n))}}function qe(e,t){let r=[];for(let n of e){if(n.nodeType!==1)continue;let o=n;if(o.hasAttribute&&o.hasAttribute("data-webjs-permanent")&&o.id&&r.push(o),typeof o.querySelectorAll=="function")for(let s of o.querySelectorAll("[data-webjs-permanent][id]"))r.push(s)}if(r.length)for(let n of r){let o=n.id;if(!o)continue;let s=Sd(t,o);if(!s||s===n)continue;let i=s.parentNode;if(i)i.replaceChild(n,s),Er.add(n);else{let a=t.indexOf(s);a!==-1&&(t[a]=n,Er.add(n))}}}function Sd(e,t){for(let r of e){if(r.nodeType!==1)continue;let n=r;if(n.id===t)return n;if(typeof n.querySelector=="function"){let o=null;try{o=n.querySelector(`#${CSS.escape(t)}`)}catch{o=null}if(o)return o}}return null}var Er,Pt=T(()=>{Er=new WeakSet});function bl(e,t){let r=[];for(let n=e.parentNode;n;n=n.parentNode)if(r.unshift(n),n===t)return r;return null}function Sl(e,t,r,n){let o=bl(e.start,r),s=bl(t.start,n);if(!o||!s||o.length!==s.length)return null;for(let i=1;i<o.length;i++)if(o[i].tagName!==s[i].tagName||Yi(o[i]))return null;return{live:o,incoming:s,liveRange:e,incomingRange:t}}function yl(e,t,r){let n=[],o=[],s=n;for(let i=e.firstChild;i;i=i.nextSibling)i===t&&(s=null),s&&s.push(i),i===r&&(s=o);return{before:n,after:o}}function _d(e,t){for(let r of t.attributes)je.has(r.name)||r.name==="data-wj-serialized"||e.getAttribute(r.name)!==r.value&&e.setAttribute(r.name,r.value);for(let r of[...e.attributes])je.has(r.name)||t.hasAttribute(r.name)||e.removeAttribute(r.name)}function Ad(e,t){let r=new Map;for(let i of e){if(i.nodeType!==1)continue;let a=fe(i);a&&r.set(a,i)}let n=new Set,o=0,s=[];for(let i of t){if(i.nodeType===1){let c=fe(i),l=c?r.get(c):null;if(l&&!n.has(l)){n.add(l),De(l,i),s.push(l),o=Math.max(o,e.indexOf(l)+1);continue}}let a=o;for(;a<e.length;a++){let c=e[a];if(n.has(c)||c.nodeType!==i.nodeType)continue;if(c.nodeType!==1)break;let l=c;if(!fe(l)&&l.tagName===i.tagName)break}if(a<e.length&&(i.nodeType===1||i.nodeType===3||i.nodeType===8)){let c=e[a];n.add(c),c.nodeType===1?De(c,i):c.nodeValue!==i.nodeValue&&(c.nodeValue=i.nodeValue),s.push(c),o=a+1;continue}s.push(i)}return s}function wl(e,t,r,n,o){let s=r.map(u=>document.importNode(u,!0));qe(t,s);let i=Ad(t,s),a=new Set(i),c=n;if(o){let u=-1;for(let d=0;d<t.length;d++)a.has(t[d])&&(u=d);let f=t.slice(u+1);if(f.length){for(let d of f)a.add(d);c=f[0]}}for(let u of t)!a.has(u)&&u.parentNode===e&&e.removeChild(u);for(let u=i.length-1;u>=0;u--){let f=i[u];(f.parentNode!==e||f.nextSibling!==c)&&e.insertBefore(f,c),c=f}let l=new Set(t);return i.filter(u=>!l.has(u))}function _l(e){let{live:t,incoming:r,liveRange:n,incomingRange:o}=e,s=[];for(let i=0;i<t.length;i++){let a=t[i],c=r[i];i>0&&_d(a,c);let l=i===t.length-1,u=l?n.start:t[i+1],f=l?n.end:t[i+1],d=l?o.start:r[i+1],p=l?o.end:r[i+1],m=yl(a,u,f),y=yl(c,d,p),g=[...wl(a,m.before,y.before,u,!1),...wl(a,m.after,y.after,null,i===0)];for(let S of g)S.nodeType===1&&s.push(rt(S));for(let S of[m.before,m.after])for(let b of S)b.nodeType===1&&b.isConnected&&s.push(b)}for(let i of s)i.isConnected&&Me(i)}var Al=T(()=>{Q();It();Ot();Pt()});function Mt(e,t,r,n,o,s,i,a){let c=!1,l=()=>{if(!c){c=!0;try{vo(e,{frame:!!t})}catch{}}};try{for(let m of e.querySelectorAll("[data-wj-host]"))m.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!n||t||r)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(n&&!t&&!r){let m=document.querySelector('script[type="importmap"]'),y=m?m.getAttribute("data-webjs-build"):null,g=!1;if(o&&y&&(g=o!==y),!g&&e.head&&e.head.children.length>0){let S=Ui(document),b=Ui(e);S!==b&&(g=!0)}if(g&&typeof location<"u"){D.clear(),Rt(),vr();try{let S="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(S))sessionStorage.removeItem(S),he("deploy-mismatch-reload-suppressed",n,!1);else return sessionStorage&&sessionStorage.setItem(S,"1"),he("deploy-mismatch",n),Ee(n),"none"}catch{return he("deploy-mismatch",n),Ee(n),"none"}}else if(!g){let S=m?m.getAttribute("data-webjs-src"):null;s&&S&&s!==S&&(D.clear(),Rt(),vr(),m&&m.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){l();let m=document.querySelector(`webjs-frame#${CSS.escape(t)}`),y=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(m&&y){a&&a(),hr(e.head),qt=jt(()=>{kl(m,y),rt(m),Me(m),Gi(e.body),Dt()},()=>Me(m));return}let g=new CustomEvent("webjs:frame-missing",{bubbles:!0,cancelable:!0,detail:{frameId:t,url:n||(typeof location<"u"?location.href:null),document:e}});return(m||document).dispatchEvent(g),g.defaultPrevented||console.warn(`[webjs] frame "${t}" was not in the navigation response, leaving it unchanged. Handle "webjs:frame-missing" (preventDefault) to override.`),"none"}if(i==="shell"){l(),a&&a(),Ji(e);return}let u=be(document.body),f=be(e.body),d=u&&f?cn(u,f):null,p=d&&i==="layouts"?Sl(d.live,d.incoming,document.body,e.body):null;if(d&&i==="layouts"&&!p){l(),a&&a(),Ji(e);return}if(d){l(),a&&a();let{mode:m,live:y,incoming:g}=d;hr(e.head),qt=jt(()=>{m==="replace"?vl(y,g):El(y,g,e),Tl(y.start,g.start),p&&_l(p),Gi(e.body),Dt()},()=>xl(y));return}if(n&&!r&&typeof location<"u")return he(u?f?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",n),Ee(n),"none";if(n&&r)return he("revalidation-discarded",n,!1),"discard";l(),a&&a(),Ji(e)}function Ji(e){bn(e.head),Dn(document.body,e.body);let t=[...e.body.childNodes];qt=jt(()=>{document.body.replaceChildren(...t),rt(document.body),Me(document.body),Dt()},()=>Me(document.body))}var qt,Mn=T(()=>{Eo();Xe();ge();It();Qe();yn();Al();Lt();yr();Pe();qn();Ot();Pt();qt=Promise.resolve()});function Nl(){Zi||typeof MutationObserver>"u"||typeof customElements>"u"||(Zi=new MutationObserver(e=>{for(let t of e)for(let r of t.addedNodes){if(r.nodeType!==1)continue;let n=r;n.tagName?.includes("-")&&customElements.upgrade(n);for(let o of n.querySelectorAll("*"))o.tagName?.includes("-")&&customElements.upgrade(o)}}),Zi.observe(document.body,{childList:!0,subtree:!0}))}function xl(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&Me(t)}function Me(e){typeof customElements>"u"||Zo(e)}function Zo(e){let t=e instanceof Element?[e,...e.querySelectorAll("*")]:[...e.querySelectorAll("*")];for(let r of t)r.tagName&&r.tagName.includes("-")&&(customElements.upgrade(r),r.shadowRoot&&Zo(r.shadowRoot))}function rt(e){if(e.tagName==="SCRIPT"){let r=gn(e);return e.replaceWith(r),r}let t=[];Er.has(e)&&t.push(e);for(let r of e.querySelectorAll("[data-webjs-permanent]"))Er.has(r)&&t.push(r);for(let r of e.querySelectorAll("script"))t.length&&t.some(n=>n!==r&&n.contains(r))||r.replaceWith(gn(r));return e}function Fn(e){let t=[];for(let r=e.start.nextSibling;r&&r!==e.end;r=r.nextSibling)r.nodeType===1&&t.push(r);for(let r of t){let n=rt(r);n.isConnected!==!1&&Me(n)}}var Zi,Ot=T(()=>{Xe();Q();ge();It();un();Uo();Po();Qe();yn();Lt();yr();qn();Mn();Pt();Zi=null});function Dt(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function vl(e,t){let r=e.start.parentNode;if(!r)return;let n=[];for(let s=e.start.nextSibling;s&&s!==e.end;s=s.nextSibling)n.push(s);let o=[];for(let s=t.start.nextSibling;s&&s!==t.end;s=s.nextSibling)o.push(document.importNode(s,!0));qe(n,o);for(let s of n)s.parentNode===r&&r.removeChild(s);for(let s of o)r.insertBefore(s,e.end);Fn(e)}function El(e,t,r){if(!e||!t)return;let n=e.start.parentNode;if(!n)return;let o=[];for(let i=e.start.nextSibling;i&&i!==e.end;i=i.nextSibling)o.push(i);let s=[];for(let i=t.start.nextSibling;i&&i!==t.end;i=i.nextSibling)s.push(document.importNode(i,!0));qe(o,s),xd(n,e.start,e.end,o,s),Fn(e)}function xd(e,t,r,n,o){let s=new Map;for(let c of n){if(c.nodeType!==1)continue;let l=fe(c);l&&s.set(l,c)}let i=r,a=[];for(let c of o){if(c.nodeType===1){let l=fe(c);if(l&&s.has(l)){let u=s.get(l);De(u,c),a.push(u),s.delete(l);continue}}a.push(c)}for(let c of n)if(c.parentNode===e){if(c.nodeType===1&&a.includes(c))continue;e.removeChild(c)}for(let c of a)e.insertBefore(c,i)}function De(e,t){if(e===t)return;if(e.tagName!==t.tagName){e.replaceWith(t);return}let r=new Set;for(let n of t.attributes)r.add(n.name),!je.has(n.name)&&n.name!=="data-wj-serialized"&&e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value);for(let n of[...e.attributes])je.has(n.name)||r.has(n.name)||e.removeAttribute(n.name);if(Yi(e)){Ed(e,t);return}kr(e,t)}function Yi(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[R]!=null}function vd(e,t){for(let r=e.parentElement;r&&r!==t;r=r.parentElement)if(r.tagName.includes("-"))return!1;return!0}function Xo(e){let t=new Map,r=`slot[${L}][${K}="${Z}"]`;for(let n of e.querySelectorAll(r)){let o=n;if(!vd(o,e)||Ps(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(L)&&a.getAttribute(K)===Z){s=!0;break}if(s)continue;let i=te(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function Tl(e,t){let r=e.parentNode;if(!r||r.nodeType!==1)return;let n=r;if(n.tagName!=="SLOT"||!n.hasAttribute(L))return;let o=null;for(let f=n.parentElement;f;f=f.parentElement){if(f[R]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=te(n.getAttribute("name"));We(o,s,[...n.childNodes]);let i=t.parentNode;if(!i||i.nodeType!==1)return;let a=i;if(a.tagName!=="SLOT")return;let c=null;for(let f=a.parentElement;f;f=f.parentElement)if(f.tagName.includes("-")){c=f;break}if(!c||c.tagName!==o.tagName)return;let l=Xo(o),u=Xo(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let d=u.get(f);d?We(o,f,[...d.childNodes].map(p=>document.importNode(p,!0))):l.get(f)&&We(o,f,null)}}function Ed(e,t){if(!e[R])return;let r=Xo(e),n=Xo(t);if(r.size===0&&n.size===0)return;let o=new Set([...r.keys(),...n.keys()]);for(let s of o){let i=r.get(s),a=n.get(s);i&&a?(kr(i,a),We(e,s,[...i.childNodes])):a?We(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):We(e,s,null)}}function kr(e,t){let r=[...e.childNodes],n=[...t.childNodes].map(a=>document.importNode(a,!0));qe(r,n);let o=new Map;for(let a of r){if(a.nodeType!==1)continue;let c=fe(a);c&&o.set(c,a)}let s=[];for(let a=0;a<n.length;a++){let c=n[a];if(c.nodeType===1){let l=fe(c);if(l&&o.has(l)){let f=o.get(l);De(f,c),s.push(f),o.delete(l);continue}let u=r[a];if(u&&u.nodeType===1&&!fe(u)&&u.tagName===c.tagName){De(u,c),s.push(u);continue}}else if(c.nodeType===3){let l=r[a];if(l&&l.nodeType===3){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}else if(c.nodeType===8){let l=r[a];if(l&&l.nodeType===8){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}s.push(c)}let i=new Set(s);for(let a of r)!i.has(a)&&a.parentNode===e&&e.removeChild(a);for(let a=0;a<s.length;a++){let c=s[a];(c.parentNode!==e||e.childNodes[a]!==c)&&e.insertBefore(c,e.childNodes[a]||null)}}function fe(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function Nr(){let e=be(document.body);if(!e||e.size===0)return null;let t=[...e.keys()].sort((c,l)=>l.length-c.length),r=null,n=null;for(let c of t){let l=document.getElementById(`wj-loading:${c}`);if(l instanceof HTMLTemplateElement){r=c,n=l;break}}if(r===null||n===null)return null;let o=e.get(r),s=ve(),i=[];for(let c=o.start.nextSibling;c&&c!==o.end;c=c.nextSibling)i.push(c);let a=document.createRange();return a.setStartAfter(o.start),a.setEndBefore(o.end),a.deleteContents(),o.start.parentNode.insertBefore(n.content.cloneNode(!0),o.end),{slot:o,oldChildren:i,token:V,haveKeys:s}}function nt(e){if(!e||e.token!==V)return;let{slot:t,oldChildren:r}=e;if(t.start.parentNode!==t.end.parentNode)return;let n=document.createRange();n.setStartAfter(t.start),n.setEndBefore(t.end),n.deleteContents();for(let o of r)t.start.parentNode.insertBefore(o,t.end)}function kl(e,t){kr(e,t)}var It=T(()=>{wt();Xe();Q();Pe();Ot();Pt()});function Td(e){if(typeof document>"u"||!document.body)return!1;let t=be(document.body);if(!t)return!1;let r,n=-1;for(let[c,l]of t)c.length>n&&(n=c.length,r=l);if(!r)return!1;let o=r.start.parentNode;if(!o||r.start.parentNode!==r.end.parentNode)return!1;let s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("data-webjs-nav-error","");let i=e?`This page could not be loaded. (status ${e})`:"This page could not be loaded.";s.textContent=i;let a=document.createRange();return a.setStartAfter(r.start),a.setEndBefore(r.end),a.deleteContents(),o.insertBefore(s,r.end),!0}function Qo(e,t,r){let n=new CustomEvent("webjs:navigation-error",{bubbles:!0,cancelable:!0,detail:{url:e,status:t??null,error:r||null}});if(typeof document<"u")try{document.dispatchEvent(n)}catch{}n.defaultPrevented||Td(t)||typeof location<"u"&&(he("navigation-error-unrecoverable",e),Ee(e))}var Cl=T(()=>{Xe();ge();Pe()});async function $n(e,t,r,n,o,s,i,a,c,l){o=o||"GET";let u=l&&l.refresh||void 0,f=s!=null&&o!=="GET"&&o!=="HEAD"&&!t,d=!!(l&&l.noPrefetch),p=!!(l&&l.preserveScroll),m=typeof a=="number"?a:V,y,g=null,S=null,b=null,E=null,A=!1,v=e,k=t?wn(t,m):null;try{try{let x=o==="GET"&&!s&&!u&&!d?On(e,n?n.haveKeys:void 0,t):null;if(x)y=x.html,S=x.build,b=x.src,v=x.finalUrl,E=200,A=!0;else{let C={"x-webjs-router":"1"},W=u||f?"":ve();W&&(C["x-webjs-have"]=W),t&&(C["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(C.accept=ji+", text/html");let q={method:o,headers:C,credentials:"same-origin",cache:"no-cache"};i&&(q.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(q.body=s);let M=await fetch(e,q);E=M.status,A=M.ok;let Ft=Oi(M.headers.get("x-webjs-invalidate"));Ft.length&&Li(Ft);let Cr=M.headers.get("content-type")||"",os=/^text\/html\b/i.test(Cr);if(Cr.toLowerCase().indexOf(ji)===0){let Pl=await M.text(),Hn=m===V;return Hn&&(nt(n),ki(Pl)),{ok:Hn&&A,status:E,aborted:!Hn,applied:Hn}}if(M.redirected&&M.url&&(v=M.url),M.status===204||M.status===205)return m===V&&r&&history.pushState(null,"",v),{ok:A,status:E,aborted:!1,applied:!1};if(!os)return m===V&&(nt(n),Qo(e,M.status,null)),{ok:!1,status:E,aborted:!1,applied:!1};S=M.headers.get("x-webjs-build"),b=M.headers.get("x-webjs-src");let ss=await Pn(M);y=ss.shell,ss.streaming&&(g=ss)}}catch(x){return x&&x.name==="AbortError"?{ok:!1,status:null,aborted:!0,applied:!1}:m!==V?{ok:!1,status:null,aborted:!0,applied:!1}:(nt(n),Qo(e,null,x instanceof Error?x:new Error(String(x))),{ok:!1,status:null,aborted:!1,applied:!1})}if(m!==V){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:!1,status:E,aborted:!0,applied:!1}}let N=Nt(y);if(!N)return nt(n),Qo(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:E,aborted:!1,applied:!1};let _=!1,h=r?()=>{_||(_=!0,history.pushState(null,"",v))}:null,w=Mt(N,t,!!c,v,S,b,u||(f?"layouts":void 0),h),I=w!=="none";if(w==="discard"){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:A,status:E,aborted:!1,applied:!1}}if(h&&h(),r&&!t){let x=new URL(v),C=x.hash?document.getElementById(x.hash.slice(1)):null;C?C.scrollIntoView():p||(Yc(),window.scrollTo({left:0,top:0,behavior:"instant"}))}return g&&(g.reader||g.rest)&&qt.then(()=>In(g.reader,g.dec,g.rest,()=>m===V)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:v,frameId:t,from:"navigate"}})),{ok:A,status:E,aborted:!1,applied:I}}finally{k&&Sn(k,m)}}var Rl=T(()=>{ko();on();Xe();Q();ge();It();un();Qe();Cl();En();Lt();Pe();qn();Mn()});function cl(e){if(!rl(e)||!ie)return!1;let t,r;try{t=new URL(ie),r=new URL(e,location.href)}catch{return!1}return t.pathname!==r.pathname||t.search!==r.search?!1:(ie=r.href,!0)}function Bn(){se||typeof document>"u"||(Mi(!0),globalThis.__webjsRefreshPage=rs,document.addEventListener("click",Vi,!1),document.addEventListener("submit",br,!1),window.addEventListener("popstate",gr),document.addEventListener("pointerover",Ct,!0),document.addEventListener("focusin",Ct,!0),document.addEventListener("touchstart",Ct,{capture:!0,passive:!0}),document.addEventListener("pointerout",Ki,!0),document.addEventListener("webjs:navigate",Go),Nl(),Go(),typeof history<"u"&&"scrollRestoration"in history&&(es=history.scrollRestoration,history.scrollRestoration="auto"),typeof location<"u"&&(ie=location.href),Kc())}function Xi(){se&&(Mi(!1),document.removeEventListener("click",Vi,!1),document.removeEventListener("submit",br,!1),window.removeEventListener("popstate",gr),Lo(),document.removeEventListener("pointerover",Ct,!0),document.removeEventListener("focusin",Ct,!0),document.removeEventListener("touchstart",Ct,{capture:!0}),document.removeEventListener("pointerout",Ki,!0),document.removeEventListener("webjs:navigate",Go),jn(),Ko(),gl(),typeof history<"u"&&es!==null&&(history.scrollRestoration=es,es=null),Bo(),le&&le(),ue&&ue(),ie=null,delete globalThis.__webjsRefreshPage)}async function Qi(e,t){let r=new URL(e,location.href);if(r.origin!==location.origin){Ee(e);return}await vn(r.href,t?.replace??!1,null,{preserveScroll:t?.scroll===!1})}async function ea(e,t){if(typeof location>"u")return{ok:!1,status:null,aborted:!1,applied:!1};let r=e&&e.id;if(!r)return{ok:!1,status:null,aborted:!1,applied:!1};let n=new URL(t,location.href);if(n.origin!==location.origin)return{ok:!1,status:null,aborted:!1,applied:!1};de&&de.abort(),de=new AbortController;let o=de.signal,s=Ro(),i=await $n(n.href,r,!1,null,"GET",null,o,s,!1,{noPrefetch:!0});return i&&i.applied&&dl(n.href,r),i}function ts(e){if(!e){D.clear(),Rt();return}let t=new URL(e,location.href),r=t.pathname+t.search;D.delete(r),j.delete(r);let n=` ${r}`;for(let o of[...j.keys()])o.endsWith(n)&&j.delete(o)}async function rs(e){if(!se||typeof location>"u")return!1;ts(),vr();try{let t=await vn(location.href,!1,null,{refresh:e==="shell"?"shell":"page"});return!t||t.aborted?!0:t.applied}catch{return!1}}async function vn(e,t,r,n){Lo();let o=n&&n.refresh||void 0,s=!!(n&&n.preserveScroll);if(Di(t,r)&&typeof location<"u")return he("readyState-loading",e),Ee(e),null;de&&de.abort(),de=new AbortController;let i=de.signal,a=Ro();r||(Bo(),le&&le(),ue&&ue()),!o&&ie&&Wi(ie);let c=setTimeout(()=>{an(!0),c=null},150),l=null;!t&&!o&&(l=Nr());let u=!1;try{if(t){let d=ul(e);if(d){let p=Nt(d.html);if(p){let m=al(d.scrollHeight);Mt(p,r,!0,null);let y=()=>{};if(typeof window<"u"){let b=()=>{y=il(d.scrollX,d.scrollY)};if(Tr()&&typeof document.startViewTransition=="function"){let E=Fo;qt.then(()=>{E!==Fo||!se||b()}).catch(()=>{})}else b()}let g=$n(e,r,!1,l,"GET",null,i,a,!0).catch(()=>{}),S=new Promise(b=>setTimeout(b,500));return Promise.all([g,S]).then(()=>$o(()=>{y(),$o(m)})),null}}u=!0,typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}let f=await $n(e,r,!t&&!o,l,"GET",null,i,a,!1,{refresh:o,preserveScroll:s});return u&&f&&f.applied&&typeof window<"u"&&$o(()=>{a!==V||!se||window.scrollTo({left:0,top:0,behavior:"instant"})}),f}finally{c&&clearTimeout(c),a===V&&(an(!1),typeof location<"u"&&(ie=location.href))}}async function ll(e,t,r,n,o,s){Lo(),de&&de.abort(),de=new AbortController;let i=de.signal,a=Ro();n||(Bo(),le&&le(),ue&&ue());let c=t==="get"||t==="head",l=new URL(e,location.href);if(c){l.search="";for(let[m,y]of r)l.searchParams.append(m,typeof y=="string"?y:y.name)}ie&&Wi(ie);let u=setTimeout(()=>{an(!0),u=null},150),f=Nr(),d=o?_n(o,a,l.href):null,p=!1;try{let m=await $n(l.href,n,!0,f,c?"GET":t.toUpperCase(),c?null:r,i,a,!1,{preserveScroll:!!(s&&s.preserveScroll)});p=!!(m&&m.ok),!c&&a===V&&(D.clear(),Rt())}finally{d&&An(d,a,l.href,p),u&&clearTimeout(u),a===V&&(an(!1),typeof location<"u"&&(ie=location.href))}}function Ll(){return ie}function Ol(e){ie=e}var de,ie,es,En=T(()=>{Q();ge();It();un();Uo();Rl();Qe();Lt();Ho();yr();Pe();Mn();Ot();Pt();de=null,ie=null;es=null});var qc={};is(qc,{_FALLBACK_MARKER_KEY:()=>kt,_FRAME_TOP:()=>sn,_LIVE_ATTRS:()=>je,_activateSwappedRange:()=>Fn,_activeFrameId:()=>Mo,_addNewHeadElements:()=>hr,_applyOptimisticLoading:()=>Nr,_applyStreamedResolve:()=>Jo,_applySwap:()=>Mt,_blurOutgoingFocus:()=>Dt,_buildHaveHeader:()=>ve,_buildSubmitFormData:()=>hn,_bumpNavToken:()=>el,_clearFormBusy:()=>An,_clearFrameBusy:()=>Sn,_collectBoundaries:()=>be,_currentPageUrl:()=>Ll,_diffElementInPlace:()=>De,_eligibleAnchorHref:()=>Ar,_encodeSubmitBody:()=>mn,_findAnchorInPath:()=>Oo,_getSubmitAction:()=>dn,_getSubmitEnctype:()=>pn,_getSubmitMethod:()=>fn,_isNonHtmlPath:()=>Uc,_isPreBootNavigation:()=>Co,_keyOf:()=>fe,_markFormBusy:()=>_n,_markFrameBusy:()=>wn,_mergeHead:()=>bn,_navToken:()=>Qc,_onPopState:()=>gr,_onSubmit:()=>br,_parseHTML:()=>Nt,_planBoundarySwap:()=>cn,_prefetch:()=>tt,_prefetchAnchor:()=>zo,_prefetchCache:()=>j,_prefetchHasHoverPointer:()=>Vo,_prefetchInflightSize:()=>ml,_prefetchMode:()=>xr,_prefetchPeek:()=>pl,_prefetchSaysSaveData:()=>Ln,_prefetchSuppressed:()=>Wo,_prefetchTake:()=>On,_reactivateScripts:()=>rt,_readStreamedShell:()=>Pn,_reconcileChildren:()=>kr,_regraftPermanentElements:()=>Dn,_regraftPermanentInSlice:()=>qe,_resetParseProbe:()=>Fi,_resetPrefetch:()=>hl,_resetWarnOnce:()=>Jc,_resolvePreserveScroll:()=>xn,_resolveTargetFrameId:()=>ye,_restoreOptimistic:()=>nt,_runWithTransition:()=>jt,_setCurrentPageUrl:()=>Ol,_setHardNavigate:()=>Xc,_shouldFullLoadDuringParse:()=>Zc,_snapshotCache:()=>D,_streamBoundariesProgressively:()=>In,_takeResolveUnit:()=>Yo,_viewTransitionsEnabled:()=>Tr,disableClientRouter:()=>Xi,enableClientRouter:()=>Bn,loadFrame:()=>ea,navigate:()=>Qi,refreshPage:()=>rs,revalidate:()=>ts});var Ei=T(()=>{vi();on();on();Ce();Mc();Eo();ko();wt();En();Q();ge();En();Lt();Pe();Xe();Q();ge();It();un();jo();Uo();Po();Qe();yn();Lt();Ho();yr();qn();Mn();Ot();Pt();(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&Bn()});$t();function ql(e,...t){let r=e[0];for(let n=1;n<e.length;n++)r+=String(t[n-1]??"")+e[n];return{_$webjsCss:!0,text:r}}function Bt(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function cs(e,t){if(!(!t||!t.length))if("adoptedStyleSheets"in e&&typeof CSSStyleSheet<"u"){let r=t.map(n=>{let o=new CSSStyleSheet;return o.replaceSync(n.text),o});e.adoptedStyleSheets=r}else{let r=e,n=document.createElement("style");n.textContent=t.map(o=>o.text).join(`
8
8
  `),r.appendChild(n)}}function Un(e){return!e||!e.length?"":`<style>${e.map(t=>t.text).join(`
9
- `)}</style>`}Pt();ke();Kt();mt();Pt();Vn();ke();mt();var to=new WeakMap,ro=new WeakMap,Hr=Symbol.for("webjs.instance");function Jt(e){let{strings:t}=e,r=to.get(t);if(r)return r;let n=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",p="";for(let g=0;g<t.length;g++){let w=t[g];for(let _=0;_<w.length;_++){let b=w[_];switch(s){case"text":o+=b,b==="<"&&(s="tag-open");break;case"tag-open":o+=b,b==="!"?s="bang-1":b==="/"?(s="tag-name",f=""):/[a-zA-Z]/.test(b)?(s="tag-name",f=b.toLowerCase()):s="text";break;case"bang-1":o+=b,s=b==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=b,b==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=b,b==="-"?l+=1:(b===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(p="")):/\s/.test(b)?s="in-tag":f+=b.toLowerCase();break;case"in-tag":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(p="")):!/\s/.test(b)&&b!=="/"&&(s="attr-name",i=b,a=o.length-1);break;case"rawtext":o+=b,p=(p+b.toLowerCase()).slice(-9),(p.endsWith("<\/script>")||p.endsWith("</style>"))&&(s="text",p="",f="");break;case"attr-name":b==="="?(s="after-eq",o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(i+=b,o+=b);break;case"after-eq":b==='"'||b==="'"?(s="attr-quoted",c=b,o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(s="attr-unquoted",o+=b);break;case"attr-unquoted":/\s/.test(b)?(s="in-tag",i="",o+=b):(b===">"&&(s="text",i=""),o+=b);break;case"attr-quoted":o+=b,b===c&&(s="in-tag",i="");break;case"skip-attr":if(b===c){if(u){let E=u.firstPartIdx,A=[];for(let y=E;y<n.length;y++)(n[y].kind==="noop"||n[y].kind==="attr-mixed")&&A.push(y);let T=[],k=t[A[0]],N=k.lastIndexOf(c);T.push(N>=0?k.slice(N+1):k);for(let y=1;y<A.length;y++)T.push(t[A[y]]);let S=t[A[A.length-1]+1],h=S.indexOf(c);T.push(h>=0?S.slice(0,h):S),n[E]={kind:"attr-mixed",path:[],name:u.name,statics:T,group:A};for(let y=1;y<A.length;y++)n[A[y]]={kind:"noop",path:[],mixedAnchor:E};u=null}s="in-tag",i=""}break}}if(g<t.length-1){let _=n.length;if(s==="comment"){l=0,n.push({kind:"noop",path:[]});continue}if(s==="rawtext"){p="",n.push({kind:"noop",path:[]});continue}if(s==="text")o+=`<!--${M}${_}-->`,n.push({kind:"child",path:[]});else if(s==="in-tag"){let b=`data-${M}${_}`;o+=`${b}=""`,n.push({kind:"element",path:[]})}else if(s==="after-eq"){let b=i[0],E=i.slice(1);if(Cr(b)){o=o.slice(0,a);let A=qt[b],T=`data-${M}${_}`;o+=`${T}=""`,n.push({kind:A,path:[],name:E})}else{o=o.slice(0,a);let A=`data-${M}${_}`;o+=`${A}=""`,n.push({kind:"attr",path:[],name:i})}s="in-tag",i=""}else if(s==="attr-quoted"||s==="attr-unquoted"){o=o.slice(0,a);let b=`data-${M}${_}`;o+=`${b}=""`,u={name:i,firstPartIdx:_},n.push({kind:"noop",path:[]}),s="skip-attr"}else s==="skip-attr"&&n.push({kind:"noop",path:[]})}}let d=document.createElement("template");d.innerHTML=o,nu(d.content,n);let m=ou(d.content,n);return r={templateEl:d,parts:n,formActions:m},to.set(t,r),r}function nu(e,t){let r=e.querySelectorAll("slot");for(let n of r){n.setAttribute(O,"");let o=t.length;n.setAttribute(`data-${M}${o}`,""),t.push({kind:"slot",path:[]})}}function ou(e,t){let r=[],n=[];function o(s){for(let i=0;i<s.childNodes.length;i++){let a=s.childNodes[i];if(r.push(i),a.nodeType===8){let c=a.data;if(c.startsWith(M)){let l=Number(c.slice(M.length));t[l]&&t[l].kind==="child"&&(t[l].path=r.slice())}}else if(a.nodeType===1){let c=a,l=[],u=[];for(let f of c.attributes)if(f.name.startsWith(`data-${M}`)){let p=Number(f.name.slice(`data-${M}`.length));t[p]&&t[p].kind!=="child"&&(t[p].path=r.slice(),u.push({idx:p,kind:t[p].kind,name:t[p].name||""})),l.push(f.name)}if(c.localName==="form"||c.localName==="button"||c.localName==="input"){let f=su(c,u,t);f&&n.push(f)}for(let f of l)c.removeAttribute(f);o(a)}r.pop()}}return o(e),n.length?n:null}function su(e,t,r){let n=e.localName==="form",o=n?"action":"formaction",s=n?"method":"formmethod",i=n?"enctype":"formenctype",a=t.filter(w=>w.kind==="attr"&&w.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=n?[]:t.filter(w=>w.name.toLowerCase()==="name"&&(w.kind==="attr"||w.kind==="attr-mixed"||w.kind==="bool")).map(w=>({i:w.idx,kind:w.kind})),p=!n&&e.hasAttribute("name"),d=!n&&e.hasAttribute("form"),m=!n&&e.hasAttribute("value"),g=n?[]:t.filter(w=>w.name.toLowerCase()==="value"&&(w.kind==="attr"||w.kind==="attr-mixed"||w.kind==="bool")).map(w=>({i:w.idx,kind:w.kind}));for(let w of t){let _=String(w.name).toLowerCase();if(w.kind==="prop"){n?(_==="method"||_==="enctype"||_==="encoding")&&u.push(w.name):Bt(_)&&u.push(w.name);continue}if(_!==s&&_!==i||w.kind!=="attr"&&w.kind!=="attr-mixed"&&w.kind!=="bool")continue;let b=r[w.idx],E={i:w.idx,kind:w.kind};w.kind==="attr-mixed"&&(E.statics=b.statics||[],E.group=b.group||[]),(_===s?c:l).push(E)}return{isForm:n,tag:e.localName,actionIdxs:a.map(w=>w.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:p,authoredValue:m,authoredForm:d,propAttrs:u,nameParts:f,valueParts:g,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}Pt();ke();Pr();Kt();var fe=null,Be=!1,Xt=0,Zt=null,Ws=0,va=(e,t)=>Object.is(e,t),oo=()=>{},Ea=()=>!1;function Ta(e,t){e.liveConsumers||(e.liveConsumers=new Map);let r=e.liveConsumers.size===0;if(e.liveConsumers.set(t,(e.liveConsumers.get(t)||0)+1),r){if(e.producers&&e.producers.length>0)for(let n of e.producers)Ta(n,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(n){console.error(n)}}}function Ur(e,t){if(!e.liveConsumers)return;let r=e.liveConsumers.get(t);if(r!==void 0){if(r>1){e.liveConsumers.set(t,r-1);return}if(e.liveConsumers.delete(t),e.liveConsumers.size===0){if(e.producers&&e.producers.length>0)for(let n of e.producers)Ur(n,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(n){console.error(n)}}}}function Zs(e){if(Be)throw new Error("Signal read during notification phase");if(fe===null)return;let t=fe,r=t.nextProducerIndex++;r<t.producers.length&&t.producers[r]!==e&&Gs(t)&&Ur(t.producers[r],t),t.producers[r]!==e&&(t.producers[r]=e,Gs(t)&&Ta(e,t)),t.producerLastReadVersions[r]=e.version}function Gs(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function ka(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=Be;Be=!0;try{for(let r of e.liveConsumers.keys())r.dirty||iu(r)}finally{Be=t}}function iu(e){e.dirty=!0,ka(e),e.consumerMarkedDirty.call(e.wrapper||e)}function so(e){if(!(!e.dirty&&e.lastCleanEpoch===Xt)){if(!e.producerMustRecompute()&&!au(e)){e.dirty=!1,e.lastCleanEpoch=Xt;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=Xt}}function au(e){for(let t=0;t<e.producers.length;t++){let r=e.producers[t],n=e.producerLastReadVersions[t];if(n!==r.version||(so(r),n!==r.version))return!0}return!1}function Ys(e){e&&(e.nextProducerIndex=0);let t=fe;return fe=e,t}function Js(e,t){if(fe=t,!!e){if(Gs(e))for(let r=e.nextProducerIndex;r<e.producers.length;r++)Ur(e.producers[r],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var io=class{constructor(t,r){this.__value=t,this.version=0,this.lastCleanEpoch=Xt,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=Ea,this.producerRecomputeValue=oo,this.consumerMarkedDirty=oo,this.wrapper=this,this.__isSignal=!0,this.__equal=r?.equals||va,this.watched=r?.[Xs],this.unwatched=r?.[Qs]}get(){return Zs(this),this.__value}peek(){return this.__value}set(t){if(Be)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,Xt++,Zt!==null?Na(this):ka(this))}};function Na(e){let t=Be;Be=!0;try{if(!e.liveConsumers)return;for(let r of e.liveConsumers.keys())r.dirty||(r.dirty=!0,r.__isWatcher?Zt.add(r):Na(r))}finally{Be=t}}var zs=Symbol("unset"),Ks=Symbol("computing"),no=Symbol("errored"),Vr=class{constructor(t,r){this.__fn=t,this.__value=zs,this.__error=null,this.version=0,this.lastCleanEpoch=-1,this.dirty=!0,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!1,this.wrapper=this,this.__isSignal=!0,this.__isComputed=!0,this.__equal=r?.equals||va,this.watched=r?.[Xs],this.unwatched=r?.[Qs];let n=this;this.producerMustRecompute=function(){return n.__value===zs||n.__value===Ks},this.producerRecomputeValue=function(){if(n.__value===Ks)throw new Error("Detected cycle in computations.");let o=n.__value;n.__value=Ks;let s=Ys(n),i,a=!1;try{i=n.__fn.call(n.wrapper)}catch(l){i=no,n.__error=l,a=!0}finally{Js(n,s)}if(!a&&(o!==zs&&o!==no)&&n.__equal.call(n.wrapper,o,i)){n.__value=o;return}n.__value=i,n.version++},this.consumerMarkedDirty=oo}get(){if(so(this),Zs(this),this.__value===no)throw this.__error;return this.__value}peek(){if(so(this),this.__value===no)throw this.__error;return this.__value}},ao=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=Xt,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=Ea,this.producerRecomputeValue=oo,this.wrapper=this,this.__isWatcher=!0;let r=this;this.consumerMarkedDirty=function(){r.__fire()}}__fire(){this.__notify&&this.__notify.call(this)}watch(...t){if(t.length===0){this.dirty=!1;return}let r=Ys(this);try{for(let n of t)Zs(n),n.__isComputed&&so(n)}finally{Js(this,r)}this.dirty=!1}unwatch(...t){for(let r=this.producers.length-1;r>=0;r--)t.includes(this.producers[r])&&(Ur(this.producers[r],this),this.producers.splice(r,1),this.producerLastReadVersions.splice(r,1),this.nextProducerIndex=Math.min(this.nextProducerIndex,this.producers.length))}getPending(){return this.producers.filter(t=>t.__isComputed&&t.dirty)}observe(t){let r=Ys(this),n;try{n=t()}finally{Js(this,r)}return this.dirty=!1,n}dispose(){for(let t of this.producers)Ur(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},Xs=Symbol("watched"),Qs=Symbol("unwatched");function cu(e){let t=fe;fe=null;try{return e()}finally{fe=t}}function lu(e){return e.producers.slice()}function uu(e){return e.liveConsumers?[...e.liveConsumers.keys()]:[]}function fu(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function du(e){return e.producers.length>0}function pu(){return fe&&fe.__isComputed?fe:null}function mu(e){Ws++,Zt===null&&(Zt=new Set);try{e()}finally{if(Ws--,Ws===0){let t=Zt;Zt=null;for(let r of t)r.__fire()}}}var Wr={State:io,Computed:Vr,subtle:{Watcher:ao,untrack:cu,introspectSources:lu,introspectSinks:uu,hasSinks:fu,hasSources:du,currentComputed:pu,watched:Xs,unwatched:Qs}};function hu(e,t){return new io(e,t)}function gu(e,t){return new Vr(e,t)}function bu(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function yu(e){let t=!1,r=!1,n=new Vr(e),o=new ao(()=>{t||r||(t=!0,queueMicrotask(()=>{if(t=!1,!r){try{n.get()}catch(s){console.error(s)}o.watch()}}))});o.watch(n);try{n.get()}catch(s){console.error(s)}return()=>{r||(r=!0,o.dispose())}}mt();var ee=null;function ti(e){ee=e}function Ra(e,t){let r=e&&e[L]?e:null;return r?dt(r,t):t()}function lo(e){return e?e.nodeType===11&&e.host?e.host:e:null}function ri(e,t){let r=e.__commitOwner,n=ee;r&&(ee=r);try{t()}finally{ee=n}}function Kr(e,t){if(e.kind==="noop")return{kind:"noop",mixedAnchor:e.mixedAnchor};let r=t;for(let o of e.path)r=r.childNodes[o];if(e.kind==="child")return{kind:"child",marker:r};let n=r;if(e.kind==="event"){let o={kind:"event",el:n,name:e.name||"",handler:null,dispatcher(s){o.handler?.(s)}};return n.addEventListener(o.name,o.dispatcher),o}if(e.kind==="attr")return{kind:"attr",el:n,name:e.name||""};if(e.kind==="attr-mixed")return{kind:"attr-mixed",el:n,name:e.name||"",statics:e.statics||[],group:e.group||[]};if(e.kind==="prop")return{kind:"prop",el:n,name:e.name||""};if(e.kind==="bool")return{kind:"bool",el:n,name:e.name||""};if(e.kind==="element")return{kind:"element",el:n};if(e.kind==="slot")return{kind:"slot",slotEl:n,applied:!1};throw new Error(`unknown part kind ${e.kind}`)}function de(e,t,r,n,o){if(Y(t)){let s=t.value;if(e.kind==="prop"&&e.el[e.name]===s||e.kind==="attr"&&e.el.getAttribute(e.name)===String(s)||e.kind==="bool"&&e.el.hasAttribute(e.name)===!!s)return;t=s}switch(e.kind){case"child":_u(e,t,o);break;case"attr":{t==null||t===!1?e.el.removeAttribute(e.name):et(t,e.name,e.el.localName)||(ie(t,e.name,e.el.localName),e.el.setAttribute(e.name,String(t)));break}case"prop":Or(t,e.name,e.el.localName),e.el[e.name]=t;break;case"bool":ie(t,e.name,e.el.localName),t?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":e.handler=typeof t=="function"?t:null;break;case"element":Su(e,t);break;case"attr-mixed":{let s=e,i=s.statics[0];for(let a=0;a<s.group.length;a++){let c=n?n[s.group[a]]:t;Y(c)&&(c=c.value),ie(c,e.name,e.el.localName),i+=String(c??""),i+=s.statics[a+1]||""}e.el.setAttribute(e.name,i);break}case"slot":{if(e.applied)break;let s=e.slotEl,i=()=>{let c=Qt(s);if(!c){e.applied=!0;return}if(!c.contains(s)){c.isConnected?queueMicrotask(i):e.applied=!0;return}if(e.applied=!0,wu(s))return;let l=document.createDocumentFragment();for(;s.firstChild;)l.appendChild(s.firstChild);s[qe]=l,queueMicrotask(()=>ne(c))},a=Qt(s);a&&a.contains(s)?i():queueMicrotask(i);break}case"noop":break}}function Qt(e){let t=e[ct];if(t&&t.isConnected)return t;let r=e.parentElement;for(;r;){if(r[L])return r;r=r.parentElement}return null}function wu(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function Su(e,t){let r=e,n=ot(t)?t.target:void 0,o=r.__refTarget,s=n!==o;if(s&&o)if(typeof o=="function")try{o(void 0)}catch{}else typeof o=="object"&&(o.value=void 0);if(s||r.__refElement!==e.el){if(r.__refTarget=n,n)if(typeof n=="function"){if(!s&&r.__refElement!==void 0)try{n(void 0)}catch{}try{n(e.el)}catch{}}else typeof n=="object"&&(n.value=e.el);r.__refElement=e.el,e.lastTarget=n}}function _u(e,t,r){return Ru(e,t),Se(e,t,r)}function Se(e,t,r){return Ra(e.marker&&e.marker.parentNode,()=>La(e,t,r))}function La(e,t,r){let n=e.marker;if(Y(t))return La(e,t.value,r);if(Ut(t)){He(e);let s=String(t.value??""),i=document.createElement("template");i.innerHTML=s;let a=[...i.content.childNodes],c=document.createDocumentFragment();for(let l of a)c.appendChild(l);n.parentNode?.insertBefore(c,n),e.child=a;return}if(rt(t)){let s=t,i=e.__keyedKey;i!==void 0&&!Object.is(i,s.key)&&He(e),e.__keyedKey=s.key,Se(e,s.value,r);return}if(nt(t)){let s=t,i=e.__guardDeps,a=s.deps;if(i!==void 0&&(Array.isArray(i)&&Array.isArray(a)?Cu(i,a):Object.is(i,a)))return;let c=Array.isArray(a)?a.slice():a;Se(e,s.fn(),r),e.__guardDeps=c;return}if(Vt(t)){He(e);let s=t.template;if(s&&s.content){let i=s.content.cloneNode(!0),a=[...i.childNodes];n.parentNode?.insertBefore(i,n),e.child=a}return}if(ot(t))return;if(st(t))return Lu(e,t.value,r);if(it(t))return Ou(e,t.args,r);if(at(t))return ju(e,t.signal,r);if(Wt(t))return Pu(e,t,r);if(zt(t))return Iu(e,t,r);if(tt(t)){if(e.child&&e.child.kind==="repeat"){vu(e,t,r);return}He(e);let s={kind:"repeat",map:new Map};e.child=s,xu(n,s,t,r);return}if(Array.isArray(t)){if(e.child&&e.child.kind==="array"){ku(e,t,r);return}He(e);let s={kind:"array",items:[]};e.child=s,Tu(n,s,t,r);return}if(e.child){let s=e.child;if(s.kind==="repeat")Oa(s),e.child=void 0;else if(s.kind==="array")Pa(s),e.child=void 0;else if(s.kind==="async-stream")Ma(s),e.child=void 0;else if("strings"in e.child){let i=e.child;if(W(t)&&i.strings===t.strings){ht(i,t.values,r);return}er(i.startNode,i.endNode),e.child=void 0}else{for(let i of e.child)i.parentNode&&i.parentNode.removeChild(i);e.child=void 0}}if(t==null||t===!1||t===!0)return;if(W(t)){let s=t,{templateEl:i,parts:a,formActions:c}=Jt(s),l=i.content.cloneNode(!0),u=document.createComment(`${M}s`),f=document.createComment(`${M}e`),p=a.map(g=>Kr(g,l)),d=[];for(let g=0;g<s.values.length;g++)de(p[g],s.values[g],void 0,s.values,r),d.push(s.values[g]);r&&r(c,p,s.values);let m=[u,...l.childNodes,f];n.parentNode?.insertBefore(Au(m),n);for(let g of p)g.kind==="slot"&&de(g,void 0,void 0,[],r);e.child={strings:s.strings,bound:p,lastValues:d,startNode:u,endNode:f};return}let o=document.createTextNode(String(t));n.parentNode?.insertBefore(o,n),e.child=[o]}function ht(e,t,r){for(let n=0;n<t.length;n++){let o=t[n];if(Object.is(o,e.lastValues[n]))continue;let s=e.bound[n],i=s.mixedAnchor;try{s.kind==="noop"&&i!=null?de(e.bound[i],t[i],e.lastValues[i],t,r):de(s,o,e.lastValues[n],t,r)}catch(a){throw e.lastValues[n]=Ca,s.kind==="noop"&&i!=null&&(e.lastValues[i]=Ca),a}e.lastValues[n]=o}r&&r(to.get(e.strings)?.formActions??null,e.bound,t)}var Ca=Symbol("webjs.commitFailed");function er(e,t){let r=e.parentNode;if(!r)return;let n=e;for(;n&&n!==t;){let o=n.nextSibling;n.parentNode?.removeChild(n),n=o}t.parentNode===r&&r.removeChild(t)}function Au(e){let t=document.createDocumentFragment();for(let r of e)t.appendChild(r);return t}function ni(e,t){let{templateEl:r,parts:n,formActions:o}=Jt(e),s=r.content.cloneNode(!0),i=document.createComment(`${M}s`),a=document.createComment(`${M}e`),c=n.map(f=>Kr(f,s)),l=[];for(let f=0;f<e.values.length;f++)de(c[f],e.values[f],void 0,e.values,t),l.push(e.values[f]);t&&t(o,c,e.values);for(let f of c)f.kind==="slot"&&de(f,void 0,void 0,[],t);let u=document.createDocumentFragment();for(u.appendChild(i);s.firstChild;)u.appendChild(s.firstChild);return u.appendChild(a),{inst:{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a},frag:u}}function zr(e){for(let t of e.bound)if(t.kind==="event"&&t.el.removeEventListener(t.name,t.dispatcher),t.kind==="element"){let r=t.lastTarget;if(r){if(typeof r=="function")try{r(void 0)}catch{}else if(typeof r=="object")try{r.value=void 0}catch{}t.lastTarget=void 0,t.__lastEl=void 0}}}function xu(e,t,r,n){let{items:o,keyFn:s,templateFn:i}=r,a=e.parentNode;if(!a)return;let c=document.createDocumentFragment();for(let l=0;l<o.length;l++){let u=s(o[l],l),f=i(o[l],l);if(!W(f))continue;let{inst:p,frag:d}=ni(f,n);t.map.set(u,p),c.appendChild(d)}a.insertBefore(c,e)}function vu(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,{items:i,keyFn:a,templateFn:c}=t,l=new Map;try{for(let u=0;u<i.length;u++){let f=a(i[u],u),p=c(i[u],u);if(!W(p))continue;let d=s.map.get(f);if(d&&d.strings===p.strings)ht(d,p.values,r),ei(d.startNode,d.endNode,o,n),l.set(f,d),s.map.delete(f);else{d&&(s.map.delete(f),zr(d),er(d.startNode,d.endNode));let{inst:m,frag:g}=ni(p,r);o.insertBefore(g,n),l.set(f,m)}}for(let[u,f]of[...s.map]){s.map.delete(u);try{zr(f)}finally{er(f.startNode,f.endNode)}}s.map=l}catch(u){for(let[f,p]of l)s.map.set(f,p);throw u}}function Oa(e){for(let[t,r]of[...e.map]){e.map.delete(t);try{zr(r)}finally{er(r.startNode,r.endNode)}}e.map.clear()}function Eu(e){return e.type==="tpl"?e.inst.startNode:e.type==="text"?e.node:null}function co(e){e.type==="tpl"?(zr(e.inst),er(e.inst.startNode,e.inst.endNode)):e.type==="text"&&e.node.parentNode?.removeChild(e.node)}function ja(e,t){if(Y(e)&&(e=e.value),W(e)){let{inst:r,frag:n}=ni(e,t);return{item:{type:"tpl",inst:r},frag:n}}if(e!=null&&e!==!1&&e!==!0){let r=document.createTextNode(String(e));return{item:{type:"text",node:r},frag:r}}return{item:{type:"empty"},frag:null}}function Tu(e,t,r,n){let o=e.parentNode;if(!o)return;let s=document.createDocumentFragment(),i=[];for(let a of r){let{item:c,frag:l}=ja(a,n);l&&s.appendChild(l),i.push(c)}o.insertBefore(s,e),t.items=i}function ku(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,i=s.items,a=[],c=0;try{for(let l=0;l<t.length;l++){let u=t[l],f=Y(u)?u.value:u,p=i[l];if(W(f)){let g=f;if(p&&p.type==="tpl"&&p.inst.strings===g.strings){ht(p.inst,g.values,r),a.push(p),c=l+1;continue}}else if(f!=null&&f!==!1&&f!==!0){if(p&&p.type==="text"){let g=String(f);p.node.data!==g&&(p.node.data=g),a.push(p),c=l+1;continue}}else{p&&co(p),a.push({type:"empty"}),c=l+1;continue}let{item:d,frag:m}=ja(f,r);m&&o.insertBefore(m,Nu(i,l,n)),a.push(d),p&&co(p),c=l+1}for(let l=t.length;l<i.length;l++)co(i[l]),c=l+1;s.items=a}catch(l){throw s.items=a.concat(i.slice(c)),l}}function Nu(e,t,r){for(let n=t;n<e.length;n++){let o=Eu(e[n]);if(o&&o.parentNode)return o}return r}function Pa(e){for(let t of e.items)co(t);e.items=[]}function ei(e,t,r,n){if(t.nextSibling===n&&e.parentNode===r)return;let o=document.createDocumentFragment(),s=e;for(;s;){let i=s.nextSibling;if(o.appendChild(s),s===t)break;s=i}r.insertBefore(o,n)}function Cu(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function He(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&Ia(t),!e.child)return;let r=e.child;if(r.kind==="repeat")Oa(r);else if(r.kind==="array")Pa(r);else if(r.kind==="async-stream")Ma(r);else if("strings"in r){let n=e.child;zr(n),er(n.startNode,n.endNode)}else for(let n of e.child)n.parentNode&&n.parentNode.removeChild(n);e.child=void 0}function Ru(e,t){let r=e;r.__untilState&&!it(t)&&(r.__untilState.aborted=!0,r.__untilState=void 0),r.__guardDeps!==void 0&&!nt(t)&&(r.__guardDeps=void 0),r.__cacheMap&&!st(t)&&(r.__cacheMap=void 0),r.__keyedKey!==void 0&&!rt(t)&&(r.__keyedKey=void 0),r.__watchSub&&!at(t)&&Ia(r)}function Lu(e,t,r){let n=e.marker,o=e,s=o.__cacheMap;s||(s=new Map,o.__cacheMap=s);let i=e.child;if(i&&"strings"in i){let c=i;if(W(t)&&c.strings===t.strings){ht(c,t.values,r);return}let l=document.createDocumentFragment();ei(c.startNode,c.endNode,l,null),s.set(c.strings,{inst:c,holder:l}),e.child=void 0}if(W(t)){let c=t,l=s.get(c.strings);if(l){s.delete(c.strings),e.child&&He(e),ei(l.inst.startNode,l.inst.endNode,n.parentNode,n),ht(l.inst,c.values,r),e.child=l.inst;let u=new Set;for(let f=l.inst.startNode.nextSibling;f&&f!==l.inst.endNode;f=f.nextSibling){if(f.nodeType!==1)continue;let p=f;if(p.matches("slot[data-webjs-light]")){let d=Qt(p);d&&u.add(d)}for(let d of p.querySelectorAll("slot[data-webjs-light]")){let m=Qt(d);m&&u.add(m)}}for(let f of u)ne(f);return}}Se(e,t,r)}function Ou(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=n.__untilState,s=n.__untilArgs,i=(d,m)=>!!(Object.is(d,m)||W(d)&&W(m)&&d.strings===m.strings),c=s&&s.length===t.length&&s.every((d,m)=>i(d,t[m]))&&o?o.highestResolved:1/0;o&&(o.aborted=!0),n.__untilArgs=t.slice();let l={aborted:!1,highestResolved:c};n.__untilState=l;let u=-1,f;for(let d=0;d<t.length;d++){let m=t[d];if(!m||typeof m.then!="function"){u=d,f=m;break}}u!==-1&&u<=l.highestResolved?(Se(e,f,r),l.highestResolved=u):u===-1&&!n.__untilEverRendered&&Se(e,"",r),n.__untilEverRendered=!0;let p=Math.min(u===-1?t.length:u,l.highestResolved);for(let d=0;d<p;d++){let m=t[d];!m||typeof m.then!="function"||Promise.resolve(m).then(g=>{if(!l.aborted&&!(d>=l.highestResolved)){try{ri(e,()=>Se(e,g,r))}catch(w){oi(e,w);return}l.highestResolved=d}},()=>{})}}function oi(e,t){let r;try{r=t instanceof Error?t:new Error(String(t))}catch{r=new Error("render error (unstringifiable thrown value)")}let n=e.__commitOwner;if(n&&typeof n._handleRenderError=="function"){n._handleRenderError(r);return}throw r}function ju(e,t,r){let n=e;if(ee&&(n.__commitOwner=lo(ee)),n.__watchSig===t&&n.__watchSub){let i;n.__watchSub.observe(()=>{i=t.get()}),Se(e,i,r);return}n.__watchSub&&(n.__watchSub.dispose(),n.__watchSub=void 0),n.__watchSig=t;let o=new Wr.subtle.Watcher(()=>{queueMicrotask(()=>{if(n.__watchSub!==o)return;let i;try{o.observe(()=>{i=t.get()}),ri(e,()=>Se(e,i,r))}catch(a){oi(e,a)}})});n.__watchSub=o;let s;o.observe(()=>{s=t.get()}),Se(e,s,r)}function Ia(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function Pu(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="append"&&o.iterable===t.iterable)return;He(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,qa(i,e,t,r)}function Iu(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="replace"&&o.iterable===t.iterable)return;He(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,qa(i,e,t,r)}async function qa(e,t,r,n){let o=t.marker,s=0;for(;!e.aborted;){let i,a;try{if(i=await e.iterator.next(),e.aborted||i.done)break;a=r.mapper?r.mapper(i.value,s):i.value}catch(c){typeof console<"u"&&console.error("[webjs] asyncStream error:",c);return}try{ri(t,()=>{let c=Da(a,n);Ra(o.parentNode,()=>{if(e.mode==="replace"){for(let u of e.nodes)u.parentNode&&u.parentNode.removeChild(u);e.nodes=[]}let l=document.createDocumentFragment();for(let u of c)l.appendChild(u);o.parentNode?.insertBefore(l,o),e.nodes.push(...c)})})}catch(c){e.aborted=!0;try{e.iterator.return?.()?.catch?.(()=>{})}catch{}oi(t,c);return}s++}}function Da(e,t){if(Y(e)&&(e=e.value),e==null||e===!1||e===!0)return[];if(W(e)){let r=e,{templateEl:n,parts:o,formActions:s}=Jt(r),i=n.content.cloneNode(!0),a=o.map(c=>Kr(c,i));for(let c=0;c<r.values.length;c++)de(a[c],r.values[c],void 0,r.values,t);t&&t(s,a,r.values);for(let c of a)c.kind==="slot"&&de(c,void 0,void 0,[],t);return[...i.childNodes]}if(Array.isArray(e)){let r=[];for(let n of e)r.push(...Da(n,t));return r}return[document.createTextNode(String(e))]}function Ma(e){e.aborted=!0;for(let t of e.nodes)t.parentNode&&t.parentNode.removeChild(t);e.nodes=[];try{e.iterator.return?.()?.catch?.(()=>{})}catch{}}function gt(e,t){let r=t,n=r[U];r[U]=!0;let o=ee;ti(t);try{let s=r[Hr];if(W(e)){let i=e;if(s&&s.strings===i.strings){ht(s,i.values,fo);return}s&&Fa(s,t);let a=t.firstChild;a&&a.nodeType===8&&a.data==="webjs-hydrate"&&a.remove(),r[Hr]=null;let c=Mu(i,t);r[Hr]=c;return}if(s&&Fa(s,t),r[Hr]=null,t.replaceChildren(),e==null||e===!1||e===!0)return;if(Array.isArray(e)){for(let i of e){let a=document.createTextNode(String(i??""));t.appendChild(a)}return}t.appendChild(document.createTextNode(String(e)))}finally{ti(o),r[U]=n,n||Jn(r)}}function fo(e,t,r){if(e)for(let n of[!0,!1])for(let o of e){if(o.isForm!==n)continue;let s=o.actionIdxs[0],i=o.isForm?"action":"formaction";for(let l of o.actionIdxs)if(et(tr(r[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=tr(r[s]);if(o.isForm)aa(a.el,c,uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!tr(r[f.i]):!0);Du(a.el,c,o,l(o.nameParts),l(o.valueParts),uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r))}}}function qu(e){(ro.has(e)||e.getAttribute("name")===F)&&(e.getAttribute("name")===F&&e.removeAttribute("name"),e.removeAttribute("value"),ro.delete(e))}function Du(e,t,r,n,o,s,i){let a=typeof t=="function"?zn(t):null;if(!a){typeof t=="function"&&Ie(null,e.localName),qu(e),ca(e,s,i,r.propAttrs);return}$t(r.duplicateAction,e.localName),fs(r.propAttrs,e.localName),r.staticAction&&us(e.localName),(r.authoredValue||o)&&Mt(e.localName),(r.authoredName||n)&&Dt(e.getAttribute("name")||F,e.localName,!1),(r.authoredForm||e.hasAttribute("form"))&&Ft(e.localName),ls(e.localName,e.getAttribute("type"));let c=ps(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",F),e.setAttribute("value",a),Rr(e,"formmethod",s,c.formMethod),Rr(e,"formenctype",i,c.formEnctype),ro.set(e,a)}function uo(e,t,r){for(let n of e){if(n.kind==="bool")return tr(r[n.i])?"":K;if(n.kind==="attr"){let a=tr(r[n.i]);return a==null?"":String(a)}let o=n.statics||[],s=n.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(tr(r[s[a]])??""),i+=o[a+1]||"";return i}return t??K}function tr(e){return Y(e)?e.value:e}function Mu(e,t){let{templateEl:r,parts:n,formActions:o}=Jt(e),s=r.content.cloneNode(!0),i=document.createComment(`${M}s`),a=document.createComment(`${M}e`),c=n.map(f=>Kr(f,s)),l=[];for(let f=0;f<e.values.length;f++)de(c[f],e.values[f],void 0,e.values,fo),l.push(e.values[f]);fo(o,c,e.values),t.replaceChildren(i,...s.childNodes,a);let u=t.nodeType===1&&t[L]?t:null;for(let f of c)f.kind==="slot"&&(u&&f.slotEl&&(f.slotEl[ct]=u),de(f,void 0,void 0,[],fo));return{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a}}function Fa(e,t){for(let r of e.bound){if(r.kind==="event"&&r.el.removeEventListener(r.name,r.dispatcher),r.kind==="element"){let n=r.lastTarget;if(n){if(typeof n=="function")try{n(void 0)}catch{}else if(typeof n=="object")try{n.value=void 0}catch{}r.lastTarget=void 0,r.__lastEl=void 0}}if(r.kind==="slot"){let n=Qt(r.slotEl);n&&Vs(n,r.slotEl)}}t.replaceChildren()}function po(e,t){if(e.converter&&e.converter.fromAttribute)return e.converter.fromAttribute(t,e.type);if(e.type===Number)return t==null?null:Number(t);if(e.type===Boolean)return t!=null&&t!=="false";if(e.type===Object||e.type===Array){if(t==null)return null;try{return JSON.parse(t)}catch{return null}}return t}function Fu(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function mo(e,t){let r;for(let{propName:n,def:o,primary:s,alias:i}of Ba(e)){if(s===t)return{propName:n,def:o};r===void 0&&i===t&&(r={propName:n,def:o})}return r}function $a(e){let t=new Set,r=Ba(e);for(let{primary:n}of r)t.add(n);for(let{alias:n}of r)n&&t.add(n);return[...t]}function Ba(e){let t=e&&e.properties||{},r=[];for(let[n,o]of Object.entries(t)){let s=typeof o=="object"&&o!==null?o:{type:o};if(s.state)continue;let i=s.attribute||Fu(n),a=n.toLowerCase(),c=!s.attribute&&a!==i?a:void 0;r.push({propName:n,def:s,primary:i,alias:c})}return r}var Ha=null;function ho(e){Ha=e||null}function si(){return Ha||void 0}ke();var Ua=Symbol.for("webjs:registry"),Va=Symbol.for("webjs:classToTag"),go=globalThis,_e=go[Ua]||(go[Ua]=new Map),Wa=go[Va]||(go[Va]=new WeakMap),bo=typeof window<"u"&&typeof customElements<"u";function ii(e,t){if(!e||typeof e!="string"||!e.includes("-"))throw new Error(`customElements.define: tag "${e}" must contain a hyphen (HTML spec)`);let r=t.lazy===!0,n=_e.get(e);n?(n.cls=t,n.lazy=r):_e.set(e,{cls:t,moduleUrl:null,lazy:r,tag:e}),Wa.set(t,e)}if(bo){let e=customElements.define.bind(customElements);customElements.define=function(t,r,n){customElements.get(t)||e(t,r,n),ii(t,r)}}if(!bo){let e=globalThis;e.customElements||(e.customElements={define(t,r){ii(t,r)},get(t){return _e.get(t)?.cls},upgrade(){},whenDefined(t){let r=_e.get(t);return Promise.resolve(r?.cls)}})}function ai(e,t){bo?customElements.define(e,t):ii(e,t)}function $u(e,t){if(bo)return;let r=_e.get(e);if(r){r.moduleUrl=t;return}_e.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e})}function ci(e){return _e.get(e)?.cls}function Bu(e){return _e.get(e)?.moduleUrl||null}function Hu(e){return _e.get(e)?.lazy===!0}function bt(e){return Wa.get(e)}function li(){return[..._e.keys()]}wt();mt();function tf(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var Zr=class{constructor(){this.__ssrAttrs=new Map,this.__internals=null}get attributes(){return[...this.__ssrAttrs].map(([t,r])=>({name:t,value:r}))}getAttribute(t){let r=this.__ssrAttrs.get(String(t).toLowerCase());return r===void 0?null:r}setAttribute(t,r){this.__ssrAttrs.set(String(t).toLowerCase(),String(r))}removeAttribute(t){this.__ssrAttrs.delete(String(t).toLowerCase())}hasAttribute(t){return this.__ssrAttrs.has(String(t).toLowerCase())}toggleAttribute(t,r){let n=String(t).toLowerCase(),o=this.__ssrAttrs.has(n);return(r===void 0?!o:r)?(this.__ssrAttrs.set(n,""),!0):(this.__ssrAttrs.delete(n),!1)}getAttributeNames(){return[...this.__ssrAttrs.keys()]}closest(t){let r=String(t).trim().toLowerCase();if(!/^[a-z][a-z0-9-]*$/.test(r))return null;if(this.__ssrTag===r)return this;let n=this.__ssrAncestors;if(!Array.isArray(n))return null;for(let o=n.length-1;o>=0;o--)if(n[o]&&n[o].__ssrTag===r)return n[o];return null}get dataset(){if(this.__dataset)return this.__dataset;let t=this,r=n=>"data-"+String(n).replace(/[A-Z]/g,o=>"-"+o.toLowerCase());return this.__dataset=new Proxy({},{get(n,o){if(typeof o!="string")return;let s=t.getAttribute(r(o));return s===null?void 0:s},set(n,o,s){return typeof o=="string"&&t.setAttribute(r(o),s),!0},has(n,o){return typeof o=="string"&&t.hasAttribute(r(o))},deleteProperty(n,o){return typeof o=="string"&&t.removeAttribute(r(o)),!0},ownKeys(){return t.getAttributeNames().filter(n=>n.startsWith("data-")).map(n=>n.slice(5).replace(/-([a-z])/g,(o,s)=>s.toUpperCase()))},getOwnPropertyDescriptor(n,o){if(typeof o=="string"&&t.hasAttribute(r(o)))return{enumerable:!0,configurable:!0,value:t.getAttribute(r(o))}}}),this.__dataset}get className(){return this.getAttribute("class")??""}set className(t){this.setAttribute("class",t)}get hidden(){return this.hasAttribute("hidden")}set hidden(t){this.toggleAttribute("hidden",!!t)}get id(){return this.getAttribute("id")??""}set id(t){this.setAttribute("id",t)}get title(){return this.getAttribute("title")??""}set title(t){this.setAttribute("title",t)}get slot(){return this.getAttribute("slot")??""}set slot(t){this.setAttribute("slot",t)}get role(){return this.getAttribute("role")}set role(t){t==null?this.removeAttribute("role"):this.setAttribute("role",t)}get tabIndex(){let t=this.getAttribute("tabindex");return t===null?-1:Number.parseInt(t,10)||0}set tabIndex(t){this.setAttribute("tabindex",String(t))}addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return this.__internals=tf(),this.__internals}},rf=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];for(let e of rf){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(Zr.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(r){r==null?this.removeAttribute(t):this.setAttribute(t,String(r))}})}function Ja(e,t){return e!==t}function Za(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function ui(e,t,r){if(typeof console>"u"||!console.warn)return;let n=bt(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${n}> holds a function (or an array carrying one), which has no HTML attribute representation. Removing "${r}" instead of stringifying it (a stringified function writes its source into the page, so a server action's body would ship to the browser). Pass a string, or drop reflect on this property.`)}function Xa(e,t,r,n){if(typeof console>"u"||!console.warn)return;let o=bt(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${o}> holds a value JSON.stringify cannot serialize (a cycle, a BigInt, or a throwing toJSON), so it has no HTML attribute representation. Removing "${r}" instead. Detail: ${n}`)}function Qa(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}var tc=typeof window<"u"&&typeof HTMLElement<"u",nf=tc?HTMLElement:Zr,rc=Symbol("webjs.factoryProps"),ec=new WeakSet,rr=class e extends nf{static shadow=!1;static hydrate=void 0;static properties={};static styles=null;static register(t){ai(t,this)}static get observedAttributes(){return $a(this)}constructor(){super(),this._renderRoot=null,this._scheduled=!1,this._connected=!1,this.__controllers=new Set,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=Promise.resolve(!0),this._isUpdating=!1,this._assertFactoryProperties(),this._initializeProperties()}_assertFactoryProperties(){let t=this.constructor;if(ec.has(t))return;let r=t;for(;r&&r!==e;){if(Object.hasOwn(r,"properties")&&!Object.hasOwn(r,rc)){let n=r.name||"a component";throw new Error(`${n}: \`static properties\` is no longer supported. Declare reactive properties via the factory instead: \`class ${n} extends WebComponent({ count: Number })\`. Use the \`prop()\` helper for options (\`prop(Number, { reflect: true })\`) and set defaults in the constructor after \`super()\`. See https://webjs.dev/docs/components.`)}r=Object.getPrototypeOf(r)}ec.add(t)}_initializeProperties(){let r=this.constructor.properties;if(!(!r||typeof r!="object")){this.__propValues={};for(let[n,o]of Object.entries(r)){let s=typeof o=="object"?o:{type:o},i=this[n];Object.defineProperty(this,n,{configurable:!0,enumerable:!0,get:()=>this.__propValues[n],set:a=>{let c=this.__propValues[n];(s.hasChanged||Ja)(a,c)&&(this.__propValues[n]=a,s.reflect&&!s.state&&this._connected&&this._reflectAttribute(n,a,s),this.requestUpdate(n,c))}}),i!==void 0?this.__propValues[n]=i:s.default!==void 0&&(this.__propValues[n]=typeof s.default=="function"?s.default():s.default)}}}_reflectAttribute(t,r,n){let o=n.attribute||of(t);if(!this.__reflectingAttribute){this.__reflectingAttribute=!0;try{if(n.converter&&n.converter.toAttribute){let s=n.converter.toAttribute(r,n.type);s==null?this.removeAttribute(o):this.setAttribute(o,s)}else if(typeof r=="function")this.removeAttribute(o),ui(this,t,o);else if(n.type===Boolean)r?this.setAttribute(o,""):this.removeAttribute(o);else if(r==null)this.removeAttribute(o);else if(n.type===Object||n.type===Array){let s,i=!0;try{s=JSON.stringify(r)}catch(a){i=!1,this.removeAttribute(o),Xa(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else Kn(r)?(this.removeAttribute(o),ui(this,t,o)):this.setAttribute(o,String(r))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!tc)return;if(this.__webjsPropsHydrated||(this.__webjsPropsHydrated=!0,this._hydratePropAttrs()),this.constructor.hydrate==="visible"&&typeof IntersectionObserver<"u"&&!this.__hydrationActivated){this.__hydrationActivated=!1,this.__hydrationObserver=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){this.__hydrationObserver.unobserve(this),this.__hydrationObserver.disconnect(),this.__hydrationObserver=null,this.__hydrationActivated=!0,this._activate();return}},{rootMargin:"200px"}),this.__hydrationObserver.observe(this);return}this._activate()}_hydratePropAttrs(){let t=[],r=this.attributes;for(let n=0;n<r.length;n++){let o=r[n].name;o.startsWith("data-webjs-prop-")&&t.push(o)}for(let n of t){let o=this.getAttribute(n);if(this.removeAttribute(n),o==null)continue;let s=sf(n.slice(16));try{this[s]=Ce(o)}catch(i){console.warn(`[webjs] failed to decode ${n} on <${this.tagName.toLowerCase()}>: ${i&&i.message}`)}}}_activate(){this._connected=!0,this._reflectDeclaredAttributes();let t=this.constructor;if(t.shadow!==!0&&!this.hasAttribute("data-wj-host")&&this.setAttribute("data-wj-host",""),t.shadow===!0){let r=!!this.shadowRoot;this.shadowRoot||this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot;let n=t.styles,o=Array.isArray(n)?n:It(n)?[n]:[];if(o.length){if(r){let s=this.shadowRoot.querySelector("style");s&&s.remove()}as(this._renderRoot,o)}}else this._renderRoot=this,t.styles&&console.warn(`[webjs] <${bt(t)||this.tagName?.toLowerCase()}> has static shadow = false AND static styles. static styles only works with shadow DOM (adoptedStyleSheets). For light DOM, use global CSS or <style> in render().`),Ir(this)?ks(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||Us(this)?(this.removeAttribute("data-wj-serialized"),Z(this),Ss(this)):ws(this),Ps(this),Es(this);for(let r of this.__controllers)r.hostConnected&&r.hostConnected();this._updateResolve===null&&(this._updatePromise=new Promise(r=>{this._updateResolve=r})),this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(r){console.error("[webjs] lifecycle hook threw during initial render:",r)}})}__isHydrating(){let t=this.firstChild,r=t!=null&&t.nodeType===8&&t.data==="webjs-hydrate";return r&&(this.__hydratedAtActivate=!0),r}disconnectedCallback(){this._connected=!1,this.__hydrationObserver&&(this.__hydrationObserver.disconnect(),this.__hydrationObserver=null),Ts(this),this.__signalWatcher&&(this.__signalWatcher.dispose(),this.__signalWatcher=void 0);for(let t of this.__controllers)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,r,n){if(this.__reflectingAttribute)return;let o=mo(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o,a=po(i,n);this[s]!==a&&(this[s]=a,this._connected&&this.requestUpdate())}requestUpdate(t,r){t!==void 0&&!this._changedProperties.has(t)&&this._changedProperties.set(t,r),this._scheduleUpdate()}_scheduleUpdate(){this._updateResolve===null&&(this._updatePromise=new Promise(t=>{this._updateResolve=t})),!this._isUpdating&&(this._scheduled||!this._connected||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(t){console.error("[webjs] lifecycle hook threw during update cycle:",t)}})))}_performRender(){if(!this._renderRoot)return;let t=this._changedProperties;this._isUpdating=!0;let r=!1,n=null;try{if(this.shouldUpdate(t)){this.willUpdate(t);for(let o of this.__controllers)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null;try{let o=this.update(t);o&&typeof o.then=="function"&&(n=o)}catch(o){this._handleRenderError(o)}if(!n){for(let o of this.__controllers)o.hostUpdated&&o.hostUpdated();r=!0}}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,(r||n)&&(this._changedProperties=new Map)}if(n){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{if(this.__pendingAsyncCommits--,o===this.__renderToken){for(let i of this.__controllers)i.hostUpdated&&i.hostUpdated();this._postCommit(t)}};n.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(Za(i)))}finally{s()}});return}r?this._postCommit(t):this.__pendingAsyncCommits||this._resolveUpdate()}_resolveUpdate(){if(this._updateResolve){let t=this._changedProperties.size===0;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let r of this.__controllers)r.hostUpdate&&r.hostUpdate();this._reflectDeclaredAttributes()}finally{this._isUpdating=!1}}_reflectDeclaredAttributes(){let t=this.constructor.properties||{};for(let r of Object.keys(t)){let n=t[r];!n||!n.reflect||n.state||this._reflectAttribute(r,this[r],n)}}shouldUpdate(t){return!0}willUpdate(t){}update(t){this.__signalWatcher||(this.__signalWatcher=new Wr.subtle.Watcher(()=>{this._connected&&this.requestUpdate()}));let r,n=si();ho(this.__renderAbort?this.__renderAbort.signal:null);try{this.__signalWatcher.observe(()=>{r=this.render()})}finally{ho(n||null)}if(r&&typeof r.then=="function")return this._commitAsync(r);gt(r,this._renderRoot)}_commitAsync(t){let r=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let n=this.renderFallback();n!==void 0&&gt(n,this._renderRoot)}catch(n){console.error("[webjs] renderFallback() threw:",n)}return Promise.resolve(t).then(n=>{if(r===this.__renderToken)try{gt(n,this._renderRoot)}catch(o){this._handleRenderError(o instanceof Error?o:new Error(String(o)))}},n=>{r===this.__renderToken&&this._handleRenderError(n instanceof Error?n:new Error(String(n)))})}_overridesRenderFallback(){return this.renderFallback!==Xr.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${bt(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let r=this.renderError(t);r!==void 0&&gt(r,this._renderRoot)}catch(r){console.error("[webjs] renderError() also threw:",r)}}_postCommit(t){try{this.__firstRendered||(this.__firstRendered=!0,this.firstUpdated(t)),this.updated(t)}catch(r){console.error("[webjs] lifecycle hook threw during post-commit phase:",r)}finally{this._resolveUpdate()}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}addController(t){this.__controllers.add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}render(){return""}renderError(t){}renderFallback(){}};function of(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sf(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Xr(e){return new.target?Reflect.construct(rr,arguments,new.target):class extends rr{static properties=e;static[rc]=!0}}Object.setPrototypeOf(Xr,rr);Xr.prototype=rr.prototype;var fi=null;function af(e){fi=e}function di(){if(!fi)return"";try{return fi()||""}catch{return""}}Qe();Ao();Kt();Ao();So();_o();Qe();wt();_o();function gi(e){let t={},r=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,n;for(;(n=r.exec(e))!==null;)t[n[1]]=n[2]??n[3]??n[4]??"";return t}function bc(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let[r,n]of Object.entries(t))e.setAttribute(r,or(n))}function bi(e){return/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function yc(e,t,r){if(!t||typeof t.getAttributeNames!="function")return e;let n="";for(let o of t.getAttributeNames()){let s=String(o).toLowerCase();if(r.has(s))continue;let i=t.getAttribute(o);n+=i===""?` ${s}`:` ${s}="${H(String(i))}"`}return n?`${e.slice(0,-1)}${n}>`:e}function wc(e,t,r){for(let[n,o]of Object.entries(t)){let s=mo(r,n.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=po(a,or(o))}}function Sc(e){let t={};for(let r of Object.keys(e)){if(!r.startsWith("data-webjs-prop-"))continue;let n=fc(r.slice(16));try{t[n]=Ce(or(e[r]))}catch{}delete e[r]}return t}Qe();So();function wf(e){let t=/\bslot\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(e);if(!t)return null;let r=t[1]??t[2]??t[3]??"";return r===""||r==="default"?null:r}function Ac(e){let t=new Map,r="",n=0;for(;n<e.length;){let o=e.indexOf("<",n);if(o===-1){r+=e.slice(n);break}o>n&&(r+=e.slice(n,o));let s=e.slice(o);if(s.startsWith("<!--")){let w=mi(e,o);if(w===-1){r+=s,n=e.length;break}r+=e.slice(o,w),n=w;continue}if(s.startsWith("<!")||s.startsWith("</")){let w=e.indexOf(">",o);if(w===-1){r+=s,n=e.length;break}r+=e.slice(o,w+1),n=w+1;continue}let i=/^<([a-zA-Z][\w-]*)((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/.exec(s);if(!i){r+="<",n=o+1;continue}let[a,c,l,u]=i,f=c.toLowerCase(),p=!!u||nc(f),d=wf(l),m;if(p)m=o+a.length;else{let w=o+a.length,_=St(e,w,f);if(_===-1){let k=e.slice(o);d!==null?_c(t,d,k):r+=k,n=e.length;continue}let b=new RegExp(`</${_t(f)}\\s*>`,"i"),E=e.slice(_),A=b.exec(E),T=A?A[0].length:`</${f}>`.length;m=_+T}let g=e.slice(o,m);d!==null?_c(t,d,g):r+=g,n=m}return r.length>0&&t.set(null,r),t}function _c(e,t,r){let n=e.get(t);n!==void 0?e.set(t,n+r):e.set(t,r)}function xc(e,t,r){let n=r?` data-wj-slot-owner="${H(r)}"`:"",o=new Set,s="",i=0,a=/<slot((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/gi,c=nr(e),l=Qr(c),u;for(;(u=a.exec(e))!==null;){if(l(u.index))continue;s+=e.slice(i,u.index);let[f,p,d]=u,m=!!d,g=/\bname\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(p),w=g?g[1]??g[2]??g[3]:null,_=p.replace(/\bname\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,"").trim(),b="",E;if(m)E=u.index+f.length;else{let S=u.index+f.length,h=St(e,S,"slot",c);if(h===-1)b=e.slice(S),E=e.length;else{b=e.slice(S,h);let y=/<\/slot\s*>/i,C=e.slice(h),x=y.exec(C),q=x?x[0].length:7;E=h+q}}let A=w==="default"||w===""?null:w,T=t.get(A),k=w!==null?` name="${H(w)}"`:"",N=_?` ${_}`:"";T!==void 0&&!o.has(A)?(o.add(A),s+=`<slot data-webjs-light data-projection="actual"${n}${k}${N}>${T}</slot>`):s+=`<slot data-webjs-light data-projection="fallback"${n}${k}${N}>${b}</slot>`,i=E,a.lastIndex=E}return s+=e.slice(i),s}async function Re(e,t,r=[],n){e=await Sf(e,t,r,n);let o=li();if(!o.length)return e;let s=[...o].sort((d,m)=>m.length-d.length),i=new RegExp(`<(${s.map(_t).join("|")})(?=[\\s>/])((?:"[^"]*"|'[^']*'|[^>])*?)(/?)>`,"g"),a=[],c=nr(e),l=Qr(c);for(let d of e.matchAll(i)){let[m,g,w,_]=d,b=ci(g);if(!b||l(d.index))continue;t&&t.usedComponents&&t.usedComponents.add(g);let E=_?`<${g}${w}>`:m,A=null;try{let T=b.shadow===!0;A=new b,A.__ssrTag=g,A.__ssrAncestors=r;let k=gi(w),N=Sc(k),S=new Set(Object.keys(gi(w)).map(B=>B.toLowerCase()));bc(A,k),wc(A,k,b);for(let[B,R]of Object.entries(N))A[B]=R;let h="",y=d.index+m.length;if(!_){let B=d.index+m.length,R=St(e,B,g,c);if(R!==-1){h=e.slice(B,R);let Pe=new RegExp(`</${_t(g)}\\s*>`,"i"),jt=e.slice(R),Bn=Pe.exec(jt),ra=Bn?Bn[0].length:`</${g}>`.length;y=R+ra}else h=e.slice(B),y=e.length}let C=Ac(h);typeof A.performServerUpdate=="function"&&A.performServerUpdate();let x=A.render?A.render():"";x&&typeof x.then=="function"&&(x=await x),E=yc(E,A,S),T||(E=bi(E));let q=await I(x,t);if(T){let B=await Re(q,t,[...r,A],n),R=b.styles,Pe=Array.isArray(R)?R:R&&It(R)?[R]:[],jt=Un(Pe);a.push({start:d.index,end:d.index+m.length,text:`${E}<template shadowrootmode="open">${jt}${B}</template>`})}else{if(q.trim()===""){a.push({start:d.index,end:d.index+m.length,text:`${E}<!--webjs-hydrate-->`});continue}let R=xc(q,C,g),Pe=await Re(R,t,[...r,A],n);a.push({start:d.index,end:y,text:`${E}<!--webjs-hydrate-->${Pe}</${g}>`})}}catch(T){let k=hi(T);console.error(k?`[webjs] SSR failed for <${g}>: ${k} It was touched in the component's constructor or render(), which run during SSR. Move browser-only work to connectedCallback() or a lifecycle hook (firstUpdated/updated), which SSR never calls; seed first-paint defaults in the constructor only from server-known inputs (attributes / props).`:`[webjs] SSR failed for <${g}>:`,T);let N=T instanceof Error?T:new Error(String(T)),S="";try{let x;A&&typeof A.renderError=="function"&&(x=A.renderError(N)),x===void 0&&(x=en(g,N,n)),S=await I(x,t),S.trim()&&(S=await Re(S,t,A?[...r,A]:r,n))}catch(x){console.error(`[webjs] renderError() for <${g}> also threw:`,x),S=""}let h=d.index+m.length;if(!_){let x=d.index+m.length,q=St(e,x,g,c);if(q!==-1){let R=new RegExp(`</${_t(g)}\\s*>`,"i").exec(e.slice(q));h=q+(R?R[0].length:`</${g}>`.length)}else h=e.length}let y=b.shadow===!0;y||(E=bi(E));let C;if(y){let x=b.styles,q=Array.isArray(x)?x:x&&It(x)?[x]:[],B=Un(q);C=`${E}<template shadowrootmode="open">${B}${S}</template>`}else C=`${E}<!--webjs-hydrate-->${S}</${g}>`;a.push({start:d.index,end:h,text:C})}}if(!a.length)return e;a.sort((d,m)=>d.start-m.start);let u=[],f=-1;for(let d of a)d.start>=f&&(u.push(d),f=d.end);let p=e;for(let d=u.length-1;d>=0;d--){let{start:m,end:g,text:w}=u[d];p=p.slice(0,m)+w+p.slice(g)}return p}async function Sf(e,t,r=[],n){if(e.indexOf("<webjs-suspense")===-1)return e;let o=/<webjs-suspense((?:"[^"]*"|'[^']*'|[^>])*?)>/i,s=nr(e),i=Qr(s),a=0,c="",l=e;for(let u=0;u<1e4;u++){let f=o.exec(l);if(!f){c+=l;break}if(i(a+f.index)){let T=f.index+f[0].length;c+=l.slice(0,T),l=l.slice(T),a+=T;continue}let p=f.index,d=f.index+f[0].length;c+=l.slice(0,p);let m=f[1]||"",g=/data-webjs-fallback="([^"]*)"/i.exec(m),w=g?or(g[1]):"",_=[];for(let[T,k]of s)k<=a||_.push([Math.max(0,T-a),k-a]);let b=St(l,d,"webjs-suspense",_),E,A;if(b===-1)E=l.slice(d),A="";else{E=l.slice(d,b);let T=/<\/webjs-suspense\s*>/i.exec(l.slice(b));A=l.slice(b+(T?T[0].length:17))}if(t){let T=`s${t.nextId++}`;t.pending.push({id:T,promise:Promise.resolve(hs(E))}),c+=`<webjs-suspense id="${T}">${w}</webjs-suspense>`}else{let T=await Re(E,t,r,n);c+=`<webjs-suspense>${T}</webjs-suspense>`}a+=l.length-A.length,l=A}return c}async function vc(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;r&&r.dev===void 0&&n!==void 0&&(r.dev=n);let o=await I(e,r);return t&&t.ssr===!1?o:await Re(o,r,[],n)}function Ec(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;return r&&r.dev===void 0&&n!==void 0&&(r.dev=n),new ReadableStream({async start(o){try{if(t&&t.ssr===!1){let{streamRender:s}=await Promise.resolve().then(()=>(Ao(),gc));await s(e,r,o)}else{let s=await I(e,r),i=await Re(s,r,[],n);o.enqueue(i)}r&&r.pending.length&&await _f(r,o,n),o.close()}catch(s){o.error(s)}}})}async function _f(e,t,r){let n=di(),o=n?` nonce="${H(n)}"`:"";for(;e.pending.length;){let s=e.pending.splice(0);await Promise.all(s.map(async({id:i,promise:a})=>{try{let c=await a,l=await I(c,e),u=await Re(l,e,[],r);t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await Re(await I(en("webjs-suspense",l,r),e),e,[],r);t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(l){console.error(`[webjs] Suspense boundary "${i}" error render also threw:`,l)}}}))}}Qe();var Tc=Symbol.for("webjs.notFound"),kc=Symbol.for("webjs.redirect"),Nc=Symbol.for("webjs.forbidden"),Cc=Symbol.for("webjs.unauthorized");function Af(){let e=new Error("webjs: notFound()");throw e.__webjs=Tc,e}function xf(){let e=new Error("webjs: forbidden()");throw e.__webjs=Nc,e}function vf(){let e=new Error("webjs: unauthorized()");throw e.__webjs=Cc,e}function Ef(e,t){let r=typeof t=="object"&&t!==null?t.status:t,n=new Error(`webjs: redirect(${e})`);throw n.__webjs=kc,n.url=e,n.status=typeof r=="number"?r:void 0,n}function Tf(e){return!!e&&e.__webjs===Tc}function kf(e){return!!e&&e.__webjs===kc}function Nf(e){return!!e&&e.__webjs===Nc}function Cf(e){return!!e&&e.__webjs===Cc}var yi=null;function Rf(e){yi=e}function Lf(e){if(typeof e!="string"||!e||!yi)return e;try{return yi(e)||e}catch{return e}}ke();Pr();pi();function Of(e,t={}){let r=t.reconnect!==!1,n=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket(jf(e),t.protocols),s.onopen=c=>{for(n=0;i.length&&s&&s.readyState===WebSocket.OPEN;)s.send(i.shift());t.onOpen?.(c)},s.onmessage=c=>{let l=c.data;if(typeof l=="string")try{l=JSON.parse(l)}catch{}t.onMessage?.(l,c)},s.onerror=c=>{t.onError?.(c)},s.onclose=c=>{if(t.onClose?.(c),!o&&r){let l=Math.min(1e3*2**n++,3e4);setTimeout(a,l)}})}return a(),{send(c){let l=typeof c=="string"||c instanceof ArrayBuffer||ArrayBuffer.isView(c)?c:JSON.stringify(c);s&&s.readyState===WebSocket.OPEN?s.send(l):i.push(l)},close(c,l){o=!0;try{s?.close(c,l)}catch{}},get socket(){return s},get readyState(){return s?.readyState??3}}}function jf(e){if(/^wss?:\/\//i.test(e))return e;let t=typeof location<"u"&&location.protocol==="https:"?"wss:":"ws:",r=typeof location<"u"?location.host:"";return`${t}//${r}${e.startsWith("/")?e:"/"+e}`}wt();var wi="application/vnd.webjs+json";async function Pf(e,t={}){let r=new Headers(t.headers||{});r.has("accept")||r.set("accept",wi);let n=t.body;n!=null&&typeof n=="object"&&!(n instanceof FormData)&&!(n instanceof Blob)&&!(n instanceof ArrayBuffer)&&!(n instanceof URLSearchParams)&&!(typeof ReadableStream<"u"&&n instanceof ReadableStream)&&!ArrayBuffer.isView(n)&&(n=await Jr(n),r.has("content-type")||r.set("content-type",wi));let o=await fetch(e,{...t,headers:r,body:n}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(wi)?i?Ce(i):null:s.includes("application/json")?i?JSON.parse(i):null:i;if(!o.ok){let c=a&&a.error||`richFetch ${e} -> ${o.status}`,l=new Error(c);throw l.status=o.status,l.body=a,l}return a}wt();vi();xi();nn();var Xi=class{constructor(t,r){this.host=t,this.options=r,this.updates=[],this._nextId=0}get value(){let t=this.options.source();if(!this.options.update)return this.updates.length>0?this.updates[this.updates.length-1].payload:t;for(let r of this.updates)t=this.options.update(t,r.payload);return t}add(t,r){let n=`opt-${++this._nextId}`;this.updates.push({id:n,payload:t}),this.host?.requestUpdate?.();let o=()=>{let s=this.updates.findIndex(i=>i.id===n);s!==-1&&(this.updates.splice(s,1),this.host?.requestUpdate?.())};return r&&typeof r.then=="function"&&(typeof r.finally=="function"?r.finally(()=>o()).catch(()=>{}):r.then(()=>o(),()=>o())),o}};async function Sd(e,t,r){let n=e.get();e.set(t);let o;try{o=await r()}catch(s){throw e.set(n),s}return o&&o.success===!1&&e.set(n),o}function _d(e,t,r){return e&&typeof e.get=="function"&&typeof e.set=="function"?Sd(e,t,r):new Xi(e,t)}Eo();ko();var Ad="application/vnd.webjs+stream",xd=1,vd=2,Ed=3,Tl=new Uint8Array(0);function Td(e,t){let r=t||Tl,n=r.length,o=new Uint8Array(5+n);return o[0]=e&255,o[1]=n>>>24&255,o[2]=n>>>16&255,o[3]=n>>>8&255,o[4]=n&255,n&&o.set(r,5),o}function kd(){let e=Tl;return{push(t){if(t&&t.length){let n=new Uint8Array(e.length+t.length);n.set(e,0),n.set(t,e.length),e=n}let r=[];for(;e.length>=5;){let n=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0;if(e.length<5+o)break;let s=e.slice(5,5+o);r.push({type:n,payload:s}),e=e.slice(5+o)}return r}}}Kt();var Nd=Symbol.for("webjs.context");function Cd(e){return{__context__:Nd,name:e}}var ns=class extends Event{constructor(t,r,n=!1){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=n}},Qi=class{constructor(t,{context:r,initialValue:n}){this._host=t,this._context=r,this._value=n,this._subscriptions=new Set,this._onRequest=o=>{let s=o;if(s.context===this._context)if(o.stopPropagation(),s.subscribe){let i={callback:s.callback},a=()=>{this._subscriptions.delete(i)};this._subscriptions.add(i),s.callback(this._value,a)}else s.callback(this._value)},typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}setValue(t){if(!Object.is(this._value,t)){this._value=t;for(let r of this._subscriptions){let n=()=>{this._subscriptions.delete(r)};r.callback(t,n)}}}hostConnected(){this._host.addEventListener("context-request",this._onRequest)}hostDisconnected(){this._host.removeEventListener("context-request",this._onRequest),this._subscriptions.clear()}},ea=class{constructor(t,{context:r,subscribe:n=!0}){this._host=t,this._context=r,this._subscribe=n,this._value=void 0,this._unsubscribe=void 0,typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}hostConnected(){this._dispatchRequest()}hostDisconnected(){this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=void 0)}_dispatchRequest(){let t=new ns(this._context,(r,n)=>{let o=this._value;this._value=r,n&&(this._unsubscribe=n),!Object.is(o,r)&&typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()},this._subscribe);this._host.dispatchEvent(t)}};function Rd(){return typeof window<"u"}var je={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},ta=class{constructor(t,{task:r,args:n,autoRun:o=!0}){this._host=t,this._taskFn=r,this._argsFn=n||(()=>[]),this._autoRun=o,this._status=je.INITIAL,this._value=void 0,this._error=void 0,this._abortController=null,this._prevArgs=null,typeof t.addController=="function"&&t.addController(this)}get status(){return this._status}get value(){return this._value}get error(){return this._error}async run(){this.abort();let t=new AbortController;this._abortController=t;let r=this._argsFn();this._prevArgs=r,this._status=je.PENDING,this._error=void 0,this._requestHostUpdate();try{let n=await this._taskFn(...r,{signal:t.signal});if(t.signal.aborted)return;this._value=n,this._status=je.COMPLETE,this._error=void 0}catch(n){if(t.signal.aborted)return;this._error=n,this._status=je.ERROR,this._value=void 0}finally{this._abortController===t&&(this._abortController=null)}this._requestHostUpdate()}abort(){this._abortController&&(this._abortController.abort(),this._abortController=null)}render(t={}){switch(this._status){case je.INITIAL:return t.initial?.();case je.PENDING:return t.pending?.();case je.COMPLETE:return t.complete?.(this._value);case je.ERROR:return t.error?.(this._error);default:return}}hostUpdate(){if(!this._autoRun||!Rd())return;let t=this._argsFn();this._argsEqual(this._prevArgs,t)||this.run()}hostUpdated(){}hostConnected(){}hostDisconnected(){this.abort()}_requestHostUpdate(){typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()}_argsEqual(t,r){if(t===null||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}};export{ea as ContextConsumer,Qi as ContextProvider,ns as ContextRequestEvent,F as FORM_ACTION_FIELD,oa as FORM_ACTION_ID_KEY,xd as FRAME_CHUNK,vd as FRAME_END,Ed as FRAME_ERROR,M as MARKER,Mc as SEED_MISS,Ad as STREAM_CONTENT_TYPE,Wr as Signal,cf as Suspense,ta as Task,je as TaskStatus,Xr as WebComponent,Ai as WebjsFrame,Ei as WebjsStream,si as activeActionSignal,as as adoptStyles,li as allTags,Lf as asset,Yl as asyncAppend,Jl as asyncReplace,mu as batch,Kl as cache,gu as computed,Of as connectWS,Jf as consumeStale,Cd as createContext,kd as createFrameDecoder,zl as createRef,di as cspNonce,Cl as css,Ga as deserialize,Yi as disableClientRouter,yu as effect,$n as enableClientRouter,Td as encodeFrame,H as escapeAttr,Wn as escapeText,Gf as fetchMark,xf as forbidden,Ul as guard,is as html,Wt as isAsyncAppend,zt as isAsyncReplace,It as isCSS,st as isCache,Nf as isForbidden,nt as isGuard,rt as isKeyed,Hu as isLazy,Y as isLive,Tf as isNotFound,kf as isRedirect,ot as isRef,tt as isRepeat,bu as isSignal,yo as isSuspense,W as isTemplate,Vt as isTemplateContent,Cf as isUnauthorized,Ut as isUnsafeHTML,it as isUntil,at as isWatch,Hl as keyed,Bl as live,Zi as loadFrame,ci as lookup,Bu as lookupModuleUrl,Ri as markStale,Ji as navigate,Af as notFound,_d as optimistic,Ce as parse,Li as parseTagHeader,$u as primeModuleUrl,Qa as prop,Ef as redirect,Wl as ref,rs as refreshPage,ai as register,Yf as registerKeyTags,gt as render,Ti as renderStream,Ec as renderToStream,vc as renderToString,fa as repeat,ts as revalidate,Pf as richFetch,vo as scanSeeds,zf as seedStats,Ka as serialize,ho as setActiveActionSignal,Rf as setAssetUrlProvider,af as setCspNonceProvider,Rl as setFormActionResolver,hu as signal,Jr as stringify,Un as stylesToString,bt as tagOf,Wf as takeSeed,Vl as templateContent,vf as unauthorized,hs as unsafeHTML,Gl as until,Zl as watch};
9
+ `)}</style>`}$t();Ce();Qt();wt();$t();Vn();Ce();wt();var to=new WeakMap,ro=new WeakMap,Ur=Symbol.for("webjs.instance");function rr(e){let{strings:t}=e,r=to.get(t);if(r)return r;let n=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",d="";for(let y=0;y<t.length;y++){let g=t[y];for(let S=0;S<g.length;S++){let b=g[S];switch(s){case"text":o+=b,b==="<"&&(s="tag-open");break;case"tag-open":o+=b,b==="!"?s="bang-1":b==="/"?(s="tag-name",f=""):/[a-zA-Z]/.test(b)?(s="tag-name",f=b.toLowerCase()):s="text";break;case"bang-1":o+=b,s=b==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=b,b==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=b,b==="-"?l+=1:(b===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):/\s/.test(b)?s="in-tag":f+=b.toLowerCase();break;case"in-tag":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):!/\s/.test(b)&&b!=="/"&&(s="attr-name",i=b,a=o.length-1);break;case"rawtext":o+=b,d=(d+b.toLowerCase()).slice(-9),(d.endsWith("<\/script>")||d.endsWith("</style>"))&&(s="text",d="",f="");break;case"attr-name":b==="="?(s="after-eq",o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(i+=b,o+=b);break;case"after-eq":b==='"'||b==="'"?(s="attr-quoted",c=b,o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(s="attr-unquoted",o+=b);break;case"attr-unquoted":/\s/.test(b)?(s="in-tag",i="",o+=b):(b===">"&&(s="text",i=""),o+=b);break;case"attr-quoted":o+=b,b===c&&(s="in-tag",i="");break;case"skip-attr":if(b===c){if(u){let E=u.firstPartIdx,A=[];for(let w=E;w<n.length;w++)(n[w].kind==="noop"||n[w].kind==="attr-mixed")&&A.push(w);let v=[],k=t[A[0]],N=k.lastIndexOf(c);v.push(N>=0?k.slice(N+1):k);for(let w=1;w<A.length;w++)v.push(t[A[w]]);let _=t[A[A.length-1]+1],h=_.indexOf(c);v.push(h>=0?_.slice(0,h):_),n[E]={kind:"attr-mixed",path:[],name:u.name,statics:v,group:A};for(let w=1;w<A.length;w++)n[A[w]]={kind:"noop",path:[],mixedAnchor:E};u=null}s="in-tag",i=""}break}}if(y<t.length-1){let S=n.length;if(s==="comment"){l=0,n.push({kind:"noop",path:[]});continue}if(s==="rawtext"){d="",n.push({kind:"noop",path:[]});continue}if(s==="text")o+=`<!--${F}${S}-->`,n.push({kind:"child",path:[]});else if(s==="in-tag"){let b=`data-${F}${S}`;o+=`${b}=""`,n.push({kind:"element",path:[]})}else if(s==="after-eq"){let b=i[0],E=i.slice(1);if(Rr(b)){o=o.slice(0,a);let A=Ht[b],v=`data-${F}${S}`;o+=`${v}=""`,n.push({kind:A,path:[],name:E})}else{o=o.slice(0,a);let A=`data-${F}${S}`;o+=`${A}=""`,n.push({kind:"attr",path:[],name:i})}s="in-tag",i=""}else if(s==="attr-quoted"||s==="attr-unquoted"){o=o.slice(0,a);let b=`data-${F}${S}`;o+=`${b}=""`,u={name:i,firstPartIdx:S},n.push({kind:"noop",path:[]}),s="skip-attr"}else s==="skip-attr"&&n.push({kind:"noop",path:[]})}}let p=document.createElement("template");p.innerHTML=o,uu(p.content,n);let m=fu(p.content,n);return r={templateEl:p,parts:n,formActions:m},to.set(t,r),r}function uu(e,t){let r=e.querySelectorAll("slot");for(let n of r){n.setAttribute(L,"");let o=t.length;n.setAttribute(`data-${F}${o}`,""),t.push({kind:"slot",path:[]})}}function fu(e,t){let r=[],n=[];function o(s){for(let i=0;i<s.childNodes.length;i++){let a=s.childNodes[i];if(r.push(i),a.nodeType===8){let c=a.data;if(c.startsWith(F)){let l=Number(c.slice(F.length));t[l]&&t[l].kind==="child"&&(t[l].path=r.slice())}}else if(a.nodeType===1){let c=a,l=[],u=[];for(let f of c.attributes)if(f.name.startsWith(`data-${F}`)){let d=Number(f.name.slice(`data-${F}`.length));t[d]&&t[d].kind!=="child"&&(t[d].path=r.slice(),u.push({idx:d,kind:t[d].kind,name:t[d].name||""})),l.push(f.name)}if(c.localName==="form"||c.localName==="button"||c.localName==="input"){let f=du(c,u,t);f&&n.push(f)}for(let f of l)c.removeAttribute(f);o(a)}r.pop()}}return o(e),n.length?n:null}function du(e,t,r){let n=e.localName==="form",o=n?"action":"formaction",s=n?"method":"formmethod",i=n?"enctype":"formenctype",a=t.filter(g=>g.kind==="attr"&&g.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=n?[]:t.filter(g=>g.name.toLowerCase()==="name"&&(g.kind==="attr"||g.kind==="attr-mixed"||g.kind==="bool")).map(g=>({i:g.idx,kind:g.kind})),d=!n&&e.hasAttribute("name"),p=!n&&e.hasAttribute("form"),m=!n&&e.hasAttribute("value"),y=n?[]:t.filter(g=>g.name.toLowerCase()==="value"&&(g.kind==="attr"||g.kind==="attr-mixed"||g.kind==="bool")).map(g=>({i:g.idx,kind:g.kind}));for(let g of t){let S=String(g.name).toLowerCase();if(g.kind==="prop"){n?(S==="method"||S==="enctype"||S==="encoding")&&u.push(g.name):Kt(S)&&u.push(g.name);continue}if(S!==s&&S!==i||g.kind!=="attr"&&g.kind!=="attr-mixed"&&g.kind!=="bool")continue;let b=r[g.idx],E={i:g.idx,kind:g.kind};g.kind==="attr-mixed"&&(E.statics=b.statics||[],E.group=b.group||[]),(S===s?c:l).push(E)}return{isForm:n,tag:e.localName,actionIdxs:a.map(g=>g.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:d,authoredValue:m,authoredForm:p,propAttrs:u,nameParts:f,valueParts:y,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}$t();Ce();Ir();Qt();var pe=null,ze=!1,or=0,nr=null,zs=0,Ta=(e,t)=>Object.is(e,t),oo=()=>{},ka=()=>!1;function Na(e,t){e.liveConsumers||(e.liveConsumers=new Map);let r=e.liveConsumers.size===0;if(e.liveConsumers.set(t,(e.liveConsumers.get(t)||0)+1),r){if(e.producers&&e.producers.length>0)for(let n of e.producers)Na(n,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(n){console.error(n)}}}function Vr(e,t){if(!e.liveConsumers)return;let r=e.liveConsumers.get(t);if(r!==void 0){if(r>1){e.liveConsumers.set(t,r-1);return}if(e.liveConsumers.delete(t),e.liveConsumers.size===0){if(e.producers&&e.producers.length>0)for(let n of e.producers)Vr(n,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(n){console.error(n)}}}}function Xs(e){if(ze)throw new Error("Signal read during notification phase");if(pe===null)return;let t=pe,r=t.nextProducerIndex++;r<t.producers.length&&t.producers[r]!==e&&Ys(t)&&Vr(t.producers[r],t),t.producers[r]!==e&&(t.producers[r]=e,Ys(t)&&Na(e,t)),t.producerLastReadVersions[r]=e.version}function Ys(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function Ca(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=ze;ze=!0;try{for(let r of e.liveConsumers.keys())r.dirty||pu(r)}finally{ze=t}}function pu(e){e.dirty=!0,Ca(e),e.consumerMarkedDirty.call(e.wrapper||e)}function so(e){if(!(!e.dirty&&e.lastCleanEpoch===or)){if(!e.producerMustRecompute()&&!mu(e)){e.dirty=!1,e.lastCleanEpoch=or;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=or}}function mu(e){for(let t=0;t<e.producers.length;t++){let r=e.producers[t],n=e.producerLastReadVersions[t];if(n!==r.version||(so(r),n!==r.version))return!0}return!1}function Js(e){e&&(e.nextProducerIndex=0);let t=pe;return pe=e,t}function Zs(e,t){if(pe=t,!!e){if(Ys(e))for(let r=e.nextProducerIndex;r<e.producers.length;r++)Vr(e.producers[r],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var io=class{constructor(t,r){this.__value=t,this.version=0,this.lastCleanEpoch=or,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=ka,this.producerRecomputeValue=oo,this.consumerMarkedDirty=oo,this.wrapper=this,this.__isSignal=!0,this.__equal=r?.equals||Ta,this.watched=r?.[Qs],this.unwatched=r?.[ei]}get(){return Xs(this),this.__value}peek(){return this.__value}set(t){if(ze)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,or++,nr!==null?Ra(this):Ca(this))}};function Ra(e){let t=ze;ze=!0;try{if(!e.liveConsumers)return;for(let r of e.liveConsumers.keys())r.dirty||(r.dirty=!0,r.__isWatcher?nr.add(r):Ra(r))}finally{ze=t}}var Ks=Symbol("unset"),Gs=Symbol("computing"),no=Symbol("errored"),Wr=class{constructor(t,r){this.__fn=t,this.__value=Ks,this.__error=null,this.version=0,this.lastCleanEpoch=-1,this.dirty=!0,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!1,this.wrapper=this,this.__isSignal=!0,this.__isComputed=!0,this.__equal=r?.equals||Ta,this.watched=r?.[Qs],this.unwatched=r?.[ei];let n=this;this.producerMustRecompute=function(){return n.__value===Ks||n.__value===Gs},this.producerRecomputeValue=function(){if(n.__value===Gs)throw new Error("Detected cycle in computations.");let o=n.__value;n.__value=Gs;let s=Js(n),i,a=!1;try{i=n.__fn.call(n.wrapper)}catch(l){i=no,n.__error=l,a=!0}finally{Zs(n,s)}if(!a&&(o!==Ks&&o!==no)&&n.__equal.call(n.wrapper,o,i)){n.__value=o;return}n.__value=i,n.version++},this.consumerMarkedDirty=oo}get(){if(so(this),Xs(this),this.__value===no)throw this.__error;return this.__value}peek(){if(so(this),this.__value===no)throw this.__error;return this.__value}},ao=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=or,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=ka,this.producerRecomputeValue=oo,this.wrapper=this,this.__isWatcher=!0;let r=this;this.consumerMarkedDirty=function(){r.__fire()}}__fire(){this.__notify&&this.__notify.call(this)}watch(...t){if(t.length===0){this.dirty=!1;return}let r=Js(this);try{for(let n of t)Xs(n),n.__isComputed&&so(n)}finally{Zs(this,r)}this.dirty=!1}unwatch(...t){for(let r=this.producers.length-1;r>=0;r--)t.includes(this.producers[r])&&(Vr(this.producers[r],this),this.producers.splice(r,1),this.producerLastReadVersions.splice(r,1),this.nextProducerIndex=Math.min(this.nextProducerIndex,this.producers.length))}getPending(){return this.producers.filter(t=>t.__isComputed&&t.dirty)}observe(t){let r=Js(this),n;try{n=t()}finally{Zs(this,r)}return this.dirty=!1,n}dispose(){for(let t of this.producers)Vr(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},Qs=Symbol("watched"),ei=Symbol("unwatched");function hu(e){let t=pe;pe=null;try{return e()}finally{pe=t}}function gu(e){return e.producers.slice()}function bu(e){return e.liveConsumers?[...e.liveConsumers.keys()]:[]}function yu(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function wu(e){return e.producers.length>0}function Su(){return pe&&pe.__isComputed?pe:null}function _u(e){zs++,nr===null&&(nr=new Set);try{e()}finally{if(zs--,zs===0){let t=nr;nr=null;for(let r of t)r.__fire()}}}var zr={State:io,Computed:Wr,subtle:{Watcher:ao,untrack:hu,introspectSources:gu,introspectSinks:bu,hasSinks:yu,hasSources:wu,currentComputed:Su,watched:Qs,unwatched:ei}};function Au(e,t){return new io(e,t)}function xu(e,t){return new Wr(e,t)}function vu(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function Eu(e){let t=!1,r=!1,n=new Wr(e),o=new ao(()=>{t||r||(t=!0,queueMicrotask(()=>{if(t=!1,!r){try{n.get()}catch(s){console.error(s)}o.watch()}}))});o.watch(n);try{n.get()}catch(s){console.error(s)}return()=>{r||(r=!0,o.dispose())}}wt();var re=null;function ri(e){re=e}function Oa(e,t){let r=e&&e[R]?e:null;return r?bt(r,t):t()}function lo(e){return e?e.nodeType===11&&e.host?e.host:e:null}function ni(e,t){let r=e.__commitOwner,n=re;r&&(re=r);try{t()}finally{re=n}}function Gr(e,t){if(e.kind==="noop")return{kind:"noop",mixedAnchor:e.mixedAnchor};let r=t;for(let o of e.path)r=r.childNodes[o];if(e.kind==="child")return{kind:"child",marker:r};let n=r;if(e.kind==="event"){let o={kind:"event",el:n,name:e.name||"",handler:null,dispatcher(s){o.handler?.(s)}};return n.addEventListener(o.name,o.dispatcher),o}if(e.kind==="attr")return{kind:"attr",el:n,name:e.name||""};if(e.kind==="attr-mixed")return{kind:"attr-mixed",el:n,name:e.name||"",statics:e.statics||[],group:e.group||[]};if(e.kind==="prop")return{kind:"prop",el:n,name:e.name||""};if(e.kind==="bool")return{kind:"bool",el:n,name:e.name||""};if(e.kind==="element")return{kind:"element",el:n};if(e.kind==="slot")return{kind:"slot",slotEl:n,applied:!1};throw new Error(`unknown part kind ${e.kind}`)}function me(e,t,r,n,o){if(J(t)){let s=t.value;if(e.kind==="prop"&&e.el[e.name]===s||e.kind==="attr"&&e.el.getAttribute(e.name)===String(s)||e.kind==="bool"&&e.el.hasAttribute(e.name)===!!s)return;t=s}switch(e.kind){case"child":Nu(e,t,o);break;case"attr":{t==null||t===!1?e.el.removeAttribute(e.name):st(t,e.name,e.el.localName)||(ae(t,e.name,e.el.localName),e.el.setAttribute(e.name,String(t)));break}case"prop":jr(t,e.name,e.el.localName),e.el[e.name]=t;break;case"bool":ae(t,e.name,e.el.localName),t?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":e.handler=typeof t=="function"?t:null;break;case"element":ku(e,t);break;case"attr-mixed":{let s=e,i=s.statics[0];for(let a=0;a<s.group.length;a++){let c=n?n[s.group[a]]:t;J(c)&&(c=c.value),ae(c,e.name,e.el.localName),i+=String(c??""),i+=s.statics[a+1]||""}e.el.setAttribute(e.name,i);break}case"slot":{if(e.applied)break;let s=e.slotEl,i=()=>{let c=sr(s);if(!c){e.applied=!0;return}if(!c.contains(s)){c.isConnected?queueMicrotask(i):e.applied=!0;return}if(e.applied=!0,Tu(s))return;let l=document.createDocumentFragment();for(;s.firstChild;)l.appendChild(s.firstChild);s[Be]=l,queueMicrotask(()=>oe(c))},a=sr(s);a&&a.contains(s)?i():queueMicrotask(i);break}case"noop":break}}function sr(e){let t=e[pt];if(t&&t.isConnected)return t;let r=e.parentElement;for(;r;){if(r[R])return r;r=r.parentElement}return null}function Tu(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function ku(e,t){let r=e,n=lt(t)?t.target:void 0,o=r.__refTarget,s=n!==o;if(s&&o)if(typeof o=="function")try{o(void 0)}catch{}else typeof o=="object"&&(o.value=void 0);if(s||r.__refElement!==e.el){if(r.__refTarget=n,n)if(typeof n=="function"){if(!s&&r.__refElement!==void 0)try{n(void 0)}catch{}try{n(e.el)}catch{}}else typeof n=="object"&&(n.value=e.el);r.__refElement=e.el,e.lastTarget=n}}function Nu(e,t,r){return Du(e,t),Ae(e,t,r)}function Ae(e,t,r){return Oa(e.marker&&e.marker.parentNode,()=>ja(e,t,r))}function ja(e,t,r){let n=e.marker;if(J(t))return ja(e,t.value,r);if(Yt(t)){Ke(e);let s=String(t.value??""),i=document.createElement("template");i.innerHTML=s;let a=[...i.content.childNodes],c=document.createDocumentFragment();for(let l of a)c.appendChild(l);n.parentNode?.insertBefore(c,n),e.child=a;return}if(at(t)){let s=t,i=e.__keyedKey;i!==void 0&&!Object.is(i,s.key)&&Ke(e),e.__keyedKey=s.key,Ae(e,s.value,r);return}if(ct(t)){let s=t,i=e.__guardDeps,a=s.deps;if(i!==void 0&&(Array.isArray(i)&&Array.isArray(a)?qu(i,a):Object.is(i,a)))return;let c=Array.isArray(a)?a.slice():a;Ae(e,s.fn(),r),e.__guardDeps=c;return}if(Jt(t)){Ke(e);let s=t.template;if(s&&s.content){let i=s.content.cloneNode(!0),a=[...i.childNodes];n.parentNode?.insertBefore(i,n),e.child=a}return}if(lt(t))return;if(ut(t))return Mu(e,t.value,r);if(ft(t))return Fu(e,t.args,r);if(dt(t))return $u(e,t.signal,r);if(Zt(t))return Bu(e,t,r);if(Xt(t))return Hu(e,t,r);if(it(t)){if(e.child&&e.child.kind==="repeat"){Lu(e,t,r);return}Ke(e);let s={kind:"repeat",map:new Map};e.child=s,Ru(n,s,t,r);return}if(Array.isArray(t)){if(e.child&&e.child.kind==="array"){Pu(e,t,r);return}Ke(e);let s={kind:"array",items:[]};e.child=s,ju(n,s,t,r);return}if(e.child){let s=e.child;if(s.kind==="repeat")Pa(s),e.child=void 0;else if(s.kind==="array")qa(s),e.child=void 0;else if(s.kind==="async-stream")$a(s),e.child=void 0;else if("strings"in e.child){let i=e.child;if(z(t)&&i.strings===t.strings){St(i,t.values,r);return}ir(i.startNode,i.endNode),e.child=void 0}else{for(let i of e.child)i.parentNode&&i.parentNode.removeChild(i);e.child=void 0}}if(t==null||t===!1||t===!0)return;if(z(t)){let s=t,{templateEl:i,parts:a,formActions:c}=rr(s),l=i.content.cloneNode(!0),u=document.createComment(`${F}s`),f=document.createComment(`${F}e`),d=a.map(y=>Gr(y,l)),p=[];for(let y=0;y<s.values.length;y++)me(d[y],s.values[y],void 0,s.values,r),p.push(s.values[y]);r&&r(c,d,s.values);let m=[u,...l.childNodes,f];n.parentNode?.insertBefore(Cu(m),n);for(let y of d)y.kind==="slot"&&me(y,void 0,void 0,[],r);e.child={strings:s.strings,bound:d,lastValues:p,startNode:u,endNode:f};return}let o=document.createTextNode(String(t));n.parentNode?.insertBefore(o,n),e.child=[o]}function St(e,t,r){for(let n=0;n<t.length;n++){let o=t[n];if(Object.is(o,e.lastValues[n]))continue;let s=e.bound[n],i=s.mixedAnchor;try{s.kind==="noop"&&i!=null?me(e.bound[i],t[i],e.lastValues[i],t,r):me(s,o,e.lastValues[n],t,r)}catch(a){throw e.lastValues[n]=La,s.kind==="noop"&&i!=null&&(e.lastValues[i]=La),a}e.lastValues[n]=o}r&&r(to.get(e.strings)?.formActions??null,e.bound,t)}var La=Symbol("webjs.commitFailed");function ir(e,t){let r=e.parentNode;if(!r)return;let n=e;for(;n&&n!==t;){let o=n.nextSibling;n.parentNode?.removeChild(n),n=o}t.parentNode===r&&r.removeChild(t)}function Cu(e){let t=document.createDocumentFragment();for(let r of e)t.appendChild(r);return t}function oi(e,t){let{templateEl:r,parts:n,formActions:o}=rr(e),s=r.content.cloneNode(!0),i=document.createComment(`${F}s`),a=document.createComment(`${F}e`),c=n.map(f=>Gr(f,s)),l=[];for(let f=0;f<e.values.length;f++)me(c[f],e.values[f],void 0,e.values,t),l.push(e.values[f]);t&&t(o,c,e.values);for(let f of c)f.kind==="slot"&&me(f,void 0,void 0,[],t);let u=document.createDocumentFragment();for(u.appendChild(i);s.firstChild;)u.appendChild(s.firstChild);return u.appendChild(a),{inst:{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a},frag:u}}function Kr(e){for(let t of e.bound)if(t.kind==="event"&&t.el.removeEventListener(t.name,t.dispatcher),t.kind==="element"){let r=t.lastTarget;if(r){if(typeof r=="function")try{r(void 0)}catch{}else if(typeof r=="object")try{r.value=void 0}catch{}t.lastTarget=void 0,t.__lastEl=void 0}}}function Ru(e,t,r,n){let{items:o,keyFn:s,templateFn:i}=r,a=e.parentNode;if(!a)return;let c=document.createDocumentFragment();for(let l=0;l<o.length;l++){let u=s(o[l],l),f=i(o[l],l);if(!z(f))continue;let{inst:d,frag:p}=oi(f,n);t.map.set(u,d),c.appendChild(p)}a.insertBefore(c,e)}function Lu(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,{items:i,keyFn:a,templateFn:c}=t,l=new Map;try{for(let u=0;u<i.length;u++){let f=a(i[u],u),d=c(i[u],u);if(!z(d))continue;let p=s.map.get(f);if(p&&p.strings===d.strings)St(p,d.values,r),ti(p.startNode,p.endNode,o,n),l.set(f,p),s.map.delete(f);else{p&&(s.map.delete(f),Kr(p),ir(p.startNode,p.endNode));let{inst:m,frag:y}=oi(d,r);o.insertBefore(y,n),l.set(f,m)}}for(let[u,f]of[...s.map]){s.map.delete(u);try{Kr(f)}finally{ir(f.startNode,f.endNode)}}s.map=l}catch(u){for(let[f,d]of l)s.map.set(f,d);throw u}}function Pa(e){for(let[t,r]of[...e.map]){e.map.delete(t);try{Kr(r)}finally{ir(r.startNode,r.endNode)}}e.map.clear()}function Ou(e){return e.type==="tpl"?e.inst.startNode:e.type==="text"?e.node:null}function co(e){e.type==="tpl"?(Kr(e.inst),ir(e.inst.startNode,e.inst.endNode)):e.type==="text"&&e.node.parentNode?.removeChild(e.node)}function Ia(e,t){if(J(e)&&(e=e.value),z(e)){let{inst:r,frag:n}=oi(e,t);return{item:{type:"tpl",inst:r},frag:n}}if(e!=null&&e!==!1&&e!==!0){let r=document.createTextNode(String(e));return{item:{type:"text",node:r},frag:r}}return{item:{type:"empty"},frag:null}}function ju(e,t,r,n){let o=e.parentNode;if(!o)return;let s=document.createDocumentFragment(),i=[];for(let a of r){let{item:c,frag:l}=Ia(a,n);l&&s.appendChild(l),i.push(c)}o.insertBefore(s,e),t.items=i}function Pu(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,i=s.items,a=[],c=0;try{for(let l=0;l<t.length;l++){let u=t[l],f=J(u)?u.value:u,d=i[l];if(z(f)){let y=f;if(d&&d.type==="tpl"&&d.inst.strings===y.strings){St(d.inst,y.values,r),a.push(d),c=l+1;continue}}else if(f!=null&&f!==!1&&f!==!0){if(d&&d.type==="text"){let y=String(f);d.node.data!==y&&(d.node.data=y),a.push(d),c=l+1;continue}}else{d&&co(d),a.push({type:"empty"}),c=l+1;continue}let{item:p,frag:m}=Ia(f,r);m&&o.insertBefore(m,Iu(i,l,n)),a.push(p),d&&co(d),c=l+1}for(let l=t.length;l<i.length;l++)co(i[l]),c=l+1;s.items=a}catch(l){throw s.items=a.concat(i.slice(c)),l}}function Iu(e,t,r){for(let n=t;n<e.length;n++){let o=Ou(e[n]);if(o&&o.parentNode)return o}return r}function qa(e){for(let t of e.items)co(t);e.items=[]}function ti(e,t,r,n){if(t.nextSibling===n&&e.parentNode===r)return;let o=document.createDocumentFragment(),s=e;for(;s;){let i=s.nextSibling;if(o.appendChild(s),s===t)break;s=i}r.insertBefore(o,n)}function qu(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function Ke(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&Da(t),!e.child)return;let r=e.child;if(r.kind==="repeat")Pa(r);else if(r.kind==="array")qa(r);else if(r.kind==="async-stream")$a(r);else if("strings"in r){let n=e.child;Kr(n),ir(n.startNode,n.endNode)}else for(let n of e.child)n.parentNode&&n.parentNode.removeChild(n);e.child=void 0}function Du(e,t){let r=e;r.__untilState&&!ft(t)&&(r.__untilState.aborted=!0,r.__untilState=void 0),r.__guardDeps!==void 0&&!ct(t)&&(r.__guardDeps=void 0),r.__cacheMap&&!ut(t)&&(r.__cacheMap=void 0),r.__keyedKey!==void 0&&!at(t)&&(r.__keyedKey=void 0),r.__watchSub&&!dt(t)&&Da(r)}function Mu(e,t,r){let n=e.marker,o=e,s=o.__cacheMap;s||(s=new Map,o.__cacheMap=s);let i=e.child;if(i&&"strings"in i){let c=i;if(z(t)&&c.strings===t.strings){St(c,t.values,r);return}let l=document.createDocumentFragment();ti(c.startNode,c.endNode,l,null),s.set(c.strings,{inst:c,holder:l}),e.child=void 0}if(z(t)){let c=t,l=s.get(c.strings);if(l){s.delete(c.strings),e.child&&Ke(e),ti(l.inst.startNode,l.inst.endNode,n.parentNode,n),St(l.inst,c.values,r),e.child=l.inst;let u=new Set;for(let f=l.inst.startNode.nextSibling;f&&f!==l.inst.endNode;f=f.nextSibling){if(f.nodeType!==1)continue;let d=f;if(d.matches("slot[data-webjs-light]")){let p=sr(d);p&&u.add(p)}for(let p of d.querySelectorAll("slot[data-webjs-light]")){let m=sr(p);m&&u.add(m)}}for(let f of u)oe(f);return}}Ae(e,t,r)}function Fu(e,t,r){let n=e;re&&(n.__commitOwner=lo(re));let o=n.__untilState,s=n.__untilArgs,i=(p,m)=>!!(Object.is(p,m)||z(p)&&z(m)&&p.strings===m.strings),c=s&&s.length===t.length&&s.every((p,m)=>i(p,t[m]))&&o?o.highestResolved:1/0;o&&(o.aborted=!0),n.__untilArgs=t.slice();let l={aborted:!1,highestResolved:c};n.__untilState=l;let u=-1,f;for(let p=0;p<t.length;p++){let m=t[p];if(!m||typeof m.then!="function"){u=p,f=m;break}}u!==-1&&u<=l.highestResolved?(Ae(e,f,r),l.highestResolved=u):u===-1&&!n.__untilEverRendered&&Ae(e,"",r),n.__untilEverRendered=!0;let d=Math.min(u===-1?t.length:u,l.highestResolved);for(let p=0;p<d;p++){let m=t[p];!m||typeof m.then!="function"||Promise.resolve(m).then(y=>{if(!l.aborted&&!(p>=l.highestResolved)){try{ni(e,()=>Ae(e,y,r))}catch(g){si(e,g);return}l.highestResolved=p}},()=>{})}}function si(e,t){let r;try{r=t instanceof Error?t:new Error(String(t))}catch{r=new Error("render error (unstringifiable thrown value)")}let n=e.__commitOwner;if(n&&typeof n._handleRenderError=="function"){n._handleRenderError(r);return}throw r}function $u(e,t,r){let n=e;if(re&&(n.__commitOwner=lo(re)),n.__watchSig===t&&n.__watchSub){let i;n.__watchSub.observe(()=>{i=t.get()}),Ae(e,i,r);return}n.__watchSub&&(n.__watchSub.dispose(),n.__watchSub=void 0),n.__watchSig=t;let o=new zr.subtle.Watcher(()=>{queueMicrotask(()=>{if(n.__watchSub!==o)return;let i;try{o.observe(()=>{i=t.get()}),ni(e,()=>Ae(e,i,r))}catch(a){si(e,a)}})});n.__watchSub=o;let s;o.observe(()=>{s=t.get()}),Ae(e,s,r)}function Da(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function Bu(e,t,r){let n=e;re&&(n.__commitOwner=lo(re));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="append"&&o.iterable===t.iterable)return;Ke(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Ma(i,e,t,r)}function Hu(e,t,r){let n=e;re&&(n.__commitOwner=lo(re));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="replace"&&o.iterable===t.iterable)return;Ke(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Ma(i,e,t,r)}async function Ma(e,t,r,n){let o=t.marker,s=0;for(;!e.aborted;){let i,a;try{if(i=await e.iterator.next(),e.aborted||i.done)break;a=r.mapper?r.mapper(i.value,s):i.value}catch(c){typeof console<"u"&&console.error("[webjs] asyncStream error:",c);return}try{ni(t,()=>{let c=Fa(a,n);Oa(o.parentNode,()=>{if(e.mode==="replace"){for(let u of e.nodes)u.parentNode&&u.parentNode.removeChild(u);e.nodes=[]}let l=document.createDocumentFragment();for(let u of c)l.appendChild(u);o.parentNode?.insertBefore(l,o),e.nodes.push(...c)})})}catch(c){e.aborted=!0;try{e.iterator.return?.()?.catch?.(()=>{})}catch{}si(t,c);return}s++}}function Fa(e,t){if(J(e)&&(e=e.value),e==null||e===!1||e===!0)return[];if(z(e)){let r=e,{templateEl:n,parts:o,formActions:s}=rr(r),i=n.content.cloneNode(!0),a=o.map(c=>Gr(c,i));for(let c=0;c<r.values.length;c++)me(a[c],r.values[c],void 0,r.values,t);t&&t(s,a,r.values);for(let c of a)c.kind==="slot"&&me(c,void 0,void 0,[],t);return[...i.childNodes]}if(Array.isArray(e)){let r=[];for(let n of e)r.push(...Fa(n,t));return r}return[document.createTextNode(String(e))]}function $a(e){e.aborted=!0;for(let t of e.nodes)t.parentNode&&t.parentNode.removeChild(t);e.nodes=[];try{e.iterator.return?.()?.catch?.(()=>{})}catch{}}function _t(e,t){let r=t,n=r[U];r[U]=!0;let o=re;ri(t);try{let s=r[Ur];if(z(e)){let i=e;if(s&&s.strings===i.strings){St(s,i.values,fo);return}s&&Ba(s,t);let a=t.firstChild;a&&a.nodeType===8&&a.data==="webjs-hydrate"&&a.remove(),r[Ur]=null;let c=Wu(i,t);r[Ur]=c;return}if(s&&Ba(s,t),r[Ur]=null,t.replaceChildren(),e==null||e===!1||e===!0)return;if(Array.isArray(e)){for(let i of e){let a=document.createTextNode(String(i??""));t.appendChild(a)}return}t.appendChild(document.createTextNode(String(e)))}finally{ri(o),r[U]=n,n||Jn(r)}}function fo(e,t,r){if(e)for(let n of[!0,!1])for(let o of e){if(o.isForm!==n)continue;let s=o.actionIdxs[0],i=o.isForm?"action":"formaction";for(let l of o.actionIdxs)if(st(ar(r[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=ar(r[s]);if(o.isForm)la(a.el,c,uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!ar(r[f.i]):!0);Vu(a.el,c,o,l(o.nameParts),l(o.valueParts),uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r))}}}function Uu(e){(ro.has(e)||e.getAttribute("name")===$)&&(e.getAttribute("name")===$&&e.removeAttribute("name"),e.removeAttribute("value"),ro.delete(e))}function Vu(e,t,r,n,o,s,i){let a=typeof t=="function"?zn(t):null;if(!a){typeof t=="function"&&$e(null,e.localName),Uu(e),ua(e,s,i,r.propAttrs);return}zt(r.duplicateAction,e.localName),ds(r.propAttrs,e.localName),r.staticAction&&fs(e.localName),(r.authoredValue||o)&&Vt(e.localName),(r.authoredName||n)&&Ut(e.getAttribute("name")||$,e.localName,!1),(r.authoredForm||e.hasAttribute("form"))&&Wt(e.localName),us(e.localName,e.getAttribute("type"));let c=ms(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",$),e.setAttribute("value",a),Lr(e,"formmethod",s,c.formMethod),Lr(e,"formenctype",i,c.formEnctype),ro.set(e,a)}function uo(e,t,r){for(let n of e){if(n.kind==="bool")return ar(r[n.i])?"":G;if(n.kind==="attr"){let a=ar(r[n.i]);return a==null?"":String(a)}let o=n.statics||[],s=n.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(ar(r[s[a]])??""),i+=o[a+1]||"";return i}return t??G}function ar(e){return J(e)?e.value:e}function Wu(e,t){let{templateEl:r,parts:n,formActions:o}=rr(e),s=r.content.cloneNode(!0),i=document.createComment(`${F}s`),a=document.createComment(`${F}e`),c=n.map(f=>Gr(f,s)),l=[];for(let f=0;f<e.values.length;f++)me(c[f],e.values[f],void 0,e.values,fo),l.push(e.values[f]);fo(o,c,e.values),t.replaceChildren(i,...s.childNodes,a);let u=t.nodeType===1&&t[R]?t:null;for(let f of c)f.kind==="slot"&&(u&&f.slotEl&&(f.slotEl[pt]=u),me(f,void 0,void 0,[],fo));return{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a}}function Ba(e,t){for(let r of e.bound){if(r.kind==="event"&&r.el.removeEventListener(r.name,r.dispatcher),r.kind==="element"){let n=r.lastTarget;if(n){if(typeof n=="function")try{n(void 0)}catch{}else if(typeof n=="object")try{n.value=void 0}catch{}r.lastTarget=void 0,r.__lastEl=void 0}}if(r.kind==="slot"){let n=sr(r.slotEl);n&&Ws(n,r.slotEl)}}t.replaceChildren()}function po(e,t){if(e.converter&&e.converter.fromAttribute)return e.converter.fromAttribute(t,e.type);if(e.type===Number)return t==null?null:Number(t);if(e.type===Boolean)return t!=null&&t!=="false";if(e.type===Object||e.type===Array){if(t==null)return null;try{return JSON.parse(t)}catch{return null}}return t}function zu(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function mo(e,t){let r;for(let{propName:n,def:o,primary:s,alias:i}of Ua(e)){if(s===t)return{propName:n,def:o};r===void 0&&i===t&&(r={propName:n,def:o})}return r}function Ha(e){let t=new Set,r=Ua(e);for(let{primary:n}of r)t.add(n);for(let{alias:n}of r)n&&t.add(n);return[...t]}function Ua(e){let t=e&&e.properties||{},r=[];for(let[n,o]of Object.entries(t)){let s=typeof o=="object"&&o!==null?o:{type:o};if(s.state)continue;let i=s.attribute||zu(n),a=n.toLowerCase(),c=!s.attribute&&a!==i?a:void 0;r.push({propName:n,def:s,primary:i,alias:c})}return r}var Va=null;function ho(e){Va=e||null}function ii(){return Va||void 0}Ce();var Wa=Symbol.for("webjs:registry"),za=Symbol.for("webjs:classToTag"),go=globalThis,xe=go[Wa]||(go[Wa]=new Map),Ka=go[za]||(go[za]=new WeakMap),bo=typeof window<"u"&&typeof customElements<"u";function ai(e,t){if(!e||typeof e!="string"||!e.includes("-"))throw new Error(`customElements.define: tag "${e}" must contain a hyphen (HTML spec)`);let r=t.lazy===!0,n=xe.get(e);n?(n.cls=t,n.lazy=r):xe.set(e,{cls:t,moduleUrl:null,lazy:r,tag:e}),Ka.set(t,e)}if(bo){let e=customElements.define.bind(customElements);customElements.define=function(t,r,n){customElements.get(t)||e(t,r,n),ai(t,r)}}if(!bo){let e=globalThis;e.customElements||(e.customElements={define(t,r){ai(t,r)},get(t){return xe.get(t)?.cls},upgrade(){},whenDefined(t){let r=xe.get(t);return Promise.resolve(r?.cls)}})}function ci(e,t){bo?customElements.define(e,t):ai(e,t)}function Ku(e,t){if(bo)return;let r=xe.get(e);if(r){r.moduleUrl=t;return}xe.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e})}function li(e){return xe.get(e)?.cls}function Gu(e){return xe.get(e)?.moduleUrl||null}function Yu(e){return xe.get(e)?.lazy===!0}function At(e){return Ka.get(e)}function ui(){return[...xe.keys()]}vt();wt();function lf(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var Xr=class{constructor(){this.__ssrAttrs=new Map,this.__internals=null}get attributes(){return[...this.__ssrAttrs].map(([t,r])=>({name:t,value:r}))}getAttribute(t){let r=this.__ssrAttrs.get(String(t).toLowerCase());return r===void 0?null:r}setAttribute(t,r){this.__ssrAttrs.set(String(t).toLowerCase(),String(r))}removeAttribute(t){this.__ssrAttrs.delete(String(t).toLowerCase())}hasAttribute(t){return this.__ssrAttrs.has(String(t).toLowerCase())}toggleAttribute(t,r){let n=String(t).toLowerCase(),o=this.__ssrAttrs.has(n);return(r===void 0?!o:r)?(this.__ssrAttrs.set(n,""),!0):(this.__ssrAttrs.delete(n),!1)}getAttributeNames(){return[...this.__ssrAttrs.keys()]}closest(t){let r=String(t).trim().toLowerCase();if(!/^[a-z][a-z0-9-]*$/.test(r))return null;if(this.__ssrTag===r)return this;let n=this.__ssrAncestors;if(!Array.isArray(n))return null;for(let o=n.length-1;o>=0;o--)if(n[o]&&n[o].__ssrTag===r)return n[o];return null}get dataset(){if(this.__dataset)return this.__dataset;let t=this,r=n=>"data-"+String(n).replace(/[A-Z]/g,o=>"-"+o.toLowerCase());return this.__dataset=new Proxy({},{get(n,o){if(typeof o!="string")return;let s=t.getAttribute(r(o));return s===null?void 0:s},set(n,o,s){return typeof o=="string"&&t.setAttribute(r(o),s),!0},has(n,o){return typeof o=="string"&&t.hasAttribute(r(o))},deleteProperty(n,o){return typeof o=="string"&&t.removeAttribute(r(o)),!0},ownKeys(){return t.getAttributeNames().filter(n=>n.startsWith("data-")).map(n=>n.slice(5).replace(/-([a-z])/g,(o,s)=>s.toUpperCase()))},getOwnPropertyDescriptor(n,o){if(typeof o=="string"&&t.hasAttribute(r(o)))return{enumerable:!0,configurable:!0,value:t.getAttribute(r(o))}}}),this.__dataset}get className(){return this.getAttribute("class")??""}set className(t){this.setAttribute("class",t)}get hidden(){return this.hasAttribute("hidden")}set hidden(t){this.toggleAttribute("hidden",!!t)}get id(){return this.getAttribute("id")??""}set id(t){this.setAttribute("id",t)}get title(){return this.getAttribute("title")??""}set title(t){this.setAttribute("title",t)}get slot(){return this.getAttribute("slot")??""}set slot(t){this.setAttribute("slot",t)}get role(){return this.getAttribute("role")}set role(t){t==null?this.removeAttribute("role"):this.setAttribute("role",t)}get tabIndex(){let t=this.getAttribute("tabindex");return t===null?-1:Number.parseInt(t,10)||0}set tabIndex(t){this.setAttribute("tabindex",String(t))}addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return this.__internals=lf(),this.__internals}},uf=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];for(let e of uf){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(Xr.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(r){r==null?this.removeAttribute(t):this.setAttribute(t,String(r))}})}function Xa(e,t){return e!==t}function Qa(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function fi(e,t,r){if(typeof console>"u"||!console.warn)return;let n=At(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${n}> holds a function (or an array carrying one), which has no HTML attribute representation. Removing "${r}" instead of stringifying it (a stringified function writes its source into the page, so a server action's body would ship to the browser). Pass a string, or drop reflect on this property.`)}function ec(e,t,r,n){if(typeof console>"u"||!console.warn)return;let o=At(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${o}> holds a value JSON.stringify cannot serialize (a cycle, a BigInt, or a throwing toJSON), so it has no HTML attribute representation. Removing "${r}" instead. Detail: ${n}`)}function tc(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}var nc=typeof window<"u"&&typeof HTMLElement<"u",ff=nc?HTMLElement:Xr,oc=Symbol("webjs.factoryProps"),rc=new WeakSet,cr=class e extends ff{static shadow=!1;static hydrate=void 0;static properties={};static styles=null;static register(t){ci(t,this)}static get observedAttributes(){return Ha(this)}constructor(){super(),this._renderRoot=null,this._scheduled=!1,this._connected=!1,this.__controllers=new Set,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=Promise.resolve(!0),this._isUpdating=!1,this._assertFactoryProperties(),this._initializeProperties()}_assertFactoryProperties(){let t=this.constructor;if(rc.has(t))return;let r=t;for(;r&&r!==e;){if(Object.hasOwn(r,"properties")&&!Object.hasOwn(r,oc)){let n=r.name||"a component";throw new Error(`${n}: \`static properties\` is no longer supported. Declare reactive properties via the factory instead: \`class ${n} extends WebComponent({ count: Number })\`. Use the \`prop()\` helper for options (\`prop(Number, { reflect: true })\`) and set defaults in the constructor after \`super()\`. See https://webjs.dev/docs/components.`)}r=Object.getPrototypeOf(r)}rc.add(t)}_initializeProperties(){let r=this.constructor.properties;if(!(!r||typeof r!="object")){this.__propValues={};for(let[n,o]of Object.entries(r)){let s=typeof o=="object"?o:{type:o},i=this[n];Object.defineProperty(this,n,{configurable:!0,enumerable:!0,get:()=>this.__propValues[n],set:a=>{let c=this.__propValues[n];(s.hasChanged||Xa)(a,c)&&(this.__propValues[n]=a,s.reflect&&!s.state&&this._connected&&this._reflectAttribute(n,a,s),this.requestUpdate(n,c))}}),i!==void 0?this.__propValues[n]=i:s.default!==void 0&&(this.__propValues[n]=typeof s.default=="function"?s.default():s.default)}}}_reflectAttribute(t,r,n){let o=n.attribute||df(t);if(!this.__reflectingAttribute){this.__reflectingAttribute=!0;try{if(n.converter&&n.converter.toAttribute){let s=n.converter.toAttribute(r,n.type);s==null?this.removeAttribute(o):this.setAttribute(o,s)}else if(typeof r=="function")this.removeAttribute(o),fi(this,t,o);else if(n.type===Boolean)r?this.setAttribute(o,""):this.removeAttribute(o);else if(r==null)this.removeAttribute(o);else if(n.type===Object||n.type===Array){let s,i=!0;try{s=JSON.stringify(r)}catch(a){i=!1,this.removeAttribute(o),ec(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else Kn(r)?(this.removeAttribute(o),fi(this,t,o)):this.setAttribute(o,String(r))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!nc)return;if(this.__webjsPropsHydrated||(this.__webjsPropsHydrated=!0,this._hydratePropAttrs()),this.constructor.hydrate==="visible"&&typeof IntersectionObserver<"u"&&!this.__hydrationActivated){this.__hydrationActivated=!1,this.__hydrationObserver=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){this.__hydrationObserver.unobserve(this),this.__hydrationObserver.disconnect(),this.__hydrationObserver=null,this.__hydrationActivated=!0,this._activate();return}},{rootMargin:"200px"}),this.__hydrationObserver.observe(this);return}this._activate()}_hydratePropAttrs(){let t=[],r=this.attributes;for(let n=0;n<r.length;n++){let o=r[n].name;o.startsWith("data-webjs-prop-")&&t.push(o)}for(let n of t){let o=this.getAttribute(n);if(this.removeAttribute(n),o==null)continue;let s=pf(n.slice(16));try{this[s]=Le(o)}catch(i){console.warn(`[webjs] failed to decode ${n} on <${this.tagName.toLowerCase()}>: ${i&&i.message}`)}}}_activate(){this._connected=!0,this._reflectDeclaredAttributes();let t=this.constructor;if(t.shadow!==!0&&!this.hasAttribute("data-wj-host")&&this.setAttribute("data-wj-host",""),t.shadow===!0){let r=!!this.shadowRoot;this.shadowRoot||this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot;let n=t.styles,o=Array.isArray(n)?n:Bt(n)?[n]:[];if(o.length){if(r){let s=this.shadowRoot.querySelector("style");s&&s.remove()}cs(this._renderRoot,o)}}else this._renderRoot=this,t.styles&&console.warn(`[webjs] <${At(t)||this.tagName?.toLowerCase()}> has static shadow = false AND static styles. static styles only works with shadow DOM (adoptedStyleSheets). For light DOM, use global CSS or <style> in render().`),qr(this)?Ns(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||Vs(this)?(this.removeAttribute("data-wj-serialized"),X(this),_s(this)):Ss(this),Is(this),Ts(this);for(let r of this.__controllers)r.hostConnected&&r.hostConnected();this._updateResolve===null&&(this._updatePromise=new Promise(r=>{this._updateResolve=r})),this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(r){console.error("[webjs] lifecycle hook threw during initial render:",r)}})}__isHydrating(){let t=this.firstChild,r=t!=null&&t.nodeType===8&&t.data==="webjs-hydrate";return r&&(this.__hydratedAtActivate=!0),r}disconnectedCallback(){this._connected=!1,this.__hydrationObserver&&(this.__hydrationObserver.disconnect(),this.__hydrationObserver=null),ks(this),this.__signalWatcher&&(this.__signalWatcher.dispose(),this.__signalWatcher=void 0);for(let t of this.__controllers)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,r,n){if(this.__reflectingAttribute)return;let o=mo(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o,a=po(i,n);this[s]!==a&&(this[s]=a,this._connected&&this.requestUpdate())}requestUpdate(t,r){t!==void 0&&!this._changedProperties.has(t)&&this._changedProperties.set(t,r),this._scheduleUpdate()}_scheduleUpdate(){this._updateResolve===null&&(this._updatePromise=new Promise(t=>{this._updateResolve=t})),!this._isUpdating&&(this._scheduled||!this._connected||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(t){console.error("[webjs] lifecycle hook threw during update cycle:",t)}})))}_performRender(){if(!this._renderRoot)return;let t=this._changedProperties;this._isUpdating=!0;let r=!1,n=null;try{if(this.shouldUpdate(t)){this.willUpdate(t);for(let o of this.__controllers)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null;try{let o=this.update(t);o&&typeof o.then=="function"&&(n=o)}catch(o){this._handleRenderError(o)}if(!n){for(let o of this.__controllers)o.hostUpdated&&o.hostUpdated();r=!0}}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,(r||n)&&(this._changedProperties=new Map)}if(n){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{if(this.__pendingAsyncCommits--,o===this.__renderToken){for(let i of this.__controllers)i.hostUpdated&&i.hostUpdated();this._postCommit(t)}};n.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(Qa(i)))}finally{s()}});return}r?this._postCommit(t):this.__pendingAsyncCommits||this._resolveUpdate()}_resolveUpdate(){if(this._updateResolve){let t=this._changedProperties.size===0;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let r of this.__controllers)r.hostUpdate&&r.hostUpdate();this._reflectDeclaredAttributes()}finally{this._isUpdating=!1}}_reflectDeclaredAttributes(){let t=this.constructor.properties||{};for(let r of Object.keys(t)){let n=t[r];!n||!n.reflect||n.state||this._reflectAttribute(r,this[r],n)}}shouldUpdate(t){return!0}willUpdate(t){}update(t){this.__signalWatcher||(this.__signalWatcher=new zr.subtle.Watcher(()=>{this._connected&&this.requestUpdate()}));let r,n=ii();ho(this.__renderAbort?this.__renderAbort.signal:null);try{this.__signalWatcher.observe(()=>{r=this.render()})}finally{ho(n||null)}if(r&&typeof r.then=="function")return this._commitAsync(r);_t(r,this._renderRoot)}_commitAsync(t){let r=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let n=this.renderFallback();n!==void 0&&_t(n,this._renderRoot)}catch(n){console.error("[webjs] renderFallback() threw:",n)}return Promise.resolve(t).then(n=>{if(r===this.__renderToken)try{_t(n,this._renderRoot)}catch(o){this._handleRenderError(o instanceof Error?o:new Error(String(o)))}},n=>{r===this.__renderToken&&this._handleRenderError(n instanceof Error?n:new Error(String(n)))})}_overridesRenderFallback(){return this.renderFallback!==Qr.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${At(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let r=this.renderError(t);r!==void 0&&_t(r,this._renderRoot)}catch(r){console.error("[webjs] renderError() also threw:",r)}}_postCommit(t){try{this.__firstRendered||(this.__firstRendered=!0,this.firstUpdated(t)),this.updated(t)}catch(r){console.error("[webjs] lifecycle hook threw during post-commit phase:",r)}finally{this._resolveUpdate()}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}addController(t){this.__controllers.add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}render(){return""}renderError(t){}renderFallback(){}};function df(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function pf(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Qr(e){return new.target?Reflect.construct(cr,arguments,new.target):class extends cr{static properties=e;static[oc]=!0}}Object.setPrototypeOf(Qr,cr);Qr.prototype=cr.prototype;var di=null;function mf(e){di=e}function pi(){if(!di)return"";try{return di()||""}catch{return""}}ot();Ao();Qt();Ao();So();_o();ot();vt();_o();function bi(e){let t={},r=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,n;for(;(n=r.exec(e))!==null;)t[n[1]]=n[2]??n[3]??n[4]??"";return t}function wc(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let[r,n]of Object.entries(t))e.setAttribute(r,ur(n))}function yi(e){return/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function Sc(e,t,r){if(!t||typeof t.getAttributeNames!="function")return e;let n="";for(let o of t.getAttributeNames()){let s=String(o).toLowerCase();if(r.has(s))continue;let i=t.getAttribute(o);n+=i===""?` ${s}`:` ${s}="${H(String(i))}"`}return n?`${e.slice(0,-1)}${n}>`:e}function _c(e,t,r){for(let[n,o]of Object.entries(t)){let s=mo(r,n.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=po(a,ur(o))}}function Ac(e){let t={};for(let r of Object.keys(e)){if(!r.startsWith("data-webjs-prop-"))continue;let n=pc(r.slice(16));try{t[n]=Le(ur(e[r]))}catch{}delete e[r]}return t}ot();So();function Tf(e){let t=/\bslot\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(e);if(!t)return null;let r=t[1]??t[2]??t[3]??"";return r===""||r==="default"?null:r}function vc(e){let t=new Map,r="",n=0;for(;n<e.length;){let o=e.indexOf("<",n);if(o===-1){r+=e.slice(n);break}o>n&&(r+=e.slice(n,o));let s=e.slice(o);if(s.startsWith("<!--")){let g=hi(e,o);if(g===-1){r+=s,n=e.length;break}r+=e.slice(o,g),n=g;continue}if(s.startsWith("<!")||s.startsWith("</")){let g=e.indexOf(">",o);if(g===-1){r+=s,n=e.length;break}r+=e.slice(o,g+1),n=g+1;continue}let i=/^<([a-zA-Z][\w-]*)((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/.exec(s);if(!i){r+="<",n=o+1;continue}let[a,c,l,u]=i,f=c.toLowerCase(),d=!!u||sc(f),p=Tf(l),m;if(d)m=o+a.length;else{let g=o+a.length,S=Et(e,g,f);if(S===-1){let k=e.slice(o);p!==null?xc(t,p,k):r+=k,n=e.length;continue}let b=new RegExp(`</${Tt(f)}\\s*>`,"i"),E=e.slice(S),A=b.exec(E),v=A?A[0].length:`</${f}>`.length;m=S+v}let y=e.slice(o,m);p!==null?xc(t,p,y):r+=y,n=m}return r.length>0&&t.set(null,r),t}function xc(e,t,r){let n=e.get(t);n!==void 0?e.set(t,n+r):e.set(t,r)}function Ec(e,t,r){let n=r?` data-wj-slot-owner="${H(r)}"`:"",o=new Set,s="",i=0,a=/<slot((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/gi,c=lr(e),l=en(c),u;for(;(u=a.exec(e))!==null;){if(l(u.index))continue;s+=e.slice(i,u.index);let[f,d,p]=u,m=!!p,y=/\bname\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(d),g=y?y[1]??y[2]??y[3]:null,S=d.replace(/\bname\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,"").trim(),b="",E;if(m)E=u.index+f.length;else{let _=u.index+f.length,h=Et(e,_,"slot",c);if(h===-1)b=e.slice(_),E=e.length;else{b=e.slice(_,h);let w=/<\/slot\s*>/i,I=e.slice(h),x=w.exec(I),C=x?x[0].length:7;E=h+C}}let A=g==="default"||g===""?null:g,v=t.get(A),k=g!==null?` name="${H(g)}"`:"",N=S?` ${S}`:"";v!==void 0&&!o.has(A)?(o.add(A),s+=`<slot data-webjs-light data-projection="actual"${n}${k}${N}>${v}</slot>`):s+=`<slot data-webjs-light data-projection="fallback"${n}${k}${N}>${b}</slot>`,i=E,a.lastIndex=E}return s+=e.slice(i),s}async function Oe(e,t,r=[],n){e=await kf(e,t,r,n);let o=ui();if(!o.length)return e;let s=[...o].sort((p,m)=>m.length-p.length),i=new RegExp(`<(${s.map(Tt).join("|")})(?=[\\s>/])((?:"[^"]*"|'[^']*'|[^>])*?)(/?)>`,"g"),a=[],c=lr(e),l=en(c);for(let p of e.matchAll(i)){let[m,y,g,S]=p,b=li(y);if(!b||l(p.index))continue;t&&t.usedComponents&&t.usedComponents.add(y);let E=S?`<${y}${g}>`:m,A=null;try{let v=b.shadow===!0;A=new b,A.__ssrTag=y,A.__ssrAncestors=r;let k=bi(g),N=Ac(k),_=new Set(Object.keys(bi(g)).map(W=>W.toLowerCase()));wc(A,k),_c(A,k,b);for(let[W,q]of Object.entries(N))A[W]=q;let h="",w=p.index+m.length;if(!S){let W=p.index+m.length,q=Et(e,W,y,c);if(q!==-1){h=e.slice(W,q);let M=new RegExp(`</${Tt(y)}\\s*>`,"i"),Ft=e.slice(q),Cr=M.exec(Ft),os=Cr?Cr[0].length:`</${y}>`.length;w=q+os}else h=e.slice(W),w=e.length}let I=vc(h);typeof A.performServerUpdate=="function"&&A.performServerUpdate();let x=A.render?A.render():"";x&&typeof x.then=="function"&&(x=await x),E=Sc(E,A,_),v||(E=yi(E));let C=await P(x,t);if(v){let W=await Oe(C,t,[...r,A],n),q=b.styles,M=Array.isArray(q)?q:q&&Bt(q)?[q]:[],Ft=Un(M);a.push({start:p.index,end:p.index+m.length,text:`${E}<template shadowrootmode="open">${Ft}${W}</template>`})}else{if(C.trim()===""){a.push({start:p.index,end:p.index+m.length,text:`${E}<!--webjs-hydrate-->`});continue}let q=Ec(C,I,y),M=await Oe(q,t,[...r,A],n);a.push({start:p.index,end:w,text:`${E}<!--webjs-hydrate-->${M}</${y}>`})}}catch(v){let k=gi(v);console.error(k?`[webjs] SSR failed for <${y}>: ${k} It was touched in the component's constructor or render(), which run during SSR. Move browser-only work to connectedCallback() or a lifecycle hook (firstUpdated/updated), which SSR never calls; seed first-paint defaults in the constructor only from server-known inputs (attributes / props).`:`[webjs] SSR failed for <${y}>:`,v);let N=v instanceof Error?v:new Error(String(v)),_="";try{let x;A&&typeof A.renderError=="function"&&(x=A.renderError(N)),x===void 0&&(x=tn(y,N,n)),_=await P(x,t),_.trim()&&(_=await Oe(_,t,A?[...r,A]:r,n))}catch(x){console.error(`[webjs] renderError() for <${y}> also threw:`,x),_=""}let h=p.index+m.length;if(!S){let x=p.index+m.length,C=Et(e,x,y,c);if(C!==-1){let q=new RegExp(`</${Tt(y)}\\s*>`,"i").exec(e.slice(C));h=C+(q?q[0].length:`</${y}>`.length)}else h=e.length}let w=b.shadow===!0;w||(E=yi(E));let I;if(w){let x=b.styles,C=Array.isArray(x)?x:x&&Bt(x)?[x]:[],W=Un(C);I=`${E}<template shadowrootmode="open">${W}${_}</template>`}else I=`${E}<!--webjs-hydrate-->${_}</${y}>`;a.push({start:p.index,end:h,text:I})}}if(!a.length)return e;a.sort((p,m)=>p.start-m.start);let u=[],f=-1;for(let p of a)p.start>=f&&(u.push(p),f=p.end);let d=e;for(let p=u.length-1;p>=0;p--){let{start:m,end:y,text:g}=u[p];d=d.slice(0,m)+g+d.slice(y)}return d}async function kf(e,t,r=[],n){if(e.indexOf("<webjs-suspense")===-1)return e;let o=/<webjs-suspense((?:"[^"]*"|'[^']*'|[^>])*?)>/i,s=lr(e),i=en(s),a=0,c="",l=e;for(let u=0;u<1e4;u++){let f=o.exec(l);if(!f){c+=l;break}if(i(a+f.index)){let v=f.index+f[0].length;c+=l.slice(0,v),l=l.slice(v),a+=v;continue}let d=f.index,p=f.index+f[0].length;c+=l.slice(0,d);let m=f[1]||"",y=/data-webjs-fallback="([^"]*)"/i.exec(m),g=y?ur(y[1]):"",S=[];for(let[v,k]of s)k<=a||S.push([Math.max(0,v-a),k-a]);let b=Et(l,p,"webjs-suspense",S),E,A;if(b===-1)E=l.slice(p),A="";else{E=l.slice(p,b);let v=/<\/webjs-suspense\s*>/i.exec(l.slice(b));A=l.slice(b+(v?v[0].length:17))}if(t){let v=`s${t.nextId++}`;t.pending.push({id:v,promise:Promise.resolve(gs(E))}),c+=`<webjs-suspense id="${v}">${g}</webjs-suspense>`}else{let v=await Oe(E,t,r,n);c+=`<webjs-suspense>${v}</webjs-suspense>`}a+=l.length-A.length,l=A}return c}async function Tc(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;r&&r.dev===void 0&&n!==void 0&&(r.dev=n);let o=await P(e,r);return t&&t.ssr===!1?o:await Oe(o,r,[],n)}function kc(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;return r&&r.dev===void 0&&n!==void 0&&(r.dev=n),new ReadableStream({async start(o){try{if(t&&t.ssr===!1){let{streamRender:s}=await Promise.resolve().then(()=>(Ao(),yc));await s(e,r,o)}else{let s=await P(e,r),i=await Oe(s,r,[],n);o.enqueue(i)}r&&r.pending.length&&await Nf(r,o,n),o.close()}catch(s){o.error(s)}}})}async function Nf(e,t,r){let n=pi(),o=n?` nonce="${H(n)}"`:"";for(;e.pending.length;){let s=e.pending.splice(0);await Promise.all(s.map(async({id:i,promise:a})=>{try{let c=await a,l=await P(c,e),u=await Oe(l,e,[],r);t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await Oe(await P(tn("webjs-suspense",l,r),e),e,[],r);t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(l){console.error(`[webjs] Suspense boundary "${i}" error render also threw:`,l)}}}))}}ot();var Nc=Symbol.for("webjs.notFound"),Cc=Symbol.for("webjs.redirect"),Rc=Symbol.for("webjs.forbidden"),Lc=Symbol.for("webjs.unauthorized");function Cf(){let e=new Error("webjs: notFound()");throw e.__webjs=Nc,e}function Rf(){let e=new Error("webjs: forbidden()");throw e.__webjs=Rc,e}function Lf(){let e=new Error("webjs: unauthorized()");throw e.__webjs=Lc,e}function Of(e,t){let r=typeof t=="object"&&t!==null?t.status:t,n=new Error(`webjs: redirect(${e})`);throw n.__webjs=Cc,n.url=e,n.status=typeof r=="number"?r:void 0,n}function jf(e){return!!e&&e.__webjs===Nc}function Pf(e){return!!e&&e.__webjs===Cc}function If(e){return!!e&&e.__webjs===Rc}function qf(e){return!!e&&e.__webjs===Lc}var wi=null;function Df(e){wi=e}function Mf(e){if(typeof e!="string"||!e||!wi)return e;try{return wi(e)||e}catch{return e}}Ce();Ir();mi();function Ff(e,t={}){let r=t.reconnect!==!1,n=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket($f(e),t.protocols),s.onopen=c=>{for(n=0;i.length&&s&&s.readyState===WebSocket.OPEN;)s.send(i.shift());t.onOpen?.(c)},s.onmessage=c=>{let l=c.data;if(typeof l=="string")try{l=JSON.parse(l)}catch{}t.onMessage?.(l,c)},s.onerror=c=>{t.onError?.(c)},s.onclose=c=>{if(t.onClose?.(c),!o&&r){let l=Math.min(1e3*2**n++,3e4);setTimeout(a,l)}})}return a(),{send(c){let l=typeof c=="string"||c instanceof ArrayBuffer||ArrayBuffer.isView(c)?c:JSON.stringify(c);s&&s.readyState===WebSocket.OPEN?s.send(l):i.push(l)},close(c,l){o=!0;try{s?.close(c,l)}catch{}},get socket(){return s},get readyState(){return s?.readyState??3}}}function $f(e){if(/^wss?:\/\//i.test(e))return e;let t=typeof location<"u"&&location.protocol==="https:"?"wss:":"ws:",r=typeof location<"u"?location.host:"";return`${t}//${r}${e.startsWith("/")?e:"/"+e}`}vt();var Si="application/vnd.webjs+json";async function Bf(e,t={}){let r=new Headers(t.headers||{});r.has("accept")||r.set("accept",Si);let n=t.body;n!=null&&typeof n=="object"&&!(n instanceof FormData)&&!(n instanceof Blob)&&!(n instanceof ArrayBuffer)&&!(n instanceof URLSearchParams)&&!(typeof ReadableStream<"u"&&n instanceof ReadableStream)&&!ArrayBuffer.isView(n)&&(n=await Zr(n),r.has("content-type")||r.set("content-type",Si));let o=await fetch(e,{...t,headers:r,body:n}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(Si)?i?Le(i):null:s.includes("application/json")?i?JSON.parse(i):null:i;if(!o.ok){let c=a&&a.error||`richFetch ${e} -> ${o.status}`,l=new Error(c);throw l.status=o.status,l.body=a,l}return a}vt();Ei();vi();on();var ta=class{constructor(t,r){this.host=t,this.options=r,this.updates=[],this._nextId=0}get value(){let t=this.options.source();if(!this.options.update)return this.updates.length>0?this.updates[this.updates.length-1].payload:t;for(let r of this.updates)t=this.options.update(t,r.payload);return t}add(t,r){let n=`opt-${++this._nextId}`;this.updates.push({id:n,payload:t}),this.host?.requestUpdate?.();let o=()=>{let s=this.updates.findIndex(i=>i.id===n);s!==-1&&(this.updates.splice(s,1),this.host?.requestUpdate?.())};return r&&typeof r.then=="function"&&(typeof r.finally=="function"?r.finally(()=>o()).catch(()=>{}):r.then(()=>o(),()=>o())),o}};async function Nd(e,t,r){let n=e.get();e.set(t);let o;try{o=await r()}catch(s){throw e.set(n),s}return o&&o.success===!1&&e.set(n),o}function Cd(e,t,r){return e&&typeof e.get=="function"&&typeof e.set=="function"?Nd(e,t,r):new ta(e,t)}Eo();ko();var Rd="application/vnd.webjs+stream",Ld=1,Od=2,jd=3,jl=new Uint8Array(0);function Pd(e,t){let r=t||jl,n=r.length,o=new Uint8Array(5+n);return o[0]=e&255,o[1]=n>>>24&255,o[2]=n>>>16&255,o[3]=n>>>8&255,o[4]=n&255,n&&o.set(r,5),o}function Id(){let e=jl;return{push(t){if(t&&t.length){let n=new Uint8Array(e.length+t.length);n.set(e,0),n.set(t,e.length),e=n}let r=[];for(;e.length>=5;){let n=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0;if(e.length<5+o)break;let s=e.slice(5,5+o);r.push({type:n,payload:s}),e=e.slice(5+o)}return r}}}Qt();var qd=Symbol.for("webjs.context");function Dd(e){return{__context__:qd,name:e}}var ns=class extends Event{constructor(t,r,n=!1){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=n}},ra=class{constructor(t,{context:r,initialValue:n}){this._host=t,this._context=r,this._value=n,this._subscriptions=new Set,this._onRequest=o=>{let s=o;if(s.context===this._context)if(o.stopPropagation(),s.subscribe){let i={callback:s.callback},a=()=>{this._subscriptions.delete(i)};this._subscriptions.add(i),s.callback(this._value,a)}else s.callback(this._value)},typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}setValue(t){if(!Object.is(this._value,t)){this._value=t;for(let r of this._subscriptions){let n=()=>{this._subscriptions.delete(r)};r.callback(t,n)}}}hostConnected(){this._host.addEventListener("context-request",this._onRequest)}hostDisconnected(){this._host.removeEventListener("context-request",this._onRequest),this._subscriptions.clear()}},na=class{constructor(t,{context:r,subscribe:n=!0}){this._host=t,this._context=r,this._subscribe=n,this._value=void 0,this._unsubscribe=void 0,typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}hostConnected(){this._dispatchRequest()}hostDisconnected(){this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=void 0)}_dispatchRequest(){let t=new ns(this._context,(r,n)=>{let o=this._value;this._value=r,n&&(this._unsubscribe=n),!Object.is(o,r)&&typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()},this._subscribe);this._host.dispatchEvent(t)}};function Md(){return typeof window<"u"}var Fe={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},oa=class{constructor(t,{task:r,args:n,autoRun:o=!0}){this._host=t,this._taskFn=r,this._argsFn=n||(()=>[]),this._autoRun=o,this._status=Fe.INITIAL,this._value=void 0,this._error=void 0,this._abortController=null,this._prevArgs=null,typeof t.addController=="function"&&t.addController(this)}get status(){return this._status}get value(){return this._value}get error(){return this._error}async run(){this.abort();let t=new AbortController;this._abortController=t;let r=this._argsFn();this._prevArgs=r,this._status=Fe.PENDING,this._error=void 0,this._requestHostUpdate();try{let n=await this._taskFn(...r,{signal:t.signal});if(t.signal.aborted)return;this._value=n,this._status=Fe.COMPLETE,this._error=void 0}catch(n){if(t.signal.aborted)return;this._error=n,this._status=Fe.ERROR,this._value=void 0}finally{this._abortController===t&&(this._abortController=null)}this._requestHostUpdate()}abort(){this._abortController&&(this._abortController.abort(),this._abortController=null)}render(t={}){switch(this._status){case Fe.INITIAL:return t.initial?.();case Fe.PENDING:return t.pending?.();case Fe.COMPLETE:return t.complete?.(this._value);case Fe.ERROR:return t.error?.(this._error);default:return}}hostUpdate(){if(!this._autoRun||!Md())return;let t=this._argsFn();this._argsEqual(this._prevArgs,t)||this.run()}hostUpdated(){}hostConnected(){}hostDisconnected(){this.abort()}_requestHostUpdate(){typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()}_argsEqual(t,r){if(t===null||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}};export{na as ContextConsumer,ra as ContextProvider,ns as ContextRequestEvent,$ as FORM_ACTION_FIELD,ia as FORM_ACTION_ID_KEY,Ld as FRAME_CHUNK,Od as FRAME_END,jd as FRAME_ERROR,F as MARKER,$c as SEED_MISS,Rd as STREAM_CONTENT_TYPE,zr as Signal,hf as Suspense,oa as Task,Fe as TaskStatus,Qr as WebComponent,xi as WebjsFrame,Ti as WebjsStream,ii as activeActionSignal,cs as adoptStyles,ui as allTags,Mf as asset,ru as asyncAppend,nu as asyncReplace,_u as batch,eu as cache,xu as computed,Ff as connectWS,nd as consumeStale,Dd as createContext,Id as createFrameDecoder,Ql as createRef,pi as cspNonce,ql as css,Ja as deserialize,Xi as disableClientRouter,Eu as effect,Bn as enableClientRouter,Pd as encodeFrame,H as escapeAttr,Wn as escapeText,td as fetchMark,Rf as forbidden,Jl as guard,as as html,Zt as isAsyncAppend,Xt as isAsyncReplace,Bt as isCSS,ut as isCache,If as isForbidden,ct as isGuard,at as isKeyed,Yu as isLazy,J as isLive,jf as isNotFound,Pf as isRedirect,lt as isRef,it as isRepeat,vu as isSignal,yo as isSuspense,z as isTemplate,Jt as isTemplateContent,qf as isUnauthorized,Yt as isUnsafeHTML,ft as isUntil,dt as isWatch,Yl as keyed,Gl as live,ea as loadFrame,li as lookup,Gu as lookupModuleUrl,Li as markStale,Qi as navigate,Cf as notFound,Cd as optimistic,Le as parse,Oi as parseTagHeader,Ku as primeModuleUrl,tc as prop,Of as redirect,Xl as ref,rs as refreshPage,ci as register,rd as registerKeyTags,_t as render,ki as renderStream,kc as renderToStream,Tc as renderToString,pa as repeat,ts as revalidate,Bf as richFetch,vo as scanSeeds,Qf as seedStats,Ya as serialize,ho as setActiveActionSignal,Df as setAssetUrlProvider,mf as setCspNonceProvider,Dl as setFormActionResolver,Au as signal,Zr as stringify,Un as stylesToString,At as tagOf,Xf as takeSeed,Zl as templateContent,Lf as unauthorized,gs as unsafeHTML,tu as until,ou as watch};
10
10
  //# sourceMappingURL=webjs-core.js.map