gyosjs 0.3.0 → 0.3.1
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/dist/core/router/csp-html.d.ts +2 -0
- package/dist/core/router/csp-html.d.ts.map +1 -0
- package/dist/core/router/diff-nodes.d.ts.map +1 -1
- package/dist/core/router/router.d.ts.map +1 -1
- package/dist/gyos.auto.esm.js +261 -32
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +261 -32
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +261 -32
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +261 -32
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +261 -32
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +261 -32
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +261 -32
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +261 -32
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/dist/runtime/csp-nonce.d.ts +1 -1
- package/dist/runtime/csp-nonce.d.ts.map +1 -1
- package/dist/template/structurals/transition-helpers.d.ts +1 -1
- package/dist/template/structurals/transition-helpers.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* GyosJS v0.3.
|
|
2
|
+
* GyosJS v0.3.1
|
|
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){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(t=>n(t));const e={};for(const s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]));return e}function s(t,e){if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null==t||null==e)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const r of n)if(!s(t[r],e[r]))return!1;return!0}function r(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}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 s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>e(t)?NodeFilter.FILTER_ACCEPT:n}),r=[];for(;s.nextNode();)r.push(s.currentNode);return r}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;const m=new Set;let g=0;const y=new Set;let v=!1;function x(){if(0===y.size||v)return;v=!0;const t=Array.from(y);y.clear(),t.forEach(t=>{if(!m.has(t))try{t()}catch(t){}}),v=!1}function b(t){y.add(t),v||0!==g||queueMicrotask(x)}let _=new Set,w=!1;function E(t,e){const n="string"==typeof e?e:e?.debugLabel,s="object"==typeof e&&e?.equals?e.equals:Object.is,r=++d;let i=t;const a=new Set;let o=!1;const u=()=>(f&&(a.has(f)||(a.add(f),f.__dependencies&&f.__dependencies.add(a),l(),!o&&"undefined"!=typeof window&&window.GYOS_DEBUG_WARN_SUBSCRIBERS&&c()&&a.size>=200&&(o=!0))),i),h=t=>{s(i,t)||(i=t,l(),p())},p=()=>{l(),w?a.forEach(t=>_.add(t)):a.forEach(t=>b(t))},m=function(t){return 0===arguments.length?u():(h(t),t)};return Object.defineProperties(m,{value:{get:u,set:h,enumerable:!0,configurable:!0},peek:{get:()=>i,enumerable:!0,configurable:!0},update:{value:function(t){h(t(i))},enumerable:!0,configurable:!0},subscribe:{value:function(t){return a.add(t),()=>a.delete(t)},enumerable:!0,configurable:!0},__gyos_signal__:{value:!0,enumerable:!0,configurable:!0},__gyos_debug_id__:{value:r,enumerable:!1},__gyos_debug_label__:{value:n,enumerable:!1},__gyos_equals__:{value:s,enumerable:!1}}),m}function S(t){let e,n=!0,s=!0;const r=new Set;let i;const a=()=>{(n||s)&&(i&&i(),i=k(()=>{try{const i=t();(s||e!==i)&&(e=i,s=!1,n=!1,w?r.forEach(t=>_.add(t)):r.forEach(t=>b(t)))}catch(t){throw t}}),n=!1)},o=()=>((n||s)&&a(),f&&!r.has(f)&&(r.add(f),f.__dependencies&&f.__dependencies.add(r)),e),c=function(){return o()};return Object.defineProperties(c,{value:{get:o,enumerable:!0,configurable:!0},peek:{get:()=>((n||s)&&a(),e),enumerable:!0,configurable:!0},subscribe:{value:function(t){return r.add(t),()=>r.delete(t)},enumerable:!0,configurable:!0},__gyos_computed__:{value:!0}}),c}function k(t){let e,n=new Set,s=!0;const r=()=>{if(!s)return;if(m.has(r))return void c();if(m.add(r),g++,n.forEach(t=>{t.delete(r)}),c(),n.clear(),e)try{e()}catch(t){}const i=f;f=r,r.__dependencies=n;try{const n=t();e="function"==typeof n?n:void 0}catch(t){}finally{f=i,g--,m.delete(r),0===g&&y.size>0&&queueMicrotask(x)}};return r(),()=>{if(s&&(s=!1,n.forEach(t=>{t.delete(r)}),n.clear(),e))try{e()}catch(t){}}}function C(t){if(w)t();else{w=!0,_.clear();try{t()}catch(t){throw t}finally{w=!1;const t=Array.from(_);_.clear(),t.forEach(t=>{try{t()}catch(t){}})}}}function A(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_signal__"in t}function I(){return null!==f}function T(t){return A(t)?t.value:t}function P(t){const e=f;f=null;try{return t()}finally{f=e}}class N{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 N(this)}}const L=new N,M=new WeakMap;function V(t){if(M.has(t))return M.get(t);let e=t.parentElement,n=L;for(;e;){if(M.has(e)){n=M.get(e);break}if(e.hasAttribute("g-provide")){n=V(e);break}e=e.parentElement}const s=n.createChild();M.set(t,s);const r=t.getAttribute("g-provide");if(r)try{const t=JSON.parse(r);if(!t||Array.isArray(t)||"object"!=typeof t)throw new TypeError("g-provide must contain a JSON object");Object.entries(t).forEach(([t,e])=>{s.set(t,e)})}catch(t){}return s}const O=new Map;function R(t,e){O.set(t,e)}function D(t,e,n=[]){const s=O.get(e);if(!s)return c(),t;try{return s(t,...n)}catch(e){return c(),t}}let B;function F(){if(!B)throw Error("[GyosJS] Expression runtime is not configured. Import GyosJS from a public entry point.");return B}function U(){return B?.mode??"standard"}function j(t,e){return t.replace(/\{([^}]+)\}/g,(t,n)=>{try{const t=W(n.trim(),e);return null==t?"":t+""}catch(e){return t}})}function W(t,e,n=!0){if(n&&function(t){let e=!1,n="";for(let s=0;s<t.length;s++){const r=t[s],i=s>0?t[s-1]:"";if('"'!==r&&"'"!==r||"\\"===i||(e?r===n&&(e=!1,n=""):(e=!0,n=r)),"|"===r&&!e&&"|"!==(s<t.length-1?t[s+1]:"")&&"|"!==i)return!0}return!1}(t)){const{base:n,pipes:s}=function(t){const e=[];let n="",s=!1,r="",i=0;for(;i<t.length;){const a=t[i],o=i>0?t[i-1]:"";'"'!==a&&"'"!==a||"\\"===o?"|"!==a||s?(n+=a,i++):"|"===t[i+1]?(n+="||",i+=2):(e.push(n.trim()),n="",i++):(s?a===r&&(s=!1,r=""):(s=!0,r=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 s=0,r=-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&&s++,")"===e&&(s--,0===s))){r=n;break}}if(-1===r)return{name:t,args:[]};const o=t.substring(e+1,r),c=[];if(o){let t="",e=!1,n="";for(let s=0;s<o.length;s++){const r=o[s];'"'!==r&&"'"!==r||0!==s&&"\\"===o[s-1]?","!==r||e?t+=r:(c.push(t.trim()),t=""):(e?r===n&&(e=!1,n=""):(e=!0,n=r),t+=r)}t.trim()&&c.push(t.trim())}return{name:n,args:c}});return{base:a,pipes:o}}(t);let r=$(n,e);for(const{name:t,args:n}of s)r=D(r,t,n.map(t=>$(t,e)));return r}return $(t,e)}function $(t,e){return t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):isNaN(Number(t))?F().evaluate(t,e):Number(t)}R("currency",(t,e="USD",n="en-US")=>new Intl.NumberFormat(n,{style:"currency",currency:e}).format(t)),R("date",(t,e="MM/DD/YYYY")=>{const n=t instanceof Date?t:new Date(t),s=t=>t.toString().padStart(2,"0");return e.replace("YYYY",n.getFullYear().toString()).replace("MM",s(n.getMonth()+1)).replace("DD",s(n.getDate())).replace("HH",s(n.getHours())).replace("mm",s(n.getMinutes())).replace("ss",s(n.getSeconds()))}),R("slug",t=>t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")),R("truncate",(t,e=100,n="...")=>t.length>e?t.substring(0,e)+n:t),R("uppercase",t=>t.toUpperCase()),R("lowercase",t=>t.toLowerCase()),R("capitalize",t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),R("fallback",(t,e)=>t||e),R("json",(t,e=2)=>JSON.stringify(t,null,e)),R("number",(t,e=0)=>t.toFixed(e)),R("pluralize",(t,e,n)=>`${t} ${1===t?e:n||e+"s"}`),R("percent",(t,e=0)=>(100*t).toFixed(e)+"%"),R("join",(t,e=", ")=>Array.isArray(t)?t.join(e):t),R("limit",(t,e)=>Array.isArray(t)?t.slice(0,e):t),R("reverse",t=>"string"==typeof t?t.split("").reverse().join(""):Array.isArray(t)?[...t].reverse():t);const q=new Map,H=new Map;function G(t){return q.get(t)}function z(){return q}function Y(t){let e=q.get(t);e&&(e.__gyos_effects__&&(e.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),e.__gyos_effects__=null),e.onUnmount&&e.onUnmount.call(e),t.__gyos_scope__=null,q.delete(t))}function K(t){let e=t;for(;e;){if(e.__gyos_scope__)return e.__gyos_scope__;e=e.parentElement}return null}function J(t){q.forEach((e,n)=>{t.contains(n)&&t!==n&&Y(n)})}const Q=[];function X(){return Q[Q.length-1]}function Z(t,e){const n=k(e);t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}function tt(t,e){const n=X();n?n.push({target:t,runner:e}):Z(t,e)}const et=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","TITLE","XMP","IFRAME","NOEMBED","NOFRAMES"]);function nt(t,e,n){let s=t.parentElement;for(;s;){if(i(s)||et.has(s.tagName))return!0;if(s.hasAttribute("*if")||s.hasAttribute("*for"))return!0;if(s.__gyos_static__&&(void 0!==n||s!==e))return!0;if(s===e)break;s=s.parentElement}if(void 0!==n&&t.parentElement){const e=K(t.parentElement);if(e&&e!==n)return!0}return!1}function st(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),s=[];let r;for(;r=n.nextNode();){if(nt(r,t))continue;const e=r.textContent||"";e.includes("{")&&e.includes("}")&&s.push({node:r,template:e})}s.forEach(({node:t,template:n})=>{t.textContent=j(n,e)})}const rt={classNames:["is-revealed"],rootMargin:"0px",threshold:.1},it=new Map,at=new WeakMap;function ot(t){const e=Number(t);return Number.isFinite(e)?Math.min(1,Math.max(0,e)):rt.threshold}function ct(t){if(!Array.isArray(t))return ot(t);const e=Array.from(new Set(t.map(ot))).sort((t,e)=>t-e);return e.length?e:rt.threshold}function lt(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):rt.classNames,once:"boolean"==typeof e.once?e.once:!n.has("repeat"),rootMargin:"string"==typeof e.rootMargin?e.rootMargin:rt.rootMargin,target:"parent"===e.target||n.has("parent")?"parent":"self",threshold:ct(e.threshold??rt.threshold)}}function ut(t,e){const{element:n,options:s}=t;if(e){n.setAttribute("data-gyos-revealed","");for(const t of s.classNames)n.classList.add(t)}else{n.removeAttribute("data-gyos-revealed");for(const t of s.classNames)n.classList.remove(t)}}function ht(t){if(at.get(t.element)!==t)return;at.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(),it.delete(t.pool.key))}function pt(t,e){ft(t),document.documentElement.classList.add("gyos-reveal-ready");const n=lt(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 s=function(t){const e=function(t){return JSON.stringify([t.rootMargin,t.threshold])}(t),n=it.get(e);if(n)return n;let s;try{const n=new Map;s={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&&ht(n)):n.options.once||ut(n,!1)}},{rootMargin:t.rootMargin,threshold:t.threshold}),records:n}}catch{return null}return it.set(e,s),s}(n);if(!s)return void ut({element:t,options:n},!0);const r="parent"===n.target&&t.parentElement||t,i={element:t,observedTarget:r,options:n,pool:s};let a=s.records.get(r);a||(a=new Set,s.records.set(r,a),s.observer.observe(r)),a.add(i),at.set(t,i)}function ft(t){const e=at.get(t);e&&(ht(e),e.options.once||ut(e,!1))}const dt={mounted:pt,updated(t,e){const n=lt({...e,value:e.oldValue}),s=lt(e);for(const e of n.classNames)s.classNames.includes(e)||t.classList.remove(e);pt(t,e)},unmounted:ft},mt=new Map;function gt(t,e){"function"==typeof e?mt.set(t,{mounted:e,updated:e}):mt.set(t,e)}function yt(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 s=K(t),r=e.value,i="function"==typeof r?r:s?.[r];if("function"!=typeof i)return;if(!s)return;const a=s.$on(n,i.bind(s));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)=>yt(n,!0)?`<img alt="${e}" src="${n}" />`:e).replace(/\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>yt(n,!1)?`<a href="${n}">${e}</a>`:e).replace(/`(.*)`/gim,"<code>$1</code>").replace(/\n/gim,"<br />");t.innerHTML=n}}),gt("reveal",dt);const vt={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}},xt=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,s){this.cancel(t);const r="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=()=>{r&&this.removeClasses(t,r),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=r=>{f||(f=!0,d(),r||(c?.(t),"leave"===n&&s&&t.remove()),e(!r))},g=e=>{e.target===t&&m(!1)};this.active.set(t,{phase:n,cancel:()=>m(!0)});try{o?.(t),r&&this.applyClasses(t,r),t.offsetHeight,t.style.transition=`all ${l}ms ${"enter"===n?"ease-out":"ease-in"}`,r&&this.removeClasses(t,r),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:vt[t]||vt.fade}getAvailableTransitions(){return Object.keys(vt)}};function bt(t,e){const n=Array.from(t.attributes).find(t=>t.name.startsWith("g-transition"));if(!n)return null;const s=n.name.split(".").slice(1).find(t=>/^\d+$/.test(t)),r=function(t,e){if(t.includes("{")&&t.includes("}")){const n=t.match(/\{([^}]+)\}/);if(n)return W(n[1].trim(),e)}try{const n=W(t,e);if(null!=n)return n}catch(t){}return t}(n.value,e);return{name:r,duration:s?parseInt(s):void 0}}function _t(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 wt(t,e,n=!1){const s=bt(t,e);if(!s)return Promise.resolve(!0);c();const r={...xt.getConfig(s.name)};return s.duration&&(r.duration=s.duration),xt.enter(t,r,n)}function Et(t,e,n=!0){const s=bt(t,e);if(!s)return Promise.resolve(!0);c();const r={...xt.getConfig(s.name)};return s.duration&&(r.duration=s.duration),xt.leave(t,r,n)}function St(t,e){Array.from(t.querySelectorAll("[g-show], [g-html], [g-text]")).filter(t=>!i(t)).forEach(t=>{const n=t;if(n.hasAttribute("g-show")){const t=W(n.getAttribute("g-show"),e);n.style.display=t?"":"none"}if(n.hasAttribute("g-html")){const t=W(n.getAttribute("g-html"),e);n.innerHTML=t}if(n.hasAttribute("g-text")){const t=W(n.getAttribute("g-text"),e);n.textContent=t}})}function kt(t){return{staticClasses:new Set(t.classList),dynamicClasses:new Set}}function Ct(t,e,n){const s=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,s]of Object.entries(e))if(!s)for(const e of n.split(/\s+/).filter(Boolean))t.classList.remove(e);for(const e of n.dynamicClasses)s.has(e)||n.staticClasses.has(e)||t.classList.remove(e);for(const e of s)t.classList.add(e);n.dynamicClasses=s}function At(t){const e=new Map;for(let n=0;n<t.length;n++){const s=t.item(n);e.set(s,{priority:t.getPropertyPriority(s),value:t.getPropertyValue(s)})}return e}function It(t){return t.startsWith("--")||t.includes("-")?t.toLowerCase():t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Tt(t){return{staticStyles:At(t.style),dynamicProperties:new Set}}function Pt(t,e,n){const s=n.staticStyles.get(e);s?t.style.setProperty(e,s.value,s.priority):t.style.removeProperty(e)}function Nt(t,e,n){const s=function(t){const e=document.createElement("div").style,n=new Set;if("string"==typeof t){e.cssText=t;for(const t of At(e).keys())n.add(t)}else if(t&&"object"==typeof t)for(const[s,r]of Object.entries(t)){const t=It(s);n.add(t),null!=r&&!1!==r&&(s.startsWith("--")?e.setProperty(s,r+""):e[s]=r)}return{mentioned:n,values:At(e)}}(e);for(const e of n.dynamicProperties)s.mentioned.has(e)||Pt(t,e,n);for(const e of s.mentioned){const n=s.values.get(e);n?t.style.setProperty(e,n.value,n.priority):t.style.removeProperty(e)}n.dynamicProperties=s.mentioned}const Lt=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"]),Mt={allowfullscreen:"allowFullscreen",formnovalidate:"formNoValidate",ismap:"isMap",itemscope:"itemScope",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly"},Vt=new Set(["action","background","cite","formaction","href","poster","src","xlink:href"]),Ot=new Set(["BASE","EMBED","IFRAME","LINK","OBJECT","SCRIPT"]);function Rt(t,e,n){const s=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-"))}(s))return t.removeAttribute(s),void c();if(!function(t,e,n){if(!Vt.has(e))return!("data"===e&&"OBJECT"===t.tagName);if(null==n||!1===n)return!0;if(Ot.has(t.tagName))return!1;const s=(n+"").trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!s.startsWith("javascript:")&&!s.startsWith("vbscript:")&&(!s.startsWith("data:")||"src"===e&&t instanceof HTMLImageElement&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(s))}(t,s,n))return t.removeAttribute(s),void c();if(Lt.has(s)){const e=!!n;return t.toggleAttribute(s,e),void function(t,e,n){const s=Mt[e]||e;if(s in t)try{t[s]=n}catch{}}(t,s,e)}if(null==n||!1===n&&!s.startsWith("aria-")&&!s.startsWith("data-"))return void t.removeAttribute(s);const r=n+"";"value"===s&&"value"in t&&(t.value=r),t.setAttribute(s,r)}function Dt(t){return Array.from(t.attributes).filter(t=>t.name.startsWith(":"))}function Bt(t,e){const n=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];for(const t of n)if(!i(t))for(const n of Dt(t)){const s=n.name.slice(1),r=W(n.value,e);"class"===s?Ct(t,r,kt(t)):"style"===s?Nt(t,r,Tt(t)):Rt(t,s,r)}}function Ft(t,e){if(!t)return;const n=document.querySelector(e);if(!n)return;const s=document.createComment("g-portal");t.parentNode?.insertBefore(s,t),t.__portal_placeholder__=s,t.__portal_target__=n,n.appendChild(t),c()}function Ut(t){if(!t)return;const e=t.__portal_placeholder__;e&&e.parentNode&&(e.parentNode.insertBefore(t,e),e.remove(),delete t.__portal_placeholder__,delete t.__portal_target__,c())}const jt=new Map;function Wt(t,e){jt.set(t,e)}async function $t(t,e,n){const s=e.split("|");for(const e of s){const s=e.lastIndexOf(":");let r,i=e;if(s>0){const t=e.substring(0,s),n=t.indexOf("("),a=t.lastIndexOf(")");(-1===n||a>n&&a===t.length-1)&&(i=t,r=e.substring(s+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=jt.get(o);if(!u)continue;const h=await u(t,...l,n);if(!0!==h)return r||(n?.messages?.[o]?n.messages[o]:"string"==typeof h?h:"Validation failed for "+o)}return null}Wt("required",t=>!(null==t||""===t||Array.isArray(t)&&0===t.length)||"This field is required"),Wt("email",t=>!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||"Invalid email address"),Wt("minLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length>=n||"Minimum length is "+n}),Wt("maxLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length<=n||"Maximum length is "+n}),Wt("min",(t,e)=>{if(!t)return!0;const n=parseFloat(e);return parseFloat(t)>=n||"Minimum value is "+n}),Wt("max",(t,e)=>{if(!t)return!0;const n=parseFloat(e);return n>=parseFloat(t)||"Maximum value is "+n}),Wt("number",t=>!t||!isNaN(parseFloat(t))&&isFinite(t)||"Must be a number"),Wt("integer",t=>!t||Number.isInteger(parseFloat(t))||"Must be an integer"),Wt("numeric",t=>!t||/^\d+$/.test(t)||"Must contain only digits"),Wt("alpha",t=>!t||/^[a-zA-Z]+$/.test(t)||"Must contain only letters"),Wt("alphanumeric",t=>!t||/^[a-zA-Z0-9]+$/.test(t)||"Must contain only letters and numbers"),Wt("pattern",(t,e)=>!t||RegExp(e).test(t)||"Invalid format"),Wt("same",(t,e,n)=>!t||!n?.form||t===n.form[e]||"Must match "+e),Wt("different",(t,e,n)=>!t||!n?.form||t!==n.form[e]||"Must be different from "+e),Wt("url",t=>{if(!t)return!0;try{return new URL(t),!0}catch{return"Invalid URL"}}),Wt("phone",t=>!t||/^0\d{9}$/.test(t)||"Invalid phone number (format: 0xxxxxxxxx)"),Wt("date",t=>!t||(/^\d{4}-\d{2}-\d{2}$/.test(t)?!isNaN(new Date(t).getTime())||"Invalid date":"Invalid date format (use YYYY-MM-DD)")),Wt("before",(t,e)=>{if(!t)return!0;const n=new Date(t);return new Date(e)>n||"Must be before "+e}),Wt("after",(t,e)=>!t||new Date(t)>new Date(e)||"Must be after "+e),Wt("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),s=/[0-9]/.test(t);return e?n?!!s||"Password must contain at least one number":"Password must contain at least one lowercase letter":"Password must contain at least one uppercase letter"}),Wt("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(", ")}),Wt("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(", ")}),Wt("between",(t,e,n)=>{if(!t)return!0;const s=parseFloat(t),r=parseFloat(e),i=parseFloat(n);return s>=r&&i>=s||`Must be between ${r} and ${i}`});const qt=new WeakSet,Ht=new WeakSet,Gt=new WeakMap,zt=new WeakMap,Yt=Symbol("gyos.validation-field");function Kt(t){const e=t[Yt];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 Jt(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=Kt(t),s=Array.from(e.querySelectorAll('input[type="radio"]')).find(e=>!(i(e)||!e.checked||(!t.name||e.name!==t.name)&&Kt(e)!==n));return s?.value??""}function Qt(t){return Gt.has(t)||Gt.set(t,{errors:E({}),touched:E({}),$invalid:E(!1),$valid:E(!0),$dirty:E(!1),$pristine:E(!0)}),Gt.get(t)}function Xt(t){const e=t.errors.value,n=t.touched.value,s=Object.values(e).some(t=>null!==t),r=Object.values(n).some(t=>t);t.$invalid.value!==s&&(t.$invalid.value=s,t.$valid.value=!s),t.$dirty.value!==r&&(t.$dirty.value=r,t.$pristine.value=!r)}const Zt={enter:"enter",esc:"escape",escape:"escape",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",delete:"delete",tab:"tab"},te=new Set(["prevent","stop","once","capture","passive","debounce","outside","global"]);function ee(t,e,n,s){s.includes("prevent")&&n.preventDefault(),s.includes("stop")&&n.stopPropagation();try{F().execute(t,e,n)}catch(t){}}const ne=Symbol("gyos.parent-scope");function se(t){return t?.[ne]}function re(t){const e=[],n=/[^.[\]]+|\[(\d+)\]/g;let s;for(;s=n.exec(t);)void 0!==s[1]?e.push(Number(s[1])):e.push(s[0]);return e}function ie(t,e,n){if(o(e))return;const s=re(e);if(0===s.length)return;let r=t;A(r)&&(r=r.value);for(let t=0;t<s.length-1;t++){let e=r[s[t]];A(e)&&(e=e.value),r=e}const i=s[s.length-1],a=r[i];A(a)?a.value=n:r[i]=n}function ae(t=document.body,e=!1){t&&((t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&Y(t),t.__gyos_effects__&&(t.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),t.__gyos_effects__=null),t.querySelectorAll("*").forEach(t=>{(t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&Y(t),t.__gyos_effects__&&(t.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),t.__gyos_effects__=null)}),Ut(t),e&&t.remove())}const oe=new WeakMap,ce=new WeakSet,le=new WeakMap,ue=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=Symbol.for("gyos_scope_version");function de(t){const e=Ee(t),n=new Set,s=t=>{if(n.has(t))return;n.add(t),t.value=t.value+1;const e=pe.get(t);e&&e.forEach(t=>s(t))};s(e)}function me(t){return t instanceof Date||t instanceof RegExp||t instanceof Map||t instanceof Set||t instanceof WeakMap||t instanceof WeakSet||t instanceof Promise}function ge(t){return"string"==typeof t&&(t.startsWith("__gyos_")||t.startsWith("$")||["onMount","onUpdate","onUnmount"].includes(t))}function ye(t,e,n){let s=le.get(t);s||(s=new Map,le.set(t,s));let r=s.get(e);return r||(r=E(n,c()?`(${e.toString()})`:void 0),s.set(e,r)),r}const ve=Symbol.for("gyos.store");function xe(t){return!(!t||!t[ve])}const be=Symbol.for("gyos.raw");function _e(t){return!(!t||!t[be])}const we=Symbol.for("gyos.shallow");function Ee(t){let e=ue.get(t);return e||(e=E(0),ue.set(t,e)),e}function Se(t){if(!t||"object"!=typeof t||me(t))return t;if(ce.has(t))return t;if(_e(t))return t;if(xe(t))return t;if(oe.has(t))return oe.get(t);let e;e=new Proxy(t,{get(t,n,s){const r=Reflect.get(t,n,s);if(!Object.prototype.hasOwnProperty.call(t,n)){if("symbol"!=typeof n&&!ge(n)&&!(n in t)){const e=le.get(t)?.get(n);if(I())return(e||ye(t,n,void 0)).value;if(e)return e.peek}return r}if("symbol"==typeof n||ge(n))return r;if(xe(r))return r;const i=Object.getOwnPropertyDescriptor(t,n);if(i&&i.get)return r;if("function"==typeof r)return r.bind(e);const a=I(),o=le.get(t)?.get(n);if(r&&"object"==typeof r&&_e(r))return a&&(o||ye(t,n,r)).value,r;if(r&&"object"==typeof r&&!me(r)){const e=ue.get(t);return ue.has(r)||Ee(r),e&&function(t,e){const n=Ee(t);let s=he.get(t);s||(s=new Set,he.set(t,s)),s.add(e);let r=pe.get(n);r||(r=new Set,pe.set(n,r)),r.add(e)}(r,e),a&&(o||ye(t,n,r)).value,(c=t)&&c[we]?r:Se(r)}var c;return a?(o||ye(t,n,r)).value:o?o.peek:r},set(t,e,n,s){if("symbol"==typeof e||ge(e))return Reflect.set(t,e,n,s);const r=Object.getOwnPropertyDescriptor(t,e);if(r&&r.set){const r=Reflect.set(t,e,n,s);return r&&de(t),r}const i=t[e];if(xe(n))return Reflect.set(t,e,n,s);if(!Reflect.set(t,e,n,s))return!1;const a=ye(t,e,n);return Object.is(i,n)||(a.value=n,de(t)),!0},ownKeys:t=>(Ee(t).value,Reflect.ownKeys(t).filter(t=>!ge(t))),getOwnPropertyDescriptor(t,e){if("string"!=typeof e||!ge(e))return Reflect.getOwnPropertyDescriptor(t,e)},deleteProperty(t,e){if("symbol"==typeof e||ge(e))return Reflect.deleteProperty(t,e);const n=Object.prototype.hasOwnProperty.call(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&(ye(t,e,void 0).value=void 0,de(t)),s},defineProperty(t,e,n){if("symbol"==typeof e||ge(e))return Reflect.defineProperty(t,e,n);const s=Object.getOwnPropertyDescriptor(t,e),r=s&&"value"in s?s.value:void 0,i="value"in n?n.value:r;return!!Reflect.defineProperty(t,e,n)&&("value"in n&&(ye(t,e,n.value).value=n.value,s&&Object.is(r,i)||de(t)),!0)}});const n=ue.get(t);return n&&ue.set(e,n),ce.add(e),oe.set(t,e),e}function ke(t){const e=Ee(t),n=Se(t);return n.hasOwnProperty(fe)||Object.defineProperty(n,fe,{value:e,enumerable:!1,configurable:!1,writable:!1}),n}let Ce=null;const Ae=new WeakMap,Ie=Symbol("gyos.for-scope-state");function Te(t){return Ae.has(t)||Ae.set(t,t.cloneNode(!0)),Ae.get(t).cloneNode(!0)}function Pe(t,e){t.__gyos_scope__=e}function Ne(t,e,n,s){const r={};!function(t,e){Object.defineProperty(t,ne,{value:e,configurable:!1,enumerable:!1,writable:!1})}(r,t);const i=E({list:n,index:s});Object.defineProperty(r,Ie,{value:i});const[a,o]=e.split(",").map(t=>t.trim());o?Object.defineProperty(r,o,{get:()=>i.value.index,enumerable:!1,configurable:!1}):Object.defineProperty(r,"$index",{get:()=>i.value.index,enumerable:!0,configurable:!1}),Object.defineProperty(r,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 r||Object.defineProperty(r,e,{get:()=>t[e],set:n=>{t[e]=n},enumerable:!0,configurable:!0});return r}let Le=null;Ce=Ve;const Me=(t,e)=>{const n=K(t);return!(!n||n===e)};function Ve(t,e,n=!1){if(i(t))return;Q.push([]);const s=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];if(n&&Le&&t.querySelectorAll("[g-scope]").forEach(t=>{i(t)||p(t)||Le(t)}),function(t,e){const n=[],s=t[0];t.forEach(t=>{const e=t.hasAttribute("*if"),r=t.hasAttribute("*for"),i=t.hasAttribute("*switch"),a=t.hasAttribute("*await");if(e||r||i||a){let e=0,o=t;for(;o&&o!==s;)e++,o=o.parentNode;let c="if";r?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})=>{"for"===n?function(t,e){const n=t.getAttribute("*for"),s=t.cloneNode(!0);s.removeAttribute("*for");const r=s.getAttribute("g-key"),i=!!r;i&&s.removeAttribute("g-key");const a=document.createComment("*for");t.parentNode?.replaceChild(a,t);let o,c=new Map,l=null;tt(t,()=>{const t=n.match(/(.+?)\s+in\s+(.+)/);if(!t)return;const u=t[1].trim(),h=W(t[2].trim(),e,!1);if(!Array.isArray(h))return;const p=(f=h,ue.get(f));var f;const d=p?p.value:void 0;(i||h!==l||d!==o)&&(l=h,o=d,P(()=>{i?function(t,e,n,s,r,i,a){const o=new Map,c=[];n.forEach((t,e)=>{const a=Ne(i,s,n,e),l=W(r,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=_t(e.element);if(J(e.element),n.length>0){e.element.style.pointerEvents="none";const t=n.map(t=>Et(t,e.scope));Promise.all(t).then(()=>{ae(e.element,!0)})}else ae(e.element,!0)});let u=t;c.forEach(r=>{const c=o.get(r),{index:l}=c;let h;if(a.has(r)){const t=a.get(r),e=t.scope[Ie],s=e.peek;s.list===n&&s.index===l||(e.value={list:n,index:l}),h=t.element}else{const o=Te(e),c=Ne(i,s,n,l);Pe(o,c);const p=_t(o);p.length>0&&p.forEach(t=>{const e=bt(t,c);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),h=o,t.parentNode?.insertBefore(o,u.nextSibling),Ce&&Ce(o,c,!0),a.set(r,{element:o,scope:c}),p.length>0&&requestAnimationFrame(()=>{p.forEach(t=>wt(t,c))})}h!==u.nextSibling&&t.parentNode?.insertBefore(h,u.nextSibling),u=h})}(a,s,h,u,r,e,c):function(t,e,n,s,r){let i=t.nextSibling;for(;i&&i.nodeType!==Node.COMMENT_NODE;){const t=i;i=i.nextSibling,t instanceof Element&&(J(t),ae(t,!0))}let a=t;n.forEach((i,o)=>{const c=Te(e),l=Ne(r,s,n,o);Pe(c,l);const u=_t(c);u.length>0&&u.forEach(t=>{const e=bt(t,l);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),t.parentNode?.insertBefore(c,a.nextSibling),a=c,Ce&&Ce(c,l,!0),u.length>0&&requestAnimationFrame(()=>{u.forEach(t=>wt(t,l))})})}(a,s,h,u,e)}))})}(t,e):"if"===n?function(t,e){const n=[];n.push({element:t,condition:t.getAttribute("*if")});let s=t.nextElementSibling;for(;s&&!i(s);){if(!s.hasAttribute("*elseif")){if(s.hasAttribute("*else")){n.push({element:s,condition:null}),s.remove();break}break}{n.push({element:s,condition:s.getAttribute("*elseif")});const t=s.nextElementSibling;s.remove(),s=t}}const r=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}}),a=document.createComment("*if-chain");t.parentNode?.replaceChild(a,t);let o=null,c=-1;tt(t,()=>{let t=-1;for(let n=0;n<r.length;n++){const{condition:s}=r[n];if(null===s){t=n;break}if(W(s,e,!1)){t=n;break}}if(t!==c){if(o){const t=o;J(t),o=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}if(-1!==t){const{template:n}=r[t];o=Te(n),c=t,Pe(o,e);const s=_t(o);s.length>0&&s.forEach(t=>{const n=bt(t,e);if(n){const e=xt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ce&&Ce(o,e,!0),s.length>0&&requestAnimationFrame(()=>{s.forEach(t=>wt(t,e))})}else c=-1}})}(t,e):"switch"===n?function(t,e){const n=t.getAttribute("*switch"),s=[];Array.from(t.children).forEach(t=>{i(t)||(t.hasAttribute("*case")?s.push({element:t,value:t.getAttribute("*case")}):t.hasAttribute("*default")&&s.push({element:t,value:null}))});const r=s.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;tt(t,()=>{const t=W(n,e,!1);let s=-1;for(let n=0;n<r.length;n++){const{value:i}=r[n];if(null===i){-1===s&&(s=n);break}if(t===W(i,e,!1)){s=n;break}}if(s!==c){if(o){const t=o;J(t),o=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}if(-1!==s){const{template:t}=r[s];o=Te(t),c=s,Pe(o,e);const n=_t(o);n.length>0&&n.forEach(t=>{const n=bt(t,e);if(n){const e=xt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ce&&Ce(o,e,!0),n.length>0&&requestAnimationFrame(()=>{n.forEach(t=>wt(t,e))})}else c=-1}})}(t,e):"await"===n&&function(t,e){const n=t.getAttribute("*await");t.removeAttribute("*await");const s=Array.from(t.children);let r=null,a=null,o=null;s.forEach(t=>{if(!i(t))if(t.hasAttribute("*pending"))r=t.cloneNode(!0),r.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(l){const t=l;l=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}let s=null,i=e;if("pending"===t&&r?s=r:"fulfilled"===t&&a?(s=a.template,a.varName&&void 0!==n&&(i={...e,[a.varName]:n})):"rejected"===t&&o&&(s=o.template,o.varName&&void 0!==n&&(i={...e,[o.varName]:n})),s){l=Te(s),u=t,Pe(l,i);const e=_t(l);e.length>0&&e.forEach(t=>{const e=bt(t,i);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),c.parentNode?.insertBefore(l,c.nextSibling),Ce&&Ce(l,i,!0),e.length>0&&requestAnimationFrame(()=>{e.forEach(t=>wt(t,i))})}};p("pending"),tt(t,()=>{const t=W(n,e,!1),s=++h;t instanceof Promise?(p("pending"),t.then(t=>{s===h&&"pending"===u&&p("fulfilled",t)}).catch(t=>{s===h&&"pending"===u&&p("rejected",t)})):p("fulfilled",t)})}(t,e)})}(s,e),s.forEach(s=>{if(!document.body.contains(s))return;if(0===s.attributes.length)return;if(Me(s,e)&&!n)return;const a=Array.from(s.attributes);s.hasAttribute("g-static")&&function(t,e){t.removeAttribute("g-static"),t.__gyos_static__=!0,st(t,e),St(t,e),Bt(t,e)}(s,e),s.hasAttribute("g-form")&&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 s=Qt(t);!function(t){qt.add(t)}(t);const r=async()=>{const e=zt.get(t)||[],n={...s.touched.value};return Object.keys(n).forEach(t=>{n[t]=!0}),s.touched.value={...n},await Promise.all(e.map(t=>t())),Xt(s),!s.$invalid.value};s.validateAll=r;const i={errors:s.errors,touched:s.touched,$invalid:s.$invalid,$valid:s.$valid,$dirty:s.$dirty,$pristine:s.$pristine,validateAll:r};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 s=await r();if(!h||!s)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){Ht.add(t)}(t),c=!0;try{t.requestSubmit(e)}finally{c&&(c=!1),function(t){Ht.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){qt.delete(t),Ht.delete(t)}(t),Gt.delete(t),zt.delete(t)})}(t,e),t.querySelectorAll("[g-validate]").forEach(t=>{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=Kt(t);if(!n)return;t[Yt]=n;const s=t.closest("form");if(!s)return;const r=Qt(s);r.errors.value[n]=null,r.touched.value[n]=!1;const a=async()=>{const a=Jt(t,s),o={};s.querySelectorAll("input, textarea, select").forEach(t=>{if(!i(t)&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=Kt(t);e&&(o[e]=Jt(t,s))}});const c=await $t(a,e,{form:o,field:n}),l=r.errors.value;l[n]!==c&&(l[n]=c,r.errors.value={...l},Xt(r))};zt.has(s)||zt.set(s,[]),zt.get(s).push(a);const o=()=>{const t=r.touched.value;t[n]||(t[n]=!0,r.touched.value={...t},Xt(r)),a()};let c;t.addEventListener("blur",o);const l=()=>{clearTimeout(c),c=setTimeout(()=>{a()},300)};t.addEventListener("input",l),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{t.removeEventListener("blur",o),t.removeEventListener("input",l),clearTimeout(c)})}(t)}),t.querySelectorAll("[g-errors]").forEach(t=>{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 s=Qt(n);if(""===e||null===e){const e=k(()=>{const e=s.errors.value,n=Object.entries(e).filter(([t,e])=>null!==e);t.replaceChildren(...n.map(([t,e])=>{const n=document.createElement("div"),s=document.createElement("strong");return s.textContent=t+":",n.append(s,document.createTextNode(" "+e)),n})),t.style.display=n.length?"":"none"});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(e)}else{const n=k(()=>{const n=s.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)})}(s,e),a.some(t=>t.name.startsWith("g-")&&!t.name.startsWith("g-portal"))&&function(t,e,n){if(!i(t)&&!r(t,n)){if(t.hasAttribute("g-show")){const n=t.getAttribute("g-show"),s="none"===t.style.display?"":t.style.display;let r=!1,i=0;tt(t,()=>{const a=!!W(n,e),o=++i;return xt.cancel(t),r?bt(t,e)?(a?(t.style.display=s,wt(t,e,!0)):"none"!==t.style.display&&Et(t,e,!1).then(e=>{!1!==e&&o===i&&(t.style.display="none")}),()=>xt.cancel(t)):(t.style.display=a?s:"none",()=>xt.cancel(t)):(r=!0,t.style.display=a?s:"none",()=>xt.cancel(t))})}if(t.hasAttribute("g-html")){const n=t.getAttribute("g-html");tt(t,()=>{const s=W(n,e);t.innerHTML=s})}if(t.hasAttribute("g-text")){const n=t.getAttribute("g-text");tt(t,()=>{const s=W(n,e);t.textContent=s})}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 r=n.name.slice(2).replace(/:.+$/,""),i=(s=r,mt.get(s)),a=n.name.split(":");let o;if(a.length>1&&(o=a.slice(1)),i){const s=()=>{if(""!==n.value.trim())return"on"===r&&"function"==typeof e[n.value]?e[n.value]:W(n.value,e,!1)},a=s();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&&tt(t,()=>{const n=s();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 s})}}(s,e,t),a.some(t=>t.name.startsWith(":"))&&function(t,e,n){if(!(i(t)||r(t,n)||t.hasAttribute("*if")||t.hasAttribute("*for")))for(const n of Dt(t)){const s=n.name.slice(1),r=n.value,i="class"===s?kt(t):void 0,a="style"===s?Tt(t):void 0;tt(t,()=>{const n=K(t)||e,o=W(r,n);"class"===s?Ct(t,o,i):"style"===s?Nt(t,o,a):Rt(t,s,o)})}}(s,e,t),a.some(t=>t.name.match(/^g-model($|[.])/))&&function(t,e,n){if(i(t))return;if(r(t,n))return;const s=Array.from(t.attributes).find(t=>t.name.startsWith("g-model"));if(!s)return;const a=t,o=s.name.split(".").slice(1),l=s.value,u=o.includes("debounce");let h=300;if(u){const t=o.find(t=>/^\d+$/.test(t));t&&(h=parseInt(t))}c();const p=K(t)||e,f=re(l);"string"==typeof f[0]&&function(t,e){if(!se(t)||e in t)return;let n=t,s=se(n);for(;s;)n=s,s=se(n);e in n||(n[e]=void 0),Object.defineProperty(t,e,{get:()=>n[e],set:t=>{n[e]=t},configurable:!0,enumerable:!0})}(p,f[0]);const d=W(l,p,!1);let m;"checkbox"===a.type?a.checked=!!d:"radio"===a.type?a.checked=T(d)+""===a.value:a.value=T(d);const g=t=>{const e=t.target;var n;("radio"!==e.type||e.checked)&&(n="checkbox"===e.type?e.checked:e.value,o.includes("number")&&(n=Number(n)),o.includes("trim")&&"string"==typeof n&&(n=n.trim()),u?(clearTimeout(m),m=setTimeout(()=>{ie(p,l,n)},h)):ie(p,l,n))};a.addEventListener("input",g),tt(t,()=>{const t=W(l,p,!1);"checkbox"===a.type?a.checked=!!t:"radio"===a.type?a.checked=T(t)+""===a.value:a.value!==t&&(a.value=T(t))}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{a.removeEventListener("input",g),m&&(clearTimeout(m),m=void 0)}),t.removeAttribute(s.name)}(s,e,t)}),function(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),s=[];let r;for(;r=n.nextNode();){if(nt(r,t,e))continue;const n=r.textContent||"";n.includes("{")&&n.includes("}")&&s.push({node:r,template:n})}s.forEach(({node:t,template:n})=>{const s=t.parentElement;s&&tt(s,()=>{const s=K(t.parentElement)||e;t.textContent=j(n,s)})})}(t,e),function(t,e){const n=u(t,t=>!i(t)&&!t.hasAttribute("g-static"),NodeFilter.FILTER_REJECT);n.unshift(t),n.forEach(n=>{if(r(n,t))return;const s=K(n);s&&s!==e||Array.from(n.attributes).forEach(t=>{if(t.name.startsWith("@")){const s=t.name.substring(1).split("."),r=s[0],i=s.slice(1),a=t.value;if(i.includes("outside"))return void function(t,e,n,s,r){let i,a=!0;const o=r=>{const i=r.target;if(document.body.contains(t)){if(!(i instanceof Element&&i.closest("[g-ignore-outside-click]")||t===i||t.contains(i))){const i=K(t)||s;n.includes("once")&&c(),ee(e,i,r,n)}}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(r)}(n,a,i,e,t.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"===r||"keydown"===r||"keypress"===r,l={timeoutId:0};let u=()=>{};const h=t=>{if(c&&!function(t,e){let n=!1;for(const t of e)if(!te.has(t)&&!/^\d+$/.test(t)){n=!0;break}if(!n)return!0;const s=t.key.toLowerCase();for(const t of e){if(te.has(t)||/^\d+$/.test(t))continue;const e=Zt[t];if(e){if(s===e)return!0}else if(s===t.toLowerCase())return!0}return!("backspace"!==s||!e.includes("delete"))}(t,i))return;const s=()=>{i.includes("once")&&u(),C(()=>{const s=K(n)||e;ee(a,s,t,i)})};o>0?(clearTimeout(l.timeoutId),l.timeoutId=window.setTimeout(s,o)):s()},p={};let f=n;i.includes("capture")&&(p.capture=!0),i.includes("passive")&&(p.passive=!0),i.includes("global")&&(f=document.documentElement),f.addEventListener(r,h,p),u=()=>{f.removeEventListener(r,h,!!p.capture),l.timeoutId&&clearTimeout(l.timeoutId)},n.__gyos_effects__||(n.__gyos_effects__=[]),n.__gyos_effects__.push(u),n.removeAttribute(t.name)}})})}(t,e),function(){const t=X();if(t){for(let e=0;e<t.length;e++){const{target:n,runner:s}=t[e];Z(n,s)}t.length=0,Q.pop()}}(),t.hasAttribute("g-portal")){const e=t.getAttribute("g-portal");Ft(t,e)}}const Oe=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 s=()=>{this.pending.delete(t),n()};switch(e){case"idle":this.hydrateOnIdle(t,s);break;case"visible":this.hydrateOnVisible(t,s);break;case"interaction":this.hydrateOnInteraction(t,s);break;default:if(e.startsWith("media(")){const n=`(${e.slice(6,-1)})`;this.hydrateOnMedia(t,n,s)}else s()}}hydrateOnIdle(t,e){let n=!0;const s=()=>{n&&(n=!1,e())};if("requestIdleCallback"in window){const e=window.requestIdleCallback(s,{timeout:2e3});this.trackCleanup(t,()=>{n=!1,window.cancelIdleCallback?.(e)})}else{const e=setTimeout(s,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 s=!1;const r=()=>{s||(s=!0,n.forEach(e=>{t.removeEventListener(e,r)}),e())};n.forEach(e=>{t.addEventListener(e,r,{once:!0,passive:!0})}),this.trackCleanup(t,()=>{s=!0,n.forEach(e=>t.removeEventListener(e,r))})}hydrateOnMedia(t,e,n){const s=window.matchMedia(e);if(s.matches)n();else{let e=!0;const r=t=>{e&&t.matches&&(e=!1,n(),s.removeEventListener("change",r))};s.addEventListener("change",r),this.trackCleanup(t,()=>{e=!1,s.removeEventListener("change",r)})}}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)}};Le=Ue;const Re=new Map;function De(t){let e=0;for(;t.parentElement;)e++,t=t.parentElement;return e}function Be(t){if(t)return void(t instanceof HTMLElement?[t]:Array.from(t)).forEach(t=>Fe(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)=>De(e)-De(t)),e.forEach(t=>!p(t)&&Ue(t))}function Fe(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)=>De(e)-De(t)),e.forEach(t=>!p(t)&&Ue(t)),G(t))return;const n=K(t);n&&Ve(t,n)}function Ue(t){document.body.contains(t)&&(i(t)||(z().forEach((t,e)=>{document.body.contains(e)||ae(e)}),function(t,e){const n=function(t,e){let n;const s=We(t,t=>H.get(t));if(s)return s;n=function(t){t=decodeURIComponent(t);try{const e=t.trim();if(!e.startsWith("{"))return;const n=F().parseScope(e);return c(),n}catch(t){return void c()}}(e),n||(n=Re.get(e)||{});const r=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}},s=t.attributes;let r={},i=[];for(let t=0;t<s.length;t++){const a=s[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-.+/))r[l]=n(a.value),i.push(a.name);else if(a.name.match(/^gm-.+/)){const t=decodeURIComponent(a.value.trim());e.some(e=>t.includes(e))&&c();const n=l.split(":").slice(1),s=l.split(":")[0];try{r[s]=F().createMethod(n,t),i.push(a.name)}catch(t){c()}}}return i.forEach(e=>t.removeAttribute(e)),r}(t);if("function"==typeof n){const e=n;return n=>{const s=e(n);return s&&"object"==typeof s?(Object.keys(r).forEach(t=>{s[t]=r[t]}),je(t,s),s):s}}return Object.keys(r).forEach(t=>{n[t]=r[t]}),je(t,n),n}(t,e);if(G(t))return;if(t.hasAttribute("g-static"))return;const s=function(t){return t.getAttribute("g-hydrate")||null}(t);s?Oe.setup(t,s,()=>{document.body.contains(t)&&!i(t)&&$e(t,n)}):$e(t,n)}(t,t.getAttribute("g-scope")||Math.random().toString(36))))}function je(t,e){const n=u(t,t=>t.getAttributeNames().some(t=>t.startsWith("g-model"))),s=new Map;for(const t of n){if(i(t))continue;const n=t.attributes,r=Array.from(n).find(t=>t.name.startsWith("g-model"));if(!r)continue;if(r.value.includes("."))continue;const a=t;if("radio"===a.type){if(r.value in e)continue;if(s.has(r.value)||s.set(r.value,""),a.checked){const t=r.name.split(".").includes("number")?Number(a.value):a.value;s.set(r.value,t)}continue}if(r.value in e)continue;const o="checkbox"===a.type?a.checked:a.value;e[r.value]=o,c()}for(const[t,n]of s)t in e||(e[t]=n,c())}function We(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 s=t.parentElement.__gyos_scope__;return s?e(W(n.slice(1,-1),s,!1)):void 0}function $e(t,e){let r=null;"object"==typeof e&&(r=ke(e));const a=function(t,e){const r={},a=new Map;return t.querySelectorAll("[g-ref]").forEach(t=>{if(i(t))return;const e=t.getAttribute("g-ref");e&&!o(e)&&(r[e]=t)}),{inject:e=>V(t).get(e),provide:(e,n)=>{V(t).set(e,n)},$refs:r,$emit:(e,...n)=>{const s=a.get(e);s&&s.forEach(t=>{try{t(...n)}catch(t){c()}}),t.dispatchEvent(new CustomEvent(e,{detail:n}))},$on:(t,e)=>(a.has(t)||a.set(t,new Set),a.get(t).add(e),()=>{a.get(t)?.delete(e)}),$watch:(t,r,i={})=>{if(!e)return c(),()=>{};const{immediate:a=!1,deep:o=!1,debounce:l=0}=i;let u;if(l>0){const t=r;r=(...e)=>{clearTimeout(u),u=setTimeout(()=>{t(...e)},l)}}let h,p=!1;const f=k(()=>{const i=((t,e)=>{const n=e.split(".");let s=t;for(const t of n){if(null==s)return;s=s[t]}return s})(e,t),c=o&&"object"==typeof i?n(i):i;if(!p)return h=c,p=!0,void(a&&r.call(e,c,void 0));(o?!s(h,c):h!==c)&&(r.call(e,c,h),h=o&&"object"==typeof c?n(c):c)});return e.__gyos_effects__||(e.__gyos_effects__=[]),e.__gyos_effects__.push(f),f},$effect:t=>{if(!e)return c(),()=>{};const n=k(t);return e.__gyos_effects__||(e.__gyos_effects__=[]),e.__gyos_effects__.push(n),n}}}(t,r);if("function"==typeof e&&!r){const t=e(a);r=t&&"object"==typeof t?ke(t):t}if(r&&"object"==typeof r){if(r.onUpdate){const e=r[fe],n=k(()=>{e&&(e.value,G(t)&&r.onUpdate.call(r))});r.__gyos_effects__||(r.__gyos_effects__=[]),r.__gyos_effects__.push(n)}r.$refs=a.$refs,r.$emit=a.$emit,r.$on=a.$on,r.$watch=a.$watch,r.$effect=a.$effect,r.$inject=a.inject,r.$provide=a.provide,function(t,e,n){t.__gyos_scope__=e,function(t,e){if(t.hasAttribute("g-static"))return c(),t.removeAttribute("g-static"),t.__gyos_static__=!0,st(t,e),St(t,e),void Bt(t,e);Ve(t,e)}(t,e),n&&n()}(t,r,()=>{r.onMount&&Promise.resolve(r.onMount.call(r)).catch(console.error)}),function(t,e){q.set(t,e)}(t,r),We(t,t=>{H.has(t)||H.set(t,r)})}else c()}const qe=new Map,He=new Map;function Ge(t,e){return He.has(t)||He.set(t,new Set),He.get(t).add(e),()=>{He.get(t)?.delete(e)}}function ze(t,e){e?He.get(t)?.delete(e):He.delete(t)}class Ye{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}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",()=>{document.body.insertAdjacentElement("beforeend",this.element)}):document.body.insertAdjacentElement("beforeend",this.element))}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&&(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 Ke(t){t&&t.parentNode&&t.remove()}let Je;function Qe(t){Je=t}const Xe=new Set;function Ze(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 tn(t){if(!t.hasAttribute("g-script-once"))return!0;const e=t.src||Ze(t.textContent||"");return!Xe.has(e)&&(Xe.add(e),!0)}function en(t){return t.hasAttribute("g-script-once")?t.src||Ze(t.textContent||""):null}function nn(t,e=en(t)){const n=e;n&&Xe.delete(n)}function sn(t,e,n=en(t)){return t.src||"module"===t.type?new Promise(s=>{let r=!1;const i=()=>{r||(r=!0,e?.removeEventListener("abort",a),s())},a=()=>{nn(t,n),t.remove(),i()};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",()=>{nn(t,n),t.remove(),i()},{once:!0}),e?.aborted?a():e?.addEventListener("abort",a,{once:!0})}):Promise.resolve()}async function rn(t,e){if(e?.aborted)return void t.remove();const n=("function"==typeof Je?Je():Je)||void 0;if("csp"===U()&&!t.src&&!n)return void(t.textContent="");const s=en(t);if(!tn(t))return void(t.textContent="");const r=document.createElement("script");Array.from(t.attributes).forEach(t=>r.setAttribute(t.name,t.value)),"csp"===U()&&r.removeAttribute("nonce"),n&&r.setAttribute("nonce",n),r.textContent=t.hasAttribute("g-script-wrap")?on(t.textContent):t.textContent,r.removeAttribute("g-script-wrap");const i=sn(r,e,s);t.replaceWith(r),await i}async function an(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 rn(t,e),e?.aborted)return}function on(t){return t?`(() => { ${t} })();`:t}const cn=new Map;let ln=0;function un(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 s="gyos-persist-"+ln++;return t.dataset.gyosPersistId=s,s}const hn="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","loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>document.body.appendChild(t)):document.body.appendChild(t),t})():null;function pn(t){const e=Array.from(t.querySelectorAll("[g-persist]"));return t instanceof HTMLElement&&t.matches("[g-persist]")&&e.unshift(t),e}function fn(t,e){const n=new Set;Array.from(e.attributes).forEach(e=>{n.add(e.name),t.getAttribute(e.name)!==e.value&&t.setAttribute(e.name,e.value)}),Array.from(t.attributes).forEach(e=>{n.has(e.name)||t.removeAttribute(e.name)})}function dn(t,e,n){if(e&&e.hasAttribute("g-noscroll"))return;const s=new URL(t).hash;if(s){const t=document.querySelector(s);if(t)return void t.scrollIntoView({behavior:"smooth"})}n?window.scrollTo(n.x,n.y):window.scrollTo({top:0,behavior:"smooth"})}function mn(t){const e=new Map;return t.map(t=>{const n=function(t){const e=t.tagName.toLowerCase(),n="script"===e||"style"===e?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`${e}|${function(t){return Array.from(t.attributes).map(t=>`${t.name}=${t.value}`).sort().join("|")}(t)}|${n}`}(t),s=e.get(n)||0;return e.set(n,s+1),{key:`${n}|${s}`,node:t}})}async function gn(t,e,n=document.head,s){const r=mn(t),i=mn(e),a=new Set(r.map(t=>t.key)),o=new Set(i.map(t=>t.key));r.forEach(({key:t,node:e})=>{o.has(t)||e.remove()});for(const{key:t,node:e}of i){if(s?.aborted)return;if(!a.has(t)){if("SCRIPT"===e.tagName){const t=e,r=en(t);if(!tn(t)){e.remove();continue}const i=document.createElement("script");Array.from(e.attributes).forEach(t=>i.setAttribute(t.name,t.value)),i.textContent=e.hasAttribute("g-script-wrap")?on(e.textContent||""):e.textContent||"",i.removeAttribute("g-script-wrap");const a=sn(i,s,r);n.appendChild(i),await a;continue}n.appendChild(document.importNode(e,!0))}}}const yn=new Map,vn=new Map,xn=new Map,bn=new Map,_n=new Map;let wn=!1,En=0,Sn=0,kn=!0,Cn=Dn(window.location.href,!0),An=history.state?.gyosEntryId||null,In=null,Tn=null;const Pn=[],Nn=[];function Ln(t){document.querySelector("[g-boost]")&&(wn||"undefined"!=typeof window&&"undefined"!=typeof document&&(kn=!1!==t?.showProgress,kn&&(Tn=new Ye(kn)),document.addEventListener("click",Jn),document.addEventListener("submit",Xn),document.addEventListener("mouseover",Qn,!0),window.addEventListener("popstate",Zn),"scrollRestoration"in history&&(history.scrollRestoration="manual"),document.querySelectorAll("script").forEach(t=>{const e=t.hasAttribute("g-script-once"),n=e?t.src||Ze(t.textContent||""):null;t.hasAttribute("g-script-wrap")&&t.removeAttribute("g-script-wrap"),e&&n&&Xe.add(n)}),wn=!0,h()))}function Mn(){return!!document.body?.hasAttribute("g-boost")}function Vn(){return document.querySelector("[g-outlet]")}function On(t){t.querySelectorAll("noscript").forEach(t=>t.remove())}function Rn(t){const e=(new DOMParser).parseFromString(t,"text/html");return On(e),e}function Dn(t,e=!1){const n=new URL(t,window.location.href);return e||(n.hash=""),n.href}function Bn(){return`gyos-${Date.now().toString(36)}-${++Sn}`}function Fn(t=!0){if(An)return An;const e=history.state||{};return An=e.gyosEntryId||Bn(),t&&!e.gyosEntryId&&history.replaceState({...e,gyosEntryId:An},""),An}function Un(t,e,n){let s=_n.get(t);s||(s=new Map,_n.set(t,s)),s.set(e,n.cloneNode(!0))}function jn(t,e){const n=_n.get(t)?.get(e);return n?.cloneNode(!0)}function Wn(t){return In?.id===t.id&&!t.controller.signal.aborted}function $n(t){if(!Wn(t))throw new DOMException("Navigation superseded","AbortError")}function qn(t){t.controller.abort(),t.interval&&(clearInterval(t.interval),t.interval=null),t.spinner&&(Ke(t.spinner),t.spinner=null)}function Hn(t){t?.catch(()=>{})}function Gn(t,e){t.forEach(t=>{try{t(e)}catch(t){}})}function zn(t,e){t.querySelectorAll("script[src]").forEach(t=>{const n=t.getAttribute("src");n&&(t.src=new URL(n,e).href)})}function Yn(t,e,n){"GET"!==(t.method||"GET").toUpperCase()?n||!t.form||HTMLFormElement.prototype.submit.call(t.form):window.location.href=e}async function Kn(t){for(;In;){const t=In;if(!t.committing){h(),qn(t);break}h(),await t.done}let e;const n=new Promise(t=>{e=t}),s={id:++En,controller:new AbortController,interval:null,spinner:null,committing:!1,done:n,resolveDone:e};In=s;const r=t.trigger?.hasAttribute("g-router-spin"),i=()=>{Wn(s)&&70>Tn?.getCurrentProgress()&&Tn?.setProgress(Tn?.getCurrentProgress()+8*Math.random())};try{Gn(Pn,t.url),Tn?.start(),(a=t.scrollSourceEntryId??An)&&bn.set(a,{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=function(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 s=Vn();return s instanceof HTMLElement?s:null}(t.trigger,t.targetSelector,t.targetOutletIndex);if(!e)return void(Wn(s)&&Yn(t,t.url,!1));const n=(t.swapMode||t.trigger?.getAttribute("g-swap")||"inner").toLowerCase(),o=t.trigger instanceof HTMLElement&&t.trigger.hasAttribute("g-router-remove"),c=!["append","prepend"].includes(n),l=e===Vn(),u=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),p=l?null:t.targetSelector||t.trigger?.getAttribute("g-target")||(e.id?"#"+e.id:null),f=t.currentHead??t.trigger?.hasAttribute("g-current-head")??!1,d={targetSelector:p,targetOutletIndex:l?null:u,swapMode:l?"inner":"morph",currentHead:f};r&&(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"===U()&&!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:m,init:g}=function(t){const e=(t.method||"GET").toUpperCase(),n=new Headers({"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"}),s={method:e,headers:n,redirect:"follow",mode:"same-origin"};let r=new URL(t.url,window.location.href);const i="GET"===e;if(t.formData)i?r=function(t,e){return e.forEach((e,n)=>{"string"==typeof e?t.searchParams.append(n,e):t.searchParams.append(n,e.name)}),t}(r,t.formData):s.body=t.formData;else if(t.jsonData){const e=(t,e)=>{"object"==typeof e?r.searchParams.append(t,JSON.stringify(e)):r.searchParams.append(t,e+"")};i?Object.entries(t.jsonData).forEach(([t,n])=>e(t,n)):(n.set("Content-Type","application/json"),s.body=JSON.stringify(t.jsonData))}return{finalUrl:r.toString(),init:s}}(t);let y,v;g.signal=s.controller.signal;const x=Dn(m);if(t.popstate&&t.historyFragment)h();else if(t.popstate&&yn.has(x))h(),y=yn.get(x).html;else{const n=Dn(m,!0);if("GET"===t.method.toUpperCase()&&vn.has(n)){h();try{v=await function(t,e){return e.aborted?Promise.reject(new DOMException("Navigation superseded","AbortError")):new Promise((n,s)=>{const r=()=>s(new DOMException("Navigation superseded","AbortError"));e.addEventListener("abort",r,{once:!0}),t.then(t=>{e.removeEventListener("abort",r),n(t)},t=>{e.removeEventListener("abort",r),s(t)})})}(vn.get(n),s.controller.signal)}catch(t){if(vn.delete(n),xn.get(n)?.abort(),xn.delete(n),"AbortError"===t.name)throw t;return $n(s),void(window.location.href=m)}vn.delete(n),xn.delete(n)}else try{Tn?.setProgress(10*Math.random()+20),s.interval=setInterval(i,300),v=await fetch(m,g),$n(s),Tn?.setProgress(10*Math.random()+70),s.interval&&clearInterval(s.interval),s.interval=null}catch(e){return"AbortError"===e.name?void h():void(Wn(s)&&Yn(t,m,!0))}if($n(s),!v||!v.ok||!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}(v))return void(Wn(s)&&Yn(t,m,!0));y=await v.text(),$n(s),!t.popstate&&e.hasAttribute("g-snapshot")&&function(t,e){const n=Rn(e);t.includes("#")&&(t=t.split("#")[0]),Array.from(n.scripts).forEach(t=>{t.hasAttribute("g-script-once")&&(t.textContent="")}),yn.set(t,{html:n.documentElement.outerHTML}),h()}(Dn(v.url||m),y)}const b=y?Rn(y):document.implementation.createHTMLDocument(),_=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 s=t.querySelector("[g-outlet]");return s instanceof HTMLElement?s:t.body}(b,e,u);On(_),$n(s);let w=v?.url||m;m.includes("#")&&v?.url&&(w+=m.substring(m.indexOf("#"))),zn(b,w),t.historyFragment&&zn(_,w);const E=t.trigger?.hasAttribute("g-change-state")||!1,S=t.trigger?.hasAttribute("g-current-state")||!1,k="GET"!==t.method.toUpperCase()&&!0===v?.redirected,C=!S&&(!0===t.changeState||E||k),A=async()=>{$n(s),s.committing=!0,Tn?.setProgress(10*Math.random()+80);const r=!C||t.replace||l?null:function(t){const e=t.cloneNode(!0);return e.querySelectorAll(".gyos-target-spinner").forEach(t=>t.remove()),e}(e);let i=null,a=[],o=!1;if(c&&(function(t=document){hn&&(hn&&document.body&&!hn.isConnected&&document.body.appendChild(hn),pn(t).forEach(t=>{if(t===hn||hn.contains(t))return;const e=un(t,!0);e&&(cn.set(e,t),hn.appendChild(t))}))}(e),function(t){ae(t)}(e)),C)if(t.replace){const t=Fn(!1);history.replaceState({...history.state||{},gyos:!0,gyosEntryId:t},"",w)}else{const t=Fn(!1),e=Bn(),n=history.state||{};history.replaceState({...n,gyos:!0,gyosEntryId:t,gyosRoutes:{...n.gyosRoutes||{},[e]:d}},""),history.pushState({gyos:!0,gyosEntryId:e,gyosRoutes:{[t]:d}},"",w),r&&(Un(t,e,r),i={currentEntryId:t,nextEntryId:e}),An=e}try{e=await async function(t,e,n,s={}){const r=(n||"inner").toLowerCase(),i=document.importNode(e,!0),a=Array.from(i.childNodes);let o;if("replace"===r)h(),t.replaceWith(i),o=i;else if("morph"===r)h(),t.tagName!==i.tagName?(t.replaceWith(i),o=i):(function(t,e){const n=t=>t instanceof Element&&!!t.closest("[g-persist]"),s=t=>t?.nodeType===Node.COMMENT_NODE&&!!t.nodeValue?.includes("g-persist:"),r=t=>{if(t instanceof Element)return t.getAttribute("g-persist")||null;if(s(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,s=e&&t.checked!==t.defaultChecked;return n||s?{kind:"input",type:t.type,value:n?t.value:void 0,checked:s?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);fn(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=r(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=a(e);if(d&&a(c)!==d){const n=h.findIndex((t,e)=>e>f&&a(t)===d);-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 m=r(e),g=r(c);if(m){if(p.get(m)){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)&&!s(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)||s(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"===r)h(),t.append(...a),o=t;else if("prepend"===r)h(),t.prepend(...a),o=t;else{for(h(),s.syncRootAttributes&&fn(t,i),t.replaceChildren();i.firstChild;)t.appendChild(i.firstChild);o=t}return await(s.beforeScripts?.()),s.onCommitted?.(o,"append"===r||"prepend"===r?a:[o]),"append"===r||"prepend"===r?await an(a,s.signal):await async function(t,e){await an([t],e)}(o,s.signal),o}(e,_,n,{syncRootAttributes:l,signal:s.controller.signal,beforeScripts:async()=>{if(!l||f)return;const t=b.querySelector("title");t&&(document.title=t.textContent||document.title),await async function(t,e){const n="meta, link, style:not(#gyos-transitions), script",s=Array.from(document.head.querySelectorAll(n)),r=Array.from(t.head.querySelectorAll(n));await gn(s,r,document.head,e)}(b,s.controller.signal),$n(s)},onCommitted:(t,n)=>{e=t,a=n}}),$n(s),l&&(await async function(t,e,n,s){const r=Array.from(document.scripts).filter(t=>!e.contains(t)&&!document.head.contains(t)),i=Array.from(t.scripts).filter(e=>!n.contains(e)&&!t.head.contains(e));await gn(r,i,document.body,s)}(b,e,_,s.controller.signal),$n(s))}finally{(()=>{if(o)return;o=!0;const t=a.filter(t=>t instanceof HTMLElement&&t.isConnected);!function(t){if(!cn.size)return;if(1===cn.size){const e=Array.from(cn.keys())[0];pn(t).forEach(t=>{un(t,!1)||(t.dataset.gyosPersistId=e)})}pn(t).forEach(t=>{const e=un(t,!1);if(!e)return;const n=cn.get(e);n?(t.replaceWith(n),cn.delete(e)):t.dataset.gyosPersistId=e});const e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,null),n=[];for(;e.nextNode();){const t=e.currentNode,s=t.data.match(/g-persist[:=]\s*([A-Za-z0-9_\-:.]+)/);s&&n.push({node:t,key:s[1]})}n.forEach(({node:t,key:e})=>{const n=cn.get(e);n&&(t.replaceWith(n),cn.delete(e))})}(e),i&&Un(i.nextEntryId,i.currentEntryId,e),Be(t.length>0?t:void 0)})()}if(C)dn(w,t.trigger);else if(t.popstate)dn(w,t.trigger,t.savedScroll);else{const e=history.state;dn(w,t.trigger,e?.scroll)}};if(document.startViewTransition){const t=document.startViewTransition(()=>A());Hn(t?.ready),Hn(t?.finished),t?.updateCallbackDone&&await t.updateCallbackDone}else await A();$n(s),o&&t.trigger instanceof HTMLElement&&t.trigger.isConnected&&(ae(t.trigger),t.trigger.remove()),r&&Ke(s.spinner),s.spinner=null,Gn(Nn,w),h(),Cn=Dn(C?w:window.location.href,!0),t.popstate&&t.historyEntryId&&(An=t.historyEntryId)}catch(e){if("AbortError"===e.name)return void h();Wn(s)&&Yn(t,t.url,!0)}finally{s.interval&&clearInterval(s.interval),s.spinner&&Ke(s.spinner),In?.id===s.id&&(In=null,Tn?.complete()),s.resolveDone()}var a}function Jn(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 s;try{s=new URL(e,window.location.href)}catch{return}if(s.origin===window.location.origin)try{const e=K(t),r=W(decodeURIComponent(t.getAttribute("g-router-params")||""),e,!1);Kn({url:s.toString(),method:n,trigger:t,jsonData:r,changeState:!1})}catch(t){return}}(n)}const s=e.closest("a");if(!s)return;const r=s.getAttribute("href");if(!r)return;const i=new URL(r,window.location.href);var a;i.origin===window.location.origin&&(i.hash&&Dn(i.href)===Dn(window.location.href)||s.closest("[g-no-boost]")||s.hasAttribute("download")||s.getAttribute("target")&&"_self"!==s.getAttribute("target")||(a=s).closest("[g-no-boost]")||!a.hasAttribute("g-boost")&&!Mn()||(t.preventDefault(),Kn({url:i.toString(),method:"GET",trigger:s,changeState:!0})))}function Qn(t){const e=t.target;if(!e)return;const n=e.closest("a[g-preload]");if(!n)return;const s=n.getAttribute("href");if(!s)return;const r=new URL(s,window.location.href);r.origin===window.location.origin&&function(t){const e=Dn(t,!0);if(vn.has(e))return;h();const n=new AbortController,s=fetch(e,{headers:{"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"},signal:n.signal,mode:"same-origin"});vn.set(e,s),xn.set(e,n),s.catch(()=>{vn.delete(e),xn.delete(e)})}(r.toString())}function Xn(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")&&!Mn())return;if(function(t){return!(!qt.has(t)||Ht.has(t)&&(Ht.delete(t),1))}(e))return;t.preventDefault();const n=e.action||window.location.href,s=(e.method||"GET").toUpperCase(),r=new URL(n,window.location.href);if(r.origin!==window.location.origin)return void(window.location.href=r.toString());const i=new FormData(e);Kn({url:r.toString(),method:s,trigger:e,form:e,formData:i,changeState:"GET"===s})}function Zn(t){const e=window.location.href,n=An,s=t.state||{},r=s.gyosEntryId||null,i=n?s.gyosRoutes?.[n]:void 0;if(Dn(e)===Dn(Cn)&&(!r||r===n))return Cn=Dn(e,!0),void(An=r||n);t.preventDefault(),In?.committing&&qn(In),An=r,Kn({url:e,method:"GET",replace:!0,changeState:!1,popstate:!0,savedScroll:(r?bn.get(r):void 0)||s.scroll,targetSelector:i?.targetSelector,targetOutletIndex:i?.targetOutletIndex,swapMode:i?.swapMode,currentHead:i?.currentHead,historyFragment:n&&r?jn(r,n):void 0,historyEntryId:r,scrollSourceEntryId:n})}const ts={scope:function(t,e){if(t instanceof HTMLElement){const n=Math.random().toString(36);return t.setAttribute("g-scope",n),void Re.set(n,e)}Re.set(t,e)},mount:Ue,mountAll:Be,mountTree:Fe,cleanup:ae,mountedScopes:z,markRaw:function(t){return t.hasOwnProperty(be)||Reflect.defineProperty(t,be,{value:!0,enumerable:!1}),t},shallow:function(t){return t.hasOwnProperty(we)||Reflect.defineProperty(t,we,{value:!0,enumerable:!1}),t},directive:gt,pipe:R,provide:function(t,e){L.set(t,e)},inject:function(t,e){if(L.has(t))return L.get(t);if(void 0!==e)return e;throw Error(`[GyosJS] Service "${t}" not found in DI container`)},getGlobalContainer:function(){return L},store:function(t,e){if(e){const s=ke(e);return(n=s).hasOwnProperty(ve)||Reflect.defineProperty(n,ve,{value:!0,enumerable:!1}),qe.set(t,s),s}var n;const s=qe.get(t);if(!s)throw Error(`[GyosJS] Store "${t}" not found`);return s},hasStore:function(t){return qe.has(t)},removeStore:function(t){qe.delete(t)},getStoreNames:function(){return Array.from(qe.keys())},on:Ge,emit:function(t,...e){const n=He.get(t);n&&n.forEach(t=>{try{t(...e)}catch(t){}})},off:ze,once:function(t,e){const n=(...s)=>{e(...s),ze(t,n)};return Ge(t,n)},getEventListeners:function(){const t={};return He.forEach((e,n)=>{t[n]=e.size}),t},clearAllEvents:function(){He.clear()},validator:Wt,validate:$t,getValidator:function(t){return jt.get(t)},getValidatorNames:function(){return Array.from(jt.keys())},signal:E,computed:S,effect:k,batch:C,isSignal:A,isComputed:function(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_computed__"in t},unref:T,untrack:P,registerTransition:function(t,e){vt[t]=e},getTransitionConfig:function(t){if("string"==typeof t)return vt[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=vt[n];if(!t)return vt.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=E(null),n=E(!0),s=E(null),r=async()=>{n.value=!0,s.value=null,e.value=null;try{const n="function"==typeof t?await t():t,s="string"==typeof n?await fetch(n):n;if(!s.ok)throw Error("HTTP error! status: "+s.status);e.value=await s.json()}catch(t){s.value=t}finally{n.value=!1}};return{data:e,loading:n,error:s,refetch:r,onMount:r}},useCounter:function(t=0){const e=E(t),n=S(()=>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=E(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),s=E(n?JSON.parse(n):e??""),r=s.subscribe(()=>localStorage.setItem(t,JSON.stringify(s.value)));return{state:s,remove:()=>localStorage.removeItem(t),onUnmount:r}},useInterval:function(t,e){let n=null;const s=()=>{r(),null!==e&&(n=setInterval(t,e))},r=()=>{null!==n&&(clearInterval(n),n=null)};return{start:s,stop:r,onMount:()=>s(),onUnmount:()=>r(),restart:()=>{r(),s()}}},useTimeout:function(t,e){let n=null;const s=()=>{r(),n=setTimeout(()=>{n=null,t()},e)},r=()=>{null!==n&&(clearTimeout(n),n=null)};return{start:s,clear:r,onMount:()=>s(),onUnmount:()=>r()}},useDebounce:function(t="",e){const n=E(t),s=E(t);let r=null;const i=k(()=>{const t=n.value;null!==r&&clearTimeout(r),r=setTimeout(()=>{s.value=t},e)});return{value:n,debounced:S(()=>s.value),onUnmount:()=>{i(),null!==r&&clearTimeout(r)}}},useThrottle:function(t="",e){const n=E(t),s=E(t);let r=0;const i=k(()=>{const t=n.value,i=Date.now();e>i-r||(r=i,s.value=t)});return{value:n,throttled:S(()=>s.value),onUnmount:()=>{i()}}},useMouse:function(){const t=E(0),e=E(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=E(window.innerWidth),e=E(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={},s={},r=Object.keys(t);for(const i of r){const r=window.matchMedia(t[i]);n[i]=r,e[i]=E(r.matches),s[i]=t=>{e[i].value=t.matches}}return{matches:e,onMount:()=>{for(const t of r){const e=n[t],r=s[t];e.addEventListener?e.addEventListener("change",r):e.addListener(r)}},onUnmount:()=>{for(const t of r){const e=n[t],r=s[t];e.removeEventListener?e.removeEventListener("change",r):e.removeListener(r)}}}},useAsync:function(t,e=!0){const n=E(null),s=E(!1),r=E(null),i=async()=>{s.value=!0,r.value=null;try{n.value=await t()}catch(t){r.value=t}finally{s.value=!1}};return{data:n,loading:s,error:r,execute:i,onMount:()=>{e&&i()}}},nextTick:function(t){Promise.resolve().then(t)},debounce:function(t,e){let n=null;return(...s)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}},throttle:function(t,e){let n=0;return(...s)=>{const r=Date.now();e>r-n||(n=r,t(...s))}},ready:e,applyDirective:function(t,e,n,s){const r=mt.get(e);if(!r)return()=>{};const i={value:n,oldValue:void 0,arg:s};return r.mounted&&r.mounted(t,i),()=>{r.unmounted&&r.unmounted(t)}},applyTransitionStyles:function(){if("undefined"==typeof document)return;if("csp"===U())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:Ln,onBeforeNavigate:function(t){Pn.push(t)},onAfterNavigate:function(t){Nn.push(t)},portalCreate:Ft,portalDestroy:Ut,setCspNonce:Qe,version:"0.3.0"};var es=[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],ns=[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],ss="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",rs={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"},is="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",as={5:is,"5module":is+" export import",6:is+" const class extends export import super"},os=/^in(stanceof)?$/,cs=RegExp("["+ss+"]"),ls=RegExp("["+ss+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function us(t,e){for(var n=65536,s=0;s<e.length;s+=2){if((n+=e[s])>t)return!1;if((n+=e[s+1])>=t)return!0}return!1}function hs(t,e){return 65>t?36===t:91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&us(t,ns):t>=170&&cs.test(String.fromCharCode(t))))}function ps(t,e){return 48>t?36===t:58>t||t>=65&&(91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&(us(t,ns)||us(t,es)):t>=170&&ls.test(String.fromCharCode(t)))))}var fs=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 ds(t,e){return new fs(t,{beforeExpr:!0,binop:e})}var ms={beforeExpr:!0},gs={startsExpr:!0},ys={};function vs(t,e){return void 0===e&&(e={}),e.keyword=t,ys[t]=new fs(t,e)}var xs={num:new fs("num",gs),regexp:new fs("regexp",gs),string:new fs("string",gs),name:new fs("name",gs),privateId:new fs("privateId",gs),eof:new fs("eof"),bracketL:new fs("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new fs("]"),braceL:new fs("{",{beforeExpr:!0,startsExpr:!0}),braceR:new fs("}"),parenL:new fs("(",{beforeExpr:!0,startsExpr:!0}),parenR:new fs(")"),comma:new fs(",",ms),semi:new fs(";",ms),colon:new fs(":",ms),dot:new fs("."),question:new fs("?",ms),questionDot:new fs("?."),arrow:new fs("=>",ms),template:new fs("template"),invalidTemplate:new fs("invalidTemplate"),ellipsis:new fs("...",ms),backQuote:new fs("`",gs),dollarBraceL:new fs("${",{beforeExpr:!0,startsExpr:!0}),eq:new fs("=",{beforeExpr:!0,isAssign:!0}),assign:new fs("_=",{beforeExpr:!0,isAssign:!0}),incDec:new fs("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new fs("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ds("||",1),logicalAND:ds("&&",2),bitwiseOR:ds("|",3),bitwiseXOR:ds("^",4),bitwiseAND:ds("&",5),equality:ds("==/!=/===/!==",6),relational:ds("</>/<=/>=",7),bitShift:ds("<</>>/>>>",8),plusMin:new fs("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ds("%",10),star:ds("*",10),slash:ds("/",10),starstar:new fs("**",{beforeExpr:!0}),coalesce:ds("??",1),_break:vs("break"),_case:vs("case",ms),_catch:vs("catch"),_continue:vs("continue"),_debugger:vs("debugger"),_default:vs("default",ms),_do:vs("do",{isLoop:!0,beforeExpr:!0}),_else:vs("else",ms),_finally:vs("finally"),_for:vs("for",{isLoop:!0}),_function:vs("function",gs),_if:vs("if"),_return:vs("return",ms),_switch:vs("switch"),_throw:vs("throw",ms),_try:vs("try"),_var:vs("var"),_const:vs("const"),_while:vs("while",{isLoop:!0}),_with:vs("with"),_new:vs("new",{beforeExpr:!0,startsExpr:!0}),_this:vs("this",gs),_super:vs("super",gs),_class:vs("class",gs),_extends:vs("extends",ms),_export:vs("export"),_import:vs("import",gs),_null:vs("null",gs),_true:vs("true",gs),_false:vs("false",gs),_in:vs("in",{beforeExpr:!0,binop:7}),_instanceof:vs("instanceof",{beforeExpr:!0,binop:7}),_typeof:vs("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:vs("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:vs("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},bs=/\r\n?|\n|\u2028|\u2029/,_s=RegExp(bs.source,"g");function ws(t){return 10===t||13===t||8232===t||8233===t}function Es(t,e,n){void 0===n&&(n=t.length);for(var s=e;n>s;s++){var r=t.charCodeAt(s);if(ws(r))return n-1>s&&13===r&&10===t.charCodeAt(s+1)?s+2:s+1}return-1}var Ss=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ks=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cs=Object.prototype,As=Cs.hasOwnProperty,Is=Cs.toString,Ts=Object.hasOwn||function(t,e){return As.call(t,e)},Ps=Array.isArray||function(t){return"[object Array]"===Is.call(t)},Ns=Object.create(null);function Ls(t){return Ns[t]||(Ns[t]=RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Ms(t){return t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t)}var Vs=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Os=function(t,e){this.line=t,this.column=e};Os.prototype.offset=function(t){return new Os(this.line,this.column+t)};var Rs=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function Ds(t,e){for(var n=1,s=0;;){var r=Es(t,s,e);if(0>r)return new Os(n,e-s);++n,s=r}}var Bs={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},Fs=!1;function Us(t,e){return 2|(t?4:0)|(e?8:0)}var js=function(t,e,n){this.options=t=function(t){var e={};for(var n in Bs)e[n]=t&&Ts(t,n)?t[n]:Bs[n];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!Fs&&"object"==typeof console&&console.warn&&(Fs=!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),Ps(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}if(Ps(e.onComment)&&(e.onComment=function(t,e){return function(n,s,r,i,a,o){var c={type:n?"Block":"Line",value:s,start:r,end:i};t.locations&&(c.loc=new Rs(this,a,o)),t.ranges&&(c.range=[r,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=Ls(as[6>t.ecmaVersion?"module"===t.sourceType?"5module":5:6]);var s="";!0!==t.allowReserved&&(s=rs[6>t.ecmaVersion?5===t.ecmaVersion?5:3:6],"module"===t.sourceType&&(s+=" await")),this.reservedWords=Ls(s);var r=(s?s+" ":"")+rs.strict;this.reservedWordsStrict=Ls(r),this.reservedWordsStrictBind=Ls(r+" "+rs.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(bs).length)):this.lineStart=0,this.type=xs.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}};js.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},js.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,s=0;s<t.length;s++)n=t[s](n);return n},js.parse=function(t,e){return new this(e,t).parse()},js.parseExpressionAt=function(t,e,n){var s=new this(n,t,e);return s.nextToken(),s.parseExpression()},js.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(js.prototype,Ws);var $s=js.prototype,qs=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$s.strictDirective=function(t){if(5>this.options.ecmaVersion)return!1;for(;;){ks.lastIndex=t,t+=ks.exec(this.input)[0].length;var e=qs.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){ks.lastIndex=t+e[0].length;var n=ks.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||bs.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,ks.lastIndex=t,t+=ks.exec(this.input)[0].length,";"===this.input[t]&&t++}},$s.eat=function(t){return this.type===t&&(this.next(),!0)},$s.isContextual=function(t){return this.type===xs.name&&this.value===t&&!this.containsEsc},$s.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},$s.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")}},$s.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},$s.canInsertSemicolon=function(){return this.type===xs.eof||this.type===xs.braceR||bs.test(this.input.slice(this.lastTokEnd,this.start))},$s.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$s.semicolon=function(){this.eat(xs.semi)||this.insertSemicolon()||this.unexpected()},$s.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},$s.expect=function(t){this.eat(t)||this.unexpected()},$s.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var Hs=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$s.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")}},$s.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,s=t.doubleProto;if(!e)return n>=0||s>=0;0>n||this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),0>s||this.raiseRecoverable(s,"Redefinition of __proto__ property")},$s.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")},$s.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Gs=js.prototype;Gs.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==xs.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var i=r[s];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 zs={kind:"loop"},Ys={kind:"switch"};Gs.isLet=function(t){if(6>this.options.ecmaVersion||!this.isContextual("let"))return!1;ks.lastIndex=this.pos;var e=ks.exec(this.input),n=this.pos+e[0].length,s=this.fullCharCodeAt(n);if(91===s||92===s)return!0;if(t)return!1;if(123===s)return!0;if(hs(s)){var r=n;do{n+=s>65535?2:1}while(ps(s=this.fullCharCodeAt(n)));if(92===s)return!0;var i=this.input.slice(r,n);if(!os.test(i))return!0}return!1},Gs.isAsyncFunction=function(){if(8>this.options.ecmaVersion||!this.isContextual("async"))return!1;ks.lastIndex=this.pos;var t,e=ks.exec(this.input),n=this.pos+e[0].length;return!(bs.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(ps(t=this.fullCharCodeAt(n+8))||92===t))},Gs.isUsingKeyword=function(t,e){if(17>this.options.ecmaVersion||!this.isContextual(t?"await":"using"))return!1;ks.lastIndex=this.pos;var n=ks.exec(this.input),s=this.pos+n[0].length;if(bs.test(this.input.slice(this.pos,s)))return!1;if(t){var r,i=s+5;if("using"!==this.input.slice(s,i)||i===this.input.length||ps(r=this.fullCharCodeAt(i))||92===r)return!1;ks.lastIndex=i;var a=ks.exec(this.input);if(s=i+a[0].length,a&&bs.test(this.input.slice(i,s)))return!1}var o=this.fullCharCodeAt(s);if(!hs(o)&&92!==o)return!1;var c=s;do{s+=o>65535?2:1}while(ps(o=this.fullCharCodeAt(s)));if(92===o)return!0;var l=this.input.slice(c,s);return!(os.test(l)||e&&!t&&"of"===l&&(ks.lastIndex=s,s+=ks.exec(this.input)[0].length,61!==this.input.charCodeAt(s)||61===(o=this.input.charCodeAt(s+1))||62===o))},Gs.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},Gs.isUsing=function(t){return this.isUsingKeyword(!1,t)},Gs.parseStatement=function(t,e,n){var s,r=this.type,i=this.startNode();switch(this.isLet(t)&&(r=xs._var,s="let"),r){case xs._break:case xs._continue:return this.parseBreakContinueStatement(i,r.keyword);case xs._debugger:return this.parseDebuggerStatement(i);case xs._do:return this.parseDoStatement(i);case xs._for:return this.parseForStatement(i);case xs._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case xs._class:return t&&this.unexpected(),this.parseClass(i,!0);case xs._if:return this.parseIfStatement(i);case xs._return:return this.parseReturnStatement(i);case xs._switch:return this.parseSwitchStatement(i);case xs._throw:return this.parseThrowStatement(i);case xs._try:return this.parseTryStatement(i);case xs._const:case xs._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(i,s);case xs._while:return this.parseWhileStatement(i);case xs._with:return this.parseWithStatement(i);case xs.braceL:return this.parseBlock(!0,i);case xs.semi:return this.parseEmptyStatement(i);case xs._export:case xs._import:if(this.options.ecmaVersion>10&&r===xs._import){ks.lastIndex=this.pos;var a=ks.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'")),r===xs._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 r===xs.name&&"Identifier"===h.type&&this.eat(xs.colon)?this.parseLabeledStatement(i,u,h,t):this.parseExpressionStatement(i,h)}},Gs.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(xs.semi)||this.insertSemicolon()?t.label=null:this.type!==xs.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(t.label&&n)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},Gs.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Gs.parseDoStatement=function(t){return this.next(),this.labels.push(zs),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(xs._while),t.test=this.parseParenExpression(),6>this.options.ecmaVersion?this.semicolon():this.eat(xs.semi),this.finishNode(t,"DoWhileStatement")},Gs.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(zs),this.enterScope(0),this.expect(xs.parenL),this.type===xs.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===xs._var||this.type===xs._const||n){var s=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,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 Hs,h=this.start,p=e>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===xs._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===xs._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))},Gs.parseForAfterInit=function(t,e,n){return(this.type===xs._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.type===xs._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))},Gs.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,Js|(n?0:Qs),!1,e)},Gs.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(xs._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},Gs.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(xs.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Gs.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(xs.braceL),this.labels.push(Ys),this.enterScope(1024);for(var n=!1;this.type!==xs.braceR;)if(this.type===xs._case||this.type===xs._default){var s=this.type===xs._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(xs.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")},Gs.parseThrowStatement=function(t){return this.next(),bs.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 Ks=[];Gs.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(xs.parenR),t},Gs.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===xs._catch){var e=this.startNode();this.next(),this.eat(xs.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(xs._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Gs.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Gs.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(zs),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},Gs.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")},Gs.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Gs.parseLabeledStatement=function(t,e,n,s){for(var r=0,i=this.labels;r<i.length;r+=1)i[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===xs._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(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},Gs.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Gs.parseBlock=function(t,e,n){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(xs.braceL),t&&this.enterScope(0);this.type!==xs.braceR;){var s=this.parseStatement(null);e.body.push(s)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},Gs.parseFor=function(t,e){return t.init=e,this.expect(xs.semi),t.test=this.type===xs.semi?null:this.parseExpression(),this.expect(xs.semi),t.update=this.type===xs.parenR?null:this.parseExpression(),this.expect(xs.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},Gs.parseForIn=function(t,e){var n=this.type===xs._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(xs.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")},Gs.parseVar=function(t,e,n,s){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(xs.eq)?r.init=this.parseMaybeAssign(e):s||"const"!==n||this.type===xs._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==n&&"await using"!==n||17>this.options.ecmaVersion||this.type===xs._in||this.isContextual("of")?s||"Identifier"===r.id.type||e&&(this.type===xs._in||this.isContextual("of"))?r.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(r,"VariableDeclarator")),!this.eat(xs.comma))break}return t},Gs.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 Js=1,Qs=2;function Xs(t,e){var n=e.key.name,s=t[n],r="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(r=(e.static?"s":"i")+e.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(t[n]="true",!1):!!s||(t[n]=r,!1)}function Zs(t,e){var n=t.computed,s=t.key;return!n&&("Identifier"===s.type&&s.name===e||"Literal"===s.type&&s.value===e)}Gs.parseFunction=function(t,e,n,s,r){this.initFunction(t),9>this.options.ecmaVersion&&(6>this.options.ecmaVersion||s)||(this.type===xs.star&&e&Qs&&this.unexpected(),t.generator=this.eat(xs.star)),8>this.options.ecmaVersion||(t.async=!!s),e&Js&&(t.id=4&e&&this.type!==xs.name?null:this.parseIdent(),!t.id||e&Qs||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(Us(t.async,t.generator)),e&Js||(t.id=this.type===xs.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Js?"FunctionDeclaration":"FunctionExpression")},Gs.parseFunctionParams=function(t){this.expect(xs.parenL),t.params=this.parseBindingList(xs.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Gs.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),i=!1;for(r.body=[],this.expect(xs.braceL);this.type!==xs.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(r.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&&Xs(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Gs.parseClassElement=function(t){if(this.eat(xs.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),s="",r=!1,i=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(xs.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===xs.star?o=!0:s="static"}if(n.static=o,s||8>e||!this.eatContextual("async")||(!this.isClassElementNameStart()&&this.type!==xs.star||this.canInsertSemicolon()?s="async":i=!0),s||9>e&&i||!this.eat(xs.star)||(r=!0),!s&&!i&&!r){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:s=c)}if(s?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=s,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),13>e||this.type===xs.parenL||"method"!==a||r||i){var l=!n.static&&Zs(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,r,i,u)}else this.parseClassField(n);return n},Gs.isClassElementNameStart=function(){return this.type===xs.name||this.type===xs.privateId||this.type===xs.num||this.type===xs.string||this.type===xs.bracketL||this.type.keyword},Gs.parseClassElementName=function(t){this.type===xs.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)},Gs.parseClassMethod=function(t,e,n,s){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):t.static&&Zs(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var i=t.value=this.parseMethod(e,n,s);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")},Gs.parseClassField=function(t){return Zs(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Zs(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(xs.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},Gs.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==xs.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},Gs.parseClassId=function(t,e){this.type===xs.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},Gs.parseClassSuper=function(t){t.superClass=this.eat(xs._extends)?this.parseExprSubscripts(null,!1):null},Gs.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},Gs.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],i=0;i<n.length;++i){var a=n[i];Ts(e,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},Gs.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!==xs.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},Gs.parseExport=function(t,e){if(this.next(),this.eat(xs.star))return this.parseExportAllDeclaration(t,e);if(this.eat(xs._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!==xs.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause());else{for(var n=0,s=t.specifiers;n<s.length;n+=1){var r=s[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.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")},Gs.parseExportDeclaration=function(t){return this.parseStatement(null)},Gs.parseExportDefaultDeclaration=function(){var t;if(this.type===xs._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Js,!1,t)}if(this.type===xs._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},Gs.checkExport=function(t,e,n){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),Ts(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},Gs.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e,e.start);else if("ObjectPattern"===n)for(var s=0,r=e.properties;s<r.length;s+=1){var i=r[s];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)},Gs.checkVariableExport=function(t,e){if(t)for(var n=0,s=e;n<s.length;n+=1){var r=s[n];this.checkPatternExport(t,r.id)}},Gs.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Gs.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")},Gs.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(xs.braceL);!this.eat(xs.braceR);){if(n)n=!1;else if(this.expect(xs.comma),this.afterTrailingComma(xs.braceR))break;e.push(this.parseExportSpecifier(t))}return e},Gs.parseImport=function(t){return this.next(),this.type===xs.string?(t.specifiers=Ks,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===xs.string?this.parseExprAtom():this.unexpected()),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Gs.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")},Gs.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},Gs.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")},Gs.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===xs.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(xs.comma)))return t;if(this.type===xs.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(xs.braceL);!this.eat(xs.braceR);){if(e)e=!1;else if(this.expect(xs.comma),this.afterTrailingComma(xs.braceR))break;t.push(this.parseImportSpecifier())}return t},Gs.parseWithClause=function(){var t=[];if(!this.eat(xs._with))return t;this.expect(xs.braceL);for(var e={},n=!0;!this.eat(xs.braceR);){if(n)n=!1;else if(this.expect(xs.comma),this.afterTrailingComma(xs.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Ts(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},Gs.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===xs.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(xs.colon),this.type!==xs.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},Gs.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===xs.string){var t=this.parseLiteral(this.value);return Vs.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},Gs.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)},Gs.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 tr=js.prototype;tr.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 s=0,r=t.properties;s<r.length;s+=1){var i=r[s];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},tr.toAssignableList=function(t,e){for(var n=t.length,s=0;n>s;s++){var r=t[s];r&&this.toAssignable(r,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},tr.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},tr.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==xs.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},tr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case xs.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(xs.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case xs.braceL:return this.parseObj(!0)}return this.parseIdent()},tr.parseBindingList=function(t,e,n,s){for(var r=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(xs.comma),e&&this.type===xs.comma)r.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===xs.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===xs.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},tr.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},tr.parseBindingListItem=function(t){return t},tr.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),6>this.options.ecmaVersion||!this.eat(xs.eq))return n;var s=this.startNodeAt(t,e);return s.left=n,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},tr.checkLValSimple=function(t,e,n){void 0===e&&(e=0);var s=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(Ts(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":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},tr.checkLValPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var i=r[s];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)}},tr.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 er=function(t,e,n,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=s,this.generator=!!r},nr={b_stat:new er("{",!1),b_expr:new er("{",!0),b_tmpl:new er("${",!1),p_stat:new er("(",!1),p_expr:new er("(",!0),q_tmpl:new er("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new er("function",!1),f_expr:new er("function",!0),f_expr_gen:new er("function",!0,!1,null,!0),f_gen:new er("function",!1,!1,null,!0)},sr=js.prototype;sr.initialContext=function(){return[nr.b_stat]},sr.curContext=function(){return this.context[this.context.length-1]},sr.braceIsBlock=function(t){var e=this.curContext();return e===nr.f_expr||e===nr.f_stat||(t!==xs.colon||e!==nr.b_stat&&e!==nr.b_expr?t===xs._return||t===xs.name&&this.exprAllowed?bs.test(this.input.slice(this.lastTokEnd,this.start)):t===xs._else||t===xs.semi||t===xs.eof||t===xs.parenR||t===xs.arrow||(t===xs.braceL?e===nr.b_stat:t!==xs._var&&t!==xs._const&&t!==xs.name&&!this.exprAllowed):!e.isExpr)},sr.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},sr.updateContext=function(t){var e,n=this.type;n.keyword&&t===xs.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},sr.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},xs.parenR.updateContext=xs.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===nr.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},xs.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?nr.b_stat:nr.b_expr),this.exprAllowed=!0},xs.dollarBraceL.updateContext=function(){this.context.push(nr.b_tmpl),this.exprAllowed=!0},xs.parenL.updateContext=function(t){var e=t===xs._if||t===xs._for||t===xs._with||t===xs._while;this.context.push(e?nr.p_stat:nr.p_expr),this.exprAllowed=!0},xs.incDec.updateContext=function(){},xs._function.updateContext=xs._class.updateContext=function(t){!t.beforeExpr||t===xs._else||t===xs.semi&&this.curContext()!==nr.p_stat||t===xs._return&&bs.test(this.input.slice(this.lastTokEnd,this.start))||(t===xs.colon||t===xs.braceL)&&this.curContext()===nr.b_stat?this.context.push(nr.f_stat):this.context.push(nr.f_expr),this.exprAllowed=!1},xs.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},xs.backQuote.updateContext=function(){this.curContext()===nr.q_tmpl?this.context.pop():this.context.push(nr.q_tmpl),this.exprAllowed=!1},xs.star.updateContext=function(t){if(t===xs._function){var e=this.context.length-1;this.context[e]===nr.f_expr?this.context[e]=nr.f_expr_gen:this.context[e]=nr.f_gen}this.exprAllowed=!0},xs.name.updateContext=function(t){var e=!1;6>this.options.ecmaVersion||t===xs.dot||("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var rr=js.prototype;function ir(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&ir(t.expression)}function ar(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&ar(t.expression)||"ParenthesizedExpression"===t.type&&ar(t.expression)}rr.checkPropClash=function(t,e,n){if((9>this.options.ecmaVersion||"SpreadElement"!==t.type)&&(6>this.options.ecmaVersion||!(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=r.value+"";break;default:return}var i=t.kind;if(6>this.options.ecmaVersion){var a=e[s="$"+s];a?("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[s]={init:!1,get:!1,set:!1},a[i]=!0}else"__proto__"===s&&"init"===i&&(e.proto&&(n?0>n.doubleProto&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0)}},rr.parseExpression=function(t,e){var n=this;return this.catchStackOverflow(function(){var s=n.start,r=n.startLoc,i=n.parseMaybeAssign(t,e);if(n.type===xs.comma){var a=n.startNodeAt(s,r);for(a.expressions=[i];n.eat(xs.comma);)a.expressions.push(n.parseMaybeAssign(t,e));return n.finishNode(a,"SequenceExpression")}return i})},rr.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,i=-1,a=-1;e?(r=e.parenthesizedAssign,i=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Hs,s=!0);var o=this.start,c=this.startLoc;this.type!==xs.parenL&&this.type!==xs.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===xs.eq&&(l=this.toAssignable(l,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign<l.start||(e.shorthandAssign=-1),this.type===xs.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 s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),i>-1&&(e.trailingComma=i),l},rr.parseMaybeConditional=function(t,e){var n=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(("ArrowFunctionExpression"!==r.type||r.start!==n)&&this.eat(xs.question)){var i=this.startNodeAt(n,s);return i.test=r,i.consequent=this.parseMaybeAssign(),this.expect(xs.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return r},rr.parseExprOps=function(t,e){var n=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,s,-1,t)},rr.parseExprOp=function(t,e,n,s,r){var i=this.type.binop;if(null!=i&&(!r||this.type!==xs._in)&&i>s){var a=this.type===xs.logicalOR||this.type===xs.logicalAND,o=this.type===xs.coalesce;o&&(i=xs.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),l,u,i,r),p=this.buildBinary(e,n,t,h,c,a||o);return(a&&this.type===xs.coalesce||o&&(this.type===xs.logicalOR||this.type===xs.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,n,s,r)}return t},rr.buildBinary=function(t,e,n,s,r,i){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=n,a.operator=r,a.right=s,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},rr.parseMaybeUnary=function(t,e,n,s){var r,i=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===xs.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,s),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&ir(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&ar(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==xs.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(l,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==xs._in&&this.unexpected();return n||"ArrowFunctionExpression"===r.type&&r.start===i||!this.eat(xs.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(i,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},rr.parseExprSubscripts=function(t,e){var n=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,n,s,!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},rr.parseSubscripts=function(t,e,n,s,r){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,s,i,a,r);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}},rr.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(xs.arrow)},rr.parseSubscriptAsyncArrow=function(t,e,n,s){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,s)},rr.parseSubscript=function(t,e,n,s,r,i,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(xs.questionDot);s&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(xs.bracketL);if(l||c&&this.type!==xs.parenL&&this.type!==xs.backQuote||this.eat(xs.dot)){var u=this.startNodeAt(e,n);u.object=t,l?(u.property=this.parseExpression(),this.expect(xs.bracketR)):this.type===xs.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(!s&&this.eat(xs.parenL)){var h=new Hs,p=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(xs.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!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===xs.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},rr.parseExprAtom=function(t,e,n){this.type===xs.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case xs._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==xs.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==xs.dot&&this.type!==xs.bracketL&&this.type!==xs.parenL&&this.unexpected(),this.finishNode(s,"Super");case xs._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case xs.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(xs._function))return this.overrideContext(nr.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(xs.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[c],!1,e);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===xs.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(xs.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[c],!0,e)}return c;case xs.regexp:var l=this.value;return(s=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},s;case xs.num:case xs.string:return this.parseLiteral(this.value);case xs._null:case xs._true:case xs._false:return(s=this.startNode()).value=this.type===xs._null?null:this.type===xs._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case xs.parenL:var u=this.start,h=this.parseParenAndDistinguishExpression(r,e);return t&&(0>t.parenthesizedAssign&&!this.isSimpleAssignTarget(h)&&(t.parenthesizedAssign=u),0>t.parenthesizedBind&&(t.parenthesizedBind=u)),h;case xs.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(xs.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case xs.braceL:return this.overrideContext(nr.b_expr),this.parseObj(!1,t);case xs._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case xs._class:return this.parseClass(this.startNode(),!1);case xs._new:return this.parseNew();case xs.backQuote:return this.parseTemplate();case xs._import:return 11>this.options.ecmaVersion?this.unexpected():this.parseExprImport(n);default:return this.parseExprAtomDefault()}},rr.parseExprAtomDefault=function(){this.unexpected()},rr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===xs.parenL&&!t)return this.parseDynamicImport(e);if(this.type===xs.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()},rr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),16>this.options.ecmaVersion){if(!this.eat(xs.parenR)){var e=this.start;this.eat(xs.comma)&&this.eat(xs.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}}else this.eat(xs.parenR)?t.options=null:(this.expect(xs.comma),this.afterTrailingComma(xs.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(xs.parenR)||(this.expect(xs.comma),this.afterTrailingComma(xs.parenR)||this.unexpected())));return this.finishNode(t,"ImportExpression")},rr.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")},rr.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")},rr.parseParenExpression=function(){this.expect(xs.parenL);var t=this.parseExpression();return this.expect(xs.parenR),t},rr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},rr.parseParenAndDistinguishExpression=function(t,e){var n,s=this.start,r=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 Hs,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==xs.parenR;){if(u?u=!1:this.expect(xs.comma),i&&this.afterTrailingComma(xs.parenR,!0)){h=!0;break}if(this.type===xs.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===xs.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(xs.parenR),t&&this.shouldParseArrow(l)&&this.eat(xs.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(s,r,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(s,r);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},rr.parseParenItem=function(t){return t},rr.parseParenArrowList=function(t,e,n,s){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,s)};var or=[];rr.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===xs.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 s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),"Super"===t.callee.type&&this.raiseRecoverable(s,"Invalid use of 'super'"),this.eat(xs.parenL)?t.arguments=this.parseExprList(xs.parenR,this.options.ecmaVersion>=8,!1):t.arguments=or,this.finishNode(t,"NewExpression")},rr.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===xs.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===xs.backQuote,this.finishNode(n,"TemplateElement")},rr.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 s=this.parseTemplateElement({isTagged:e});for(n.quasis=[s];!s.tail;)this.type===xs.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(xs.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(xs.braceR),n.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},rr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===xs.name||this.type===xs.num||this.type===xs.string||this.type===xs.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===xs.star)&&!bs.test(this.input.slice(this.lastTokEnd,this.start))},rr.parseObj=function(t,e){var n=this.startNode(),s=!0,r={};for(n.properties=[],this.next();!this.eat(xs.braceR);){if(s)s=!1;else if(this.expect(xs.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(xs.braceR))break;var i=this.parseProperty(t,e);t||this.checkPropClash(i,r,e),n.properties.push(i)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},rr.parseProperty=function(t,e){var n,s,r,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(xs.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===xs.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===xs.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)&&(r=this.start,i=this.startLoc),t||(n=this.eat(xs.star)));var o=this.containsEsc;return this.parsePropertyName(a),t||o||8>this.options.ecmaVersion||n||!this.isAsyncProp(a)?s=!1:(s=!0,n=this.options.ecmaVersion>=9&&this.eat(xs.star),this.parsePropertyName(a)),this.parsePropertyValue(a,t,n,s,r,i,e,o),this.finishNode(a,"Property")},rr.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 s=t.value.start;"get"===t.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},rr.parsePropertyValue=function(t,e,n,s,r,i,a,o){(n||s)&&this.type===xs.colon&&this.unexpected(),this.eat(xs.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):6>this.options.ecmaVersion||this.type!==xs.parenL?e||o||5>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===xs.comma||this.type===xs.braceR||this.type===xs.eq?6>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type?this.unexpected():((n||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,i,this.copyNode(t.key)):this.type===xs.eq&&a?(0>a.shorthandAssign&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,i,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):((n||s)&&this.unexpected(),this.parseGetterSetter(t)):(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,s),t.kind="init")},rr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(xs.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(xs.bracketR),t.key;t.computed=!1}return t.key=this.type===xs.num||this.type===xs.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},rr.initFunction=function(t){t.id=null,6>this.options.ecmaVersion||(t.generator=t.expression=!1),8>this.options.ecmaVersion||(t.async=!1)},rr.parseMethod=function(t,e,n){var s=this.startNode(),r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),6>this.options.ecmaVersion||(s.generator=t),8>this.options.ecmaVersion||(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Us(e,s.generator)|(n?128:0)),this.expect(xs.parenL),s.params=this.parseBindingList(xs.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},rr.parseArrowExpression=function(t,e,n,s){var r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|Us(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,s),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},rr.parseFunctionBody=function(t,e,n,s){var r=e&&this.type!==xs.braceL,i=this.strict,a=!1;if(r)t.body=this.parseMaybeAssign(s),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()},rr.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},rr.checkParams=function(t,e){for(var n=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var i=r[s];this.checkLValInnerPattern(i,1,e?null:n)}},rr.parseExprList=function(t,e,n,s){for(var r=[],i=!0;!this.eat(t);){if(i)i=!1;else if(this.expect(xs.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===xs.comma?a=null:this.type===xs.ellipsis?(a=this.parseSpread(s),s&&this.type===xs.comma&&0>s.trailingComma&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},rr.checkUnreserved=function(t){var e=t.start,n=t.end,s=t.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==s||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),6>this.options.ecmaVersion&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},rr.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},rr.parseIdentNode=function(){var t=this.startNode();return this.type===xs.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=xs.name):this.unexpected(),t},rr.parsePrivateIdent=function(){var t=this.startNode();return this.type===xs.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},rr.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===xs.semi||this.canInsertSemicolon()||this.type!==xs.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(xs.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},rr.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 cr=js.prototype;cr.raise=function(t,e){var n=Ds(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=n,s.raisedAt=this.pos,s},cr.raiseRecoverable=cr.raise,cr.curPosition=function(){if(this.options.locations)return new Os(this.curLine,this.pos-this.lineStart)};var lr=js.prototype,ur=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};lr.enterScope=function(t){this.scopeStack.push(new ur(t))},lr.exitScope=function(){this.scopeStack.pop()},lr.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},lr.declareName=function(t,e,n){var s=!1;if(2===e){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var i=this.currentScope();s=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){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}s&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},lr.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},lr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},lr.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},lr.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 hr=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Rs(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},pr=js.prototype;function fr(t,e,n,s){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=n),t}pr.startNode=function(){return new hr(this,this.start,this.startLoc)},pr.startNodeAt=function(t,e){return new hr(this,t,e)},pr.finishNode=function(t,e){return fr.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},pr.finishNodeAt=function(t,e,n,s){return fr.call(this,t,e,n,s)},pr.copyNode=function(t){var e=new hr(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var dr="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",mr=dr+" Extended_Pictographic",gr=mr+" EBase EComp EMod EPres ExtPict",yr={9:dr,10:mr,11:mr,12:gr,13:gr,14:gr},vr={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"},xr="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",br="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",_r=br+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",wr=_r+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Er=wr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Sr=Er+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",kr={9:br,10:_r,11:wr,12:Er,13:Sr,14:Sr+" 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"},Cr={};function Ar(t){var e=Cr[t]={binary:Ls(yr[t]+" "+xr),binaryOfStrings:Ls(vr[t]),nonBinary:{General_Category:Ls(xr),Script:Ls(kr[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 Ir=0,Tr=[9,10,11,12,13,14];Ir<Tr.length;Ir+=1)Ar(Tr[Ir]);var Pr=js.prototype,Nr=function(t,e){this.parent=t,this.base=e||this};Nr.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},Nr.prototype.sibling=function(){return new Nr(this.parent,this.base)};var Lr=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=Cr[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 Mr(t){return 105===t||109===t||115===t}function Vr(t){return 36===t||t>=40&&43>=t||46===t||63===t||t>=91&&94>=t||t>=123&&125>=t}function Or(t){return t>=65&&90>=t||t>=97&&122>=t}function Rr(t){return Or(t)||95===t}function Dr(t){return Rr(t)||Br(t)}function Br(t){return t>=48&&57>=t}function Fr(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function Ur(t){return 65>t||t>70?97>t||t>102?t-48:t-97+10:t-65+10}function jr(t){return t>=48&&55>=t}Lr.prototype.reset=function(t,e,n){var s=-1!==n.indexOf("v"),r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Lr.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Lr.prototype.at=function(t,e){void 0===e&&(e=!1);var n=this.source,s=n.length;if(t>=s)return-1;var r=n.charCodeAt(t);if(!e&&!this.switchU||55295>=r||r>=57344||t+1>=s)return r;var i=n.charCodeAt(t+1);return 56320>i||i>57343?r:(r<<10)+i-56613888},Lr.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var n=this.source,s=n.length;if(t>=s)return s;var r,i=n.charCodeAt(t);return(e||this.switchU)&&i>55295&&57344>i&&s>t+1&&(r=n.charCodeAt(t+1))>=56320&&57343>=r?t+2:t+1},Lr.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},Lr.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Lr.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Lr.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},Lr.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var n=this.pos,s=0,r=t;s<r.length;s+=1){var i=r[s],a=this.at(n,e);if(-1===a||a!==i)return!1;n=this.nextIndex(n,e)}return this.pos=n,!0},Pr.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,s=!1,r=!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&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},Pr.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))},Pr.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 s=n[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},Pr.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new Nr(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")},Pr.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},Pr.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)},Pr.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},Pr.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Pr.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Pr.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&s>r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},Pr.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)},Pr.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},Pr.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),s=t.eat(45);if(n||s){for(var r=0;r<n.length;r++){var i=n.charAt(r);n.indexOf(i,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){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},Pr.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},Pr.regexp_eatModifiers=function(t){for(var e="",n=0;-1!==(n=t.current())&&Mr(n);)e+=Ms(n),t.advance();return e},Pr.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)},Pr.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Pr.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!Vr(e)&&(t.lastIntValue=e,t.advance(),!0)},Pr.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!Vr(n);)t.advance();return t.pos!==e},Pr.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)},Pr.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 s=0,r=n;s<r.length;s+=1)r[s].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}},Pr.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},Pr.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Ms(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Ms(t.lastIntValue);return!0}return!1},Pr.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),function(t){return hs(t,!0)||36===t||95===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Pr.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),function(t){return ps(t,!0)||36===t||95===t||8204===t||8205===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Pr.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)},Pr.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},Pr.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},Pr.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)},Pr.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Pr.regexp_eatZero=function(t){return 48===t.current()&&!Br(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Pr.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)},Pr.regexp_eatControlLetter=function(t){var e=t.current();return!!Or(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Pr.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var n,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(r&&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(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(n=t.lastIntValue)>=0&&1114111>=n)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},Pr.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))},Pr.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},Pr.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 s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===s&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},Pr.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 s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},Pr.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){Ts(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},Pr.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")},Pr.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Rr(e=t.current());)t.lastStringValue+=Ms(e),t.advance();return""!==t.lastStringValue},Pr.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Dr(e=t.current());)t.lastStringValue+=Ms(e),t.advance();return""!==t.lastStringValue},Pr.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Pr.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},Pr.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},Pr.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")}}},Pr.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||jr(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},Pr.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)},Pr.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 s=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(s!==t.pos)return n;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==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)}},Pr.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 s=t.lastIntValue;return-1!==n&&-1!==s&&n>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},Pr.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},Pr.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return n&&2===s&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},Pr.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},Pr.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},Pr.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},Pr.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))},Pr.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)},Pr.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Br(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},Pr.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},Pr.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;Br(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},Pr.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;Fr(n=t.current());)t.lastIntValue=16*t.lastIntValue+Ur(n),t.advance();return t.pos!==e},Pr.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},Pr.regexp_eatOctalDigit=function(t){var e=t.current();return jr(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Pr.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var s=0;e>s;++s){var r=t.current();if(!Fr(r))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+Ur(r),t.advance()}return!0};var Wr=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Rs(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},$r=js.prototype;function qr(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}$r.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 Wr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},$r.getToken=function(){return this.next(),new Wr(this)},"undefined"!=typeof Symbol&&($r[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===xs.eof,value:e}}}}),$r.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(xs.eof)},$r.readToken=function(t){return hs(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},$r.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},$r.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},$r.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 s=void 0,r=e;(s=Es(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())},$r.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ws(s);)s=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())},$r.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}}},$r.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)},$r.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(xs.dot)):(this.pos+=3,this.finishToken(xs.ellipsis))},$r.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(xs.assign,2):this.finishOp(xs.slash,1)},$r.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,s=42===t?xs.star:xs.modulo;return 7>this.options.ecmaVersion||42!==t||42!==e||(++n,s=xs.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(xs.assign,n+1):this.finishOp(s,n)},$r.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?xs.logicalOR:xs.logicalAND,2):this.finishOp(xs.assign,3):61===e?this.finishOp(xs.assign,2):this.finishOp(124===t?xs.bitwiseOR:xs.bitwiseAND,1)},$r.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(xs.assign,2):this.finishOp(xs.bitwiseXOR,1)},$r.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&&!bs.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(xs.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(xs.assign,2):this.finishOp(xs.plusMin,1)},$r.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(xs.assign,n+1):this.finishOp(xs.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(xs.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},$r.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(xs.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61!==t||62!==e||6>this.options.ecmaVersion?this.finishOp(61===t?xs.eq:xs.prefix,1):(this.pos+=2,this.finishToken(xs.arrow))},$r.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(xs.questionDot,2)}if(63===e)return 12>t||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(xs.coalesce,2):this.finishOp(xs.assign,3)}return this.finishOp(xs.question,1)},$r.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,hs(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(xs.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ms(t)+"'")},$r.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(xs.parenL);case 41:return++this.pos,this.finishToken(xs.parenR);case 59:return++this.pos,this.finishToken(xs.semi);case 44:return++this.pos,this.finishToken(xs.comma);case 91:return++this.pos,this.finishToken(xs.bracketL);case 93:return++this.pos,this.finishToken(xs.bracketR);case 123:return++this.pos,this.finishToken(xs.braceL);case 125:return++this.pos,this.finishToken(xs.braceR);case 58:return++this.pos,this.finishToken(xs.colon);case 96:if(6>this.options.ecmaVersion)break;return++this.pos,this.finishToken(xs.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(xs.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ms(t)+"'")},$r.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},$r.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos<this.input.length||this.raise(n,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(bs.test(s)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=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 Lr(this));o.reset(n,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(r,a)}catch(t){}return this.finishToken(xs.regexp,{pattern:r,flags:a,value:c})},$r.readInt=function(t,e,n){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=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(s&&95===u)r&&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 s&&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},$r.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)?hs(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"):(n=qr(this.input.slice(e,this.pos)),++this.pos),this.finishToken(xs.num,n)},$r.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 s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=qr(this.input.slice(e,this.pos));return++this.pos,hs(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(xs.num,r)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),hs(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(xs.num,a)},$r.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},$r.readString=function(t){for(var e="",n=++this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):8232===s||8233===s?(10>this.options.ecmaVersion&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ws(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(xs.string,e)};var Hr={};function Gr(t,e){return js.parse(t,e)}$r.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Hr)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},$r.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Hr;this.raise(t,e)},$r.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!==xs.template&&this.type!==xs.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(xs.template,t)):36===n?(this.pos+=2,this.finishToken(xs.dollarBraceL)):(++this.pos,this.finishToken(xs.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ws(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}},$r.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(xs.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")},$r.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 Ms(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 s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return ws(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},$r.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},$r.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(ps(r,s))this.pos+=r>65535?2:1;else{if(92!==r)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?hs:ps)(a,s)||this.invalidStringToken(i,"Invalid Unicode escape"),t+=Ms(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},$r.readWord=function(){var t=this.readWord1(),e=xs.name;return this.keywords.test(t)&&(e=ys[t]),this.finishToken(e,t)},js.acorn={Parser:js,version:"8.18.0",defaultOptions:Bs,Position:Os,SourceLocation:Rs,getLineInfo:Ds,Node:hr,TokenType:fs,tokTypes:xs,keywordTypes:ys,TokContext:er,tokContexts:nr,isIdentifierChar:ps,isIdentifierStart:hs,Token:Wr,isNewLine:ws,lineBreak:bs,lineBreakG:_s,nonASCIIwhitespace:Ss};class zr{constructor(t){this.value=t}}const Yr=new Map,Kr=new Map,Jr=new Set(["constructor","__proto__","prototype"]),Qr=Symbol("GyosJS CSP optional chain");function Xr(t,e,n){const s="number"==typeof n?.start?" at position "+n.start:"";return Error(`[GyosJS CSP] ${t}${s}: ${e}`)}function Zr(t){const e=Yr.get(t);if(e)return e;try{const e=Gr(`(${t})`,{ecmaVersion:"latest"}),n=e.body[0]?.expression;if(!n)throw Xr("Empty expression",t);return Yr.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 ti(t,e=!1){const n=`${e?"return":"event"}:${t}`,s=Kr.get(n);if(s)return s;try{const s=Gr(t,{ecmaVersion:"latest",allowReturnOutsideFunction:e});return Kr.set(n,s),s}catch(e){const n="number"==typeof e?.pos?" at position "+e.pos:"";throw Error(`[GyosJS CSP] Invalid expression body${n}: ${t}`)}}function ei(t,e,n){if(("string"==typeof t||"number"==typeof t)&&Jr.has(t+""))throw Xr(`Access to property "${t+""}" is forbidden`,e,n);if("string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t)throw Xr("Invalid property key",e,n);return t}function ni(t,e,n,s){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 Xr(`Undefined identifier "${t}"`,n,s)}}function si(t,e,n){const s=ii(t.object,e,n);if(s===Qr)return[Qr,""];if(null==s){if(t.optional)return[Qr,""];throw Xr("Cannot read a property of null or undefined",n,t)}return[s,ei(t.computed?ii(t.property,e,n):t.property.name,n,t.property)]}function ri(t,e,n){if("Identifier"===t.type)return{get:()=>ni(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[s,r]=si(t,e,n);if(null==s)throw Xr("Invalid assignment target",n,t);return{get:()=>s[r],set:t=>(s[r]=t,t)}}throw Xr("Invalid assignment target",n,t)}function ii(t,e,n){switch(t.type){case"Literal":if(t.regex||"bigint"==typeof t.value)throw Xr("Unsupported literal",n,t);return t.value;case"Identifier":return ni(t.name,e,n,t);case"ArrayExpression":return t.elements.map(t=>{if(t){if("SpreadElement"===t.type)throw Xr("Spread elements are not supported",n,t);return ii(t,e,n)}});case"ObjectExpression":{const s={};for(const r of t.properties){if("Property"!==r.type||"init"!==r.kind||r.method)throw Xr("Object methods, getters, setters, and spread are not supported",n,r);s[ei(r.computed?ii(r.key,e,n):r.key.name??r.key.value,n,r.key)]=r.shorthand?ni(r.key.name,e,n,r.key):ii(r.value,e,n)}return s}case"MemberExpression":{const[s,r]=si(t,e,n);return s===Qr?Qr:s[r]}case"ChainExpression":{const s=ii(t.expression,e,n);return s===Qr?void 0:s}case"CallExpression":return function(t,e,n){const s=t.arguments.map(t=>{if("SpreadElement"===t.type)throw Xr("Spread arguments are not supported",n,t);return ii(t,e,n)});if("MemberExpression"===t.callee.type){const[r,i]=si(t.callee,e,n);if(r===Qr)return Qr;const a=r[i];if(null==a&&t.optional)return Qr;if("function"!=typeof a)throw Xr("Called value is not a function",n,t.callee);return a.apply(r,s)}const r=ii(t.callee,e,n);if(r===Qr)return Qr;if(null==r&&t.optional)return Qr;if("function"!=typeof r)throw Xr("Called value is not a function",n,t.callee);return r.apply(e.scope,s)}(t,e,n);case"UnaryExpression":{if("delete"===t.operator)throw Xr("The delete operator is not supported",n,t);const s=ii(t.argument,e,n);switch(t.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"typeof":return typeof s;case"void":return;default:throw Xr(`Unsupported unary operator "${t.operator}"`,n,t)}}case"BinaryExpression":{const s=ii(t.left,e,n),r=ii(t.right,e,n);switch(t.operator){case"+":return s+r;case"-":return s-r;case"*":return s*r;case"/":return s/r;case"%":return s%r;case"**":return s**r;case"==":return s==r;case"!=":return s!=r;case"===":return s===r;case"!==":return s!==r;case"<":return r>s;case"<=":return r>=s;case">":return s>r;case">=":return s>=r;case"in":return s in r;case"instanceof":return s instanceof r;default:throw Xr(`Unsupported binary operator "${t.operator}"`,n,t)}}case"LogicalExpression":{const s=ii(t.left,e,n);if("&&"===t.operator)return s&&ii(t.right,e,n);if("||"===t.operator)return s||ii(t.right,e,n);if("??"===t.operator)return s??ii(t.right,e,n);throw Xr(`Unsupported logical operator "${t.operator}"`,n,t)}case"ConditionalExpression":return ii(t.test,e,n)?ii(t.consequent,e,n):ii(t.alternate,e,n);case"AssignmentExpression":{const s=ri(t.left,e,n),r="="===t.operator?void 0:s.get();if("&&="===t.operator&&!r)return r;if("||="===t.operator&&r)return r;if("??="===t.operator&&null!=r)return r;const i=ii(t.right,e,n);return s.set(function(t,e,n,s,r){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 Xr(`Unsupported assignment operator "${t}"`,s,r)}}(t.operator,r,i,n,t))}case"UpdateExpression":{const s=ri(t.argument,e,n),r=s.get(),i="++"===t.operator?r+1:r-1;return s.set(i),t.prefix?i:r}case"SequenceExpression":{let s;for(const r of t.expressions)s=ii(r,e,n);return s}default:throw Xr(`Unsupported syntax "${t.type}"`,n,t)}}function ai(t,e,n,s){let r;for(const i of t.body)if("EmptyStatement"!==i.type){if("ExpressionStatement"!==i.type){if(s&&"ReturnStatement"===i.type)throw new zr(i.argument?ii(i.argument,e,n):void 0);throw Xr(`Unsupported statement "${i.type}"`,n,i)}r=ii(i.expression,e,n)}return r}var oi,ci,li;B={mode:"csp",evaluate(t,e){try{const n=e?.[t];return"function"==typeof n?n.call(e):ii(Zr(t),{scope:e,locals:{}},t)}catch(t){return}},execute(t,e,n){const s=e?.[t];return"function"==typeof s?s.call(e,n):ai(ti(t),{scope:e,locals:{$event:n}},t,!1)},parseScope(t){try{const e=ii(Zr(t),{scope:{},locals:{}},t);if(!e||"object"!=typeof e||Array.isArray(e))throw Xr("Inline g-scope must evaluate to an object",t);return e}catch(t){return}},createMethod(t,e){let n;try{n=ti(e,!0)}catch(t){return()=>{}}return function(...s){const r={};t.forEach((t,e)=>{r[t]=s[e]});try{return ai(n,{scope:this,locals:r},e,!0)}catch(t){return t instanceof zr?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&&Qe(n)}(),window.Gyos=ts,(oi=window).GYOS_DEBUG??(oi.GYOS_DEBUG=!1),(ci=window).GYOS_DEBUG_VERBOSE??(ci.GYOS_DEBUG_VERBOSE=!1),(li=window).GYOS_DEBUG_WARN_SUBSCRIBERS??(li.GYOS_DEBUG_WARN_SUBSCRIBERS=!1),e(()=>{Ln(),Be()})),t.default=ts,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){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(t=>n(t));const e={};for(const s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]));return e}function s(t,e){if(t===e)return!0;if("object"!=typeof t||"object"!=typeof e||null==t||null==e)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const r of n)if(!s(t[r],e[r]))return!1;return!0}function r(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}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 s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>e(t)?NodeFilter.FILTER_ACCEPT:n}),r=[];for(;s.nextNode();)r.push(s.currentNode);return r}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;const m=new Set;let g=0;const y=new Set;let v=!1;function x(){if(0===y.size||v)return;v=!0;const t=Array.from(y);y.clear(),t.forEach(t=>{if(!m.has(t))try{t()}catch(t){}}),v=!1}function b(t){y.add(t),v||0!==g||queueMicrotask(x)}let _=new Set,w=!1;function E(t,e){const n="string"==typeof e?e:e?.debugLabel,s="object"==typeof e&&e?.equals?e.equals:Object.is,r=++d;let i=t;const a=new Set;let o=!1;const u=()=>(f&&(a.has(f)||(a.add(f),f.__dependencies&&f.__dependencies.add(a),l(),!o&&"undefined"!=typeof window&&window.GYOS_DEBUG_WARN_SUBSCRIBERS&&c()&&a.size>=200&&(o=!0))),i),h=t=>{s(i,t)||(i=t,l(),p())},p=()=>{l(),w?a.forEach(t=>_.add(t)):a.forEach(t=>b(t))},m=function(t){return 0===arguments.length?u():(h(t),t)};return Object.defineProperties(m,{value:{get:u,set:h,enumerable:!0,configurable:!0},peek:{get:()=>i,enumerable:!0,configurable:!0},update:{value:function(t){h(t(i))},enumerable:!0,configurable:!0},subscribe:{value:function(t){return a.add(t),()=>a.delete(t)},enumerable:!0,configurable:!0},__gyos_signal__:{value:!0,enumerable:!0,configurable:!0},__gyos_debug_id__:{value:r,enumerable:!1},__gyos_debug_label__:{value:n,enumerable:!1},__gyos_equals__:{value:s,enumerable:!1}}),m}function S(t){let e,n=!0,s=!0;const r=new Set;let i;const a=()=>{(n||s)&&(i&&i(),i=k(()=>{try{const i=t();(s||e!==i)&&(e=i,s=!1,n=!1,w?r.forEach(t=>_.add(t)):r.forEach(t=>b(t)))}catch(t){throw t}}),n=!1)},o=()=>((n||s)&&a(),f&&!r.has(f)&&(r.add(f),f.__dependencies&&f.__dependencies.add(r)),e),c=function(){return o()};return Object.defineProperties(c,{value:{get:o,enumerable:!0,configurable:!0},peek:{get:()=>((n||s)&&a(),e),enumerable:!0,configurable:!0},subscribe:{value:function(t){return r.add(t),()=>r.delete(t)},enumerable:!0,configurable:!0},__gyos_computed__:{value:!0}}),c}function k(t){let e,n=new Set,s=!0;const r=()=>{if(!s)return;if(m.has(r))return void c();if(m.add(r),g++,n.forEach(t=>{t.delete(r)}),c(),n.clear(),e)try{e()}catch(t){}const i=f;f=r,r.__dependencies=n;try{const n=t();e="function"==typeof n?n:void 0}catch(t){}finally{f=i,g--,m.delete(r),0===g&&y.size>0&&queueMicrotask(x)}};return r(),()=>{if(s&&(s=!1,n.forEach(t=>{t.delete(r)}),n.clear(),e))try{e()}catch(t){}}}function C(t){if(w)t();else{w=!0,_.clear();try{t()}catch(t){throw t}finally{w=!1;const t=Array.from(_);_.clear(),t.forEach(t=>{try{t()}catch(t){}})}}}function A(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_signal__"in t}function I(){return null!==f}function T(t){return A(t)?t.value:t}function N(t){const e=f;f=null;try{return t()}finally{f=e}}class P{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 P(this)}}const L=new P,M=new WeakMap;function V(t){if(M.has(t))return M.get(t);let e=t.parentElement,n=L;for(;e;){if(M.has(e)){n=M.get(e);break}if(e.hasAttribute("g-provide")){n=V(e);break}e=e.parentElement}const s=n.createChild();M.set(t,s);const r=t.getAttribute("g-provide");if(r)try{const t=JSON.parse(r);if(!t||Array.isArray(t)||"object"!=typeof t)throw new TypeError("g-provide must contain a JSON object");Object.entries(t).forEach(([t,e])=>{s.set(t,e)})}catch(t){}return s}const O=new Map;function R(t,e){O.set(t,e)}function D(t,e,n=[]){const s=O.get(e);if(!s)return c(),t;try{return s(t,...n)}catch(e){return c(),t}}let B;function F(){if(!B)throw Error("[GyosJS] Expression runtime is not configured. Import GyosJS from a public entry point.");return B}function U(){return B?.mode??"standard"}function j(t,e){return t.replace(/\{([^}]+)\}/g,(t,n)=>{try{const t=W(n.trim(),e);return null==t?"":t+""}catch(e){return t}})}function W(t,e,n=!0){if(n&&function(t){let e=!1,n="";for(let s=0;s<t.length;s++){const r=t[s],i=s>0?t[s-1]:"";if('"'!==r&&"'"!==r||"\\"===i||(e?r===n&&(e=!1,n=""):(e=!0,n=r)),"|"===r&&!e&&"|"!==(s<t.length-1?t[s+1]:"")&&"|"!==i)return!0}return!1}(t)){const{base:n,pipes:s}=function(t){const e=[];let n="",s=!1,r="",i=0;for(;i<t.length;){const a=t[i],o=i>0?t[i-1]:"";'"'!==a&&"'"!==a||"\\"===o?"|"!==a||s?(n+=a,i++):"|"===t[i+1]?(n+="||",i+=2):(e.push(n.trim()),n="",i++):(s?a===r&&(s=!1,r=""):(s=!0,r=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 s=0,r=-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&&s++,")"===e&&(s--,0===s))){r=n;break}}if(-1===r)return{name:t,args:[]};const o=t.substring(e+1,r),c=[];if(o){let t="",e=!1,n="";for(let s=0;s<o.length;s++){const r=o[s];'"'!==r&&"'"!==r||0!==s&&"\\"===o[s-1]?","!==r||e?t+=r:(c.push(t.trim()),t=""):(e?r===n&&(e=!1,n=""):(e=!0,n=r),t+=r)}t.trim()&&c.push(t.trim())}return{name:n,args:c}});return{base:a,pipes:o}}(t);let r=$(n,e);for(const{name:t,args:n}of s)r=D(r,t,n.map(t=>$(t,e)));return r}return $(t,e)}function $(t,e){return t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):isNaN(Number(t))?F().evaluate(t,e):Number(t)}R("currency",(t,e="USD",n="en-US")=>new Intl.NumberFormat(n,{style:"currency",currency:e}).format(t)),R("date",(t,e="MM/DD/YYYY")=>{const n=t instanceof Date?t:new Date(t),s=t=>t.toString().padStart(2,"0");return e.replace("YYYY",n.getFullYear().toString()).replace("MM",s(n.getMonth()+1)).replace("DD",s(n.getDate())).replace("HH",s(n.getHours())).replace("mm",s(n.getMinutes())).replace("ss",s(n.getSeconds()))}),R("slug",t=>t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")),R("truncate",(t,e=100,n="...")=>t.length>e?t.substring(0,e)+n:t),R("uppercase",t=>t.toUpperCase()),R("lowercase",t=>t.toLowerCase()),R("capitalize",t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),R("fallback",(t,e)=>t||e),R("json",(t,e=2)=>JSON.stringify(t,null,e)),R("number",(t,e=0)=>t.toFixed(e)),R("pluralize",(t,e,n)=>`${t} ${1===t?e:n||e+"s"}`),R("percent",(t,e=0)=>(100*t).toFixed(e)+"%"),R("join",(t,e=", ")=>Array.isArray(t)?t.join(e):t),R("limit",(t,e)=>Array.isArray(t)?t.slice(0,e):t),R("reverse",t=>"string"==typeof t?t.split("").reverse().join(""):Array.isArray(t)?[...t].reverse():t);const q=new Map,H=new Map;function G(t){return q.get(t)}function z(){return q}function Y(t){let e=q.get(t);e&&(e.__gyos_effects__&&(e.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),e.__gyos_effects__=null),e.onUnmount&&e.onUnmount.call(e),t.__gyos_scope__=null,q.delete(t))}function K(t){let e=t;for(;e;){if(e.__gyos_scope__)return e.__gyos_scope__;e=e.parentElement}return null}function J(t){q.forEach((e,n)=>{t.contains(n)&&t!==n&&Y(n)})}const Q=[];function X(){return Q[Q.length-1]}function Z(t,e){const n=k(e);t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(n)}function tt(t,e){const n=X();n?n.push({target:t,runner:e}):Z(t,e)}const et=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","TITLE","XMP","IFRAME","NOEMBED","NOFRAMES"]);function nt(t,e,n){let s=t.parentElement;for(;s;){if(i(s)||et.has(s.tagName))return!0;if(s.hasAttribute("*if")||s.hasAttribute("*for"))return!0;if(s.__gyos_static__&&(void 0!==n||s!==e))return!0;if(s===e)break;s=s.parentElement}if(void 0!==n&&t.parentElement){const e=K(t.parentElement);if(e&&e!==n)return!0}return!1}function st(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),s=[];let r;for(;r=n.nextNode();){if(nt(r,t))continue;const e=r.textContent||"";e.includes("{")&&e.includes("}")&&s.push({node:r,template:e})}s.forEach(({node:t,template:n})=>{t.textContent=j(n,e)})}const rt={classNames:["is-revealed"],rootMargin:"0px",threshold:.1},it=new Map,at=new WeakMap;function ot(t){const e=Number(t);return Number.isFinite(e)?Math.min(1,Math.max(0,e)):rt.threshold}function ct(t){if(!Array.isArray(t))return ot(t);const e=Array.from(new Set(t.map(ot))).sort((t,e)=>t-e);return e.length?e:rt.threshold}function lt(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):rt.classNames,once:"boolean"==typeof e.once?e.once:!n.has("repeat"),rootMargin:"string"==typeof e.rootMargin?e.rootMargin:rt.rootMargin,target:"parent"===e.target||n.has("parent")?"parent":"self",threshold:ct(e.threshold??rt.threshold)}}function ut(t,e){const{element:n,options:s}=t;if(e){n.setAttribute("data-gyos-revealed","");for(const t of s.classNames)n.classList.add(t)}else{n.removeAttribute("data-gyos-revealed");for(const t of s.classNames)n.classList.remove(t)}}function ht(t){if(at.get(t.element)!==t)return;at.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(),it.delete(t.pool.key))}function pt(t,e){ft(t),document.documentElement.classList.add("gyos-reveal-ready");const n=lt(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 s=function(t){const e=function(t){return JSON.stringify([t.rootMargin,t.threshold])}(t),n=it.get(e);if(n)return n;let s;try{const n=new Map;s={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&&ht(n)):n.options.once||ut(n,!1)}},{rootMargin:t.rootMargin,threshold:t.threshold}),records:n}}catch{return null}return it.set(e,s),s}(n);if(!s)return void ut({element:t,options:n},!0);const r="parent"===n.target&&t.parentElement||t,i={element:t,observedTarget:r,options:n,pool:s};let a=s.records.get(r);a||(a=new Set,s.records.set(r,a),s.observer.observe(r)),a.add(i),at.set(t,i)}function ft(t){const e=at.get(t);e&&(ht(e),e.options.once||ut(e,!1))}const dt={mounted:pt,updated(t,e){const n=lt({...e,value:e.oldValue}),s=lt(e);for(const e of n.classNames)s.classNames.includes(e)||t.classList.remove(e);pt(t,e)},unmounted:ft},mt=new Map;function gt(t,e){"function"==typeof e?mt.set(t,{mounted:e,updated:e}):mt.set(t,e)}function yt(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 s=K(t),r=e.value,i="function"==typeof r?r:s?.[r];if("function"!=typeof i)return;if(!s)return;const a=s.$on(n,i.bind(s));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)=>yt(n,!0)?`<img alt="${e}" src="${n}" />`:e).replace(/\[(.*?)\]\((.*?)\)/gim,(t,e,n)=>yt(n,!1)?`<a href="${n}">${e}</a>`:e).replace(/`(.*)`/gim,"<code>$1</code>").replace(/\n/gim,"<br />");t.innerHTML=n}}),gt("reveal",dt);const vt={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}},xt=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,s){this.cancel(t);const r="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=()=>{r&&this.removeClasses(t,r),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=r=>{f||(f=!0,d(),r||(c?.(t),"leave"===n&&s&&t.remove()),e(!r))},g=e=>{e.target===t&&m(!1)};this.active.set(t,{phase:n,cancel:()=>m(!0)});try{o?.(t),r&&this.applyClasses(t,r),t.offsetHeight,t.style.transition=`all ${l}ms ${"enter"===n?"ease-out":"ease-in"}`,r&&this.removeClasses(t,r),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:vt[t]||vt.fade}getAvailableTransitions(){return Object.keys(vt)}};function bt(t,e){const n=Array.from(t.attributes).find(t=>t.name.startsWith("g-transition"));if(!n)return null;const s=n.name.split(".").slice(1).find(t=>/^\d+$/.test(t)),r=function(t,e){const n=t.trim(),s=/^\{([\s\S]+)\}$/.exec(n);if(s){const t=W(s[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:r,duration:s?parseInt(s):void 0}}function _t(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 wt(t,e,n=!1){const s=bt(t,e);if(!s)return Promise.resolve(!0);c();const r={...xt.getConfig(s.name)};return s.duration&&(r.duration=s.duration),xt.enter(t,r,n)}function Et(t,e,n=!0){const s=bt(t,e);if(!s)return Promise.resolve(!0);c();const r={...xt.getConfig(s.name)};return s.duration&&(r.duration=s.duration),xt.leave(t,r,n)}function St(t,e){Array.from(t.querySelectorAll("[g-show], [g-html], [g-text]")).filter(t=>!i(t)).forEach(t=>{const n=t;if(n.hasAttribute("g-show")){const t=W(n.getAttribute("g-show"),e);n.style.display=t?"":"none"}if(n.hasAttribute("g-html")){const t=W(n.getAttribute("g-html"),e);n.innerHTML=t}if(n.hasAttribute("g-text")){const t=W(n.getAttribute("g-text"),e);n.textContent=t}})}function kt(t){return{staticClasses:new Set(t.classList),dynamicClasses:new Set}}function Ct(t,e,n){const s=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,s]of Object.entries(e))if(!s)for(const e of n.split(/\s+/).filter(Boolean))t.classList.remove(e);for(const e of n.dynamicClasses)s.has(e)||n.staticClasses.has(e)||t.classList.remove(e);for(const e of s)t.classList.add(e);n.dynamicClasses=s}function At(t){const e=new Map;for(let n=0;n<t.length;n++){const s=t.item(n);e.set(s,{priority:t.getPropertyPriority(s),value:t.getPropertyValue(s)})}return e}function It(t){return t.startsWith("--")||t.includes("-")?t.toLowerCase():t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Tt(t){return{staticStyles:At(t.style),dynamicProperties:new Set}}function Nt(t,e,n){const s=n.staticStyles.get(e);s?t.style.setProperty(e,s.value,s.priority):t.style.removeProperty(e)}function Pt(t,e,n){const s=function(t){const e=document.createElement("div").style,n=new Set;if("string"==typeof t){e.cssText=t;for(const t of At(e).keys())n.add(t)}else if(t&&"object"==typeof t)for(const[s,r]of Object.entries(t)){const t=It(s);n.add(t),null!=r&&!1!==r&&(s.startsWith("--")?e.setProperty(s,r+""):e[s]=r)}return{mentioned:n,values:At(e)}}(e);for(const e of n.dynamicProperties)s.mentioned.has(e)||Nt(t,e,n);for(const e of s.mentioned){const n=s.values.get(e);n?t.style.setProperty(e,n.value,n.priority):t.style.removeProperty(e)}n.dynamicProperties=s.mentioned}const Lt=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"]),Mt={allowfullscreen:"allowFullscreen",formnovalidate:"formNoValidate",ismap:"isMap",itemscope:"itemScope",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly"},Vt=new Set(["action","background","cite","formaction","href","poster","src","xlink:href"]),Ot=new Set(["BASE","EMBED","IFRAME","LINK","OBJECT","SCRIPT"]);function Rt(t,e,n){const s=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-"))}(s))return t.removeAttribute(s),void c();if(!function(t,e,n){if(!Vt.has(e))return!("data"===e&&"OBJECT"===t.tagName);if(null==n||!1===n)return!0;if(Ot.has(t.tagName))return!1;const s=(n+"").trim().replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!s.startsWith("javascript:")&&!s.startsWith("vbscript:")&&(!s.startsWith("data:")||"src"===e&&t instanceof HTMLImageElement&&/^data:image\/(?:png|gif|jpe?g|webp|avif);base64,/i.test(s))}(t,s,n))return t.removeAttribute(s),void c();if(Lt.has(s)){const e=!!n;return t.toggleAttribute(s,e),void function(t,e,n){const s=Mt[e]||e;if(s in t)try{t[s]=n}catch{}}(t,s,e)}if(null==n||!1===n&&!s.startsWith("aria-")&&!s.startsWith("data-"))return void t.removeAttribute(s);const r=n+"";"value"===s&&"value"in t&&(t.value=r),t.setAttribute(s,r)}function Dt(t){return Array.from(t.attributes).filter(t=>t.name.startsWith(":"))}function Bt(t,e){const n=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];for(const t of n)if(!i(t))for(const n of Dt(t)){const s=n.name.slice(1),r=W(n.value,e);"class"===s?Ct(t,r,kt(t)):"style"===s?Pt(t,r,Tt(t)):Rt(t,s,r)}}function Ft(t,e){if(!t)return;const n=document.querySelector(e);if(!n)return;const s=document.createComment("g-portal");t.parentNode?.insertBefore(s,t),t.__portal_placeholder__=s,t.__portal_target__=n,n.appendChild(t),c()}function Ut(t){if(!t)return;const e=t.__portal_placeholder__;e&&e.parentNode&&(e.parentNode.insertBefore(t,e),e.remove(),delete t.__portal_placeholder__,delete t.__portal_target__,c())}const jt=new Map;function Wt(t,e){jt.set(t,e)}async function $t(t,e,n){const s=e.split("|");for(const e of s){const s=e.lastIndexOf(":");let r,i=e;if(s>0){const t=e.substring(0,s),n=t.indexOf("("),a=t.lastIndexOf(")");(-1===n||a>n&&a===t.length-1)&&(i=t,r=e.substring(s+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=jt.get(o);if(!u)continue;const h=await u(t,...l,n);if(!0!==h)return r||(n?.messages?.[o]?n.messages[o]:"string"==typeof h?h:"Validation failed for "+o)}return null}Wt("required",t=>!(null==t||""===t||Array.isArray(t)&&0===t.length)||"This field is required"),Wt("email",t=>!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||"Invalid email address"),Wt("minLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length>=n||"Minimum length is "+n}),Wt("maxLength",(t,e)=>{if(!t)return!0;const n=parseInt(e);return t.length<=n||"Maximum length is "+n}),Wt("min",(t,e)=>{if(!t)return!0;const n=parseFloat(e);return parseFloat(t)>=n||"Minimum value is "+n}),Wt("max",(t,e)=>{if(!t)return!0;const n=parseFloat(e);return n>=parseFloat(t)||"Maximum value is "+n}),Wt("number",t=>!t||!isNaN(parseFloat(t))&&isFinite(t)||"Must be a number"),Wt("integer",t=>!t||Number.isInteger(parseFloat(t))||"Must be an integer"),Wt("numeric",t=>!t||/^\d+$/.test(t)||"Must contain only digits"),Wt("alpha",t=>!t||/^[a-zA-Z]+$/.test(t)||"Must contain only letters"),Wt("alphanumeric",t=>!t||/^[a-zA-Z0-9]+$/.test(t)||"Must contain only letters and numbers"),Wt("pattern",(t,e)=>!t||RegExp(e).test(t)||"Invalid format"),Wt("same",(t,e,n)=>!t||!n?.form||t===n.form[e]||"Must match "+e),Wt("different",(t,e,n)=>!t||!n?.form||t!==n.form[e]||"Must be different from "+e),Wt("url",t=>{if(!t)return!0;try{return new URL(t),!0}catch{return"Invalid URL"}}),Wt("phone",t=>!t||/^0\d{9}$/.test(t)||"Invalid phone number (format: 0xxxxxxxxx)"),Wt("date",t=>!t||(/^\d{4}-\d{2}-\d{2}$/.test(t)?!isNaN(new Date(t).getTime())||"Invalid date":"Invalid date format (use YYYY-MM-DD)")),Wt("before",(t,e)=>{if(!t)return!0;const n=new Date(t);return new Date(e)>n||"Must be before "+e}),Wt("after",(t,e)=>!t||new Date(t)>new Date(e)||"Must be after "+e),Wt("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),s=/[0-9]/.test(t);return e?n?!!s||"Password must contain at least one number":"Password must contain at least one lowercase letter":"Password must contain at least one uppercase letter"}),Wt("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(", ")}),Wt("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(", ")}),Wt("between",(t,e,n)=>{if(!t)return!0;const s=parseFloat(t),r=parseFloat(e),i=parseFloat(n);return s>=r&&i>=s||`Must be between ${r} and ${i}`});const qt=new WeakSet,Ht=new WeakSet,Gt=new WeakMap,zt=new WeakMap,Yt=Symbol("gyos.validation-field");function Kt(t){const e=t[Yt];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 Jt(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=Kt(t),s=Array.from(e.querySelectorAll('input[type="radio"]')).find(e=>!(i(e)||!e.checked||(!t.name||e.name!==t.name)&&Kt(e)!==n));return s?.value??""}function Qt(t){return Gt.has(t)||Gt.set(t,{errors:E({}),touched:E({}),$invalid:E(!1),$valid:E(!0),$dirty:E(!1),$pristine:E(!0)}),Gt.get(t)}function Xt(t){const e=t.errors.value,n=t.touched.value,s=Object.values(e).some(t=>null!==t),r=Object.values(n).some(t=>t);t.$invalid.value!==s&&(t.$invalid.value=s,t.$valid.value=!s),t.$dirty.value!==r&&(t.$dirty.value=r,t.$pristine.value=!r)}const Zt={enter:"enter",esc:"escape",escape:"escape",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",delete:"delete",tab:"tab"},te=new Set(["prevent","stop","once","capture","passive","debounce","outside","global"]);function ee(t,e,n,s){s.includes("prevent")&&n.preventDefault(),s.includes("stop")&&n.stopPropagation();try{F().execute(t,e,n)}catch(t){}}const ne=Symbol("gyos.parent-scope");function se(t){return t?.[ne]}function re(t){const e=[],n=/[^.[\]]+|\[(\d+)\]/g;let s;for(;s=n.exec(t);)void 0!==s[1]?e.push(Number(s[1])):e.push(s[0]);return e}function ie(t,e,n){if(o(e))return;const s=re(e);if(0===s.length)return;let r=t;A(r)&&(r=r.value);for(let t=0;t<s.length-1;t++){let e=r[s[t]];A(e)&&(e=e.value),r=e}const i=s[s.length-1],a=r[i];A(a)?a.value=n:r[i]=n}function ae(t=document.body,e=!1){t&&((t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&Y(t),t.__gyos_effects__&&(t.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),t.__gyos_effects__=null),t.querySelectorAll("*").forEach(t=>{(t.hasAttribute?.("g-scope")||t.__gyos_scope__)&&Y(t),t.__gyos_effects__&&(t.__gyos_effects__.forEach(t=>{try{t()}catch(t){}}),t.__gyos_effects__=null)}),Ut(t),e&&t.remove())}const oe=new WeakMap,ce=new WeakSet,le=new WeakMap,ue=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=Symbol.for("gyos_scope_version");function de(t){const e=Ee(t),n=new Set,s=t=>{if(n.has(t))return;n.add(t),t.value=t.value+1;const e=pe.get(t);e&&e.forEach(t=>s(t))};s(e)}function me(t){return t instanceof Date||t instanceof RegExp||t instanceof Map||t instanceof Set||t instanceof WeakMap||t instanceof WeakSet||t instanceof Promise}function ge(t){return"string"==typeof t&&(t.startsWith("__gyos_")||t.startsWith("$")||["onMount","onUpdate","onUnmount"].includes(t))}function ye(t,e,n){let s=le.get(t);s||(s=new Map,le.set(t,s));let r=s.get(e);return r||(r=E(n,c()?`(${e.toString()})`:void 0),s.set(e,r)),r}const ve=Symbol.for("gyos.store");function xe(t){return!(!t||!t[ve])}const be=Symbol.for("gyos.raw");function _e(t){return!(!t||!t[be])}const we=Symbol.for("gyos.shallow");function Ee(t){let e=ue.get(t);return e||(e=E(0),ue.set(t,e)),e}function Se(t){if(!t||"object"!=typeof t||me(t))return t;if(ce.has(t))return t;if(_e(t))return t;if(xe(t))return t;if(oe.has(t))return oe.get(t);let e;e=new Proxy(t,{get(t,n,s){const r=Reflect.get(t,n,s);if(!Object.prototype.hasOwnProperty.call(t,n)){if("symbol"!=typeof n&&!ge(n)&&!(n in t)){const e=le.get(t)?.get(n);if(I())return(e||ye(t,n,void 0)).value;if(e)return e.peek}return r}if("symbol"==typeof n||ge(n))return r;if(xe(r))return r;const i=Object.getOwnPropertyDescriptor(t,n);if(i&&i.get)return r;if("function"==typeof r)return r.bind(e);const a=I(),o=le.get(t)?.get(n);if(r&&"object"==typeof r&&_e(r))return a&&(o||ye(t,n,r)).value,r;if(r&&"object"==typeof r&&!me(r)){const e=ue.get(t);return ue.has(r)||Ee(r),e&&function(t,e){const n=Ee(t);let s=he.get(t);s||(s=new Set,he.set(t,s)),s.add(e);let r=pe.get(n);r||(r=new Set,pe.set(n,r)),r.add(e)}(r,e),a&&(o||ye(t,n,r)).value,(c=t)&&c[we]?r:Se(r)}var c;return a?(o||ye(t,n,r)).value:o?o.peek:r},set(t,e,n,s){if("symbol"==typeof e||ge(e))return Reflect.set(t,e,n,s);const r=Object.getOwnPropertyDescriptor(t,e);if(r&&r.set){const r=Reflect.set(t,e,n,s);return r&&de(t),r}const i=t[e];if(xe(n))return Reflect.set(t,e,n,s);if(!Reflect.set(t,e,n,s))return!1;const a=ye(t,e,n);return Object.is(i,n)||(a.value=n,de(t)),!0},ownKeys:t=>(Ee(t).value,Reflect.ownKeys(t).filter(t=>!ge(t))),getOwnPropertyDescriptor(t,e){if("string"!=typeof e||!ge(e))return Reflect.getOwnPropertyDescriptor(t,e)},deleteProperty(t,e){if("symbol"==typeof e||ge(e))return Reflect.deleteProperty(t,e);const n=Object.prototype.hasOwnProperty.call(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&(ye(t,e,void 0).value=void 0,de(t)),s},defineProperty(t,e,n){if("symbol"==typeof e||ge(e))return Reflect.defineProperty(t,e,n);const s=Object.getOwnPropertyDescriptor(t,e),r=s&&"value"in s?s.value:void 0,i="value"in n?n.value:r;return!!Reflect.defineProperty(t,e,n)&&("value"in n&&(ye(t,e,n.value).value=n.value,s&&Object.is(r,i)||de(t)),!0)}});const n=ue.get(t);return n&&ue.set(e,n),ce.add(e),oe.set(t,e),e}function ke(t){const e=Ee(t),n=Se(t);return n.hasOwnProperty(fe)||Object.defineProperty(n,fe,{value:e,enumerable:!1,configurable:!1,writable:!1}),n}let Ce=null;const Ae=new WeakMap,Ie=Symbol("gyos.for-scope-state");function Te(t){return Ae.has(t)||Ae.set(t,t.cloneNode(!0)),Ae.get(t).cloneNode(!0)}function Ne(t,e){t.__gyos_scope__=e}function Pe(t,e,n,s){const r={};!function(t,e){Object.defineProperty(t,ne,{value:e,configurable:!1,enumerable:!1,writable:!1})}(r,t);const i=E({list:n,index:s});Object.defineProperty(r,Ie,{value:i});const[a,o]=e.split(",").map(t=>t.trim());o?Object.defineProperty(r,o,{get:()=>i.value.index,enumerable:!1,configurable:!1}):Object.defineProperty(r,"$index",{get:()=>i.value.index,enumerable:!0,configurable:!1}),Object.defineProperty(r,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 r||Object.defineProperty(r,e,{get:()=>t[e],set:n=>{t[e]=n},enumerable:!0,configurable:!0});return r}let Le=null;Ce=Ve;const Me=(t,e)=>{const n=K(t);return!(!n||n===e)};function Ve(t,e,n=!1){if(i(t))return;Q.push([]);const s=[t,...u(t,t=>!i(t),NodeFilter.FILTER_REJECT)];if(n&&Le&&t.querySelectorAll("[g-scope]").forEach(t=>{i(t)||p(t)||Le(t)}),function(t,e){const n=[],s=t[0];t.forEach(t=>{const e=t.hasAttribute("*if"),r=t.hasAttribute("*for"),i=t.hasAttribute("*switch"),a=t.hasAttribute("*await");if(e||r||i||a){let e=0,o=t;for(;o&&o!==s;)e++,o=o.parentNode;let c="if";r?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})=>{"for"===n?function(t,e){const n=t.getAttribute("*for"),s=t.cloneNode(!0);s.removeAttribute("*for");const r=s.getAttribute("g-key"),i=!!r;i&&s.removeAttribute("g-key");const a=document.createComment("*for");t.parentNode?.replaceChild(a,t);let o,c=new Map,l=null;tt(t,()=>{const t=n.match(/(.+?)\s+in\s+(.+)/);if(!t)return;const u=t[1].trim(),h=W(t[2].trim(),e,!1);if(!Array.isArray(h))return;const p=(f=h,ue.get(f));var f;const d=p?p.value:void 0;(i||h!==l||d!==o)&&(l=h,o=d,N(()=>{i?function(t,e,n,s,r,i,a){const o=new Map,c=[];n.forEach((t,e)=>{const a=Pe(i,s,n,e),l=W(r,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=_t(e.element);if(J(e.element),n.length>0){e.element.style.pointerEvents="none";const t=n.map(t=>Et(t,e.scope));Promise.all(t).then(()=>{ae(e.element,!0)})}else ae(e.element,!0)});let u=t;c.forEach(r=>{const c=o.get(r),{index:l}=c;let h;if(a.has(r)){const t=a.get(r),e=t.scope[Ie],s=e.peek;s.list===n&&s.index===l||(e.value={list:n,index:l}),h=t.element}else{const o=Te(e),c=Pe(i,s,n,l);Ne(o,c);const p=_t(o);p.length>0&&p.forEach(t=>{const e=bt(t,c);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),h=o,t.parentNode?.insertBefore(o,u.nextSibling),Ce&&Ce(o,c,!0),a.set(r,{element:o,scope:c}),p.length>0&&requestAnimationFrame(()=>{p.forEach(t=>wt(t,c))})}h!==u.nextSibling&&t.parentNode?.insertBefore(h,u.nextSibling),u=h})}(a,s,h,u,r,e,c):function(t,e,n,s,r){let i=t.nextSibling;for(;i&&i.nodeType!==Node.COMMENT_NODE;){const t=i;i=i.nextSibling,t instanceof Element&&(J(t),ae(t,!0))}let a=t;n.forEach((i,o)=>{const c=Te(e),l=Pe(r,s,n,o);Ne(c,l);const u=_t(c);u.length>0&&u.forEach(t=>{const e=bt(t,l);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),t.parentNode?.insertBefore(c,a.nextSibling),a=c,Ce&&Ce(c,l,!0),u.length>0&&requestAnimationFrame(()=>{u.forEach(t=>wt(t,l))})})}(a,s,h,u,e)}))})}(t,e):"if"===n?function(t,e){const n=[];n.push({element:t,condition:t.getAttribute("*if")});let s=t.nextElementSibling;for(;s&&!i(s);){if(!s.hasAttribute("*elseif")){if(s.hasAttribute("*else")){n.push({element:s,condition:null}),s.remove();break}break}{n.push({element:s,condition:s.getAttribute("*elseif")});const t=s.nextElementSibling;s.remove(),s=t}}const r=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}}),a=document.createComment("*if-chain");t.parentNode?.replaceChild(a,t);let o=null,c=-1;tt(t,()=>{let t=-1;for(let n=0;n<r.length;n++){const{condition:s}=r[n];if(null===s){t=n;break}if(W(s,e,!1)){t=n;break}}if(t!==c){if(o){const t=o;J(t),o=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}if(-1!==t){const{template:n}=r[t];o=Te(n),c=t,Ne(o,e);const s=_t(o);s.length>0&&s.forEach(t=>{const n=bt(t,e);if(n){const e=xt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ce&&Ce(o,e,!0),s.length>0&&requestAnimationFrame(()=>{s.forEach(t=>wt(t,e))})}else c=-1}})}(t,e):"switch"===n?function(t,e){const n=t.getAttribute("*switch"),s=[];Array.from(t.children).forEach(t=>{i(t)||(t.hasAttribute("*case")?s.push({element:t,value:t.getAttribute("*case")}):t.hasAttribute("*default")&&s.push({element:t,value:null}))});const r=s.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;tt(t,()=>{const t=W(n,e,!1);let s=-1;for(let n=0;n<r.length;n++){const{value:i}=r[n];if(null===i){-1===s&&(s=n);break}if(t===W(i,e,!1)){s=n;break}}if(s!==c){if(o){const t=o;J(t),o=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}if(-1!==s){const{template:t}=r[s];o=Te(t),c=s,Ne(o,e);const n=_t(o);n.length>0&&n.forEach(t=>{const n=bt(t,e);if(n){const e=xt.getConfig(n.name);e.enterFrom&&e.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),a.parentNode?.insertBefore(o,a.nextSibling),Ce&&Ce(o,e,!0),n.length>0&&requestAnimationFrame(()=>{n.forEach(t=>wt(t,e))})}else c=-1}})}(t,e):"await"===n&&function(t,e){const n=t.getAttribute("*await");t.removeAttribute("*await");const s=Array.from(t.children);let r=null,a=null,o=null;s.forEach(t=>{if(!i(t))if(t.hasAttribute("*pending"))r=t.cloneNode(!0),r.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(l){const t=l;l=null;const n=_t(t);if(n.length>0){t.style.pointerEvents="none";const s=n.map(t=>Et(t,e));Promise.all(s).then(()=>{ae(t,!0)})}else ae(t,!0)}let s=null,i=e;if("pending"===t&&r?s=r:"fulfilled"===t&&a?(s=a.template,a.varName&&void 0!==n&&(i={...e,[a.varName]:n})):"rejected"===t&&o&&(s=o.template,o.varName&&void 0!==n&&(i={...e,[o.varName]:n})),s){l=Te(s),u=t,Ne(l,i);const e=_t(l);e.length>0&&e.forEach(t=>{const e=bt(t,i);if(e){const n=xt.getConfig(e.name);n.enterFrom&&n.enterFrom.split(/\s+/).forEach(e=>{e&&t.classList.add(e)})}}),c.parentNode?.insertBefore(l,c.nextSibling),Ce&&Ce(l,i,!0),e.length>0&&requestAnimationFrame(()=>{e.forEach(t=>wt(t,i))})}};p("pending"),tt(t,()=>{const t=W(n,e,!1),s=++h;t instanceof Promise?(p("pending"),t.then(t=>{s===h&&"pending"===u&&p("fulfilled",t)}).catch(t=>{s===h&&"pending"===u&&p("rejected",t)})):p("fulfilled",t)})}(t,e)})}(s,e),s.forEach(s=>{if(!document.body.contains(s))return;if(0===s.attributes.length)return;if(Me(s,e)&&!n)return;const a=Array.from(s.attributes);s.hasAttribute("g-static")&&function(t,e){t.removeAttribute("g-static"),t.__gyos_static__=!0,st(t,e),St(t,e),Bt(t,e)}(s,e),s.hasAttribute("g-form")&&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 s=Qt(t);!function(t){qt.add(t)}(t);const r=async()=>{const e=zt.get(t)||[],n={...s.touched.value};return Object.keys(n).forEach(t=>{n[t]=!0}),s.touched.value={...n},await Promise.all(e.map(t=>t())),Xt(s),!s.$invalid.value};s.validateAll=r;const i={errors:s.errors,touched:s.touched,$invalid:s.$invalid,$valid:s.$valid,$dirty:s.$dirty,$pristine:s.$pristine,validateAll:r};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 s=await r();if(!h||!s)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){Ht.add(t)}(t),c=!0;try{t.requestSubmit(e)}finally{c&&(c=!1),function(t){Ht.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){qt.delete(t),Ht.delete(t)}(t),Gt.delete(t),zt.delete(t)})}(t,e),t.querySelectorAll("[g-validate]").forEach(t=>{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=Kt(t);if(!n)return;t[Yt]=n;const s=t.closest("form");if(!s)return;const r=Qt(s);r.errors.value[n]=null,r.touched.value[n]=!1;const a=async()=>{const a=Jt(t,s),o={};s.querySelectorAll("input, textarea, select").forEach(t=>{if(!i(t)&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=Kt(t);e&&(o[e]=Jt(t,s))}});const c=await $t(a,e,{form:o,field:n}),l=r.errors.value;l[n]!==c&&(l[n]=c,r.errors.value={...l},Xt(r))};zt.has(s)||zt.set(s,[]),zt.get(s).push(a);const o=()=>{const t=r.touched.value;t[n]||(t[n]=!0,r.touched.value={...t},Xt(r)),a()};let c;t.addEventListener("blur",o);const l=()=>{clearTimeout(c),c=setTimeout(()=>{a()},300)};t.addEventListener("input",l),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{t.removeEventListener("blur",o),t.removeEventListener("input",l),clearTimeout(c)})}(t)}),t.querySelectorAll("[g-errors]").forEach(t=>{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 s=Qt(n);if(""===e||null===e){const e=k(()=>{const e=s.errors.value,n=Object.entries(e).filter(([t,e])=>null!==e);t.replaceChildren(...n.map(([t,e])=>{const n=document.createElement("div"),s=document.createElement("strong");return s.textContent=t+":",n.append(s,document.createTextNode(" "+e)),n})),t.style.display=n.length?"":"none"});t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(e)}else{const n=k(()=>{const n=s.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)})}(s,e),a.some(t=>t.name.startsWith("g-")&&!t.name.startsWith("g-portal"))&&function(t,e,n){if(!i(t)&&!r(t,n)){if(t.hasAttribute("g-show")){const n=t.getAttribute("g-show"),s="none"===t.style.display?"":t.style.display;let r=!1,i=0;tt(t,()=>{const a=!!W(n,e),o=++i;return xt.cancel(t),r?bt(t,e)?(a?(t.style.display=s,wt(t,e,!0)):"none"!==t.style.display&&Et(t,e,!1).then(e=>{!1!==e&&o===i&&(t.style.display="none")}),()=>xt.cancel(t)):(t.style.display=a?s:"none",()=>xt.cancel(t)):(r=!0,t.style.display=a?s:"none",()=>xt.cancel(t))})}if(t.hasAttribute("g-html")){const n=t.getAttribute("g-html");tt(t,()=>{const s=W(n,e);t.innerHTML=s})}if(t.hasAttribute("g-text")){const n=t.getAttribute("g-text");tt(t,()=>{const s=W(n,e);t.textContent=s})}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 r=n.name.slice(2).replace(/:.+$/,""),i=(s=r,mt.get(s)),a=n.name.split(":");let o;if(a.length>1&&(o=a.slice(1)),i){const s=()=>{if(""!==n.value.trim())return"on"===r&&"function"==typeof e[n.value]?e[n.value]:W(n.value,e,!1)},a=s();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&&tt(t,()=>{const n=s();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 s})}}(s,e,t),a.some(t=>t.name.startsWith(":"))&&function(t,e,n){if(!(i(t)||r(t,n)||t.hasAttribute("*if")||t.hasAttribute("*for")))for(const n of Dt(t)){const s=n.name.slice(1),r=n.value,i="class"===s?kt(t):void 0,a="style"===s?Tt(t):void 0;tt(t,()=>{const n=K(t)||e,o=W(r,n);"class"===s?Ct(t,o,i):"style"===s?Pt(t,o,a):Rt(t,s,o)})}}(s,e,t),a.some(t=>t.name.match(/^g-model($|[.])/))&&function(t,e,n){if(i(t))return;if(r(t,n))return;const s=Array.from(t.attributes).find(t=>t.name.startsWith("g-model"));if(!s)return;const a=t,o=s.name.split(".").slice(1),l=s.value,u=o.includes("debounce");let h=300;if(u){const t=o.find(t=>/^\d+$/.test(t));t&&(h=parseInt(t))}c();const p=K(t)||e,f=re(l);"string"==typeof f[0]&&function(t,e){if(!se(t)||e in t)return;let n=t,s=se(n);for(;s;)n=s,s=se(n);e in n||(n[e]=void 0),Object.defineProperty(t,e,{get:()=>n[e],set:t=>{n[e]=t},configurable:!0,enumerable:!0})}(p,f[0]);const d=W(l,p,!1);let m;"checkbox"===a.type?a.checked=!!d:"radio"===a.type?a.checked=T(d)+""===a.value:a.value=T(d);const g=t=>{const e=t.target;var n;("radio"!==e.type||e.checked)&&(n="checkbox"===e.type?e.checked:e.value,o.includes("number")&&(n=Number(n)),o.includes("trim")&&"string"==typeof n&&(n=n.trim()),u?(clearTimeout(m),m=setTimeout(()=>{ie(p,l,n)},h)):ie(p,l,n))};a.addEventListener("input",g),tt(t,()=>{const t=W(l,p,!1);"checkbox"===a.type?a.checked=!!t:"radio"===a.type?a.checked=T(t)+""===a.value:a.value!==t&&(a.value=T(t))}),t.__gyos_effects__||(t.__gyos_effects__=[]),t.__gyos_effects__.push(()=>{a.removeEventListener("input",g),m&&(clearTimeout(m),m=void 0)}),t.removeAttribute(s.name)}(s,e,t)}),function(t,e){const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),s=[];let r;for(;r=n.nextNode();){if(nt(r,t,e))continue;const n=r.textContent||"";n.includes("{")&&n.includes("}")&&s.push({node:r,template:n})}s.forEach(({node:t,template:n})=>{const s=t.parentElement;s&&tt(s,()=>{const s=K(t.parentElement)||e;t.textContent=j(n,s)})})}(t,e),function(t,e){const n=u(t,t=>!i(t)&&!t.hasAttribute("g-static"),NodeFilter.FILTER_REJECT);n.unshift(t),n.forEach(n=>{if(r(n,t))return;const s=K(n);s&&s!==e||Array.from(n.attributes).forEach(t=>{if(t.name.startsWith("@")){const s=t.name.substring(1).split("."),r=s[0],i=s.slice(1),a=t.value;if(i.includes("outside"))return void function(t,e,n,s,r){let i,a=!0;const o=r=>{const i=r.target;if(document.body.contains(t)){if(!(i instanceof Element&&i.closest("[g-ignore-outside-click]")||t===i||t.contains(i))){const i=K(t)||s;n.includes("once")&&c(),ee(e,i,r,n)}}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(r)}(n,a,i,e,t.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"===r||"keydown"===r||"keypress"===r,l={timeoutId:0};let u=()=>{};const h=t=>{if(c&&!function(t,e){let n=!1;for(const t of e)if(!te.has(t)&&!/^\d+$/.test(t)){n=!0;break}if(!n)return!0;const s=t.key.toLowerCase();for(const t of e){if(te.has(t)||/^\d+$/.test(t))continue;const e=Zt[t];if(e){if(s===e)return!0}else if(s===t.toLowerCase())return!0}return!("backspace"!==s||!e.includes("delete"))}(t,i))return;const s=()=>{i.includes("once")&&u(),C(()=>{const s=K(n)||e;ee(a,s,t,i)})};o>0?(clearTimeout(l.timeoutId),l.timeoutId=window.setTimeout(s,o)):s()},p={};let f=n;i.includes("capture")&&(p.capture=!0),i.includes("passive")&&(p.passive=!0),i.includes("global")&&(f=document.documentElement),f.addEventListener(r,h,p),u=()=>{f.removeEventListener(r,h,!!p.capture),l.timeoutId&&clearTimeout(l.timeoutId)},n.__gyos_effects__||(n.__gyos_effects__=[]),n.__gyos_effects__.push(u),n.removeAttribute(t.name)}})})}(t,e),function(){const t=X();if(t){for(let e=0;e<t.length;e++){const{target:n,runner:s}=t[e];Z(n,s)}t.length=0,Q.pop()}}(),t.hasAttribute("g-portal")){const e=t.getAttribute("g-portal");Ft(t,e)}}const Oe=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 s=()=>{this.pending.delete(t),n()};switch(e){case"idle":this.hydrateOnIdle(t,s);break;case"visible":this.hydrateOnVisible(t,s);break;case"interaction":this.hydrateOnInteraction(t,s);break;default:if(e.startsWith("media(")){const n=`(${e.slice(6,-1)})`;this.hydrateOnMedia(t,n,s)}else s()}}hydrateOnIdle(t,e){let n=!0;const s=()=>{n&&(n=!1,e())};if("requestIdleCallback"in window){const e=window.requestIdleCallback(s,{timeout:2e3});this.trackCleanup(t,()=>{n=!1,window.cancelIdleCallback?.(e)})}else{const e=setTimeout(s,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 s=!1;const r=()=>{s||(s=!0,n.forEach(e=>{t.removeEventListener(e,r)}),e())};n.forEach(e=>{t.addEventListener(e,r,{once:!0,passive:!0})}),this.trackCleanup(t,()=>{s=!0,n.forEach(e=>t.removeEventListener(e,r))})}hydrateOnMedia(t,e,n){const s=window.matchMedia(e);if(s.matches)n();else{let e=!0;const r=t=>{e&&t.matches&&(e=!1,n(),s.removeEventListener("change",r))};s.addEventListener("change",r),this.trackCleanup(t,()=>{e=!1,s.removeEventListener("change",r)})}}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)}};Le=Ue;const Re=new Map;function De(t){let e=0;for(;t.parentElement;)e++,t=t.parentElement;return e}function Be(t){if(t)return void(t instanceof HTMLElement?[t]:Array.from(t)).forEach(t=>Fe(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)=>De(e)-De(t)),e.forEach(t=>!p(t)&&Ue(t))}function Fe(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)=>De(e)-De(t)),e.forEach(t=>!p(t)&&Ue(t)),G(t))return;const n=K(t);n&&Ve(t,n)}function Ue(t){document.body.contains(t)&&(i(t)||(z().forEach((t,e)=>{document.body.contains(e)||ae(e)}),function(t,e){const n=function(t,e){let n;const s=We(t,t=>H.get(t));if(s)return s;n=function(t){t=decodeURIComponent(t);try{const e=t.trim();if(!e.startsWith("{"))return;const n=F().parseScope(e);return c(),n}catch(t){return void c()}}(e),n||(n=Re.get(e)||{});const r=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}},s=t.attributes;let r={},i=[];for(let t=0;t<s.length;t++){const a=s[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-.+/))r[l]=n(a.value),i.push(a.name);else if(a.name.match(/^gm-.+/)){const t=decodeURIComponent(a.value.trim());e.some(e=>t.includes(e))&&c();const n=l.split(":").slice(1),s=l.split(":")[0];try{r[s]=F().createMethod(n,t),i.push(a.name)}catch(t){c()}}}return i.forEach(e=>t.removeAttribute(e)),r}(t);if("function"==typeof n){const e=n;return n=>{const s=e(n);return s&&"object"==typeof s?(Object.keys(r).forEach(t=>{s[t]=r[t]}),je(t,s),s):s}}return Object.keys(r).forEach(t=>{n[t]=r[t]}),je(t,n),n}(t,e);if(G(t))return;if(t.hasAttribute("g-static"))return;const s=function(t){return t.getAttribute("g-hydrate")||null}(t);s?Oe.setup(t,s,()=>{document.body.contains(t)&&!i(t)&&$e(t,n)}):$e(t,n)}(t,t.getAttribute("g-scope")||Math.random().toString(36))))}function je(t,e){const n=u(t,t=>t.getAttributeNames().some(t=>t.startsWith("g-model"))),s=new Map;for(const t of n){if(i(t))continue;const n=t.attributes,r=Array.from(n).find(t=>t.name.startsWith("g-model"));if(!r)continue;if(r.value.includes("."))continue;const a=t;if("radio"===a.type){if(r.value in e)continue;if(s.has(r.value)||s.set(r.value,""),a.checked){const t=r.name.split(".").includes("number")?Number(a.value):a.value;s.set(r.value,t)}continue}if(r.value in e)continue;const o="checkbox"===a.type?a.checked:a.value;e[r.value]=o,c()}for(const[t,n]of s)t in e||(e[t]=n,c())}function We(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 s=t.parentElement.__gyos_scope__;return s?e(W(n.slice(1,-1),s,!1)):void 0}function $e(t,e){let r=null;"object"==typeof e&&(r=ke(e));const a=function(t,e){const r={},a=new Map;return t.querySelectorAll("[g-ref]").forEach(t=>{if(i(t))return;const e=t.getAttribute("g-ref");e&&!o(e)&&(r[e]=t)}),{inject:e=>V(t).get(e),provide:(e,n)=>{V(t).set(e,n)},$refs:r,$emit:(e,...n)=>{const s=a.get(e);s&&s.forEach(t=>{try{t(...n)}catch(t){c()}}),t.dispatchEvent(new CustomEvent(e,{detail:n}))},$on:(t,e)=>(a.has(t)||a.set(t,new Set),a.get(t).add(e),()=>{a.get(t)?.delete(e)}),$watch:(t,r,i={})=>{if(!e)return c(),()=>{};const{immediate:a=!1,deep:o=!1,debounce:l=0}=i;let u;if(l>0){const t=r;r=(...e)=>{clearTimeout(u),u=setTimeout(()=>{t(...e)},l)}}let h,p=!1;const f=k(()=>{const i=((t,e)=>{const n=e.split(".");let s=t;for(const t of n){if(null==s)return;s=s[t]}return s})(e,t),c=o&&"object"==typeof i?n(i):i;if(!p)return h=c,p=!0,void(a&&r.call(e,c,void 0));(o?!s(h,c):h!==c)&&(r.call(e,c,h),h=o&&"object"==typeof c?n(c):c)});return e.__gyos_effects__||(e.__gyos_effects__=[]),e.__gyos_effects__.push(f),f},$effect:t=>{if(!e)return c(),()=>{};const n=k(t);return e.__gyos_effects__||(e.__gyos_effects__=[]),e.__gyos_effects__.push(n),n}}}(t,r);if("function"==typeof e&&!r){const t=e(a);r=t&&"object"==typeof t?ke(t):t}if(r&&"object"==typeof r){if(r.onUpdate){const e=r[fe],n=k(()=>{e&&(e.value,G(t)&&r.onUpdate.call(r))});r.__gyos_effects__||(r.__gyos_effects__=[]),r.__gyos_effects__.push(n)}r.$refs=a.$refs,r.$emit=a.$emit,r.$on=a.$on,r.$watch=a.$watch,r.$effect=a.$effect,r.$inject=a.inject,r.$provide=a.provide,function(t,e,n){t.__gyos_scope__=e,function(t,e){if(t.hasAttribute("g-static"))return c(),t.removeAttribute("g-static"),t.__gyos_static__=!0,st(t,e),St(t,e),void Bt(t,e);Ve(t,e)}(t,e),n&&n()}(t,r,()=>{r.onMount&&Promise.resolve(r.onMount.call(r)).catch(console.error)}),function(t,e){q.set(t,e)}(t,r),We(t,t=>{H.has(t)||H.set(t,r)})}else c()}const qe=new Map,He=new Map;function Ge(t,e){return He.has(t)||He.set(t,new Set),He.get(t).add(e),()=>{He.get(t)?.delete(e)}}function ze(t,e){e?He.get(t)?.delete(e):He.delete(t)}class Ye{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}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",()=>{document.body.insertAdjacentElement("beforeend",this.element)}):document.body.insertAdjacentElement("beforeend",this.element))}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&&(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 Ke(t){t&&t.parentNode&&t.remove()}let Je;function Qe(t){Je=t}function Xe(){return("function"==typeof Je?Je():Je)||void 0}const Ze=new Set;function tn(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 en(t){if(!t.hasAttribute("g-script-once"))return!0;const e=t.src||tn(t.textContent||"");return!Ze.has(e)&&(Ze.add(e),!0)}function nn(t){return t.hasAttribute("g-script-once")?t.src||tn(t.textContent||""):null}function sn(t,e=nn(t)){const n=e;n&&Ze.delete(n)}function rn(t,e,n=nn(t)){return t.src||"module"===t.type?new Promise(s=>{let r=!1;const i=()=>{r||(r=!0,e?.removeEventListener("abort",a),s())},a=()=>{sn(t,n),t.remove(),i()};t.addEventListener("load",i,{once:!0}),t.addEventListener("error",()=>{sn(t,n),t.remove(),i()},{once:!0}),e?.aborted?a():e?.addEventListener("abort",a,{once:!0})}):Promise.resolve()}async function an(t,e){if(e?.aborted)return void t.remove();const n=Xe();if("csp"===U()&&!t.src&&!n)return void(t.textContent="");const s=nn(t);if(!en(t))return void(t.textContent="");const r=document.createElement("script");Array.from(t.attributes).forEach(t=>r.setAttribute(t.name,t.value)),"csp"===U()&&r.removeAttribute("nonce"),n&&r.setAttribute("nonce",n),r.textContent=t.hasAttribute("g-script-wrap")?cn(t.textContent):t.textContent,r.removeAttribute("g-script-wrap");const i=rn(r,e,s);t.replaceWith(r),await i}async function on(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 an(t,e),e?.aborted)return}function cn(t){return t?`(() => { ${t} })();`:t}const ln=new Map;let un=0;function hn(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 s="gyos-persist-"+un++;return t.dataset.gyosPersistId=s,s}const pn="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","loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>document.body.appendChild(t)):document.body.appendChild(t),t})():null;function fn(t){const e=Array.from(t.querySelectorAll("[g-persist]"));return t instanceof HTMLElement&&t.matches("[g-persist]")&&e.unshift(t),e}function dn(t,e){const n=new Set;Array.from(e.attributes).forEach(e=>{n.add(e.name),t.getAttribute(e.name)!==e.value&&t.setAttribute(e.name,e.value)}),Array.from(t.attributes).forEach(e=>{n.has(e.name)||t.removeAttribute(e.name)})}function mn(t,e,n){if(e&&e.hasAttribute("g-noscroll"))return;const s=new URL(t).hash;if(s){const t=document.querySelector(s);if(t)return void t.scrollIntoView({behavior:"smooth"})}n?window.scrollTo(n.x,n.y):window.scrollTo({top:0,behavior:"smooth"})}function gn(t){return"META"===t.tagName&&"csp-nonce"===t.getAttribute("name")?.toLowerCase()}function yn(t){return"SCRIPT"===t.tagName||"STYLE"===t.tagName||function(t){return"LINK"===t.tagName&&(t.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}(t)}function vn(t,e){const n=new Map;return t.map(t=>{const s=function(t,e){const n=t.tagName.toLowerCase(),s="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(s=>{e.csp&&yn(t)&&"nonce"===s.name.toLowerCase()||e.csp&&gn(t)&&"content"===s.name.toLowerCase()||n.set(s.name,s.value)}),e.csp&&yn(t)&&e.activeNonce&&n.set("nonce",e.activeNonce),e.csp&&gn(t)&&e.activeNonce&&n.set("content",e.activeNonce),Array.from(n).map(([t,e])=>`${t}=${e}`).sort().join("|")}(t,e)}|${s}`}(t,e),r=n.get(s)||0;return n.set(s,r+1),{key:`${s}|${r}`,node:t}})}function xn(t,e){return!(e.csp&&(gn(t)||"STYLE"===t.tagName||"SCRIPT"===t.tagName&&!t.hasAttribute("src"))&&!e.activeNonce)}function bn(t,e){e.csp&&(gn(t)?e.activeNonce&&t.setAttribute("content",e.activeNonce):yn(t)&&(t.removeAttribute("nonce"),e.activeNonce&&t.setAttribute("nonce",e.activeNonce)))}function _n(t){"STYLE"===t.tagName||"SCRIPT"===t.tagName&&t.hasAttribute("src")}async function wn(t,e,n=document.head,s){const r="csp"===U(),i={csp:r,activeNonce:r?Xe():void 0},a=vn(t,i),o=vn(e,i),c=new Set(a.map(t=>t.key)),l=new Set(o.map(t=>t.key));a.forEach(({key:t,node:e})=>{l.has(t)||e.remove()});for(const{key:t,node:e}of o){if(s?.aborted)return;if(!c.has(t)){if(!xn(e,i)){_n(e);continue}if("STYLE"===e.tagName){const t=document.createElement("style");Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),bn(t,i),t.textContent=e.textContent||"",n.appendChild(t);continue}if("SCRIPT"===e.tagName){const t=e,r=nn(t);if(!en(t)){e.remove();continue}const a=document.createElement("script");Array.from(e.attributes).forEach(t=>a.setAttribute(t.name,t.value)),bn(a,i),a.textContent=e.hasAttribute("g-script-wrap")?cn(e.textContent||""):e.textContent||"",a.removeAttribute("g-script-wrap");const o=rn(a,s,r);n.appendChild(a),await o;continue}const t=document.importNode(e,!0);bn(t,i),n.appendChild(t)}}}const En=new Set(["iframe","noembed","noframes","plaintext","script","textarea","title","xmp"]);function Sn(t,e){let n="";for(let s=e;s<t.length;s+=1){const e=t[s];if(n)e===n&&(n="");else if('"'!==e&&"'"!==e){if(">"===e)return s+1}else n=e}return t.length}function kn(t,e,n,s){const r="</"+n;let i=e.indexOf(r,s);for(;-1!==i;){const n=e[i+r.length];if(">"===n||/\s/.test(n||""))return{start:i,end:Sn(t,i+r.length)};i=e.indexOf(r,i+r.length)}return null}function Cn(t,e){const n=function(t){const e=/^<\s*style\b/i.exec(t);if(!e)return t;let n=e[0],s=e[0].length;const r=t.length-1;for(;r>s;){const e=s;for(;r>s&&/\s/.test(t[s]);)s+=1;if(s>=r||">"===t[s]){n+=t.slice(e,s);break}const i=s;for(;r>s&&!/[\s=/>]/.test(t[s]);)s+=1;if(s===i){n+=t.slice(e,s+1),s+=1;continue}const a=t.slice(i,s).toLowerCase();for(;r>s&&/\s/.test(t[s]);)s+=1;if("="===t[s]){for(s+=1;r>s&&/\s/.test(t[s]);)s+=1;const e='"'===t[s]||"'"===t[s]?t[s]:"";if(e){for(s+=1;r>s&&t[s]!==e;)s+=1;t[s]===e&&(s+=1)}else for(;r>s&&!/[\s>]/.test(t[s]);)s+=1}"nonce"!==a&&(n+=t.slice(e,s))}return n+t.slice(r)}(t);return`${n.slice(0,-1)} nonce="${s=e,s.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">`;var s}const An=new Map,In=new Map,Tn=new Map,Nn=new Map,Pn=new Map;let Ln=!1,Mn=0,Vn=0,On=!0,Rn=zn(window.location.href,!0),Dn=history.state?.gyosEntryId||null,Bn=null,Fn=null;const Un=[],jn=[];function Wn(t){document.querySelector("[g-boost]")&&(Ln||"undefined"!=typeof window&&"undefined"!=typeof document&&(On=!1!==t?.showProgress,On&&(Fn=new Ye(On)),document.addEventListener("click",as),document.addEventListener("submit",cs),document.addEventListener("mouseover",os,!0),window.addEventListener("popstate",ls),"scrollRestoration"in history&&(history.scrollRestoration="manual"),document.querySelectorAll("script").forEach(t=>{const e=t.hasAttribute("g-script-once"),n=e?t.src||tn(t.textContent||""):null;t.hasAttribute("g-script-wrap")&&t.removeAttribute("g-script-wrap"),e&&n&&Ze.add(n)}),Ln=!0,h()))}function $n(){return!!document.body?.hasAttribute("g-boost")}function qn(){return document.querySelector("[g-outlet]")}function Hn(t){t.querySelectorAll("noscript").forEach(t=>t.remove())}function Gn(t){const e=(new DOMParser).parseFromString(function(t){if("csp"!==U())return t;const e=Xe(),n=t.toLowerCase();let s="",r=0,i=0;for(;r<t.length;){const a=t.indexOf("<",r);if(-1===a){s+=t.slice(r);break}if(s+=t.slice(r,a),t.startsWith("\x3c!--",a)){const e=t.indexOf("--\x3e",a+4),n=-1===e?t.length:e+3;s+=t.slice(a,n),r=n;continue}const o=Sn(t,a+1),c=t.slice(a,o),l=/^<\s*(\/?)\s*([a-z][\w:-]*)/i.exec(c);if(!l||l[1]){s+=c,r=o;continue}const u=l[2].toLowerCase();if("plaintext"===u){s+=t.slice(a);break}if("style"===u||"noscript"===u||En.has(u)){const l=kn(t,n,u,o),h=l?.end??t.length;if("noscript"===u){r=h;continue}if("style"===u){if(!e){i+=1,r=h;continue}s+=Cn(c,e),s+=t.slice(o,h),r=h;continue}s+=t.slice(a,h),r=h;continue}s+=c,r=o}return s}(t),"text/html");return Hn(e),e}function zn(t,e=!1){const n=new URL(t,window.location.href);return e||(n.hash=""),n.href}function Yn(){return`gyos-${Date.now().toString(36)}-${++Vn}`}function Kn(t=!0){if(Dn)return Dn;const e=history.state||{};return Dn=e.gyosEntryId||Yn(),t&&!e.gyosEntryId&&history.replaceState({...e,gyosEntryId:Dn},""),Dn}function Jn(t,e,n){let s=Pn.get(t);s||(s=new Map,Pn.set(t,s)),s.set(e,n.cloneNode(!0))}function Qn(t,e){const n=Pn.get(t)?.get(e);return n?.cloneNode(!0)}function Xn(t){return Bn?.id===t.id&&!t.controller.signal.aborted}function Zn(t){if(!Xn(t))throw new DOMException("Navigation superseded","AbortError")}function ts(t){t.controller.abort(),t.interval&&(clearInterval(t.interval),t.interval=null),t.spinner&&(Ke(t.spinner),t.spinner=null)}function es(t){t?.catch(()=>{})}function ns(t,e){t.forEach(t=>{try{t(e)}catch(t){}})}function ss(t,e){t.querySelectorAll("script[src]").forEach(t=>{const n=t.getAttribute("src");n&&(t.src=new URL(n,e).href)})}function rs(t,e,n){"GET"!==(t.method||"GET").toUpperCase()?n||!t.form||HTMLFormElement.prototype.submit.call(t.form):window.location.href=e}async function is(t){for(;Bn;){const t=Bn;if(!t.committing){h(),ts(t);break}h(),await t.done}let e;const n=new Promise(t=>{e=t}),s={id:++Mn,controller:new AbortController,interval:null,spinner:null,committing:!1,done:n,resolveDone:e};Bn=s;const r=t.trigger?.hasAttribute("g-router-spin"),i=()=>{Xn(s)&&70>Fn?.getCurrentProgress()&&Fn?.setProgress(Fn?.getCurrentProgress()+8*Math.random())};try{ns(Un,t.url),Fn?.start(),(a=t.scrollSourceEntryId??Dn)&&Nn.set(a,{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=function(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 s=qn();return s instanceof HTMLElement?s:null}(t.trigger,t.targetSelector,t.targetOutletIndex);if(!e)return void(Xn(s)&&rs(t,t.url,!1));const n=(t.swapMode||t.trigger?.getAttribute("g-swap")||"inner").toLowerCase(),o=t.trigger instanceof HTMLElement&&t.trigger.hasAttribute("g-router-remove"),c=!["append","prepend"].includes(n),l=e===qn(),u=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),p=l?null:t.targetSelector||t.trigger?.getAttribute("g-target")||(e.id?"#"+e.id:null),f=t.currentHead??t.trigger?.hasAttribute("g-current-head")??!1,d={targetSelector:p,targetOutletIndex:l?null:u,swapMode:l?"inner":"morph",currentHead:f};r&&(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"===U()&&!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:m,init:g}=function(t){const e=(t.method||"GET").toUpperCase(),n=new Headers({"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"}),s={method:e,headers:n,redirect:"follow",mode:"same-origin"};let r=new URL(t.url,window.location.href);const i="GET"===e;if(t.formData)i?r=function(t,e){return e.forEach((e,n)=>{"string"==typeof e?t.searchParams.append(n,e):t.searchParams.append(n,e.name)}),t}(r,t.formData):s.body=t.formData;else if(t.jsonData){const e=(t,e)=>{"object"==typeof e?r.searchParams.append(t,JSON.stringify(e)):r.searchParams.append(t,e+"")};i?Object.entries(t.jsonData).forEach(([t,n])=>e(t,n)):(n.set("Content-Type","application/json"),s.body=JSON.stringify(t.jsonData))}return{finalUrl:r.toString(),init:s}}(t);let y,v;g.signal=s.controller.signal;const x=zn(m);if(t.popstate&&t.historyFragment)h();else if(t.popstate&&An.has(x))h(),y=An.get(x).html;else{const n=zn(m,!0);if("GET"===t.method.toUpperCase()&&In.has(n)){h();try{v=await function(t,e){return e.aborted?Promise.reject(new DOMException("Navigation superseded","AbortError")):new Promise((n,s)=>{const r=()=>s(new DOMException("Navigation superseded","AbortError"));e.addEventListener("abort",r,{once:!0}),t.then(t=>{e.removeEventListener("abort",r),n(t)},t=>{e.removeEventListener("abort",r),s(t)})})}(In.get(n),s.controller.signal)}catch(t){if(In.delete(n),Tn.get(n)?.abort(),Tn.delete(n),"AbortError"===t.name)throw t;return Zn(s),void(window.location.href=m)}In.delete(n),Tn.delete(n)}else try{Fn?.setProgress(10*Math.random()+20),s.interval=setInterval(i,300),v=await fetch(m,g),Zn(s),Fn?.setProgress(10*Math.random()+70),s.interval&&clearInterval(s.interval),s.interval=null}catch(e){return"AbortError"===e.name?void h():void(Xn(s)&&rs(t,m,!0))}if(Zn(s),!v||!v.ok||!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}(v))return void(Xn(s)&&rs(t,m,!0));y=await v.text(),Zn(s),!t.popstate&&e.hasAttribute("g-snapshot")&&function(t,e){const n=Gn(e);t.includes("#")&&(t=t.split("#")[0]),Array.from(n.scripts).forEach(t=>{t.hasAttribute("g-script-once")&&(t.textContent="")}),An.set(t,{html:n.documentElement.outerHTML}),h()}(zn(v.url||m),y)}const b=y?Gn(y):document.implementation.createHTMLDocument(),_=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 s=t.querySelector("[g-outlet]");return s instanceof HTMLElement?s:t.body}(b,e,u);Hn(_),Zn(s);let w=v?.url||m;m.includes("#")&&v?.url&&(w+=m.substring(m.indexOf("#"))),ss(b,w),t.historyFragment&&ss(_,w);const E=t.trigger?.hasAttribute("g-change-state")||!1,S=t.trigger?.hasAttribute("g-current-state")||!1,k="GET"!==t.method.toUpperCase()&&!0===v?.redirected,C=!S&&(!0===t.changeState||E||k),A=async()=>{Zn(s),s.committing=!0,Fn?.setProgress(10*Math.random()+80);const r=!C||t.replace||l?null:function(t){const e=t.cloneNode(!0);return e.querySelectorAll(".gyos-target-spinner").forEach(t=>t.remove()),e}(e);let i=null,a=[],o=!1;if(c&&(function(t=document){pn&&(pn&&document.body&&!pn.isConnected&&document.body.appendChild(pn),fn(t).forEach(t=>{if(t===pn||pn.contains(t))return;const e=hn(t,!0);e&&(ln.set(e,t),pn.appendChild(t))}))}(e),function(t){ae(t)}(e)),C)if(t.replace){const t=Kn(!1);history.replaceState({...history.state||{},gyos:!0,gyosEntryId:t},"",w)}else{const t=Kn(!1),e=Yn(),n=history.state||{};history.replaceState({...n,gyos:!0,gyosEntryId:t,gyosRoutes:{...n.gyosRoutes||{},[e]:d}},""),history.pushState({gyos:!0,gyosEntryId:e,gyosRoutes:{[t]:d}},"",w),r&&(Jn(t,e,r),i={currentEntryId:t,nextEntryId:e}),Dn=e}try{e=await async function(t,e,n,s={}){const r=(n||"inner").toLowerCase(),i=document.importNode(e,!0),a=Array.from(i.childNodes);let o;if("replace"===r)h(),t.replaceWith(i),o=i;else if("morph"===r)h(),t.tagName!==i.tagName?(t.replaceWith(i),o=i):(function(t,e){const n=t=>t instanceof Element&&!!t.closest("[g-persist]"),s=t=>t?.nodeType===Node.COMMENT_NODE&&!!t.nodeValue?.includes("g-persist:"),r=t=>{if(t instanceof Element)return t.getAttribute("g-persist")||null;if(s(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,s=e&&t.checked!==t.defaultChecked;return n||s?{kind:"input",type:t.type,value:n?t.value:void 0,checked:s?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);dn(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=r(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=a(e);if(d&&a(c)!==d){const n=h.findIndex((t,e)=>e>f&&a(t)===d);-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 m=r(e),g=r(c);if(m){if(p.get(m)){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)&&!s(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)||s(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"===r)h(),t.append(...a),o=t;else if("prepend"===r)h(),t.prepend(...a),o=t;else{for(h(),s.syncRootAttributes&&dn(t,i),t.replaceChildren();i.firstChild;)t.appendChild(i.firstChild);o=t}return await(s.beforeScripts?.()),s.onCommitted?.(o,"append"===r||"prepend"===r?a:[o]),"append"===r||"prepend"===r?await on(a,s.signal):await async function(t,e){await on([t],e)}(o,s.signal),o}(e,_,n,{syncRootAttributes:l,signal:s.controller.signal,beforeScripts:async()=>{if(!l||f)return;const t=b.querySelector("title");t&&(document.title=t.textContent||document.title),await async function(t,e){const n="meta, link, style:not(#gyos-transitions), script",s=Array.from(document.head.querySelectorAll(n)),r=Array.from(t.head.querySelectorAll(n));await wn(s,r,document.head,e)}(b,s.controller.signal),Zn(s)},onCommitted:(t,n)=>{e=t,a=n}}),Zn(s),l&&(await async function(t,e,n,s){const r=Array.from(document.scripts).filter(t=>!e.contains(t)&&!document.head.contains(t)),i=Array.from(t.scripts).filter(e=>!n.contains(e)&&!t.head.contains(e));await wn(r,i,document.body,s)}(b,e,_,s.controller.signal),Zn(s))}finally{(()=>{if(o)return;o=!0;const t=a.filter(t=>t instanceof HTMLElement&&t.isConnected);!function(t){if(!ln.size)return;if(1===ln.size){const e=Array.from(ln.keys())[0];fn(t).forEach(t=>{hn(t,!1)||(t.dataset.gyosPersistId=e)})}fn(t).forEach(t=>{const e=hn(t,!1);if(!e)return;const n=ln.get(e);n?(t.replaceWith(n),ln.delete(e)):t.dataset.gyosPersistId=e});const e=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,null),n=[];for(;e.nextNode();){const t=e.currentNode,s=t.data.match(/g-persist[:=]\s*([A-Za-z0-9_\-:.]+)/);s&&n.push({node:t,key:s[1]})}n.forEach(({node:t,key:e})=>{const n=ln.get(e);n&&(t.replaceWith(n),ln.delete(e))})}(e),i&&Jn(i.nextEntryId,i.currentEntryId,e),Be(t.length>0?t:void 0)})()}if(C)mn(w,t.trigger);else if(t.popstate)mn(w,t.trigger,t.savedScroll);else{const e=history.state;mn(w,t.trigger,e?.scroll)}};if(document.startViewTransition){const t=document.startViewTransition(()=>A());es(t?.ready),es(t?.finished),t?.updateCallbackDone&&await t.updateCallbackDone}else await A();Zn(s),o&&t.trigger instanceof HTMLElement&&t.trigger.isConnected&&(ae(t.trigger),t.trigger.remove()),r&&Ke(s.spinner),s.spinner=null,ns(jn,w),h(),Rn=zn(C?w:window.location.href,!0),t.popstate&&t.historyEntryId&&(Dn=t.historyEntryId)}catch(e){if("AbortError"===e.name)return void h();Xn(s)&&rs(t,t.url,!0)}finally{s.interval&&clearInterval(s.interval),s.spinner&&Ke(s.spinner),Bn?.id===s.id&&(Bn=null,Fn?.complete()),s.resolveDone()}var a}function as(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 s;try{s=new URL(e,window.location.href)}catch{return}if(s.origin===window.location.origin)try{const e=K(t),r=W(decodeURIComponent(t.getAttribute("g-router-params")||""),e,!1);is({url:s.toString(),method:n,trigger:t,jsonData:r,changeState:!1})}catch(t){return}}(n)}const s=e.closest("a");if(!s)return;const r=s.getAttribute("href");if(!r)return;const i=new URL(r,window.location.href);var a;i.origin===window.location.origin&&(i.hash&&zn(i.href)===zn(window.location.href)||s.closest("[g-no-boost]")||s.hasAttribute("download")||s.getAttribute("target")&&"_self"!==s.getAttribute("target")||(a=s).closest("[g-no-boost]")||!a.hasAttribute("g-boost")&&!$n()||(t.preventDefault(),is({url:i.toString(),method:"GET",trigger:s,changeState:!0})))}function os(t){const e=t.target;if(!e)return;const n=e.closest("a[g-preload]");if(!n)return;const s=n.getAttribute("href");if(!s)return;const r=new URL(s,window.location.href);r.origin===window.location.origin&&function(t){const e=zn(t,!0);if(In.has(e))return;h();const n=new AbortController,s=fetch(e,{headers:{"X-Gyos-Boost":"1",Accept:"text/html,application/xhtml+xml"},signal:n.signal,mode:"same-origin"});In.set(e,s),Tn.set(e,n),s.catch(()=>{In.delete(e),Tn.delete(e)})}(r.toString())}function cs(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")&&!$n())return;if(function(t){return!(!qt.has(t)||Ht.has(t)&&(Ht.delete(t),1))}(e))return;t.preventDefault();const n=e.action||window.location.href,s=(e.method||"GET").toUpperCase(),r=new URL(n,window.location.href);if(r.origin!==window.location.origin)return void(window.location.href=r.toString());const i=new FormData(e);is({url:r.toString(),method:s,trigger:e,form:e,formData:i,changeState:"GET"===s})}function ls(t){const e=window.location.href,n=Dn,s=t.state||{},r=s.gyosEntryId||null,i=n?s.gyosRoutes?.[n]:void 0;if(zn(e)===zn(Rn)&&(!r||r===n))return Rn=zn(e,!0),void(Dn=r||n);t.preventDefault(),Bn?.committing&&ts(Bn),Dn=r,is({url:e,method:"GET",replace:!0,changeState:!1,popstate:!0,savedScroll:(r?Nn.get(r):void 0)||s.scroll,targetSelector:i?.targetSelector,targetOutletIndex:i?.targetOutletIndex,swapMode:i?.swapMode,currentHead:i?.currentHead,historyFragment:n&&r?Qn(r,n):void 0,historyEntryId:r,scrollSourceEntryId:n})}const us={scope:function(t,e){if(t instanceof HTMLElement){const n=Math.random().toString(36);return t.setAttribute("g-scope",n),void Re.set(n,e)}Re.set(t,e)},mount:Ue,mountAll:Be,mountTree:Fe,cleanup:ae,mountedScopes:z,markRaw:function(t){return t.hasOwnProperty(be)||Reflect.defineProperty(t,be,{value:!0,enumerable:!1}),t},shallow:function(t){return t.hasOwnProperty(we)||Reflect.defineProperty(t,we,{value:!0,enumerable:!1}),t},directive:gt,pipe:R,provide:function(t,e){L.set(t,e)},inject:function(t,e){if(L.has(t))return L.get(t);if(void 0!==e)return e;throw Error(`[GyosJS] Service "${t}" not found in DI container`)},getGlobalContainer:function(){return L},store:function(t,e){if(e){const s=ke(e);return(n=s).hasOwnProperty(ve)||Reflect.defineProperty(n,ve,{value:!0,enumerable:!1}),qe.set(t,s),s}var n;const s=qe.get(t);if(!s)throw Error(`[GyosJS] Store "${t}" not found`);return s},hasStore:function(t){return qe.has(t)},removeStore:function(t){qe.delete(t)},getStoreNames:function(){return Array.from(qe.keys())},on:Ge,emit:function(t,...e){const n=He.get(t);n&&n.forEach(t=>{try{t(...e)}catch(t){}})},off:ze,once:function(t,e){const n=(...s)=>{e(...s),ze(t,n)};return Ge(t,n)},getEventListeners:function(){const t={};return He.forEach((e,n)=>{t[n]=e.size}),t},clearAllEvents:function(){He.clear()},validator:Wt,validate:$t,getValidator:function(t){return jt.get(t)},getValidatorNames:function(){return Array.from(jt.keys())},signal:E,computed:S,effect:k,batch:C,isSignal:A,isComputed:function(t){return t&&"function"==typeof t&&"value"in t&&"peek"in t&&"__gyos_computed__"in t},unref:T,untrack:N,registerTransition:function(t,e){vt[t]=e},getTransitionConfig:function(t){if("string"==typeof t)return vt[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=vt[n];if(!t)return vt.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=E(null),n=E(!0),s=E(null),r=async()=>{n.value=!0,s.value=null,e.value=null;try{const n="function"==typeof t?await t():t,s="string"==typeof n?await fetch(n):n;if(!s.ok)throw Error("HTTP error! status: "+s.status);e.value=await s.json()}catch(t){s.value=t}finally{n.value=!1}};return{data:e,loading:n,error:s,refetch:r,onMount:r}},useCounter:function(t=0){const e=E(t),n=S(()=>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=E(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),s=E(n?JSON.parse(n):e??""),r=s.subscribe(()=>localStorage.setItem(t,JSON.stringify(s.value)));return{state:s,remove:()=>localStorage.removeItem(t),onUnmount:r}},useInterval:function(t,e){let n=null;const s=()=>{r(),null!==e&&(n=setInterval(t,e))},r=()=>{null!==n&&(clearInterval(n),n=null)};return{start:s,stop:r,onMount:()=>s(),onUnmount:()=>r(),restart:()=>{r(),s()}}},useTimeout:function(t,e){let n=null;const s=()=>{r(),n=setTimeout(()=>{n=null,t()},e)},r=()=>{null!==n&&(clearTimeout(n),n=null)};return{start:s,clear:r,onMount:()=>s(),onUnmount:()=>r()}},useDebounce:function(t="",e){const n=E(t),s=E(t);let r=null;const i=k(()=>{const t=n.value;null!==r&&clearTimeout(r),r=setTimeout(()=>{s.value=t},e)});return{value:n,debounced:S(()=>s.value),onUnmount:()=>{i(),null!==r&&clearTimeout(r)}}},useThrottle:function(t="",e){const n=E(t),s=E(t);let r=0;const i=k(()=>{const t=n.value,i=Date.now();e>i-r||(r=i,s.value=t)});return{value:n,throttled:S(()=>s.value),onUnmount:()=>{i()}}},useMouse:function(){const t=E(0),e=E(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=E(window.innerWidth),e=E(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={},s={},r=Object.keys(t);for(const i of r){const r=window.matchMedia(t[i]);n[i]=r,e[i]=E(r.matches),s[i]=t=>{e[i].value=t.matches}}return{matches:e,onMount:()=>{for(const t of r){const e=n[t],r=s[t];e.addEventListener?e.addEventListener("change",r):e.addListener(r)}},onUnmount:()=>{for(const t of r){const e=n[t],r=s[t];e.removeEventListener?e.removeEventListener("change",r):e.removeListener(r)}}}},useAsync:function(t,e=!0){const n=E(null),s=E(!1),r=E(null),i=async()=>{s.value=!0,r.value=null;try{n.value=await t()}catch(t){r.value=t}finally{s.value=!1}};return{data:n,loading:s,error:r,execute:i,onMount:()=>{e&&i()}}},nextTick:function(t){Promise.resolve().then(t)},debounce:function(t,e){let n=null;return(...s)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}},throttle:function(t,e){let n=0;return(...s)=>{const r=Date.now();e>r-n||(n=r,t(...s))}},ready:e,applyDirective:function(t,e,n,s){const r=mt.get(e);if(!r)return()=>{};const i={value:n,oldValue:void 0,arg:s};return r.mounted&&r.mounted(t,i),()=>{r.unmounted&&r.unmounted(t)}},applyTransitionStyles:function(){if("undefined"==typeof document)return;if("csp"===U())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:Wn,onBeforeNavigate:function(t){Un.push(t)},onAfterNavigate:function(t){jn.push(t)},portalCreate:Ft,portalDestroy:Ut,setCspNonce:Qe,version:"0.3.1"};var hs=[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],ps=[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],fs="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ds={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"},ms="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",gs={5:ms,"5module":ms+" export import",6:ms+" const class extends export import super"},ys=/^in(stanceof)?$/,vs=RegExp("["+fs+"]"),xs=RegExp("["+fs+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function bs(t,e){for(var n=65536,s=0;s<e.length;s+=2){if((n+=e[s])>t)return!1;if((n+=e[s+1])>=t)return!0}return!1}function _s(t,e){return 65>t?36===t:91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&bs(t,ps):t>=170&&vs.test(String.fromCharCode(t))))}function ws(t,e){return 48>t?36===t:58>t||t>=65&&(91>t||(97>t?95===t:123>t||(t>65535?!1!==e&&(bs(t,ps)||bs(t,hs)):t>=170&&xs.test(String.fromCharCode(t)))))}var Es=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 Ss(t,e){return new Es(t,{beforeExpr:!0,binop:e})}var ks={beforeExpr:!0},Cs={startsExpr:!0},As={};function Is(t,e){return void 0===e&&(e={}),e.keyword=t,As[t]=new Es(t,e)}var Ts={num:new Es("num",Cs),regexp:new Es("regexp",Cs),string:new Es("string",Cs),name:new Es("name",Cs),privateId:new Es("privateId",Cs),eof:new Es("eof"),bracketL:new Es("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Es("]"),braceL:new Es("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Es("}"),parenL:new Es("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Es(")"),comma:new Es(",",ks),semi:new Es(";",ks),colon:new Es(":",ks),dot:new Es("."),question:new Es("?",ks),questionDot:new Es("?."),arrow:new Es("=>",ks),template:new Es("template"),invalidTemplate:new Es("invalidTemplate"),ellipsis:new Es("...",ks),backQuote:new Es("`",Cs),dollarBraceL:new Es("${",{beforeExpr:!0,startsExpr:!0}),eq:new Es("=",{beforeExpr:!0,isAssign:!0}),assign:new Es("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Es("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Es("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ss("||",1),logicalAND:Ss("&&",2),bitwiseOR:Ss("|",3),bitwiseXOR:Ss("^",4),bitwiseAND:Ss("&",5),equality:Ss("==/!=/===/!==",6),relational:Ss("</>/<=/>=",7),bitShift:Ss("<</>>/>>>",8),plusMin:new Es("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ss("%",10),star:Ss("*",10),slash:Ss("/",10),starstar:new Es("**",{beforeExpr:!0}),coalesce:Ss("??",1),_break:Is("break"),_case:Is("case",ks),_catch:Is("catch"),_continue:Is("continue"),_debugger:Is("debugger"),_default:Is("default",ks),_do:Is("do",{isLoop:!0,beforeExpr:!0}),_else:Is("else",ks),_finally:Is("finally"),_for:Is("for",{isLoop:!0}),_function:Is("function",Cs),_if:Is("if"),_return:Is("return",ks),_switch:Is("switch"),_throw:Is("throw",ks),_try:Is("try"),_var:Is("var"),_const:Is("const"),_while:Is("while",{isLoop:!0}),_with:Is("with"),_new:Is("new",{beforeExpr:!0,startsExpr:!0}),_this:Is("this",Cs),_super:Is("super",Cs),_class:Is("class",Cs),_extends:Is("extends",ks),_export:Is("export"),_import:Is("import",Cs),_null:Is("null",Cs),_true:Is("true",Cs),_false:Is("false",Cs),_in:Is("in",{beforeExpr:!0,binop:7}),_instanceof:Is("instanceof",{beforeExpr:!0,binop:7}),_typeof:Is("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Is("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Is("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ns=/\r\n?|\n|\u2028|\u2029/,Ps=RegExp(Ns.source,"g");function Ls(t){return 10===t||13===t||8232===t||8233===t}function Ms(t,e,n){void 0===n&&(n=t.length);for(var s=e;n>s;s++){var r=t.charCodeAt(s);if(Ls(r))return n-1>s&&13===r&&10===t.charCodeAt(s+1)?s+2:s+1}return-1}var Vs=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Os=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Rs=Object.prototype,Ds=Rs.hasOwnProperty,Bs=Rs.toString,Fs=Object.hasOwn||function(t,e){return Ds.call(t,e)},Us=Array.isArray||function(t){return"[object Array]"===Bs.call(t)},js=Object.create(null);function Ws(t){return js[t]||(js[t]=RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function $s(t){return t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t)}var qs=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Hs=function(t,e){this.line=t,this.column=e};Hs.prototype.offset=function(t){return new Hs(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 zs(t,e){for(var n=1,s=0;;){var r=Ms(t,s,e);if(0>r)return new Hs(n,e-s);++n,s=r}}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},Ks=!1;function Js(t,e){return 2|(t?4:0)|(e?8:0)}var Qs=function(t,e,n){this.options=t=function(t){var e={};for(var n in Ys)e[n]=t&&Fs(t,n)?t[n]:Ys[n];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!Ks&&"object"==typeof console&&console.warn&&(Ks=!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 s=e.onToken;e.onToken=function(t){return s.push(t)}}if(Us(e.onComment)&&(e.onComment=function(t,e){return function(n,s,r,i,a,o){var c={type:n?"Block":"Line",value:s,start:r,end:i};t.locations&&(c.loc=new Gs(this,a,o)),t.ranges&&(c.range=[r,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=Ws(gs[6>t.ecmaVersion?"module"===t.sourceType?"5module":5:6]);var s="";!0!==t.allowReserved&&(s=ds[6>t.ecmaVersion?5===t.ecmaVersion?5:3:6],"module"===t.sourceType&&(s+=" await")),this.reservedWords=Ws(s);var r=(s?s+" ":"")+ds.strict;this.reservedWordsStrict=Ws(r),this.reservedWordsStrictBind=Ws(r+" "+ds.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(Ns).length)):this.lineStart=0,this.type=Ts.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=[]},Xs={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}};Qs.prototype.parse=function(){var t=this,e=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(e)})},Xs.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Xs.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Xs.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Xs.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},Xs.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Xs.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Xs.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Xs.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Xs.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},Xs.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t||!this.inModule&&1&t)},Xs.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Qs.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,s=0;s<t.length;s++)n=t[s](n);return n},Qs.parse=function(t,e){return new this(e,t).parse()},Qs.parseExpressionAt=function(t,e,n){var s=new this(n,t,e);return s.nextToken(),s.parseExpression()},Qs.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(Qs.prototype,Xs);var Zs=Qs.prototype,tr=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Zs.strictDirective=function(t){if(5>this.options.ecmaVersion)return!1;for(;;){Os.lastIndex=t,t+=Os.exec(this.input)[0].length;var e=tr.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){Os.lastIndex=t+e[0].length;var n=Os.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||Ns.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,Os.lastIndex=t,t+=Os.exec(this.input)[0].length,";"===this.input[t]&&t++}},Zs.eat=function(t){return this.type===t&&(this.next(),!0)},Zs.isContextual=function(t){return this.type===Ts.name&&this.value===t&&!this.containsEsc},Zs.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Zs.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")}},Zs.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Zs.canInsertSemicolon=function(){return this.type===Ts.eof||this.type===Ts.braceR||Ns.test(this.input.slice(this.lastTokEnd,this.start))},Zs.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Zs.semicolon=function(){this.eat(Ts.semi)||this.insertSemicolon()||this.unexpected()},Zs.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Zs.expect=function(t){this.eat(t)||this.unexpected()},Zs.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var er=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Zs.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")}},Zs.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,s=t.doubleProto;if(!e)return n>=0||s>=0;0>n||this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),0>s||this.raiseRecoverable(s,"Redefinition of __proto__ property")},Zs.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")},Zs.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var nr=Qs.prototype;nr.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==Ts.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var i=r[s];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 sr={kind:"loop"},rr={kind:"switch"};nr.isLet=function(t){if(6>this.options.ecmaVersion||!this.isContextual("let"))return!1;Os.lastIndex=this.pos;var e=Os.exec(this.input),n=this.pos+e[0].length,s=this.fullCharCodeAt(n);if(91===s||92===s)return!0;if(t)return!1;if(123===s)return!0;if(_s(s)){var r=n;do{n+=s>65535?2:1}while(ws(s=this.fullCharCodeAt(n)));if(92===s)return!0;var i=this.input.slice(r,n);if(!ys.test(i))return!0}return!1},nr.isAsyncFunction=function(){if(8>this.options.ecmaVersion||!this.isContextual("async"))return!1;Os.lastIndex=this.pos;var t,e=Os.exec(this.input),n=this.pos+e[0].length;return!(Ns.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(ws(t=this.fullCharCodeAt(n+8))||92===t))},nr.isUsingKeyword=function(t,e){if(17>this.options.ecmaVersion||!this.isContextual(t?"await":"using"))return!1;Os.lastIndex=this.pos;var n=Os.exec(this.input),s=this.pos+n[0].length;if(Ns.test(this.input.slice(this.pos,s)))return!1;if(t){var r,i=s+5;if("using"!==this.input.slice(s,i)||i===this.input.length||ws(r=this.fullCharCodeAt(i))||92===r)return!1;Os.lastIndex=i;var a=Os.exec(this.input);if(s=i+a[0].length,a&&Ns.test(this.input.slice(i,s)))return!1}var o=this.fullCharCodeAt(s);if(!_s(o)&&92!==o)return!1;var c=s;do{s+=o>65535?2:1}while(ws(o=this.fullCharCodeAt(s)));if(92===o)return!0;var l=this.input.slice(c,s);return!(ys.test(l)||e&&!t&&"of"===l&&(Os.lastIndex=s,s+=Os.exec(this.input)[0].length,61!==this.input.charCodeAt(s)||61===(o=this.input.charCodeAt(s+1))||62===o))},nr.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},nr.isUsing=function(t){return this.isUsingKeyword(!1,t)},nr.parseStatement=function(t,e,n){var s,r=this.type,i=this.startNode();switch(this.isLet(t)&&(r=Ts._var,s="let"),r){case Ts._break:case Ts._continue:return this.parseBreakContinueStatement(i,r.keyword);case Ts._debugger:return this.parseDebuggerStatement(i);case Ts._do:return this.parseDoStatement(i);case Ts._for:return this.parseForStatement(i);case Ts._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case Ts._class:return t&&this.unexpected(),this.parseClass(i,!0);case Ts._if:return this.parseIfStatement(i);case Ts._return:return this.parseReturnStatement(i);case Ts._switch:return this.parseSwitchStatement(i);case Ts._throw:return this.parseThrowStatement(i);case Ts._try:return this.parseTryStatement(i);case Ts._const:case Ts._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(i,s);case Ts._while:return this.parseWhileStatement(i);case Ts._with:return this.parseWithStatement(i);case Ts.braceL:return this.parseBlock(!0,i);case Ts.semi:return this.parseEmptyStatement(i);case Ts._export:case Ts._import:if(this.options.ecmaVersion>10&&r===Ts._import){Os.lastIndex=this.pos;var a=Os.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'")),r===Ts._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 r===Ts.name&&"Identifier"===h.type&&this.eat(Ts.colon)?this.parseLabeledStatement(i,u,h,t):this.parseExpressionStatement(i,h)}},nr.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Ts.semi)||this.insertSemicolon()?t.label=null:this.type!==Ts.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(t.label&&n)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},nr.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},nr.parseDoStatement=function(t){return this.next(),this.labels.push(sr),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(Ts._while),t.test=this.parseParenExpression(),6>this.options.ecmaVersion?this.semicolon():this.eat(Ts.semi),this.finishNode(t,"DoWhileStatement")},nr.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sr),this.enterScope(0),this.expect(Ts.parenL),this.type===Ts.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Ts._var||this.type===Ts._const||n){var s=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,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 er,h=this.start,p=e>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===Ts._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===Ts._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))},nr.parseForAfterInit=function(t,e,n){return(this.type===Ts._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.type===Ts._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))},nr.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,ar|(n?0:or),!1,e)},nr.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(Ts._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},nr.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Ts.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},nr.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Ts.braceL),this.labels.push(rr),this.enterScope(1024);for(var n=!1;this.type!==Ts.braceR;)if(this.type===Ts._case||this.type===Ts._default){var s=this.type===Ts._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Ts.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")},nr.parseThrowStatement=function(t){return this.next(),Ns.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 ir=[];nr.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(Ts.parenR),t},nr.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Ts._catch){var e=this.startNode();this.next(),this.eat(Ts.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(Ts._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},nr.parseVarStatement=function(t,e,n){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")},nr.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(sr),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},nr.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")},nr.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},nr.parseLabeledStatement=function(t,e,n,s){for(var r=0,i=this.labels;r<i.length;r+=1)i[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===Ts._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(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},nr.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},nr.parseBlock=function(t,e,n){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(Ts.braceL),t&&this.enterScope(0);this.type!==Ts.braceR;){var s=this.parseStatement(null);e.body.push(s)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},nr.parseFor=function(t,e){return t.init=e,this.expect(Ts.semi),t.test=this.type===Ts.semi?null:this.parseExpression(),this.expect(Ts.semi),t.update=this.type===Ts.parenR?null:this.parseExpression(),this.expect(Ts.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},nr.parseForIn=function(t,e){var n=this.type===Ts._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(Ts.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")},nr.parseVar=function(t,e,n,s){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Ts.eq)?r.init=this.parseMaybeAssign(e):s||"const"!==n||this.type===Ts._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==n&&"await using"!==n||17>this.options.ecmaVersion||this.type===Ts._in||this.isContextual("of")?s||"Identifier"===r.id.type||e&&(this.type===Ts._in||this.isContextual("of"))?r.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(r,"VariableDeclarator")),!this.eat(Ts.comma))break}return t},nr.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 ar=1,or=2;function cr(t,e){var n=e.key.name,s=t[n],r="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(r=(e.static?"s":"i")+e.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(t[n]="true",!1):!!s||(t[n]=r,!1)}function lr(t,e){var n=t.computed,s=t.key;return!n&&("Identifier"===s.type&&s.name===e||"Literal"===s.type&&s.value===e)}nr.parseFunction=function(t,e,n,s,r){this.initFunction(t),9>this.options.ecmaVersion&&(6>this.options.ecmaVersion||s)||(this.type===Ts.star&&e&or&&this.unexpected(),t.generator=this.eat(Ts.star)),8>this.options.ecmaVersion||(t.async=!!s),e&ar&&(t.id=4&e&&this.type!==Ts.name?null:this.parseIdent(),!t.id||e&or||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(Js(t.async,t.generator)),e&ar||(t.id=this.type===Ts.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&ar?"FunctionDeclaration":"FunctionExpression")},nr.parseFunctionParams=function(t){this.expect(Ts.parenL),t.params=this.parseBindingList(Ts.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},nr.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),i=!1;for(r.body=[],this.expect(Ts.braceL);this.type!==Ts.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(r.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&&cr(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},nr.parseClassElement=function(t){if(this.eat(Ts.semi))return null;var e=this.options.ecmaVersion,n=this.startNode(),s="",r=!1,i=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(Ts.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Ts.star?o=!0:s="static"}if(n.static=o,s||8>e||!this.eatContextual("async")||(!this.isClassElementNameStart()&&this.type!==Ts.star||this.canInsertSemicolon()?s="async":i=!0),s||9>e&&i||!this.eat(Ts.star)||(r=!0),!s&&!i&&!r){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:s=c)}if(s?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=s,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),13>e||this.type===Ts.parenL||"method"!==a||r||i){var l=!n.static&&lr(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,r,i,u)}else this.parseClassField(n);return n},nr.isClassElementNameStart=function(){return this.type===Ts.name||this.type===Ts.privateId||this.type===Ts.num||this.type===Ts.string||this.type===Ts.bracketL||this.type.keyword},nr.parseClassElementName=function(t){this.type===Ts.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)},nr.parseClassMethod=function(t,e,n,s){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):t.static&&lr(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var i=t.value=this.parseMethod(e,n,s);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")},nr.parseClassField=function(t){return lr(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&lr(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Ts.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},nr.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Ts.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},nr.parseClassId=function(t,e){this.type===Ts.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},nr.parseClassSuper=function(t){t.superClass=this.eat(Ts._extends)?this.parseExprSubscripts(null,!1):null},nr.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},nr.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],i=0;i<n.length;++i){var a=n[i];Fs(e,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},nr.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!==Ts.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},nr.parseExport=function(t,e){if(this.next(),this.eat(Ts.star))return this.parseExportAllDeclaration(t,e);if(this.eat(Ts._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!==Ts.string&&this.unexpected(),t.source=this.parseExprAtom(),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause());else{for(var n=0,s=t.specifiers;n<s.length;n+=1){var r=s[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.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")},nr.parseExportDeclaration=function(t){return this.parseStatement(null)},nr.parseExportDefaultDeclaration=function(){var t;if(this.type===Ts._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|ar,!1,t)}if(this.type===Ts._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},nr.checkExport=function(t,e,n){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),Fs(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},nr.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e,e.start);else if("ObjectPattern"===n)for(var s=0,r=e.properties;s<r.length;s+=1){var i=r[s];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)},nr.checkVariableExport=function(t,e){if(t)for(var n=0,s=e;n<s.length;n+=1){var r=s[n];this.checkPatternExport(t,r.id)}},nr.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},nr.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")},nr.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(Ts.braceL);!this.eat(Ts.braceR);){if(n)n=!1;else if(this.expect(Ts.comma),this.afterTrailingComma(Ts.braceR))break;e.push(this.parseExportSpecifier(t))}return e},nr.parseImport=function(t){return this.next(),this.type===Ts.string?(t.specifiers=ir,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Ts.string?this.parseExprAtom():this.unexpected()),16>this.options.ecmaVersion||(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},nr.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")},nr.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},nr.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")},nr.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Ts.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(Ts.comma)))return t;if(this.type===Ts.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(Ts.braceL);!this.eat(Ts.braceR);){if(e)e=!1;else if(this.expect(Ts.comma),this.afterTrailingComma(Ts.braceR))break;t.push(this.parseImportSpecifier())}return t},nr.parseWithClause=function(){var t=[];if(!this.eat(Ts._with))return t;this.expect(Ts.braceL);for(var e={},n=!0;!this.eat(Ts.braceR);){if(n)n=!1;else if(this.expect(Ts.comma),this.afterTrailingComma(Ts.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Fs(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},nr.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===Ts.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Ts.colon),this.type!==Ts.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},nr.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Ts.string){var t=this.parseLiteral(this.value);return qs.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},nr.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)},nr.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 ur=Qs.prototype;ur.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 s=0,r=t.properties;s<r.length;s+=1){var i=r[s];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},ur.toAssignableList=function(t,e){for(var n=t.length,s=0;n>s;s++){var r=t[s];r&&this.toAssignable(r,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},ur.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},ur.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Ts.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},ur.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Ts.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Ts.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Ts.braceL:return this.parseObj(!0)}return this.parseIdent()},ur.parseBindingList=function(t,e,n,s){for(var r=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(Ts.comma),e&&this.type===Ts.comma)r.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===Ts.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===Ts.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},ur.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},ur.parseBindingListItem=function(t){return t},ur.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),6>this.options.ecmaVersion||!this.eat(Ts.eq))return n;var s=this.startNodeAt(t,e);return s.left=n,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},ur.checkLValSimple=function(t,e,n){void 0===e&&(e=0);var s=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(Fs(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":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,n);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},ur.checkLValPattern=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var i=r[s];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)}},ur.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 hr=function(t,e,n,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=s,this.generator=!!r},pr={b_stat:new hr("{",!1),b_expr:new hr("{",!0),b_tmpl:new hr("${",!1),p_stat:new hr("(",!1),p_expr:new hr("(",!0),q_tmpl:new hr("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new hr("function",!1),f_expr:new hr("function",!0),f_expr_gen:new hr("function",!0,!1,null,!0),f_gen:new hr("function",!1,!1,null,!0)},fr=Qs.prototype;fr.initialContext=function(){return[pr.b_stat]},fr.curContext=function(){return this.context[this.context.length-1]},fr.braceIsBlock=function(t){var e=this.curContext();return e===pr.f_expr||e===pr.f_stat||(t!==Ts.colon||e!==pr.b_stat&&e!==pr.b_expr?t===Ts._return||t===Ts.name&&this.exprAllowed?Ns.test(this.input.slice(this.lastTokEnd,this.start)):t===Ts._else||t===Ts.semi||t===Ts.eof||t===Ts.parenR||t===Ts.arrow||(t===Ts.braceL?e===pr.b_stat:t!==Ts._var&&t!==Ts._const&&t!==Ts.name&&!this.exprAllowed):!e.isExpr)},fr.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},fr.updateContext=function(t){var e,n=this.type;n.keyword&&t===Ts.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},fr.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},Ts.parenR.updateContext=Ts.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===pr.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Ts.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?pr.b_stat:pr.b_expr),this.exprAllowed=!0},Ts.dollarBraceL.updateContext=function(){this.context.push(pr.b_tmpl),this.exprAllowed=!0},Ts.parenL.updateContext=function(t){var e=t===Ts._if||t===Ts._for||t===Ts._with||t===Ts._while;this.context.push(e?pr.p_stat:pr.p_expr),this.exprAllowed=!0},Ts.incDec.updateContext=function(){},Ts._function.updateContext=Ts._class.updateContext=function(t){!t.beforeExpr||t===Ts._else||t===Ts.semi&&this.curContext()!==pr.p_stat||t===Ts._return&&Ns.test(this.input.slice(this.lastTokEnd,this.start))||(t===Ts.colon||t===Ts.braceL)&&this.curContext()===pr.b_stat?this.context.push(pr.f_stat):this.context.push(pr.f_expr),this.exprAllowed=!1},Ts.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Ts.backQuote.updateContext=function(){this.curContext()===pr.q_tmpl?this.context.pop():this.context.push(pr.q_tmpl),this.exprAllowed=!1},Ts.star.updateContext=function(t){if(t===Ts._function){var e=this.context.length-1;this.context[e]===pr.f_expr?this.context[e]=pr.f_expr_gen:this.context[e]=pr.f_gen}this.exprAllowed=!0},Ts.name.updateContext=function(t){var e=!1;6>this.options.ecmaVersion||t===Ts.dot||("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var dr=Qs.prototype;function mr(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&mr(t.expression)}function gr(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&gr(t.expression)||"ParenthesizedExpression"===t.type&&gr(t.expression)}dr.checkPropClash=function(t,e,n){if((9>this.options.ecmaVersion||"SpreadElement"!==t.type)&&(6>this.options.ecmaVersion||!(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=r.value+"";break;default:return}var i=t.kind;if(6>this.options.ecmaVersion){var a=e[s="$"+s];a?("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[s]={init:!1,get:!1,set:!1},a[i]=!0}else"__proto__"===s&&"init"===i&&(e.proto&&(n?0>n.doubleProto&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0)}},dr.parseExpression=function(t,e){var n=this;return this.catchStackOverflow(function(){var s=n.start,r=n.startLoc,i=n.parseMaybeAssign(t,e);if(n.type===Ts.comma){var a=n.startNodeAt(s,r);for(a.expressions=[i];n.eat(Ts.comma);)a.expressions.push(n.parseMaybeAssign(t,e));return n.finishNode(a,"SequenceExpression")}return i})},dr.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,i=-1,a=-1;e?(r=e.parenthesizedAssign,i=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new er,s=!0);var o=this.start,c=this.startLoc;this.type!==Ts.parenL&&this.type!==Ts.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===Ts.eq&&(l=this.toAssignable(l,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign<l.start||(e.shorthandAssign=-1),this.type===Ts.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 s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),i>-1&&(e.trailingComma=i),l},dr.parseMaybeConditional=function(t,e){var n=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(("ArrowFunctionExpression"!==r.type||r.start!==n)&&this.eat(Ts.question)){var i=this.startNodeAt(n,s);return i.test=r,i.consequent=this.parseMaybeAssign(),this.expect(Ts.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return r},dr.parseExprOps=function(t,e){var n=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,s,-1,t)},dr.parseExprOp=function(t,e,n,s,r){var i=this.type.binop;if(null!=i&&(!r||this.type!==Ts._in)&&i>s){var a=this.type===Ts.logicalOR||this.type===Ts.logicalAND,o=this.type===Ts.coalesce;o&&(i=Ts.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),l,u,i,r),p=this.buildBinary(e,n,t,h,c,a||o);return(a&&this.type===Ts.coalesce||o&&(this.type===Ts.logicalOR||this.type===Ts.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,n,s,r)}return t},dr.buildBinary=function(t,e,n,s,r,i){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=n,a.operator=r,a.right=s,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},dr.parseMaybeUnary=function(t,e,n,s){var r,i=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===Ts.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,s),this.checkExpressionErrors(t,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&mr(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&gr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==Ts.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(l,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==Ts._in&&this.unexpected();return n||"ArrowFunctionExpression"===r.type&&r.start===i||!this.eat(Ts.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(i,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},dr.parseExprSubscripts=function(t,e){var n=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,n,s,!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},dr.parseSubscripts=function(t,e,n,s,r){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,s,i,a,r);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}},dr.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Ts.arrow)},dr.parseSubscriptAsyncArrow=function(t,e,n,s){return this.parseArrowExpression(this.startNodeAt(t,e),n,!0,s)},dr.parseSubscript=function(t,e,n,s,r,i,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(Ts.questionDot);s&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(Ts.bracketL);if(l||c&&this.type!==Ts.parenL&&this.type!==Ts.backQuote||this.eat(Ts.dot)){var u=this.startNodeAt(e,n);u.object=t,l?(u.property=this.parseExpression(),this.expect(Ts.bracketR)):this.type===Ts.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(!s&&this.eat(Ts.parenL)){var h=new er,p=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(Ts.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!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===Ts.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},dr.parseExprAtom=function(t,e,n){this.type===Ts.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Ts._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Ts.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Ts.dot&&this.type!==Ts.bracketL&&this.type!==Ts.parenL&&this.unexpected(),this.finishNode(s,"Super");case Ts._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Ts.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(Ts._function))return this.overrideContext(pr.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(Ts.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[c],!1,e);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===Ts.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Ts.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[c],!0,e)}return c;case Ts.regexp:var l=this.value;return(s=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},s;case Ts.num:case Ts.string:return this.parseLiteral(this.value);case Ts._null:case Ts._true:case Ts._false:return(s=this.startNode()).value=this.type===Ts._null?null:this.type===Ts._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Ts.parenL:var u=this.start,h=this.parseParenAndDistinguishExpression(r,e);return t&&(0>t.parenthesizedAssign&&!this.isSimpleAssignTarget(h)&&(t.parenthesizedAssign=u),0>t.parenthesizedBind&&(t.parenthesizedBind=u)),h;case Ts.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Ts.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case Ts.braceL:return this.overrideContext(pr.b_expr),this.parseObj(!1,t);case Ts._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Ts._class:return this.parseClass(this.startNode(),!1);case Ts._new:return this.parseNew();case Ts.backQuote:return this.parseTemplate();case Ts._import:return 11>this.options.ecmaVersion?this.unexpected():this.parseExprImport(n);default:return this.parseExprAtomDefault()}},dr.parseExprAtomDefault=function(){this.unexpected()},dr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Ts.parenL&&!t)return this.parseDynamicImport(e);if(this.type===Ts.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()},dr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),16>this.options.ecmaVersion){if(!this.eat(Ts.parenR)){var e=this.start;this.eat(Ts.comma)&&this.eat(Ts.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}}else this.eat(Ts.parenR)?t.options=null:(this.expect(Ts.comma),this.afterTrailingComma(Ts.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(Ts.parenR)||(this.expect(Ts.comma),this.afterTrailingComma(Ts.parenR)||this.unexpected())));return this.finishNode(t,"ImportExpression")},dr.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")},dr.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")},dr.parseParenExpression=function(){this.expect(Ts.parenL);var t=this.parseExpression();return this.expect(Ts.parenR),t},dr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},dr.parseParenAndDistinguishExpression=function(t,e){var n,s=this.start,r=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 er,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Ts.parenR;){if(u?u=!1:this.expect(Ts.comma),i&&this.afterTrailingComma(Ts.parenR,!0)){h=!0;break}if(this.type===Ts.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===Ts.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(Ts.parenR),t&&this.shouldParseArrow(l)&&this.eat(Ts.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(s,r,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(s,r);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},dr.parseParenItem=function(t){return t},dr.parseParenArrowList=function(t,e,n,s){return this.parseArrowExpression(this.startNodeAt(t,e),n,!1,s)};var yr=[];dr.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===Ts.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 s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),"Super"===t.callee.type&&this.raiseRecoverable(s,"Invalid use of 'super'"),this.eat(Ts.parenL)?t.arguments=this.parseExprList(Ts.parenR,this.options.ecmaVersion>=8,!1):t.arguments=yr,this.finishNode(t,"NewExpression")},dr.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Ts.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===Ts.backQuote,this.finishNode(n,"TemplateElement")},dr.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 s=this.parseTemplateElement({isTagged:e});for(n.quasis=[s];!s.tail;)this.type===Ts.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Ts.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Ts.braceR),n.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},dr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Ts.name||this.type===Ts.num||this.type===Ts.string||this.type===Ts.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Ts.star)&&!Ns.test(this.input.slice(this.lastTokEnd,this.start))},dr.parseObj=function(t,e){var n=this.startNode(),s=!0,r={};for(n.properties=[],this.next();!this.eat(Ts.braceR);){if(s)s=!1;else if(this.expect(Ts.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Ts.braceR))break;var i=this.parseProperty(t,e);t||this.checkPropClash(i,r,e),n.properties.push(i)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},dr.parseProperty=function(t,e){var n,s,r,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Ts.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===Ts.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===Ts.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)&&(r=this.start,i=this.startLoc),t||(n=this.eat(Ts.star)));var o=this.containsEsc;return this.parsePropertyName(a),t||o||8>this.options.ecmaVersion||n||!this.isAsyncProp(a)?s=!1:(s=!0,n=this.options.ecmaVersion>=9&&this.eat(Ts.star),this.parsePropertyName(a)),this.parsePropertyValue(a,t,n,s,r,i,e,o),this.finishNode(a,"Property")},dr.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 s=t.value.start;"get"===t.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},dr.parsePropertyValue=function(t,e,n,s,r,i,a,o){(n||s)&&this.type===Ts.colon&&this.unexpected(),this.eat(Ts.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):6>this.options.ecmaVersion||this.type!==Ts.parenL?e||o||5>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Ts.comma||this.type===Ts.braceR||this.type===Ts.eq?6>this.options.ecmaVersion||t.computed||"Identifier"!==t.key.type?this.unexpected():((n||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,i,this.copyNode(t.key)):this.type===Ts.eq&&a?(0>a.shorthandAssign&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,i,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):((n||s)&&this.unexpected(),this.parseGetterSetter(t)):(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,s),t.kind="init")},dr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Ts.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Ts.bracketR),t.key;t.computed=!1}return t.key=this.type===Ts.num||this.type===Ts.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},dr.initFunction=function(t){t.id=null,6>this.options.ecmaVersion||(t.generator=t.expression=!1),8>this.options.ecmaVersion||(t.async=!1)},dr.parseMethod=function(t,e,n){var s=this.startNode(),r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),6>this.options.ecmaVersion||(s.generator=t),8>this.options.ecmaVersion||(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Js(e,s.generator)|(n?128:0)),this.expect(Ts.parenL),s.params=this.parseBindingList(Ts.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},dr.parseArrowExpression=function(t,e,n,s){var r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|Js(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,s),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},dr.parseFunctionBody=function(t,e,n,s){var r=e&&this.type!==Ts.braceL,i=this.strict,a=!1;if(r)t.body=this.parseMaybeAssign(s),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()},dr.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},dr.checkParams=function(t,e){for(var n=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var i=r[s];this.checkLValInnerPattern(i,1,e?null:n)}},dr.parseExprList=function(t,e,n,s){for(var r=[],i=!0;!this.eat(t);){if(i)i=!1;else if(this.expect(Ts.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===Ts.comma?a=null:this.type===Ts.ellipsis?(a=this.parseSpread(s),s&&this.type===Ts.comma&&0>s.trailingComma&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},dr.checkUnreserved=function(t){var e=t.start,n=t.end,s=t.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==s||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),6>this.options.ecmaVersion&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},dr.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},dr.parseIdentNode=function(){var t=this.startNode();return this.type===Ts.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=Ts.name):this.unexpected(),t},dr.parsePrivateIdent=function(){var t=this.startNode();return this.type===Ts.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},dr.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===Ts.semi||this.canInsertSemicolon()||this.type!==Ts.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(Ts.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},dr.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 vr=Qs.prototype;vr.raise=function(t,e){var n=zs(this.input,t);e+=" ("+n.line+":"+n.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=n,s.raisedAt=this.pos,s},vr.raiseRecoverable=vr.raise,vr.curPosition=function(){if(this.options.locations)return new Hs(this.curLine,this.pos-this.lineStart)};var xr=Qs.prototype,br=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};xr.enterScope=function(t){this.scopeStack.push(new br(t))},xr.exitScope=function(){this.scopeStack.pop()},xr.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},xr.declareName=function(t,e,n){var s=!1;if(2===e){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var i=this.currentScope();s=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){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}s&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},xr.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},xr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},xr.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},xr.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 _r=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])},wr=Qs.prototype;function Er(t,e,n,s){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=n),t}wr.startNode=function(){return new _r(this,this.start,this.startLoc)},wr.startNodeAt=function(t,e){return new _r(this,t,e)},wr.finishNode=function(t,e){return Er.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},wr.finishNodeAt=function(t,e,n,s){return Er.call(this,t,e,n,s)},wr.copyNode=function(t){var e=new _r(this,t.start,this.startLoc);for(var n in t)e[n]=t[n];return e};var Sr="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",kr=Sr+" Extended_Pictographic",Cr=kr+" EBase EComp EMod EPres ExtPict",Ar={9:Sr,10:kr,11:kr,12:Cr,13:Cr,14:Cr},Ir={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"},Tr="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",Nr="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",Pr=Nr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Lr=Pr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mr=Lr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Vr=Mr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Or={9:Nr,10:Pr,11:Lr,12:Mr,13:Vr,14:Vr+" 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"},Rr={};function Dr(t){var e=Rr[t]={binary:Ws(Ar[t]+" "+Tr),binaryOfStrings:Ws(Ir[t]),nonBinary:{General_Category:Ws(Tr),Script:Ws(Or[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 Br=0,Fr=[9,10,11,12,13,14];Br<Fr.length;Br+=1)Dr(Fr[Br]);var Ur=Qs.prototype,jr=function(t,e){this.parent=t,this.base=e||this};jr.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},jr.prototype.sibling=function(){return new jr(this.parent,this.base)};var Wr=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=Rr[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 $r(t){return 105===t||109===t||115===t}function qr(t){return 36===t||t>=40&&43>=t||46===t||63===t||t>=91&&94>=t||t>=123&&125>=t}function Hr(t){return t>=65&&90>=t||t>=97&&122>=t}function Gr(t){return Hr(t)||95===t}function zr(t){return Gr(t)||Yr(t)}function Yr(t){return t>=48&&57>=t}function Kr(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function Jr(t){return 65>t||t>70?97>t||t>102?t-48:t-97+10:t-65+10}function Qr(t){return t>=48&&55>=t}Wr.prototype.reset=function(t,e,n){var s=-1!==n.indexOf("v"),r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Wr.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Wr.prototype.at=function(t,e){void 0===e&&(e=!1);var n=this.source,s=n.length;if(t>=s)return-1;var r=n.charCodeAt(t);if(!e&&!this.switchU||55295>=r||r>=57344||t+1>=s)return r;var i=n.charCodeAt(t+1);return 56320>i||i>57343?r:(r<<10)+i-56613888},Wr.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var n=this.source,s=n.length;if(t>=s)return s;var r,i=n.charCodeAt(t);return(e||this.switchU)&&i>55295&&57344>i&&s>t+1&&(r=n.charCodeAt(t+1))>=56320&&57343>=r?t+2:t+1},Wr.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},Wr.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Wr.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Wr.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},Wr.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var n=this.pos,s=0,r=t;s<r.length;s+=1){var i=r[s],a=this.at(n,e);if(-1===a||a!==i)return!1;n=this.nextIndex(n,e)}return this.pos=n,!0},Ur.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,s=!1,r=!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&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},Ur.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))},Ur.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 s=n[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},Ur.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new jr(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")},Ur.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},Ur.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)},Ur.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},Ur.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Ur.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Ur.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&s>r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},Ur.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)},Ur.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},Ur.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),s=t.eat(45);if(n||s){for(var r=0;r<n.length;r++){var i=n.charAt(r);n.indexOf(i,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){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},Ur.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},Ur.regexp_eatModifiers=function(t){for(var e="",n=0;-1!==(n=t.current())&&$r(n);)e+=$s(n),t.advance();return e},Ur.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)},Ur.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Ur.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!qr(e)&&(t.lastIntValue=e,t.advance(),!0)},Ur.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!qr(n);)t.advance();return t.pos!==e},Ur.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)},Ur.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 s=0,r=n;s<r.length;s+=1)r[s].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}},Ur.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},Ur.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=$s(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=$s(t.lastIntValue);return!0}return!1},Ur.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),function(t){return _s(t,!0)||36===t||95===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Ur.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),function(t){return ws(t,!0)||36===t||95===t||8204===t||8205===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Ur.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)},Ur.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},Ur.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},Ur.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)},Ur.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Ur.regexp_eatZero=function(t){return 48===t.current()&&!Yr(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Ur.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)},Ur.regexp_eatControlLetter=function(t){var e=t.current();return!!Hr(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Ur.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var n,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(r&&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(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(n=t.lastIntValue)>=0&&1114111>=n)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},Ur.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))},Ur.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},Ur.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 s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===s&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},Ur.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 s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},Ur.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){Fs(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},Ur.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")},Ur.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Gr(e=t.current());)t.lastStringValue+=$s(e),t.advance();return""!==t.lastStringValue},Ur.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";zr(e=t.current());)t.lastStringValue+=$s(e),t.advance();return""!==t.lastStringValue},Ur.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Ur.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},Ur.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},Ur.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")}}},Ur.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||Qr(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},Ur.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)},Ur.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 s=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(s!==t.pos)return n;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==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)}},Ur.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 s=t.lastIntValue;return-1!==n&&-1!==s&&n>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},Ur.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},Ur.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var n=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return n&&2===s&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},Ur.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},Ur.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},Ur.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},Ur.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))},Ur.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)},Ur.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Yr(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},Ur.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},Ur.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;Yr(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},Ur.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;Kr(n=t.current());)t.lastIntValue=16*t.lastIntValue+Jr(n),t.advance();return t.pos!==e},Ur.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},Ur.regexp_eatOctalDigit=function(t){var e=t.current();return Qr(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Ur.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var s=0;e>s;++s){var r=t.current();if(!Kr(r))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+Jr(r),t.advance()}return!0};var Xr=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])},Zr=Qs.prototype;function ti(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}Zr.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 Xr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Zr.getToken=function(){return this.next(),new Xr(this)},"undefined"!=typeof Symbol&&(Zr[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Ts.eof,value:e}}}}),Zr.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(Ts.eof)},Zr.readToken=function(t){return _s(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Zr.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},Zr.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Zr.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 s=void 0,r=e;(s=Ms(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,n),e,this.pos,t,this.curPosition())},Zr.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Ls(s);)s=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())},Zr.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&&Vs.test(String.fromCharCode(t))))break t;++this.pos}}},Zr.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)},Zr.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(Ts.dot)):(this.pos+=3,this.finishToken(Ts.ellipsis))},Zr.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Ts.assign,2):this.finishOp(Ts.slash,1)},Zr.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,s=42===t?Ts.star:Ts.modulo;return 7>this.options.ecmaVersion||42!==t||42!==e||(++n,s=Ts.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Ts.assign,n+1):this.finishOp(s,n)},Zr.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?Ts.logicalOR:Ts.logicalAND,2):this.finishOp(Ts.assign,3):61===e?this.finishOp(Ts.assign,2):this.finishOp(124===t?Ts.bitwiseOR:Ts.bitwiseAND,1)},Zr.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Ts.assign,2):this.finishOp(Ts.bitwiseXOR,1)},Zr.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&&!Ns.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Ts.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Ts.assign,2):this.finishOp(Ts.plusMin,1)},Zr.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(Ts.assign,n+1):this.finishOp(Ts.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(Ts.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Zr.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Ts.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61!==t||62!==e||6>this.options.ecmaVersion?this.finishOp(61===t?Ts.eq:Ts.prefix,1):(this.pos+=2,this.finishToken(Ts.arrow))},Zr.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(Ts.questionDot,2)}if(63===e)return 12>t||61!==this.input.charCodeAt(this.pos+2)?this.finishOp(Ts.coalesce,2):this.finishOp(Ts.assign,3)}return this.finishOp(Ts.question,1)},Zr.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,_s(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(Ts.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+$s(t)+"'")},Zr.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Ts.parenL);case 41:return++this.pos,this.finishToken(Ts.parenR);case 59:return++this.pos,this.finishToken(Ts.semi);case 44:return++this.pos,this.finishToken(Ts.comma);case 91:return++this.pos,this.finishToken(Ts.bracketL);case 93:return++this.pos,this.finishToken(Ts.bracketR);case 123:return++this.pos,this.finishToken(Ts.braceL);case 125:return++this.pos,this.finishToken(Ts.braceR);case 58:return++this.pos,this.finishToken(Ts.colon);case 96:if(6>this.options.ecmaVersion)break;return++this.pos,this.finishToken(Ts.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(Ts.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+$s(t)+"'")},Zr.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},Zr.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos<this.input.length||this.raise(n,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Ns.test(s)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=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 Wr(this));o.reset(n,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(r,a)}catch(t){}return this.finishToken(Ts.regexp,{pattern:r,flags:a,value:c})},Zr.readInt=function(t,e,n){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=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(s&&95===u)r&&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 s&&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},Zr.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)?_s(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"):(n=ti(this.input.slice(e,this.pos)),++this.pos),this.finishToken(Ts.num,n)},Zr.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 s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=ti(this.input.slice(e,this.pos));return++this.pos,_s(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ts.num,r)}n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),_s(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(Ts.num,a)},Zr.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},Zr.readString=function(t){for(var e="",n=++this.pos;;){this.pos<this.input.length||this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):8232===s||8233===s?(10>this.options.ecmaVersion&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ls(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Ts.string,e)};var ei={};function ni(t,e){return Qs.parse(t,e)}Zr.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==ei)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Zr.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ei;this.raise(t,e)},Zr.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!==Ts.template&&this.type!==Ts.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Ts.template,t)):36===n?(this.pos+=2,this.finishToken(Ts.dollarBraceL)):(++this.pos,this.finishToken(Ts.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Ls(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}},Zr.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(Ts.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")},Zr.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 $s(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 s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Ls(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},Zr.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},Zr.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(ws(r,s))this.pos+=r>65535?2:1;else{if(92!==r)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?_s:ws)(a,s)||this.invalidStringToken(i,"Invalid Unicode escape"),t+=$s(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},Zr.readWord=function(){var t=this.readWord1(),e=Ts.name;return this.keywords.test(t)&&(e=As[t]),this.finishToken(e,t)},Qs.acorn={Parser:Qs,version:"8.18.0",defaultOptions:Ys,Position:Hs,SourceLocation:Gs,getLineInfo:zs,Node:_r,TokenType:Es,tokTypes:Ts,keywordTypes:As,TokContext:hr,tokContexts:pr,isIdentifierChar:ws,isIdentifierStart:_s,Token:Xr,isNewLine:Ls,lineBreak:Ns,lineBreakG:Ps,nonASCIIwhitespace:Vs};class si{constructor(t){this.value=t}}const ri=new Map,ii=new Map,ai=new Set(["constructor","__proto__","prototype"]),oi=Symbol("GyosJS CSP optional chain");function ci(t,e,n){const s="number"==typeof n?.start?" at position "+n.start:"";return Error(`[GyosJS CSP] ${t}${s}: ${e}`)}function li(t){const e=ri.get(t);if(e)return e;try{const e=ni(`(${t})`,{ecmaVersion:"latest"}),n=e.body[0]?.expression;if(!n)throw ci("Empty expression",t);return ri.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 ui(t,e=!1){const n=`${e?"return":"event"}:${t}`,s=ii.get(n);if(s)return s;try{const s=ni(t,{ecmaVersion:"latest",allowReturnOutsideFunction:e});return ii.set(n,s),s}catch(e){const n="number"==typeof e?.pos?" at position "+e.pos:"";throw Error(`[GyosJS CSP] Invalid expression body${n}: ${t}`)}}function hi(t,e,n){if(("string"==typeof t||"number"==typeof t)&&ai.has(t+""))throw ci(`Access to property "${t+""}" is forbidden`,e,n);if("string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t)throw ci("Invalid property key",e,n);return t}function pi(t,e,n,s){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 ci(`Undefined identifier "${t}"`,n,s)}}function fi(t,e,n){const s=mi(t.object,e,n);if(s===oi)return[oi,""];if(null==s){if(t.optional)return[oi,""];throw ci("Cannot read a property of null or undefined",n,t)}return[s,hi(t.computed?mi(t.property,e,n):t.property.name,n,t.property)]}function di(t,e,n){if("Identifier"===t.type)return{get:()=>pi(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[s,r]=fi(t,e,n);if(null==s)throw ci("Invalid assignment target",n,t);return{get:()=>s[r],set:t=>(s[r]=t,t)}}throw ci("Invalid assignment target",n,t)}function mi(t,e,n){switch(t.type){case"Literal":if(t.regex||"bigint"==typeof t.value)throw ci("Unsupported literal",n,t);return t.value;case"Identifier":return pi(t.name,e,n,t);case"ArrayExpression":return t.elements.map(t=>{if(t){if("SpreadElement"===t.type)throw ci("Spread elements are not supported",n,t);return mi(t,e,n)}});case"ObjectExpression":{const s={};for(const r of t.properties){if("Property"!==r.type||"init"!==r.kind||r.method)throw ci("Object methods, getters, setters, and spread are not supported",n,r);s[hi(r.computed?mi(r.key,e,n):r.key.name??r.key.value,n,r.key)]=r.shorthand?pi(r.key.name,e,n,r.key):mi(r.value,e,n)}return s}case"MemberExpression":{const[s,r]=fi(t,e,n);return s===oi?oi:s[r]}case"ChainExpression":{const s=mi(t.expression,e,n);return s===oi?void 0:s}case"CallExpression":return function(t,e,n){const s=t.arguments.map(t=>{if("SpreadElement"===t.type)throw ci("Spread arguments are not supported",n,t);return mi(t,e,n)});if("MemberExpression"===t.callee.type){const[r,i]=fi(t.callee,e,n);if(r===oi)return oi;const a=r[i];if(null==a&&t.optional)return oi;if("function"!=typeof a)throw ci("Called value is not a function",n,t.callee);return a.apply(r,s)}const r=mi(t.callee,e,n);if(r===oi)return oi;if(null==r&&t.optional)return oi;if("function"!=typeof r)throw ci("Called value is not a function",n,t.callee);return r.apply(e.scope,s)}(t,e,n);case"UnaryExpression":{if("delete"===t.operator)throw ci("The delete operator is not supported",n,t);const s=mi(t.argument,e,n);switch(t.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"typeof":return typeof s;case"void":return;default:throw ci(`Unsupported unary operator "${t.operator}"`,n,t)}}case"BinaryExpression":{const s=mi(t.left,e,n),r=mi(t.right,e,n);switch(t.operator){case"+":return s+r;case"-":return s-r;case"*":return s*r;case"/":return s/r;case"%":return s%r;case"**":return s**r;case"==":return s==r;case"!=":return s!=r;case"===":return s===r;case"!==":return s!==r;case"<":return r>s;case"<=":return r>=s;case">":return s>r;case">=":return s>=r;case"in":return s in r;case"instanceof":return s instanceof r;default:throw ci(`Unsupported binary operator "${t.operator}"`,n,t)}}case"LogicalExpression":{const s=mi(t.left,e,n);if("&&"===t.operator)return s&&mi(t.right,e,n);if("||"===t.operator)return s||mi(t.right,e,n);if("??"===t.operator)return s??mi(t.right,e,n);throw ci(`Unsupported logical operator "${t.operator}"`,n,t)}case"ConditionalExpression":return mi(t.test,e,n)?mi(t.consequent,e,n):mi(t.alternate,e,n);case"AssignmentExpression":{const s=di(t.left,e,n),r="="===t.operator?void 0:s.get();if("&&="===t.operator&&!r)return r;if("||="===t.operator&&r)return r;if("??="===t.operator&&null!=r)return r;const i=mi(t.right,e,n);return s.set(function(t,e,n,s,r){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 ci(`Unsupported assignment operator "${t}"`,s,r)}}(t.operator,r,i,n,t))}case"UpdateExpression":{const s=di(t.argument,e,n),r=s.get(),i="++"===t.operator?r+1:r-1;return s.set(i),t.prefix?i:r}case"SequenceExpression":{let s;for(const r of t.expressions)s=mi(r,e,n);return s}default:throw ci(`Unsupported syntax "${t.type}"`,n,t)}}function gi(t,e,n,s){let r;for(const i of t.body)if("EmptyStatement"!==i.type){if("ExpressionStatement"!==i.type){if(s&&"ReturnStatement"===i.type)throw new si(i.argument?mi(i.argument,e,n):void 0);throw ci(`Unsupported statement "${i.type}"`,n,i)}r=mi(i.expression,e,n)}return r}var yi,vi,xi;B={mode:"csp",evaluate(t,e){try{const n=e?.[t];return"function"==typeof n?n.call(e):mi(li(t),{scope:e,locals:{}},t)}catch(t){return}},execute(t,e,n){const s=e?.[t];return"function"==typeof s?s.call(e,n):gi(ui(t),{scope:e,locals:{$event:n}},t,!1)},parseScope(t){try{const e=mi(li(t),{scope:{},locals:{}},t);if(!e||"object"!=typeof e||Array.isArray(e))throw ci("Inline g-scope must evaluate to an object",t);return e}catch(t){return}},createMethod(t,e){let n;try{n=ui(e,!0)}catch(t){return()=>{}}return function(...s){const r={};t.forEach((t,e)=>{r[t]=s[e]});try{return gi(n,{scope:this,locals:r},e,!0)}catch(t){return t instanceof si?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&&Qe(n)}(),window.Gyos=us,(yi=window).GYOS_DEBUG??(yi.GYOS_DEBUG=!1),(vi=window).GYOS_DEBUG_VERBOSE??(vi.GYOS_DEBUG_VERBOSE=!1),(xi=window).GYOS_DEBUG_WARN_SUBSCRIBERS??(xi.GYOS_DEBUG_WARN_SUBSCRIBERS=!1),e(()=>{Wn(),Be()})),t.default=us,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={});
|