gyosjs 0.5.8 → 0.6.0
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.
- package/README.md +1 -1
- package/dist/core/router/router.d.ts +9 -1
- package/dist/core/router/router.d.ts.map +1 -1
- package/dist/gyos.auto.esm.js +51 -22
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +51 -22
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +51 -22
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +51 -22
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +51 -22
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +51 -22
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +51 -22
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +51 -22
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/dist/public-api.d.ts +1 -1
- package/dist/public-api.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* GyosJS v0.
|
|
2
|
+
* GyosJS v0.6.0
|
|
3
3
|
* (c) 2026
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
var t,e;t=this,e=function(t){"use strict";function e(t){"undefined"!=typeof document?"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t,{once:!0}):queueMicrotask(t):t()}function n(t,e=new WeakMap){if(null===t||"object"!=typeof t)return t;if(e.has(t))return e.get(t);let r;if(r=t instanceof Date?new Date(t.getTime()):t instanceof Map?new Map:t instanceof Set?new Set:Array.isArray(t)?Array(t.length):{},e.set(t,r),t instanceof Map)t.forEach((t,s)=>r.set(n(s,e),n(t,e)));else if(t instanceof Set)t.forEach(t=>r.add(n(t,e)));else for(const s of Object.keys(t))Object.defineProperty(r,s,{value:n(t[s],e),enumerable:!0,writable:!0,configurable:!0});return r}function r(t,e,n=new WeakMap,s=new WeakMap){if(Object.is(t,e))return!0;if("object"!=typeof t||"object"!=typeof e||null==t||null==e)return!1;if(t instanceof Date||e instanceof Date)return t instanceof Date&&e instanceof Date&&Object.is(t.getTime(),e.getTime());if(n.has(t)||s.has(e))return n.get(t)===e&&s.get(e)===t;if(n.set(t,e),s.set(e,t),t instanceof Map||e instanceof Map){if(!(t instanceof Map&&e instanceof Map)||t.size!==e.size)return!1;const i=e.entries();for(const[e,a]of t){const[t,o]=i.next().value;if(!r(e,t,n,s)||!r(a,o,n,s))return!1}return!0}if(t instanceof Set||e instanceof Set){if(!(t instanceof Set&&e instanceof Set)||t.size!==e.size)return!1;const i=e.values();for(const e of t)if(!r(e,i.next().value,n,s))return!1;return!0}if(Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)&&t.length!==e.length)return!1;const i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(e,a)||!r(t[a],e[a],n,s))return!1;return!0}function s(t){let e=t;for(;e;){if(e.__gyos_static__||e.hasAttribute?.("g-static"))return!0;e=e.parentNode}return!1}function i(t){return null!==t.closest("[g-ignore]")}const a=new Set(["__proto__","prototype","constructor"]);function o(t){return t.split(/[.[\]]+/).filter(Boolean).some(t=>a.has(t))}const c=()=>"undefined"!=typeof window&&window.GYOS_DEBUG,l=()=>"undefined"!=typeof window&&window.GYOS_DEBUG_VERBOSE;function u(t,e,n=3){const r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>e(t)?NodeFilter.FILTER_ACCEPT:n}),s=[];for(;r.nextNode();)s.push(r.currentNode);return s}function h(...t){c()}function p(t){let e=t.parentElement;for(;e;){if(e.hasAttribute("*if")||e.hasAttribute("*for")||e.hasAttribute("*switch")||e.hasAttribute("*await"))return!0;e=e.parentElement}return!1}let f=null,d=0;function m(t){f&&(!1!==f.__subscribe&&(t.subscribers.add(f),f.__dependencies?.add(t.subscribers)),f.__versions?.set(t,t.version))}class g extends Set{constructor(t,e){super(),this.activate=t,this.deactivate=e}add(t){const e=0===this.size;return super.add(t),e&&this.activate(),this}delete(t){const e=super.delete(t);return e&&0===this.size&&this.deactivate(),e}}function y(t){return R(()=>{for(const[e,n]of t)if(e.refresh?.(),e.version!==n)return!0;return!1})}function v(t){for(const e of Array.from(t))e.__invalidate?e():C?A.add(e):k(e)}let b=0;const x=new Set;let _=0;const w=new Set;let E=!1;function S(){if(0===w.size||E)return;E=!0;const t=Array.from(w);w.clear(),t.forEach(t=>{if(!x.has(t))try{t()}catch(t){}}),E=!1,w.size>0&&queueMicrotask(S)}function k(t){w.add(t),E||0!==_||queueMicrotask(S)}let A=new Set,C=!1;function I(t,e){const n="string"==typeof e?e:e?.debugLabel,r="object"==typeof e&&e?.equals?e.equals:Object.is,s=++b;let i=t;const a=new Set,o={subscribers:a,version:0};let u=!1;const h=()=>{if(f){const t=a.has(f);m(o),!t&&a.has(f)&&(l(),!u&&"undefined"!=typeof window&&window.GYOS_DEBUG_WARN_SUBSCRIBERS&&c()&&a.size>=200&&(u=!0))}return i},p=t=>{r(i,t)||(i=t,o.version++,d++,l(),g())},g=()=>{l(),v(a)},y=function(t){return 0===arguments.length?h():(p(t),t)};return Object.defineProperties(y,{value:{get:h,set:p,enumerable:!0,configurable:!0},peek:{get:()=>i,enumerable:!0,configurable:!0},update:{value:function(t){p(t(i))},enumerable:!0,configurable:!0},subscribe:{value:function(t){let e=!0;const n=()=>{e&&R(t)};return a.add(n),()=>{e=!1,a.delete(n),w.delete(n),A.delete(n)}},enumerable:!0,configurable:!0},__gyos_signal__:{value:!0,enumerable:!0,configurable:!0},__gyos_debug_id__:{value:s,enumerable:!1},__gyos_debug_label__:{value:n,enumerable:!1},__gyos_equals__:{value:r,enumerable:!1}}),y}function T(t){let e,n=!0,r=!0,s=!1,i=-1;const a=new Set,o=new Map,c=new g(()=>{u.__subscribe=!0;for(const t of o.keys())t.subscribers.add(u),a.add(t.subscribers)},()=>{u.__subscribe=!1,a.forEach(t=>t.delete(u)),a.clear()}),l={subscribers:c,version:0,refresh:()=>h()},u=()=>{n&&!C||(n=!0,v(c))};u.__invalidate=!0,u.__subscribe=!1,u.__dependencies=a,u.__versions=o;const h=()=>{if(!n&&!r&&(c.size>0||i===d))return;if(s)throw Error("[Computed] Circular dependency");s=!0;const h=f;try{if(!r&&!y(o))return void(n=!1);a.forEach(t=>t.delete(u)),a.clear(),o.clear(),f=u;const s=t();!r&&Object.is(e,s)||(e=s,l.version++),r=!1,n=!1}catch(t){n=!1}finally{f=h,s=!1,i=d}},p=()=>(h(),m(l),e),b=function(){return p()};return Object.defineProperties(b,{value:{get:p,enumerable:!0,configurable:!0},peek:{get:()=>(h(),e),enumerable:!0,configurable:!0},subscribe:{value:function(t){let e=!0;return N(()=>{p(),e||R(t),e=!1})},enumerable:!0,configurable:!0},__gyos_computed__:{value:!0}}),b}function N(t){let e;const n=new Set,r=new Map;let s=!0,i=!1;const a=()=>{if(!s)return;if(i&&!y(r))return;if(x.has(a))return void c();if(x.add(a),_++,n.forEach(t=>{t.delete(a)}),c(),n.clear(),r.clear(),e){const t=e;e=void 0;try{R(t)}catch(t){}}const o=f;f=a,a.__dependencies=n,a.__versions=r;try{if(s){const n=t();e="function"==typeof n?n:void 0}}catch(t){}finally{if(i=!0,f=o,!s){n.forEach(t=>t.delete(a)),n.clear(),r.clear(),w.delete(a),A.delete(a);const t=e;if(e=void 0,t)try{R(t)}catch(t){}}_--,x.delete(a),0===_&&w.size>0&&queueMicrotask(S)}};return a(),()=>{if(s&&(s=!1,w.delete(a),A.delete(a),n.forEach(t=>{t.delete(a)}),n.clear(),r.clear(),e)){const t=e;e=void 0;try{R(t)}catch(t){}}}}function P(t){if(C)t();else{C=!0,A.clear();try{t()}catch(t){throw t}finally{C=!1;const t=Array.from(A);A.clear(),t.forEach(t=>{w.delete(t);try{t()}catch(t){}})}}}function L(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_signal__"in t}function M(){return null!==f}function O(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_computed__"in t}function V(t){return L(t)?t.value:t}function R(t){const e=f;f=null;try{return t()}finally{f=e}}class D{constructor(t){this.services=new Map,this.parent=null,this.parent=t||null}set(t,e){this.services.set(t,e)}get(t){if(this.services.has(t))return this.services.get(t);if(this.parent)return this.parent.get(t);throw Error(`[GyosJS] Service "${t}" not found in DI container`)}has(t){return this.services.has(t)||(this.parent?.has(t)??!1)}createChild(){return new D(this)}}const B=new D,F=new WeakMap;function U(t){if(F.has(t))return F.get(t);let e=t.parentElement,n=B;for(;e;){if(F.has(e)){n=F.get(e);break}if(e.hasAttribute("g-provide")){n=U(e);break}e=e.parentElement}const r=n.createChild();F.set(t,r);const s=t.getAttribute("g-provide");if(s)try{const t=JSON.parse(s);if(!t||Array.isArray(t)||"object"!=typeof t)throw new TypeError("g-provide must contain a JSON object");Object.entries(t).forEach(([t,e])=>{r.set(t,e)})}catch(t){}return r}function j(t,e){if(!t)return;const n=document.querySelector(e);if(!n)return;const r=document.createComment("g-portal");t.parentNode?.insertBefore(r,t),t.__portal_placeholder__=r,t.__portal_target__=n,r.__gyos_portal__=t,n.appendChild(t),c()}function W(t){if(!t)return;const e=t.__portal_placeholder__;e&&e.parentNode&&(delete e.__gyos_portal__,e.parentNode.insertBefore(t,e),e.remove(),delete t.__portal_placeholder__,delete t.__portal_target__,c())}const q=new Map;function $(t,e){q.set(t,e)}async function H(t,e,n){const r=e.split("|");for(const e of r){const r=e.lastIndexOf(":");let s,i=e;if(r>0){const t=e.substring(0,r),n=t.indexOf("("),a=t.lastIndexOf(")");(-1===n||a>n&&a===t.length-1)&&(i=t,s=e.substring(r+1).trim())}const a=i.match(/^(\w+)(?:\((.*?)\))?$/);if(!a)continue;const[,o,c]=a,l=c?c.split(",").map(t=>t.trim().replace(/['"]/g,"")):[],u=q.get(o);if(!u)continue;const h=await u(t,...l,n);if(!0!==h)return s||(n?.messages?.[o]?n.messages[o]:"string"==typeof h?h:"Validation failed for "+o)}return null}$("required",t=>!(null==t||""===t||Array.isArray(t)&&0===t.length)||"This field is required"),$("email",t=>!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||"Invalid email address"),$("minLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length>=n||"Minimum length is "+n}),$("maxLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length<=n||"Maximum length is "+n}),$("min",(t,e)=>{if(null==t||""===t)return!0;const n=parseFloat(e);return parseFloat(t)>=n||"Minimum value is "+n}),$("max",(t,e)=>{if(null==t||""===t)return!0;const n=parseFloat(e);return n>=parseFloat(t)||"Maximum value is "+n}),$("number",t=>!t||!isNaN(parseFloat(t))&&isFinite(t)||"Must be a number"),$("integer",t=>null==t||""===t||""!==(t+"").trim()&&Number.isInteger(Number(t))||"Must be an integer"),$("numeric",t=>!t||/^\d+$/.test(t)||"Must contain only digits"),$("alpha",t=>!t||/^[a-zA-Z]+$/.test(t)||"Must contain only letters"),$("alphanumeric",t=>!t||/^[a-zA-Z0-9]+$/.test(t)||"Must contain only letters and numbers"),$("pattern",(t,e)=>!t||RegExp(e).test(t)||"Invalid format"),$("same",(t,e,n)=>!t||!n?.form||t===n.form[e]||"Must match "+e),$("different",(t,e,n)=>!t||!n?.form||t!==n.form[e]||"Must be different from "+e),$("url",t=>{if(!t)return!0;try{return new URL(t),!0}catch{return"Invalid URL"}}),$("phone",t=>!t||/^0\d{9}$/.test(t)||"Invalid phone number (format: 0xxxxxxxxx)"),$("date",t=>{if(!t)return!0;if(!/^\d{4}-\d{2}-\d{2}$/.test(t))return"Invalid date format (use YYYY-MM-DD)";const e=new Date(t);return!isNaN(e.getTime())&&e.toISOString().slice(0,10)===t||"Invalid date"}),$("before",(t,e)=>{if(!t)return!0;const n=new Date(t);return new Date(e)>n||"Must be before "+e}),$("after",(t,e)=>!t||new Date(t)>new Date(e)||"Must be after "+e),$("password",t=>{if(!t)return!0;if(8>t.length)return"Password must be at least 8 characters";const e=/[A-Z]/.test(t),n=/[a-z]/.test(t),r=/[0-9]/.test(t);return e?n?!!r||"Password must contain at least one number":"Password must contain at least one lowercase letter":"Password must contain at least one uppercase letter"}),$("in",(t,...e)=>{if(!t)return!0;const n=e.filter(t=>"string"==typeof t||"number"==typeof t);return n.includes(t)||"Must be one of: "+n.join(", ")}),$("notIn",(t,...e)=>{if(!t)return!0;const n=e.filter(t=>"string"==typeof t||"number"==typeof t);return!n.includes(t)||"Cannot be: "+n.join(", ")}),$("between",(t,e,n)=>{if(null==t||""===t)return!0;const r=parseFloat(t),s=parseFloat(e),i=parseFloat(n);return r>=s&&i>=r||`Must be between ${s} and ${i}`});const G=new WeakSet,z=new WeakSet,Y=new WeakMap,K=new WeakMap,J=Symbol("gyos.validation-field");function X(t){const e=t[J];if(e)return e;const n=Array.from(t.attributes).find(t=>"g-model"===t.name||t.name.startsWith("g-model."));return n?.value||t.getAttribute("name")||t.id}function Q(t,e){if(!(t instanceof HTMLInputElement))return t.value;if("checkbox"===t.type)return t.checked?t.value:"";if("radio"!==t.type)return t.value;const n=X(t),r=Array.from(e.querySelectorAll('input[type="radio"]')).find(e=>!(i(e)||!e.checked||(!t.name||e.name!==t.name)&&X(e)!==n));return r?.value??""}function Z(t){return Y.has(t)||Y.set(t,{errors:I({}),touched:I({}),$invalid:I(!1),$valid:I(!0),$dirty:I(!1),$pristine:I(!0)}),Y.get(t)}function tt(t){const e=t.errors.value,n=t.touched.value,r=Object.values(e).some(t=>null!==t),s=Object.values(n).some(t=>t);t.$invalid.value!==r&&(t.$invalid.value=r,t.$valid.value=!r),t.$dirty.value!==s&&(t.$dirty.value=s,t.$pristine.value=!s)}const et=new Map;function nt(t,e){et.set(t,e)}function rt(t,e,n=[]){const r=et.get(e);if(!r)return c(),t;try{return r(t,...n)}catch(e){return c(),t}}let st;function it(){if(!st)throw Error("[GyosJS] Expression runtime is not configured. Import GyosJS from a public entry point.");return st}function at(){return st?.mode??"standard"}function ot(t,e,n=!0){if(n&&function(t){let e=!1,n="";for(let r=0;r<t.length;r++){const s=t[r],i=r>0?t[r-1]:"";if('"'!==s&&"'"!==s||"\\"===i||(e?s===n&&(e=!1,n=""):(e=!0,n=s)),"|"===s&&!e&&"|"!==(r<t.length-1?t[r+1]:"")&&"|"!==i)return!0}return!1}(t)){const{base:n,pipes:r}=function(t){const e=[];let n="",r=!1,s="",i=0;for(;i<t.length;){const a=t[i],o=i>0?t[i-1]:"";'"'!==a&&"'"!==a||"\\"===o?"|"!==a||r?(n+=a,i++):"|"===t[i+1]?(n+="||",i+=2):(e.push(n.trim()),n="",i++):(r?a===s&&(r=!1,s=""):(r=!0,s=a),n+=a,i++)}e.push(n.trim());const a=e[0],o=e.slice(1).map(t=>{const e=t.indexOf("(");if(-1===e)return{name:t.trim(),args:[]};const n=t.substring(0,e).trim();let r=0,s=-1,i=!1,a="";for(let n=e;n<t.length;n++){const e=t[n],o=n>0?t[n-1]:"";if('"'!==e&&"'"!==e||"\\"===o||(i?e===a&&(i=!1,a=""):(i=!0,a=e)),!i&&("("===e&&r++,")"===e&&(r--,0===r))){s=n;break}}if(-1===s)return{name:t,args:[]};const o=t.substring(e+1,s),c=[];if(o){let t="",e=!1,n="";for(let r=0;r<o.length;r++){const s=o[r];'"'!==s&&"'"!==s||0!==r&&"\\"===o[r-1]?","!==s||e?t+=s:(c.push(t.trim()),t=""):(e?s===n&&(e=!1,n=""):(e=!0,n=s),t+=s)}t.trim()&&c.push(t.trim())}return{name:n,args:c}});return{base:a,pipes:o}}(t);let s=ct(n,e);for(const{name:t,args:n}of r)s=rt(s,t,n.map(t=>ct(t,e)));return s}return ct(t,e)}function ct(t,e){return isNaN(Number(t))?it().evaluate(t,e):Number(t)}nt("currency",(t,e="USD",n="en-US")=>new Intl.NumberFormat(n,{style:"currency",currency:e}).format(t)),nt("date",(t,e="MM/DD/YYYY")=>{const n=t instanceof Date?t:new Date(t),r=t=>t.toString().padStart(2,"0");return e.replace("YYYY",n.getFullYear().toString()).replace("MM",r(n.getMonth()+1)).replace("DD",r(n.getDate())).replace("HH",r(n.getHours())).replace("mm",r(n.getMinutes())).replace("ss",r(n.getSeconds()))}),nt("slug",t=>t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")),nt("truncate",(t,e=100,n="...")=>t.length>e?t.substring(0,e)+n:t),nt("uppercase",t=>t.toUpperCase()),nt("lowercase",t=>t.toLowerCase()),nt("capitalize",t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),nt("fallback",(t,e)=>t||e),nt("json",(t,e=2)=>JSON.stringify(t,null,e)),nt("number",(t,e=0)=>t.toFixed(e)),nt("pluralize",(t,e,n)=>`${t} ${1===t?e:n||e+"s"}`),nt("percent",(t,e=0)=>(100*t).toFixed(e)+"%"),nt("join",(t,e=", ")=>Array.isArray(t)?t.join(e):t),nt("limit",(t,e)=>Array.isArray(t)?t.slice(0,e):t),nt("reverse",t=>"string"==typeof t?t.split("").reverse().join(""):Array.isArray(t)?[...t].reverse():t);const lt=new Map,ut=new Map;function ht(t){return lt.get(t)}function pt(){return lt}function ft(t){let e=lt.get(t);if(e){if(lt.delete(t),e.__gyos_effects__&&(e.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),e.__gyos_effects__=null),e.onUnmount)try{e.onUnmount.call(e)}catch(t){}t.__gyos_scope__=null,lt.delete(t)}}function dt(t){let e=t;for(;e;){if(e.__gyos_scope__)return e.__gyos_scope__;e=e.parentElement}return null}function mt(t){lt.forEach((e,n)=>{t.contains(n)&&t!==n&&ft(n)})}const gt=new WeakMap;function yt(t){return gt.get(t)||0}const vt=[];function bt(){return vt[vt.length-1]}function xt(t,e,n){if(!t.isConnected||yt(t)!==n)return;let r;if(s(t)){let t;try{t=R(e)}catch(t){}if("function"!=typeof t)return;r=()=>{const e=t;t=void 0,"function"==typeof e&&R(e)}}else r=N(e);yt(t)===n&&t.isConnected?(t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(r)):r()}function _t(t,e){const n=bt();n?n.push({target:t,runner:e,generation:yt(t)}):xt(t,e,yt(t))}function wt(t){return{staticClasses:new Set(t.classList),dynamicClasses:new Set}}function Et(t,e,n){const r=function(t){return"string"==typeof t?new Set(t.split(/\s+/).filter(Boolean)):t&&"object"==typeof t?new Set(Object.entries(t).filter(([,t])=>!!t).flatMap(([t])=>t.split(/\s+/).filter(Boolean))):new Set}(e);if(e&&"object"==typeof e)for(const[n,r]of Object.entries(e))if(!r)for(const e of n.split(/\s+/).filter(Boolean))t.classList.remove(e);for(const e of n.dynamicClasses)r.has(e)||n.staticClasses.has(e)||t.classList.remove(e);for(const e of r)t.classList.add(e);n.dynamicClasses=r}function St(t){const e=new Map;for(let n=0;n<t.length;n++){const r=t.item(n);e.set(r,{priority:t.getPropertyPriority(r),value:t.getPropertyValue(r)})}return e}function kt(t){return t.startsWith("--")?t:t.includes("-")?t.toLowerCase():t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function At(t){return{staticStyles:St(t.style),dynamicProperties:new Set}}function Ct(t,e,n){const r=n.staticStyles.get(e);r?t.style.setProperty(e,r.value,r.priority):t.style.removeProperty(e)}function It(t,e,n){const r=function(t){const e=document.createElement("div").style,n=new Set;if("string"==typeof t){e.cssText=t;for(const t of St(e).keys())n.add(t)}else if(t&&"object"==typeof t)for(const[r,s]of Object.entries(t)){const t=kt(r);n.add(t),null!=s&&!1!==s&&(r.startsWith("--")?e.setProperty(r,s+""):e[r]=s)}return{mentioned:n,values:St(e)}}(e);for(const e of n.dynamicProperties)r.mentioned.has(e)||Ct(t,e,n);for(const e of r.mentioned){const n=r.values.get(e);n?t.style.setProperty(e,n.value,n.priority):t.style.removeProperty(e)}n.dynamicProperties=r.mentioned}const Tt=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),Nt={allowfullscreen:"allowFullscreen",formnovalidate:"formNoValidate",ismap:"isMap",itemscope:"itemScope",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly"},Pt=new Set(["action","background","cite","formaction","href","poster","src","xlink:href"]),Lt=new Set(["BASE","EMBED","IFRAME","LINK","OBJECT","SCRIPT"]);function Mt(t,e,n){const r=e.toLowerCase();if(!function(t){const e=t.toLowerCase();return!(!e||e.startsWith("@")||e.startsWith(":")||e.startsWith("*")||/^on/i.test(e)||"srcdoc"===e||"xmlns"===e||e.startsWith("g-")||e.startsWith("gd-")||e.startsWith("gm-"))}(r))return t.removeAttribute(r),void c();if(!function(t,e,n){if(!Pt.has(e))return!("data"===e&&"OBJECT"===t.tagName);if(null==n||!1===n)return!0;if(Lt.has(t.tagName))return!1;const r=(n+"").trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!r.startsWith("javascript:")&&!r.startsWith("vbscript:")&&(!r.startsWith("data:")||"src"===e&&t instanceof HTMLImageElement&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(r))}(t,r,n))return t.removeAttribute(r),void c();if(Tt.has(r)){const e=!!n;return t.toggleAttribute(r,e),void function(t,e,n){const r=Nt[e]||e;if(r in t)try{t[r]!==n&&(t[r]=n)}catch{}}(t,r,e)}if(null==n||!1===n&&!r.startsWith("aria-")&&!r.startsWith("data-"))return void t.removeAttribute(r);const s=n+"";"value"===r&&"value"in t&&t.value!==s&&(t.value=s),t.getAttribute(r)!==s&&t.setAttribute(r,s)}const Ot={classNames:["is-revealed"],rootMargin:"0px",threshold:.1},Vt=new Map,Rt=new WeakMap;function Dt(t){const e=Number(t);return Number.isFinite(e)?Math.min(1,Math.max(0,e)):Ot.threshold}function Bt(t){if(!Array.isArray(t))return Dt(t);const e=Array.from(new Set(t.map(Dt))).sort((t,e)=>t-e);return e.length?e:Ot.threshold}function Ft(t){const e=t.value&&"object"==typeof t.value&&!Array.isArray(t.value)?t.value:{},n=new Set(t.arg||[]);return{classNames:"string"==typeof e.className?e.className.split(/\s+/).filter(Boolean):Ot.classNames,once:"boolean"==typeof e.once?e.once:!n.has("repeat"),rootMargin:"string"==typeof e.rootMargin?e.rootMargin:Ot.rootMargin,target:"parent"===e.target||n.has("parent")?"parent":"self",threshold:Bt(e.threshold??Ot.threshold)}}function Ut(t,e){const{element:n,options:r}=t;if(e){n.setAttribute("data-gyos-revealed","");for(const t of r.classNames)n.classList.add(t)}else{n.removeAttribute("data-gyos-revealed");for(const t of r.classNames)n.classList.remove(t)}}function jt(t){if(Rt.get(t.element)!==t)return;Rt.delete(t.element);const e=t.pool.records.get(t.observedTarget);e&&(e.delete(t),0===e.size&&(t.pool.records.delete(t.observedTarget),t.pool.observer.unobserve(t.observedTarget))),0===t.pool.records.size&&(t.pool.observer.disconnect(),Vt.delete(t.pool.key))}function Wt(t,e){qt(t),document.documentElement.classList.add("gyos-reveal-ready");const n=Ft(e);if(n.once&&t.hasAttribute("data-gyos-revealed")){for(const e of n.classNames)t.classList.add(e);return}if("function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||"function"!=typeof window.IntersectionObserver)return void Ut({element:t,options:n},!0);const r=function(t){const e=function(t){return JSON.stringify([t.rootMargin,t.threshold])}(t),n=Vt.get(e);if(n)return n;let r;try{const n=new Map;r={key:e,observer:new IntersectionObserver(t=>{for(const e of t){const t=Array.from(n.get(e.target)||[]);for(const n of t)e.isIntersecting?(Ut(n,!0),n.options.once&&jt(n)):n.options.once||Ut(n,!1)}},{rootMargin:t.rootMargin,threshold:t.threshold}),records:n}}catch{return null}return Vt.set(e,r),r}(n);if(!r)return void Ut({element:t,options:n},!0);const s="parent"===n.target&&t.parentElement||t,i={element:t,observedTarget:s,options:n,pool:r};let a=r.records.get(s);a||(a=new Set,r.records.set(s,a),r.observer.observe(s)),a.add(i),Rt.set(t,i)}function qt(t){const e=Rt.get(t);e&&(jt(e),e.options.once||Ut(e,!1))}const $t={mounted:Wt,updated(t,e){const n=Ft({...e,value:e.oldValue}),r=Ft(e);for(const e of n.classNames)r.classNames.includes(e)||t.classList.remove(e);Wt(t,e)},unmounted:qt},Ht=new Map;function Gt(t,e){"function"==typeof e?Ht.set(t,{mounted:e,updated:e}):Ht.set(t,e)}function zt(t,e){const n=t.trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!n.startsWith("javascript:")&&!n.startsWith("vbscript:")&&(!n.startsWith("data:")||e&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(n))}Gt("cloak",{mounted(t,e){setTimeout(()=>t.removeAttribute("g-cloak"),e.value?e.value:0)}}),Gt("focus",{mounted(t){t.focus()}}),Gt("tooltip",{mounted(t,e){t.title=e.value},updated(t,e){t.title=e.value}}),Gt("on",{mounted(t,e){const n=e.arg?e.arg[0]:void 0;if(!n)return;const r=dt(t),s=e.value,i="function"==typeof s?s:r?.[s];if("function"!=typeof i)return;if(!r)return;const a=r.$on(n,i.bind(r));t.__gyos_effects__=t.__gyos_effects__||[],t.__gyos_effects__.push(a)}}),Gt("markdown",{updated(t,e){const n=((e.value||"")+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/^\> (.*$)/gim,"<blockquote>$1</blockquote>").replace(/^- (.*$)/gim,"<li>$1</li>").replace(/\*\*(.*)\*\*/gim,"<b>$1</b>").replace(/\*(.*)\*/gim,"<i>$1</i>").replace(/!\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>zt(n,!0)?`<img alt="${e}" src="${n}" />`:e).replace(/\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>zt(n,!1)?`<a href="${n}">${e}</a>`:e).replace(/`(.*)`/gim,"<code>$1</code>").replace(/\n/gim,"<br />");t.innerHTML=n}}),Gt("reveal",$t);const Yt={fade:{enterFrom:"gyos-t-opacity-0",enterTo:"gyos-t-opacity-100",leaveFrom:"gyos-t-opacity-100",leaveTo:"gyos-t-opacity-0",duration:250},"slide-down":{enterFrom:"gyos-t-translate-y--100 gyos-t-opacity-0",enterTo:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-y-100 gyos-t-opacity-0",duration:250},"slide-up":{enterFrom:"gyos-t-translate-y-100 gyos-t-opacity-0",enterTo:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-y--100 gyos-t-opacity-0",duration:250},"slide-left":{enterFrom:"gyos-t-translate-x-100 gyos-t-opacity-0",enterTo:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-x--100 gyos-t-opacity-0",duration:250},"slide-right":{enterFrom:"gyos-t-translate-x--100 gyos-t-opacity-0",enterTo:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-x-100 gyos-t-opacity-0",duration:250},scale:{enterFrom:"gyos-t-scale-50 gyos-t-opacity-0",enterTo:"gyos-t-scale-100 gyos-t-opacity-100",leaveFrom:"gyos-t-scale-100 gyos-t-opacity-100",leaveTo:"gyos-t-scale-50 gyos-t-opacity-0",duration:250},zoom:{enterFrom:"gyos-t-scale-0 gyos-t-opacity-0",enterTo:"gyos-t-scale-100 gyos-t-opacity-100",leaveFrom:"gyos-t-scale-100 gyos-t-opacity-100",leaveTo:"gyos-t-scale-0 gyos-t-opacity-0",duration:250}},Kt=new class{constructor(){this.active=new WeakMap}cancel(t){this.active.get(t)?.cancel()}enter(t,e,n=!1){return t.isConnected&&("leave"!==this.active.get(t)?.phase||n)?this.run(t,e,"enter",!1):Promise.resolve(!1)}leave(t,e,n=!0){return this.run(t,e,"leave",n)}run(t,e,n,r){this.cancel(t);const s="enter"===n?e.enterFrom:e.leaveFrom,i="enter"===n?e.enterTo:e.leaveTo,a="enter"===n?e.enter:e.leave,o="enter"===n?e.onBeforeEnter:e.onBeforeLeave,c="enter"===n?e.onAfterEnter:e.onAfterLeave,l="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches?0:e.duration??250,u=t.style.transition,h=t.style.animation;return new Promise(e=>{let p,f=!1;const d=()=>{s&&this.removeClasses(t,s),i&&this.removeClasses(t,i),t.style.transition=u,t.style.animation=h,t.removeEventListener("transitionend",g),t.removeEventListener("animationend",g),void 0!==p&&clearTimeout(p),this.active.delete(t)},m=s=>{f||(f=!0,d(),s||(c?.(t),"leave"===n&&r&&t.remove()),e(!s))},g=e=>{e.target===t&&m(!1)};this.active.set(t,{phase:n,cancel:()=>m(!0)});try{o?.(t),s&&this.applyClasses(t,s),t.offsetHeight,t.style.transition=`all ${l}ms ${"enter"===n?"ease-out":"ease-in"}`,s&&this.removeClasses(t,s),i&&this.applyClasses(t,i),a&&(t.style.animation=a),0===l?queueMicrotask(()=>m(!1)):(t.addEventListener("transitionend",g),t.addEventListener("animationend",g),p=setTimeout(()=>m(!1),l+50))}catch(t){m(!1)}})}applyClasses(t,e){e.split(" ").forEach(e=>{e&&t.classList.add(e)})}removeClasses(t,e){e.split(" ").forEach(e=>{e&&t.classList.remove(e)})}getConfig(t){return"object"==typeof t?t:Yt[t]||Yt.fade}getAvailableTransitions(){return Object.keys(Yt)}};function Jt(t,e){const n=Array.from(t.attributes).find(t=>t.name.startsWith("g-transition"));if(!n)return null;const r=n.name.split(".").slice(1).find(t=>/^\d+$/.test(t)),s=function(t,e){const n=t.trim(),r=/^\{([\s\S]+)\}$/.exec(n);if(r){const t=ot(r[1].trim(),e);return null==t?"":t+""}return n.length>=2&&(n.startsWith("'")&&n.endsWith("'")||n.startsWith('"')&&n.endsWith('"'))?n.slice(1,-1):n}(n.value,e);return{name:s,duration:r?parseInt(r):void 0}}function Xt(t){if(i(t))return[];const e=[];Array.from(t.attributes).some(t=>t.name.startsWith("g-transition"))&&e.push(t);const n=u(t,t=>!i(t),NodeFilter.FILTER_REJECT).filter(t=>Array.from(t.attributes).some(t=>t.name.startsWith("g-transition")));return e.push(...n),e}function Qt(t,e,n=!1){const r=Jt(t,e);if(!r)return Promise.resolve(!0);c();const s={...Kt.getConfig(r.name)};return r.duration&&(s.duration=r.duration),Kt.enter(t,s,n)}function Zt(t,e,n=!0){const r=Jt(t,e);if(!r)return Promise.resolve(!0);c();const s={...Kt.getConfig(r.name)};return r.duration&&(s.duration=r.duration),Kt.leave(t,s,n)}function te(t=document.body,e=!1){t&&(ee(t),e&&t.remove())}function ee(t,e=!1){R(()=>function(t,e=!1){var n;n=t,gt.set(n,yt(n)+1);const r=t.__gyos_portal__;r&&(delete t.__gyos_portal__,ee(r,e));const s=Array.from(t.childNodes),i=t.__gyos_effects__;t.__gyos_effects__=null,(t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&ft(t),i&&i.forEach(t=>{try{t()}catch(t){}}),s.forEach(t=>ee(t)),W(t),e&&t.parentNode?.removeChild(t)}(t,e))}const ne={enter:"enter",esc:"escape",escape:"escape",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",delete:"delete",tab:"tab"},re=new Set(["prevent","stop","once","capture","passive","debounce","outside","global"]);function se(t,e){e.includes("prevent")&&t.preventDefault(),e.includes("stop")&&t.stopPropagation()}function ie(t,e,n){try{it().execute(t,e,n)}catch(t){}}const ae=Symbol("gyos.parent-scope");function oe(t,e){Object.defineProperty(t,ae,{value:e,configurable:!1,enumerable:!1,writable:!1})}function ce(t){return t?.[ae]}function le(t){const e=[],n=/[^.[\]]+|\[(\d+)\]/g;let r;for(;r=n.exec(t);)void 0!==r[1]?e.push(Number(r[1])):e.push(r[0]);return e}function ue(t,e,n){if(o(e))return;const r=le(e);if(0===r.length)return;let s=t;L(s)&&(s=s.value);for(let t=0;t<r.length-1;t++){let e=s[r[t]];L(e)&&(e=e.value),s=e}const i=r[r.length-1],a=s[i];L(a)?a.value=n:s[i]=n}const he=new WeakMap,pe=new WeakSet,fe=new WeakMap,de=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=Symbol.for("gyos_scope_version");function ve(t){const e=Ce(t),n=new Set,r=t=>{if(n.has(t))return;n.add(t),t.update(t=>t+1);const e=ge.get(t);e&&e.forEach(t=>r(t))};r(e)}function be(t){return t instanceof Date||t instanceof RegExp||t instanceof Map||t instanceof Set||t instanceof WeakMap||t instanceof WeakSet||t instanceof Promise}function xe(t){return"string"==typeof t&&(t.startsWith("__gyos_")||t.startsWith("$")||["onMount","onUpdate","onUnmount"].includes(t))}function _e(t,e,n){let r=fe.get(t);r||(r=new Map,fe.set(t,r));let s=r.get(e);return s||(s=I(n,c()?`(${e.toString()})`:void 0),r.set(e,s)),s}const we=Symbol.for("gyos.store");function Ee(t){return!(!t||!t[we])}const Se=Symbol.for("gyos.raw");function ke(t){return!(!t||!t[Se])}const Ae=Symbol.for("gyos.shallow");function Ce(t){let e=de.get(t);return e||(e=I(0),de.set(t,e)),e}function Ie(t){if(!t||"object"!=typeof t||be(t))return t;if(pe.has(t))return t;if(ke(t))return t;if(Ee(t))return t;if(he.has(t))return he.get(t);let e;e=new Proxy(t,{get(t,n,r){const s=Reflect.get(t,n,r);if(!Object.prototype.hasOwnProperty.call(t,n)){if("symbol"!=typeof n&&!xe(n)&&!(n in t)){const e=fe.get(t)?.get(n);if(M())return(e||_e(t,n,void 0)).value;if(e)return e.peek}return s}if("symbol"==typeof n||xe(n))return s;const i=Object.getOwnPropertyDescriptor(t,n);if(i&&!i.configurable&&("value"in i&&!i.writable||!("value"in i)&&void 0===i.get))return s;if(Ee(s))return M()&&_e(t,n,s).value,s;if(i&&i.get)return s;if(L(s)||O(s))return M()&&_e(t,n,s).value,s;if("function"==typeof s)return s.bind(e);const a=M(),o=fe.get(t)?.get(n);if(s&&"object"==typeof s&&ke(s))return a&&(o||_e(t,n,s)).value,s;if(s&&"object"==typeof s&&!be(s)){const e=de.get(t);return de.has(s)||Ce(s),e&&function(t,e){const n=Ce(t);let r=me.get(t);r||(r=new Set,me.set(t,r)),r.add(e);let s=ge.get(n);s||(s=new Set,ge.set(n,s)),s.add(e)}(s,e),a&&(o||_e(t,n,s)).value,(c=t)&&c[Ae]?s:Ie(s)}var c;return a?(o||_e(t,n,s)).value:o?o.peek:s},set(t,e,n,r){if("symbol"==typeof e||xe(e))return Reflect.set(t,e,n,r);const s=Object.getOwnPropertyDescriptor(t,e);if(s&&s.set){const s=Reflect.set(t,e,n,r);return s&&ve(t),s}const i=t[e];if(!Reflect.set(t,e,n,r))return!1;const a=_e(t,e,n);return Object.is(i,n)||(a.value=n,ve(t)),!0},ownKeys(t){Ce(t).value;const e=Reflect.isExtensible(t);return Reflect.ownKeys(t).filter(n=>!xe(n)||!e||!Reflect.getOwnPropertyDescriptor(t,n).configurable)},getOwnPropertyDescriptor(t,e){const n=Reflect.getOwnPropertyDescriptor(t,e);if(!(xe(e)&&n?.configurable&&Reflect.isExtensible(t)))return n},deleteProperty(t,e){if("symbol"==typeof e||xe(e))return Reflect.deleteProperty(t,e);const n=Object.prototype.hasOwnProperty.call(t,e),r=Reflect.deleteProperty(t,e);return r&&n&&(_e(t,e,void 0).value=void 0,ve(t)),r},defineProperty(t,e,n){if("symbol"==typeof e||xe(e))return Reflect.defineProperty(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),s=r&&"value"in r?r.value:void 0,i="value"in n?n.value:s,a=Array.isArray(t)?t.length:void 0,o=Reflect.defineProperty(t,e,n);return function(t,e){if(void 0===e)return;const n=t;if(n.length===e)return;const r=fe.get(t);r?.get("length")?.update(()=>n.length),n.length<e&&r?.forEach((r,s)=>{"string"==typeof s&&/^(0|[1-9]\d*)$/.test(s)&&Number(s)>=n.length&&e>Number(s)&&r.update(()=>Reflect.get(t,s))})}(t,a),!!o&&("value"in n&&(_e(t,e,n.value).value=n.value,r&&Object.is(s,i)||ve(t)),!0)}});const n=de.get(t);return n&&de.set(e,n),pe.add(e),he.set(t,e),e}function Te(t){const e=Ce(t),n=Ie(t);return Object.prototype.hasOwnProperty.call(n,ye)||Object.defineProperty(n,ye,{value:e,enumerable:!1,configurable:!1,writable:!1}),n}let Ne=null;const Pe=new WeakMap,Le=Symbol("gyos.for-scope-state");function Me(t){return Pe.has(t)||Pe.set(t,t.cloneNode(!0)),Pe.get(t).cloneNode(!0)}function Oe(t,e){t.__gyos_scope__=e}function Ve(t,e){oe(t,e);for(const n in e)n in t||Object.defineProperty(t,n,{get:()=>e[n],set:t=>{e[n]=t},enumerable:!0,configurable:!0});return t}function Re(t,e,n,r){const s={};oe(s,t);const i=I({list:n,index:r});Object.defineProperty(s,Le,{value:i});const[a,o]=e.split(",").map(t=>t.trim());o?Object.defineProperty(s,o,{get:()=>i.value.index,enumerable:!1,configurable:!1}):Object.defineProperty(s,"$index",{get:()=>i.value.index,enumerable:!0,configurable:!1}),Object.defineProperty(s,a,{get:()=>{const t=i.value;return t.list[t.index]},set:t=>{const e=i.peek;e.list[e.index]=t},enumerable:!0,configurable:!1});for(const e in t)e in s||Object.defineProperty(s,e,{get:()=>t[e],set:n=>{t[e]=n},enumerable:!0,configurable:!0});return s}const De=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","TITLE","XMP","IFRAME","NOEMBED","NOFRAMES"]);function Be(t,e,n){let r=t.parentElement;for(;r;){if(i(r)||De.has(r.tagName))return!0;if(r.hasAttribute("*if")||r.hasAttribute("*for"))return!0;if(r===e)break;r=r.parentElement}if(void 0!==n&&t.parentElement){const e=dt(t.parentElement);if(e&&e!==n)return!0}return!1}let Fe=null;Ne=je;const Ue=(t,e)=>{const n=dt(t);return!(!n||n===e)};function je(t,e,n=!1){if(i(t))return;const r=yt(t);if(n&&t.hasAttribute("g-scope")&&Fe)return void Fe(t);vt.push([]);const a=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];if(n&&Fe&&t.querySelectorAll("[g-scope]").forEach(t=>{i(t)||p(t)||Fe(t)}),function(t,e){const n=[],r=t[0];t.forEach(t=>{if(function(t){let e=t,n=t.parentElement;for(;n&&n!==document.body;){if(n.hasAttribute("*await")&&(e.hasAttribute("*pending")||e.hasAttribute("*then")||e.hasAttribute("*catch")))return!0;e=n,n=n.parentElement}return!1}(t))return;const e=t.hasAttribute("*if"),s=t.hasAttribute("*for"),i=t.hasAttribute("*switch"),a=t.hasAttribute("*await");if(e||s||i||a){let e=0,o=t;for(;o&&o!==r;)e++,o=o.parentNode;let c="if";s?c="for":i?c="switch":a&&(c="await"),n.push({element:t,type:c,depth:e})}}),n.sort((t,e)=>t.depth-e.depth),n.forEach(({element:t,type:n})=>{r.contains(t)&&!Ue(t,e)&&("for"===n?function(t,e){const n=t.getAttribute("*for"),r=t.cloneNode(!0);r.removeAttribute("*for");const i=r.getAttribute("g-key"),a=!!i;a&&r.removeAttribute("g-key");const o=document.createComment("*for");o.__gyos_static__=s(t),t.parentNode?.replaceChild(o,t);const c=document.createComment("/*for");o.parentNode?.insertBefore(c,o.nextSibling);let l,u=new Map,h=null;_t(o,()=>{const t=n.match(/(.+?)\s+in\s+(.+)/);if(!t)return;const s=t[1].trim(),p=ot(t[2].trim(),e,!1);if(!Array.isArray(p))return;const f=(d=p,de.get(d));var d;const m=f?f.value:void 0;(a||p!==h||m!==l)&&(h=p,l=m,R(()=>{a?function(t,e,n,r,s,i,a){const o=new Map,c=[];n.forEach((t,e)=>{const a=Re(i,r,n,e),l=ot(s,a,!1);o.set(l,{index:e}),c.push(l)});const l=[];a.forEach((t,e)=>{o.has(e)||l.push({key:e,data:t})}),l.forEach(({key:t,data:e})=>{a.delete(t);const n=Xt(e.element);if(mt(e.element),n.length>0){e.element.style.pointerEvents="none";const t=n.map(t=>Zt(t,e.scope));Promise.all(t).then(()=>{te(e.element,!0)})}else te(e.element,!0)});let u=t;const h=[];c.forEach(s=>{const c=o.get(s),{index:l}=c;let p;if(a.has(s)){const t=a.get(s),e=t.scope[Le],r=e.peek;r.list===n&&r.index===l||(e.value={list:n,index:l}),p=t.element}else{const o=Me(e),c=Re(i,r,n,l);Oe(o,c);const h=Xt(o);h.length>0&&h.forEach(t=>{const e=Jt(t,c);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),p=o,t.parentNode?.insertBefore(o,u.nextSibling),Ne&&Ne(o,c,!0),a.set(s,{element:o,scope:c}),h.length>0&&requestAnimationFrame(()=>{h.forEach(t=>Qt(t,c))})}h.push(p),u=p}),function(t,e){const n=t.parentNode;if(!n||0===e.length)return;const r=new Set(e),s=new Map;let i=t.nextSibling;for(;i&&r.has(i);)s.set(i,s.size),i=i.nextSibling;const a=t.ownerDocument.activeElement,o=!!a&&e.some(t=>t===a||t.contains(a)),c=o&&(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)?{start:a.selectionStart,end:a.selectionEnd,direction:a.selectionDirection}:null;if(s.size!==e.length){let r=t;for(const t of e)t!==r.nextSibling&&n.insertBefore(t,r.nextSibling),r=t}else{const t=e.map(t=>s.get(t));let r=!0;for(let e=1;e<t.length;e++)if(t[e]<t[e-1]){r=!1;break}if(r)return;const a=[],o=Array(t.length).fill(-1);for(let e=0;e<t.length;e++){let n=0,r=a.length;for(;r>n;){const s=n+r>>>1;t[a[s]]<t[e]?n=s+1:r=s}n>0&&(o[e]=a[n-1]),a[n]=e}const c=new Set;for(let t=a[a.length-1];t>=0;t=o[t])c.add(t);for(let t=e.length-1;t>=0;t--){const r=e[t];c.has(t)||r.nextSibling===i||n.insertBefore(r,i),i=r}}const l=t.ownerDocument;o&&a.isConnected&&l.activeElement===l.body&&(a.focus({preventScroll:!0}),null!=c?.start&&null!=c.end&&a.setSelectionRange(c.start,c.end,c.direction||void 0))}(t,h)}(o,r,p,s,i,e,u):function(t,e,n,r,s,i){let a=t.nextSibling;for(;a&&a!==e;){const t=a;a=a.nextSibling,t instanceof Element?(mt(t),te(t,!0)):ee(t,!0)}let o=t;r.forEach((e,a)=>{const c=Me(n),l=Re(i,s,r,a);Oe(c,l);const u=Xt(c);u.length>0&&u.forEach(t=>{const e=Jt(t,l);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),t.parentNode?.insertBefore(c,o.nextSibling),o=c,Ne&&Ne(c,l,!0),u.length>0&&requestAnimationFrame(()=>{u.forEach(t=>Qt(t,l))})})}(o,c,r,p,s,e)}))})}(t,e):"if"===n?function(t,e){const n=[];n.push({element:t,condition:t.getAttribute("*if")});let r=t.nextElementSibling;for(;r&&!i(r);){if(!r.hasAttribute("*elseif")){if(r.hasAttribute("*else")){n.push({element:r,condition:null}),r.remove();break}break}{n.push({element:r,condition:r.getAttribute("*elseif")});const t=r.nextElementSibling;r.remove(),r=t}}const a=n.map(({element:t,condition:e})=>{const n=t.cloneNode(!0);return n.removeAttribute("*if"),n.removeAttribute("*elseif"),n.removeAttribute("*else"),{template:n,condition:e}}),o=document.createComment("*if-chain");o.__gyos_static__=s(t),t.parentNode?.replaceChild(o,t);let c=null,l=-1;_t(o,()=>{let t=-1;for(let n=0;n<a.length;n++){const{condition:r}=a[n];if(null===r){t=n;break}if(ot(r,e,!1)){t=n;break}}if(t!==l){if(c){const t=c;mt(t),c=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}if(-1!==t){const{template:n}=a[t];c=Me(n),l=t,c.__gyos_static__=s(o),Oe(c,e);const r=Xt(c);r.length>0&&r.forEach(t=>{const n=Jt(t,e);if(n){const e=Kt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),o.parentNode?.insertBefore(c,o.nextSibling),Ne&&Ne(c,e,!0),r.length>0&&requestAnimationFrame(()=>{r.forEach(t=>Qt(t,e))})}else l=-1}})}(t,e):"switch"===n?function(t,e){const n=t.getAttribute("*switch"),r=[];Array.from(t.children).forEach(t=>{i(t)||(t.hasAttribute("*case")?r.push({element:t,value:t.getAttribute("*case")}):t.hasAttribute("*default")&&r.push({element:t,value:null}))});const s=r.map(({element:t,value:e})=>{const n=t.cloneNode(!0);return n.removeAttribute("*case"),n.removeAttribute("*default"),t.remove(),{template:n,value:e}});t.removeAttribute("*switch");const a=document.createComment("*switch-content");t.appendChild(a);let o=null,c=-1;_t(t,()=>{const t=ot(n,e,!1);let r=-1,i=-1;for(let n=0;n<s.length;n++){const{value:a}=s[n];if(null!==a){if(t===ot(a,e,!1)){r=n;break}}else-1===i&&(i=n)}if(-1===r&&(r=i),r!==c){if(o){const t=o;mt(t),o=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}if(-1!==r){const{template:t}=s[r];o=Me(t),c=r,Oe(o,e);const n=Xt(o);n.length>0&&n.forEach(t=>{const n=Jt(t,e);if(n){const e=Kt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ne&&Ne(o,e,!0),n.length>0&&requestAnimationFrame(()=>{n.forEach(t=>Qt(t,e))})}else c=-1}})}(t,e):"await"===n&&function(t,e){const n=t.getAttribute("*await");t.removeAttribute("*await");const r=Array.from(t.children);let s=null,a=null,o=null;r.forEach(t=>{if(!i(t))if(t.hasAttribute("*pending"))s=t.cloneNode(!0),s.removeAttribute("*pending"),t.remove();else if(t.hasAttribute("*then")){const e=t.getAttribute("*then")||null;a={template:t.cloneNode(!0),varName:e},a.template.removeAttribute("*then"),t.remove()}else if(t.hasAttribute("*catch")){const e=t.getAttribute("*catch")||null;o={template:t.cloneNode(!0),varName:e},o.template.removeAttribute("*catch"),t.remove()}});const c=document.createComment("*await");t.appendChild(c);let l=null,u="pending",h=0;const p=(t,n)=>{if(u=t,l){const t=l;l=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}let r=null,i=e;if("pending"===t&&s?r=s:"fulfilled"===t&&a?(r=a.template,a.varName&&(i=Ve({[a.varName]:n},e))):"rejected"===t&&o&&(r=o.template,o.varName&&(i=Ve({[o.varName]:n},e))),r){l=Me(r),Oe(l,i);const t=Xt(l);t.length>0&&t.forEach(t=>{const e=Jt(t,i);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),c.parentNode?.insertBefore(l,c.nextSibling),Ne&&Ne(l,i,!0),t.length>0&&requestAnimationFrame(()=>{t.forEach(t=>Qt(t,i))})}};_t(t,()=>{const t=ot(n,e,!1),r=++h;if(t instanceof Promise)return p("pending"),t.then(t=>{r===h&&"pending"===u&&p("fulfilled",t)}).catch(t=>{r===h&&"pending"===u&&p("rejected",t)}),()=>{h++};p("fulfilled",t)})}(t,e))})}(a,e),a.forEach(n=>{if(yt(t)!==r)return;if(!document.body.contains(n))return;if(0===n.attributes.length)return;if(Ue(n,e))return;const a=Array.from(n.attributes),l=s(n);!l&&(n.hasAttribute("g-form")||n.hasAttribute("g-validate")||n.hasAttribute("g-errors"))&&function(t,e){t instanceof HTMLFormElement&&t.hasAttribute("g-form")&&function(t,e){const n=t.getAttribute("g-form");if(!n||o(n))return;t.removeAttribute("g-form");const r=Z(t);!function(t){G.add(t)}(t);const s=async()=>{const e=K.get(t)||[],n={...r.touched.value};return Object.keys(n).forEach(t=>{n[t]=!0}),r.touched.value={...n},await Promise.all(e.map(t=>t())),tt(r),!r.$invalid.value};r.validateAll=s;const i={errors:r.errors,touched:r.touched,$invalid:r.$invalid,$valid:r.$valid,$dirty:r.$dirty,$pristine:r.$pristine,validateAll:s};n in e?Object.assign(e[n],i):e[n]=i;let a,c=!1,l=!1,u=!1,h=!0;const p=async n=>{if(c)c=!1;else if(n.preventDefault(),n.stopImmediatePropagation(),!l&&!u){l=!0;try{const r=await s();if(!h||!r)return;const i=t.getAttribute("g-submit");if(!i){const e="undefined"!=typeof SubmitEvent&&n instanceof SubmitEvent&&(n.submitter instanceof HTMLButtonElement||n.submitter instanceof HTMLInputElement)?n.submitter:void 0;return u=!0,void(a=setTimeout(()=>{if(u=!1,a=void 0,h){!function(t){z.add(t)}(t),c=!0;try{t.requestSubmit(e)}finally{c&&(c=!1),function(t){z.delete(t)}(t)}}},0))}const o=e[i];"function"==typeof o&&o.call(e)}finally{l=!1}}};t.addEventListener("submit",p,!0),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{h=!1,void 0!==a&&clearTimeout(a),u=!1,t.removeEventListener("submit",p,!0),function(t){G.delete(t),z.delete(t)}(t),Y.delete(t),K.delete(t)})}(t,e),[t,...t.querySelectorAll("[g-validate]")].forEach(t=>{t.hasAttribute("g-validate")&&(i(t)||t instanceof HTMLElement&&function(t){if(!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))return;const e=t.getAttribute("g-validate");if(!e)return;t.removeAttribute("g-validate");const n=X(t);if(!n)return;t[J]=n;const r=t.closest("form");if(!r)return;const s=Z(r);s.errors.value[n]=null,s.touched.value[n]=!1;let a,o=!0,c=0,l=Promise.resolve();const u=()=>(clearTimeout(a),a=void 0,l=(async()=>{if(!o)return;const a=++c,h=Q(t,r),p={};let f;r.querySelectorAll("input, textarea, select").forEach(t=>{if(!i(t)&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=X(t);e&&(p[e]=Q(t,r))}});try{f=await H(h,e,{form:p,field:n})}catch(t){f="Validation failed. Please try again."}if(!o)return;if(a!==c)return void await l;if(h!==Q(t,r))return void await u();const d=s.errors.value;d[n]!==f&&(d[n]=f,s.errors.value={...d},tt(s))})(),l);K.has(r)||K.set(r,[]),K.get(r).push(u);const h=()=>{const t=s.touched.value;t[n]||(t[n]=!0,s.touched.value={...t},tt(s)),u()};t.addEventListener("blur",h);const p=()=>{clearTimeout(a),a=setTimeout(()=>{u()},300)};t.addEventListener("input",p),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{o=!1,c++,delete t[J];const e=K.get(r),i=e?.indexOf(u)??-1;if(-1!==i&&e.splice(i,1),!Array.from(r.querySelectorAll("input, textarea, select")).some(t=>t[J]===n)){const t={...s.errors.peek};delete t[n];const e={...s.touched.peek};delete e[n],s.errors.value=t,s.touched.value=e,tt(s)}t.removeEventListener("blur",h),t.removeEventListener("input",p),clearTimeout(a)})}(t))}),[t,...t.querySelectorAll("[g-errors]")].forEach(t=>{t.hasAttribute("g-errors")&&(i(t)||t instanceof HTMLElement&&function(t){const e=t.getAttribute("g-errors");t.removeAttribute("g-errors");const n=t.closest("form");if(!n)return;const r=Z(n);if(""===e||null===e){const e=N(()=>{const e=r.errors.value,n=Object.entries(e).filter(([t,e])=>null!==e);t.replaceChildren(...n.map(([t,e])=>{const n=document.createElement("div"),r=document.createElement("strong");return r.textContent=t+":",n.append(r,document.createTextNode(" "+e)),n})),t.style.display=n.length?"":"none"});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(e)}else{const n=N(()=>{const n=r.errors.value[e];n?(t.textContent=n,t.style.display=""):(t.textContent="",t.style.display="none")});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}}(t))})}(n,e),a.some(t=>t.name.startsWith("g-")&&!t.name.startsWith("g-portal"))&&function(t,e){if(!i(t)){if(t.hasAttribute("g-show")){const n=t.getAttribute("g-show"),r="none"===t.style.display?"":t.style.display;let s=!1,i=0;_t(t,()=>{const a=!!ot(n,e),o=++i;return Kt.cancel(t),s?Jt(t,e)?(a?(t.style.display=r,Qt(t,e,!0)):"none"!==t.style.display&&Zt(t,e,!1).then(e=>{!1!==e&&o===i&&(t.style.display="none")}),()=>Kt.cancel(t)):(t.style.display=a?r:"none",()=>Kt.cancel(t)):(s=!0,t.style.display=a?r:"none",()=>Kt.cancel(t))})}if(t.hasAttribute("g-html")){const n=t.getAttribute("g-html");_t(t,()=>{const r=ot(n,e);Array.from(t.childNodes).forEach(t=>ee(t)),t.innerHTML=r})}if(t.hasAttribute("g-text")){const n=t.getAttribute("g-text");_t(t,()=>{const r=ot(n,e);Array.from(t.childNodes).forEach(t=>ee(t)),t.textContent=r})}s(t)||Array.from(t.attributes).forEach(n=>{if(n.name.startsWith("g-")&&!["g-scope","g-show","g-html","g-text","g-model","g-static","g-portal","g-transition","g-hydrate","g-provide"].includes(n.name)){const s=n.name.slice(2).replace(/:.+$/,""),i=(r=s,Ht.get(r)),a=n.name.split(":");let o;if(a.length>1&&(o=a.slice(1)),i){const r=()=>{if(""!==n.value.trim())return"on"===s&&"function"==typeof e[n.value]?e[n.value]:ot(n.value,e,!1)},a=r();let c=i.mounted?a:void 0,l=!i.mounted;if(i.mounted&&i.mounted(t,{value:a,arg:o,oldValue:void 0},e),i.unmounted){let e=!0;const n=()=>{e&&(e=!1,i.unmounted(t))};t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}i.updated&&_t(t,()=>{const n=r();if(!l)return l=!0,void(c=n);Object.is(c,n)||(i.updated(t,{value:n,oldValue:c,arg:o},e),c=n)})}}var r})}}(n,e),a.some(t=>t.name.startsWith(":"))&&function(t,e){if(!i(t)&&!t.hasAttribute("*if")&&!t.hasAttribute("*for"))for(const n of function(t){return Array.from(t.attributes).filter(t=>t.name.startsWith(":"))}(t)){const r=n.name.slice(1),s=n.value,i="class"===r?wt(t):void 0,a="style"===r?At(t):void 0;_t(t,()=>{const n=dt(t)||e,o=ot(s,n);"class"===r?Et(t,o,i):"style"===r?It(t,o,a):Mt(t,r,o)})}}(n,e),a.some(t=>t.name.match(/^g-model($|[.])/))&&!l&&function(t,e,n){if(i(t))return;if(function(t,e){let n=t.parentElement;for(;n&&n!==e;){if(n.hasAttribute("g-static")||n.__gyos_static__)return!0;n=n.parentElement}return!1}(t,n))return;const r=Array.from(t.attributes).find(t=>t.name.startsWith("g-model"));if(!r)return;const s=t,a=r.name.split(".").slice(1),o=r.value,l=a.includes("debounce");let u=300;if(l){const t=a.find(t=>/^\d+$/.test(t));t&&(u=parseInt(t))}c();const h=dt(t)||e,p=le(o);"string"==typeof p[0]&&function(t,e){if(!ce(t)||e in t)return;let n=t,r=ce(n);for(;r;)n=r,r=ce(n);e in n||(n[e]=void 0),Object.defineProperty(t,e,{get:()=>n[e],set:t=>{n[e]=t},configurable:!0,enumerable:!0})}(h,p[0]);const f=ot(o,h,!1);let d;"checkbox"===s.type?s.checked=!!V(f):"radio"===s.type?s.checked=V(f)+""===s.value:s.value=V(f);const m=t=>{const e=t.target;var n;("radio"!==e.type||e.checked)&&(n="checkbox"===e.type?e.checked:e.value,a.includes("number")&&(n=Number(n)),a.includes("trim")&&"string"==typeof n&&(n=n.trim()),l?(clearTimeout(d),d=setTimeout(()=>{ue(h,o,n)},u)):ue(h,o,n))};s.addEventListener("input",m),_t(t,()=>{const t=ot(o,h,!1);"checkbox"===s.type?s.checked=!!V(t):"radio"===s.type?s.checked=V(t)+""===s.value:s.value!==t&&(s.value=V(t))}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{s.removeEventListener("input",m),d&&(clearTimeout(d),d=void 0)}),t.removeAttribute(r.name)}(n,e,t)}),yt(t)===r&&(function(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),r=[];let s;for(;s=n.nextNode();){if(Be(s,t,e))continue;const n=s.textContent||"";n.includes("{")&&n.includes("}")&&r.push({node:s,template:n})}r.forEach(({node:t,template:n})=>{const r=t.parentElement;r&&_t(r,()=>{const r=dt(t.parentElement)||e;t.textContent=function(t,e){return t.replace(/\{([^}]+)\}/g,(t,n)=>{try{const t=ot(n.trim(),e);return null==t?"":t+""}catch(e){return t}})}(n,r)})})}(t,e),function(t,e){const n=u(t,t=>!i(t)&&!t.hasAttribute("g-static"),NodeFilter.FILTER_REJECT);n.unshift(t),n.forEach(t=>{if(s(t))return;const n=dt(t);n&&n!==e||Array.from(t.attributes).forEach(n=>{if(n.name.startsWith("@")){const r=n.name.substring(1).split("."),s=r[0],i=r.slice(1),a=n.value;if(i.includes("outside"))return void function(t,e,n,r,s){let i,a=!0;const o=s=>{const i=s.target;if(document.body.contains(t)){if(!(i instanceof Element&&i.closest("[g-ignore-outside-click]")||t===i||t.contains(i))){se(s,n);const i=dt(t)||r;n.includes("once")&&c(),ie(e,i,s)}}else c()},c=()=>{a&&(a=!1,void 0!==i&&(clearTimeout(i),i=void 0),document.removeEventListener("click",o,!0),l.disconnect())},l=new MutationObserver(e=>{for(const n of e)n.removedNodes.forEach(e=>{(e===t||e instanceof Element&&e.contains(t))&&!document.body.contains(t)&&c()})});l.observe(document.body,{childList:!0,subtree:!0}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(c),i=window.setTimeout(()=>{a&&document.addEventListener("click",o,!0)},0),t.removeAttribute(s)}(t,a,i,e,n.name);const o=function(t){const e=t.findIndex(t=>"debounce"===t||/^\d+$/.test(t));if(-1===e)return 0;if("debounce"===t[e]){const n=t[e+1];return n&&/^\d+$/.test(n)?parseInt(n):300}return 0}(i),c="keyup"===s||"keydown"===s||"keypress"===s,l={timeoutId:0};let u=()=>{};const h=n=>{if(c&&!function(t,e){let n=!1;for(const t of e)if(!re.has(t)&&!/^\d+$/.test(t)){n=!0;break}if(!n)return!0;const r=t.key.toLowerCase();for(const t of e){if(re.has(t)||/^\d+$/.test(t))continue;const e=ne[t];if(e){if(r===e)return!0}else if(r===t.toLowerCase())return!0}return!("backspace"!==r||!e.includes("delete"))}(n,i))return;se(n,i);const r=()=>{i.includes("once")&&u(),P(()=>{const r=dt(t)||e;ie(a,r,n)})};o>0?(clearTimeout(l.timeoutId),l.timeoutId=window.setTimeout(r,o)):r()},p={};let f=t;i.includes("capture")&&(p.capture=!0),i.includes("passive")&&(p.passive=!0),i.includes("global")&&(f=document.documentElement),f.addEventListener(s,h,p),u=()=>{f.removeEventListener(s,h,!!p.capture),l.timeoutId&&clearTimeout(l.timeoutId)},t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(u),t.removeAttribute(n.name)}})})}(t,e)),function(){const t=bt();if(t){for(let e=0;e<t.length;e++){const{target:n,runner:r,generation:s}=t[e];xt(n,r,s)}t.length=0,vt.pop()}}(),yt(t)===r&&!s(t)&&t.hasAttribute("g-portal")){const e=t.getAttribute("g-portal");j(t,e)}}const We=new class{constructor(){this.observers=new Map,this.pending=new WeakSet}setup(t,e,n){if(this.pending.has(t))return;this.pending.add(t);const r=()=>{this.pending.delete(t),n()};switch(e){case"idle":this.hydrateOnIdle(t,r);break;case"visible":this.hydrateOnVisible(t,r);break;case"interaction":this.hydrateOnInteraction(t,r);break;default:if(e.startsWith("media(")){const n=`(${e.slice(6,-1)})`;this.hydrateOnMedia(t,n,r)}else r()}}hydrateOnIdle(t,e){let n=!0;const r=()=>{n&&(n=!1,e())};if("requestIdleCallback"in window){const e=window.requestIdleCallback(r,{timeout:2e3});this.trackCleanup(t,()=>{n=!1,window.cancelIdleCallback?.(e)})}else{const e=setTimeout(r,1);this.trackCleanup(t,()=>{n=!1,clearTimeout(e)})}}hydrateOnVisible(t,e){if(c(),!("IntersectionObserver"in window))return c(),void e();this.intersectionObserver||(c(),this.intersectionObserver=new IntersectionObserver(t=>{c(),t.forEach(t=>{if(c(),t.isIntersecting){const e=t.target,n=this.observers.get(e);n&&(c(),n(),this.observers.delete(e),this.intersectionObserver?.unobserve(e))}})},{rootMargin:"50px"})),this.observers.set(t,e),this.intersectionObserver.observe(t),this.trackCleanup(t,()=>this.cleanup(t)),c()}hydrateOnInteraction(t,e){const n=["mouseenter","touchstart","focus"];let r=!1;const s=()=>{r||(r=!0,n.forEach(e=>{t.removeEventListener(e,s)}),e())};n.forEach(e=>{t.addEventListener(e,s,{once:!0,passive:!0})}),this.trackCleanup(t,()=>{r=!0,n.forEach(e=>t.removeEventListener(e,s))})}hydrateOnMedia(t,e,n){const r=window.matchMedia(e);if(r.matches)n();else{let e=!0;const s=t=>{e&&t.matches&&(e=!1,n(),r.removeEventListener("change",s))};r.addEventListener("change",s),this.trackCleanup(t,()=>{e=!1,r.removeEventListener("change",s)})}}trackCleanup(t,e){t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{this.pending.delete(t),e()})}cleanup(t){this.pending.delete(t),this.observers.delete(t),this.intersectionObserver&&this.intersectionObserver.unobserve(t)}};Fe=Ke;const qe=new Map,$e=new WeakSet;function He(t){if(!c())return;const e=[...t.querySelectorAll("[g-reveal]")];t instanceof Element&&t.hasAttribute("g-reveal")&&e.unshift(t);for(const t of e)$e.has(t)||i(t)||t.closest("[g-scope]")||dt(t)||$e.add(t)}function Ge(t){let e=0;for(;t.parentElement;)e++,t=t.parentElement;return e}function ze(t){if(t)return void(t instanceof HTMLElement?[t]:Array.from(t)).forEach(t=>Ye(t));const e=[...document.querySelectorAll("[g-scope]"),...u(document.body,t=>{if(t.hasAttribute("g-scope"))return!1;for(const e of t.attributes){const t=e.name;if(t.startsWith("gd-")||t.startsWith("gm-"))return!0}return!1})].filter(t=>!i(t));e.sort((t,e)=>Ge(e)-Ge(t)),e.forEach(t=>!t.hasAttribute("*if")&&!t.hasAttribute("*for")&&!p(t)&&Ke(t)),He(document.body)}function Ye(t){if(i(t)||!document.body.contains(t))return;const e=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)].filter(t=>t.hasAttribute("g-scope")||(t=>Array.from(t.attributes).some(t=>t.name.startsWith("gd-")||t.name.startsWith("gm-")))(t));if(e.sort((t,e)=>Ge(e)-Ge(t)),e.forEach(t=>!t.hasAttribute("*if")&&!t.hasAttribute("*for")&&!p(t)&&Ke(t)),He(t),ht(t))return;const n=dt(t);n&&je(t,n)}function Ke(t){document.body.contains(t)&&(i(t)||(pt().forEach((t,e)=>{e.isConnected||te(e)}),function(t,e){if(ht(t))return;const n=function(t,e){let n;const r=Qe(t,t=>ut.get(t));if(r)return r;n=function(t){t=Je(t);try{const e=t.trim();if(!e.startsWith("{"))return;const n=it().parseScope(e);return c(),n}catch(t){return void c()}}(e),n||(n=qe.get(e)||{});const s=function(t){const e=["constructor","__proto__","prototype","globalThis","window","document","Function","eval","require","import"],n=t=>{if(0===t.length)return t;const e=t.trim();if("true"===e.toLocaleLowerCase())return!0;if("false"===e.toLocaleLowerCase())return!1;if(!isNaN(Number(t))&&e===t)return Number(t);if(!/^[\[{]/.test(e))return t;try{return JSON.parse(e)}catch(e){return t}},r=t.attributes;let s={},i=[];for(let t=0;t<r.length;t++){const a=r[t],l=a.name.substring(3).replace(/-([a-z])/g,t=>t[1].toUpperCase());if(o(l.split(":",1)[0]))i.push(a.name);else if(a.name.match(/^gd-.+/))s[l]=n(a.value),i.push(a.name);else if(a.name.match(/^gm-.+/)){const t=Je(a.value.trim());e.some(e=>t.includes(e))&&c();const n=l.split(":").slice(1),r=l.split(":")[0];try{s[r]=it().createMethod(n,t),i.push(a.name)}catch(t){c()}}}return i.forEach(e=>t.removeAttribute(e)),s}(t);if("function"==typeof n){const e=n;return n=>{const r=e(n);return r&&"object"==typeof r?(Object.keys(s).forEach(t=>{r[t]=s[t]}),Xe(t,r),r):r}}return Object.keys(s).forEach(t=>{n[t]=s[t]}),Xe(t,n),n}(t,e),r=function(t){return t.getAttribute("g-hydrate")||null}(t);r?We.setup(t,r,()=>{document.body.contains(t)&&!i(t)&&Ze(t,n)}):Ze(t,n)}(t,t.getAttribute("g-scope")||Math.random().toString(36))))}function Je(t){try{return decodeURIComponent(t)}catch{return t}}function Xe(t,e){const n=u(t,t=>t.getAttributeNames().some(t=>t.startsWith("g-model"))),r=new Map;for(const t of n){if(i(t))continue;const n=t.attributes,s=Array.from(n).find(t=>t.name.startsWith("g-model"));if(!s)continue;if(s.value.includes("."))continue;const a=t;if("radio"===a.type){if(s.value in e)continue;if(r.has(s.value)||r.set(s.value,""),a.checked){const t=s.name.split(".").includes("number")?Number(a.value):a.value;r.set(s.value,t)}continue}if(s.value in e)continue;const o="checkbox"===a.type?a.checked:a.value;e[s.value]=o,c()}for(const[t,n]of r)t in e||(e[t]=n,c())}function Qe(t,e){if(!t.hasAttribute("g-scope-persist"))return;const n=t.getAttribute("g-scope-persist");if(!n)return;if(!n.startsWith("{")||!n.endsWith("}"))return e(n);const r=t.parentElement.__gyos_scope__;return r?e(ot(n.slice(1,-1),r,!1)):void 0}function Ze(t,e){let s=null;"object"==typeof e&&(s=Te(e));const a=function(t,e){const s=yt(t),a=()=>yt(t)===s,l={},u=new Map;return t.querySelectorAll("[g-ref]").forEach(e=>{if(i(e)||(e.closest("[g-scope]")||t)!==t)return;const n=e.getAttribute("g-ref");n&&!o(n)&&(l[n]=e)}),{inject:e=>U(t).get(e),provide:(e,n)=>{U(t).set(e,n)},$refs:l,$emit:(e,...n)=>{const r=u.get(e);r&&r.forEach(t=>{try{t(...n)}catch(t){c()}}),t.dispatchEvent(new CustomEvent(e,{detail:n}))},$on:(t,e)=>(u.has(t)||u.set(t,new Set),u.get(t).add(e),()=>{u.get(t)?.delete(e)}),$watch:(t,s,i={})=>{if(!a())return()=>{};const o=e();if(!o)return c(),()=>{};const{immediate:l=!1,deep:u=!1,debounce:h=0}=i;let p,f=!0;if(h>0){const t=s;s=(...e)=>{clearTimeout(p),p=setTimeout(()=>{p=void 0,f&&R(()=>t.call(o,...e))},h)}}let d,m=!1;const g=N(()=>{const e=((t,e)=>{const n=e.split(".");let r=t;for(const t of n){if(null==r)return;r=r[t]}return r})(o,t),i=u&&"object"==typeof e?n(e):e;if(!m)return d=i,m=!0,void(l&&R(()=>s.call(o,i,void 0)));(u?!r(d,i):!Object.is(d,i))&&(R(()=>s.call(o,i,d)),d=u&&"object"==typeof i?n(i):i)}),y=()=>{f=!1,clearTimeout(p),p=void 0,g()};return a()?(o.__gyos_effects__||(o.__gyos_effects__=[]),o.__gyos_effects__.push(y),y):(y(),y)},$effect:t=>{if(!a())return()=>{};const n=e();if(!n)return c(),()=>{};const r=N(t);return a()?(n.__gyos_effects__||(n.__gyos_effects__=[]),n.__gyos_effects__.push(r),r):(r(),r)}}}(t,()=>s);if("function"==typeof e&&!s){const t=e(a);s=t&&"object"==typeof t?Te(t):t}if(!s||"object"!=typeof s)return void c();let l=!1;if(s.onUpdate){const e=s[ye],n=N(()=>{e&&(e.value,l&&ht(t)===s&&s.onUpdate.call(s))});s.__gyos_effects__||(s.__gyos_effects__=[]),s.__gyos_effects__.push(n)}s.$refs=a.$refs,s.$emit=a.$emit,s.$on=a.$on,s.$watch=a.$watch,s.$effect=a.$effect,s.$inject=a.inject,s.$provide=a.provide,function(t,e){lt.set(t,e)}(t,s),function(t,e,n){t.__gyos_scope__=e,je(t,e),n&&n()}(t,s,()=>{if(ht(t)===s&&(l=!0,s.onMount))try{Promise.resolve(s.onMount.call(s)).catch(console.error)}catch(t){}}),ht(t)===s&&Qe(t,t=>{ut.has(t)||ut.set(t,s)})}const tn=new Map,en=new Map;function nn(t,e){return en.has(t)||en.set(t,new Set),en.get(t).add(e),()=>{en.get(t)?.delete(e)}}function rn(t,e){e?en.get(t)?.delete(e):en.delete(t)}class sn{constructor(t=!0){this.element=null,this.animationFrame=null,this.hideTimer=null,this.resetTimer=null,this.currentProgress=0,this.progressBarEnabled=!0,this.progressBarEnabled=t,this.createBar()}getCurrentProgress(){return this.currentProgress}reconnect(){this.element&&this.progressBarEnabled&&document.body&&(document.querySelectorAll("#gyos-progress-bar").forEach(t=>{t!==this.element&&t.remove()}),this.element.isConnected||document.body.appendChild(this.element))}createBar(){"undefined"!=typeof document&&(this.element=document.createElement("div"),this.element.id="gyos-progress-bar",this.element.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 0%;\n height: 6px;\n background: var(--gyos-progress-color, linear-gradient(90deg, #aab9ff, #77889f));\n z-index: 999999;\n transition: width 0.3s linear, opacity 0.3s linear;\n opacity: 0;\n pointer-events: none;\n box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);\n ","loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{this.reconnect()},{once:!0}):this.reconnect())}start(){this.element&&this.progressBarEnabled&&(this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null),this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null),this.currentProgress=0,this.element.style.width="0%",this.setProgress(20))}setProgress(t){this.element&&this.progressBarEnabled&&(this.reconnect(),t=Math.min(100,Math.max(0,t)),this.currentProgress=t,this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.element.style.width=t+"%",this.element.style.opacity=""+Math.max(.6,t/100))}complete(){this.element&&this.progressBarEnabled&&(this.setProgress(100),this.hideTimer=window.setTimeout(()=>{this.hideTimer=null,this.hide()},300))}hide(){this.element&&(this.element.style.opacity="0",this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=window.setTimeout(()=>{this.resetTimer=null,this.element&&(this.element.style.width="0%",this.currentProgress=0)},300))}}function an(t){t&&t.parentNode&&t.remove()}let on;function cn(t){on=t}function ln(){return("function"==typeof on?on():on)||void 0}const un=new Set;function hn(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return"inline:"+e}function pn(t){if(!t.hasAttribute("g-script-once"))return!0;const e=t.src||hn(t.textContent||"");return!un.has(e)&&(un.add(e),!0)}function fn(t){return t.hasAttribute("g-script-once")?t.src||hn(t.textContent||""):null}function dn(t,e=fn(t)){const n=e;n&&un.delete(n)}function mn(t,e,n=fn(t)){return t.src||"module"===t.type?new Promise(r=>{let s=!1;const i=()=>{s||(s=!0,e?.removeEventListener("abort",a),r())},a=()=>{dn(t,n),t.remove(),i()};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",()=>{dn(t,n),t.remove(),i()},{once:!0}),e?.aborted?a():e?.addEventListener("abort",a,{once:!0})}):Promise.resolve()}async function gn(t,e){if(e?.aborted)return void t.remove();const n=ln();if("csp"===at()&&!t.src&&!n)return void(t.textContent="");const r=fn(t);if(!pn(t))return void(t.textContent="");const s=document.createElement("script");Array.from(t.attributes).forEach(t=>s.setAttribute(t.name,t.value)),"csp"===at()&&s.removeAttribute("nonce"),n&&s.setAttribute("nonce",n),s.textContent=t.hasAttribute("g-script-wrap")?vn(t.textContent):t.textContent,s.removeAttribute("g-script-wrap");const i=mn(s,e,r);t.replaceWith(s),await i}async function yn(t,e){const n=[];for(const e of t)e instanceof HTMLScriptElement&&n.push(e),e instanceof Element&&n.push(...Array.from(e.querySelectorAll("script")));for(const t of n)if(await gn(t,e),e?.aborted)return}function vn(t){return t?`(() => { ${t} })();`:t}const bn=new Map;let xn=0;function _n(t,e=!1){if(t.dataset.gyosPersistId)return t.dataset.gyosPersistId;const n=t.getAttribute("g-persist");if(n&&n.trim().length)return t.dataset.gyosPersistId=n.trim(),t.dataset.gyosPersistId;if(t.id)return t.dataset.gyosPersistId="id:"+t.id,t.dataset.gyosPersistId;if(!e)return null;const r="gyos-persist-"+xn++;return t.dataset.gyosPersistId=r,r}const wn="undefined"!=typeof document?(()=>{const t=document.createElement("div");return t.style.position="fixed",t.style.left="-99999px",t.style.top="-99999px",t.style.width="0",t.style.height="0",document.documentElement.appendChild(t),t})():null;function En(t){const e=Array.from(t.querySelectorAll("[g-persist]"));return t instanceof HTMLElement&&t.matches("[g-persist]")&&e.unshift(t),e}function Sn(t,e){const n=new Set;Array.from(e.attributes).forEach(e=>{n.add(e.name),t.getAttribute(e.name)!==e.value&&t.setAttributeNodeNS(t.ownerDocument.importNode(e,!0))}),Array.from(t.attributes).forEach(e=>{n.has(e.name)||t.removeAttribute(e.name)})}function kn(t,e,n){if(e&&e.hasAttribute("g-noscroll"))return;const r=new URL(t).hash;if(r){let t=r.slice(1);try{t=decodeURIComponent(t)}catch{}const e=document.getElementById(t);if(e)return void e.scrollIntoView({behavior:"smooth"})}n?window.scrollTo(n.x,n.y):window.scrollTo({top:0,behavior:"smooth"})}const An=new WeakMap;function Cn(t,e){t.querySelectorAll("script[src], link[href]").forEach(t=>{const n="SCRIPT"===t.tagName?"src":"href",r=t.getAttribute(n);if(An.get(t)?.source!==r)try{An.set(t,{source:r,url:new URL(r,e).href})}catch{}})}function In(t){return"META"===t.tagName&&"csp-nonce"===t.getAttribute("name")?.toLowerCase()}function Tn(t){return"SCRIPT"===t.tagName||"STYLE"===t.tagName||function(t){return"LINK"===t.tagName&&(t.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}(t)}function Nn(t,e){const n=new Map;return t.map(t=>{const r=function(t,e){const n=t.tagName.toLowerCase(),r="script"===n||"style"===n?function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return e+""}(t.textContent||""):"";return`${n}|${function(t,e){const n=new Map;return Array.from(t.attributes).forEach(r=>{if(e.csp&&Tn(t)&&"nonce"===r.name.toLowerCase())return;if(e.csp&&In(t)&&"content"===r.name.toLowerCase())return;let s=r.value;if("SCRIPT"===t.tagName&&"src"===r.name||"LINK"===t.tagName&&"href"===r.name){const n=An.get(t);if(n?.source===s)s=n.url;else try{s=new URL(s,e.baseUrl||t.baseURI).href,An.set(t,{source:r.value,url:s})}catch{}}n.set(r.name,s)}),e.csp&&Tn(t)&&e.activeNonce&&n.set("nonce",e.activeNonce),e.csp&&In(t)&&e.activeNonce&&n.set("content",e.activeNonce),Array.from(n).map(([t,e])=>`${t}=${e}`).sort().join("|")}(t,e)}|${r}`}(t,e),s=n.get(r)||0;return n.set(r,s+1),{key:`${r}|${s}`,node:t}})}function Pn(t,e){return!(e.csp&&(In(t)||"STYLE"===t.tagName||"SCRIPT"===t.tagName&&!t.hasAttribute("src"))&&!e.activeNonce)}function Ln(t,e){e.csp&&(In(t)?e.activeNonce&&t.setAttribute("content",e.activeNonce):Tn(t)&&(t.removeAttribute("nonce"),e.activeNonce&&t.setAttribute("nonce",e.activeNonce)))}function Mn(t){"STYLE"===t.tagName||"SCRIPT"===t.tagName&&t.hasAttribute("src")}async function On(t,e,n=document.head,r,s=document.baseURI){const i="csp"===at(),a={csp:i,activeNonce:i?ln():void 0},o=Nn(t,{...a,baseUrl:s}),c=Nn(e,a),l=t=>n===document.head?t.getAttribute("g-head-persist"):null,u=new Set(t.map(l).filter(Boolean)),h=new Set(o.map(t=>t.key)),p=new Set(c.map(t=>t.key));o.forEach(({key:t,node:e})=>{p.has(t)||l(e)||e.remove()});for(const{key:t,node:e}of c){if(r?.aborted)return;if(!u.has(l(e))&&!h.has(t)){if(!Pn(e,a)){Mn(e);continue}if("STYLE"===e.tagName){const t=document.createElement("style");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),Ln(t,a),t.textContent=e.textContent||"",n.appendChild(t);continue}if("SCRIPT"===e.tagName){const t=e,s=fn(t);if(!pn(t)){e.remove();continue}const i=document.createElement("script");Array.from(e.attributes).forEach(t=>i.setAttribute(t.name,t.value)),Ln(i,a),i.textContent=e.hasAttribute("g-script-wrap")?vn(e.textContent||""):e.textContent||"",i.removeAttribute("g-script-wrap");const o=mn(i,r,s);n.appendChild(i),await o;continue}const t=document.importNode(e,!0);Ln(t,a),n.appendChild(t)}}}const Vn=new Set(["iframe","noembed","noframes","plaintext","script","textarea","title","xmp"]);function Rn(t,e){let n="";for(let r=e;r<t.length;r+=1){const e=t[r];if(n)e===n&&(n="");else if('"'!==e&&"'"!==e){if(">"===e)return r+1}else n=e}return t.length}function Dn(t,e,n,r){const s="</"+n;let i=e.indexOf(s,r);for(;-1!==i;){const n=e[i+s.length];if(">"===n||/\s/.test(n||""))return{start:i,end:Rn(t,i+s.length)};i=e.indexOf(s,i+s.length)}return null}function Bn(t,e){const n=function(t){const e=/^<\s*style\b/i.exec(t);if(!e)return t;let n=e[0],r=e[0].length;const s=t.length-1;for(;s>r;){const e=r;for(;s>r&&/\s/.test(t[r]);)r+=1;if(r>=s||">"===t[r]){n+=t.slice(e,r);break}const i=r;for(;s>r&&!/[\s=/>]/.test(t[r]);)r+=1;if(r===i){n+=t.slice(e,r+1),r+=1;continue}const a=t.slice(i,r).toLowerCase();for(;s>r&&/\s/.test(t[r]);)r+=1;if("="===t[r]){for(r+=1;s>r&&/\s/.test(t[r]);)r+=1;const e='"'===t[r]||"'"===t[r]?t[r]:"";if(e){for(r+=1;s>r&&t[r]!==e;)r+=1;t[r]===e&&(r+=1)}else for(;s>r&&!/[\s>]/.test(t[r]);)r+=1}"nonce"!==a&&(n+=t.slice(e,r))}return n+t.slice(s)}(t);return`${n.slice(0,-1)} nonce="${r=e,r.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">`;var r}const Fn=new WeakSet;async function Un(t,e,n){const r=new URL(t,document.baseURI);if(!["http:","https:"].includes(r.protocol)||r.origin!==location.origin||r.username||r.password)throw new TypeError("Gyos.navigate requires a same-origin HTTP(S) URL without credentials.");if(void 0!==e.target&&!(document.querySelector(e.target)instanceof HTMLElement))throw new TypeError("Gyos.navigate target does not exist.");if(!document.querySelector("[g-boost]"))throw new TypeError("Gyos.navigate requires a g-boost layout.");let s;return ir(),await kr({url:r.href,method:"GET",changeState:"none"!==e.history,replace:"replace"===e.history,targetSelector:e.target,strictTarget:void 0!==e.target,swapMode:e.swap,currentHead:e.currentHead,scroll:e.scroll,signal:e.signal,fresh:n,onEnd:t=>{s=t}}),s}const jn=new Map,Wn=new Map;let qn;const $n=new Map,Hn=new Map;let Gn=!1,zn=0,Yn=0,Kn=!0,Jn=pr(window.location.href,!0),Xn=history.state?.gyosEntryId||null,Qn=null,Zn=null;const tr=[],er=[],nr=[],rr=[];function sr(t,e){const n=(t,n)=>e(t,n);return t.push(n),()=>{const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}function ir(t){document.querySelector("[g-boost]")&&(Gn||"undefined"!=typeof window&&"undefined"!=typeof document&&(Kn=!1!==t?.showProgress,Kn&&(Zn=new sn(Kn)),document.addEventListener("click",Cr),document.addEventListener("submit",Pr),document.addEventListener("mouseover",Ir,!0),document.addEventListener("mousemove",Tr,!0),document.addEventListener("mouseleave",Nr),window.addEventListener("popstate",Lr),"scrollRestoration"in history&&(history.scrollRestoration="manual"),document.querySelectorAll("script").forEach(t=>{const e=t.hasAttribute("g-script-once"),n=e?t.src||hn(t.textContent||""):null;t.hasAttribute("g-script-wrap")&&t.removeAttribute("g-script-wrap"),e&&n&&un.add(n)}),Cn(document,document.baseURI),Gn=!0,h()))}function ar(){return!!document.body?.hasAttribute("g-boost")}function or(){return document.querySelector("[g-outlet]")}function cr(t){t.querySelectorAll("noscript").forEach(t=>t.remove())}function lr(t){const e=(new DOMParser).parseFromString(function(t){if("csp"!==at())return t;const e=ln(),n=t.toLowerCase();let r="",s=0,i=0;for(;s<t.length;){const a=t.indexOf("<",s);if(-1===a){r+=t.slice(s);break}if(r+=t.slice(s,a),t.startsWith("\x3c!--",a)){const e=t.indexOf("--\x3e",a+4),n=-1===e?t.length:e+3;r+=t.slice(a,n),s=n;continue}const o=Rn(t,a+1),c=t.slice(a,o),l=/^<\s*(\/?)\s*([a-z][\w:-]*)/i.exec(c);if(!l||l[1]){r+=c,s=o;continue}const u=l[2].toLowerCase();if("plaintext"===u){r+=t.slice(a);break}if("style"===u||"noscript"===u||Vn.has(u)){const l=Dn(t,n,u,o),h=l?.end??t.length;if("noscript"===u){s=h;continue}if("style"===u){if(!e){i+=1,s=h;continue}r+=Bn(c,e),r+=t.slice(o,h),s=h;continue}r+=t.slice(a,h),s=h;continue}r+=c,s=o}return r}(t),"text/html");return cr(e),e}function ur(t,e,n){if(e)try{const t=document.querySelector(e);if(t instanceof HTMLElement)return t}catch{}if(null!=n){const t=document.querySelectorAll("[g-outlet]")[n];if(t)return t}if(t){const e=t.getAttribute("g-target");if(e){const t=document.querySelector(e);if(t instanceof HTMLElement)return t}const n=t.closest("[g-outlet]");if(n instanceof HTMLElement)return n}const r=or();return r instanceof HTMLElement?r:null}function hr(t){return/^\s*(?:<!--[^]*?-->\s*)*(?:<!doctype\s+html\b|<html(?:\s|>))/i.test(t)}function pr(t,e=!1){const n=new URL(t,window.location.href);return e||(n.hash=""),n.href}function fr(){return`gyos-${Date.now().toString(36)}-${++Yn}`}function dr(t=!0){if(Xn)return Xn;const e=history.state||{};return Xn=e.gyosEntryId||fr(),t&&!e.gyosEntryId&&history.replaceState({...e,gyosEntryId:Xn},""),Xn}function mr(t,e,n){let r=Hn.get(t);r||(r=new Map,Hn.set(t,r)),r.set(e,n.cloneNode(!0))}function gr(t,e){const n=Hn.get(t)?.get(e);return n?.cloneNode(!0)}function yr(t){return Qn?.id===t.id&&!t.controller.signal.aborted}function vr(t){if(!yr(t))throw new DOMException("Navigation superseded","AbortError")}function br(t){t.controller.abort(),t.interval&&(clearInterval(t.interval),t.interval=null),t.spinner&&(an(t.spinner),t.spinner=null)}function xr(t,e){return e.aborted?Promise.reject(new DOMException("Navigation superseded","AbortError")):new Promise((n,r)=>{const s=()=>r(new DOMException("Navigation superseded","AbortError"));e.addEventListener("abort",s,{once:!0}),t.then(t=>{e.removeEventListener("abort",s),n(t)},t=>{e.removeEventListener("abort",s),r(t)})})}function _r(t){t?.catch(()=>{})}function wr(t,e,n){[...t].forEach(t=>{try{t(e,{...n})}catch(t){}})}function Er(t){const e=Wn.get(t);Wn.delete(t),e?.controller.abort()}function Sr(t,e){t.querySelectorAll("script[src], link[href]").forEach(t=>{const n="SCRIPT"===t.tagName?"src":"href",r=t.getAttribute(n);r&&t.setAttribute(n,new URL(r,e).href)})}async function kr(t){const e=()=>{t.onEnd?.({from:Jn,url:t.url,method:t.method,trigger:t.trigger||null,target:null,form:null,popstate:!1,signal:t.signal,status:null,committed:!1,fallback:!1,outcome:"aborted"})};if(t.signal?.aborted)return void e();for(;Qn;){const n=Qn;if(!n.committing){h(),br(n);break}h();try{await(t.signal?xr(n.done,t.signal):n.done)}catch{return void e()}}let n;const r=new Promise(t=>{n=t}),s={id:++zn,controller:new AbortController,interval:null,spinner:null,committing:!1,done:r,resolveDone:n};Qn=s;const i=()=>br(s);t.signal?.addEventListener("abort",i,{once:!0}),t.signal?.aborted&&i();const a=document.baseURI;Cn(document,a);const o={from:Jn,url:t.url,method:t.method.toUpperCase(),trigger:t.trigger||null,target:null,form:t.form||null,popstate:!0===t.popstate,signal:s.controller.signal,status:null,committed:!1,fallback:!1,outcome:null},c=t.form?{form:t.form,url:t.url,status:null,outcome:null,committed:!1,fallback:!1}:null,l=(e,n)=>{o.fallback="GET"===o.method||!n&&!!t.form,o.outcome??(o.outcome=o.fallback?"fallback":"invalid-response"),function(t,e,n){"GET"!==(t.method||"GET").toUpperCase()?n||!t.form||HTMLFormElement.prototype.submit.call(t.form):window.location.href=e}(t,e,n)},u=t.trigger?.hasAttribute("g-router-spin"),p=()=>{yr(s)&&70>Zn?.getCurrentProgress()&&Zn?.setProgress(Zn?.getCurrentProgress()+8*Math.random())};try{vr(s),c&&document.dispatchEvent(new CustomEvent("gyos:form-start",{detail:{...c}})),wr(tr,t.url,o),vr(s),Zn?.start(),(f=t.scrollSourceEntryId??Xn)&&$n.set(f,{x:window.scrollX,y:window.scrollY}),t.popstate||function(){const t=history.state||{},e={x:window.scrollX,y:window.scrollY};history.replaceState({...t,scroll:e},"")}();let e=ur(t.trigger,t.targetSelector,t.targetOutletIndex);if(t.strictTarget&&(!t.targetSelector||!e?.matches(t.targetSelector)))return void(o.outcome="invalid-response");if(o.target=e,!e)return void(yr(s)&&l(t.url,!1));const n=(t.swapMode||t.trigger?.getAttribute("g-swap")||"inner").toLowerCase(),r=t.trigger instanceof HTMLElement&&t.trigger.hasAttribute("g-router-remove"),i=!["append","prepend"].includes(n),d=e===or(),m=function(t,e){if(!e.hasAttribute("g-outlet"))return null;const n=Array.from(t.querySelectorAll("[g-outlet]")).indexOf(e);return-1===n?null:n}(document,e),g=d?null:t.targetSelector||t.trigger?.getAttribute("g-target")||(e.id?"#"+e.id:null),y=t.currentHead??t.trigger?.hasAttribute("g-current-head")??!1,v={targetSelector:g,targetOutletIndex:d?null:m,swapMode:d?"inner":"morph",currentHead:y};u&&(s.spinner=function(t,e){const n=function(){const t=document.createElement("div");if(t.className="gyos-target-spinner",t.innerHTML='\n\t\t<div class="gyos-spinner-content">\n\t\t\t<svg class="gyos-spinner-icon" viewBox="0 0 50 50">\n\t\t\t\t<circle cx="25" cy="25" r="20" fill="none" stroke="currentColor" stroke-width="4" stroke-dasharray="31.4 31.4" />\n\t\t\t</svg>\n\t\t</div>\n\t',"standard"===at()&&!document.getElementById("gyos-target-spinner-styles")){const t=document.createElement("style");t.id="gyos-target-spinner-styles",t.textContent="\n\t\t\t.gyos-target-spinner {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\tpadding: 20px;\n\t\t\t\tmin-height: 60px;\n\t\t\t}\n\t\t\t.gyos-spinner-content {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tgap: 10px;\n\t\t\t\tcolor: var(--gyos-spinner-color, #667eea);\n\t\t\t\tfont-size: 14px;\n\t\t\t}\n\t\t\t.gyos-spinner-icon {\n\t\t\t\twidth: 24px;\n\t\t\t\theight: 24px;\n\t\t\t\tanimation: gyos-spin 1s linear infinite;\n\t\t\t}\n\t\t\t@keyframes gyos-spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t",document.head.appendChild(t)}return t}();return"prepend"===e?t.prepend(n):t.appendChild(n),n}(e,n));const{finalUrl:b,init:x}=function(t){const e=(t.method||"GET").toUpperCase(),n=new Headers({"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"}),r={method:e,headers:n,redirect:"follow",mode:"same-origin"};let s=new URL(t.url,window.location.href);const i="GET"===e;if(t.formData)if(i)s=function(t,e){return e.forEach((e,n)=>{"string"==typeof e?t.searchParams.append(n,e):t.searchParams.append(n,e.name)}),t}(s,t.formData);else if("application/x-www-form-urlencoded"===t.formEncoding){const e=new URLSearchParams;t.formData.forEach((t,n)=>e.append(n,"string"==typeof t?t:t.name)),r.body=e}else r.body=t.formData;else if(t.jsonData){const e=(t,e)=>{"object"==typeof e?s.searchParams.append(t,JSON.stringify(e)):s.searchParams.append(t,e+"")};i?Object.entries(t.jsonData).forEach(([t,n])=>e(t,n)):(n.set("Content-Type","application/json"),r.body=JSON.stringify(t.jsonData))}return{finalUrl:s.toString(),init:r}}(t);let _,w;o.url=b,x.signal=s.controller.signal;const E=pr(b);if(t.popstate&&t.historyFragment)h();else if(t.popstate&&jn.has(E))h(),_=jn.get(E).html;else{const e=pr(b,!0);t.fresh&&Er(e);const n="GET"===x.method?Wn.get(e):void 0;if(n){h();const t=s.controller.signal,r=()=>{Wn.get(e)===n&&Er(e)};t.addEventListener("abort",r,{once:!0});try{w=await xr(n.request,t),w.ok&&qn?.url===e&&(qn.used=!0)}catch(t){if("AbortError"===t.name)throw t;return vr(s),o.outcome="network-error",void l(b,!0)}finally{t.removeEventListener("abort",r),Wn.get(e)===n&&Wn.delete(e)}}else try{Zn?.setProgress(10*Math.random()+20),s.interval=setInterval(p,300),w=await fetch(b,x),vr(s),w.ok&&"GET"!==x.method&&function(){Nr();for(const t of Wn.keys())Er(t)}(),Zn?.setProgress(10*Math.random()+70),s.interval&&clearInterval(s.interval),s.interval=null}catch(t){return"AbortError"===t.name?void h():(o.outcome="network-error",void(yr(s)&&l(b,!0)))}vr(s),o.status=w?.status??null,o.url=w?.url||b;const r=(t.trigger?.getAttribute("g-boost-errors")||"").split(/[\s,]+/),i=!!w&&w.status>=400&&599>=w.status&&r.includes(w.status+"");if(w&&!w.ok&&(o.outcome="http-error"),!w||!w.ok&&!i||!function(t){try{if(t.url&&new URL(t.url,window.location.href).origin!==window.location.origin)return!1}catch{return!1}const e=t.headers.get("Content-Disposition")||"";if(/\battachment\b/i.test(e))return!1;const n=(t.headers.get("Content-Type")||"").split(";",1)[0].trim().toLowerCase();return"text/html"===n||"application/xhtml+xml"===n}(w))return o.outcome??(o.outcome="invalid-response"),void(yr(s)&&l(b,!0));_=await w.text(),vr(s)}const S=_?lr(_):document.implementation.createHTMLDocument();if(S.querySelector("base[href]")||t.historyFragment?.querySelector("base[href]"))return o.outcome="invalid-response",void l(w?.url||b,!0);w?.ok&&!t.popstate&&e.hasAttribute("g-snapshot")&&function(t,e){const n=lr(e);n.querySelectorAll("#gyos-progress-bar").forEach(t=>t.remove()),t.includes("#")&&(t=t.split("#")[0]),Array.from(n.scripts).forEach(t=>{t.hasAttribute("g-script-once")&&(t.textContent="")}),jn.set(t,{html:n.documentElement.outerHTML,fullDocument:hr(e)}),h()}(pr(w.url||b),_);const k=d&&i&&!y&&!t.historyFragment&&(t.popstate&&jn.has(E)?jn.get(E).fullDocument:hr(_||"")),A=t.historyFragment||function(t,e,n){if(e.id){const n=t.getElementById(e.id);if(n instanceof HTMLElement)return n}if(null!==n){const e=t.querySelectorAll("[g-outlet]")[n];if(e)return e}const r=t.querySelector("[g-outlet]");return r instanceof HTMLElement?r:t.body}(S,e,m);cr(A),vr(s);let C=w?.url||b;b.includes("#")&&w?.url&&(C+=b.substring(b.indexOf("#"))),Sr(S,C),o.url=C,t.historyFragment&&Sr(A,C);const I=t.trigger?.hasAttribute("g-change-state")||!1,T=t.trigger?.hasAttribute("g-current-state")||!1,N="GET"!==t.method.toUpperCase()&&!0===w?.redirected,P="http-error"!==o.outcome&&!T&&(!0===t.changeState||I||N),L=async()=>{vr(s),s.committing=!0,wr(nr,C,o),vr(s),Zn?.setProgress(10*Math.random()+80);const r=!P||t.replace||d?null:function(t){if(dt(t)||Array.from(t.querySelectorAll("*")).some(t=>t.__gyos_scope__))return null;const e=t.cloneNode(!0);return e.querySelectorAll(".gyos-target-spinner").forEach(t=>t.remove()),e}(e);let c=null,l=[],u=!1;if(i&&(function(t=document){wn&&(wn&&wn.parentElement!==document.documentElement&&document.documentElement.appendChild(wn),En(t).forEach(t=>{if(t===wn||wn.contains(t))return;const e=_n(t,!0);e&&(bn.set(e,t),wn.appendChild(t))}))}(e),function(t){te(t)}(e)),P)if(t.replace){const t=dr(!1);history.replaceState({...history.state||{},gyos:!0,gyosEntryId:t},"",C)}else{const t=dr(!1),e=fr(),n=history.state||{};history.replaceState({...n,gyos:!0,gyosEntryId:t,gyosRoutes:{...n.gyosRoutes||{},[e]:v}},""),history.pushState({gyos:!0,gyosEntryId:e,gyosRoutes:{[t]:v}},"",C),r&&(mr(t,e,r),c={currentEntryId:t,nextEntryId:e}),Xn=e}try{if(k&&!document.querySelector("base[href]")){document.head.querySelectorAll("base[target]").forEach(t=>t.remove());const t=S.head.querySelector("base[target]")?.getAttribute("target");if(null!=t){const e=document.createElement("base");e.target=t,document.head.prepend(e)}}e=await async function(t,e,n,r={}){const s=(n||"inner").toLowerCase(),i=document.importNode(e,!0),a=Array.from(i.childNodes);let o;if("replace"===s)h(),t.replaceWith(i),o=i;else if("morph"===s)h(),t.tagName!==i.tagName?(t.replaceWith(i),o=i):(function(t,e){const n=t=>t instanceof Element&&!!t.closest("[g-persist]"),r=t=>t?.nodeType===Node.COMMENT_NODE&&!!t.nodeValue?.includes("g-persist:"),s=t=>{if(t instanceof Element)return t.getAttribute("g-persist")||null;if(r(t)){const e=t.nodeValue.match(/g-persist:(\S+)/);return e?e[1]:null}return null},i=t=>`${t.tagName}|${t.id||""}|${t.dataset.gyosPersistId||""}|${t.dataset.gyosKey||""}`,a=t=>{if(!(t instanceof HTMLElement))return null;const{id:e,dataset:n}=t;return e||n.gyosPersistId||n.gyosKey?i(t):null},o=(t,e)=>{if(!t||!e)return;if(t===e)return;if(t.nodeType===Node.TEXT_NODE&&e.nodeType===Node.TEXT_NODE)return void(t.textContent!==e.textContent&&(t.textContent=e.textContent));if(!(t instanceof Element&&e instanceof Element))return void t.replaceWith(e.cloneNode(!0));if(n(t)||n(e))return;if(t.tagName!==e.tagName)return void t.replaceWith(e.cloneNode(!0));const c=(t=>{if(t instanceof HTMLInputElement){const e="checkbox"===t.type||"radio"===t.type,n="file"!==t.type&&t.value!==t.defaultValue,r=e&&t.checked!==t.defaultChecked;return n||r?{kind:"input",type:t.type,value:n?t.value:void 0,checked:r?t.checked:void 0}:null}if(t instanceof HTMLSelectElement){const e=Array.from(t.options);return e.some(t=>t.selected!==t.defaultSelected)?{kind:"select",values:e.filter(t=>t.selected).map(t=>t.value)}:null}return t instanceof HTMLTextAreaElement&&t.value!==t.defaultValue?{kind:"textarea",value:t.value}:null})(t);Sn(t,e);const l=t=>Array.from(t).filter(t=>!(t.nodeType===Node.TEXT_NODE&&""===(t.textContent||"").trim())),u=l(e.childNodes);let h=l(t.childNodes);const p=new Map;h.forEach(t=>{const e=s(t);e&&p.set(e,t)});let f=0;for(;f<u.length||f<h.length;){const e=u[f]||null;let c=h[f]||null;const d=s(e),m=d?null:a(e);if(m&&a(c)!==m){const n=h.findIndex((t,e)=>e>f&&a(t)===m);-1!==n?(t.insertBefore(h[n],c),h=l(t.childNodes),c=h[f]||null):e&&(t.insertBefore(e.cloneNode(!0),c),h=l(t.childNodes),c=h[f]||null)}const g=s(c);if(d){if(p.get(d)){f++;continue}t.insertBefore(e.cloneNode(!0),c||null),h=l(t.childNodes),f++;continue}if(g){f++;continue}if(!c&&e){t.appendChild(e.cloneNode(!0)),h=l(t.childNodes),f++;continue}if(c&&!e){if(!n(c)&&!r(c)){c.remove(),h=l(t.childNodes);continue}f++;continue}if(!c||!e){f++;continue}const y=c instanceof Element?i(c):"",v=e instanceof Element?i(e):"";y&&v&&y===v?(o(c,e),f++):y||v||c.nodeType!==e.nodeType?(n(c)||r(c)||(c.replaceWith(e.cloneNode(!0)),h=l(t.childNodes)),f++):(o(c,e),f++)}((t,e)=>{if(e){if("input"===e.kind&&t instanceof HTMLInputElement){if(t.type!==e.type)return;return void 0!==e.value&&(t.value=e.value),void(void 0!==e.checked&&(t.checked=e.checked))}if("select"===e.kind&&t instanceof HTMLSelectElement){const n=new Set(e.values);return void((0===n.size||Array.from(t.options).some(t=>n.has(t.value)))&&Array.from(t.options).forEach(t=>{t.selected=n.has(t.value)}))}"textarea"===e.kind&&t instanceof HTMLTextAreaElement&&(t.value=e.value)}})(t,c)};o(t,e)}(t,i),o=t);else if("append"===s)h(),t.append(...a),o=t;else if("prepend"===s)h(),t.prepend(...a),o=t;else{for(h(),r.syncRootAttributes&&Sn(t,i),t.replaceChildren();i.firstChild;)t.appendChild(i.firstChild);o=t}return r.onCommitted?.(o,"append"===s||"prepend"===s?a:[o]),await(r.beforeScripts?.()),"append"===s||"prepend"===s?await yn(a,r.signal):await async function(t,e){await yn([t],e)}(o,r.signal),o}(e,A,n,{syncRootAttributes:d,signal:s.controller.signal,beforeScripts:async()=>{if(!d||y)return;if(k)for(const t of["lang","dir"]){const e=S.documentElement.getAttribute(t);null===e?document.documentElement.removeAttribute(t):document.documentElement.setAttribute(t,e)}const t=S.querySelector("title");t&&(document.title=t.textContent||document.title),await async function(t,e,n){const r="meta, link, style:not(#gyos-transitions), script",s=Array.from(document.head.querySelectorAll(r)),i=Array.from(t.head.querySelectorAll(r));await On(s,i,document.head,e,n)}(S,s.controller.signal,a),vr(s)},onCommitted:(t,n)=>{e=t,o.target=t,o.committed=!0,Zn?.reconnect(),l=n}}),o.committed=!0,vr(s),d&&(await async function(t,e,n,r,s){const i=Array.from(document.scripts).filter(t=>!e.contains(t)&&!document.head.contains(t)),a=Array.from(t.scripts).filter(e=>!n.contains(e)&&!t.head.contains(e));await On(i,a,document.body,r,s)}(S,e,A,s.controller.signal,a),vr(s))}finally{(()=>{if(u)return;u=!0;const t=l.filter(t=>t instanceof HTMLElement&&t.isConnected);!function(t){if(wn&&wn.parentElement!==document.body&&document.body.appendChild(wn),!bn.size)return;if(1===bn.size){const e=Array.from(bn.keys())[0];En(t).forEach(t=>{wn?.contains(t)||_n(t,!1)||(t.dataset.gyosPersistId=e)})}En(t).forEach(t=>{if(wn?.contains(t))return;const e=_n(t,!1);if(!e)return;const n=bn.get(e);n?(t.replaceWith(n),bn.delete(e)):t.dataset.gyosPersistId=e});const e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,null),n=[];for(;e.nextNode();){const t=e.currentNode;if(wn?.contains(t))continue;const r=t.data.match(/g-persist[:=]\s*([A-Za-z0-9_\-:.]+)/);r&&n.push({node:t,key:r[1]})}n.forEach(({node:t,key:e})=>{const n=bn.get(e);n&&(t.replaceWith(n),bn.delete(e))})}(e),c&&mr(c.nextEntryId,c.currentEntryId,e),ze(t.length>0?t:void 0)})()}if(!1===t.scroll);else if(P)kn(C,t.trigger);else if(t.popstate)kn(C,t.trigger,t.savedScroll);else{const e=history.state;kn(C,t.trigger,e?.scroll)}};if(document.startViewTransition){const t=document.startViewTransition(()=>L());_r(t?.ready),_r(t?.finished),t?.updateCallbackDone&&await t.updateCallbackDone}else await L();vr(s),r&&"http-error"!==o.outcome&&t.trigger instanceof HTMLElement&&t.trigger.isConnected&&(te(t.trigger),t.trigger.remove()),u&&an(s.spinner),s.spinner=null,o.outcome??(o.outcome="success"),wr(er,C,o),h(),Jn=pr(P?C:window.location.href,!0),t.popstate&&t.historyEntryId&&(Xn=t.historyEntryId)}catch(e){if("AbortError"===e.name)return void h();yr(s)&&(o.outcome??(o.outcome="error"),l(t.url,!0))}finally{if(s.controller.signal.aborted&&(o.outcome="aborted"),o.outcome??(o.outcome="aborted"),s.interval&&clearInterval(s.interval),s.spinner&&an(s.spinner),Qn?.id===s.id&&(Qn=null,Zn?.complete()),t.signal?.removeEventListener("abort",i),s.resolveDone(),c&&Fn.delete(c.form),wr(rr,o.url,o),c){const{url:t,status:e,outcome:n,committed:r,fallback:s}=o;document.dispatchEvent(new CustomEvent("gyos:form-end",{detail:{...c,url:t,status:e,outcome:n,committed:r,fallback:s}}))}t.onEnd?.({...o})}var f}function Ar(t){if(!(t instanceof HTMLAnchorElement)||!t.getAttribute("href")||t.hasAttribute("download")||t.closest("[g-no-boost]"))return null;const e=t.getAttribute("target")??document.querySelector("base[target]")?.getAttribute("target");if(e&&"_self"!==e.toLowerCase())return null;let n;try{n=new URL(t.href)}catch{return null}if(!["http:","https:"].includes(n.protocol)||n.origin!==location.origin||n.username||n.password)return null;if(n.href.includes("#")&&pr(n.href)===pr(location.href))return null;if(document.querySelector("base[href]")&&!t.hasAttribute("g-current-head")&&!["append","prepend"].includes(t.getAttribute("g-swap")?.toLowerCase()||""))try{if(ur(t)===or())return null}catch{return null}return n}function Cr(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target;if(!e)return;const n=e.closest("[g-router-link]");if(n){if(n.closest("[g-no-boost]"))return;return t.preventDefault(),void function(t){h();const e=t.getAttribute("g-router-link"),n=t.getAttribute("g-router-method")||"GET";if(!e||!["GET","POST","PUT","DELETE","PATCH"].includes(n.toUpperCase()))return;let r;try{r=new URL(e,window.location.href)}catch{return}if(r.origin===window.location.origin)try{const e=dt(t),s=ot(decodeURIComponent(t.getAttribute("g-router-params")||""),e,!1);kr({url:r.toString(),method:n,trigger:t,jsonData:s,changeState:!1})}catch(t){return}}(n)}const r=e.closest("a");if(!r||!r.hasAttribute("g-boost")&&!ar())return;const s=Ar(r);s&&(t.preventDefault(),kr({url:s.toString(),method:"GET",trigger:r,changeState:!0}))}function Ir(t){const e=t.target instanceof Element?t.target.closest("a[g-preload]"):null;if(!e)return;const n=Ar(e);if(!n)return;const r=qn;r?.used&&r.url===n.href&&(t.clientX===r.x&&t.clientY===r.y||t.relatedTarget instanceof Node&&e.contains(t.relatedTarget))||(qn={url:n.href,x:t.clientX,y:t.clientY,used:!1},function(t){const e=pr(t,!0);if(Wn.has(e))return;h();const n=new AbortController,r=fetch(e,{headers:{"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"},signal:n.signal,mode:"same-origin"}),s={request:r,controller:n};Wn.set(e,s),r.catch(()=>{Wn.get(e)===s&&Wn.delete(e)})}(n.href))}function Tr(t){const e=qn;if(!e||t.clientX===e.x&&t.clientY===e.y)return;const n=t.target instanceof Element?t.target.closest("a[g-preload]"):null;n instanceof HTMLAnchorElement&&n.href===e.url?(e.x=t.clientX,e.y=t.clientY):Nr()}function Nr(){qn=void 0}function Pr(t){if(t.defaultPrevented)return;const e=t.target;if(!e||"form"!==e.tagName.toLowerCase())return;if(e.closest("[g-no-boost]"))return;if(!e.hasAttribute("g-boost")&&!ar())return;if(function(t){return!(!G.has(t)||z.has(t)&&(z.delete(t),1))}(e))return;const n=t.submitter,r=t=>n?.getAttribute("form"+t)??e.getAttribute(t),s=r("target")??document.querySelector("base[target]")?.getAttribute("target"),i=(r("method")||"GET").toUpperCase(),a=["GET","POST","DIALOG"].includes(i)?i:"GET",o=r("enctype")?.toLowerCase();if(s&&"_self"!==s.toLowerCase()||"DIALOG"===a||"text/plain"===o)return;if(!ur(e))return;if(n instanceof HTMLInputElement&&"image"===n.type)return;let c;try{c=new URL(r("action")||window.location.href,document.baseURI)}catch{return}if(c.origin!==window.location.origin)return;if(t.preventDefault(),Fn.has(e))return;const l=new FormData(e,n);Fn.add(e),kr({url:c.toString(),method:a,trigger:e,form:e,formData:l,formEncoding:o,changeState:"GET"===a})}function Lr(t){const e=window.location.href,n=Xn,r=t.state||{},s=r.gyosEntryId||null,i=n?r.gyosRoutes?.[n]:void 0;if(pr(e)===pr(Jn)&&(!s||s===n))return Jn=pr(e,!0),void(Xn=s||n);t.preventDefault(),Qn?.committing&&br(Qn),Xn=s,kr({url:e,method:"GET",replace:!0,changeState:!1,popstate:!0,savedScroll:(s?$n.get(s):void 0)||r.scroll,targetSelector:i?.targetSelector,targetOutletIndex:i?.targetOutletIndex,swapMode:i?.swapMode,currentHead:i?.currentHead,historyFragment:n&&s?gr(s,n):void 0,historyEntryId:s,scrollSourceEntryId:n})}const Mr={scope:function(t,e){if(t instanceof HTMLElement){const n=Math.random().toString(36);return t.setAttribute("g-scope",n),void qe.set(n,e)}qe.set(t,e)},mount:Ke,mountAll:ze,mountTree:Ye,cleanup:te,mountedScopes:pt,markRaw:function(t){return Object.prototype.hasOwnProperty.call(t,Se)||Reflect.defineProperty(t,Se,{value:!0,enumerable:!1}),t},shallow:function(t){return Object.prototype.hasOwnProperty.call(t,Ae)||Reflect.defineProperty(t,Ae,{value:!0,enumerable:!1}),t},directive:Gt,pipe:nt,provide:function(t,e){B.set(t,e)},inject:function(t,e){if(B.has(t))return B.get(t);if(void 0!==e)return e;throw Error(`[GyosJS] Service "${t}" not found in DI container`)},getGlobalContainer:function(){return B},store:function(t,e){if(e){const r=Te(e);return n=r,Object.prototype.hasOwnProperty.call(n,we)||Reflect.defineProperty(n,we,{value:!0,enumerable:!1}),tn.set(t,r),r}var n;const r=tn.get(t);if(!r)throw Error(`[GyosJS] Store "${t}" not found`);return r},hasStore:function(t){return tn.has(t)},removeStore:function(t){tn.delete(t)},getStoreNames:function(){return Array.from(tn.keys())},on:nn,emit:function(t,...e){const n=en.get(t);n&&n.forEach(t=>{try{t(...e)}catch(t){}})},off:rn,once:function(t,e){const n=(...r)=>{rn(t,n),e(...r)};return nn(t,n)},getEventListeners:function(){const t={};return en.forEach((e,n)=>{t[n]=e.size}),t},clearAllEvents:function(){en.clear()},validator:$,validate:H,getValidator:function(t){return q.get(t)},getValidatorNames:function(){return Array.from(q.keys())},signal:I,computed:T,effect:N,batch:P,isSignal:L,isComputed:O,unref:V,untrack:R,registerTransition:function(t,e){Yt[t]=e},getTransitionConfig:function(t){if("string"==typeof t)return Yt[t]||null;const e=Array.from(t.attributes).find(t=>"g-transition"===t.name||t.name.startsWith("g-transition."));if(!e)return null;const n=e.value;try{return JSON.parse(n)}catch{const t=Yt[n];if(!t)return Yt.fade;if(e.name.startsWith("g-transition.")){const n=e.name.match(/g-transition\.(\d+)/);if(n)return{...t,duration:parseInt(n[1],10)}}return t}},useFetch:function(t){const e=I(null),n=I(!0),r=I(null);let s=0,i=!0;const a=async()=>{if(!i)return;const a=++s;n.value=!0,r.value=null,e.value=null;try{const n="function"==typeof t?await t():t;if(a!==s)return;const r="string"==typeof n?await fetch(n):n;if(!r.ok)throw Error("HTTP error! status: "+r.status);const i=await r.json();a===s&&(e.value=i)}catch(t){a===s&&(r.value=t)}finally{a===s&&(n.value=!1)}};return{data:e,loading:n,error:r,refetch:a,onMount:()=>(i=!0,a()),onUnmount:()=>{i=!1,s++,n.value=!1}}},useCounter:function(t=0){const e=I(t),n=T(()=>2*e.value);return{count:e,double:n,increment:(t=1)=>{e.update(e=>e+t)},decrement:(t=1)=>{e.value-=t},reset:()=>{e.update(()=>t)}}},useToggle:function(t=!1){const e=I(t);return{state:e,toggle:()=>{e.value=!e.value},setTrue:()=>{e.value=!0},setFalse:()=>{e.value=!1},value:e}},useLocalStorage:function(t,e){const n=localStorage.getItem(t),r=I(n?JSON.parse(n):e??""),s=r.subscribe(()=>localStorage.setItem(t,JSON.stringify(r.value)));return{state:r,remove:()=>localStorage.removeItem(t),onUnmount:s}},useInterval:function(t,e){let n=null;const r=()=>{s(),null!==e&&(n=setInterval(t,e))},s=()=>{null!==n&&(clearInterval(n),n=null)};return{start:r,stop:s,onMount:()=>r(),onUnmount:()=>s(),restart:()=>{s(),r()}}},useTimeout:function(t,e){let n=null;const r=()=>{s(),n=setTimeout(()=>{n=null,t()},e)},s=()=>{null!==n&&(clearTimeout(n),n=null)};return{start:r,clear:s,onMount:()=>r(),onUnmount:()=>s()}},useDebounce:function(t="",e){const n=I(t),r=I(t);let s=null;const i=N(()=>{const t=n.value;null!==s&&clearTimeout(s),s=setTimeout(()=>{r.value=t},e)});return{value:n,debounced:T(()=>r.value),onUnmount:()=>{i(),null!==s&&clearTimeout(s)}}},useThrottle:function(t="",e){const n=I(t),r=I(t);let s=0;const i=N(()=>{const t=n.value,i=Date.now();e>i-s||(s=i,r.value=t)});return{value:n,throttled:T(()=>r.value),onUnmount:()=>{i()}}},useMouse:function(){const t=I(0),e=I(0),n=n=>{t.value=n.clientX,e.value=n.clientY};return{x:t,y:e,onMount:()=>{window.addEventListener("mousemove",n)},onUnmount:()=>{window.removeEventListener("mousemove",n)}}},useWindowSize:function(){const t=I(window.innerWidth),e=I(window.innerHeight),n=()=>{t.value=window.innerWidth,e.value=window.innerHeight};return{width:t,height:e,onMount:()=>{window.addEventListener("resize",n)},onUnmount:()=>{window.removeEventListener("resize",n)}}},useMediaQuery:function(t){const e={},n={},r={},s=Object.keys(t);for(const i of s){const s=window.matchMedia(t[i]);n[i]=s,e[i]=I(s.matches),r[i]=t=>{e[i].value=t.matches}}return{matches:e,onMount:()=>{for(const t of s){const e=n[t],s=r[t];e.addEventListener?e.addEventListener("change",s):e.addListener(s)}},onUnmount:()=>{for(const t of s){const e=n[t],s=r[t];e.removeEventListener?e.removeEventListener("change",s):e.removeListener(s)}}}},useAsync:function(t,e=!0){const n=I(null),r=I(!1),s=I(null);let i=0,a=!0;const o=async()=>{if(!a)return;const e=++i;r.value=!0,s.value=null;try{const r=await t();e===i&&(n.value=r)}catch(t){e===i&&(s.value=t)}finally{e===i&&(r.value=!1)}};return{data:n,loading:r,error:s,execute:o,onMount:()=>(a=!0,e?o():void 0),onUnmount:()=>{a=!1,i++,r.value=!1}}},nextTick:function(t){Promise.resolve().then(t)},debounce:function(t,e){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}},throttle:function(t,e){let n=0;return(...r)=>{const s=Date.now();e>s-n||(n=s,t(...r))}},ready:e,applyDirective:function(t,e,n,r){const s=Ht.get(e);if(!s)return()=>{};const i={value:n,oldValue:void 0,arg:r};return s.mounted&&s.mounted(t,i),()=>{s.unmounted&&s.unmounted(t)}},applyTransitionStyles:function(){if("undefined"==typeof document)return;if("csp"===at())return;const t="gyos-transitions";if(document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent="\n /* Opacity utilities */\n .gyos-t-opacity-0 { opacity: 0; }\n .gyos-t-opacity-100 { opacity: 1; }\n \n /* Transform - Translate Y */\n .gyos-t-translate-y-0 { transform: translateY(0); }\n .gyos-t-translate-y--100 { transform: translateY(-100%); }\n .gyos-t-translate-y-100 { transform: translateY(100%); }\n \n /* Transform - Translate X */\n .gyos-t-translate-x-0 { transform: translateX(0); }\n .gyos-t-translate-x--100 { transform: translateX(-100%); }\n .gyos-t-translate-x-100 { transform: translateX(100%); }\n \n /* Transform - Scale */\n .gyos-t-scale-0 { transform: scale(0); }\n .gyos-t-scale-50 { transform: scale(0.5); }\n .gyos-t-scale-100 { transform: scale(1); }\n \n /* Animation Keyframes */\n @keyframes gyos-fade-in {\n\t\tfrom { opacity: 0; }\n\t\tto { opacity: 1; }\n }\n \n @keyframes gyos-fade-out {\n\t\tfrom { opacity: 1; }\n\t\tto { opacity: 0; }\n }\n \n @keyframes gyos-slide-down {\n\t\tfrom { transform: translateY(-100%); opacity: 0; }\n\t\tto { transform: translateY(0); opacity: 1; }\n }\n \n @keyframes gyos-slide-up {\n\t\tfrom { transform: translateY(100%); opacity: 0; }\n\t\tto { transform: translateY(0); opacity: 1; }\n }\n \n @keyframes gyos-scale-in {\n\t\tfrom { transform: scale(0); opacity: 0; }\n\t\tto { transform: scale(1); opacity: 1; }\n }\n \n @keyframes gyos-scale-out {\n\t\tfrom { transform: scale(1); opacity: 1; }\n\t\tto { transform: scale(0); opacity: 0; }\n }\n\n [g-cloak] {\n\t\tdisplay: none !important;\n }",document.head.appendChild(e)},startRouter:ir,onBeforeNavigate:function(t){return sr(tr,t)},onAfterNavigate:function(t){return sr(er,t)},onBeforeSwap:function(t){return sr(nr,t)},onNavigationEnd:function(t){return sr(rr,(e,n)=>t(n))},navigate:function(t,e={}){return Un(t,e,!1)},refresh:function(t={}){return Un(location.href,{history:"none",scroll:!1,...t},!0)},portalCreate:j,portalDestroy:W,setCspNonce:cn,version:"0.5.8"};var Or=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Vr=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Rr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Dr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Br="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Fr={5:Br,"5module":Br+" export import",6:Br+" const class extends export import super"},Ur=/^in(stanceof)?$/,jr=RegExp("["+Rr+"]"),Wr=RegExp("["+Rr+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function qr(t,e){for(var n=65536,r=0;r<e.length;r+=2){if((n+=e[r])>t)return!1;if((n+=e[r+1])>=t)return!0}return!1}function $r(t,e){return 65>t?36===t:91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&qr(t,Vr):t>=170&&jr.test(String.fromCharCode(t))))}function Hr(t,e){return 48>t?36===t:58>t||t>=65&&(91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&(qr(t,Vr)||qr(t,Or)):t>=170&&Wr.test(String.fromCharCode(t)))))}var Gr=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function zr(t,e){return new Gr(t,{beforeExpr:!0,binop:e})}var Yr={beforeExpr:!0},Kr={startsExpr:!0},Jr={};function Xr(t,e){return void 0===e&&(e={}),e.keyword=t,Jr[t]=new Gr(t,e)}var Qr={num:new Gr("num",Kr),regexp:new Gr("regexp",Kr),string:new Gr("string",Kr),name:new Gr("name",Kr),privateId:new Gr("privateId",Kr),eof:new Gr("eof"),bracketL:new Gr("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Gr("]"),braceL:new Gr("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Gr("}"),parenL:new Gr("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Gr(")"),comma:new Gr(",",Yr),semi:new Gr(";",Yr),colon:new Gr(":",Yr),dot:new Gr("."),question:new Gr("?",Yr),questionDot:new Gr("?."),arrow:new Gr("=>",Yr),template:new Gr("template"),invalidTemplate:new Gr("invalidTemplate"),ellipsis:new Gr("...",Yr),backQuote:new Gr("`",Kr),dollarBraceL:new Gr("${",{beforeExpr:!0,startsExpr:!0}),eq:new Gr("=",{beforeExpr:!0,isAssign:!0}),assign:new Gr("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Gr("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Gr("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:zr("||",1),logicalAND:zr("&&",2),bitwiseOR:zr("|",3),bitwiseXOR:zr("^",4),bitwiseAND:zr("&",5),equality:zr("==/!=/===/!==",6),relational:zr("</>/<=/>=",7),bitShift:zr("<</>>/>>>",8),plusMin:new Gr("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:zr("%",10),star:zr("*",10),slash:zr("/",10),starstar:new Gr("**",{beforeExpr:!0}),coalesce:zr("??",1),_break:Xr("break"),_case:Xr("case",Yr),_catch:Xr("catch"),_continue:Xr("continue"),_debugger:Xr("debugger"),_default:Xr("default",Yr),_do:Xr("do",{isLoop:!0,beforeExpr:!0}),_else:Xr("else",Yr),_finally:Xr("finally"),_for:Xr("for",{isLoop:!0}),_function:Xr("function",Kr),_if:Xr("if"),_return:Xr("return",Yr),_switch:Xr("switch"),_throw:Xr("throw",Yr),_try:Xr("try"),_var:Xr("var"),_const:Xr("const"),_while:Xr("while",{isLoop:!0}),_with:Xr("with"),_new:Xr("new",{beforeExpr:!0,startsExpr:!0}),_this:Xr("this",Kr),_super:Xr("super",Kr),_class:Xr("class",Kr),_extends:Xr("extends",Yr),_export:Xr("export"),_import:Xr("import",Kr),_null:Xr("null",Kr),_true:Xr("true",Kr),_false:Xr("false",Kr),_in:Xr("in",{beforeExpr:!0,binop:7}),_instanceof:Xr("instanceof",{beforeExpr:!0,binop:7}),_typeof:Xr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Xr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Xr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Zr=/\r\n?|\n|\u2028|\u2029/,ts=RegExp(Zr.source,"g");function es(t){return 10===t||13===t||8232===t||8233===t}function ns(t,e,n){void 0===n&&(n=t.length);for(var r=e;n>r;r++){var s=t.charCodeAt(r);if(es(s))return n-1>r&&13===s&&10===t.charCodeAt(r+1)?r+2:r+1}return-1}var rs=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ss=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,is=Object.prototype,as=is.hasOwnProperty,os=is.toString,cs=Object.hasOwn||function(t,e){return as.call(t,e)},ls=Array.isArray||function(t){return"[object Array]"===os.call(t)},us=Object.create(null);function hs(t){return us[t]||(us[t]=RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function ps(t){return t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t)}var fs=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ds=function(t,e){this.line=t,this.column=e};ds.prototype.offset=function(t){return new ds(this.line,this.column+t)};var ms=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function gs(t,e){for(var n=1,r=0;;){var s=ns(t,r,e);if(0>s)return new ds(n,e-r);++n,r=s}}var ys={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},vs=!1;function bs(t,e){return 2|(t?4:0)|(e?8:0)}var xs=function(t,e,n){this.options=t=function(t){var e={};for(var n in ys)e[n]=t&&cs(t,n)?t[n]:ys[n];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!vs&&"object"==typeof console&&console.warn&&(vs=!0),e.ecmaVersion=11):2015>e.ecmaVersion||(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=5>e.ecmaVersion),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),ls(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}if(ls(e.onComment)&&(e.onComment=function(t,e){return function(n,r,s,i,a,o){var c={type:n?"Block":"Line",value:r,start:s,end:i};t.locations&&(c.loc=new ms(this,a,o)),t.ranges&&(c.range=[s,i]),e.push(c)}}(e,e.onComment)),"commonjs"===e.sourceType&&e.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}(t),this.sourceFile=t.sourceFile,this.keywords=hs(Fr[6>t.ecmaVersion?"module"===t.sourceType?"5module":5:6]);var r="";!0!==t.allowReserved&&(r=Dr[6>t.ecmaVersion?5===t.ecmaVersion?5:3:6],"module"===t.sourceType&&(r+=" await")),this.reservedWords=hs(r);var s=(r?r+" ":"")+Dr.strict;this.reservedWordsStrict=hs(s),this.reservedWordsStrictBind=hs(s+" "+Dr.strictBind),this.input=e+"",this.containsEsc=!1,this.pos=n||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):n?(this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(Zr).length)):this.lineStart=0,this.type=Qr.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||!0===t.strict||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},_s={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};xs.prototype.parse=function(){var t=this,e=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(e)})},_s.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},_s.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},_s.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},_s.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},_s.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},_s.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},_s.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},_s.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},_s.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},_s.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t||!this.inModule&&1&t)},_s.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},xs.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,r=0;r<t.length;r++)n=t[r](n);return n},xs.parse=function(t,e){return new this(e,t).parse()},xs.parseExpressionAt=function(t,e,n){var r=new this(n,t,e);return r.nextToken(),r.parseExpression()},xs.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(xs.prototype,_s);var ws=xs.prototype,Es=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ws.strictDirective=function(t){if(5>this.options.ecmaVersion)return!1;for(;;){ss.lastIndex=t,t+=ss.exec(this.input)[0].length;var e=Es.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){ss.lastIndex=t+e[0].length;var n=ss.exec(this.input),r=n.index+n[0].length,s=this.input.charAt(r);return";"===s||"}"===s||Zr.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(r+1))}t+=e[0].length,ss.lastIndex=t,t+=ss.exec(this.input)[0].length,";"===this.input[t]&&t++}},ws.eat=function(t){return this.type===t&&(this.next(),!0)},ws.isContextual=function(t){return this.type===Qr.name&&this.value===t&&!this.containsEsc},ws.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},ws.catchStackOverflow=function(t){try{return t()}catch(t){if(!(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message))))throw t;this.raise(this.start,"Not enough stack space to parse input")}},ws.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},ws.canInsertSemicolon=function(){return this.type===Qr.eof||this.type===Qr.braceR||Zr.test(this.input.slice(this.lastTokEnd,this.start))},ws.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ws.semicolon=function(){this.eat(Qr.semi)||this.insertSemicolon()||this.unexpected()},ws.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},ws.expect=function(t){this.eat(t)||this.unexpected()},ws.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var Ss=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ws.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,e?"Assigning to rvalue":"Parenthesized pattern")}},ws.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;0>n||this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),0>r||this.raiseRecoverable(r,"Redefinition of __proto__ property")},ws.checkYieldAwaitInDefaultParams=function(){!this.yieldPos||this.awaitPos&&this.yieldPos>=this.awaitPos||this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ws.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var ks=xs.prototype;ks.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==Qr.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var i=s[r];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(t,"Program")};var As={kind:"loop"},Cs={kind:"switch"};ks.isLet=function(t){if(6>this.options.ecmaVersion||!this.isContextual("let"))return!1;ss.lastIndex=this.pos;var e=ss.exec(this.input),n=this.pos+e[0].length,r=this.fullCharCodeAt(n);if(91===r||92===r)return!0;if(t)return!1;if(123===r)return!0;if($r(r)){var s=n;do{n+=r>65535?2:1}while(Hr(r=this.fullCharCodeAt(n)));if(92===r)return!0;var i=this.input.slice(s,n);if(!Ur.test(i))return!0}return!1},ks.isAsyncFunction=function(){if(8>this.options.ecmaVersion||!this.isContextual("async"))return!1;ss.lastIndex=this.pos;var t,e=ss.exec(this.input),n=this.pos+e[0].length;return!(Zr.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(Hr(t=this.fullCharCodeAt(n+8))||92===t))},ks.isUsingKeyword=function(t,e){if(17>this.options.ecmaVersion||!this.isContextual(t?"await":"using"))return!1;ss.lastIndex=this.pos;var n=ss.exec(this.input),r=this.pos+n[0].length;if(Zr.test(this.input.slice(this.pos,r)))return!1;if(t){var s,i=r+5;if("using"!==this.input.slice(r,i)||i===this.input.length||Hr(s=this.fullCharCodeAt(i))||92===s)return!1;ss.lastIndex=i;var a=ss.exec(this.input);if(r=i+a[0].length,a&&Zr.test(this.input.slice(i,r)))return!1}var o=this.fullCharCodeAt(r);if(!$r(o)&&92!==o)return!1;var c=r;do{r+=o>65535?2:1}while(Hr(o=this.fullCharCodeAt(r)));if(92===o)return!0;var l=this.input.slice(c,r);return!(Ur.test(l)||e&&!t&&"of"===l&&(ss.lastIndex=r,r+=ss.exec(this.input)[0].length,61!==this.input.charCodeAt(r)||61===(o=this.input.charCodeAt(r+1))||62===o))},ks.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},ks.isUsing=function(t){return this.isUsingKeyword(!1,t)},ks.parseStatement=function(t,e,n){var r,s=this.type,i=this.startNode();switch(this.isLet(t)&&(s=Qr._var,r="let"),s){case Qr._break:case Qr._continue:return this.parseBreakContinueStatement(i,s.keyword);case Qr._debugger:return this.parseDebuggerStatement(i);case Qr._do:return this.parseDoStatement(i);case Qr._for:return this.parseForStatement(i);case Qr._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case Qr._class:return t&&this.unexpected(),this.parseClass(i,!0);case Qr._if:return this.parseIfStatement(i);case Qr._return:return this.parseReturnStatement(i);case Qr._switch:return this.parseSwitchStatement(i);case Qr._throw:return this.parseThrowStatement(i);case Qr._try:return this.parseTryStatement(i);case Qr._const:case Qr._var:return r=r||this.value,t&&"var"!==r&&this.unexpected(),this.parseVarStatement(i,r);case Qr._while:return this.parseWhileStatement(i);case Qr._with:return this.parseWithStatement(i);case Qr.braceL:return this.parseBlock(!0,i);case Qr.semi:return this.parseEmptyStatement(i);case Qr._export:case Qr._import:if(this.options.ecmaVersion>10&&s===Qr._import){ss.lastIndex=this.pos;var a=ss.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===Qr._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),t&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),"await using"===l&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,"VariableDeclaration");var u=this.value,h=this.parseExpression();return s===Qr.name&&"Identifier"===h.type&&this.eat(Qr.colon)?this.parseLabeledStatement(i,u,h,t):this.parseExpressionStatement(i,h)}},ks.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Qr.semi)||this.insertSemicolon()?t.label=null:this.type!==Qr.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if(null==t.label||s.name===t.label.name){if(null!=s.kind&&(n||"loop"===s.kind))break;if(t.label&&n)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},ks.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},ks.parseDoStatement=function(t){return this.next(),this.labels.push(As),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(Qr._while),t.test=this.parseParenExpression(),6>this.options.ecmaVersion?this.semicolon():this.eat(Qr.semi),this.finishNode(t,"DoWhileStatement")},ks.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(As),this.enterScope(0),this.expect(Qr.parenL),this.type===Qr.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Qr._var||this.type===Qr._const||n){var r=this.startNode(),s=n?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}var i=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var c=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(c,!0,o),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,e)}var l=this.containsEsc,u=new Ss,h=this.start,p=e>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===Qr._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===Qr._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(p.start!==h||l||"Identifier"!==p.type||"async"!==p.name?9>this.options.ecmaVersion||(t.await=!1):this.unexpected()),i&&a&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,u),this.checkLValPattern(p),this.parseForIn(t,p)):(this.checkExpressionErrors(u,!0),e>-1&&this.unexpected(e),this.parseFor(t,p))},ks.parseForAfterInit=function(t,e,n){return(this.type===Qr._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.type===Qr._in?("using"!==e.kind&&"await using"!==e.kind||e.declarations[0].init||this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&n>-1&&this.unexpected(n)):9>this.options.ecmaVersion||(t.await=n>-1),this.parseForIn(t,e)):(n>-1&&this.unexpected(n),this.parseFor(t,e))},ks.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,Ts|(n?0:Ns),!1,e)},ks.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(Qr._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},ks.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Qr.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},ks.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Qr.braceL),this.labels.push(Cs),this.enterScope(1024);for(var n=!1;this.type!==Qr.braceR;)if(this.type===Qr._case||this.type===Qr._default){var r=this.type===Qr._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Qr.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},ks.parseThrowStatement=function(t){return this.next(),Zr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Is=[];ks.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(Qr.parenR),t},ks.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Qr._catch){var e=this.startNode();this.next(),this.eat(Qr.parenL)?e.param=this.parseCatchClauseParam():(10>this.options.ecmaVersion&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Qr._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},ks.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")},ks.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(As),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},ks.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},ks.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},ks.parseLabeledStatement=function(t,e,n,r){for(var s=0,i=this.labels;s<i.length;s+=1)i[s].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===Qr._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var c=this.labels[o];if(c.statementStart!==t.start)break;c.statementStart=this.start,c.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},ks.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},ks.parseBlock=function(t,e,n){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(Qr.braceL),t&&this.enterScope(0);this.type!==Qr.braceR;){var r=this.parseStatement(null);e.body.push(r)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},ks.parseFor=function(t,e){return t.init=e,this.expect(Qr.semi),t.test=this.type===Qr.semi?null:this.parseExpression(),this.expect(Qr.semi),t.update=this.type===Qr.parenR?null:this.parseExpression(),this.expect(Qr.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},ks.parseForIn=function(t,e){var n=this.type===Qr._in;return this.next(),"VariableDeclaration"!==e.type||null==e.declarations[0].init||n&&this.options.ecmaVersion>=8&&!this.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(e.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(Qr.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")},ks.parseVar=function(t,e,n,r){for(t.declarations=[],t.kind=n;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(Qr.eq)?s.init=this.parseMaybeAssign(e):r||"const"!==n||this.type===Qr._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||17>this.options.ecmaVersion||this.type===Qr._in||this.isContextual("of")?r||"Identifier"===s.id.type||e&&(this.type===Qr._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(Qr.comma))break}return t},ks.parseVarId=function(t,e){t.id="using"===e||"await using"===e?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Ts=1,Ns=2;function Ps(t,e){var n=e.key.name,r=t[n],s="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(s=(e.static?"s":"i")+e.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(t[n]="true",!1):!!r||(t[n]=s,!1)}function Ls(t,e){var n=t.computed,r=t.key;return!n&&("Identifier"===r.type&&r.name===e||"Literal"===r.type&&r.value===e)}ks.parseFunction=function(t,e,n,r,s){this.initFunction(t),9>this.options.ecmaVersion&&(6>this.options.ecmaVersion||r)||(this.type===Qr.star&&e&Ns&&this.unexpected(),t.generator=this.eat(Qr.star)),8>this.options.ecmaVersion||(t.async=!!r),e&Ts&&(t.id=4&e&&this.type!==Qr.name?null:this.parseIdent(),!t.id||e&Ns||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bs(t.async,t.generator)),e&Ts||(t.id=this.type===Qr.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,s),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Ts?"FunctionDeclaration":"FunctionExpression")},ks.parseFunctionParams=function(t){this.expect(Qr.parenL),t.params=this.parseBindingList(Qr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ks.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),s=this.startNode(),i=!1;for(s.body=[],this.expect(Qr.braceL);this.type!==Qr.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(i&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),i=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ps(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},ks.parseClassElement=function(t){if(this.eat(Qr.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),r="",s=!1,i=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(Qr.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Qr.star?o=!0:r="static"}if(n.static=o,r||8>e||!this.eatContextual("async")||(!this.isClassElementNameStart()&&this.type!==Qr.star||this.canInsertSemicolon()?r="async":i=!0),r||9>e&&i||!this.eat(Qr.star)||(s=!0),!r&&!i&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),13>e||this.type===Qr.parenL||"method"!==a||s||i){var l=!n.static&&Ls(n,"constructor"),u=l&&t;l&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":a,this.parseClassMethod(n,s,i,u)}else this.parseClassField(n);return n},ks.isClassElementNameStart=function(){return this.type===Qr.name||this.type===Qr.privateId||this.type===Qr.num||this.type===Qr.string||this.type===Qr.bracketL||this.type.keyword},ks.parseClassElementName=function(t){this.type===Qr.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},ks.parseClassMethod=function(t,e,n,r){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),n&&this.raise(s.start,"Constructor can't be an async method")):t.static&&Ls(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var i=t.value=this.parseMethod(e,n,r);return"get"===t.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===t.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},ks.parseClassField=function(t){return Ls(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Ls(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Qr.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},ks.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Qr.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},ks.parseClassId=function(t,e){this.type===Qr.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},ks.parseClassSuper=function(t){t.superClass=this.eat(Qr._extends)?this.parseExprSubscripts(null,!1):null},ks.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},ks.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=0===r?null:this.privateNameStack[r-1],i=0;i<n.length;++i){var a=n[i];cs(e,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},ks.parseExportAllDeclaration=function(t,e){return 11>this.options.ecmaVersion||(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==Qr.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},ks.parseExport=function(t,e){if(this.next(),this.eat(Qr.star))return this.parseExportAllDeclaration(t,e);if(this.eat(Qr._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,16>this.options.ecmaVersion||(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Qr.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause());else{for(var n=0,r=t.specifiers;n<r.length;n+=1){var s=r[n];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,16>this.options.ecmaVersion||(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},ks.parseExportDeclaration=function(t){return this.parseStatement(null)},ks.parseExportDefaultDeclaration=function(){var t;if(this.type===Qr._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Ts,!1,t)}if(this.type===Qr._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},ks.checkExport=function(t,e,n){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),cs(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},ks.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e,e.start);else if("ObjectPattern"===n)for(var r=0,s=e.properties;r<s.length;r+=1){var i=s[r];this.checkPatternExport(t,i)}else if("ArrayPattern"===n)for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkPatternExport(t,c)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n&&this.checkPatternExport(t,e.argument)},ks.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var s=r[n];this.checkPatternExport(t,s.id)}},ks.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},ks.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},ks.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(Qr.braceL);!this.eat(Qr.braceR);){if(n)n=!1;else if(this.expect(Qr.comma),this.afterTrailingComma(Qr.braceR))break;e.push(this.parseExportSpecifier(t))}return e},ks.parseImport=function(t){return this.next(),this.type===Qr.string?(t.specifiers=Is,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Qr.string?this.parseExprAtom():this.unexpected()),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},ks.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},ks.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},ks.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},ks.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Qr.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(Qr.comma)))return t;if(this.type===Qr.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(Qr.braceL);!this.eat(Qr.braceR);){if(e)e=!1;else if(this.expect(Qr.comma),this.afterTrailingComma(Qr.braceR))break;t.push(this.parseImportSpecifier())}return t},ks.parseWithClause=function(){var t=[];if(!this.eat(Qr._with))return t;this.expect(Qr.braceL);for(var e={},n=!0;!this.eat(Qr.braceR);){if(n)n=!1;else if(this.expect(Qr.comma),this.afterTrailingComma(Qr.braceR))break;var r=this.parseImportAttribute(),s="Identifier"===r.key.type?r.key.name:r.key.value;cs(e,s)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+s+"'"),e[s]=!0,t.push(r)}return t},ks.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===Qr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Qr.colon),this.type!==Qr.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},ks.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Qr.string){var t=this.parseLiteral(this.value);return fs.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},ks.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},ks.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var Ms=xs.prototype;Ms.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,s=t.properties;r<s.length;r+=1){var i=s[r];this.toAssignable(i,e),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},Ms.toAssignableList=function(t,e){for(var n=t.length,r=0;n>r;r++){var s=t[r];s&&this.toAssignable(s,e)}if(n){var i=t[n-1];6===this.options.ecmaVersion&&e&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return t},Ms.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Ms.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Qr.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Ms.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Qr.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Qr.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Qr.braceL:return this.parseObj(!0)}return this.parseIdent()},Ms.parseBindingList=function(t,e,n,r){for(var s=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(Qr.comma),e&&this.type===Qr.comma)s.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===Qr.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===Qr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}s.push(this.parseAssignableListItem(r))}return s},Ms.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},Ms.parseBindingListItem=function(t){return t},Ms.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),6>this.options.ecmaVersion||!this.eat(Qr.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Ms.checkLValSimple=function(t,e,n){void 0===e&&(e=0);var r=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(cs(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}},Ms.checkLValPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var r=0,s=t.properties;r<s.length;r+=1){var i=s[r];this.checkLValInnerPattern(i,e,n)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,e,n)}break;default:this.checkLValSimple(t,e,n)}},Ms.checkLValInnerPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,n);break;case"RestElement":this.checkLValPattern(t.argument,e,n);break;default:this.checkLValPattern(t,e,n)}};var Os=function(t,e,n,r,s){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=r,this.generator=!!s},Vs={b_stat:new Os("{",!1),b_expr:new Os("{",!0),b_tmpl:new Os("${",!1),p_stat:new Os("(",!1),p_expr:new Os("(",!0),q_tmpl:new Os("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Os("function",!1),f_expr:new Os("function",!0),f_expr_gen:new Os("function",!0,!1,null,!0),f_gen:new Os("function",!1,!1,null,!0)},Rs=xs.prototype;Rs.initialContext=function(){return[Vs.b_stat]},Rs.curContext=function(){return this.context[this.context.length-1]},Rs.braceIsBlock=function(t){var e=this.curContext();return e===Vs.f_expr||e===Vs.f_stat||(t!==Qr.colon||e!==Vs.b_stat&&e!==Vs.b_expr?t===Qr._return||t===Qr.name&&this.exprAllowed?Zr.test(this.input.slice(this.lastTokEnd,this.start)):t===Qr._else||t===Qr.semi||t===Qr.eof||t===Qr.parenR||t===Qr.arrow||(t===Qr.braceL?e===Vs.b_stat:t!==Qr._var&&t!==Qr._const&&t!==Qr.name&&!this.exprAllowed):!e.isExpr)},Rs.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},Rs.updateContext=function(t){var e,n=this.type;n.keyword&&t===Qr.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},Rs.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},Qr.parenR.updateContext=Qr.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===Vs.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Qr.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?Vs.b_stat:Vs.b_expr),this.exprAllowed=!0},Qr.dollarBraceL.updateContext=function(){this.context.push(Vs.b_tmpl),this.exprAllowed=!0},Qr.parenL.updateContext=function(t){var e=t===Qr._if||t===Qr._for||t===Qr._with||t===Qr._while;this.context.push(e?Vs.p_stat:Vs.p_expr),this.exprAllowed=!0},Qr.incDec.updateContext=function(){},Qr._function.updateContext=Qr._class.updateContext=function(t){!t.beforeExpr||t===Qr._else||t===Qr.semi&&this.curContext()!==Vs.p_stat||t===Qr._return&&Zr.test(this.input.slice(this.lastTokEnd,this.start))||(t===Qr.colon||t===Qr.braceL)&&this.curContext()===Vs.b_stat?this.context.push(Vs.f_stat):this.context.push(Vs.f_expr),this.exprAllowed=!1},Qr.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Qr.backQuote.updateContext=function(){this.curContext()===Vs.q_tmpl?this.context.pop():this.context.push(Vs.q_tmpl),this.exprAllowed=!1},Qr.star.updateContext=function(t){if(t===Qr._function){var e=this.context.length-1;this.context[e]===Vs.f_expr?this.context[e]=Vs.f_expr_gen:this.context[e]=Vs.f_gen}this.exprAllowed=!0},Qr.name.updateContext=function(t){var e=!1;6>this.options.ecmaVersion||t===Qr.dot||("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var Ds=xs.prototype;function Bs(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&Bs(t.expression)}function Fs(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&Fs(t.expression)||"ParenthesizedExpression"===t.type&&Fs(t.expression)}Ds.checkPropClash=function(t,e,n){if((9>this.options.ecmaVersion||"SpreadElement"!==t.type)&&(6>this.options.ecmaVersion||!(t.computed||t.method||t.shorthand))){var r,s=t.key;switch(s.type){case"Identifier":r=s.name;break;case"Literal":r=s.value+"";break;default:return}var i=t.kind;if(6>this.options.ecmaVersion){var a=e[r="$"+r];a?("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(s.start,"Redefinition of property"):a=e[r]={init:!1,get:!1,set:!1},a[i]=!0}else"__proto__"===r&&"init"===i&&(e.proto&&(n?0>n.doubleProto&&(n.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),e.proto=!0)}},Ds.parseExpression=function(t,e){var n=this;return this.catchStackOverflow(function(){var r=n.start,s=n.startLoc,i=n.parseMaybeAssign(t,e);if(n.type===Qr.comma){var a=n.startNodeAt(r,s);for(a.expressions=[i];n.eat(Qr.comma);)a.expressions.push(n.parseMaybeAssign(t,e));return n.finishNode(a,"SequenceExpression")}return i})},Ds.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,s=-1,i=-1,a=-1;e?(s=e.parenthesizedAssign,i=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Ss,r=!0);var o=this.start,c=this.startLoc;this.type!==Qr.parenL&&this.type!==Qr.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var l=this.parseMaybeConditional(t,e);if(n&&(l=n.call(this,l,o,c)),this.type.isAssign){var u=this.startNodeAt(o,c);return u.operator=this.value,this.type===Qr.eq&&(l=this.toAssignable(l,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign<l.start||(e.shorthandAssign=-1),this.type===Qr.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),s>-1&&(e.parenthesizedAssign=s),i>-1&&(e.trailingComma=i),l},Ds.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,s=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return s;if(("ArrowFunctionExpression"!==s.type||s.start!==n)&&this.eat(Qr.question)){var i=this.startNodeAt(n,r);return i.test=s,i.consequent=this.parseMaybeAssign(),this.expect(Qr.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return s},Ds.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,s=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||s.start===n&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,n,r,-1,t)},Ds.parseExprOp=function(t,e,n,r,s){var i=this.type.binop;if(null!=i&&(!s||this.type!==Qr._in)&&i>r){var a=this.type===Qr.logicalOR||this.type===Qr.logicalAND,o=this.type===Qr.coalesce;o&&(i=Qr.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,u,i,s),p=this.buildBinary(e,n,t,h,c,a||o);return(a&&this.type===Qr.coalesce||o&&(this.type===Qr.logicalOR||this.type===Qr.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,n,r,s)}return t},Ds.buildBinary=function(t,e,n,r,s,i){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=n,a.operator=s,a.right=r,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},Ds.parseMaybeUnary=function(t,e,n,r){var s,i=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(r),e=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===Qr.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Bs(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Fs(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,s=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==Qr.privateId){if(s=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==Qr._in&&this.unexpected();return n||"ArrowFunctionExpression"===s.type&&s.start===i||!this.eat(Qr.starstar)?s:e?void this.unexpected(this.lastTokStart):this.buildBinary(i,a,s,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},Ds.parseExprSubscripts=function(t,e){var n=this.start,r=this.startLoc,s=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var i=this.parseSubscripts(s,n,r,!1,e);return t&&"MemberExpression"===i.type&&(t.parenthesizedAssign<i.start||(t.parenthesizedAssign=-1),t.parenthesizedBind<i.start||(t.parenthesizedBind=-1),t.trailingComma<i.start||(t.trailingComma=-1)),i},Ds.parseSubscripts=function(t,e,n,r,s){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,n,r,i,a,s);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(e,n);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}t=o}},Ds.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Qr.arrow)},Ds.parseSubscriptAsyncArrow=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,r)},Ds.parseSubscript=function(t,e,n,r,s,i,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(Qr.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(Qr.bracketL);if(l||c&&this.type!==Qr.parenL&&this.type!==Qr.backQuote||this.eat(Qr.dot)){var u=this.startNodeAt(e,n);u.object=t,l?(u.property=this.parseExpression(),this.expect(Qr.bracketR)):this.type===Qr.privateId&&"Super"!==t.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!l,o&&(u.optional=c),t=this.finishNode(u,"MemberExpression")}else if(!r&&this.eat(Qr.parenL)){var h=new Ss,p=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(Qr.parenR,this.options.ecmaVersion>=8,!1,h);if(s&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(e,n,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(e,n);g.callee=t,g.arguments=m,o&&(g.optional=c),t=this.finishNode(g,"CallExpression")}else if(this.type===Qr.backQuote){(c||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(e,n);y.tag=t,y.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(y,"TaggedTemplateExpression")}return t},Ds.parseExprAtom=function(t,e,n){this.type===Qr.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case Qr._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==Qr.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==Qr.dot&&this.type!==Qr.bracketL&&this.type!==Qr.parenL&&this.unexpected(),this.finishNode(r,"Super");case Qr._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case Qr.name:var i=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(Qr._function))return this.overrideContext(Vs.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(Qr.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[c],!1,e);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===Qr.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Qr.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[c],!0,e)}return c;case Qr.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case Qr.num:case Qr.string:return this.parseLiteral(this.value);case Qr._null:case Qr._true:case Qr._false:return(r=this.startNode()).value=this.type===Qr._null?null:this.type===Qr._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case Qr.parenL:var u=this.start,h=this.parseParenAndDistinguishExpression(s,e);return t&&(0>t.parenthesizedAssign&&!this.isSimpleAssignTarget(h)&&(t.parenthesizedAssign=u),0>t.parenthesizedBind&&(t.parenthesizedBind=u)),h;case Qr.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(Qr.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case Qr.braceL:return this.overrideContext(Vs.b_expr),this.parseObj(!1,t);case Qr._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case Qr._class:return this.parseClass(this.startNode(),!1);case Qr._new:return this.parseNew();case Qr.backQuote:return this.parseTemplate();case Qr._import:return 11>this.options.ecmaVersion?this.unexpected():this.parseExprImport(n);default:return this.parseExprAtomDefault()}},Ds.parseExprAtomDefault=function(){this.unexpected()},Ds.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Qr.parenL&&!t)return this.parseDynamicImport(e);if(this.type===Qr.dot){var n=this.startNodeAt(e.start,e.loc&&e.loc.start);return n.name="import",e.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(e)}this.unexpected()},Ds.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),16>this.options.ecmaVersion){if(!this.eat(Qr.parenR)){var e=this.start;this.eat(Qr.comma)&&this.eat(Qr.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}}else this.eat(Qr.parenR)?t.options=null:(this.expect(Qr.comma),this.afterTrailingComma(Qr.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(Qr.parenR)||(this.expect(Qr.comma),this.afterTrailingComma(Qr.parenR)||this.unexpected())));return this.finishNode(t,"ImportExpression")},Ds.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},Ds.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=null!=e.value?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},Ds.parseParenExpression=function(){this.expect(Qr.parenL);var t=this.parseExpression();return this.expect(Qr.parenR),t},Ds.shouldParseArrow=function(t){return!this.canInsertSemicolon()},Ds.parseParenAndDistinguishExpression=function(t,e){var n,r=this.start,s=this.startLoc,i=this.options.ecmaVersion>=8;if(6>this.options.ecmaVersion)n=this.parseParenExpression();else{this.next();var a,o=this.start,c=this.startLoc,l=[],u=!0,h=!1,p=new Ss,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Qr.parenR;){if(u?u=!1:this.expect(Qr.comma),i&&this.afterTrailingComma(Qr.parenR,!0)){h=!0;break}if(this.type===Qr.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===Qr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(Qr.parenR),t&&this.shouldParseArrow(l)&&this.eat(Qr.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,s,l,e);l.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((n=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(n,"SequenceExpression",m,g)):n=l[0]}if(this.options.preserveParens){var y=this.startNodeAt(r,s);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},Ds.parseParenItem=function(t){return t},Ds.parseParenArrowList=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,r)};var Us=[];Ds.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Qr.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),"Super"===t.callee.type&&this.raiseRecoverable(r,"Invalid use of 'super'"),this.eat(Qr.parenL)?t.arguments=this.parseExprList(Qr.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Us,this.finishNode(t,"NewExpression")},Ds.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Qr.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Qr.backQuote,this.finishNode(n,"TemplateElement")},Ds.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===Qr.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Qr.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Qr.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},Ds.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Qr.name||this.type===Qr.num||this.type===Qr.string||this.type===Qr.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Qr.star)&&!Zr.test(this.input.slice(this.lastTokEnd,this.start))},Ds.parseObj=function(t,e){var n=this.startNode(),r=!0,s={};for(n.properties=[],this.next();!this.eat(Qr.braceR);){if(r)r=!1;else if(this.expect(Qr.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Qr.braceR))break;var i=this.parseProperty(t,e);t||this.checkPropClash(i,s,e),n.properties.push(i)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},Ds.parseProperty=function(t,e){var n,r,s,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Qr.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===Qr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===Qr.comma&&e&&0>e.trailingComma&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));6>this.options.ecmaVersion||(a.method=!1,a.shorthand=!1,(t||e)&&(s=this.start,i=this.startLoc),t||(n=this.eat(Qr.star)));var o=this.containsEsc;return this.parsePropertyName(a),t||o||8>this.options.ecmaVersion||n||!this.isAsyncProp(a)?r=!1:(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Qr.star),this.parsePropertyName(a)),this.parsePropertyValue(a,t,n,r,s,i,e,o),this.finishNode(a,"Property")},Ds.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var n="get"===t.kind?0:1;if(t.value.params.length!==n){var r=t.value.start;"get"===t.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},Ds.parsePropertyValue=function(t,e,n,r,s,i,a,o){(n||r)&&this.type===Qr.colon&&this.unexpected(),this.eat(Qr.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):6>this.options.ecmaVersion||this.type!==Qr.parenL?e||o||5>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Qr.comma||this.type===Qr.braceR||this.type===Qr.eq?6>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type?this.unexpected():((n||r)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e?t.value=this.parseMaybeDefault(s,i,this.copyNode(t.key)):this.type===Qr.eq&&a?(0>a.shorthandAssign&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,i,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):((n||r)&&this.unexpected(),this.parseGetterSetter(t)):(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,r),t.kind="init")},Ds.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Qr.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Qr.bracketR),t.key;t.computed=!1}return t.key=this.type===Qr.num||this.type===Qr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ds.initFunction=function(t){t.id=null,6>this.options.ecmaVersion||(t.generator=t.expression=!1),8>this.options.ecmaVersion||(t.async=!1)},Ds.parseMethod=function(t,e,n){var r=this.startNode(),s=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),6>this.options.ecmaVersion||(r.generator=t),8>this.options.ecmaVersion||(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|bs(e,r.generator)|(n?128:0)),this.expect(Qr.parenL),r.params=this.parseBindingList(Qr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},Ds.parseArrowExpression=function(t,e,n,r){var s=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|bs(n,!1)),this.initFunction(t),8>this.options.ecmaVersion||(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},Ds.parseFunctionBody=function(t,e,n,r){var s=e&&this.type!==Qr.braceL,i=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);i&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!i&&!a&&!e&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!i),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=c}this.exitScope()},Ds.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},Ds.checkParams=function(t,e){for(var n=Object.create(null),r=0,s=t.params;r<s.length;r+=1){var i=s[r];this.checkLValInnerPattern(i,1,e?null:n)}},Ds.parseExprList=function(t,e,n,r){for(var s=[],i=!0;!this.eat(t);){if(i)i=!1;else if(this.expect(Qr.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===Qr.comma?a=null:this.type===Qr.ellipsis?(a=this.parseSpread(r),r&&this.type===Qr.comma&&0>r.trailingComma&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s},Ds.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==r||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),6>this.options.ecmaVersion&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},Ds.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},Ds.parseIdentNode=function(){var t=this.startNode();return this.type===Qr.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=Qr.name):this.unexpected(),t},Ds.parsePrivateIdent=function(){var t=this.startNode();return this.type===Qr.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},Ds.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===Qr.semi||this.canInsertSemicolon()||this.type!==Qr.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(Qr.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},Ds.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var js=xs.prototype;js.raise=function(t,e){var n=gs(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r},js.raiseRecoverable=js.raise,js.curPosition=function(){if(this.options.locations)return new ds(this.curLine,this.pos-this.lineStart)};var Ws=xs.prototype,qs=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ws.enterScope=function(t){this.scopeStack.push(new qs(t))},Ws.exitScope=function(){this.scopeStack.pop()},Ws.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Ws.declareName=function(t,e,n){var r=!1;if(2===e){var s=this.currentScope();r=s.lexical.indexOf(t)>-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var i=this.currentScope();r=this.treatFunctionsAsVar?i.lexical.indexOf(t)>-1:i.lexical.indexOf(t)>-1||i.var.indexOf(t)>-1,i.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){r=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},Ws.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Ws.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ws.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Ws.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var $s=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new ms(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Hs=xs.prototype;function Gs(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}Hs.startNode=function(){return new $s(this,this.start,this.startLoc)},Hs.startNodeAt=function(t,e){return new $s(this,t,e)},Hs.finishNode=function(t,e){return Gs.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Hs.finishNodeAt=function(t,e,n,r){return Gs.call(this,t,e,n,r)},Hs.copyNode=function(t){var e=new $s(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var zs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ys=zs+" Extended_Pictographic",Ks=Ys+" EBase EComp EMod EPres ExtPict",Js={9:zs,10:Ys,11:Ys,12:Ks,13:Ks,14:Ks},Xs={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Qs="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Zs="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ti=Zs+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ei=ti+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ni=ei+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ri=ni+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",si={9:Zs,10:ti,11:ei,12:ni,13:ri,14:ri+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},ii={};function ai(t){var e=ii[t]={binary:hs(Js[t]+" "+Qs),binaryOfStrings:hs(Xs[t]),nonBinary:{General_Category:hs(Qs),Script:hs(si[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var oi=0,ci=[9,10,11,12,13,14];oi<ci.length;oi+=1)ai(ci[oi]);var li=xs.prototype,ui=function(t,e){this.parent=t,this.base=e||this};ui.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var n=t;n;n=n.parent)if(e.base===n.base&&e!==n)return!0;return!1},ui.prototype.sibling=function(){return new ui(this.parent,this.base)};var hi=function(t){this.parser=t,this.validFlags="gim"+(6>t.options.ecmaVersion?"":"uy")+(9>t.options.ecmaVersion?"":"s")+(13>t.options.ecmaVersion?"":"d")+(15>t.options.ecmaVersion?"":"v"),this.unicodeProperties=ii[14>t.options.ecmaVersion?t.options.ecmaVersion:14],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function pi(t){return 105===t||109===t||115===t}function fi(t){return 36===t||t>=40&&43>=t||46===t||63===t||t>=91&&94>=t||t>=123&&125>=t}function di(t){return t>=65&&90>=t||t>=97&&122>=t}function mi(t){return di(t)||95===t}function gi(t){return mi(t)||yi(t)}function yi(t){return t>=48&&57>=t}function vi(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function bi(t){return 65>t||t>70?97>t||t>102?t-48:t-97+10:t-65+10}function xi(t){return t>=48&&55>=t}hi.prototype.reset=function(t,e,n){var r=-1!==n.indexOf("v"),s=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},hi.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},hi.prototype.at=function(t,e){void 0===e&&(e=!1);var n=this.source,r=n.length;if(t>=r)return-1;var s=n.charCodeAt(t);if(!e&&!this.switchU||55295>=s||s>=57344||t+1>=r)return s;var i=n.charCodeAt(t+1);return 56320>i||i>57343?s:(s<<10)+i-56613888},hi.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var n=this.source,r=n.length;if(t>=r)return r;var s,i=n.charCodeAt(t);return(e||this.switchU)&&i>55295&&57344>i&&r>t+1&&(s=n.charCodeAt(t+1))>=56320&&57343>=s?t+2:t+1},hi.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},hi.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},hi.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},hi.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},hi.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var n=this.pos,r=0,s=t;r<s.length;r+=1){var i=s[r],a=this.at(n,e);if(-1===a||a!==i)return!1;n=this.nextIndex(n,e)}return this.pos=n,!0},li.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=!1,s=!1,i=0;i<n.length;i++){var a=n.charAt(i);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(a,i+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(t.start,"Invalid regular expression flag")},li.validateRegExpPattern=function(t){this.regexp_pattern(t),t.switchN||9>this.options.ecmaVersion||!function(t){for(var e in t)return!0;return!1}(t.groupNames)||(t.switchN=!0,this.regexp_pattern(t))},li.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];t.groupNames[r]||t.raise("Invalid named capture referenced")}},li.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new ui(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},li.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},li.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},li.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(9>this.options.ecmaVersion||(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},li.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},li.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},li.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return-1!==s&&r>s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},li.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},li.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},li.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),r=t.eat(45);if(n||r){for(var s=0;s<n.length;s++){var i=n.charAt(s);n.indexOf(i,s+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(r){var a=this.regexp_eatModifiers(t);n||a||58!==t.current()||t.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var c=a.charAt(o);(a.indexOf(c,o+1)>-1||n.indexOf(c)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},li.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(9>this.options.ecmaVersion?63===t.current()&&t.raise("Invalid group"):this.regexp_groupSpecifier(t),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},li.regexp_eatModifiers=function(t){for(var e="",n=0;-1!==(n=t.current())&&pi(n);)e+=ps(n),t.advance();return e},li.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},li.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},li.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!fi(e)&&(t.lastIntValue=e,t.advance(),!0)},li.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!fi(n);)t.advance();return t.pos!==e},li.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return-1!==e&&36!==e&&(40>e||e>43)&&46!==e&&63!==e&&91!==e&&94!==e&&124!==e&&(t.advance(),!0)},li.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(e)for(var r=0,s=n;r<s.length;r+=1)s[r].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},li.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},li.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=ps(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=ps(t.lastIntValue);return!0}return!1},li.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),function(t){return $r(t,!0)||36===t||95===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},li.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),function(t){return Hr(t,!0)||36===t||95===t||8204===t||8205===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},li.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},li.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},li.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},li.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},li.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},li.regexp_eatZero=function(t){return 48===t.current()&&!yi(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},li.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},li.regexp_eatControlLetter=function(t){var e=t.current();return!!di(e)&&(t.lastIntValue=e%32,t.advance(),!0)},li.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var n,r=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(s&&i>=55296&&56319>=i){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&57343>=o)return t.lastIntValue=1024*(i-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=i}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(n=t.lastIntValue)>=0&&1114111>=n)return!0;s&&t.raise("Invalid unicode escape"),t.pos=r}return!1},li.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},li.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&57>=e){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&57>=e);return!0}return!1},li.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===e)||112===e)){var r;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===r&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return 0},li.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},li.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){cs(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},li.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},li.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";mi(e=t.current());)t.lastStringValue+=ps(e),t.advance();return""!==t.lastStringValue},li.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";gi(e=t.current());)t.lastStringValue+=ps(e),t.advance();return""!==t.lastStringValue},li.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},li.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===n&&t.raise("Negated character class may contain strings"),!0}return!1},li.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},li.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},li.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||xi(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},li.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},li.regexp_classSetExpression=function(t){var e,n=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(n=2);for(var r=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(n=1):t.raise("Invalid character in character class");if(r!==t.pos)return n;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return n}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return n;2===e&&(n=2)}},li.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return-1!==n&&-1!==r&&n>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},li.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},li.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return n&&2===r&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},li.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=e}return null},li.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},li.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},li.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t)&&(t.eat(98)?(t.lastIntValue=8,0):(t.pos=e,1)));var n=t.current();return!(0>n||n===t.lookahead()&&function(t){return 33===t||t>=35&&38>=t||t>=42&&44>=t||46===t||t>=58&&64>=t||94===t||96===t||126===t}(n)||function(t){return 40===t||41===t||45===t||47===t||t>=91&&93>=t||t>=123&&125>=t}(n)||(t.advance(),t.lastIntValue=n,0))},li.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&62>=t||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},li.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!yi(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},li.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},li.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;yi(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},li.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;vi(n=t.current());)t.lastIntValue=16*t.lastIntValue+bi(n),t.advance();return t.pos!==e},li.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;3>=e&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},li.regexp_eatOctalDigit=function(t){var e=t.current();return xi(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},li.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;e>r;++r){var s=t.current();if(!vi(s))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+bi(s),t.advance()}return!0};var _i=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ms(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},wi=xs.prototype;function Ei(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}wi.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new _i(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},wi.getToken=function(){return this.next(),new _i(this)},"undefined"!=typeof Symbol&&(wi[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Qr.eof,value:e}}}}),wi.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos<this.input.length?t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos()):this.finishToken(Qr.eof)},wi.readToken=function(t){return $r(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},wi.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(55295>=e||e>=56320)return e;var n=this.input.charCodeAt(t+1);return n>56319&&57344>n?(e<<10)+n-56613888:e},wi.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},wi.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,s=e;(r=ns(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())},wi.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!es(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},wi.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&14>t||t>=5760&&rs.test(String.fromCharCode(t))))break t;++this.pos}}},wi.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},wi.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return 6>this.options.ecmaVersion||46!==t||46!==e?(++this.pos,this.finishToken(Qr.dot)):(this.pos+=3,this.finishToken(Qr.ellipsis))},wi.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Qr.assign,2):this.finishOp(Qr.slash,1)},wi.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?Qr.star:Qr.modulo;return 7>this.options.ecmaVersion||42!==t||42!==e||(++n,r=Qr.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Qr.assign,n+1):this.finishOp(r,n)},wi.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?12>this.options.ecmaVersion||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(124===t?Qr.logicalOR:Qr.logicalAND,2):this.finishOp(Qr.assign,3):61===e?this.finishOp(Qr.assign,2):this.finishOp(124===t?Qr.bitwiseOR:Qr.bitwiseAND,1)},wi.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Qr.assign,2):this.finishOp(Qr.bitwiseXOR,1)},wi.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Zr.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Qr.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Qr.assign,2):this.finishOp(Qr.plusMin,1)},wi.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Qr.assign,n+1):this.finishOp(Qr.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(Qr.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},wi.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Qr.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61!==t||62!==e||6>this.options.ecmaVersion?this.finishOp(61===t?Qr.eq:Qr.prefix,1):(this.pos+=2,this.finishToken(Qr.arrow))},wi.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var n=this.input.charCodeAt(this.pos+2);if(48>n||n>57)return this.finishOp(Qr.questionDot,2)}if(63===e)return 12>t||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(Qr.coalesce,2):this.finishOp(Qr.assign,3)}return this.finishOp(Qr.question,1)},wi.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,$r(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(Qr.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ps(t)+"'")},wi.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Qr.parenL);case 41:return++this.pos,this.finishToken(Qr.parenR);case 59:return++this.pos,this.finishToken(Qr.semi);case 44:return++this.pos,this.finishToken(Qr.comma);case 91:return++this.pos,this.finishToken(Qr.bracketL);case 93:return++this.pos,this.finishToken(Qr.bracketR);case 123:return++this.pos,this.finishToken(Qr.braceL);case 125:return++this.pos,this.finishToken(Qr.braceR);case 58:return++this.pos,this.finishToken(Qr.colon);case 96:if(6>this.options.ecmaVersion)break;return++this.pos,this.finishToken(Qr.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(Qr.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ps(t)+"'")},wi.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},wi.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos<this.input.length||this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Zr.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var s=this.input.slice(n,this.pos);++this.pos;var i=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(i);var o=this.regexpState||(this.regexpState=new hi(this));o.reset(n,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(s,a)}catch(t){}return this.finishToken(Qr.regexp,{pattern:s,flags:a,value:c})},wi.readInt=function(t,e,n){for(var r=this.options.ecmaVersion>=12&&void 0===e,s=n&&48===this.input.charCodeAt(this.pos),i=this.pos,a=0,o=0,c=0,l=null==e?1/0:e;l>c;++c,++this.pos){var u=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===u)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=u;else{if((h=97>u?65>u?48>u||u>57?1/0:u-48:u-65+10:u-97+10)>=t)break;o=u,a=a*t+h}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=e&&this.pos-i!==e?null:a},wi.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var n=this.readInt(t);return null==n&&this.raise(this.start+2,"Expected number in radix "+t),11>this.options.ecmaVersion||110!==this.input.charCodeAt(this.pos)?$r(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"):(n=Ei(this.input.slice(e,this.pos)),++this.pos),this.finishToken(Qr.num,n)},wi.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===r){var s=Ei(this.input.slice(e,this.pos));return++this.pos,$r(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Qr.num,s)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),$r(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,a=(i=this.input.slice(e,this.pos),n?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(Qr.num,a)},wi.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){6>this.options.ecmaVersion&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},wi.readString=function(t){for(var e="",n=++this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(10>this.options.ecmaVersion&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(es(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Qr.string,e)};var Si={};function ki(t,e){return xs.parse(t,e)}wi.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Si)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},wi.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Si;this.raise(t,e)},wi.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Qr.template&&this.type!==Qr.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Qr.template,t)):36===n?(this.pos+=2,this.finishToken(Qr.dollarBraceL)):(++this.pos,this.finishToken(Qr.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(es(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},wi.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Qr.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},wi.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ps(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(e>=48&&55>=e){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),"0"===r&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return es(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},wi.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},wi.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Hr(s,r))this.pos+=s>65535?2:1;else{if(92!==s)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?$r:Hr)(a,r)||this.invalidStringToken(i,"Invalid Unicode escape"),t+=ps(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},wi.readWord=function(){var t=this.readWord1(),e=Qr.name;return this.keywords.test(t)&&(e=Jr[t]),this.finishToken(e,t)},xs.acorn={Parser:xs,version:"8.18.0",defaultOptions:ys,Position:ds,SourceLocation:ms,getLineInfo:gs,Node:$s,TokenType:Gr,tokTypes:Qr,keywordTypes:Jr,TokContext:Os,tokContexts:Vs,isIdentifierChar:Hr,isIdentifierStart:$r,Token:_i,isNewLine:es,lineBreak:Zr,lineBreakG:ts,nonASCIIwhitespace:rs};class Ai{constructor(t){this.value=t}}const Ci=new Map,Ii=new Map,Ti=new Set(["constructor","__proto__","prototype"]),Ni=Symbol("GyosJS CSP optional chain");function Pi(t,e,n){const r="number"==typeof n?.start?" at position "+n.start:"";return Error(`[GyosJS CSP] ${t}${r}: ${e}`)}function Li(t){const e=Ci.get(t);if(e)return e;try{const e=ki(`(${t})`,{ecmaVersion:"latest"}),n=e.body[0]?.expression;if(!n)throw Pi("Empty expression",t);return Ci.set(t,n),n}catch(e){if(e instanceof Error&&e.message.startsWith("[GyosJS CSP]"))throw e;const n="number"==typeof e?.pos?" at position "+(e.pos-1):"";throw Error(`[GyosJS CSP] Invalid expression${n}: ${t}`)}}function Mi(t,e=!1){const n=`${e?"return":"event"}:${t}`,r=Ii.get(n);if(r)return r;try{const r=ki(t,{ecmaVersion:"latest",allowReturnOutsideFunction:e});return Ii.set(n,r),r}catch(e){const n="number"==typeof e?.pos?" at position "+e.pos:"";throw Error(`[GyosJS CSP] Invalid expression body${n}: ${t}`)}}function Oi(t,e,n){if(("string"==typeof t||"number"==typeof t)&&Ti.has(t+""))throw Pi(`Access to property "${t+""}" is forbidden`,e,n);if("string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t)throw Pi("Invalid property key",e,n);return t}function Vi(t,e,n,r){if(Object.prototype.hasOwnProperty.call(e.locals,t))return e.locals[t];if(t in e.scope)return e.scope[t];if("undefined"!==t){if("NaN"===t)return NaN;if("Infinity"===t)return 1/0;throw Pi(`Undefined identifier "${t}"`,n,r)}}function Ri(t,e,n){const r=Bi(t.object,e,n);if(r===Ni)return[Ni,""];if(null==r){if(t.optional)return[Ni,""];throw Pi("Cannot read a property of null or undefined",n,t)}return[r,Oi(t.computed?Bi(t.property,e,n):t.property.name,n,t.property)]}function Di(t,e,n){if("Identifier"===t.type)return{get:()=>Vi(t.name,e,n,t),set:n=>(Object.prototype.hasOwnProperty.call(e.locals,t.name)?e.locals[t.name]=n:e.scope[t.name]=n,n)};if("MemberExpression"===t.type){const[r,s]=Ri(t,e,n);if(null==r)throw Pi("Invalid assignment target",n,t);return{get:()=>r[s],set:t=>(r[s]=t,t)}}throw Pi("Invalid assignment target",n,t)}function Bi(t,e,n){switch(t.type){case"Literal":if(t.regex||"bigint"==typeof t.value)throw Pi("Unsupported literal",n,t);return t.value;case"Identifier":return Vi(t.name,e,n,t);case"ArrayExpression":return t.elements.map(t=>{if(t){if("SpreadElement"===t.type)throw Pi("Spread elements are not supported",n,t);return Bi(t,e,n)}});case"ObjectExpression":{const r={};for(const s of t.properties){if("Property"!==s.type||"init"!==s.kind||s.method)throw Pi("Object methods, getters, setters, and spread are not supported",n,s);r[Oi(s.computed?Bi(s.key,e,n):s.key.name??s.key.value,n,s.key)]=s.shorthand?Vi(s.key.name,e,n,s.key):Bi(s.value,e,n)}return r}case"MemberExpression":{const[r,s]=Ri(t,e,n);return r===Ni?Ni:r[s]}case"ChainExpression":{const r=Bi(t.expression,e,n);return r===Ni?void 0:r}case"CallExpression":return function(t,e,n){let r,s=e.scope;if("MemberExpression"===t.callee.type){const[i,a]=Ri(t.callee,e,n);if(i===Ni)return Ni;s=i,r=i[a]}else r=Bi(t.callee,e,n);if(r===Ni)return Ni;if(null==r&&t.optional)return Ni;const i=t.arguments.map(t=>{if("SpreadElement"===t.type)throw Pi("Spread arguments are not supported",n,t);return Bi(t,e,n)});if("function"!=typeof r)throw Pi("Called value is not a function",n,t.callee);return r.apply(s,i)}(t,e,n);case"UnaryExpression":{if("delete"===t.operator)throw Pi("The delete operator is not supported",n,t);const r=Bi(t.argument,e,n);switch(t.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"typeof":return typeof r;case"void":return;default:throw Pi(`Unsupported unary operator "${t.operator}"`,n,t)}}case"BinaryExpression":{const r=Bi(t.left,e,n),s=Bi(t.right,e,n);switch(t.operator){case"+":return r+s;case"-":return r-s;case"*":return r*s;case"/":return r/s;case"%":return r%s;case"**":return r**s;case"==":return r==s;case"!=":return r!=s;case"===":return r===s;case"!==":return r!==s;case"<":return s>r;case"<=":return s>=r;case">":return r>s;case">=":return r>=s;case"in":return r in s;case"instanceof":return r instanceof s;default:throw Pi(`Unsupported binary operator "${t.operator}"`,n,t)}}case"LogicalExpression":{const r=Bi(t.left,e,n);if("&&"===t.operator)return r&&Bi(t.right,e,n);if("||"===t.operator)return r||Bi(t.right,e,n);if("??"===t.operator)return r??Bi(t.right,e,n);throw Pi(`Unsupported logical operator "${t.operator}"`,n,t)}case"ConditionalExpression":return Bi(t.test,e,n)?Bi(t.consequent,e,n):Bi(t.alternate,e,n);case"AssignmentExpression":{const r=Di(t.left,e,n),s="="===t.operator?void 0:r.get();if("&&="===t.operator&&!s)return s;if("||="===t.operator&&s)return s;if("??="===t.operator&&null!=s)return s;const i=Bi(t.right,e,n);return r.set(function(t,e,n,r,s){switch(t){case"=":return n;case"+=":return e+n;case"-=":return e-n;case"*=":return e*n;case"/=":return e/n;case"%=":return e%n;case"**=":return e**n;case"&&=":return e&&n;case"||=":return e||n;case"??=":return e??n;default:throw Pi(`Unsupported assignment operator "${t}"`,r,s)}}(t.operator,s,i,n,t))}case"UpdateExpression":{const r=Di(t.argument,e,n);let s=r.get();const i="++"===t.operator?s++:s--;return r.set(s),t.prefix?s:i}case"SequenceExpression":{let r;for(const s of t.expressions)r=Bi(s,e,n);return r}default:throw Pi(`Unsupported syntax "${t.type}"`,n,t)}}function Fi(t,e,n,r){let s;for(const i of t.body)if("EmptyStatement"!==i.type){if("ExpressionStatement"!==i.type){if(r&&"ReturnStatement"===i.type)throw new Ai(i.argument?Bi(i.argument,e,n):void 0);throw Pi(`Unsupported statement "${i.type}"`,n,i)}s=Bi(i.expression,e,n)}return s}var Ui,ji,Wi;st={mode:"csp",evaluate(t,e){try{const n=e?.[t];return"function"==typeof n?n.call(e):Bi(Li(t),{scope:e,locals:{}},t)}catch(t){return}},execute(t,e,n){const r=e?.[t];return"function"==typeof r?r.call(e,n):Fi(Mi(t),{scope:e,locals:{$event:n}},t,!1)},parseScope(t){try{const e=Bi(Li(t),{scope:{},locals:{}},t);if(!e||"object"!=typeof e||Array.isArray(e))throw Pi("Inline g-scope must evaluate to an object",t);return e}catch(t){return}},createMethod(t,e){let n;try{n=Mi(e,!0)}catch(t){return()=>{}}return function(...r){const s={};t.forEach((t,e)=>{s[t]=r[e]});try{return Fi(n,{scope:this,locals:s},e,!0)}catch(t){return t instanceof Ai?t.value:void 0}}}},"undefined"!=typeof window&&(function(t=null){if("undefined"==typeof document)return;const e=t??(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)??Array.from(document.scripts).reverse().find(t=>/(?:^|\/)gyos\.csp\.auto(?:\.esm)?(?:\.min)?\.js(?:[?#]|$)/.test(t.src)),n=e?.nonce||e?.getAttribute("nonce")||document.querySelector('meta[name="csp-nonce"]')?.content;n&&cn(n)}(),window.Gyos=Mr,(Ui=window).GYOS_DEBUG??(Ui.GYOS_DEBUG=!1),(ji=window).GYOS_DEBUG_VERBOSE??(ji.GYOS_DEBUG_VERBOSE=!1),(Wi=window).GYOS_DEBUG_WARN_SUBSCRIBERS??(Wi.GYOS_DEBUG_WARN_SUBSCRIBERS=!1),e(()=>{ir(),ze()})),t.default=Mr,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Gyos={});
|
|
6
|
+
var t,e;t=this,e=function(t){"use strict";function e(t){"undefined"!=typeof document?"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t,{once:!0}):queueMicrotask(t):t()}function n(t,e=new WeakMap){if(null===t||"object"!=typeof t)return t;if(e.has(t))return e.get(t);let r;if(r=t instanceof Date?new Date(t.getTime()):t instanceof Map?new Map:t instanceof Set?new Set:Array.isArray(t)?Array(t.length):{},e.set(t,r),t instanceof Map)t.forEach((t,s)=>r.set(n(s,e),n(t,e)));else if(t instanceof Set)t.forEach(t=>r.add(n(t,e)));else for(const s of Object.keys(t))Object.defineProperty(r,s,{value:n(t[s],e),enumerable:!0,writable:!0,configurable:!0});return r}function r(t,e,n=new WeakMap,s=new WeakMap){if(Object.is(t,e))return!0;if("object"!=typeof t||"object"!=typeof e||null==t||null==e)return!1;if(t instanceof Date||e instanceof Date)return t instanceof Date&&e instanceof Date&&Object.is(t.getTime(),e.getTime());if(n.has(t)||s.has(e))return n.get(t)===e&&s.get(e)===t;if(n.set(t,e),s.set(e,t),t instanceof Map||e instanceof Map){if(!(t instanceof Map&&e instanceof Map)||t.size!==e.size)return!1;const i=e.entries();for(const[e,a]of t){const[t,o]=i.next().value;if(!r(e,t,n,s)||!r(a,o,n,s))return!1}return!0}if(t instanceof Set||e instanceof Set){if(!(t instanceof Set&&e instanceof Set)||t.size!==e.size)return!1;const i=e.values();for(const e of t)if(!r(e,i.next().value,n,s))return!1;return!0}if(Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)&&t.length!==e.length)return!1;const i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(e,a)||!r(t[a],e[a],n,s))return!1;return!0}function s(t){let e=t;for(;e;){if(e.__gyos_static__||e.hasAttribute?.("g-static"))return!0;e=e.parentNode}return!1}function i(t){return null!==t.closest("[g-ignore]")}const a=new Set(["__proto__","prototype","constructor"]);function o(t){return t.split(/[.[\]]+/).filter(Boolean).some(t=>a.has(t))}const c=()=>"undefined"!=typeof window&&window.GYOS_DEBUG,l=()=>"undefined"!=typeof window&&window.GYOS_DEBUG_VERBOSE;function u(t,e,n=3){const r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>e(t)?NodeFilter.FILTER_ACCEPT:n}),s=[];for(;r.nextNode();)s.push(r.currentNode);return s}function h(...t){c()}function p(t){let e=t.parentElement;for(;e;){if(e.hasAttribute("*if")||e.hasAttribute("*for")||e.hasAttribute("*switch")||e.hasAttribute("*await"))return!0;e=e.parentElement}return!1}let f=null,d=0;function m(t){f&&(!1!==f.__subscribe&&(t.subscribers.add(f),f.__dependencies?.add(t.subscribers)),f.__versions?.set(t,t.version))}class g extends Set{constructor(t,e){super(),this.activate=t,this.deactivate=e}add(t){const e=0===this.size;return super.add(t),e&&this.activate(),this}delete(t){const e=super.delete(t);return e&&0===this.size&&this.deactivate(),e}}function y(t){return R(()=>{for(const[e,n]of t)if(e.refresh?.(),e.version!==n)return!0;return!1})}function v(t){for(const e of Array.from(t))e.__invalidate?e():C?A.add(e):k(e)}let b=0;const x=new Set;let _=0;const w=new Set;let E=!1;function S(){if(0===w.size||E)return;E=!0;const t=Array.from(w);w.clear(),t.forEach(t=>{if(!x.has(t))try{t()}catch(t){}}),E=!1,w.size>0&&queueMicrotask(S)}function k(t){w.add(t),E||0!==_||queueMicrotask(S)}let A=new Set,C=!1;function I(t,e){const n="string"==typeof e?e:e?.debugLabel,r="object"==typeof e&&e?.equals?e.equals:Object.is,s=++b;let i=t;const a=new Set,o={subscribers:a,version:0};let u=!1;const h=()=>{if(f){const t=a.has(f);m(o),!t&&a.has(f)&&(l(),!u&&"undefined"!=typeof window&&window.GYOS_DEBUG_WARN_SUBSCRIBERS&&c()&&a.size>=200&&(u=!0))}return i},p=t=>{r(i,t)||(i=t,o.version++,d++,l(),g())},g=()=>{l(),v(a)},y=function(t){return 0===arguments.length?h():(p(t),t)};return Object.defineProperties(y,{value:{get:h,set:p,enumerable:!0,configurable:!0},peek:{get:()=>i,enumerable:!0,configurable:!0},update:{value:function(t){p(t(i))},enumerable:!0,configurable:!0},subscribe:{value:function(t){let e=!0;const n=()=>{e&&R(t)};return a.add(n),()=>{e=!1,a.delete(n),w.delete(n),A.delete(n)}},enumerable:!0,configurable:!0},__gyos_signal__:{value:!0,enumerable:!0,configurable:!0},__gyos_debug_id__:{value:s,enumerable:!1},__gyos_debug_label__:{value:n,enumerable:!1},__gyos_equals__:{value:r,enumerable:!1}}),y}function T(t){let e,n=!0,r=!0,s=!1,i=-1;const a=new Set,o=new Map,c=new g(()=>{u.__subscribe=!0;for(const t of o.keys())t.subscribers.add(u),a.add(t.subscribers)},()=>{u.__subscribe=!1,a.forEach(t=>t.delete(u)),a.clear()}),l={subscribers:c,version:0,refresh:()=>h()},u=()=>{n&&!C||(n=!0,v(c))};u.__invalidate=!0,u.__subscribe=!1,u.__dependencies=a,u.__versions=o;const h=()=>{if(!n&&!r&&(c.size>0||i===d))return;if(s)throw Error("[Computed] Circular dependency");s=!0;const h=f;try{if(!r&&!y(o))return void(n=!1);a.forEach(t=>t.delete(u)),a.clear(),o.clear(),f=u;const s=t();!r&&Object.is(e,s)||(e=s,l.version++),r=!1,n=!1}catch(t){n=!1}finally{f=h,s=!1,i=d}},p=()=>(h(),m(l),e),b=function(){return p()};return Object.defineProperties(b,{value:{get:p,enumerable:!0,configurable:!0},peek:{get:()=>(h(),e),enumerable:!0,configurable:!0},subscribe:{value:function(t){let e=!0;return N(()=>{p(),e||R(t),e=!1})},enumerable:!0,configurable:!0},__gyos_computed__:{value:!0}}),b}function N(t){let e;const n=new Set,r=new Map;let s=!0,i=!1;const a=()=>{if(!s)return;if(i&&!y(r))return;if(x.has(a))return void c();if(x.add(a),_++,n.forEach(t=>{t.delete(a)}),c(),n.clear(),r.clear(),e){const t=e;e=void 0;try{R(t)}catch(t){}}const o=f;f=a,a.__dependencies=n,a.__versions=r;try{if(s){const n=t();e="function"==typeof n?n:void 0}}catch(t){}finally{if(i=!0,f=o,!s){n.forEach(t=>t.delete(a)),n.clear(),r.clear(),w.delete(a),A.delete(a);const t=e;if(e=void 0,t)try{R(t)}catch(t){}}_--,x.delete(a),0===_&&w.size>0&&queueMicrotask(S)}};return a(),()=>{if(s&&(s=!1,w.delete(a),A.delete(a),n.forEach(t=>{t.delete(a)}),n.clear(),r.clear(),e)){const t=e;e=void 0;try{R(t)}catch(t){}}}}function P(t){if(C)t();else{C=!0,A.clear();try{t()}catch(t){throw t}finally{C=!1;const t=Array.from(A);A.clear(),t.forEach(t=>{w.delete(t);try{t()}catch(t){}})}}}function L(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_signal__"in t}function M(){return null!==f}function O(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_computed__"in t}function V(t){return L(t)?t.value:t}function R(t){const e=f;f=null;try{return t()}finally{f=e}}class D{constructor(t){this.services=new Map,this.parent=null,this.parent=t||null}set(t,e){this.services.set(t,e)}get(t){if(this.services.has(t))return this.services.get(t);if(this.parent)return this.parent.get(t);throw Error(`[GyosJS] Service "${t}" not found in DI container`)}has(t){return this.services.has(t)||(this.parent?.has(t)??!1)}createChild(){return new D(this)}}const B=new D,F=new WeakMap;function U(t){if(F.has(t))return F.get(t);let e=t.parentElement,n=B;for(;e;){if(F.has(e)){n=F.get(e);break}if(e.hasAttribute("g-provide")){n=U(e);break}e=e.parentElement}const r=n.createChild();F.set(t,r);const s=t.getAttribute("g-provide");if(s)try{const t=JSON.parse(s);if(!t||Array.isArray(t)||"object"!=typeof t)throw new TypeError("g-provide must contain a JSON object");Object.entries(t).forEach(([t,e])=>{r.set(t,e)})}catch(t){}return r}function j(t,e){if(!t)return;const n=document.querySelector(e);if(!n)return;const r=document.createComment("g-portal");t.parentNode?.insertBefore(r,t),t.__portal_placeholder__=r,t.__portal_target__=n,r.__gyos_portal__=t,n.appendChild(t),c()}function q(t){if(!t)return;const e=t.__portal_placeholder__;e&&e.parentNode&&(delete e.__gyos_portal__,e.parentNode.insertBefore(t,e),e.remove(),delete t.__portal_placeholder__,delete t.__portal_target__,c())}const W=new Map;function $(t,e){W.set(t,e)}async function H(t,e,n){const r=e.split("|");for(const e of r){const r=e.lastIndexOf(":");let s,i=e;if(r>0){const t=e.substring(0,r),n=t.indexOf("("),a=t.lastIndexOf(")");(-1===n||a>n&&a===t.length-1)&&(i=t,s=e.substring(r+1).trim())}const a=i.match(/^(\w+)(?:\((.*?)\))?$/);if(!a)continue;const[,o,c]=a,l=c?c.split(",").map(t=>t.trim().replace(/['"]/g,"")):[],u=W.get(o);if(!u)continue;const h=await u(t,...l,n);if(!0!==h)return s||(n?.messages?.[o]?n.messages[o]:"string"==typeof h?h:"Validation failed for "+o)}return null}$("required",t=>!(null==t||""===t||Array.isArray(t)&&0===t.length)||"This field is required"),$("email",t=>!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||"Invalid email address"),$("minLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length>=n||"Minimum length is "+n}),$("maxLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length<=n||"Maximum length is "+n}),$("min",(t,e)=>{if(null==t||""===t)return!0;const n=parseFloat(e);return parseFloat(t)>=n||"Minimum value is "+n}),$("max",(t,e)=>{if(null==t||""===t)return!0;const n=parseFloat(e);return n>=parseFloat(t)||"Maximum value is "+n}),$("number",t=>!t||!isNaN(parseFloat(t))&&isFinite(t)||"Must be a number"),$("integer",t=>null==t||""===t||""!==(t+"").trim()&&Number.isInteger(Number(t))||"Must be an integer"),$("numeric",t=>!t||/^\d+$/.test(t)||"Must contain only digits"),$("alpha",t=>!t||/^[a-zA-Z]+$/.test(t)||"Must contain only letters"),$("alphanumeric",t=>!t||/^[a-zA-Z0-9]+$/.test(t)||"Must contain only letters and numbers"),$("pattern",(t,e)=>!t||RegExp(e).test(t)||"Invalid format"),$("same",(t,e,n)=>!t||!n?.form||t===n.form[e]||"Must match "+e),$("different",(t,e,n)=>!t||!n?.form||t!==n.form[e]||"Must be different from "+e),$("url",t=>{if(!t)return!0;try{return new URL(t),!0}catch{return"Invalid URL"}}),$("phone",t=>!t||/^0\d{9}$/.test(t)||"Invalid phone number (format: 0xxxxxxxxx)"),$("date",t=>{if(!t)return!0;if(!/^\d{4}-\d{2}-\d{2}$/.test(t))return"Invalid date format (use YYYY-MM-DD)";const e=new Date(t);return!isNaN(e.getTime())&&e.toISOString().slice(0,10)===t||"Invalid date"}),$("before",(t,e)=>{if(!t)return!0;const n=new Date(t);return new Date(e)>n||"Must be before "+e}),$("after",(t,e)=>!t||new Date(t)>new Date(e)||"Must be after "+e),$("password",t=>{if(!t)return!0;if(8>t.length)return"Password must be at least 8 characters";const e=/[A-Z]/.test(t),n=/[a-z]/.test(t),r=/[0-9]/.test(t);return e?n?!!r||"Password must contain at least one number":"Password must contain at least one lowercase letter":"Password must contain at least one uppercase letter"}),$("in",(t,...e)=>{if(!t)return!0;const n=e.filter(t=>"string"==typeof t||"number"==typeof t);return n.includes(t)||"Must be one of: "+n.join(", ")}),$("notIn",(t,...e)=>{if(!t)return!0;const n=e.filter(t=>"string"==typeof t||"number"==typeof t);return!n.includes(t)||"Cannot be: "+n.join(", ")}),$("between",(t,e,n)=>{if(null==t||""===t)return!0;const r=parseFloat(t),s=parseFloat(e),i=parseFloat(n);return r>=s&&i>=r||`Must be between ${s} and ${i}`});const G=new WeakSet,z=new WeakSet,Y=new WeakMap,K=new WeakMap,J=Symbol("gyos.validation-field");function X(t){const e=t[J];if(e)return e;const n=Array.from(t.attributes).find(t=>"g-model"===t.name||t.name.startsWith("g-model."));return n?.value||t.getAttribute("name")||t.id}function Q(t,e){if(!(t instanceof HTMLInputElement))return t.value;if("checkbox"===t.type)return t.checked?t.value:"";if("radio"!==t.type)return t.value;const n=X(t),r=Array.from(e.querySelectorAll('input[type="radio"]')).find(e=>!(i(e)||!e.checked||(!t.name||e.name!==t.name)&&X(e)!==n));return r?.value??""}function Z(t){return Y.has(t)||Y.set(t,{errors:I({}),touched:I({}),$invalid:I(!1),$valid:I(!0),$dirty:I(!1),$pristine:I(!0)}),Y.get(t)}function tt(t){const e=t.errors.value,n=t.touched.value,r=Object.values(e).some(t=>null!==t),s=Object.values(n).some(t=>t);t.$invalid.value!==r&&(t.$invalid.value=r,t.$valid.value=!r),t.$dirty.value!==s&&(t.$dirty.value=s,t.$pristine.value=!s)}const et=new Map;function nt(t,e){et.set(t,e)}function rt(t,e,n=[]){const r=et.get(e);if(!r)return c(),t;try{return r(t,...n)}catch(e){return c(),t}}let st;function it(){if(!st)throw Error("[GyosJS] Expression runtime is not configured. Import GyosJS from a public entry point.");return st}function at(){return st?.mode??"standard"}function ot(t,e,n=!0){if(n&&function(t){let e=!1,n="";for(let r=0;r<t.length;r++){const s=t[r],i=r>0?t[r-1]:"";if('"'!==s&&"'"!==s||"\\"===i||(e?s===n&&(e=!1,n=""):(e=!0,n=s)),"|"===s&&!e&&"|"!==(r<t.length-1?t[r+1]:"")&&"|"!==i)return!0}return!1}(t)){const{base:n,pipes:r}=function(t){const e=[];let n="",r=!1,s="",i=0;for(;i<t.length;){const a=t[i],o=i>0?t[i-1]:"";'"'!==a&&"'"!==a||"\\"===o?"|"!==a||r?(n+=a,i++):"|"===t[i+1]?(n+="||",i+=2):(e.push(n.trim()),n="",i++):(r?a===s&&(r=!1,s=""):(r=!0,s=a),n+=a,i++)}e.push(n.trim());const a=e[0],o=e.slice(1).map(t=>{const e=t.indexOf("(");if(-1===e)return{name:t.trim(),args:[]};const n=t.substring(0,e).trim();let r=0,s=-1,i=!1,a="";for(let n=e;n<t.length;n++){const e=t[n],o=n>0?t[n-1]:"";if('"'!==e&&"'"!==e||"\\"===o||(i?e===a&&(i=!1,a=""):(i=!0,a=e)),!i&&("("===e&&r++,")"===e&&(r--,0===r))){s=n;break}}if(-1===s)return{name:t,args:[]};const o=t.substring(e+1,s),c=[];if(o){let t="",e=!1,n="";for(let r=0;r<o.length;r++){const s=o[r];'"'!==s&&"'"!==s||0!==r&&"\\"===o[r-1]?","!==s||e?t+=s:(c.push(t.trim()),t=""):(e?s===n&&(e=!1,n=""):(e=!0,n=s),t+=s)}t.trim()&&c.push(t.trim())}return{name:n,args:c}});return{base:a,pipes:o}}(t);let s=ct(n,e);for(const{name:t,args:n}of r)s=rt(s,t,n.map(t=>ct(t,e)));return s}return ct(t,e)}function ct(t,e){return isNaN(Number(t))?it().evaluate(t,e):Number(t)}nt("currency",(t,e="USD",n="en-US")=>new Intl.NumberFormat(n,{style:"currency",currency:e}).format(t)),nt("date",(t,e="MM/DD/YYYY")=>{const n=t instanceof Date?t:new Date(t),r=t=>t.toString().padStart(2,"0");return e.replace("YYYY",n.getFullYear().toString()).replace("MM",r(n.getMonth()+1)).replace("DD",r(n.getDate())).replace("HH",r(n.getHours())).replace("mm",r(n.getMinutes())).replace("ss",r(n.getSeconds()))}),nt("slug",t=>t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")),nt("truncate",(t,e=100,n="...")=>t.length>e?t.substring(0,e)+n:t),nt("uppercase",t=>t.toUpperCase()),nt("lowercase",t=>t.toLowerCase()),nt("capitalize",t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),nt("fallback",(t,e)=>t||e),nt("json",(t,e=2)=>JSON.stringify(t,null,e)),nt("number",(t,e=0)=>t.toFixed(e)),nt("pluralize",(t,e,n)=>`${t} ${1===t?e:n||e+"s"}`),nt("percent",(t,e=0)=>(100*t).toFixed(e)+"%"),nt("join",(t,e=", ")=>Array.isArray(t)?t.join(e):t),nt("limit",(t,e)=>Array.isArray(t)?t.slice(0,e):t),nt("reverse",t=>"string"==typeof t?t.split("").reverse().join(""):Array.isArray(t)?[...t].reverse():t);const lt=new Map,ut=new Map;function ht(t){return lt.get(t)}function pt(){return lt}function ft(t){let e=lt.get(t);if(e){if(lt.delete(t),e.__gyos_effects__&&(e.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),e.__gyos_effects__=null),e.onUnmount)try{e.onUnmount.call(e)}catch(t){}t.__gyos_scope__=null,lt.delete(t)}}function dt(t){let e=t;for(;e;){if(e.__gyos_scope__)return e.__gyos_scope__;e=e.parentElement}return null}function mt(t){lt.forEach((e,n)=>{t.contains(n)&&t!==n&&ft(n)})}const gt=new WeakMap;function yt(t){return gt.get(t)||0}const vt=[];function bt(){return vt[vt.length-1]}function xt(t,e,n){if(!t.isConnected||yt(t)!==n)return;let r;if(s(t)){let t;try{t=R(e)}catch(t){}if("function"!=typeof t)return;r=()=>{const e=t;t=void 0,"function"==typeof e&&R(e)}}else r=N(e);yt(t)===n&&t.isConnected?(t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(r)):r()}function _t(t,e){const n=bt();n?n.push({target:t,runner:e,generation:yt(t)}):xt(t,e,yt(t))}function wt(t){return{staticClasses:new Set(t.classList),dynamicClasses:new Set}}function Et(t,e,n){const r=function(t){return"string"==typeof t?new Set(t.split(/\s+/).filter(Boolean)):t&&"object"==typeof t?new Set(Object.entries(t).filter(([,t])=>!!t).flatMap(([t])=>t.split(/\s+/).filter(Boolean))):new Set}(e);if(e&&"object"==typeof e)for(const[n,r]of Object.entries(e))if(!r)for(const e of n.split(/\s+/).filter(Boolean))t.classList.remove(e);for(const e of n.dynamicClasses)r.has(e)||n.staticClasses.has(e)||t.classList.remove(e);for(const e of r)t.classList.add(e);n.dynamicClasses=r}function St(t){const e=new Map;for(let n=0;n<t.length;n++){const r=t.item(n);e.set(r,{priority:t.getPropertyPriority(r),value:t.getPropertyValue(r)})}return e}function kt(t){return t.startsWith("--")?t:t.includes("-")?t.toLowerCase():t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function At(t){return{staticStyles:St(t.style),dynamicProperties:new Set}}function Ct(t,e,n){const r=n.staticStyles.get(e);r?t.style.setProperty(e,r.value,r.priority):t.style.removeProperty(e)}function It(t,e,n){const r=function(t){const e=document.createElement("div").style,n=new Set;if("string"==typeof t){e.cssText=t;for(const t of St(e).keys())n.add(t)}else if(t&&"object"==typeof t)for(const[r,s]of Object.entries(t)){const t=kt(r);n.add(t),null!=s&&!1!==s&&(r.startsWith("--")?e.setProperty(r,s+""):e[r]=s)}return{mentioned:n,values:St(e)}}(e);for(const e of n.dynamicProperties)r.mentioned.has(e)||Ct(t,e,n);for(const e of r.mentioned){const n=r.values.get(e);n?t.style.setProperty(e,n.value,n.priority):t.style.removeProperty(e)}n.dynamicProperties=r.mentioned}const Tt=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),Nt={allowfullscreen:"allowFullscreen",formnovalidate:"formNoValidate",ismap:"isMap",itemscope:"itemScope",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly"},Pt=new Set(["action","background","cite","formaction","href","poster","src","xlink:href"]),Lt=new Set(["BASE","EMBED","IFRAME","LINK","OBJECT","SCRIPT"]);function Mt(t,e,n){const r=e.toLowerCase();if(!function(t){const e=t.toLowerCase();return!(!e||e.startsWith("@")||e.startsWith(":")||e.startsWith("*")||/^on/i.test(e)||"srcdoc"===e||"xmlns"===e||e.startsWith("g-")||e.startsWith("gd-")||e.startsWith("gm-"))}(r))return t.removeAttribute(r),void c();if(!function(t,e,n){if(!Pt.has(e))return!("data"===e&&"OBJECT"===t.tagName);if(null==n||!1===n)return!0;if(Lt.has(t.tagName))return!1;const r=(n+"").trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!r.startsWith("javascript:")&&!r.startsWith("vbscript:")&&(!r.startsWith("data:")||"src"===e&&t instanceof HTMLImageElement&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(r))}(t,r,n))return t.removeAttribute(r),void c();if(Tt.has(r)){const e=!!n;return t.toggleAttribute(r,e),void function(t,e,n){const r=Nt[e]||e;if(r in t)try{t[r]!==n&&(t[r]=n)}catch{}}(t,r,e)}if(null==n||!1===n&&!r.startsWith("aria-")&&!r.startsWith("data-"))return void t.removeAttribute(r);const s=n+"";"value"===r&&"value"in t&&t.value!==s&&(t.value=s),t.getAttribute(r)!==s&&t.setAttribute(r,s)}const Ot={classNames:["is-revealed"],rootMargin:"0px",threshold:.1},Vt=new Map,Rt=new WeakMap;function Dt(t){const e=Number(t);return Number.isFinite(e)?Math.min(1,Math.max(0,e)):Ot.threshold}function Bt(t){if(!Array.isArray(t))return Dt(t);const e=Array.from(new Set(t.map(Dt))).sort((t,e)=>t-e);return e.length?e:Ot.threshold}function Ft(t){const e=t.value&&"object"==typeof t.value&&!Array.isArray(t.value)?t.value:{},n=new Set(t.arg||[]);return{classNames:"string"==typeof e.className?e.className.split(/\s+/).filter(Boolean):Ot.classNames,once:"boolean"==typeof e.once?e.once:!n.has("repeat"),rootMargin:"string"==typeof e.rootMargin?e.rootMargin:Ot.rootMargin,target:"parent"===e.target||n.has("parent")?"parent":"self",threshold:Bt(e.threshold??Ot.threshold)}}function Ut(t,e){const{element:n,options:r}=t;if(e){n.setAttribute("data-gyos-revealed","");for(const t of r.classNames)n.classList.add(t)}else{n.removeAttribute("data-gyos-revealed");for(const t of r.classNames)n.classList.remove(t)}}function jt(t){if(Rt.get(t.element)!==t)return;Rt.delete(t.element);const e=t.pool.records.get(t.observedTarget);e&&(e.delete(t),0===e.size&&(t.pool.records.delete(t.observedTarget),t.pool.observer.unobserve(t.observedTarget))),0===t.pool.records.size&&(t.pool.observer.disconnect(),Vt.delete(t.pool.key))}function qt(t,e){Wt(t),document.documentElement.classList.add("gyos-reveal-ready");const n=Ft(e);if(n.once&&t.hasAttribute("data-gyos-revealed")){for(const e of n.classNames)t.classList.add(e);return}if("function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||"function"!=typeof window.IntersectionObserver)return void Ut({element:t,options:n},!0);const r=function(t){const e=function(t){return JSON.stringify([t.rootMargin,t.threshold])}(t),n=Vt.get(e);if(n)return n;let r;try{const n=new Map;r={key:e,observer:new IntersectionObserver(t=>{for(const e of t){const t=Array.from(n.get(e.target)||[]);for(const n of t)e.isIntersecting?(Ut(n,!0),n.options.once&&jt(n)):n.options.once||Ut(n,!1)}},{rootMargin:t.rootMargin,threshold:t.threshold}),records:n}}catch{return null}return Vt.set(e,r),r}(n);if(!r)return void Ut({element:t,options:n},!0);const s="parent"===n.target&&t.parentElement||t,i={element:t,observedTarget:s,options:n,pool:r};let a=r.records.get(s);a||(a=new Set,r.records.set(s,a),r.observer.observe(s)),a.add(i),Rt.set(t,i)}function Wt(t){const e=Rt.get(t);e&&(jt(e),e.options.once||Ut(e,!1))}const $t={mounted:qt,updated(t,e){const n=Ft({...e,value:e.oldValue}),r=Ft(e);for(const e of n.classNames)r.classNames.includes(e)||t.classList.remove(e);qt(t,e)},unmounted:Wt},Ht=new Map;function Gt(t,e){"function"==typeof e?Ht.set(t,{mounted:e,updated:e}):Ht.set(t,e)}function zt(t,e){const n=t.trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!n.startsWith("javascript:")&&!n.startsWith("vbscript:")&&(!n.startsWith("data:")||e&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(n))}Gt("cloak",{mounted(t,e){setTimeout(()=>t.removeAttribute("g-cloak"),e.value?e.value:0)}}),Gt("focus",{mounted(t){t.focus()}}),Gt("tooltip",{mounted(t,e){t.title=e.value},updated(t,e){t.title=e.value}}),Gt("on",{mounted(t,e){const n=e.arg?e.arg[0]:void 0;if(!n)return;const r=dt(t),s=e.value,i="function"==typeof s?s:r?.[s];if("function"!=typeof i)return;if(!r)return;const a=r.$on(n,i.bind(r));t.__gyos_effects__=t.__gyos_effects__||[],t.__gyos_effects__.push(a)}}),Gt("markdown",{updated(t,e){const n=((e.value||"")+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/^\> (.*$)/gim,"<blockquote>$1</blockquote>").replace(/^- (.*$)/gim,"<li>$1</li>").replace(/\*\*(.*)\*\*/gim,"<b>$1</b>").replace(/\*(.*)\*/gim,"<i>$1</i>").replace(/!\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>zt(n,!0)?`<img alt="${e}" src="${n}" />`:e).replace(/\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>zt(n,!1)?`<a href="${n}">${e}</a>`:e).replace(/`(.*)`/gim,"<code>$1</code>").replace(/\n/gim,"<br />");t.innerHTML=n}}),Gt("reveal",$t);const Yt={fade:{enterFrom:"gyos-t-opacity-0",enterTo:"gyos-t-opacity-100",leaveFrom:"gyos-t-opacity-100",leaveTo:"gyos-t-opacity-0",duration:250},"slide-down":{enterFrom:"gyos-t-translate-y--100 gyos-t-opacity-0",enterTo:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-y-100 gyos-t-opacity-0",duration:250},"slide-up":{enterFrom:"gyos-t-translate-y-100 gyos-t-opacity-0",enterTo:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-y-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-y--100 gyos-t-opacity-0",duration:250},"slide-left":{enterFrom:"gyos-t-translate-x-100 gyos-t-opacity-0",enterTo:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-x--100 gyos-t-opacity-0",duration:250},"slide-right":{enterFrom:"gyos-t-translate-x--100 gyos-t-opacity-0",enterTo:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveFrom:"gyos-t-translate-x-0 gyos-t-opacity-100",leaveTo:"gyos-t-translate-x-100 gyos-t-opacity-0",duration:250},scale:{enterFrom:"gyos-t-scale-50 gyos-t-opacity-0",enterTo:"gyos-t-scale-100 gyos-t-opacity-100",leaveFrom:"gyos-t-scale-100 gyos-t-opacity-100",leaveTo:"gyos-t-scale-50 gyos-t-opacity-0",duration:250},zoom:{enterFrom:"gyos-t-scale-0 gyos-t-opacity-0",enterTo:"gyos-t-scale-100 gyos-t-opacity-100",leaveFrom:"gyos-t-scale-100 gyos-t-opacity-100",leaveTo:"gyos-t-scale-0 gyos-t-opacity-0",duration:250}},Kt=new class{constructor(){this.active=new WeakMap}cancel(t){this.active.get(t)?.cancel()}enter(t,e,n=!1){return t.isConnected&&("leave"!==this.active.get(t)?.phase||n)?this.run(t,e,"enter",!1):Promise.resolve(!1)}leave(t,e,n=!0){return this.run(t,e,"leave",n)}run(t,e,n,r){this.cancel(t);const s="enter"===n?e.enterFrom:e.leaveFrom,i="enter"===n?e.enterTo:e.leaveTo,a="enter"===n?e.enter:e.leave,o="enter"===n?e.onBeforeEnter:e.onBeforeLeave,c="enter"===n?e.onAfterEnter:e.onAfterLeave,l="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches?0:e.duration??250,u=t.style.transition,h=t.style.animation;return new Promise(e=>{let p,f=!1;const d=()=>{s&&this.removeClasses(t,s),i&&this.removeClasses(t,i),t.style.transition=u,t.style.animation=h,t.removeEventListener("transitionend",g),t.removeEventListener("animationend",g),void 0!==p&&clearTimeout(p),this.active.delete(t)},m=s=>{f||(f=!0,d(),s||(c?.(t),"leave"===n&&r&&t.remove()),e(!s))},g=e=>{e.target===t&&m(!1)};this.active.set(t,{phase:n,cancel:()=>m(!0)});try{o?.(t),s&&this.applyClasses(t,s),t.offsetHeight,t.style.transition=`all ${l}ms ${"enter"===n?"ease-out":"ease-in"}`,s&&this.removeClasses(t,s),i&&this.applyClasses(t,i),a&&(t.style.animation=a),0===l?queueMicrotask(()=>m(!1)):(t.addEventListener("transitionend",g),t.addEventListener("animationend",g),p=setTimeout(()=>m(!1),l+50))}catch(t){m(!1)}})}applyClasses(t,e){e.split(" ").forEach(e=>{e&&t.classList.add(e)})}removeClasses(t,e){e.split(" ").forEach(e=>{e&&t.classList.remove(e)})}getConfig(t){return"object"==typeof t?t:Yt[t]||Yt.fade}getAvailableTransitions(){return Object.keys(Yt)}};function Jt(t,e){const n=Array.from(t.attributes).find(t=>t.name.startsWith("g-transition"));if(!n)return null;const r=n.name.split(".").slice(1).find(t=>/^\d+$/.test(t)),s=function(t,e){const n=t.trim(),r=/^\{([\s\S]+)\}$/.exec(n);if(r){const t=ot(r[1].trim(),e);return null==t?"":t+""}return n.length>=2&&(n.startsWith("'")&&n.endsWith("'")||n.startsWith('"')&&n.endsWith('"'))?n.slice(1,-1):n}(n.value,e);return{name:s,duration:r?parseInt(r):void 0}}function Xt(t){if(i(t))return[];const e=[];Array.from(t.attributes).some(t=>t.name.startsWith("g-transition"))&&e.push(t);const n=u(t,t=>!i(t),NodeFilter.FILTER_REJECT).filter(t=>Array.from(t.attributes).some(t=>t.name.startsWith("g-transition")));return e.push(...n),e}function Qt(t,e,n=!1){const r=Jt(t,e);if(!r)return Promise.resolve(!0);c();const s={...Kt.getConfig(r.name)};return r.duration&&(s.duration=r.duration),Kt.enter(t,s,n)}function Zt(t,e,n=!0){const r=Jt(t,e);if(!r)return Promise.resolve(!0);c();const s={...Kt.getConfig(r.name)};return r.duration&&(s.duration=r.duration),Kt.leave(t,s,n)}function te(t=document.body,e=!1){t&&(ee(t),e&&t.remove())}function ee(t,e=!1){R(()=>function(t,e=!1){var n;n=t,gt.set(n,yt(n)+1);const r=t.__gyos_portal__;r&&(delete t.__gyos_portal__,ee(r,e));const s=Array.from(t.childNodes),i=t.__gyos_effects__;t.__gyos_effects__=null,(t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&ft(t),i&&i.forEach(t=>{try{t()}catch(t){}}),s.forEach(t=>ee(t)),q(t),e&&t.parentNode?.removeChild(t)}(t,e))}const ne={enter:"enter",esc:"escape",escape:"escape",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",delete:"delete",tab:"tab"},re=new Set(["prevent","stop","once","capture","passive","debounce","outside","global"]);function se(t,e){e.includes("prevent")&&t.preventDefault(),e.includes("stop")&&t.stopPropagation()}function ie(t,e,n){try{it().execute(t,e,n)}catch(t){}}const ae=Symbol("gyos.parent-scope");function oe(t,e){Object.defineProperty(t,ae,{value:e,configurable:!1,enumerable:!1,writable:!1})}function ce(t){return t?.[ae]}function le(t){const e=[],n=/[^.[\]]+|\[(\d+)\]/g;let r;for(;r=n.exec(t);)void 0!==r[1]?e.push(Number(r[1])):e.push(r[0]);return e}function ue(t,e,n){if(o(e))return;const r=le(e);if(0===r.length)return;let s=t;L(s)&&(s=s.value);for(let t=0;t<r.length-1;t++){let e=s[r[t]];L(e)&&(e=e.value),s=e}const i=r[r.length-1],a=s[i];L(a)?a.value=n:s[i]=n}const he=new WeakMap,pe=new WeakSet,fe=new WeakMap,de=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=Symbol.for("gyos_scope_version");function ve(t){const e=Ce(t),n=new Set,r=t=>{if(n.has(t))return;n.add(t),t.update(t=>t+1);const e=ge.get(t);e&&e.forEach(t=>r(t))};r(e)}function be(t){return t instanceof Date||t instanceof RegExp||t instanceof Map||t instanceof Set||t instanceof WeakMap||t instanceof WeakSet||t instanceof Promise}function xe(t){return"string"==typeof t&&(t.startsWith("__gyos_")||t.startsWith("$")||["onMount","onUpdate","onUnmount"].includes(t))}function _e(t,e,n){let r=fe.get(t);r||(r=new Map,fe.set(t,r));let s=r.get(e);return s||(s=I(n,c()?`(${e.toString()})`:void 0),r.set(e,s)),s}const we=Symbol.for("gyos.store");function Ee(t){return!(!t||!t[we])}const Se=Symbol.for("gyos.raw");function ke(t){return!(!t||!t[Se])}const Ae=Symbol.for("gyos.shallow");function Ce(t){let e=de.get(t);return e||(e=I(0),de.set(t,e)),e}function Ie(t){if(!t||"object"!=typeof t||be(t))return t;if(pe.has(t))return t;if(ke(t))return t;if(Ee(t))return t;if(he.has(t))return he.get(t);let e;e=new Proxy(t,{get(t,n,r){const s=Reflect.get(t,n,r);if(!Object.prototype.hasOwnProperty.call(t,n)){if("symbol"!=typeof n&&!xe(n)&&!(n in t)){const e=fe.get(t)?.get(n);if(M())return(e||_e(t,n,void 0)).value;if(e)return e.peek}return s}if("symbol"==typeof n||xe(n))return s;const i=Object.getOwnPropertyDescriptor(t,n);if(i&&!i.configurable&&("value"in i&&!i.writable||!("value"in i)&&void 0===i.get))return s;if(Ee(s))return M()&&_e(t,n,s).value,s;if(i&&i.get)return s;if(L(s)||O(s))return M()&&_e(t,n,s).value,s;if("function"==typeof s)return s.bind(e);const a=M(),o=fe.get(t)?.get(n);if(s&&"object"==typeof s&&ke(s))return a&&(o||_e(t,n,s)).value,s;if(s&&"object"==typeof s&&!be(s)){const e=de.get(t);return de.has(s)||Ce(s),e&&function(t,e){const n=Ce(t);let r=me.get(t);r||(r=new Set,me.set(t,r)),r.add(e);let s=ge.get(n);s||(s=new Set,ge.set(n,s)),s.add(e)}(s,e),a&&(o||_e(t,n,s)).value,(c=t)&&c[Ae]?s:Ie(s)}var c;return a?(o||_e(t,n,s)).value:o?o.peek:s},set(t,e,n,r){if("symbol"==typeof e||xe(e))return Reflect.set(t,e,n,r);const s=Object.getOwnPropertyDescriptor(t,e);if(s&&s.set){const s=Reflect.set(t,e,n,r);return s&&ve(t),s}const i=t[e];if(!Reflect.set(t,e,n,r))return!1;const a=_e(t,e,n);return Object.is(i,n)||(a.value=n,ve(t)),!0},ownKeys(t){Ce(t).value;const e=Reflect.isExtensible(t);return Reflect.ownKeys(t).filter(n=>!xe(n)||!e||!Reflect.getOwnPropertyDescriptor(t,n).configurable)},getOwnPropertyDescriptor(t,e){const n=Reflect.getOwnPropertyDescriptor(t,e);if(!(xe(e)&&n?.configurable&&Reflect.isExtensible(t)))return n},deleteProperty(t,e){if("symbol"==typeof e||xe(e))return Reflect.deleteProperty(t,e);const n=Object.prototype.hasOwnProperty.call(t,e),r=Reflect.deleteProperty(t,e);return r&&n&&(_e(t,e,void 0).value=void 0,ve(t)),r},defineProperty(t,e,n){if("symbol"==typeof e||xe(e))return Reflect.defineProperty(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),s=r&&"value"in r?r.value:void 0,i="value"in n?n.value:s,a=Array.isArray(t)?t.length:void 0,o=Reflect.defineProperty(t,e,n);return function(t,e){if(void 0===e)return;const n=t;if(n.length===e)return;const r=fe.get(t);r?.get("length")?.update(()=>n.length),n.length<e&&r?.forEach((r,s)=>{"string"==typeof s&&/^(0|[1-9]\d*)$/.test(s)&&Number(s)>=n.length&&e>Number(s)&&r.update(()=>Reflect.get(t,s))})}(t,a),!!o&&("value"in n&&(_e(t,e,n.value).value=n.value,r&&Object.is(s,i)||ve(t)),!0)}});const n=de.get(t);return n&&de.set(e,n),pe.add(e),he.set(t,e),e}function Te(t){const e=Ce(t),n=Ie(t);return Object.prototype.hasOwnProperty.call(n,ye)||Object.defineProperty(n,ye,{value:e,enumerable:!1,configurable:!1,writable:!1}),n}let Ne=null;const Pe=new WeakMap,Le=Symbol("gyos.for-scope-state");function Me(t){return Pe.has(t)||Pe.set(t,t.cloneNode(!0)),Pe.get(t).cloneNode(!0)}function Oe(t,e){t.__gyos_scope__=e}function Ve(t,e){oe(t,e);for(const n in e)n in t||Object.defineProperty(t,n,{get:()=>e[n],set:t=>{e[n]=t},enumerable:!0,configurable:!0});return t}function Re(t,e,n,r){const s={};oe(s,t);const i=I({list:n,index:r});Object.defineProperty(s,Le,{value:i});const[a,o]=e.split(",").map(t=>t.trim());o?Object.defineProperty(s,o,{get:()=>i.value.index,enumerable:!1,configurable:!1}):Object.defineProperty(s,"$index",{get:()=>i.value.index,enumerable:!0,configurable:!1}),Object.defineProperty(s,a,{get:()=>{const t=i.value;return t.list[t.index]},set:t=>{const e=i.peek;e.list[e.index]=t},enumerable:!0,configurable:!1});for(const e in t)e in s||Object.defineProperty(s,e,{get:()=>t[e],set:n=>{t[e]=n},enumerable:!0,configurable:!0});return s}const De=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","TITLE","XMP","IFRAME","NOEMBED","NOFRAMES"]);function Be(t,e,n){let r=t.parentElement;for(;r;){if(i(r)||De.has(r.tagName))return!0;if(r.hasAttribute("*if")||r.hasAttribute("*for"))return!0;if(r===e)break;r=r.parentElement}if(void 0!==n&&t.parentElement){const e=dt(t.parentElement);if(e&&e!==n)return!0}return!1}let Fe=null;Ne=je;const Ue=(t,e)=>{const n=dt(t);return!(!n||n===e)};function je(t,e,n=!1){if(i(t))return;const r=yt(t);if(n&&t.hasAttribute("g-scope")&&Fe)return void Fe(t);vt.push([]);const a=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];if(n&&Fe&&t.querySelectorAll("[g-scope]").forEach(t=>{i(t)||p(t)||Fe(t)}),function(t,e){const n=[],r=t[0];t.forEach(t=>{if(function(t){let e=t,n=t.parentElement;for(;n&&n!==document.body;){if(n.hasAttribute("*await")&&(e.hasAttribute("*pending")||e.hasAttribute("*then")||e.hasAttribute("*catch")))return!0;e=n,n=n.parentElement}return!1}(t))return;const e=t.hasAttribute("*if"),s=t.hasAttribute("*for"),i=t.hasAttribute("*switch"),a=t.hasAttribute("*await");if(e||s||i||a){let e=0,o=t;for(;o&&o!==r;)e++,o=o.parentNode;let c="if";s?c="for":i?c="switch":a&&(c="await"),n.push({element:t,type:c,depth:e})}}),n.sort((t,e)=>t.depth-e.depth),n.forEach(({element:t,type:n})=>{r.contains(t)&&!Ue(t,e)&&("for"===n?function(t,e){const n=t.getAttribute("*for"),r=t.cloneNode(!0);r.removeAttribute("*for");const i=r.getAttribute("g-key"),a=!!i;a&&r.removeAttribute("g-key");const o=document.createComment("*for");o.__gyos_static__=s(t),t.parentNode?.replaceChild(o,t);const c=document.createComment("/*for");o.parentNode?.insertBefore(c,o.nextSibling);let l,u=new Map,h=null;_t(o,()=>{const t=n.match(/(.+?)\s+in\s+(.+)/);if(!t)return;const s=t[1].trim(),p=ot(t[2].trim(),e,!1);if(!Array.isArray(p))return;const f=(d=p,de.get(d));var d;const m=f?f.value:void 0;(a||p!==h||m!==l)&&(h=p,l=m,R(()=>{a?function(t,e,n,r,s,i,a){const o=new Map,c=[];n.forEach((t,e)=>{const a=Re(i,r,n,e),l=ot(s,a,!1);o.set(l,{index:e}),c.push(l)});const l=[];a.forEach((t,e)=>{o.has(e)||l.push({key:e,data:t})}),l.forEach(({key:t,data:e})=>{a.delete(t);const n=Xt(e.element);if(mt(e.element),n.length>0){e.element.style.pointerEvents="none";const t=n.map(t=>Zt(t,e.scope));Promise.all(t).then(()=>{te(e.element,!0)})}else te(e.element,!0)});let u=t;const h=[];c.forEach(s=>{const c=o.get(s),{index:l}=c;let p;if(a.has(s)){const t=a.get(s),e=t.scope[Le],r=e.peek;r.list===n&&r.index===l||(e.value={list:n,index:l}),p=t.element}else{const o=Me(e),c=Re(i,r,n,l);Oe(o,c);const h=Xt(o);h.length>0&&h.forEach(t=>{const e=Jt(t,c);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),p=o,t.parentNode?.insertBefore(o,u.nextSibling),Ne&&Ne(o,c,!0),a.set(s,{element:o,scope:c}),h.length>0&&requestAnimationFrame(()=>{h.forEach(t=>Qt(t,c))})}h.push(p),u=p}),function(t,e){const n=t.parentNode;if(!n||0===e.length)return;const r=new Set(e),s=new Map;let i=t.nextSibling;for(;i&&r.has(i);)s.set(i,s.size),i=i.nextSibling;const a=t.ownerDocument.activeElement,o=!!a&&e.some(t=>t===a||t.contains(a)),c=o&&(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)?{start:a.selectionStart,end:a.selectionEnd,direction:a.selectionDirection}:null;if(s.size!==e.length){let r=t;for(const t of e)t!==r.nextSibling&&n.insertBefore(t,r.nextSibling),r=t}else{const t=e.map(t=>s.get(t));let r=!0;for(let e=1;e<t.length;e++)if(t[e]<t[e-1]){r=!1;break}if(r)return;const a=[],o=Array(t.length).fill(-1);for(let e=0;e<t.length;e++){let n=0,r=a.length;for(;r>n;){const s=n+r>>>1;t[a[s]]<t[e]?n=s+1:r=s}n>0&&(o[e]=a[n-1]),a[n]=e}const c=new Set;for(let t=a[a.length-1];t>=0;t=o[t])c.add(t);for(let t=e.length-1;t>=0;t--){const r=e[t];c.has(t)||r.nextSibling===i||n.insertBefore(r,i),i=r}}const l=t.ownerDocument;o&&a.isConnected&&l.activeElement===l.body&&(a.focus({preventScroll:!0}),null!=c?.start&&null!=c.end&&a.setSelectionRange(c.start,c.end,c.direction||void 0))}(t,h)}(o,r,p,s,i,e,u):function(t,e,n,r,s,i){let a=t.nextSibling;for(;a&&a!==e;){const t=a;a=a.nextSibling,t instanceof Element?(mt(t),te(t,!0)):ee(t,!0)}let o=t;r.forEach((e,a)=>{const c=Me(n),l=Re(i,s,r,a);Oe(c,l);const u=Xt(c);u.length>0&&u.forEach(t=>{const e=Jt(t,l);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),t.parentNode?.insertBefore(c,o.nextSibling),o=c,Ne&&Ne(c,l,!0),u.length>0&&requestAnimationFrame(()=>{u.forEach(t=>Qt(t,l))})})}(o,c,r,p,s,e)}))})}(t,e):"if"===n?function(t,e){const n=[];n.push({element:t,condition:t.getAttribute("*if")});let r=t.nextElementSibling;for(;r&&!i(r);){if(!r.hasAttribute("*elseif")){if(r.hasAttribute("*else")){n.push({element:r,condition:null}),r.remove();break}break}{n.push({element:r,condition:r.getAttribute("*elseif")});const t=r.nextElementSibling;r.remove(),r=t}}const a=n.map(({element:t,condition:e})=>{const n=t.cloneNode(!0);return n.removeAttribute("*if"),n.removeAttribute("*elseif"),n.removeAttribute("*else"),{template:n,condition:e}}),o=document.createComment("*if-chain");o.__gyos_static__=s(t),t.parentNode?.replaceChild(o,t);let c=null,l=-1;_t(o,()=>{let t=-1;for(let n=0;n<a.length;n++){const{condition:r}=a[n];if(null===r){t=n;break}if(ot(r,e,!1)){t=n;break}}if(t!==l){if(c){const t=c;mt(t),c=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}if(-1!==t){const{template:n}=a[t];c=Me(n),l=t,c.__gyos_static__=s(o),Oe(c,e);const r=Xt(c);r.length>0&&r.forEach(t=>{const n=Jt(t,e);if(n){const e=Kt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),o.parentNode?.insertBefore(c,o.nextSibling),Ne&&Ne(c,e,!0),r.length>0&&requestAnimationFrame(()=>{r.forEach(t=>Qt(t,e))})}else l=-1}})}(t,e):"switch"===n?function(t,e){const n=t.getAttribute("*switch"),r=[];Array.from(t.children).forEach(t=>{i(t)||(t.hasAttribute("*case")?r.push({element:t,value:t.getAttribute("*case")}):t.hasAttribute("*default")&&r.push({element:t,value:null}))});const s=r.map(({element:t,value:e})=>{const n=t.cloneNode(!0);return n.removeAttribute("*case"),n.removeAttribute("*default"),t.remove(),{template:n,value:e}});t.removeAttribute("*switch");const a=document.createComment("*switch-content");t.appendChild(a);let o=null,c=-1;_t(t,()=>{const t=ot(n,e,!1);let r=-1,i=-1;for(let n=0;n<s.length;n++){const{value:a}=s[n];if(null!==a){if(t===ot(a,e,!1)){r=n;break}}else-1===i&&(i=n)}if(-1===r&&(r=i),r!==c){if(o){const t=o;mt(t),o=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}if(-1!==r){const{template:t}=s[r];o=Me(t),c=r,Oe(o,e);const n=Xt(o);n.length>0&&n.forEach(t=>{const n=Jt(t,e);if(n){const e=Kt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ne&&Ne(o,e,!0),n.length>0&&requestAnimationFrame(()=>{n.forEach(t=>Qt(t,e))})}else c=-1}})}(t,e):"await"===n&&function(t,e){const n=t.getAttribute("*await");t.removeAttribute("*await");const r=Array.from(t.children);let s=null,a=null,o=null;r.forEach(t=>{if(!i(t))if(t.hasAttribute("*pending"))s=t.cloneNode(!0),s.removeAttribute("*pending"),t.remove();else if(t.hasAttribute("*then")){const e=t.getAttribute("*then")||null;a={template:t.cloneNode(!0),varName:e},a.template.removeAttribute("*then"),t.remove()}else if(t.hasAttribute("*catch")){const e=t.getAttribute("*catch")||null;o={template:t.cloneNode(!0),varName:e},o.template.removeAttribute("*catch"),t.remove()}});const c=document.createComment("*await");t.appendChild(c);let l=null,u="pending",h=0;const p=(t,n)=>{if(u=t,l){const t=l;l=null;const n=Xt(t);if(n.length>0){t.style.pointerEvents="none";const r=n.map(t=>Zt(t,e));Promise.all(r).then(()=>{te(t,!0)})}else te(t,!0)}let r=null,i=e;if("pending"===t&&s?r=s:"fulfilled"===t&&a?(r=a.template,a.varName&&(i=Ve({[a.varName]:n},e))):"rejected"===t&&o&&(r=o.template,o.varName&&(i=Ve({[o.varName]:n},e))),r){l=Me(r),Oe(l,i);const t=Xt(l);t.length>0&&t.forEach(t=>{const e=Jt(t,i);if(e){const n=Kt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),c.parentNode?.insertBefore(l,c.nextSibling),Ne&&Ne(l,i,!0),t.length>0&&requestAnimationFrame(()=>{t.forEach(t=>Qt(t,i))})}};_t(t,()=>{const t=ot(n,e,!1),r=++h;if(t instanceof Promise)return p("pending"),t.then(t=>{r===h&&"pending"===u&&p("fulfilled",t)}).catch(t=>{r===h&&"pending"===u&&p("rejected",t)}),()=>{h++};p("fulfilled",t)})}(t,e))})}(a,e),a.forEach(n=>{if(yt(t)!==r)return;if(!document.body.contains(n))return;if(0===n.attributes.length)return;if(Ue(n,e))return;const a=Array.from(n.attributes),l=s(n);!l&&(n.hasAttribute("g-form")||n.hasAttribute("g-validate")||n.hasAttribute("g-errors"))&&function(t,e){t instanceof HTMLFormElement&&t.hasAttribute("g-form")&&function(t,e){const n=t.getAttribute("g-form");if(!n||o(n))return;t.removeAttribute("g-form");const r=Z(t);!function(t){G.add(t)}(t);const s=async()=>{const e=K.get(t)||[],n={...r.touched.value};return Object.keys(n).forEach(t=>{n[t]=!0}),r.touched.value={...n},await Promise.all(e.map(t=>t())),tt(r),!r.$invalid.value};r.validateAll=s;const i={errors:r.errors,touched:r.touched,$invalid:r.$invalid,$valid:r.$valid,$dirty:r.$dirty,$pristine:r.$pristine,validateAll:s};n in e?Object.assign(e[n],i):e[n]=i;let a,c=!1,l=!1,u=!1,h=!0;const p=async n=>{if(c)c=!1;else if(n.preventDefault(),n.stopImmediatePropagation(),!l&&!u){l=!0;try{const r=await s();if(!h||!r)return;const i=t.getAttribute("g-submit");if(!i){const e="undefined"!=typeof SubmitEvent&&n instanceof SubmitEvent&&(n.submitter instanceof HTMLButtonElement||n.submitter instanceof HTMLInputElement)?n.submitter:void 0;return u=!0,void(a=setTimeout(()=>{if(u=!1,a=void 0,h){!function(t){z.add(t)}(t),c=!0;try{t.requestSubmit(e)}finally{c&&(c=!1),function(t){z.delete(t)}(t)}}},0))}const o=e[i];"function"==typeof o&&o.call(e)}finally{l=!1}}};t.addEventListener("submit",p,!0),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{h=!1,void 0!==a&&clearTimeout(a),u=!1,t.removeEventListener("submit",p,!0),function(t){G.delete(t),z.delete(t)}(t),Y.delete(t),K.delete(t)})}(t,e),[t,...t.querySelectorAll("[g-validate]")].forEach(t=>{t.hasAttribute("g-validate")&&(i(t)||t instanceof HTMLElement&&function(t){if(!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))return;const e=t.getAttribute("g-validate");if(!e)return;t.removeAttribute("g-validate");const n=X(t);if(!n)return;t[J]=n;const r=t.closest("form");if(!r)return;const s=Z(r);s.errors.value[n]=null,s.touched.value[n]=!1;let a,o=!0,c=0,l=Promise.resolve();const u=()=>(clearTimeout(a),a=void 0,l=(async()=>{if(!o)return;const a=++c,h=Q(t,r),p={};let f;r.querySelectorAll("input, textarea, select").forEach(t=>{if(!i(t)&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=X(t);e&&(p[e]=Q(t,r))}});try{f=await H(h,e,{form:p,field:n})}catch(t){f="Validation failed. Please try again."}if(!o)return;if(a!==c)return void await l;if(h!==Q(t,r))return void await u();const d=s.errors.value;d[n]!==f&&(d[n]=f,s.errors.value={...d},tt(s))})(),l);K.has(r)||K.set(r,[]),K.get(r).push(u);const h=()=>{const t=s.touched.value;t[n]||(t[n]=!0,s.touched.value={...t},tt(s)),u()};t.addEventListener("blur",h);const p=()=>{clearTimeout(a),a=setTimeout(()=>{u()},300)};t.addEventListener("input",p),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{o=!1,c++,delete t[J];const e=K.get(r),i=e?.indexOf(u)??-1;if(-1!==i&&e.splice(i,1),!Array.from(r.querySelectorAll("input, textarea, select")).some(t=>t[J]===n)){const t={...s.errors.peek};delete t[n];const e={...s.touched.peek};delete e[n],s.errors.value=t,s.touched.value=e,tt(s)}t.removeEventListener("blur",h),t.removeEventListener("input",p),clearTimeout(a)})}(t))}),[t,...t.querySelectorAll("[g-errors]")].forEach(t=>{t.hasAttribute("g-errors")&&(i(t)||t instanceof HTMLElement&&function(t){const e=t.getAttribute("g-errors");t.removeAttribute("g-errors");const n=t.closest("form");if(!n)return;const r=Z(n);if(""===e||null===e){const e=N(()=>{const e=r.errors.value,n=Object.entries(e).filter(([t,e])=>null!==e);t.replaceChildren(...n.map(([t,e])=>{const n=document.createElement("div"),r=document.createElement("strong");return r.textContent=t+":",n.append(r,document.createTextNode(" "+e)),n})),t.style.display=n.length?"":"none"});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(e)}else{const n=N(()=>{const n=r.errors.value[e];n?(t.textContent=n,t.style.display=""):(t.textContent="",t.style.display="none")});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}}(t))})}(n,e),a.some(t=>t.name.startsWith("g-")&&!t.name.startsWith("g-portal"))&&function(t,e){if(!i(t)){if(t.hasAttribute("g-show")){const n=t.getAttribute("g-show"),r="none"===t.style.display?"":t.style.display;let s=!1,i=0;_t(t,()=>{const a=!!ot(n,e),o=++i;return Kt.cancel(t),s?Jt(t,e)?(a?(t.style.display=r,Qt(t,e,!0)):"none"!==t.style.display&&Zt(t,e,!1).then(e=>{!1!==e&&o===i&&(t.style.display="none")}),()=>Kt.cancel(t)):(t.style.display=a?r:"none",()=>Kt.cancel(t)):(s=!0,t.style.display=a?r:"none",()=>Kt.cancel(t))})}if(t.hasAttribute("g-html")){const n=t.getAttribute("g-html");_t(t,()=>{const r=ot(n,e);Array.from(t.childNodes).forEach(t=>ee(t)),t.innerHTML=r})}if(t.hasAttribute("g-text")){const n=t.getAttribute("g-text");_t(t,()=>{const r=ot(n,e);Array.from(t.childNodes).forEach(t=>ee(t)),t.textContent=r})}s(t)||Array.from(t.attributes).forEach(n=>{if(n.name.startsWith("g-")&&!["g-scope","g-show","g-html","g-text","g-model","g-static","g-portal","g-transition","g-hydrate","g-provide"].includes(n.name)){const s=n.name.slice(2).replace(/:.+$/,""),i=(r=s,Ht.get(r)),a=n.name.split(":");let o;if(a.length>1&&(o=a.slice(1)),i){const r=()=>{if(""!==n.value.trim())return"on"===s&&"function"==typeof e[n.value]?e[n.value]:ot(n.value,e,!1)},a=r();let c=i.mounted?a:void 0,l=!i.mounted;if(i.mounted&&i.mounted(t,{value:a,arg:o,oldValue:void 0},e),i.unmounted){let e=!0;const n=()=>{e&&(e=!1,i.unmounted(t))};t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}i.updated&&_t(t,()=>{const n=r();if(!l)return l=!0,void(c=n);Object.is(c,n)||(i.updated(t,{value:n,oldValue:c,arg:o},e),c=n)})}}var r})}}(n,e),a.some(t=>t.name.startsWith(":"))&&function(t,e){if(!i(t)&&!t.hasAttribute("*if")&&!t.hasAttribute("*for"))for(const n of function(t){return Array.from(t.attributes).filter(t=>t.name.startsWith(":"))}(t)){const r=n.name.slice(1),s=n.value,i="class"===r?wt(t):void 0,a="style"===r?At(t):void 0;_t(t,()=>{const n=dt(t)||e,o=ot(s,n);"class"===r?Et(t,o,i):"style"===r?It(t,o,a):Mt(t,r,o)})}}(n,e),a.some(t=>t.name.match(/^g-model($|[.])/))&&!l&&function(t,e,n){if(i(t))return;if(function(t,e){let n=t.parentElement;for(;n&&n!==e;){if(n.hasAttribute("g-static")||n.__gyos_static__)return!0;n=n.parentElement}return!1}(t,n))return;const r=Array.from(t.attributes).find(t=>t.name.startsWith("g-model"));if(!r)return;const s=t,a=r.name.split(".").slice(1),o=r.value,l=a.includes("debounce");let u=300;if(l){const t=a.find(t=>/^\d+$/.test(t));t&&(u=parseInt(t))}c();const h=dt(t)||e,p=le(o);"string"==typeof p[0]&&function(t,e){if(!ce(t)||e in t)return;let n=t,r=ce(n);for(;r;)n=r,r=ce(n);e in n||(n[e]=void 0),Object.defineProperty(t,e,{get:()=>n[e],set:t=>{n[e]=t},configurable:!0,enumerable:!0})}(h,p[0]);const f=ot(o,h,!1);let d;"checkbox"===s.type?s.checked=!!V(f):"radio"===s.type?s.checked=V(f)+""===s.value:s.value=V(f);const m=t=>{const e=t.target;var n;("radio"!==e.type||e.checked)&&(n="checkbox"===e.type?e.checked:e.value,a.includes("number")&&(n=Number(n)),a.includes("trim")&&"string"==typeof n&&(n=n.trim()),l?(clearTimeout(d),d=setTimeout(()=>{ue(h,o,n)},u)):ue(h,o,n))};s.addEventListener("input",m),_t(t,()=>{const t=ot(o,h,!1);"checkbox"===s.type?s.checked=!!V(t):"radio"===s.type?s.checked=V(t)+""===s.value:s.value!==t&&(s.value=V(t))}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{s.removeEventListener("input",m),d&&(clearTimeout(d),d=void 0)}),t.removeAttribute(r.name)}(n,e,t)}),yt(t)===r&&(function(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),r=[];let s;for(;s=n.nextNode();){if(Be(s,t,e))continue;const n=s.textContent||"";n.includes("{")&&n.includes("}")&&r.push({node:s,template:n})}r.forEach(({node:t,template:n})=>{const r=t.parentElement;r&&_t(r,()=>{const r=dt(t.parentElement)||e;t.textContent=function(t,e){return t.replace(/\{([^}]+)\}/g,(t,n)=>{try{const t=ot(n.trim(),e);return null==t?"":t+""}catch(e){return t}})}(n,r)})})}(t,e),function(t,e){const n=u(t,t=>!i(t)&&!t.hasAttribute("g-static"),NodeFilter.FILTER_REJECT);n.unshift(t),n.forEach(t=>{if(s(t))return;const n=dt(t);n&&n!==e||Array.from(t.attributes).forEach(n=>{if(n.name.startsWith("@")){const r=n.name.substring(1).split("."),s=r[0],i=r.slice(1),a=n.value;if(i.includes("outside"))return void function(t,e,n,r,s){let i,a=!0;const o=s=>{const i=s.target;if(document.body.contains(t)){if(!(i instanceof Element&&i.closest("[g-ignore-outside-click]")||t===i||t.contains(i))){se(s,n);const i=dt(t)||r;n.includes("once")&&c(),ie(e,i,s)}}else c()},c=()=>{a&&(a=!1,void 0!==i&&(clearTimeout(i),i=void 0),document.removeEventListener("click",o,!0),l.disconnect())},l=new MutationObserver(e=>{for(const n of e)n.removedNodes.forEach(e=>{(e===t||e instanceof Element&&e.contains(t))&&!document.body.contains(t)&&c()})});l.observe(document.body,{childList:!0,subtree:!0}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(c),i=window.setTimeout(()=>{a&&document.addEventListener("click",o,!0)},0),t.removeAttribute(s)}(t,a,i,e,n.name);const o=function(t){const e=t.findIndex(t=>"debounce"===t||/^\d+$/.test(t));if(-1===e)return 0;if("debounce"===t[e]){const n=t[e+1];return n&&/^\d+$/.test(n)?parseInt(n):300}return 0}(i),c="keyup"===s||"keydown"===s||"keypress"===s,l={timeoutId:0};let u=()=>{};const h=n=>{if(c&&!function(t,e){let n=!1;for(const t of e)if(!re.has(t)&&!/^\d+$/.test(t)){n=!0;break}if(!n)return!0;const r=t.key.toLowerCase();for(const t of e){if(re.has(t)||/^\d+$/.test(t))continue;const e=ne[t];if(e){if(r===e)return!0}else if(r===t.toLowerCase())return!0}return!("backspace"!==r||!e.includes("delete"))}(n,i))return;se(n,i);const r=()=>{i.includes("once")&&u(),P(()=>{const r=dt(t)||e;ie(a,r,n)})};o>0?(clearTimeout(l.timeoutId),l.timeoutId=window.setTimeout(r,o)):r()},p={};let f=t;i.includes("capture")&&(p.capture=!0),i.includes("passive")&&(p.passive=!0),i.includes("global")&&(f=document.documentElement),f.addEventListener(s,h,p),u=()=>{f.removeEventListener(s,h,!!p.capture),l.timeoutId&&clearTimeout(l.timeoutId)},t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(u),t.removeAttribute(n.name)}})})}(t,e)),function(){const t=bt();if(t){for(let e=0;e<t.length;e++){const{target:n,runner:r,generation:s}=t[e];xt(n,r,s)}t.length=0,vt.pop()}}(),yt(t)===r&&!s(t)&&t.hasAttribute("g-portal")){const e=t.getAttribute("g-portal");j(t,e)}}const qe=new class{constructor(){this.observers=new Map,this.pending=new WeakSet}setup(t,e,n){if(this.pending.has(t))return;this.pending.add(t);const r=()=>{this.pending.delete(t),n()};switch(e){case"idle":this.hydrateOnIdle(t,r);break;case"visible":this.hydrateOnVisible(t,r);break;case"interaction":this.hydrateOnInteraction(t,r);break;default:if(e.startsWith("media(")){const n=`(${e.slice(6,-1)})`;this.hydrateOnMedia(t,n,r)}else r()}}hydrateOnIdle(t,e){let n=!0;const r=()=>{n&&(n=!1,e())};if("requestIdleCallback"in window){const e=window.requestIdleCallback(r,{timeout:2e3});this.trackCleanup(t,()=>{n=!1,window.cancelIdleCallback?.(e)})}else{const e=setTimeout(r,1);this.trackCleanup(t,()=>{n=!1,clearTimeout(e)})}}hydrateOnVisible(t,e){if(c(),!("IntersectionObserver"in window))return c(),void e();this.intersectionObserver||(c(),this.intersectionObserver=new IntersectionObserver(t=>{c(),t.forEach(t=>{if(c(),t.isIntersecting){const e=t.target,n=this.observers.get(e);n&&(c(),n(),this.observers.delete(e),this.intersectionObserver?.unobserve(e))}})},{rootMargin:"50px"})),this.observers.set(t,e),this.intersectionObserver.observe(t),this.trackCleanup(t,()=>this.cleanup(t)),c()}hydrateOnInteraction(t,e){const n=["mouseenter","touchstart","focus"];let r=!1;const s=()=>{r||(r=!0,n.forEach(e=>{t.removeEventListener(e,s)}),e())};n.forEach(e=>{t.addEventListener(e,s,{once:!0,passive:!0})}),this.trackCleanup(t,()=>{r=!0,n.forEach(e=>t.removeEventListener(e,s))})}hydrateOnMedia(t,e,n){const r=window.matchMedia(e);if(r.matches)n();else{let e=!0;const s=t=>{e&&t.matches&&(e=!1,n(),r.removeEventListener("change",s))};r.addEventListener("change",s),this.trackCleanup(t,()=>{e=!1,r.removeEventListener("change",s)})}}trackCleanup(t,e){t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{this.pending.delete(t),e()})}cleanup(t){this.pending.delete(t),this.observers.delete(t),this.intersectionObserver&&this.intersectionObserver.unobserve(t)}};Fe=Ke;const We=new Map,$e=new WeakSet;function He(t){if(!c())return;const e=[...t.querySelectorAll("[g-reveal]")];t instanceof Element&&t.hasAttribute("g-reveal")&&e.unshift(t);for(const t of e)$e.has(t)||i(t)||t.closest("[g-scope]")||dt(t)||$e.add(t)}function Ge(t){let e=0;for(;t.parentElement;)e++,t=t.parentElement;return e}function ze(t){if(t)return void(t instanceof HTMLElement?[t]:Array.from(t)).forEach(t=>Ye(t));const e=[...document.querySelectorAll("[g-scope]"),...u(document.body,t=>{if(t.hasAttribute("g-scope"))return!1;for(const e of t.attributes){const t=e.name;if(t.startsWith("gd-")||t.startsWith("gm-"))return!0}return!1})].filter(t=>!i(t));e.sort((t,e)=>Ge(e)-Ge(t)),e.forEach(t=>!t.hasAttribute("*if")&&!t.hasAttribute("*for")&&!p(t)&&Ke(t)),He(document.body)}function Ye(t){if(i(t)||!document.body.contains(t))return;const e=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)].filter(t=>t.hasAttribute("g-scope")||(t=>Array.from(t.attributes).some(t=>t.name.startsWith("gd-")||t.name.startsWith("gm-")))(t));if(e.sort((t,e)=>Ge(e)-Ge(t)),e.forEach(t=>!t.hasAttribute("*if")&&!t.hasAttribute("*for")&&!p(t)&&Ke(t)),He(t),ht(t))return;const n=dt(t);n&&je(t,n)}function Ke(t){document.body.contains(t)&&(i(t)||(pt().forEach((t,e)=>{e.isConnected||te(e)}),function(t,e){if(ht(t))return;const n=function(t,e){let n;const r=Qe(t,t=>ut.get(t));if(r)return r;n=function(t){t=Je(t);try{const e=t.trim();if(!e.startsWith("{"))return;const n=it().parseScope(e);return c(),n}catch(t){return void c()}}(e),n||(n=We.get(e)||{});const s=function(t){const e=["constructor","__proto__","prototype","globalThis","window","document","Function","eval","require","import"],n=t=>{if(0===t.length)return t;const e=t.trim();if("true"===e.toLocaleLowerCase())return!0;if("false"===e.toLocaleLowerCase())return!1;if(!isNaN(Number(t))&&e===t)return Number(t);if(!/^[\[{]/.test(e))return t;try{return JSON.parse(e)}catch(e){return t}},r=t.attributes;let s={},i=[];for(let t=0;t<r.length;t++){const a=r[t],l=a.name.substring(3).replace(/-([a-z])/g,t=>t[1].toUpperCase());if(o(l.split(":",1)[0]))i.push(a.name);else if(a.name.match(/^gd-.+/))s[l]=n(a.value),i.push(a.name);else if(a.name.match(/^gm-.+/)){const t=Je(a.value.trim());e.some(e=>t.includes(e))&&c();const n=l.split(":").slice(1),r=l.split(":")[0];try{s[r]=it().createMethod(n,t),i.push(a.name)}catch(t){c()}}}return i.forEach(e=>t.removeAttribute(e)),s}(t);if("function"==typeof n){const e=n;return n=>{const r=e(n);return r&&"object"==typeof r?(Object.keys(s).forEach(t=>{r[t]=s[t]}),Xe(t,r),r):r}}return Object.keys(s).forEach(t=>{n[t]=s[t]}),Xe(t,n),n}(t,e),r=function(t){return t.getAttribute("g-hydrate")||null}(t);r?qe.setup(t,r,()=>{document.body.contains(t)&&!i(t)&&Ze(t,n)}):Ze(t,n)}(t,t.getAttribute("g-scope")||Math.random().toString(36))))}function Je(t){try{return decodeURIComponent(t)}catch{return t}}function Xe(t,e){const n=u(t,t=>t.getAttributeNames().some(t=>t.startsWith("g-model"))),r=new Map;for(const t of n){if(i(t))continue;const n=t.attributes,s=Array.from(n).find(t=>t.name.startsWith("g-model"));if(!s)continue;if(s.value.includes("."))continue;const a=t;if("radio"===a.type){if(s.value in e)continue;if(r.has(s.value)||r.set(s.value,""),a.checked){const t=s.name.split(".").includes("number")?Number(a.value):a.value;r.set(s.value,t)}continue}if(s.value in e)continue;const o="checkbox"===a.type?a.checked:a.value;e[s.value]=o,c()}for(const[t,n]of r)t in e||(e[t]=n,c())}function Qe(t,e){if(!t.hasAttribute("g-scope-persist"))return;const n=t.getAttribute("g-scope-persist");if(!n)return;if(!n.startsWith("{")||!n.endsWith("}"))return e(n);const r=t.parentElement.__gyos_scope__;return r?e(ot(n.slice(1,-1),r,!1)):void 0}function Ze(t,e){let s=null;"object"==typeof e&&(s=Te(e));const a=function(t,e){const s=yt(t),a=()=>yt(t)===s,l={},u=new Map;return t.querySelectorAll("[g-ref]").forEach(e=>{if(i(e)||(e.closest("[g-scope]")||t)!==t)return;const n=e.getAttribute("g-ref");n&&!o(n)&&(l[n]=e)}),{inject:e=>U(t).get(e),provide:(e,n)=>{U(t).set(e,n)},$refs:l,$emit:(e,...n)=>{const r=u.get(e);r&&r.forEach(t=>{try{t(...n)}catch(t){c()}}),t.dispatchEvent(new CustomEvent(e,{detail:n}))},$on:(t,e)=>(u.has(t)||u.set(t,new Set),u.get(t).add(e),()=>{u.get(t)?.delete(e)}),$watch:(t,s,i={})=>{if(!a())return()=>{};const o=e();if(!o)return c(),()=>{};const{immediate:l=!1,deep:u=!1,debounce:h=0}=i;let p,f=!0;if(h>0){const t=s;s=(...e)=>{clearTimeout(p),p=setTimeout(()=>{p=void 0,f&&R(()=>t.call(o,...e))},h)}}let d,m=!1;const g=N(()=>{const e=((t,e)=>{const n=e.split(".");let r=t;for(const t of n){if(null==r)return;r=r[t]}return r})(o,t),i=u&&"object"==typeof e?n(e):e;if(!m)return d=i,m=!0,void(l&&R(()=>s.call(o,i,void 0)));(u?!r(d,i):!Object.is(d,i))&&(R(()=>s.call(o,i,d)),d=u&&"object"==typeof i?n(i):i)}),y=()=>{f=!1,clearTimeout(p),p=void 0,g()};return a()?(o.__gyos_effects__||(o.__gyos_effects__=[]),o.__gyos_effects__.push(y),y):(y(),y)},$effect:t=>{if(!a())return()=>{};const n=e();if(!n)return c(),()=>{};const r=N(t);return a()?(n.__gyos_effects__||(n.__gyos_effects__=[]),n.__gyos_effects__.push(r),r):(r(),r)}}}(t,()=>s);if("function"==typeof e&&!s){const t=e(a);s=t&&"object"==typeof t?Te(t):t}if(!s||"object"!=typeof s)return void c();let l=!1;if(s.onUpdate){const e=s[ye],n=N(()=>{e&&(e.value,l&&ht(t)===s&&s.onUpdate.call(s))});s.__gyos_effects__||(s.__gyos_effects__=[]),s.__gyos_effects__.push(n)}s.$refs=a.$refs,s.$emit=a.$emit,s.$on=a.$on,s.$watch=a.$watch,s.$effect=a.$effect,s.$inject=a.inject,s.$provide=a.provide,function(t,e){lt.set(t,e)}(t,s),function(t,e,n){t.__gyos_scope__=e,je(t,e),n&&n()}(t,s,()=>{if(ht(t)===s&&(l=!0,s.onMount))try{Promise.resolve(s.onMount.call(s)).catch(console.error)}catch(t){}}),ht(t)===s&&Qe(t,t=>{ut.has(t)||ut.set(t,s)})}const tn=new Map,en=new Map;function nn(t,e){return en.has(t)||en.set(t,new Set),en.get(t).add(e),()=>{en.get(t)?.delete(e)}}function rn(t,e){e?en.get(t)?.delete(e):en.delete(t)}class sn{constructor(t=!0){this.element=null,this.animationFrame=null,this.hideTimer=null,this.resetTimer=null,this.currentProgress=0,this.progressBarEnabled=!0,this.progressBarEnabled=t,this.createBar()}getCurrentProgress(){return this.currentProgress}reconnect(){this.element&&this.progressBarEnabled&&document.body&&(document.querySelectorAll("#gyos-progress-bar").forEach(t=>{t!==this.element&&t.remove()}),this.element.isConnected||document.body.appendChild(this.element))}createBar(){"undefined"!=typeof document&&(this.element=document.createElement("div"),this.element.id="gyos-progress-bar",this.element.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 0%;\n height: 6px;\n background: var(--gyos-progress-color, linear-gradient(90deg, #aab9ff, #77889f));\n z-index: 999999;\n transition: width 0.3s linear, opacity 0.3s linear;\n opacity: 0;\n pointer-events: none;\n box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);\n ","loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{this.reconnect()},{once:!0}):this.reconnect())}start(){this.element&&this.progressBarEnabled&&(this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null),this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null),this.currentProgress=0,this.element.style.width="0%",this.setProgress(20))}setProgress(t){this.element&&this.progressBarEnabled&&(this.reconnect(),t=Math.min(100,Math.max(0,t)),this.currentProgress=t,this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.element.style.width=t+"%",this.element.style.opacity=""+Math.max(.6,t/100))}complete(){this.element&&this.progressBarEnabled&&(this.setProgress(100),this.hideTimer=window.setTimeout(()=>{this.hideTimer=null,this.hide()},300))}hide(){this.element&&(this.element.style.opacity="0",this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=window.setTimeout(()=>{this.resetTimer=null,this.element&&(this.element.style.width="0%",this.currentProgress=0)},300))}}function an(t){t&&t.parentNode&&t.remove()}let on;function cn(t){on=t}function ln(){return("function"==typeof on?on():on)||void 0}const un=new Set;function hn(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return"inline:"+e}function pn(t){if(!t.hasAttribute("g-script-once"))return!0;const e=t.src||hn(t.textContent||"");return!un.has(e)&&(un.add(e),!0)}function fn(t){return t.hasAttribute("g-script-once")?t.src||hn(t.textContent||""):null}function dn(t,e=fn(t)){const n=e;n&&un.delete(n)}function mn(t,e,n=fn(t)){return t.src||"module"===t.type?new Promise(r=>{let s=!1;const i=()=>{s||(s=!0,e?.removeEventListener("abort",a),r())},a=()=>{dn(t,n),t.remove(),i()};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",()=>{dn(t,n),t.remove(),i()},{once:!0}),e?.aborted?a():e?.addEventListener("abort",a,{once:!0})}):Promise.resolve()}async function gn(t,e){if(e?.aborted)return void t.remove();const n=ln();if("csp"===at()&&!t.src&&!n)return void(t.textContent="");const r=fn(t);if(!pn(t))return void(t.textContent="");const s=document.createElement("script");Array.from(t.attributes).forEach(t=>s.setAttribute(t.name,t.value)),"csp"===at()&&s.removeAttribute("nonce"),n&&s.setAttribute("nonce",n),s.textContent=t.hasAttribute("g-script-wrap")?vn(t.textContent):t.textContent,s.removeAttribute("g-script-wrap");const i=mn(s,e,r);t.replaceWith(s),await i}async function yn(t,e){const n=[];for(const e of t)e instanceof HTMLScriptElement&&n.push(e),e instanceof Element&&n.push(...Array.from(e.querySelectorAll("script")));for(const t of n)if(await gn(t,e),e?.aborted)return}function vn(t){return t?`(() => { ${t} })();`:t}const bn=new Map;let xn=0;function _n(t,e=!1){if(t.dataset.gyosPersistId)return t.dataset.gyosPersistId;const n=t.getAttribute("g-persist");if(n&&n.trim().length)return t.dataset.gyosPersistId=n.trim(),t.dataset.gyosPersistId;if(t.id)return t.dataset.gyosPersistId="id:"+t.id,t.dataset.gyosPersistId;if(!e)return null;const r="gyos-persist-"+xn++;return t.dataset.gyosPersistId=r,r}const wn="undefined"!=typeof document?(()=>{const t=document.createElement("div");return t.style.position="fixed",t.style.left="-99999px",t.style.top="-99999px",t.style.width="0",t.style.height="0",document.documentElement.appendChild(t),t})():null;function En(t){const e=Array.from(t.querySelectorAll("[g-persist]"));return t instanceof HTMLElement&&t.matches("[g-persist]")&&e.unshift(t),e}function Sn(t,e){const n=new Set;Array.from(e.attributes).forEach(e=>{n.add(e.name),t.getAttribute(e.name)!==e.value&&t.setAttributeNodeNS(t.ownerDocument.importNode(e,!0))}),Array.from(t.attributes).forEach(e=>{n.has(e.name)||t.removeAttribute(e.name)})}function kn(t,e,n){if(e&&e.hasAttribute("g-noscroll"))return;const r=new URL(t).hash;if(r){let t=r.slice(1);try{t=decodeURIComponent(t)}catch{}const e=document.getElementById(t);if(e)return void e.scrollIntoView({behavior:"smooth"})}n?window.scrollTo(n.x,n.y):window.scrollTo({top:0,behavior:"smooth"})}const An=new WeakMap;function Cn(t,e){t.querySelectorAll("script[src], link[href]").forEach(t=>{const n="SCRIPT"===t.tagName?"src":"href",r=t.getAttribute(n);if(An.get(t)?.source!==r)try{An.set(t,{source:r,url:new URL(r,e).href})}catch{}})}function In(t){return"META"===t.tagName&&"csp-nonce"===t.getAttribute("name")?.toLowerCase()}function Tn(t){return"SCRIPT"===t.tagName||"STYLE"===t.tagName||function(t){return"LINK"===t.tagName&&(t.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}(t)}function Nn(t,e){const n=new Map;return t.map(t=>{const r=function(t,e){const n=t.tagName.toLowerCase(),r="script"===n||"style"===n?function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return e+""}(t.textContent||""):"";return`${n}|${function(t,e){const n=new Map;return Array.from(t.attributes).forEach(r=>{if(e.csp&&Tn(t)&&"nonce"===r.name.toLowerCase())return;if(e.csp&&In(t)&&"content"===r.name.toLowerCase())return;let s=r.value;if("SCRIPT"===t.tagName&&"src"===r.name||"LINK"===t.tagName&&"href"===r.name){const n=An.get(t);if(n?.source===s)s=n.url;else try{s=new URL(s,e.baseUrl||t.baseURI).href,An.set(t,{source:r.value,url:s})}catch{}}n.set(r.name,s)}),e.csp&&Tn(t)&&e.activeNonce&&n.set("nonce",e.activeNonce),e.csp&&In(t)&&e.activeNonce&&n.set("content",e.activeNonce),Array.from(n).map(([t,e])=>`${t}=${e}`).sort().join("|")}(t,e)}|${r}`}(t,e),s=n.get(r)||0;return n.set(r,s+1),{key:`${r}|${s}`,node:t}})}function Pn(t,e){return!(e.csp&&(In(t)||"STYLE"===t.tagName||"SCRIPT"===t.tagName&&!t.hasAttribute("src"))&&!e.activeNonce)}function Ln(t,e){e.csp&&(In(t)?e.activeNonce&&t.setAttribute("content",e.activeNonce):Tn(t)&&(t.removeAttribute("nonce"),e.activeNonce&&t.setAttribute("nonce",e.activeNonce)))}function Mn(t){"STYLE"===t.tagName||"SCRIPT"===t.tagName&&t.hasAttribute("src")}async function On(t,e,n=document.head,r,s=document.baseURI){const i="csp"===at(),a={csp:i,activeNonce:i?ln():void 0},o=Nn(t,{...a,baseUrl:s}),c=Nn(e,a),l=t=>n===document.head?t.getAttribute("g-head-persist"):null,u=new Set(t.map(l).filter(Boolean)),h=new Set(o.map(t=>t.key)),p=new Set(c.map(t=>t.key));o.forEach(({key:t,node:e})=>{p.has(t)||l(e)||e.remove()});for(const{key:t,node:e}of c){if(r?.aborted)return;if(!u.has(l(e))&&!h.has(t)){if(!Pn(e,a)){Mn(e);continue}if("STYLE"===e.tagName){const t=document.createElement("style");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),Ln(t,a),t.textContent=e.textContent||"",n.appendChild(t);continue}if("SCRIPT"===e.tagName){const t=e,s=fn(t);if(!pn(t)){e.remove();continue}const i=document.createElement("script");Array.from(e.attributes).forEach(t=>i.setAttribute(t.name,t.value)),Ln(i,a),i.textContent=e.hasAttribute("g-script-wrap")?vn(e.textContent||""):e.textContent||"",i.removeAttribute("g-script-wrap");const o=mn(i,r,s);n.appendChild(i),await o;continue}const t=document.importNode(e,!0);Ln(t,a),n.appendChild(t)}}}const Vn=new Set(["iframe","noembed","noframes","plaintext","script","textarea","title","xmp"]);function Rn(t,e){let n="";for(let r=e;r<t.length;r+=1){const e=t[r];if(n)e===n&&(n="");else if('"'!==e&&"'"!==e){if(">"===e)return r+1}else n=e}return t.length}function Dn(t,e,n,r){const s="</"+n;let i=e.indexOf(s,r);for(;-1!==i;){const n=e[i+s.length];if(">"===n||/\s/.test(n||""))return{start:i,end:Rn(t,i+s.length)};i=e.indexOf(s,i+s.length)}return null}function Bn(t,e){const n=function(t){const e=/^<\s*style\b/i.exec(t);if(!e)return t;let n=e[0],r=e[0].length;const s=t.length-1;for(;s>r;){const e=r;for(;s>r&&/\s/.test(t[r]);)r+=1;if(r>=s||">"===t[r]){n+=t.slice(e,r);break}const i=r;for(;s>r&&!/[\s=/>]/.test(t[r]);)r+=1;if(r===i){n+=t.slice(e,r+1),r+=1;continue}const a=t.slice(i,r).toLowerCase();for(;s>r&&/\s/.test(t[r]);)r+=1;if("="===t[r]){for(r+=1;s>r&&/\s/.test(t[r]);)r+=1;const e='"'===t[r]||"'"===t[r]?t[r]:"";if(e){for(r+=1;s>r&&t[r]!==e;)r+=1;t[r]===e&&(r+=1)}else for(;s>r&&!/[\s>]/.test(t[r]);)r+=1}"nonce"!==a&&(n+=t.slice(e,r))}return n+t.slice(s)}(t);return`${n.slice(0,-1)} nonce="${r=e,r.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">`;var r}const Fn=new WeakSet;async function Un(t,e,n){const r=new URL(t,document.baseURI);if(!["http:","https:"].includes(r.protocol)||r.origin!==location.origin||r.username||r.password)throw new TypeError("Gyos.navigate requires a same-origin HTTP(S) URL without credentials.");if(void 0!==e.target&&!(document.querySelector(e.target)instanceof HTMLElement))throw new TypeError("Gyos.navigate target does not exist.");if(!document.querySelector("[g-boost]"))throw new TypeError("Gyos.navigate requires a g-boost layout.");let s;return ar(),await Ar({url:r.href,method:"GET",changeState:"none"!==e.history,replace:"replace"===e.history,targetSelector:e.target,strictTarget:void 0!==e.target,swapMode:e.swap,currentHead:e.currentHead,scroll:e.scroll,signal:e.signal,...n,onEnd:t=>{s=t}}),s}const jn=new Map,qn=new Map;let Wn;const $n=new Map,Hn=new Map;let Gn=!1,zn=0,Yn=0,Kn=!0,Jn=fr(window.location.href,!0),Xn=history.state?.gyosEntryId||null,Qn=null,Zn=0,tr=null;const er=[],nr=[],rr=[],sr=[];function ir(t,e){const n=(t,n)=>e(t,n);return t.push(n),()=>{const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}function ar(t){document.querySelector("[g-boost]")&&(Gn||"undefined"!=typeof window&&"undefined"!=typeof document&&(Kn=!1!==t?.showProgress,Kn&&(tr=new sn(Kn)),document.addEventListener("click",Ir),document.addEventListener("submit",Lr),document.addEventListener("mouseover",Tr,!0),document.addEventListener("mousemove",Nr,!0),document.addEventListener("mouseleave",Pr),window.addEventListener("popstate",Mr),"scrollRestoration"in history&&(history.scrollRestoration="manual"),document.querySelectorAll("script").forEach(t=>{const e=t.hasAttribute("g-script-once"),n=e?t.src||hn(t.textContent||""):null;t.hasAttribute("g-script-wrap")&&t.removeAttribute("g-script-wrap"),e&&n&&un.add(n)}),Cn(document,document.baseURI),Gn=!0,h()))}function or(){return!!document.body?.hasAttribute("g-boost")}function cr(){return document.querySelector("[g-outlet]")}function lr(t){t.querySelectorAll("noscript").forEach(t=>t.remove())}function ur(t){const e=(new DOMParser).parseFromString(function(t){if("csp"!==at())return t;const e=ln(),n=t.toLowerCase();let r="",s=0,i=0;for(;s<t.length;){const a=t.indexOf("<",s);if(-1===a){r+=t.slice(s);break}if(r+=t.slice(s,a),t.startsWith("\x3c!--",a)){const e=t.indexOf("--\x3e",a+4),n=-1===e?t.length:e+3;r+=t.slice(a,n),s=n;continue}const o=Rn(t,a+1),c=t.slice(a,o),l=/^<\s*(\/?)\s*([a-z][\w:-]*)/i.exec(c);if(!l||l[1]){r+=c,s=o;continue}const u=l[2].toLowerCase();if("plaintext"===u){r+=t.slice(a);break}if("style"===u||"noscript"===u||Vn.has(u)){const l=Dn(t,n,u,o),h=l?.end??t.length;if("noscript"===u){s=h;continue}if("style"===u){if(!e){i+=1,s=h;continue}r+=Bn(c,e),r+=t.slice(o,h),s=h;continue}r+=t.slice(a,h),s=h;continue}r+=c,s=o}return r}(t),"text/html");return lr(e),e}function hr(t,e,n){if(e)try{const t=document.querySelector(e);if(t instanceof HTMLElement)return t}catch{}if(null!=n){const t=document.querySelectorAll("[g-outlet]")[n];if(t)return t}if(t){const e=t.getAttribute("g-target");if(e){const t=document.querySelector(e);if(t instanceof HTMLElement)return t}const n=t.closest("[g-outlet]");if(n instanceof HTMLElement)return n}const r=cr();return r instanceof HTMLElement?r:null}function pr(t){return/^\s*(?:<!--[^]*?-->\s*)*(?:<!doctype\s+html\b|<html(?:\s|>))/i.test(t)}function fr(t,e=!1){const n=new URL(t,window.location.href);return e||(n.hash=""),n.href}function dr(){return`gyos-${Date.now().toString(36)}-${++Yn}`}function mr(t=!0){if(Xn)return Xn;const e=history.state||{};return Xn=e.gyosEntryId||dr(),t&&!e.gyosEntryId&&history.replaceState({...e,gyosEntryId:Xn},""),Xn}function gr(t,e,n){let r=Hn.get(t);r||(r=new Map,Hn.set(t,r)),r.set(e,n.cloneNode(!0))}function yr(t,e){const n=Hn.get(t)?.get(e);return n?.cloneNode(!0)}function vr(t){return Qn?.id===t.id&&!t.controller.signal.aborted}function br(t){if(!vr(t))throw new DOMException("Navigation superseded","AbortError")}function xr(t){t.controller.abort(),t.interval&&(clearInterval(t.interval),t.interval=null),t.spinner&&(an(t.spinner),t.spinner=null)}function _r(t,e){return e.aborted?Promise.reject(new DOMException("Navigation superseded","AbortError")):new Promise((n,r)=>{const s=()=>r(new DOMException("Navigation superseded","AbortError"));e.addEventListener("abort",s,{once:!0}),t.then(t=>{e.removeEventListener("abort",s),n(t)},t=>{e.removeEventListener("abort",s),r(t)})})}function wr(t){t?.catch(()=>{})}function Er(t,e,n){[...t].forEach(t=>{try{t(e,{...n})}catch(t){}})}function Sr(t){const e=qn.get(t);qn.delete(t),e?.controller.abort()}function kr(t,e){t.querySelectorAll("script[src], link[href]").forEach(t=>{const n="SCRIPT"===t.tagName?"src":"href",r=t.getAttribute(n);r&&t.setAttribute(n,new URL(r,e).href)})}async function Ar(t){const e=(e=t.signal)=>{t.onEnd?.({from:Jn,url:t.url,method:t.method,trigger:t.trigger||null,target:null,form:null,popstate:!1,signal:e,status:null,committed:!1,fallback:!1,outcome:"aborted"})};if(t.signal?.aborted)return void e();if(t.background&&(Qn||Zn>0)){const t=new AbortController;return t.abort(),void e(t.signal)}for(;Qn;){const n=Qn;if(!n.committing){h(),xr(n);break}h(),Zn++;try{await(t.signal?_r(n.done,t.signal):n.done)}catch{return void e()}finally{Zn--}}let n;const r=new Promise(t=>{n=t}),s={id:++zn,controller:new AbortController,interval:null,spinner:null,committing:!1,done:r,resolveDone:n};Qn=s;const i=()=>xr(s);t.signal?.addEventListener("abort",i,{once:!0}),t.signal?.aborted&&i();const a=document.baseURI;Cn(document,a);const o={from:Jn,url:t.url,method:t.method.toUpperCase(),trigger:t.trigger||null,target:null,form:t.form||null,popstate:!0===t.popstate,signal:s.controller.signal,status:null,committed:!1,fallback:!1,outcome:null},c=t.form?{form:t.form,url:t.url,status:null,outcome:null,committed:!1,fallback:!1}:null,l=(e,n)=>{o.fallback=!t.background&&("GET"===o.method||!n&&!!t.form),o.outcome??(o.outcome=o.fallback?"fallback":"invalid-response"),t.background||function(t,e,n){"GET"!==(t.method||"GET").toUpperCase()?n||!t.form||HTMLFormElement.prototype.submit.call(t.form):window.location.href=e}(t,e,n)},u=t.background?null:tr,p=t.trigger?.hasAttribute("g-router-spin"),f=()=>{vr(s)&&u&&70>u.getCurrentProgress()&&u.setProgress(u.getCurrentProgress()+8*Math.random())};try{br(s),c&&document.dispatchEvent(new CustomEvent("gyos:form-start",{detail:{...c}})),Er(er,t.url,o),br(s),u?.start(),(d=t.scrollSourceEntryId??Xn)&&$n.set(d,{x:window.scrollX,y:window.scrollY}),t.popstate||function(){const t=history.state||{},e={x:window.scrollX,y:window.scrollY};history.replaceState({...t,scroll:e},"")}();let e=hr(t.trigger,t.targetSelector,t.targetOutletIndex);if(t.strictTarget&&(!t.targetSelector||!e?.matches(t.targetSelector)))return void(o.outcome="invalid-response");if(o.target=e,!e)return void(vr(s)&&l(t.url,!1));const n=(t.swapMode||t.trigger?.getAttribute("g-swap")||"inner").toLowerCase(),r=t.trigger instanceof HTMLElement&&t.trigger.hasAttribute("g-router-remove"),i=!["append","prepend"].includes(n),m=e===cr(),g=function(t,e){if(!e.hasAttribute("g-outlet"))return null;const n=Array.from(t.querySelectorAll("[g-outlet]")).indexOf(e);return-1===n?null:n}(document,e),y=m?null:t.targetSelector||t.trigger?.getAttribute("g-target")||(e.id?"#"+e.id:null),v=t.currentHead??t.trigger?.hasAttribute("g-current-head")??!1,b={targetSelector:y,targetOutletIndex:m?null:g,swapMode:m?"inner":"morph",currentHead:v};p&&(s.spinner=function(t,e){const n=function(){const t=document.createElement("div");if(t.className="gyos-target-spinner",t.innerHTML='\n\t\t<div class="gyos-spinner-content">\n\t\t\t<svg class="gyos-spinner-icon" viewBox="0 0 50 50">\n\t\t\t\t<circle cx="25" cy="25" r="20" fill="none" stroke="currentColor" stroke-width="4" stroke-dasharray="31.4 31.4" />\n\t\t\t</svg>\n\t\t</div>\n\t',"standard"===at()&&!document.getElementById("gyos-target-spinner-styles")){const t=document.createElement("style");t.id="gyos-target-spinner-styles",t.textContent="\n\t\t\t.gyos-target-spinner {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\tpadding: 20px;\n\t\t\t\tmin-height: 60px;\n\t\t\t}\n\t\t\t.gyos-spinner-content {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tgap: 10px;\n\t\t\t\tcolor: var(--gyos-spinner-color, #667eea);\n\t\t\t\tfont-size: 14px;\n\t\t\t}\n\t\t\t.gyos-spinner-icon {\n\t\t\t\twidth: 24px;\n\t\t\t\theight: 24px;\n\t\t\t\tanimation: gyos-spin 1s linear infinite;\n\t\t\t}\n\t\t\t@keyframes gyos-spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t",document.head.appendChild(t)}return t}();return"prepend"===e?t.prepend(n):t.appendChild(n),n}(e,n));const{finalUrl:x,init:_}=function(t){const e=(t.method||"GET").toUpperCase(),n=new Headers({"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"}),r={method:e,headers:n,redirect:"follow",mode:"same-origin"};let s=new URL(t.url,window.location.href);const i="GET"===e;if(t.formData)if(i)s=function(t,e){return e.forEach((e,n)=>{"string"==typeof e?t.searchParams.append(n,e):t.searchParams.append(n,e.name)}),t}(s,t.formData);else if("application/x-www-form-urlencoded"===t.formEncoding){const e=new URLSearchParams;t.formData.forEach((t,n)=>e.append(n,"string"==typeof t?t:t.name)),r.body=e}else r.body=t.formData;else if(t.jsonData){const e=(t,e)=>{"object"==typeof e?s.searchParams.append(t,JSON.stringify(e)):s.searchParams.append(t,e+"")};i?Object.entries(t.jsonData).forEach(([t,n])=>e(t,n)):(n.set("Content-Type","application/json"),r.body=JSON.stringify(t.jsonData))}return{finalUrl:s.toString(),init:r}}(t);let w,E;o.url=x,_.signal=s.controller.signal;const S=fr(x);if(t.popstate&&t.historyFragment)h();else if(t.popstate&&jn.has(S))h(),w=jn.get(S).html;else{const e=fr(x,!0);t.fresh&&Sr(e);const n="GET"===_.method?qn.get(e):void 0;if(n){h();const t=s.controller.signal,r=()=>{qn.get(e)===n&&Sr(e)};t.addEventListener("abort",r,{once:!0});try{E=await _r(n.request,t),E.ok&&Wn?.url===e&&(Wn.used=!0)}catch(t){if("AbortError"===t.name)throw t;return br(s),o.outcome="network-error",void l(x,!0)}finally{t.removeEventListener("abort",r),qn.get(e)===n&&qn.delete(e)}}else try{u?.setProgress(10*Math.random()+20),u&&(s.interval=setInterval(f,300)),E=await fetch(x,_),br(s),E.ok&&"GET"!==_.method&&function(){Pr();for(const t of qn.keys())Sr(t)}(),u?.setProgress(10*Math.random()+70),s.interval&&clearInterval(s.interval),s.interval=null}catch(t){return"AbortError"===t.name?void h():(o.outcome="network-error",void(vr(s)&&l(x,!0)))}br(s),o.status=E?.status??null,o.url=E?.url||x;const r=(t.trigger?.getAttribute("g-boost-errors")||"").split(/[\s,]+/),i=!!E&&E.status>=400&&599>=E.status&&r.includes(E.status+"");if(E&&!E.ok&&(o.outcome="http-error"),!E||!E.ok&&!i||!function(t){try{if(t.url&&new URL(t.url,window.location.href).origin!==window.location.origin)return!1}catch{return!1}const e=t.headers.get("Content-Disposition")||"";if(/\battachment\b/i.test(e))return!1;const n=(t.headers.get("Content-Type")||"").split(";",1)[0].trim().toLowerCase();return"text/html"===n||"application/xhtml+xml"===n}(E))return o.outcome??(o.outcome="invalid-response"),void(vr(s)&&l(x,!0));w=await E.text(),br(s)}const k=w?ur(w):document.implementation.createHTMLDocument(),A=t.strictSource&&t.targetSelector?k.querySelector(t.targetSelector):null;if(t.strictSource&&!(A instanceof HTMLElement)&&pr(w||""))return void(o.outcome="invalid-response");if(k.querySelector("base[href]")||t.historyFragment?.querySelector("base[href]"))return o.outcome="invalid-response",void l(E?.url||x,!0);E?.ok&&!t.popstate&&e.hasAttribute("g-snapshot")&&function(t,e){const n=ur(e);n.querySelectorAll("#gyos-progress-bar").forEach(t=>t.remove()),t.includes("#")&&(t=t.split("#")[0]),Array.from(n.scripts).forEach(t=>{t.hasAttribute("g-script-once")&&(t.textContent="")}),jn.set(t,{html:n.documentElement.outerHTML,fullDocument:pr(e)}),h()}(fr(E.url||x),w);const C=m&&i&&!v&&!t.historyFragment&&(t.popstate&&jn.has(S)?jn.get(S).fullDocument:pr(w||"")),I=t.historyFragment||(A instanceof HTMLElement?A:function(t,e,n){if(e.id){const n=t.getElementById(e.id);if(n instanceof HTMLElement)return n}if(null!==n){const e=t.querySelectorAll("[g-outlet]")[n];if(e)return e}const r=t.querySelector("[g-outlet]");return r instanceof HTMLElement?r:t.body}(k,e,g));lr(I),br(s);let T=E?.url||x;x.includes("#")&&E?.url&&(T+=x.substring(x.indexOf("#"))),kr(k,T),o.url=T,t.historyFragment&&kr(I,T);const N=t.trigger?.hasAttribute("g-change-state")||!1,P=t.trigger?.hasAttribute("g-current-state")||!1,L="GET"!==t.method.toUpperCase()&&!0===E?.redirected,M="http-error"!==o.outcome&&!P&&(!0===t.changeState||N||L),O=async()=>{br(s),s.committing=!0,Er(rr,T,o),br(s),u?.setProgress(10*Math.random()+80);const r=!M||t.replace||m?null:function(t){if(dt(t)||Array.from(t.querySelectorAll("*")).some(t=>t.__gyos_scope__))return null;const e=t.cloneNode(!0);return e.querySelectorAll(".gyos-target-spinner").forEach(t=>t.remove()),e}(e);let c=null,l=[],p=!1;if(i&&(function(t=document){wn&&(wn&&wn.parentElement!==document.documentElement&&document.documentElement.appendChild(wn),En(t).forEach(t=>{if(t===wn||wn.contains(t))return;const e=_n(t,!0);e&&(bn.set(e,t),wn.appendChild(t))}))}(e),function(t){te(t)}(e)),M)if(t.replace){const t=mr(!1);history.replaceState({...history.state||{},gyos:!0,gyosEntryId:t},"",T)}else{const t=mr(!1),e=dr(),n=history.state||{};history.replaceState({...n,gyos:!0,gyosEntryId:t,gyosRoutes:{...n.gyosRoutes||{},[e]:b}},""),history.pushState({gyos:!0,gyosEntryId:e,gyosRoutes:{[t]:b}},"",T),r&&(gr(t,e,r),c={currentEntryId:t,nextEntryId:e}),Xn=e}try{if(C&&!document.querySelector("base[href]")){document.head.querySelectorAll("base[target]").forEach(t=>t.remove());const t=k.head.querySelector("base[target]")?.getAttribute("target");if(null!=t){const e=document.createElement("base");e.target=t,document.head.prepend(e)}}e=await async function(t,e,n,r={}){const s=(n||"inner").toLowerCase(),i=document.importNode(e,!0),a=Array.from(i.childNodes);let o;if("replace"===s)h(),t.replaceWith(i),o=i;else if("morph"===s)h(),t.tagName!==i.tagName?(t.replaceWith(i),o=i):(function(t,e){const n=t=>t instanceof Element&&!!t.closest("[g-persist]"),r=t=>t?.nodeType===Node.COMMENT_NODE&&!!t.nodeValue?.includes("g-persist:"),s=t=>{if(t instanceof Element)return t.getAttribute("g-persist")||null;if(r(t)){const e=t.nodeValue.match(/g-persist:(\S+)/);return e?e[1]:null}return null},i=t=>`${t.tagName}|${t.id||""}|${t.dataset.gyosPersistId||""}|${t.dataset.gyosKey||""}`,a=t=>{if(!(t instanceof HTMLElement))return null;const{id:e,dataset:n}=t;return e||n.gyosPersistId||n.gyosKey?i(t):null},o=(t,e)=>{if(!t||!e)return;if(t===e)return;if(t.nodeType===Node.TEXT_NODE&&e.nodeType===Node.TEXT_NODE)return void(t.textContent!==e.textContent&&(t.textContent=e.textContent));if(!(t instanceof Element&&e instanceof Element))return void t.replaceWith(e.cloneNode(!0));if(n(t)||n(e))return;if(t.tagName!==e.tagName)return void t.replaceWith(e.cloneNode(!0));const c=(t=>{if(t instanceof HTMLInputElement){const e="checkbox"===t.type||"radio"===t.type,n="file"!==t.type&&t.value!==t.defaultValue,r=e&&t.checked!==t.defaultChecked;return n||r?{kind:"input",type:t.type,value:n?t.value:void 0,checked:r?t.checked:void 0}:null}if(t instanceof HTMLSelectElement){const e=Array.from(t.options);return e.some(t=>t.selected!==t.defaultSelected)?{kind:"select",values:e.filter(t=>t.selected).map(t=>t.value)}:null}return t instanceof HTMLTextAreaElement&&t.value!==t.defaultValue?{kind:"textarea",value:t.value}:null})(t);Sn(t,e);const l=t=>Array.from(t).filter(t=>!(t.nodeType===Node.TEXT_NODE&&""===(t.textContent||"").trim())),u=l(e.childNodes);let h=l(t.childNodes);const p=new Map;h.forEach(t=>{const e=s(t);e&&p.set(e,t)});let f=0;for(;f<u.length||f<h.length;){const e=u[f]||null;let c=h[f]||null;const d=s(e),m=d?null:a(e);if(m&&a(c)!==m){const n=h.findIndex((t,e)=>e>f&&a(t)===m);-1!==n?(t.insertBefore(h[n],c),h=l(t.childNodes),c=h[f]||null):e&&(t.insertBefore(e.cloneNode(!0),c),h=l(t.childNodes),c=h[f]||null)}const g=s(c);if(d){if(p.get(d)){f++;continue}t.insertBefore(e.cloneNode(!0),c||null),h=l(t.childNodes),f++;continue}if(g){f++;continue}if(!c&&e){t.appendChild(e.cloneNode(!0)),h=l(t.childNodes),f++;continue}if(c&&!e){if(!n(c)&&!r(c)){c.remove(),h=l(t.childNodes);continue}f++;continue}if(!c||!e){f++;continue}const y=c instanceof Element?i(c):"",v=e instanceof Element?i(e):"";y&&v&&y===v?(o(c,e),f++):y||v||c.nodeType!==e.nodeType?(n(c)||r(c)||(c.replaceWith(e.cloneNode(!0)),h=l(t.childNodes)),f++):(o(c,e),f++)}((t,e)=>{if(e){if("input"===e.kind&&t instanceof HTMLInputElement){if(t.type!==e.type)return;return void 0!==e.value&&(t.value=e.value),void(void 0!==e.checked&&(t.checked=e.checked))}if("select"===e.kind&&t instanceof HTMLSelectElement){const n=new Set(e.values);return void((0===n.size||Array.from(t.options).some(t=>n.has(t.value)))&&Array.from(t.options).forEach(t=>{t.selected=n.has(t.value)}))}"textarea"===e.kind&&t instanceof HTMLTextAreaElement&&(t.value=e.value)}})(t,c)};o(t,e)}(t,i),o=t);else if("append"===s)h(),t.append(...a),o=t;else if("prepend"===s)h(),t.prepend(...a),o=t;else{for(h(),r.syncRootAttributes&&Sn(t,i),t.replaceChildren();i.firstChild;)t.appendChild(i.firstChild);o=t}return r.onCommitted?.(o,"append"===s||"prepend"===s?a:[o]),await(r.beforeScripts?.()),"append"===s||"prepend"===s?await yn(a,r.signal):await async function(t,e){await yn([t],e)}(o,r.signal),o}(e,I,n,{syncRootAttributes:m,signal:s.controller.signal,beforeScripts:async()=>{if(!m||v)return;if(C)for(const t of["lang","dir"]){const e=k.documentElement.getAttribute(t);null===e?document.documentElement.removeAttribute(t):document.documentElement.setAttribute(t,e)}const t=k.querySelector("title");t&&(document.title=t.textContent||document.title),await async function(t,e,n){const r="meta, link, style:not(#gyos-transitions), script",s=Array.from(document.head.querySelectorAll(r)),i=Array.from(t.head.querySelectorAll(r));await On(s,i,document.head,e,n)}(k,s.controller.signal,a),br(s)},onCommitted:(t,n)=>{e=t,o.target=t,o.committed=!0,u?.reconnect(),l=n}}),o.committed=!0,br(s),m&&(await async function(t,e,n,r,s){const i=Array.from(document.scripts).filter(t=>!e.contains(t)&&!document.head.contains(t)),a=Array.from(t.scripts).filter(e=>!n.contains(e)&&!t.head.contains(e));await On(i,a,document.body,r,s)}(k,e,I,s.controller.signal,a),br(s))}finally{(()=>{if(p)return;p=!0;const t=l.filter(t=>t instanceof HTMLElement&&t.isConnected);!function(t){if(wn&&wn.parentElement!==document.body&&document.body.appendChild(wn),!bn.size)return;if(1===bn.size){const e=Array.from(bn.keys())[0];En(t).forEach(t=>{wn?.contains(t)||_n(t,!1)||(t.dataset.gyosPersistId=e)})}En(t).forEach(t=>{if(wn?.contains(t))return;const e=_n(t,!1);if(!e)return;const n=bn.get(e);n?(t.replaceWith(n),bn.delete(e)):t.dataset.gyosPersistId=e});const e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,null),n=[];for(;e.nextNode();){const t=e.currentNode;if(wn?.contains(t))continue;const r=t.data.match(/g-persist[:=]\s*([A-Za-z0-9_\-:.]+)/);r&&n.push({node:t,key:r[1]})}n.forEach(({node:t,key:e})=>{const n=bn.get(e);n&&(t.replaceWith(n),bn.delete(e))})}(e),c&&gr(c.nextEntryId,c.currentEntryId,e),ze(t.length>0?t:void 0)})()}if(!1===t.scroll);else if(M)kn(T,t.trigger);else if(t.popstate)kn(T,t.trigger,t.savedScroll);else{const e=history.state;kn(T,t.trigger,e?.scroll)}};if(!t.background&&document.startViewTransition){const t=document.startViewTransition(()=>O());wr(t?.ready),wr(t?.finished),t?.updateCallbackDone&&await t.updateCallbackDone}else await O();br(s),r&&"http-error"!==o.outcome&&t.trigger instanceof HTMLElement&&t.trigger.isConnected&&(te(t.trigger),t.trigger.remove()),p&&an(s.spinner),s.spinner=null,o.outcome??(o.outcome="success"),Er(nr,T,o),h(),Jn=fr(M?T:window.location.href,!0),t.popstate&&t.historyEntryId&&(Xn=t.historyEntryId)}catch(e){if("AbortError"===e.name)return void h();vr(s)&&(o.outcome??(o.outcome="error"),l(t.url,!0))}finally{if(s.controller.signal.aborted&&(o.outcome="aborted"),o.outcome??(o.outcome="aborted"),s.interval&&clearInterval(s.interval),s.spinner&&an(s.spinner),Qn?.id===s.id&&(Qn=null,u?.complete()),t.signal?.removeEventListener("abort",i),s.resolveDone(),c&&Fn.delete(c.form),Er(sr,o.url,o),c){const{url:t,status:e,outcome:n,committed:r,fallback:s}=o;document.dispatchEvent(new CustomEvent("gyos:form-end",{detail:{...c,url:t,status:e,outcome:n,committed:r,fallback:s}}))}t.onEnd?.({...o})}var d}function Cr(t){if(!(t instanceof HTMLAnchorElement)||!t.getAttribute("href")||t.hasAttribute("download")||t.closest("[g-no-boost]"))return null;const e=t.getAttribute("target")??document.querySelector("base[target]")?.getAttribute("target");if(e&&"_self"!==e.toLowerCase())return null;let n;try{n=new URL(t.href)}catch{return null}if(!["http:","https:"].includes(n.protocol)||n.origin!==location.origin||n.username||n.password)return null;if(n.href.includes("#")&&fr(n.href)===fr(location.href))return null;if(document.querySelector("base[href]")&&!t.hasAttribute("g-current-head")&&!["append","prepend"].includes(t.getAttribute("g-swap")?.toLowerCase()||""))try{if(hr(t)===cr())return null}catch{return null}return n}function Ir(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target;if(!e)return;const n=e.closest("[g-router-link]");if(n){if(n.closest("[g-no-boost]"))return;return t.preventDefault(),void function(t){h();const e=t.getAttribute("g-router-link"),n=t.getAttribute("g-router-method")||"GET";if(!e||!["GET","POST","PUT","DELETE","PATCH"].includes(n.toUpperCase()))return;let r;try{r=new URL(e,window.location.href)}catch{return}if(r.origin===window.location.origin)try{const e=dt(t),s=ot(decodeURIComponent(t.getAttribute("g-router-params")||""),e,!1);Ar({url:r.toString(),method:n,trigger:t,jsonData:s,changeState:!1})}catch(t){return}}(n)}const r=e.closest("a");if(!r||!r.hasAttribute("g-boost")&&!or())return;const s=Cr(r);s&&(t.preventDefault(),Ar({url:s.toString(),method:"GET",trigger:r,changeState:!0}))}function Tr(t){const e=t.target instanceof Element?t.target.closest("a[g-preload]"):null;if(!e)return;const n=Cr(e);if(!n)return;const r=Wn;r?.used&&r.url===n.href&&(t.clientX===r.x&&t.clientY===r.y||t.relatedTarget instanceof Node&&e.contains(t.relatedTarget))||(Wn={url:n.href,x:t.clientX,y:t.clientY,used:!1},function(t){const e=fr(t,!0);if(qn.has(e))return;h();const n=new AbortController,r=fetch(e,{headers:{"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"},signal:n.signal,mode:"same-origin"}),s={request:r,controller:n};qn.set(e,s),r.catch(()=>{qn.get(e)===s&&qn.delete(e)})}(n.href))}function Nr(t){const e=Wn;if(!e||t.clientX===e.x&&t.clientY===e.y)return;const n=t.target instanceof Element?t.target.closest("a[g-preload]"):null;n instanceof HTMLAnchorElement&&n.href===e.url?(e.x=t.clientX,e.y=t.clientY):Pr()}function Pr(){Wn=void 0}function Lr(t){if(t.defaultPrevented)return;const e=t.target;if(!e||"form"!==e.tagName.toLowerCase())return;if(e.closest("[g-no-boost]"))return;if(!e.hasAttribute("g-boost")&&!or())return;if(function(t){return!(!G.has(t)||z.has(t)&&(z.delete(t),1))}(e))return;const n=t.submitter,r=t=>n?.getAttribute("form"+t)??e.getAttribute(t),s=r("target")??document.querySelector("base[target]")?.getAttribute("target"),i=(r("method")||"GET").toUpperCase(),a=["GET","POST","DIALOG"].includes(i)?i:"GET",o=r("enctype")?.toLowerCase();if(s&&"_self"!==s.toLowerCase()||"DIALOG"===a||"text/plain"===o)return;if(!hr(e))return;if(n instanceof HTMLInputElement&&"image"===n.type)return;let c;try{c=new URL(r("action")||window.location.href,document.baseURI)}catch{return}if(c.origin!==window.location.origin)return;if(t.preventDefault(),Fn.has(e))return;const l=new FormData(e,n);Fn.add(e),Ar({url:c.toString(),method:a,trigger:e,form:e,formData:l,formEncoding:o,changeState:"GET"===a})}function Mr(t){const e=window.location.href,n=Xn,r=t.state||{},s=r.gyosEntryId||null,i=n?r.gyosRoutes?.[n]:void 0;if(fr(e)===fr(Jn)&&(!s||s===n))return Jn=fr(e,!0),void(Xn=s||n);t.preventDefault(),Qn?.committing&&xr(Qn),Xn=s,Ar({url:e,method:"GET",replace:!0,changeState:!1,popstate:!0,savedScroll:(s?$n.get(s):void 0)||r.scroll,targetSelector:i?.targetSelector,targetOutletIndex:i?.targetOutletIndex,swapMode:i?.swapMode,currentHead:i?.currentHead,historyFragment:n&&s?yr(s,n):void 0,historyEntryId:s,scrollSourceEntryId:n})}const Or={scope:function(t,e){if(t instanceof HTMLElement){const n=Math.random().toString(36);return t.setAttribute("g-scope",n),void We.set(n,e)}We.set(t,e)},mount:Ke,mountAll:ze,mountTree:Ye,cleanup:te,mountedScopes:pt,markRaw:function(t){return Object.prototype.hasOwnProperty.call(t,Se)||Reflect.defineProperty(t,Se,{value:!0,enumerable:!1}),t},shallow:function(t){return Object.prototype.hasOwnProperty.call(t,Ae)||Reflect.defineProperty(t,Ae,{value:!0,enumerable:!1}),t},directive:Gt,pipe:nt,provide:function(t,e){B.set(t,e)},inject:function(t,e){if(B.has(t))return B.get(t);if(void 0!==e)return e;throw Error(`[GyosJS] Service "${t}" not found in DI container`)},getGlobalContainer:function(){return B},store:function(t,e){if(e){const r=Te(e);return n=r,Object.prototype.hasOwnProperty.call(n,we)||Reflect.defineProperty(n,we,{value:!0,enumerable:!1}),tn.set(t,r),r}var n;const r=tn.get(t);if(!r)throw Error(`[GyosJS] Store "${t}" not found`);return r},hasStore:function(t){return tn.has(t)},removeStore:function(t){tn.delete(t)},getStoreNames:function(){return Array.from(tn.keys())},on:nn,emit:function(t,...e){const n=en.get(t);n&&n.forEach(t=>{try{t(...e)}catch(t){}})},off:rn,once:function(t,e){const n=(...r)=>{rn(t,n),e(...r)};return nn(t,n)},getEventListeners:function(){const t={};return en.forEach((e,n)=>{t[n]=e.size}),t},clearAllEvents:function(){en.clear()},validator:$,validate:H,getValidator:function(t){return W.get(t)},getValidatorNames:function(){return Array.from(W.keys())},signal:I,computed:T,effect:N,batch:P,isSignal:L,isComputed:O,unref:V,untrack:R,registerTransition:function(t,e){Yt[t]=e},getTransitionConfig:function(t){if("string"==typeof t)return Yt[t]||null;const e=Array.from(t.attributes).find(t=>"g-transition"===t.name||t.name.startsWith("g-transition."));if(!e)return null;const n=e.value;try{return JSON.parse(n)}catch{const t=Yt[n];if(!t)return Yt.fade;if(e.name.startsWith("g-transition.")){const n=e.name.match(/g-transition\.(\d+)/);if(n)return{...t,duration:parseInt(n[1],10)}}return t}},useFetch:function(t){const e=I(null),n=I(!0),r=I(null);let s=0,i=!0;const a=async()=>{if(!i)return;const a=++s;n.value=!0,r.value=null,e.value=null;try{const n="function"==typeof t?await t():t;if(a!==s)return;const r="string"==typeof n?await fetch(n):n;if(!r.ok)throw Error("HTTP error! status: "+r.status);const i=await r.json();a===s&&(e.value=i)}catch(t){a===s&&(r.value=t)}finally{a===s&&(n.value=!1)}};return{data:e,loading:n,error:r,refetch:a,onMount:()=>(i=!0,a()),onUnmount:()=>{i=!1,s++,n.value=!1}}},useCounter:function(t=0){const e=I(t),n=T(()=>2*e.value);return{count:e,double:n,increment:(t=1)=>{e.update(e=>e+t)},decrement:(t=1)=>{e.value-=t},reset:()=>{e.update(()=>t)}}},useToggle:function(t=!1){const e=I(t);return{state:e,toggle:()=>{e.value=!e.value},setTrue:()=>{e.value=!0},setFalse:()=>{e.value=!1},value:e}},useLocalStorage:function(t,e){const n=localStorage.getItem(t),r=I(n?JSON.parse(n):e??""),s=r.subscribe(()=>localStorage.setItem(t,JSON.stringify(r.value)));return{state:r,remove:()=>localStorage.removeItem(t),onUnmount:s}},useInterval:function(t,e){let n=null;const r=()=>{s(),null!==e&&(n=setInterval(t,e))},s=()=>{null!==n&&(clearInterval(n),n=null)};return{start:r,stop:s,onMount:()=>r(),onUnmount:()=>s(),restart:()=>{s(),r()}}},useTimeout:function(t,e){let n=null;const r=()=>{s(),n=setTimeout(()=>{n=null,t()},e)},s=()=>{null!==n&&(clearTimeout(n),n=null)};return{start:r,clear:s,onMount:()=>r(),onUnmount:()=>s()}},useDebounce:function(t="",e){const n=I(t),r=I(t);let s=null;const i=N(()=>{const t=n.value;null!==s&&clearTimeout(s),s=setTimeout(()=>{r.value=t},e)});return{value:n,debounced:T(()=>r.value),onUnmount:()=>{i(),null!==s&&clearTimeout(s)}}},useThrottle:function(t="",e){const n=I(t),r=I(t);let s=0;const i=N(()=>{const t=n.value,i=Date.now();e>i-s||(s=i,r.value=t)});return{value:n,throttled:T(()=>r.value),onUnmount:()=>{i()}}},useMouse:function(){const t=I(0),e=I(0),n=n=>{t.value=n.clientX,e.value=n.clientY};return{x:t,y:e,onMount:()=>{window.addEventListener("mousemove",n)},onUnmount:()=>{window.removeEventListener("mousemove",n)}}},useWindowSize:function(){const t=I(window.innerWidth),e=I(window.innerHeight),n=()=>{t.value=window.innerWidth,e.value=window.innerHeight};return{width:t,height:e,onMount:()=>{window.addEventListener("resize",n)},onUnmount:()=>{window.removeEventListener("resize",n)}}},useMediaQuery:function(t){const e={},n={},r={},s=Object.keys(t);for(const i of s){const s=window.matchMedia(t[i]);n[i]=s,e[i]=I(s.matches),r[i]=t=>{e[i].value=t.matches}}return{matches:e,onMount:()=>{for(const t of s){const e=n[t],s=r[t];e.addEventListener?e.addEventListener("change",s):e.addListener(s)}},onUnmount:()=>{for(const t of s){const e=n[t],s=r[t];e.removeEventListener?e.removeEventListener("change",s):e.removeListener(s)}}}},useAsync:function(t,e=!0){const n=I(null),r=I(!1),s=I(null);let i=0,a=!0;const o=async()=>{if(!a)return;const e=++i;r.value=!0,s.value=null;try{const r=await t();e===i&&(n.value=r)}catch(t){e===i&&(s.value=t)}finally{e===i&&(r.value=!1)}};return{data:n,loading:r,error:s,execute:o,onMount:()=>(a=!0,e?o():void 0),onUnmount:()=>{a=!1,i++,r.value=!1}}},nextTick:function(t){Promise.resolve().then(t)},debounce:function(t,e){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}},throttle:function(t,e){let n=0;return(...r)=>{const s=Date.now();e>s-n||(n=s,t(...r))}},ready:e,applyDirective:function(t,e,n,r){const s=Ht.get(e);if(!s)return()=>{};const i={value:n,oldValue:void 0,arg:r};return s.mounted&&s.mounted(t,i),()=>{s.unmounted&&s.unmounted(t)}},applyTransitionStyles:function(){if("undefined"==typeof document)return;if("csp"===at())return;const t="gyos-transitions";if(document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent="\n /* Opacity utilities */\n .gyos-t-opacity-0 { opacity: 0; }\n .gyos-t-opacity-100 { opacity: 1; }\n \n /* Transform - Translate Y */\n .gyos-t-translate-y-0 { transform: translateY(0); }\n .gyos-t-translate-y--100 { transform: translateY(-100%); }\n .gyos-t-translate-y-100 { transform: translateY(100%); }\n \n /* Transform - Translate X */\n .gyos-t-translate-x-0 { transform: translateX(0); }\n .gyos-t-translate-x--100 { transform: translateX(-100%); }\n .gyos-t-translate-x-100 { transform: translateX(100%); }\n \n /* Transform - Scale */\n .gyos-t-scale-0 { transform: scale(0); }\n .gyos-t-scale-50 { transform: scale(0.5); }\n .gyos-t-scale-100 { transform: scale(1); }\n \n /* Animation Keyframes */\n @keyframes gyos-fade-in {\n\t\tfrom { opacity: 0; }\n\t\tto { opacity: 1; }\n }\n \n @keyframes gyos-fade-out {\n\t\tfrom { opacity: 1; }\n\t\tto { opacity: 0; }\n }\n \n @keyframes gyos-slide-down {\n\t\tfrom { transform: translateY(-100%); opacity: 0; }\n\t\tto { transform: translateY(0); opacity: 1; }\n }\n \n @keyframes gyos-slide-up {\n\t\tfrom { transform: translateY(100%); opacity: 0; }\n\t\tto { transform: translateY(0); opacity: 1; }\n }\n \n @keyframes gyos-scale-in {\n\t\tfrom { transform: scale(0); opacity: 0; }\n\t\tto { transform: scale(1); opacity: 1; }\n }\n \n @keyframes gyos-scale-out {\n\t\tfrom { transform: scale(1); opacity: 1; }\n\t\tto { transform: scale(0); opacity: 0; }\n }\n\n [g-cloak] {\n\t\tdisplay: none !important;\n }",document.head.appendChild(e)},startRouter:ar,onBeforeNavigate:function(t){return ir(er,t)},onAfterNavigate:function(t){return ir(nr,t)},onBeforeSwap:function(t){return ir(rr,t)},onNavigationEnd:function(t){return ir(sr,(e,n)=>t(n))},navigate:function(t,e={}){return Un(t,e)},refresh:function({background:t,strictSource:e,...n}={}){return!0===e&&void 0===n.target?Promise.reject(new TypeError("Gyos.refresh with strictSource requires a target selector.")):Un(location.href,{history:"none",scroll:!1,...n},{fresh:!0,background:!0===t,strictSource:!0===e})},portalCreate:j,portalDestroy:q,setCspNonce:cn,version:"0.6.0"};var Vr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Rr=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Dr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Br={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Fr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ur={5:Fr,"5module":Fr+" export import",6:Fr+" const class extends export import super"},jr=/^in(stanceof)?$/,qr=RegExp("["+Dr+"]"),Wr=RegExp("["+Dr+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function $r(t,e){for(var n=65536,r=0;r<e.length;r+=2){if((n+=e[r])>t)return!1;if((n+=e[r+1])>=t)return!0}return!1}function Hr(t,e){return 65>t?36===t:91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&$r(t,Rr):t>=170&&qr.test(String.fromCharCode(t))))}function Gr(t,e){return 48>t?36===t:58>t||t>=65&&(91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&($r(t,Rr)||$r(t,Vr)):t>=170&&Wr.test(String.fromCharCode(t)))))}var zr=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function Yr(t,e){return new zr(t,{beforeExpr:!0,binop:e})}var Kr={beforeExpr:!0},Jr={startsExpr:!0},Xr={};function Qr(t,e){return void 0===e&&(e={}),e.keyword=t,Xr[t]=new zr(t,e)}var Zr={num:new zr("num",Jr),regexp:new zr("regexp",Jr),string:new zr("string",Jr),name:new zr("name",Jr),privateId:new zr("privateId",Jr),eof:new zr("eof"),bracketL:new zr("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new zr("]"),braceL:new zr("{",{beforeExpr:!0,startsExpr:!0}),braceR:new zr("}"),parenL:new zr("(",{beforeExpr:!0,startsExpr:!0}),parenR:new zr(")"),comma:new zr(",",Kr),semi:new zr(";",Kr),colon:new zr(":",Kr),dot:new zr("."),question:new zr("?",Kr),questionDot:new zr("?."),arrow:new zr("=>",Kr),template:new zr("template"),invalidTemplate:new zr("invalidTemplate"),ellipsis:new zr("...",Kr),backQuote:new zr("`",Jr),dollarBraceL:new zr("${",{beforeExpr:!0,startsExpr:!0}),eq:new zr("=",{beforeExpr:!0,isAssign:!0}),assign:new zr("_=",{beforeExpr:!0,isAssign:!0}),incDec:new zr("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new zr("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Yr("||",1),logicalAND:Yr("&&",2),bitwiseOR:Yr("|",3),bitwiseXOR:Yr("^",4),bitwiseAND:Yr("&",5),equality:Yr("==/!=/===/!==",6),relational:Yr("</>/<=/>=",7),bitShift:Yr("<</>>/>>>",8),plusMin:new zr("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Yr("%",10),star:Yr("*",10),slash:Yr("/",10),starstar:new zr("**",{beforeExpr:!0}),coalesce:Yr("??",1),_break:Qr("break"),_case:Qr("case",Kr),_catch:Qr("catch"),_continue:Qr("continue"),_debugger:Qr("debugger"),_default:Qr("default",Kr),_do:Qr("do",{isLoop:!0,beforeExpr:!0}),_else:Qr("else",Kr),_finally:Qr("finally"),_for:Qr("for",{isLoop:!0}),_function:Qr("function",Jr),_if:Qr("if"),_return:Qr("return",Kr),_switch:Qr("switch"),_throw:Qr("throw",Kr),_try:Qr("try"),_var:Qr("var"),_const:Qr("const"),_while:Qr("while",{isLoop:!0}),_with:Qr("with"),_new:Qr("new",{beforeExpr:!0,startsExpr:!0}),_this:Qr("this",Jr),_super:Qr("super",Jr),_class:Qr("class",Jr),_extends:Qr("extends",Kr),_export:Qr("export"),_import:Qr("import",Jr),_null:Qr("null",Jr),_true:Qr("true",Jr),_false:Qr("false",Jr),_in:Qr("in",{beforeExpr:!0,binop:7}),_instanceof:Qr("instanceof",{beforeExpr:!0,binop:7}),_typeof:Qr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Qr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Qr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ts=/\r\n?|\n|\u2028|\u2029/,es=RegExp(ts.source,"g");function ns(t){return 10===t||13===t||8232===t||8233===t}function rs(t,e,n){void 0===n&&(n=t.length);for(var r=e;n>r;r++){var s=t.charCodeAt(r);if(ns(s))return n-1>r&&13===s&&10===t.charCodeAt(r+1)?r+2:r+1}return-1}var ss=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,is=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,as=Object.prototype,os=as.hasOwnProperty,cs=as.toString,ls=Object.hasOwn||function(t,e){return os.call(t,e)},us=Array.isArray||function(t){return"[object Array]"===cs.call(t)},hs=Object.create(null);function ps(t){return hs[t]||(hs[t]=RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function fs(t){return t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t)}var ds=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ms=function(t,e){this.line=t,this.column=e};ms.prototype.offset=function(t){return new ms(this.line,this.column+t)};var gs=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function ys(t,e){for(var n=1,r=0;;){var s=rs(t,r,e);if(0>s)return new ms(n,e-r);++n,r=s}}var vs={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},bs=!1;function xs(t,e){return 2|(t?4:0)|(e?8:0)}var _s=function(t,e,n){this.options=t=function(t){var e={};for(var n in vs)e[n]=t&&ls(t,n)?t[n]:vs[n];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!bs&&"object"==typeof console&&console.warn&&(bs=!0),e.ecmaVersion=11):2015>e.ecmaVersion||(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=5>e.ecmaVersion),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),us(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}if(us(e.onComment)&&(e.onComment=function(t,e){return function(n,r,s,i,a,o){var c={type:n?"Block":"Line",value:r,start:s,end:i};t.locations&&(c.loc=new gs(this,a,o)),t.ranges&&(c.range=[s,i]),e.push(c)}}(e,e.onComment)),"commonjs"===e.sourceType&&e.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}(t),this.sourceFile=t.sourceFile,this.keywords=ps(Ur[6>t.ecmaVersion?"module"===t.sourceType?"5module":5:6]);var r="";!0!==t.allowReserved&&(r=Br[6>t.ecmaVersion?5===t.ecmaVersion?5:3:6],"module"===t.sourceType&&(r+=" await")),this.reservedWords=ps(r);var s=(r?r+" ":"")+Br.strict;this.reservedWordsStrict=ps(s),this.reservedWordsStrictBind=ps(s+" "+Br.strictBind),this.input=e+"",this.containsEsc=!1,this.pos=n||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):n?(this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(ts).length)):this.lineStart=0,this.type=Zr.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||!0===t.strict||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},ws={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};_s.prototype.parse=function(){var t=this,e=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(e)})},ws.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},ws.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},ws.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},ws.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ws.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},ws.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},ws.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},ws.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ws.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},ws.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t||!this.inModule&&1&t)},ws.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},_s.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,r=0;r<t.length;r++)n=t[r](n);return n},_s.parse=function(t,e){return new this(e,t).parse()},_s.parseExpressionAt=function(t,e,n){var r=new this(n,t,e);return r.nextToken(),r.parseExpression()},_s.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(_s.prototype,ws);var Es=_s.prototype,Ss=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Es.strictDirective=function(t){if(5>this.options.ecmaVersion)return!1;for(;;){is.lastIndex=t,t+=is.exec(this.input)[0].length;var e=Ss.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){is.lastIndex=t+e[0].length;var n=is.exec(this.input),r=n.index+n[0].length,s=this.input.charAt(r);return";"===s||"}"===s||ts.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(r+1))}t+=e[0].length,is.lastIndex=t,t+=is.exec(this.input)[0].length,";"===this.input[t]&&t++}},Es.eat=function(t){return this.type===t&&(this.next(),!0)},Es.isContextual=function(t){return this.type===Zr.name&&this.value===t&&!this.containsEsc},Es.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Es.catchStackOverflow=function(t){try{return t()}catch(t){if(!(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message))))throw t;this.raise(this.start,"Not enough stack space to parse input")}},Es.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Es.canInsertSemicolon=function(){return this.type===Zr.eof||this.type===Zr.braceR||ts.test(this.input.slice(this.lastTokEnd,this.start))},Es.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Es.semicolon=function(){this.eat(Zr.semi)||this.insertSemicolon()||this.unexpected()},Es.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Es.expect=function(t){this.eat(t)||this.unexpected()},Es.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var ks=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Es.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,e?"Assigning to rvalue":"Parenthesized pattern")}},Es.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;0>n||this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),0>r||this.raiseRecoverable(r,"Redefinition of __proto__ property")},Es.checkYieldAwaitInDefaultParams=function(){!this.yieldPos||this.awaitPos&&this.yieldPos>=this.awaitPos||this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Es.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var As=_s.prototype;As.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==Zr.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var i=s[r];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(t,"Program")};var Cs={kind:"loop"},Is={kind:"switch"};As.isLet=function(t){if(6>this.options.ecmaVersion||!this.isContextual("let"))return!1;is.lastIndex=this.pos;var e=is.exec(this.input),n=this.pos+e[0].length,r=this.fullCharCodeAt(n);if(91===r||92===r)return!0;if(t)return!1;if(123===r)return!0;if(Hr(r)){var s=n;do{n+=r>65535?2:1}while(Gr(r=this.fullCharCodeAt(n)));if(92===r)return!0;var i=this.input.slice(s,n);if(!jr.test(i))return!0}return!1},As.isAsyncFunction=function(){if(8>this.options.ecmaVersion||!this.isContextual("async"))return!1;is.lastIndex=this.pos;var t,e=is.exec(this.input),n=this.pos+e[0].length;return!(ts.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(Gr(t=this.fullCharCodeAt(n+8))||92===t))},As.isUsingKeyword=function(t,e){if(17>this.options.ecmaVersion||!this.isContextual(t?"await":"using"))return!1;is.lastIndex=this.pos;var n=is.exec(this.input),r=this.pos+n[0].length;if(ts.test(this.input.slice(this.pos,r)))return!1;if(t){var s,i=r+5;if("using"!==this.input.slice(r,i)||i===this.input.length||Gr(s=this.fullCharCodeAt(i))||92===s)return!1;is.lastIndex=i;var a=is.exec(this.input);if(r=i+a[0].length,a&&ts.test(this.input.slice(i,r)))return!1}var o=this.fullCharCodeAt(r);if(!Hr(o)&&92!==o)return!1;var c=r;do{r+=o>65535?2:1}while(Gr(o=this.fullCharCodeAt(r)));if(92===o)return!0;var l=this.input.slice(c,r);return!(jr.test(l)||e&&!t&&"of"===l&&(is.lastIndex=r,r+=is.exec(this.input)[0].length,61!==this.input.charCodeAt(r)||61===(o=this.input.charCodeAt(r+1))||62===o))},As.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},As.isUsing=function(t){return this.isUsingKeyword(!1,t)},As.parseStatement=function(t,e,n){var r,s=this.type,i=this.startNode();switch(this.isLet(t)&&(s=Zr._var,r="let"),s){case Zr._break:case Zr._continue:return this.parseBreakContinueStatement(i,s.keyword);case Zr._debugger:return this.parseDebuggerStatement(i);case Zr._do:return this.parseDoStatement(i);case Zr._for:return this.parseForStatement(i);case Zr._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case Zr._class:return t&&this.unexpected(),this.parseClass(i,!0);case Zr._if:return this.parseIfStatement(i);case Zr._return:return this.parseReturnStatement(i);case Zr._switch:return this.parseSwitchStatement(i);case Zr._throw:return this.parseThrowStatement(i);case Zr._try:return this.parseTryStatement(i);case Zr._const:case Zr._var:return r=r||this.value,t&&"var"!==r&&this.unexpected(),this.parseVarStatement(i,r);case Zr._while:return this.parseWhileStatement(i);case Zr._with:return this.parseWithStatement(i);case Zr.braceL:return this.parseBlock(!0,i);case Zr.semi:return this.parseEmptyStatement(i);case Zr._export:case Zr._import:if(this.options.ecmaVersion>10&&s===Zr._import){is.lastIndex=this.pos;var a=is.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===Zr._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),t&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),"await using"===l&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,"VariableDeclaration");var u=this.value,h=this.parseExpression();return s===Zr.name&&"Identifier"===h.type&&this.eat(Zr.colon)?this.parseLabeledStatement(i,u,h,t):this.parseExpressionStatement(i,h)}},As.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Zr.semi)||this.insertSemicolon()?t.label=null:this.type!==Zr.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if(null==t.label||s.name===t.label.name){if(null!=s.kind&&(n||"loop"===s.kind))break;if(t.label&&n)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},As.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},As.parseDoStatement=function(t){return this.next(),this.labels.push(Cs),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(Zr._while),t.test=this.parseParenExpression(),6>this.options.ecmaVersion?this.semicolon():this.eat(Zr.semi),this.finishNode(t,"DoWhileStatement")},As.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Cs),this.enterScope(0),this.expect(Zr.parenL),this.type===Zr.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Zr._var||this.type===Zr._const||n){var r=this.startNode(),s=n?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}var i=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var c=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(c,!0,o),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,e)}var l=this.containsEsc,u=new ks,h=this.start,p=e>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===Zr._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===Zr._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(p.start!==h||l||"Identifier"!==p.type||"async"!==p.name?9>this.options.ecmaVersion||(t.await=!1):this.unexpected()),i&&a&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,u),this.checkLValPattern(p),this.parseForIn(t,p)):(this.checkExpressionErrors(u,!0),e>-1&&this.unexpected(e),this.parseFor(t,p))},As.parseForAfterInit=function(t,e,n){return(this.type===Zr._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.type===Zr._in?("using"!==e.kind&&"await using"!==e.kind||e.declarations[0].init||this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&n>-1&&this.unexpected(n)):9>this.options.ecmaVersion||(t.await=n>-1),this.parseForIn(t,e)):(n>-1&&this.unexpected(n),this.parseFor(t,e))},As.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,Ns|(n?0:Ps),!1,e)},As.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(Zr._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},As.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Zr.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},As.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Zr.braceL),this.labels.push(Is),this.enterScope(1024);for(var n=!1;this.type!==Zr.braceR;)if(this.type===Zr._case||this.type===Zr._default){var r=this.type===Zr._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Zr.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},As.parseThrowStatement=function(t){return this.next(),ts.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Ts=[];As.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(Zr.parenR),t},As.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Zr._catch){var e=this.startNode();this.next(),this.eat(Zr.parenL)?e.param=this.parseCatchClauseParam():(10>this.options.ecmaVersion&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Zr._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},As.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")},As.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Cs),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},As.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},As.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},As.parseLabeledStatement=function(t,e,n,r){for(var s=0,i=this.labels;s<i.length;s+=1)i[s].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===Zr._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var c=this.labels[o];if(c.statementStart!==t.start)break;c.statementStart=this.start,c.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},As.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},As.parseBlock=function(t,e,n){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(Zr.braceL),t&&this.enterScope(0);this.type!==Zr.braceR;){var r=this.parseStatement(null);e.body.push(r)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},As.parseFor=function(t,e){return t.init=e,this.expect(Zr.semi),t.test=this.type===Zr.semi?null:this.parseExpression(),this.expect(Zr.semi),t.update=this.type===Zr.parenR?null:this.parseExpression(),this.expect(Zr.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},As.parseForIn=function(t,e){var n=this.type===Zr._in;return this.next(),"VariableDeclaration"!==e.type||null==e.declarations[0].init||n&&this.options.ecmaVersion>=8&&!this.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(e.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(Zr.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")},As.parseVar=function(t,e,n,r){for(t.declarations=[],t.kind=n;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(Zr.eq)?s.init=this.parseMaybeAssign(e):r||"const"!==n||this.type===Zr._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||17>this.options.ecmaVersion||this.type===Zr._in||this.isContextual("of")?r||"Identifier"===s.id.type||e&&(this.type===Zr._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(Zr.comma))break}return t},As.parseVarId=function(t,e){t.id="using"===e||"await using"===e?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Ns=1,Ps=2;function Ls(t,e){var n=e.key.name,r=t[n],s="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(s=(e.static?"s":"i")+e.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(t[n]="true",!1):!!r||(t[n]=s,!1)}function Ms(t,e){var n=t.computed,r=t.key;return!n&&("Identifier"===r.type&&r.name===e||"Literal"===r.type&&r.value===e)}As.parseFunction=function(t,e,n,r,s){this.initFunction(t),9>this.options.ecmaVersion&&(6>this.options.ecmaVersion||r)||(this.type===Zr.star&&e&Ps&&this.unexpected(),t.generator=this.eat(Zr.star)),8>this.options.ecmaVersion||(t.async=!!r),e&Ns&&(t.id=4&e&&this.type!==Zr.name?null:this.parseIdent(),!t.id||e&Ps||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xs(t.async,t.generator)),e&Ns||(t.id=this.type===Zr.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,s),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Ns?"FunctionDeclaration":"FunctionExpression")},As.parseFunctionParams=function(t){this.expect(Zr.parenL),t.params=this.parseBindingList(Zr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},As.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),s=this.startNode(),i=!1;for(s.body=[],this.expect(Zr.braceL);this.type!==Zr.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(i&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),i=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ls(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},As.parseClassElement=function(t){if(this.eat(Zr.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),r="",s=!1,i=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(Zr.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Zr.star?o=!0:r="static"}if(n.static=o,r||8>e||!this.eatContextual("async")||(!this.isClassElementNameStart()&&this.type!==Zr.star||this.canInsertSemicolon()?r="async":i=!0),r||9>e&&i||!this.eat(Zr.star)||(s=!0),!r&&!i&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),13>e||this.type===Zr.parenL||"method"!==a||s||i){var l=!n.static&&Ms(n,"constructor"),u=l&&t;l&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":a,this.parseClassMethod(n,s,i,u)}else this.parseClassField(n);return n},As.isClassElementNameStart=function(){return this.type===Zr.name||this.type===Zr.privateId||this.type===Zr.num||this.type===Zr.string||this.type===Zr.bracketL||this.type.keyword},As.parseClassElementName=function(t){this.type===Zr.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},As.parseClassMethod=function(t,e,n,r){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),n&&this.raise(s.start,"Constructor can't be an async method")):t.static&&Ms(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var i=t.value=this.parseMethod(e,n,r);return"get"===t.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===t.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},As.parseClassField=function(t){return Ms(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Ms(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Zr.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},As.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Zr.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},As.parseClassId=function(t,e){this.type===Zr.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},As.parseClassSuper=function(t){t.superClass=this.eat(Zr._extends)?this.parseExprSubscripts(null,!1):null},As.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},As.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=0===r?null:this.privateNameStack[r-1],i=0;i<n.length;++i){var a=n[i];ls(e,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},As.parseExportAllDeclaration=function(t,e){return 11>this.options.ecmaVersion||(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==Zr.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},As.parseExport=function(t,e){if(this.next(),this.eat(Zr.star))return this.parseExportAllDeclaration(t,e);if(this.eat(Zr._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,16>this.options.ecmaVersion||(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Zr.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause());else{for(var n=0,r=t.specifiers;n<r.length;n+=1){var s=r[n];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,16>this.options.ecmaVersion||(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},As.parseExportDeclaration=function(t){return this.parseStatement(null)},As.parseExportDefaultDeclaration=function(){var t;if(this.type===Zr._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Ns,!1,t)}if(this.type===Zr._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},As.checkExport=function(t,e,n){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),ls(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},As.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e,e.start);else if("ObjectPattern"===n)for(var r=0,s=e.properties;r<s.length;r+=1){var i=s[r];this.checkPatternExport(t,i)}else if("ArrayPattern"===n)for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkPatternExport(t,c)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n&&this.checkPatternExport(t,e.argument)},As.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var s=r[n];this.checkPatternExport(t,s.id)}},As.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},As.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},As.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(Zr.braceL);!this.eat(Zr.braceR);){if(n)n=!1;else if(this.expect(Zr.comma),this.afterTrailingComma(Zr.braceR))break;e.push(this.parseExportSpecifier(t))}return e},As.parseImport=function(t){return this.next(),this.type===Zr.string?(t.specifiers=Ts,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Zr.string?this.parseExprAtom():this.unexpected()),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},As.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},As.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},As.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},As.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Zr.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(Zr.comma)))return t;if(this.type===Zr.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(Zr.braceL);!this.eat(Zr.braceR);){if(e)e=!1;else if(this.expect(Zr.comma),this.afterTrailingComma(Zr.braceR))break;t.push(this.parseImportSpecifier())}return t},As.parseWithClause=function(){var t=[];if(!this.eat(Zr._with))return t;this.expect(Zr.braceL);for(var e={},n=!0;!this.eat(Zr.braceR);){if(n)n=!1;else if(this.expect(Zr.comma),this.afterTrailingComma(Zr.braceR))break;var r=this.parseImportAttribute(),s="Identifier"===r.key.type?r.key.name:r.key.value;ls(e,s)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+s+"'"),e[s]=!0,t.push(r)}return t},As.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===Zr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Zr.colon),this.type!==Zr.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},As.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Zr.string){var t=this.parseLiteral(this.value);return ds.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},As.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},As.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var Os=_s.prototype;Os.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,s=t.properties;r<s.length;r+=1){var i=s[r];this.toAssignable(i,e),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},Os.toAssignableList=function(t,e){for(var n=t.length,r=0;n>r;r++){var s=t[r];s&&this.toAssignable(s,e)}if(n){var i=t[n-1];6===this.options.ecmaVersion&&e&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return t},Os.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Os.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Zr.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Os.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Zr.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Zr.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Zr.braceL:return this.parseObj(!0)}return this.parseIdent()},Os.parseBindingList=function(t,e,n,r){for(var s=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(Zr.comma),e&&this.type===Zr.comma)s.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===Zr.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===Zr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}s.push(this.parseAssignableListItem(r))}return s},Os.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},Os.parseBindingListItem=function(t){return t},Os.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),6>this.options.ecmaVersion||!this.eat(Zr.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Os.checkLValSimple=function(t,e,n){void 0===e&&(e=0);var r=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(ls(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}},Os.checkLValPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var r=0,s=t.properties;r<s.length;r+=1){var i=s[r];this.checkLValInnerPattern(i,e,n)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,e,n)}break;default:this.checkLValSimple(t,e,n)}},Os.checkLValInnerPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,n);break;case"RestElement":this.checkLValPattern(t.argument,e,n);break;default:this.checkLValPattern(t,e,n)}};var Vs=function(t,e,n,r,s){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=r,this.generator=!!s},Rs={b_stat:new Vs("{",!1),b_expr:new Vs("{",!0),b_tmpl:new Vs("${",!1),p_stat:new Vs("(",!1),p_expr:new Vs("(",!0),q_tmpl:new Vs("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Vs("function",!1),f_expr:new Vs("function",!0),f_expr_gen:new Vs("function",!0,!1,null,!0),f_gen:new Vs("function",!1,!1,null,!0)},Ds=_s.prototype;Ds.initialContext=function(){return[Rs.b_stat]},Ds.curContext=function(){return this.context[this.context.length-1]},Ds.braceIsBlock=function(t){var e=this.curContext();return e===Rs.f_expr||e===Rs.f_stat||(t!==Zr.colon||e!==Rs.b_stat&&e!==Rs.b_expr?t===Zr._return||t===Zr.name&&this.exprAllowed?ts.test(this.input.slice(this.lastTokEnd,this.start)):t===Zr._else||t===Zr.semi||t===Zr.eof||t===Zr.parenR||t===Zr.arrow||(t===Zr.braceL?e===Rs.b_stat:t!==Zr._var&&t!==Zr._const&&t!==Zr.name&&!this.exprAllowed):!e.isExpr)},Ds.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},Ds.updateContext=function(t){var e,n=this.type;n.keyword&&t===Zr.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},Ds.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},Zr.parenR.updateContext=Zr.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===Rs.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Zr.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?Rs.b_stat:Rs.b_expr),this.exprAllowed=!0},Zr.dollarBraceL.updateContext=function(){this.context.push(Rs.b_tmpl),this.exprAllowed=!0},Zr.parenL.updateContext=function(t){var e=t===Zr._if||t===Zr._for||t===Zr._with||t===Zr._while;this.context.push(e?Rs.p_stat:Rs.p_expr),this.exprAllowed=!0},Zr.incDec.updateContext=function(){},Zr._function.updateContext=Zr._class.updateContext=function(t){!t.beforeExpr||t===Zr._else||t===Zr.semi&&this.curContext()!==Rs.p_stat||t===Zr._return&&ts.test(this.input.slice(this.lastTokEnd,this.start))||(t===Zr.colon||t===Zr.braceL)&&this.curContext()===Rs.b_stat?this.context.push(Rs.f_stat):this.context.push(Rs.f_expr),this.exprAllowed=!1},Zr.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Zr.backQuote.updateContext=function(){this.curContext()===Rs.q_tmpl?this.context.pop():this.context.push(Rs.q_tmpl),this.exprAllowed=!1},Zr.star.updateContext=function(t){if(t===Zr._function){var e=this.context.length-1;this.context[e]===Rs.f_expr?this.context[e]=Rs.f_expr_gen:this.context[e]=Rs.f_gen}this.exprAllowed=!0},Zr.name.updateContext=function(t){var e=!1;6>this.options.ecmaVersion||t===Zr.dot||("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var Bs=_s.prototype;function Fs(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&Fs(t.expression)}function Us(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&Us(t.expression)||"ParenthesizedExpression"===t.type&&Us(t.expression)}Bs.checkPropClash=function(t,e,n){if((9>this.options.ecmaVersion||"SpreadElement"!==t.type)&&(6>this.options.ecmaVersion||!(t.computed||t.method||t.shorthand))){var r,s=t.key;switch(s.type){case"Identifier":r=s.name;break;case"Literal":r=s.value+"";break;default:return}var i=t.kind;if(6>this.options.ecmaVersion){var a=e[r="$"+r];a?("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(s.start,"Redefinition of property"):a=e[r]={init:!1,get:!1,set:!1},a[i]=!0}else"__proto__"===r&&"init"===i&&(e.proto&&(n?0>n.doubleProto&&(n.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),e.proto=!0)}},Bs.parseExpression=function(t,e){var n=this;return this.catchStackOverflow(function(){var r=n.start,s=n.startLoc,i=n.parseMaybeAssign(t,e);if(n.type===Zr.comma){var a=n.startNodeAt(r,s);for(a.expressions=[i];n.eat(Zr.comma);)a.expressions.push(n.parseMaybeAssign(t,e));return n.finishNode(a,"SequenceExpression")}return i})},Bs.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,s=-1,i=-1,a=-1;e?(s=e.parenthesizedAssign,i=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new ks,r=!0);var o=this.start,c=this.startLoc;this.type!==Zr.parenL&&this.type!==Zr.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var l=this.parseMaybeConditional(t,e);if(n&&(l=n.call(this,l,o,c)),this.type.isAssign){var u=this.startNodeAt(o,c);return u.operator=this.value,this.type===Zr.eq&&(l=this.toAssignable(l,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign<l.start||(e.shorthandAssign=-1),this.type===Zr.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),s>-1&&(e.parenthesizedAssign=s),i>-1&&(e.trailingComma=i),l},Bs.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,s=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return s;if(("ArrowFunctionExpression"!==s.type||s.start!==n)&&this.eat(Zr.question)){var i=this.startNodeAt(n,r);return i.test=s,i.consequent=this.parseMaybeAssign(),this.expect(Zr.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return s},Bs.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,s=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||s.start===n&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,n,r,-1,t)},Bs.parseExprOp=function(t,e,n,r,s){var i=this.type.binop;if(null!=i&&(!s||this.type!==Zr._in)&&i>r){var a=this.type===Zr.logicalOR||this.type===Zr.logicalAND,o=this.type===Zr.coalesce;o&&(i=Zr.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,u,i,s),p=this.buildBinary(e,n,t,h,c,a||o);return(a&&this.type===Zr.coalesce||o&&(this.type===Zr.logicalOR||this.type===Zr.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,n,r,s)}return t},Bs.buildBinary=function(t,e,n,r,s,i){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=n,a.operator=s,a.right=r,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},Bs.parseMaybeUnary=function(t,e,n,r){var s,i=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(r),e=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===Zr.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Fs(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Us(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,s=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==Zr.privateId){if(s=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==Zr._in&&this.unexpected();return n||"ArrowFunctionExpression"===s.type&&s.start===i||!this.eat(Zr.starstar)?s:e?void this.unexpected(this.lastTokStart):this.buildBinary(i,a,s,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},Bs.parseExprSubscripts=function(t,e){var n=this.start,r=this.startLoc,s=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var i=this.parseSubscripts(s,n,r,!1,e);return t&&"MemberExpression"===i.type&&(t.parenthesizedAssign<i.start||(t.parenthesizedAssign=-1),t.parenthesizedBind<i.start||(t.parenthesizedBind=-1),t.trailingComma<i.start||(t.trailingComma=-1)),i},Bs.parseSubscripts=function(t,e,n,r,s){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,n,r,i,a,s);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(e,n);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}t=o}},Bs.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Zr.arrow)},Bs.parseSubscriptAsyncArrow=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,r)},Bs.parseSubscript=function(t,e,n,r,s,i,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(Zr.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(Zr.bracketL);if(l||c&&this.type!==Zr.parenL&&this.type!==Zr.backQuote||this.eat(Zr.dot)){var u=this.startNodeAt(e,n);u.object=t,l?(u.property=this.parseExpression(),this.expect(Zr.bracketR)):this.type===Zr.privateId&&"Super"!==t.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!l,o&&(u.optional=c),t=this.finishNode(u,"MemberExpression")}else if(!r&&this.eat(Zr.parenL)){var h=new ks,p=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(Zr.parenR,this.options.ecmaVersion>=8,!1,h);if(s&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(e,n,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(e,n);g.callee=t,g.arguments=m,o&&(g.optional=c),t=this.finishNode(g,"CallExpression")}else if(this.type===Zr.backQuote){(c||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(e,n);y.tag=t,y.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(y,"TaggedTemplateExpression")}return t},Bs.parseExprAtom=function(t,e,n){this.type===Zr.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case Zr._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==Zr.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==Zr.dot&&this.type!==Zr.bracketL&&this.type!==Zr.parenL&&this.unexpected(),this.finishNode(r,"Super");case Zr._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case Zr.name:var i=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(Zr._function))return this.overrideContext(Rs.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(Zr.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[c],!1,e);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===Zr.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Zr.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[c],!0,e)}return c;case Zr.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case Zr.num:case Zr.string:return this.parseLiteral(this.value);case Zr._null:case Zr._true:case Zr._false:return(r=this.startNode()).value=this.type===Zr._null?null:this.type===Zr._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case Zr.parenL:var u=this.start,h=this.parseParenAndDistinguishExpression(s,e);return t&&(0>t.parenthesizedAssign&&!this.isSimpleAssignTarget(h)&&(t.parenthesizedAssign=u),0>t.parenthesizedBind&&(t.parenthesizedBind=u)),h;case Zr.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(Zr.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case Zr.braceL:return this.overrideContext(Rs.b_expr),this.parseObj(!1,t);case Zr._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case Zr._class:return this.parseClass(this.startNode(),!1);case Zr._new:return this.parseNew();case Zr.backQuote:return this.parseTemplate();case Zr._import:return 11>this.options.ecmaVersion?this.unexpected():this.parseExprImport(n);default:return this.parseExprAtomDefault()}},Bs.parseExprAtomDefault=function(){this.unexpected()},Bs.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Zr.parenL&&!t)return this.parseDynamicImport(e);if(this.type===Zr.dot){var n=this.startNodeAt(e.start,e.loc&&e.loc.start);return n.name="import",e.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(e)}this.unexpected()},Bs.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),16>this.options.ecmaVersion){if(!this.eat(Zr.parenR)){var e=this.start;this.eat(Zr.comma)&&this.eat(Zr.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}}else this.eat(Zr.parenR)?t.options=null:(this.expect(Zr.comma),this.afterTrailingComma(Zr.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(Zr.parenR)||(this.expect(Zr.comma),this.afterTrailingComma(Zr.parenR)||this.unexpected())));return this.finishNode(t,"ImportExpression")},Bs.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},Bs.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=null!=e.value?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},Bs.parseParenExpression=function(){this.expect(Zr.parenL);var t=this.parseExpression();return this.expect(Zr.parenR),t},Bs.shouldParseArrow=function(t){return!this.canInsertSemicolon()},Bs.parseParenAndDistinguishExpression=function(t,e){var n,r=this.start,s=this.startLoc,i=this.options.ecmaVersion>=8;if(6>this.options.ecmaVersion)n=this.parseParenExpression();else{this.next();var a,o=this.start,c=this.startLoc,l=[],u=!0,h=!1,p=new ks,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Zr.parenR;){if(u?u=!1:this.expect(Zr.comma),i&&this.afterTrailingComma(Zr.parenR,!0)){h=!0;break}if(this.type===Zr.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===Zr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(Zr.parenR),t&&this.shouldParseArrow(l)&&this.eat(Zr.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,s,l,e);l.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((n=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(n,"SequenceExpression",m,g)):n=l[0]}if(this.options.preserveParens){var y=this.startNodeAt(r,s);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},Bs.parseParenItem=function(t){return t},Bs.parseParenArrowList=function(t,e,n,r){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,r)};var js=[];Bs.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Zr.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),"Super"===t.callee.type&&this.raiseRecoverable(r,"Invalid use of 'super'"),this.eat(Zr.parenL)?t.arguments=this.parseExprList(Zr.parenR,this.options.ecmaVersion>=8,!1):t.arguments=js,this.finishNode(t,"NewExpression")},Bs.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Zr.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Zr.backQuote,this.finishNode(n,"TemplateElement")},Bs.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===Zr.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Zr.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Zr.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},Bs.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Zr.name||this.type===Zr.num||this.type===Zr.string||this.type===Zr.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Zr.star)&&!ts.test(this.input.slice(this.lastTokEnd,this.start))},Bs.parseObj=function(t,e){var n=this.startNode(),r=!0,s={};for(n.properties=[],this.next();!this.eat(Zr.braceR);){if(r)r=!1;else if(this.expect(Zr.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Zr.braceR))break;var i=this.parseProperty(t,e);t||this.checkPropClash(i,s,e),n.properties.push(i)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},Bs.parseProperty=function(t,e){var n,r,s,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Zr.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===Zr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===Zr.comma&&e&&0>e.trailingComma&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));6>this.options.ecmaVersion||(a.method=!1,a.shorthand=!1,(t||e)&&(s=this.start,i=this.startLoc),t||(n=this.eat(Zr.star)));var o=this.containsEsc;return this.parsePropertyName(a),t||o||8>this.options.ecmaVersion||n||!this.isAsyncProp(a)?r=!1:(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Zr.star),this.parsePropertyName(a)),this.parsePropertyValue(a,t,n,r,s,i,e,o),this.finishNode(a,"Property")},Bs.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var n="get"===t.kind?0:1;if(t.value.params.length!==n){var r=t.value.start;"get"===t.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},Bs.parsePropertyValue=function(t,e,n,r,s,i,a,o){(n||r)&&this.type===Zr.colon&&this.unexpected(),this.eat(Zr.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):6>this.options.ecmaVersion||this.type!==Zr.parenL?e||o||5>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Zr.comma||this.type===Zr.braceR||this.type===Zr.eq?6>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type?this.unexpected():((n||r)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e?t.value=this.parseMaybeDefault(s,i,this.copyNode(t.key)):this.type===Zr.eq&&a?(0>a.shorthandAssign&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,i,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):((n||r)&&this.unexpected(),this.parseGetterSetter(t)):(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,r),t.kind="init")},Bs.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Zr.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Zr.bracketR),t.key;t.computed=!1}return t.key=this.type===Zr.num||this.type===Zr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Bs.initFunction=function(t){t.id=null,6>this.options.ecmaVersion||(t.generator=t.expression=!1),8>this.options.ecmaVersion||(t.async=!1)},Bs.parseMethod=function(t,e,n){var r=this.startNode(),s=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),6>this.options.ecmaVersion||(r.generator=t),8>this.options.ecmaVersion||(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|xs(e,r.generator)|(n?128:0)),this.expect(Zr.parenL),r.params=this.parseBindingList(Zr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},Bs.parseArrowExpression=function(t,e,n,r){var s=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|xs(n,!1)),this.initFunction(t),8>this.options.ecmaVersion||(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=s,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},Bs.parseFunctionBody=function(t,e,n,r){var s=e&&this.type!==Zr.braceL,i=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);i&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!i&&!a&&!e&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!i),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=c}this.exitScope()},Bs.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},Bs.checkParams=function(t,e){for(var n=Object.create(null),r=0,s=t.params;r<s.length;r+=1){var i=s[r];this.checkLValInnerPattern(i,1,e?null:n)}},Bs.parseExprList=function(t,e,n,r){for(var s=[],i=!0;!this.eat(t);){if(i)i=!1;else if(this.expect(Zr.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===Zr.comma?a=null:this.type===Zr.ellipsis?(a=this.parseSpread(r),r&&this.type===Zr.comma&&0>r.trailingComma&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s},Bs.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==r||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),6>this.options.ecmaVersion&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},Bs.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},Bs.parseIdentNode=function(){var t=this.startNode();return this.type===Zr.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=Zr.name):this.unexpected(),t},Bs.parsePrivateIdent=function(){var t=this.startNode();return this.type===Zr.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},Bs.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===Zr.semi||this.canInsertSemicolon()||this.type!==Zr.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(Zr.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},Bs.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var qs=_s.prototype;qs.raise=function(t,e){var n=ys(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r},qs.raiseRecoverable=qs.raise,qs.curPosition=function(){if(this.options.locations)return new ms(this.curLine,this.pos-this.lineStart)};var Ws=_s.prototype,$s=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ws.enterScope=function(t){this.scopeStack.push(new $s(t))},Ws.exitScope=function(){this.scopeStack.pop()},Ws.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Ws.declareName=function(t,e,n){var r=!1;if(2===e){var s=this.currentScope();r=s.lexical.indexOf(t)>-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var i=this.currentScope();r=this.treatFunctionsAsVar?i.lexical.indexOf(t)>-1:i.lexical.indexOf(t)>-1||i.var.indexOf(t)>-1,i.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){r=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},Ws.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Ws.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ws.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Ws.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var Hs=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new gs(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Gs=_s.prototype;function zs(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}Gs.startNode=function(){return new Hs(this,this.start,this.startLoc)},Gs.startNodeAt=function(t,e){return new Hs(this,t,e)},Gs.finishNode=function(t,e){return zs.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Gs.finishNodeAt=function(t,e,n,r){return zs.call(this,t,e,n,r)},Gs.copyNode=function(t){var e=new Hs(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var Ys="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ks=Ys+" Extended_Pictographic",Js=Ks+" EBase EComp EMod EPres ExtPict",Xs={9:Ys,10:Ks,11:Ks,12:Js,13:Js,14:Js},Qs={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Zs="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ti="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ei=ti+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ni=ei+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ri=ni+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",si=ri+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ii={9:ti,10:ei,11:ni,12:ri,13:si,14:si+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},ai={};function oi(t){var e=ai[t]={binary:ps(Xs[t]+" "+Zs),binaryOfStrings:ps(Qs[t]),nonBinary:{General_Category:ps(Zs),Script:ps(ii[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var ci=0,li=[9,10,11,12,13,14];ci<li.length;ci+=1)oi(li[ci]);var ui=_s.prototype,hi=function(t,e){this.parent=t,this.base=e||this};hi.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var n=t;n;n=n.parent)if(e.base===n.base&&e!==n)return!0;return!1},hi.prototype.sibling=function(){return new hi(this.parent,this.base)};var pi=function(t){this.parser=t,this.validFlags="gim"+(6>t.options.ecmaVersion?"":"uy")+(9>t.options.ecmaVersion?"":"s")+(13>t.options.ecmaVersion?"":"d")+(15>t.options.ecmaVersion?"":"v"),this.unicodeProperties=ai[14>t.options.ecmaVersion?t.options.ecmaVersion:14],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function fi(t){return 105===t||109===t||115===t}function di(t){return 36===t||t>=40&&43>=t||46===t||63===t||t>=91&&94>=t||t>=123&&125>=t}function mi(t){return t>=65&&90>=t||t>=97&&122>=t}function gi(t){return mi(t)||95===t}function yi(t){return gi(t)||vi(t)}function vi(t){return t>=48&&57>=t}function bi(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function xi(t){return 65>t||t>70?97>t||t>102?t-48:t-97+10:t-65+10}function _i(t){return t>=48&&55>=t}pi.prototype.reset=function(t,e,n){var r=-1!==n.indexOf("v"),s=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},pi.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},pi.prototype.at=function(t,e){void 0===e&&(e=!1);var n=this.source,r=n.length;if(t>=r)return-1;var s=n.charCodeAt(t);if(!e&&!this.switchU||55295>=s||s>=57344||t+1>=r)return s;var i=n.charCodeAt(t+1);return 56320>i||i>57343?s:(s<<10)+i-56613888},pi.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var n=this.source,r=n.length;if(t>=r)return r;var s,i=n.charCodeAt(t);return(e||this.switchU)&&i>55295&&57344>i&&r>t+1&&(s=n.charCodeAt(t+1))>=56320&&57343>=s?t+2:t+1},pi.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},pi.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},pi.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},pi.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},pi.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var n=this.pos,r=0,s=t;r<s.length;r+=1){var i=s[r],a=this.at(n,e);if(-1===a||a!==i)return!1;n=this.nextIndex(n,e)}return this.pos=n,!0},ui.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=!1,s=!1,i=0;i<n.length;i++){var a=n.charAt(i);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(a,i+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(t.start,"Invalid regular expression flag")},ui.validateRegExpPattern=function(t){this.regexp_pattern(t),t.switchN||9>this.options.ecmaVersion||!function(t){for(var e in t)return!0;return!1}(t.groupNames)||(t.switchN=!0,this.regexp_pattern(t))},ui.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];t.groupNames[r]||t.raise("Invalid named capture referenced")}},ui.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new hi(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},ui.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},ui.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},ui.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(9>this.options.ecmaVersion||(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},ui.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},ui.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},ui.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return-1!==s&&r>s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},ui.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},ui.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},ui.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),r=t.eat(45);if(n||r){for(var s=0;s<n.length;s++){var i=n.charAt(s);n.indexOf(i,s+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(r){var a=this.regexp_eatModifiers(t);n||a||58!==t.current()||t.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var c=a.charAt(o);(a.indexOf(c,o+1)>-1||n.indexOf(c)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},ui.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(9>this.options.ecmaVersion?63===t.current()&&t.raise("Invalid group"):this.regexp_groupSpecifier(t),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},ui.regexp_eatModifiers=function(t){for(var e="",n=0;-1!==(n=t.current())&&fi(n);)e+=fs(n),t.advance();return e},ui.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},ui.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},ui.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!di(e)&&(t.lastIntValue=e,t.advance(),!0)},ui.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!di(n);)t.advance();return t.pos!==e},ui.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return-1!==e&&36!==e&&(40>e||e>43)&&46!==e&&63!==e&&91!==e&&94!==e&&124!==e&&(t.advance(),!0)},ui.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(e)for(var r=0,s=n;r<s.length;r+=1)s[r].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},ui.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},ui.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=fs(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=fs(t.lastIntValue);return!0}return!1},ui.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),function(t){return Hr(t,!0)||36===t||95===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},ui.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,r=t.current(n);return t.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(r=t.lastIntValue),function(t){return Gr(t,!0)||36===t||95===t||8204===t||8205===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},ui.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},ui.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},ui.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},ui.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},ui.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},ui.regexp_eatZero=function(t){return 48===t.current()&&!vi(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},ui.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},ui.regexp_eatControlLetter=function(t){var e=t.current();return!!mi(e)&&(t.lastIntValue=e%32,t.advance(),!0)},ui.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var n,r=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(s&&i>=55296&&56319>=i){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&57343>=o)return t.lastIntValue=1024*(i-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=i}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(n=t.lastIntValue)>=0&&1114111>=n)return!0;s&&t.raise("Invalid unicode escape"),t.pos=r}return!1},ui.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},ui.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&57>=e){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&57>=e);return!0}return!1},ui.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===e)||112===e)){var r;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===r&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return 0},ui.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},ui.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){ls(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},ui.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},ui.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";gi(e=t.current());)t.lastStringValue+=fs(e),t.advance();return""!==t.lastStringValue},ui.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";yi(e=t.current());)t.lastStringValue+=fs(e),t.advance();return""!==t.lastStringValue},ui.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},ui.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===n&&t.raise("Negated character class may contain strings"),!0}return!1},ui.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},ui.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},ui.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||_i(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},ui.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},ui.regexp_classSetExpression=function(t){var e,n=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(n=2);for(var r=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(n=1):t.raise("Invalid character in character class");if(r!==t.pos)return n;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return n}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return n;2===e&&(n=2)}},ui.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return-1!==n&&-1!==r&&n>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},ui.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},ui.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return n&&2===r&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},ui.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=e}return null},ui.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},ui.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},ui.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t)&&(t.eat(98)?(t.lastIntValue=8,0):(t.pos=e,1)));var n=t.current();return!(0>n||n===t.lookahead()&&function(t){return 33===t||t>=35&&38>=t||t>=42&&44>=t||46===t||t>=58&&64>=t||94===t||96===t||126===t}(n)||function(t){return 40===t||41===t||45===t||47===t||t>=91&&93>=t||t>=123&&125>=t}(n)||(t.advance(),t.lastIntValue=n,0))},ui.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&62>=t||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},ui.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!vi(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},ui.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},ui.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;vi(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},ui.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;bi(n=t.current());)t.lastIntValue=16*t.lastIntValue+xi(n),t.advance();return t.pos!==e},ui.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;3>=e&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},ui.regexp_eatOctalDigit=function(t){var e=t.current();return _i(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},ui.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;e>r;++r){var s=t.current();if(!bi(s))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+xi(s),t.advance()}return!0};var wi=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new gs(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ei=_s.prototype;function Si(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}Ei.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new wi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ei.getToken=function(){return this.next(),new wi(this)},"undefined"!=typeof Symbol&&(Ei[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Zr.eof,value:e}}}}),Ei.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos<this.input.length?t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos()):this.finishToken(Zr.eof)},Ei.readToken=function(t){return Hr(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Ei.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(55295>=e||e>=56320)return e;var n=this.input.charCodeAt(t+1);return n>56319&&57344>n?(e<<10)+n-56613888:e},Ei.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Ei.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,s=e;(r=rs(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())},Ei.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ns(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},Ei.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&14>t||t>=5760&&ss.test(String.fromCharCode(t))))break t;++this.pos}}},Ei.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},Ei.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return 6>this.options.ecmaVersion||46!==t||46!==e?(++this.pos,this.finishToken(Zr.dot)):(this.pos+=3,this.finishToken(Zr.ellipsis))},Ei.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Zr.assign,2):this.finishOp(Zr.slash,1)},Ei.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?Zr.star:Zr.modulo;return 7>this.options.ecmaVersion||42!==t||42!==e||(++n,r=Zr.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Zr.assign,n+1):this.finishOp(r,n)},Ei.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?12>this.options.ecmaVersion||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(124===t?Zr.logicalOR:Zr.logicalAND,2):this.finishOp(Zr.assign,3):61===e?this.finishOp(Zr.assign,2):this.finishOp(124===t?Zr.bitwiseOR:Zr.bitwiseAND,1)},Ei.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Zr.assign,2):this.finishOp(Zr.bitwiseXOR,1)},Ei.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!ts.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Zr.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Zr.assign,2):this.finishOp(Zr.plusMin,1)},Ei.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Zr.assign,n+1):this.finishOp(Zr.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(Zr.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ei.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Zr.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61!==t||62!==e||6>this.options.ecmaVersion?this.finishOp(61===t?Zr.eq:Zr.prefix,1):(this.pos+=2,this.finishToken(Zr.arrow))},Ei.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var n=this.input.charCodeAt(this.pos+2);if(48>n||n>57)return this.finishOp(Zr.questionDot,2)}if(63===e)return 12>t||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(Zr.coalesce,2):this.finishOp(Zr.assign,3)}return this.finishOp(Zr.question,1)},Ei.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,Hr(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(Zr.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+fs(t)+"'")},Ei.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Zr.parenL);case 41:return++this.pos,this.finishToken(Zr.parenR);case 59:return++this.pos,this.finishToken(Zr.semi);case 44:return++this.pos,this.finishToken(Zr.comma);case 91:return++this.pos,this.finishToken(Zr.bracketL);case 93:return++this.pos,this.finishToken(Zr.bracketR);case 123:return++this.pos,this.finishToken(Zr.braceL);case 125:return++this.pos,this.finishToken(Zr.braceR);case 58:return++this.pos,this.finishToken(Zr.colon);case 96:if(6>this.options.ecmaVersion)break;return++this.pos,this.finishToken(Zr.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(Zr.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+fs(t)+"'")},Ei.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},Ei.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos<this.input.length||this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(ts.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var s=this.input.slice(n,this.pos);++this.pos;var i=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(i);var o=this.regexpState||(this.regexpState=new pi(this));o.reset(n,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(s,a)}catch(t){}return this.finishToken(Zr.regexp,{pattern:s,flags:a,value:c})},Ei.readInt=function(t,e,n){for(var r=this.options.ecmaVersion>=12&&void 0===e,s=n&&48===this.input.charCodeAt(this.pos),i=this.pos,a=0,o=0,c=0,l=null==e?1/0:e;l>c;++c,++this.pos){var u=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===u)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=u;else{if((h=97>u?65>u?48>u||u>57?1/0:u-48:u-65+10:u-97+10)>=t)break;o=u,a=a*t+h}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=e&&this.pos-i!==e?null:a},Ei.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var n=this.readInt(t);return null==n&&this.raise(this.start+2,"Expected number in radix "+t),11>this.options.ecmaVersion||110!==this.input.charCodeAt(this.pos)?Hr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"):(n=Si(this.input.slice(e,this.pos)),++this.pos),this.finishToken(Zr.num,n)},Ei.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===r){var s=Si(this.input.slice(e,this.pos));return++this.pos,Hr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Zr.num,s)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),Hr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,a=(i=this.input.slice(e,this.pos),n?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(Zr.num,a)},Ei.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){6>this.options.ecmaVersion&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Ei.readString=function(t){for(var e="",n=++this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(10>this.options.ecmaVersion&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ns(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Zr.string,e)};var ki={};function Ai(t,e){return _s.parse(t,e)}Ei.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==ki)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ei.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ki;this.raise(t,e)},Ei.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Zr.template&&this.type!==Zr.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Zr.template,t)):36===n?(this.pos+=2,this.finishToken(Zr.dollarBraceL)):(++this.pos,this.finishToken(Zr.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ns(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Ei.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Zr.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},Ei.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return fs(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(e>=48&&55>=e){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),"0"===r&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ns(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},Ei.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},Ei.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Gr(s,r))this.pos+=s>65535?2:1;else{if(92!==s)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?Hr:Gr)(a,r)||this.invalidStringToken(i,"Invalid Unicode escape"),t+=fs(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},Ei.readWord=function(){var t=this.readWord1(),e=Zr.name;return this.keywords.test(t)&&(e=Xr[t]),this.finishToken(e,t)},_s.acorn={Parser:_s,version:"8.18.0",defaultOptions:vs,Position:ms,SourceLocation:gs,getLineInfo:ys,Node:Hs,TokenType:zr,tokTypes:Zr,keywordTypes:Xr,TokContext:Vs,tokContexts:Rs,isIdentifierChar:Gr,isIdentifierStart:Hr,Token:wi,isNewLine:ns,lineBreak:ts,lineBreakG:es,nonASCIIwhitespace:ss};class Ci{constructor(t){this.value=t}}const Ii=new Map,Ti=new Map,Ni=new Set(["constructor","__proto__","prototype"]),Pi=Symbol("GyosJS CSP optional chain");function Li(t,e,n){const r="number"==typeof n?.start?" at position "+n.start:"";return Error(`[GyosJS CSP] ${t}${r}: ${e}`)}function Mi(t){const e=Ii.get(t);if(e)return e;try{const e=Ai(`(${t})`,{ecmaVersion:"latest"}),n=e.body[0]?.expression;if(!n)throw Li("Empty expression",t);return Ii.set(t,n),n}catch(e){if(e instanceof Error&&e.message.startsWith("[GyosJS CSP]"))throw e;const n="number"==typeof e?.pos?" at position "+(e.pos-1):"";throw Error(`[GyosJS CSP] Invalid expression${n}: ${t}`)}}function Oi(t,e=!1){const n=`${e?"return":"event"}:${t}`,r=Ti.get(n);if(r)return r;try{const r=Ai(t,{ecmaVersion:"latest",allowReturnOutsideFunction:e});return Ti.set(n,r),r}catch(e){const n="number"==typeof e?.pos?" at position "+e.pos:"";throw Error(`[GyosJS CSP] Invalid expression body${n}: ${t}`)}}function Vi(t,e,n){if(("string"==typeof t||"number"==typeof t)&&Ni.has(t+""))throw Li(`Access to property "${t+""}" is forbidden`,e,n);if("string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t)throw Li("Invalid property key",e,n);return t}function Ri(t,e,n,r){if(Object.prototype.hasOwnProperty.call(e.locals,t))return e.locals[t];if(t in e.scope)return e.scope[t];if("undefined"!==t){if("NaN"===t)return NaN;if("Infinity"===t)return 1/0;throw Li(`Undefined identifier "${t}"`,n,r)}}function Di(t,e,n){const r=Fi(t.object,e,n);if(r===Pi)return[Pi,""];if(null==r){if(t.optional)return[Pi,""];throw Li("Cannot read a property of null or undefined",n,t)}return[r,Vi(t.computed?Fi(t.property,e,n):t.property.name,n,t.property)]}function Bi(t,e,n){if("Identifier"===t.type)return{get:()=>Ri(t.name,e,n,t),set:n=>(Object.prototype.hasOwnProperty.call(e.locals,t.name)?e.locals[t.name]=n:e.scope[t.name]=n,n)};if("MemberExpression"===t.type){const[r,s]=Di(t,e,n);if(null==r)throw Li("Invalid assignment target",n,t);return{get:()=>r[s],set:t=>(r[s]=t,t)}}throw Li("Invalid assignment target",n,t)}function Fi(t,e,n){switch(t.type){case"Literal":if(t.regex||"bigint"==typeof t.value)throw Li("Unsupported literal",n,t);return t.value;case"Identifier":return Ri(t.name,e,n,t);case"ArrayExpression":return t.elements.map(t=>{if(t){if("SpreadElement"===t.type)throw Li("Spread elements are not supported",n,t);return Fi(t,e,n)}});case"ObjectExpression":{const r={};for(const s of t.properties){if("Property"!==s.type||"init"!==s.kind||s.method)throw Li("Object methods, getters, setters, and spread are not supported",n,s);r[Vi(s.computed?Fi(s.key,e,n):s.key.name??s.key.value,n,s.key)]=s.shorthand?Ri(s.key.name,e,n,s.key):Fi(s.value,e,n)}return r}case"MemberExpression":{const[r,s]=Di(t,e,n);return r===Pi?Pi:r[s]}case"ChainExpression":{const r=Fi(t.expression,e,n);return r===Pi?void 0:r}case"CallExpression":return function(t,e,n){let r,s=e.scope;if("MemberExpression"===t.callee.type){const[i,a]=Di(t.callee,e,n);if(i===Pi)return Pi;s=i,r=i[a]}else r=Fi(t.callee,e,n);if(r===Pi)return Pi;if(null==r&&t.optional)return Pi;const i=t.arguments.map(t=>{if("SpreadElement"===t.type)throw Li("Spread arguments are not supported",n,t);return Fi(t,e,n)});if("function"!=typeof r)throw Li("Called value is not a function",n,t.callee);return r.apply(s,i)}(t,e,n);case"UnaryExpression":{if("delete"===t.operator)throw Li("The delete operator is not supported",n,t);const r=Fi(t.argument,e,n);switch(t.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"typeof":return typeof r;case"void":return;default:throw Li(`Unsupported unary operator "${t.operator}"`,n,t)}}case"BinaryExpression":{const r=Fi(t.left,e,n),s=Fi(t.right,e,n);switch(t.operator){case"+":return r+s;case"-":return r-s;case"*":return r*s;case"/":return r/s;case"%":return r%s;case"**":return r**s;case"==":return r==s;case"!=":return r!=s;case"===":return r===s;case"!==":return r!==s;case"<":return s>r;case"<=":return s>=r;case">":return r>s;case">=":return r>=s;case"in":return r in s;case"instanceof":return r instanceof s;default:throw Li(`Unsupported binary operator "${t.operator}"`,n,t)}}case"LogicalExpression":{const r=Fi(t.left,e,n);if("&&"===t.operator)return r&&Fi(t.right,e,n);if("||"===t.operator)return r||Fi(t.right,e,n);if("??"===t.operator)return r??Fi(t.right,e,n);throw Li(`Unsupported logical operator "${t.operator}"`,n,t)}case"ConditionalExpression":return Fi(t.test,e,n)?Fi(t.consequent,e,n):Fi(t.alternate,e,n);case"AssignmentExpression":{const r=Bi(t.left,e,n),s="="===t.operator?void 0:r.get();if("&&="===t.operator&&!s)return s;if("||="===t.operator&&s)return s;if("??="===t.operator&&null!=s)return s;const i=Fi(t.right,e,n);return r.set(function(t,e,n,r,s){switch(t){case"=":return n;case"+=":return e+n;case"-=":return e-n;case"*=":return e*n;case"/=":return e/n;case"%=":return e%n;case"**=":return e**n;case"&&=":return e&&n;case"||=":return e||n;case"??=":return e??n;default:throw Li(`Unsupported assignment operator "${t}"`,r,s)}}(t.operator,s,i,n,t))}case"UpdateExpression":{const r=Bi(t.argument,e,n);let s=r.get();const i="++"===t.operator?s++:s--;return r.set(s),t.prefix?s:i}case"SequenceExpression":{let r;for(const s of t.expressions)r=Fi(s,e,n);return r}default:throw Li(`Unsupported syntax "${t.type}"`,n,t)}}function Ui(t,e,n,r){let s;for(const i of t.body)if("EmptyStatement"!==i.type){if("ExpressionStatement"!==i.type){if(r&&"ReturnStatement"===i.type)throw new Ci(i.argument?Fi(i.argument,e,n):void 0);throw Li(`Unsupported statement "${i.type}"`,n,i)}s=Fi(i.expression,e,n)}return s}var ji,qi,Wi;st={mode:"csp",evaluate(t,e){try{const n=e?.[t];return"function"==typeof n?n.call(e):Fi(Mi(t),{scope:e,locals:{}},t)}catch(t){return}},execute(t,e,n){const r=e?.[t];return"function"==typeof r?r.call(e,n):Ui(Oi(t),{scope:e,locals:{$event:n}},t,!1)},parseScope(t){try{const e=Fi(Mi(t),{scope:{},locals:{}},t);if(!e||"object"!=typeof e||Array.isArray(e))throw Li("Inline g-scope must evaluate to an object",t);return e}catch(t){return}},createMethod(t,e){let n;try{n=Oi(e,!0)}catch(t){return()=>{}}return function(...r){const s={};t.forEach((t,e)=>{s[t]=r[e]});try{return Ui(n,{scope:this,locals:s},e,!0)}catch(t){return t instanceof Ci?t.value:void 0}}}},"undefined"!=typeof window&&(function(t=null){if("undefined"==typeof document)return;const e=t??(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)??Array.from(document.scripts).reverse().find(t=>/(?:^|\/)gyos\.csp\.auto(?:\.esm)?(?:\.min)?\.js(?:[?#]|$)/.test(t.src)),n=e?.nonce||e?.getAttribute("nonce")||document.querySelector('meta[name="csp-nonce"]')?.content;n&&cn(n)}(),window.Gyos=Or,(ji=window).GYOS_DEBUG??(ji.GYOS_DEBUG=!1),(qi=window).GYOS_DEBUG_VERBOSE??(qi.GYOS_DEBUG_VERBOSE=!1),(Wi=window).GYOS_DEBUG_WARN_SUBSCRIBERS??(Wi.GYOS_DEBUG_WARN_SUBSCRIBERS=!1),e(()=>{ar(),ze()})),t.default=Or,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Gyos={});
|