@hy-bricks/core 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.mjs +1 -1
- package/dist/parse-source.cjs +1 -0
- package/dist/parse-source.d.ts +57 -0
- package/dist/parse-source.mjs +1 -0
- package/dist/parseSourceEntry-BNu0kje7.js +1 -0
- package/dist/parseSourceEntry-UTE53-N3.cjs +1 -0
- package/package.json +6 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"vue";import{ref as e,defineComponent as s,onErrorCaptured as i,openBlock as r,createElementBlock as n,renderSlot as a,createElementVNode as o,toDisplayString as h,createCommentVNode as c,computed as l,inject as p,shallowRef as u,watch as f,onBeforeUnmount as d,normalizeStyle as m,createBlock as g,withCtx as x,resolveDynamicComponent as y}from"vue";const v="__default__",w="__hcCanvasId",b=e(0),S=new Map;function k(t,e,s,i){var r;const n=function(t){let e=S.get(t);return e||(e=new Map,S.set(t,e)),e}(t);n.has(e)&&(console.warn(`[hc-registry] instance ${e} already registered in canvas "${t}", overwriting`),null==(r=n.get(e))||r.__dispose());const a=function(t,e,s){const i={all:r=r||new Map,on:function(t,e){var s=r.get(t);s?s.push(e):r.set(t,[e])},off:function(t,e){var s=r.get(t);s&&(e?s.splice(s.indexOf(e)>>>0,1):r.set(t,[]))},emit:function(t,e){var s=r.get(t);s&&s.slice().map(function(t){t(e)}),(s=r.get("*"))&&s.slice().map(function(s){s(t,e)})}};var r;return{instanceId:t,componentId:e,vm:s,call(e,...i){const r=s[e];if("function"!=typeof r)throw new Error(`[hc-registry] method "${e}" not found on instance ${t}`);return r.apply(s,i)},on:(t,e)=>(i.on(t,e),()=>i.off(t,e)),emit(t,e){i.emit(t,e)},setProp(t,e){s[t]=e},setDataInput(e,i){const r=s.custom;if(!r||!(e in r))return void console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] not declared on instance ${t}; binding 改了一个未声明的 dataInput key,组件不会响应`);const n=r[e];n&&"object"==typeof n?!0===n.dataInput?n.value=i:console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] is not declared with dataInput:true on instance ${t}; 请在组件源码 custom.${e} 上加 \`dataInput: true\` 才能被 binding 灌入`):console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] not a {value:...} slot`)},__dispose(){i.all.clear()}}}(e,s,i);return n.set(e,a),b.value++,a}function C(t){const e=S.get(t);if(e){for(const t of e.values())t.__dispose();e.clear(),S.delete(t),b.value++}}function _(){return[...S.keys()]}function E(t,e,s){return k(v,t,e,s)}function A(t,e=v){const s=S.get(e);if(!s)return;const i=s.get(t);i&&(i.__dispose(),s.delete(t),b.value++)}function I(t,e){var s;if(void 0!==e)return(null==(s=S.get(e))?void 0:s.get(t))??null;let i=null;const r=[];for(const[e,s]of S){const n=s.get(t);n&&(i||(i=n),r.push(e))}return r.length>1&&console.warn(`[hc-registry] getInstance("${t}") matched ${r.length} canvases [${r.join(", ")}]; returning first. Prefer __HYPERCARD__.canvases.callComponent(canvasId, instanceId, ...) for explicit scope.`),i}function P(t){const e=null==t?void 0:t.componentId,s=e?t=>t.componentId===e:()=>!0;if(void 0!==(null==t?void 0:t.canvasId)){const e=S.get(t.canvasId);return e?[...e.values()].filter(s):[]}const i=[];for(const t of S.values())for(const e of t.values())s(e)&&i.push(e);return i}const O={getInstance:I,listInstances:P,call(t,e,...s){const i=I(t);if(i)return i.call(e,...s);console.debug(`[hc-runtime] call: instance "${t}" not found`)},on(t,e,s){const i=I(t);if(i)return i.on(e,s);console.debug(`[hc-runtime] on: instance "${t}" not found`)},emit(t,e,s){const i=I(t);i?i.emit(e,s):console.debug(`[hc-runtime] emit: instance "${t}" not found`)}},N={pickerUrl:t=>`/a/${t}`};function V(t){return{canvasId:t,listInstances:e=>P({canvasId:t,componentId:null==e?void 0:e.componentId}),getInstance:e=>I(e,t),call(e,s,...i){const r=I(e,t);if(r)try{return r.call(s,...i)}catch(i){return void console.warn(`[hc-canvases] call error: canvas="${t}" instance="${e}" method="${s}":`,i)}else console.warn(`[hc-canvases] call: instance "${e}" not found in canvas "${t}"`)},emit(e,s,i){const r=I(e,t);if(r)try{r.emit(s,i)}catch(i){console.warn(`[hc-canvases] emit error: canvas="${t}" instance="${e}" event="${s}":`,i)}else console.warn(`[hc-canvases] emit: instance "${e}" not found in canvas "${t}"`)},broadcastInCanvas(e,s){const i=P({canvasId:t});for(const r of i)try{r.emit(e,s)}catch(s){console.warn(`[hc-canvases] broadcastInCanvas: canvas="${t}" instance="${r.instanceId}" event="${e}" emit failed:`,s)}},dispose(){C(t)}}}function R(){return{list:()=>_().map(t=>V(t)),get:t=>_().includes(t)?V(t):null,getAll(){const t={};for(const e of _())t[e]=V(e);return t},callComponent(t,e,s,...i){const r=I(e,t);if(r)try{return r.call(s,...i)}catch(i){return void console.warn(`[hc-canvases] callComponent error: canvas="${t}" instance="${e}" method="${s}":`,i)}else console.warn(`[hc-canvases] callComponent: canvas="${t}" instance="${e}" not found`)},emitToCanvas(t,e,s,i){const r=I(e,t);if(r)try{r.emit(s,i)}catch(i){console.warn(`[hc-canvases] emitToCanvas error: canvas="${t}" instance="${e}" event="${s}":`,i)}else console.warn(`[hc-canvases] emitToCanvas: canvas="${t}" instance="${e}" not found`)},broadcast(t,e){for(const s of _())try{const i=P({canvasId:s});for(const r of i)try{r.emit(t,e)}catch(e){console.warn(`[hc-canvases] broadcast: canvas="${s}" instance="${r.instanceId}" event="${t}" emit failed:`,e)}}catch(e){console.warn(`[hc-canvases] broadcast: canvas="${s}" event="${t}" failed:`,e)}}}}const T=new Set(["vue","Vue","window","global","globalThis","console","document","process","$","libs","runtime","assets","version"]);function L(t={}){const e=t.strict??!1,s=t.libs??{},i=t.version??"v1";return{install(t){const r=Object.entries(s),n=r.filter(([,t])=>D(t)),a=r.filter(([t])=>T.has(t)),o=[`[hypercard] 已注册 ${r.length} 个 libs:`];for(const[t,e]of r)o.push(` ${t.padEnd(16)} ${B(e)}`);console.info(o.join("\n"));const h=[];n.length>1&&h.push(`检测到 ${n.length} 个 Vue plugin(${n.map(([t])=>t).join(", ")}),请确认全局组件命名不冲突`);for(const[t]of a)h.push(`lib 名 "${t}" 是保留词,建议改名`);if(h.length>0){const t=h.map(t=>` - ${t}`).join("\n");if(e)throw new Error(`[hypercard] strict mode 阻止启动:\n${t}`);console.warn(`[hypercard] 警告:\n${t}`)}for(const[s,i]of n){const[r,n]=M(i);try{t.use(r,...n)}catch(t){if(console.error(`[hypercard] app.use("${s}") 失败:`,t),e)throw t}}const c={};for(const[t,e]of r){const[s]=M(e);c[t]=s}const l={libs:c,runtime:O,assets:N,version:i,canvases:R()};t.provide(F,l),t.config.globalProperties.$hc=l,"undefined"!=typeof window&&(window.__HYPERCARD__=l)}}}function D(t){return Array.isArray(t)&&t.length>=1?D(t[0]):"object"==typeof t&&null!==t&&"function"==typeof t.install}function M(t){return Array.isArray(t)&&t.length>=1?[t[0],t.slice(1)]:[t,[]]}function B(t){return D(t)?Array.isArray(t)?"✓ Vue plugin (with options) → 已 app.use":"✓ Vue plugin → 已 app.use":"function"==typeof t?"· function":Array.isArray(t)?"· array":"object"==typeof t&&null!==t?"· object":"· "+typeof t}const F="__HYPERCARD__";var U=[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],j=[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],$="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",z={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"},q="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",W={5:q,"5module":q+" export import",6:q+" const class extends export import super"},G=/^in(stanceof)?$/,H=new RegExp("["+$+"]"),K=new RegExp("["+$+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function Q(t,e){for(var s=65536,i=0;i<e.length;i+=2){if((s+=e[i])>t)return!1;if((s+=e[i+1])>=t)return!0}return!1}function Y(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&H.test(String.fromCharCode(t)):!1!==e&&Q(t,j)))}function J(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&K.test(String.fromCharCode(t)):!1!==e&&(Q(t,j)||Q(t,U)))))}var Z=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 X(t,e){return new Z(t,{beforeExpr:!0,binop:e})}var tt={beforeExpr:!0},et={startsExpr:!0},st={};function it(t,e){return void 0===e&&(e={}),e.keyword=t,st[t]=new Z(t,e)}var rt={num:new Z("num",et),regexp:new Z("regexp",et),string:new Z("string",et),name:new Z("name",et),privateId:new Z("privateId",et),eof:new Z("eof"),bracketL:new Z("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Z("]"),braceL:new Z("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Z("}"),parenL:new Z("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Z(")"),comma:new Z(",",tt),semi:new Z(";",tt),colon:new Z(":",tt),dot:new Z("."),question:new Z("?",tt),questionDot:new Z("?."),arrow:new Z("=>",tt),template:new Z("template"),invalidTemplate:new Z("invalidTemplate"),ellipsis:new Z("...",tt),backQuote:new Z("`",et),dollarBraceL:new Z("${",{beforeExpr:!0,startsExpr:!0}),eq:new Z("=",{beforeExpr:!0,isAssign:!0}),assign:new Z("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Z("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Z("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:X("||",1),logicalAND:X("&&",2),bitwiseOR:X("|",3),bitwiseXOR:X("^",4),bitwiseAND:X("&",5),equality:X("==/!=/===/!==",6),relational:X("</>/<=/>=",7),bitShift:X("<</>>/>>>",8),plusMin:new Z("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:X("%",10),star:X("*",10),slash:X("/",10),starstar:new Z("**",{beforeExpr:!0}),coalesce:X("??",1),_break:it("break"),_case:it("case",tt),_catch:it("catch"),_continue:it("continue"),_debugger:it("debugger"),_default:it("default",tt),_do:it("do",{isLoop:!0,beforeExpr:!0}),_else:it("else",tt),_finally:it("finally"),_for:it("for",{isLoop:!0}),_function:it("function",et),_if:it("if"),_return:it("return",tt),_switch:it("switch"),_throw:it("throw",tt),_try:it("try"),_var:it("var"),_const:it("const"),_while:it("while",{isLoop:!0}),_with:it("with"),_new:it("new",{beforeExpr:!0,startsExpr:!0}),_this:it("this",et),_super:it("super",et),_class:it("class",et),_extends:it("extends",tt),_export:it("export"),_import:it("import",et),_null:it("null",et),_true:it("true",et),_false:it("false",et),_in:it("in",{beforeExpr:!0,binop:7}),_instanceof:it("instanceof",{beforeExpr:!0,binop:7}),_typeof:it("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:it("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:it("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},nt=/\r\n?|\n|\u2028|\u2029/,at=new RegExp(nt.source,"g");function ot(t){return 10===t||13===t||8232===t||8233===t}function ht(t,e,s){void 0===s&&(s=t.length);for(var i=e;i<s;i++){var r=t.charCodeAt(i);if(ot(r))return i<s-1&&13===r&&10===t.charCodeAt(i+1)?i+2:i+1}return-1}var ct=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pt=Object.prototype,ut=pt.hasOwnProperty,ft=pt.toString,dt=Object.hasOwn||function(t,e){return ut.call(t,e)},mt=Array.isArray||function(t){return"[object Array]"===ft.call(t)},gt=Object.create(null);function xt(t){return gt[t]||(gt[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function yt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var vt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,wt=function(t,e){this.line=t,this.column=e};wt.prototype.offset=function(t){return new wt(this.line,this.column+t)};var bt=function(t,e,s){this.start=e,this.end=s,null!==t.sourceFile&&(this.source=t.sourceFile)};function St(t,e){for(var s=1,i=0;;){var r=ht(t,i,e);if(r<0)return new wt(s,e-i);++s,i=r}}var kt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ct=!1;function _t(t,e){return 2|(t?4:0)|(e?8:0)}var Et=function(t,e,s){this.options=t=function(t){var e={};for(var s in kt)e[s]=t&&dt(t,s)?t[s]:kt[s];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!Ct&&"object"==typeof console&&console.warn&&(Ct=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),mt(e.onToken)){var i=e.onToken;e.onToken=function(t){return i.push(t)}}if(mt(e.onComment)&&(e.onComment=function(t,e){return function(s,i,r,n,a,o){var h={type:s?"Block":"Line",value:i,start:r,end:n};t.locations&&(h.loc=new bt(this,a,o)),t.ranges&&(h.range=[r,n]),e.push(h)}}(e,e.onComment)),"commonjs"===e.sourceType&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}(t),this.sourceFile=t.sourceFile,this.keywords=xt(W[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var i="";!0!==t.allowReserved&&(i=z[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(i+=" await")),this.reservedWords=xt(i);var r=(i?i+" ":"")+z.strict;this.reservedWordsStrict=xt(r),this.reservedWordsStrictBind=xt(r+" "+z.strictBind),this.input=String(e),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(nt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=rt.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||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=[]},At={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}};Et.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},At.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},At.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},At.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},At.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},At.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},At.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},At.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},At.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},At.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},At.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t||!this.inModule&&1&t)},At.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Et.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s},Et.parse=function(t,e){return new this(e,t).parse()},Et.parseExpressionAt=function(t,e,s){var i=new this(s,t,e);return i.nextToken(),i.parseExpression()},Et.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(Et.prototype,At);var It=Et.prototype,Pt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;It.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){lt.lastIndex=t,t+=lt.exec(this.input)[0].length;var e=Pt.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){lt.lastIndex=t+e[0].length;var s=lt.exec(this.input),i=s.index+s[0].length,r=this.input.charAt(i);return";"===r||"}"===r||nt.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}t+=e[0].length,lt.lastIndex=t,t+=lt.exec(this.input)[0].length,";"===this.input[t]&&t++}},It.eat=function(t){return this.type===t&&(this.next(),!0)},It.isContextual=function(t){return this.type===rt.name&&this.value===t&&!this.containsEsc},It.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},It.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},It.canInsertSemicolon=function(){return this.type===rt.eof||this.type===rt.braceR||nt.test(this.input.slice(this.lastTokEnd,this.start))},It.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},It.semicolon=function(){this.eat(rt.semi)||this.insertSemicolon()||this.unexpected()},It.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},It.expect=function(t){this.eat(t)||this.unexpected()},It.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var Ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};It.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var s=e?t.parenthesizedAssign:t.parenthesizedBind;s>-1&&this.raiseRecoverable(s,e?"Assigning to rvalue":"Parenthesized pattern")}},It.checkExpressionErrors=function(t,e){if(!t)return!1;var s=t.shorthandAssign,i=t.doubleProto;if(!e)return s>=0||i>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},It.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")},It.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Nt=Et.prototype;Nt.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==rt.eof;){var s=this.parseStatement(null,!0,e);t.body.push(s)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var n=r[i];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' 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 Vt={kind:"loop"},Rt={kind:"switch"};Nt.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;lt.lastIndex=this.pos;var e=lt.exec(this.input),s=this.pos+e[0].length,i=this.fullCharCodeAt(s);if(91===i||92===i)return!0;if(t)return!1;if(123===i)return!0;if(Y(i)){var r=s;do{s+=i<=65535?1:2}while(J(i=this.fullCharCodeAt(s)));if(92===i)return!0;var n=this.input.slice(r,s);if(!G.test(n))return!0}return!1},Nt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;lt.lastIndex=this.pos;var t,e=lt.exec(this.input),s=this.pos+e[0].length;return!(nt.test(this.input.slice(this.pos,s))||"function"!==this.input.slice(s,s+8)||s+8!==this.input.length&&(J(t=this.fullCharCodeAt(s+8))||92===t))},Nt.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;lt.lastIndex=this.pos;var s=lt.exec(this.input),i=this.pos+s[0].length;if(nt.test(this.input.slice(this.pos,i)))return!1;if(t){var r,n=i+5;if("using"!==this.input.slice(i,n)||n===this.input.length||J(r=this.fullCharCodeAt(n))||92===r)return!1;lt.lastIndex=n;var a=lt.exec(this.input);if(i=n+a[0].length,a&&nt.test(this.input.slice(n,i)))return!1}var o=this.fullCharCodeAt(i);if(!Y(o)&&92!==o)return!1;var h=i;do{i+=o<=65535?1:2}while(J(o=this.fullCharCodeAt(i)));if(92===o)return!0;var c=this.input.slice(h,i);return!(G.test(c)||e&&"of"===c)},Nt.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},Nt.isUsing=function(t){return this.isUsingKeyword(!1,t)},Nt.parseStatement=function(t,e,s){var i,r=this.type,n=this.startNode();switch(this.isLet(t)&&(r=rt._var,i="let"),r){case rt._break:case rt._continue:return this.parseBreakContinueStatement(n,r.keyword);case rt._debugger:return this.parseDebuggerStatement(n);case rt._do:return this.parseDoStatement(n);case rt._for:return this.parseForStatement(n);case rt._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case rt._class:return t&&this.unexpected(),this.parseClass(n,!0);case rt._if:return this.parseIfStatement(n);case rt._return:return this.parseReturnStatement(n);case rt._switch:return this.parseSwitchStatement(n);case rt._throw:return this.parseThrowStatement(n);case rt._try:return this.parseTryStatement(n);case rt._const:case rt._var:return i=i||this.value,t&&"var"!==i&&this.unexpected(),this.parseVarStatement(n,i);case rt._while:return this.parseWhileStatement(n);case rt._with:return this.parseWithStatement(n);case rt.braceL:return this.parseBlock(!0,n);case rt.semi:return this.parseEmptyStatement(n);case rt._export:case rt._import:if(this.options.ecmaVersion>10&&r===rt._import){lt.lastIndex=this.pos;var a=lt.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(n,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===rt._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)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"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var l=this.value,p=this.parseExpression();return r===rt.name&&"Identifier"===p.type&&this.eat(rt.colon)?this.parseLabeledStatement(n,l,p,t):this.parseExpressionStatement(n,p)}},Nt.parseBreakContinueStatement=function(t,e){var s="break"===e;this.next(),this.eat(rt.semi)||this.insertSemicolon()?t.label=null:this.type!==rt.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(s||"loop"===r.kind))break;if(t.label&&s)break}}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,s?"BreakStatement":"ContinueStatement")},Nt.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Nt.parseDoStatement=function(t){return this.next(),this.labels.push(Vt),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(rt._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(rt.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Nt.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Vt),this.enterScope(0),this.expect(rt.parenL),this.type===rt.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var s=this.isLet();if(this.type===rt._var||this.type===rt._const||s){var i=this.startNode(),r=s?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(t,i,e)}var n=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var h=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(h,!0,o),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(t,h,e)}var c=this.containsEsc,l=new Ot,p=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===rt._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===rt._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==p||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},Nt.parseForAfterInit=function(t,e,s){return(this.type===rt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.options.ecmaVersion>=9&&(this.type===rt._in?s>-1&&this.unexpected(s):t.await=s>-1),this.parseForIn(t,e)):(s>-1&&this.unexpected(s),this.parseFor(t,e))},Nt.parseFunctionStatement=function(t,e,s){return this.next(),this.parseFunction(t,Lt|(s?0:Dt),!1,e)},Nt.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(rt._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},Nt.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(rt.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Nt.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(rt.braceL),this.labels.push(Rt),this.enterScope(1024);for(var s=!1;this.type!==rt.braceR;)if(this.type===rt._case||this.type===rt._default){var i=this.type===rt._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,e.test=null),this.expect(rt.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")},Nt.parseThrowStatement=function(t){return this.next(),nt.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 Tt=[];Nt.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(rt.parenR),t},Nt.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===rt._catch){var e=this.startNode();this.next(),this.eat(rt.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&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(rt._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Nt.parseVarStatement=function(t,e,s){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Nt.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Vt),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},Nt.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")},Nt.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Nt.parseLabeledStatement=function(t,e,s,i){for(var r=0,n=this.labels;r<n.length;r+=1)n[r].name===e&&this.raise(s.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===rt._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var h=this.labels[o];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},Nt.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Nt.parseBlock=function(t,e,s){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(rt.braceL),t&&this.enterScope(0);this.type!==rt.braceR;){var i=this.parseStatement(null);e.body.push(i)}return s&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},Nt.parseFor=function(t,e){return t.init=e,this.expect(rt.semi),t.test=this.type===rt.semi?null:this.parseExpression(),this.expect(rt.semi),t.update=this.type===rt.parenR?null:this.parseExpression(),this.expect(rt.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},Nt.parseForIn=function(t,e){var s=this.type===rt._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(rt.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")},Nt.parseVar=function(t,e,s,i){for(t.declarations=[],t.kind=s;;){var r=this.startNode();if(this.parseVarId(r,s),this.eat(rt.eq)?r.init=this.parseMaybeAssign(e):i||"const"!==s||this.type===rt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"using"!==s&&"await using"!==s||!(this.options.ecmaVersion>=17)||this.type===rt._in||this.isContextual("of")?i||"Identifier"===r.id.type||e&&(this.type===rt._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 "+s+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(rt.comma))break}return t},Nt.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 Lt=1,Dt=2;function Mt(t,e){var s=e.key.name,i=t[s],r="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(r=(e.static?"s":"i")+e.kind),"iget"===i&&"iset"===r||"iset"===i&&"iget"===r||"sget"===i&&"sset"===r||"sset"===i&&"sget"===r?(t[s]="true",!1):!!i||(t[s]=r,!1)}function Bt(t,e){var s=t.computed,i=t.key;return!s&&("Identifier"===i.type&&i.name===e||"Literal"===i.type&&i.value===e)}Nt.parseFunction=function(t,e,s,i,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===rt.star&&e&Dt&&this.unexpected(),t.generator=this.eat(rt.star)),this.options.ecmaVersion>=8&&(t.async=!!i),e&Lt&&(t.id=4&e&&this.type!==rt.name?null:this.parseIdent(),!t.id||e&Dt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_t(t.async,t.generator)),e&Lt||(t.id=this.type===rt.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,s,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Lt?"FunctionDeclaration":"FunctionExpression")},Nt.parseFunctionParams=function(t){this.expect(rt.parenL),t.params=this.parseBindingList(rt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Nt.parseClass=function(t,e){this.next();var s=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var i=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(rt.braceL);this.type!==rt.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&Mt(i,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Nt.parseClassElement=function(t){if(this.eat(rt.semi))return null;var e=this.options.ecmaVersion,s=this.startNode(),i="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(rt.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===rt.star?o=!0:i="static"}if(s.static=o,!i&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==rt.star||this.canInsertSemicolon()?i="async":n=!0),!i&&(e>=9||!n)&&this.eat(rt.star)&&(r=!0),!i&&!n&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:i=h)}if(i?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=i,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),e<13||this.type===rt.parenL||"method"!==a||r||n){var c=!s.static&&Bt(s,"constructor"),l=c&&t;c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,r,n,l)}else this.parseClassField(s);return s},Nt.isClassElementNameStart=function(){return this.type===rt.name||this.type===rt.privateId||this.type===rt.num||this.type===rt.string||this.type===rt.bracketL||this.type.keyword},Nt.parseClassElementName=function(t){this.type===rt.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)},Nt.parseClassMethod=function(t,e,s,i){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),s&&this.raise(r.start,"Constructor can't be an async method")):t.static&&Bt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,s,i);return"get"===t.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===t.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},Nt.parseClassField=function(t){return Bt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Bt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(rt.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},Nt.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==rt.braceR;){var s=this.parseStatement(null);t.body.push(s)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},Nt.parseClassId=function(t,e){this.type===rt.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},Nt.parseClassSuper=function(t){t.superClass=this.eat(rt._extends)?this.parseExprSubscripts(null,!1):null},Nt.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},Nt.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,s=t.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=0===i?null:this.privateNameStack[i-1],n=0;n<s.length;++n){var a=s[n];dt(e,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},Nt.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==rt.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},Nt.parseExport=function(t,e){if(this.next(),this.eat(rt.star))return this.parseExportAllDeclaration(t,e);if(this.eat(rt._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,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==rt.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var s=0,i=t.specifiers;s<i.length;s+=1){var r=i[s];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,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},Nt.parseExportDeclaration=function(t){return this.parseStatement(null)},Nt.parseExportDefaultDeclaration=function(){var t;if(this.type===rt._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Lt,!1,t)}if(this.type===rt._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var i=this.parseMaybeAssign();return this.semicolon(),i},Nt.checkExport=function(t,e,s){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),dt(t,e)&&this.raiseRecoverable(s,"Duplicate export '"+e+"'"),t[e]=!0)},Nt.checkPatternExport=function(t,e){var s=e.type;if("Identifier"===s)this.checkExport(t,e,e.start);else if("ObjectPattern"===s)for(var i=0,r=e.properties;i<r.length;i+=1){var n=r[i];this.checkPatternExport(t,n)}else if("ArrayPattern"===s)for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(t,h)}else"Property"===s?this.checkPatternExport(t,e.value):"AssignmentPattern"===s?this.checkPatternExport(t,e.left):"RestElement"===s&&this.checkPatternExport(t,e.argument)},Nt.checkVariableExport=function(t,e){if(t)for(var s=0,i=e;s<i.length;s+=1){var r=i[s];this.checkPatternExport(t,r.id)}},Nt.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Nt.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")},Nt.parseExportSpecifiers=function(t){var e=[],s=!0;for(this.expect(rt.braceL);!this.eat(rt.braceR);){if(s)s=!1;else if(this.expect(rt.comma),this.afterTrailingComma(rt.braceR))break;e.push(this.parseExportSpecifier(t))}return e},Nt.parseImport=function(t){return this.next(),this.type===rt.string?(t.specifiers=Tt,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===rt.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Nt.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")},Nt.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},Nt.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")},Nt.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===rt.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(rt.comma)))return t;if(this.type===rt.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(rt.braceL);!this.eat(rt.braceR);){if(e)e=!1;else if(this.expect(rt.comma),this.afterTrailingComma(rt.braceR))break;t.push(this.parseImportSpecifier())}return t},Nt.parseWithClause=function(){var t=[];if(!this.eat(rt._with))return t;this.expect(rt.braceL);for(var e={},s=!0;!this.eat(rt.braceR);){if(s)s=!1;else if(this.expect(rt.comma),this.afterTrailingComma(rt.braceR))break;var i=this.parseImportAttribute(),r="Identifier"===i.key.type?i.key.name:i.key.value;dt(e,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(i)}return t},Nt.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===rt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(rt.colon),this.type!==rt.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},Nt.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===rt.string){var t=this.parseLiteral(this.value);return vt.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},Nt.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)},Nt.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 Ft=Et.prototype;Ft.toAssignable=function(t,e,s){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",s&&this.checkPatternErrors(s,!0);for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];this.toAssignable(n,e),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.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",s&&this.checkPatternErrors(s,!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,s);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 s&&this.checkPatternErrors(s,!0);return t},Ft.toAssignableList=function(t,e){for(var s=t.length,i=0;i<s;i++){var r=t[i];r&&this.toAssignable(r,e)}if(s){var n=t[s-1];6===this.options.ecmaVersion&&e&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return t},Ft.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Ft.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==rt.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Ft.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case rt.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(rt.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case rt.braceL:return this.parseObj(!0)}return this.parseIdent()},Ft.parseBindingList=function(t,e,s,i){for(var r=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(rt.comma),e&&this.type===rt.comma)r.push(null);else{if(s&&this.afterTrailingComma(t))break;if(this.type===rt.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===rt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(i))}return r},Ft.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},Ft.parseBindingListItem=function(t){return t},Ft.parseMaybeDefault=function(t,e,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(rt.eq))return s;var i=this.startNodeAt(t,e);return i.left=s,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},Ft.checkLValSimple=function(t,e,s){void 0===e&&(e=0);var i=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(i?"Binding ":"Assigning to ")+t.name+" in strict mode"),i&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),s&&(dt(s,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),s[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":i&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,s);default:this.raise(t.start,(i?"Binding":"Assigning to")+" rvalue")}},Ft.checkLValPattern=function(t,e,s){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,e,s)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,e,s)}break;default:this.checkLValSimple(t,e,s)}},Ft.checkLValInnerPattern=function(t,e,s){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,s);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,s);break;case"RestElement":this.checkLValPattern(t.argument,e,s);break;default:this.checkLValPattern(t,e,s)}};var Ut=function(t,e,s,i,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i,this.generator=!!r},jt={b_stat:new Ut("{",!1),b_expr:new Ut("{",!0),b_tmpl:new Ut("${",!1),p_stat:new Ut("(",!1),p_expr:new Ut("(",!0),q_tmpl:new Ut("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Ut("function",!1),f_expr:new Ut("function",!0),f_expr_gen:new Ut("function",!0,!1,null,!0),f_gen:new Ut("function",!1,!1,null,!0)},$t=Et.prototype;$t.initialContext=function(){return[jt.b_stat]},$t.curContext=function(){return this.context[this.context.length-1]},$t.braceIsBlock=function(t){var e=this.curContext();return e===jt.f_expr||e===jt.f_stat||(t!==rt.colon||e!==jt.b_stat&&e!==jt.b_expr?t===rt._return||t===rt.name&&this.exprAllowed?nt.test(this.input.slice(this.lastTokEnd,this.start)):t===rt._else||t===rt.semi||t===rt.eof||t===rt.parenR||t===rt.arrow||(t===rt.braceL?e===jt.b_stat:t!==rt._var&&t!==rt._const&&t!==rt.name&&!this.exprAllowed):!e.isExpr)},$t.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},$t.updateContext=function(t){var e,s=this.type;s.keyword&&t===rt.dot?this.exprAllowed=!1:(e=s.updateContext)?e.call(this,t):this.exprAllowed=s.beforeExpr},$t.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},rt.parenR.updateContext=rt.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===jt.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},rt.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?jt.b_stat:jt.b_expr),this.exprAllowed=!0},rt.dollarBraceL.updateContext=function(){this.context.push(jt.b_tmpl),this.exprAllowed=!0},rt.parenL.updateContext=function(t){var e=t===rt._if||t===rt._for||t===rt._with||t===rt._while;this.context.push(e?jt.p_stat:jt.p_expr),this.exprAllowed=!0},rt.incDec.updateContext=function(){},rt._function.updateContext=rt._class.updateContext=function(t){!t.beforeExpr||t===rt._else||t===rt.semi&&this.curContext()!==jt.p_stat||t===rt._return&&nt.test(this.input.slice(this.lastTokEnd,this.start))||(t===rt.colon||t===rt.braceL)&&this.curContext()===jt.b_stat?this.context.push(jt.f_stat):this.context.push(jt.f_expr),this.exprAllowed=!1},rt.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},rt.backQuote.updateContext=function(){this.curContext()===jt.q_tmpl?this.context.pop():this.context.push(jt.q_tmpl),this.exprAllowed=!1},rt.star.updateContext=function(t){if(t===rt._function){var e=this.context.length-1;this.context[e]===jt.f_expr?this.context[e]=jt.f_expr_gen:this.context[e]=jt.f_gen}this.exprAllowed=!0},rt.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==rt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var zt=Et.prototype;function qt(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&qt(t.expression)}function Wt(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&Wt(t.expression)||"ParenthesizedExpression"===t.type&&Wt(t.expression)}zt.checkPropClash=function(t,e,s){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var i,r=t.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===n&&(e.proto&&(s?s.doubleProto<0&&(s.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[i="$"+i];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[i]={init:!1,get:!1,set:!1},a[n]=!0}}},zt.parseExpression=function(t,e){var s=this.start,i=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===rt.comma){var n=this.startNodeAt(s,i);for(n.expressions=[r];this.eat(rt.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return r},zt.parseMaybeAssign=function(t,e,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var i=!1,r=-1,n=-1,a=-1;e?(r=e.parenthesizedAssign,n=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Ot,i=!0);var o=this.start,h=this.startLoc;this.type!==rt.parenL&&this.type!==rt.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var c=this.parseMaybeConditional(t,e);if(s&&(c=s.call(this,c,o,h)),this.type.isAssign){var l=this.startNodeAt(o,h);return l.operator=this.value,this.type===rt.eq&&(c=this.toAssignable(c,!1,e)),i||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.start&&(e.shorthandAssign=-1),this.type===rt.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(l,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),n>-1&&(e.trailingComma=n),c},zt.parseMaybeConditional=function(t,e){var s=this.start,i=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(rt.question)){var n=this.startNodeAt(s,i);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(rt.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return r},zt.parseExprOps=function(t,e){var s=this.start,i=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===s&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,s,i,-1,t)},zt.parseExprOp=function(t,e,s,i,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==rt._in)&&n>i){var a=this.type===rt.logicalOR||this.type===rt.logicalAND,o=this.type===rt.coalesce;o&&(n=rt.logicalAND.binop);var h=this.value;this.next();var c=this.start,l=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,l,n,r),u=this.buildBinary(e,s,t,p,h,a||o);return(a&&this.type===rt.coalesce||o&&(this.type===rt.logicalOR||this.type===rt.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,s,i,r)}return t},zt.buildBinary=function(t,e,s,i,r,n){"PrivateIdentifier"===i.type&&this.raise(i.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=s,a.operator=r,a.right=i,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},zt.parseMaybeUnary=function(t,e,s,i){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(i),e=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===rt.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,i),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&qt(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Wt(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==rt.privateId){if(r=this.parseExprSubscripts(t,i),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(i||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==rt._in&&this.unexpected();return s||!this.eat(rt.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,i),"**",!1)},zt.parseExprSubscripts=function(t,e){var s=this.start,i=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,s,i,!1,e);return t&&"MemberExpression"===n.type&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n},zt.parseSubscripts=function(t,e,s,i,r){for(var n=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,s,i,n,a,r);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var h=this.startNodeAt(e,s);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}t=o}},zt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(rt.arrow)},zt.parseSubscriptAsyncArrow=function(t,e,s,i){return this.parseArrowExpression(this.startNodeAt(t,e),s,!0,i)},zt.parseSubscript=function(t,e,s,i,r,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(rt.questionDot);i&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(rt.bracketL);if(c||h&&this.type!==rt.parenL&&this.type!==rt.backQuote||this.eat(rt.dot)){var l=this.startNodeAt(e,s);l.object=t,c?(l.property=this.parseExpression(),this.expect(rt.bracketR)):this.type===rt.privateId&&"Super"!==t.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,o&&(l.optional=h),t=this.finishNode(l,"MemberExpression")}else if(!i&&this.eat(rt.parenL)){var p=new Ot,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(rt.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(e,s,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(e,s);g.callee=t,g.arguments=m,o&&(g.optional=h),t=this.finishNode(g,"CallExpression")}else if(this.type===rt.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(e,s);x.tag=t,x.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(x,"TaggedTemplateExpression")}return t},zt.parseExprAtom=function(t,e,s){this.type===rt.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case rt._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type!==rt.parenL||this.allowDirectSuper||this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==rt.dot&&this.type!==rt.bracketL&&this.type!==rt.parenL&&this.unexpected(),this.finishNode(i,"Super");case rt._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case rt.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===h.name&&!this.canInsertSemicolon()&&this.eat(rt._function))return this.overrideContext(jt.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(rt.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,e);if(this.options.ecmaVersion>=8&&"async"===h.name&&this.type===rt.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return h=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(rt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,e)}return h;case rt.regexp:var c=this.value;return(i=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},i;case rt.num:case rt.string:return this.parseLiteral(this.value);case rt._null:case rt._true:case rt._false:return(i=this.startNode()).value=this.type===rt._null?null:this.type===rt._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case rt.parenL:var l=this.start,p=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=l),t.parenthesizedBind<0&&(t.parenthesizedBind=l)),p;case rt.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(rt.bracketR,!0,!0,t),this.finishNode(i,"ArrayExpression");case rt.braceL:return this.overrideContext(jt.b_expr),this.parseObj(!1,t);case rt._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case rt._class:return this.parseClass(this.startNode(),!1);case rt._new:return this.parseNew();case rt.backQuote:return this.parseTemplate();case rt._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}},zt.parseExprAtomDefault=function(){this.unexpected()},zt.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===rt.parenL&&!t)return this.parseDynamicImport(e);if(this.type===rt.dot){var s=this.startNodeAt(e.start,e.loc&&e.loc.start);return s.name="import",e.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(e)}this.unexpected()},zt.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(rt.parenR)?t.options=null:(this.expect(rt.comma),this.afterTrailingComma(rt.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(rt.parenR)||(this.expect(rt.comma),this.afterTrailingComma(rt.parenR)||this.unexpected())));else if(!this.eat(rt.parenR)){var e=this.start;this.eat(rt.comma)&&this.eat(rt.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},zt.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")},zt.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")},zt.parseParenExpression=function(){this.expect(rt.parenL);var t=this.parseExpression();return this.expect(rt.parenR),t},zt.shouldParseArrow=function(t){return!this.canInsertSemicolon()},zt.parseParenAndDistinguishExpression=function(t,e){var s,i=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,h=this.startLoc,c=[],l=!0,p=!1,u=new Ot,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==rt.parenR;){if(l?l=!1:this.expect(rt.comma),n&&this.afterTrailingComma(rt.parenR,!0)){p=!0;break}if(this.type===rt.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===rt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(rt.parenR),t&&this.shouldParseArrow(c)&&this.eat(rt.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(i,r,c,e);c.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,h)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(i,r);return x.expression=s,this.finishNode(x,"ParenthesizedExpression")}return s},zt.parseParenItem=function(t){return t},zt.parseParenArrowList=function(t,e,s,i){return this.parseArrowExpression(this.startNodeAt(t,e),s,!1,i)};var Gt=[];zt.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===rt.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var s=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'"),s&&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 i=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(rt.parenL)?t.arguments=this.parseExprList(rt.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Gt,this.finishNode(t,"NewExpression")},zt.parseTemplateElement=function(t){var e=t.isTagged,s=this.startNode();return this.type===rt.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===rt.backQuote,this.finishNode(s,"TemplateElement")},zt.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var s=this.startNode();this.next(),s.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(s.quasis=[i];!i.tail;)this.type===rt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(rt.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(rt.braceR),s.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(s,"TemplateLiteral")},zt.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===rt.name||this.type===rt.num||this.type===rt.string||this.type===rt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===rt.star)&&!nt.test(this.input.slice(this.lastTokEnd,this.start))},zt.parseObj=function(t,e){var s=this.startNode(),i=!0,r={};for(s.properties=[],this.next();!this.eat(rt.braceR);){if(i)i=!1;else if(this.expect(rt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(rt.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,r,e),s.properties.push(n)}return this.finishNode(s,t?"ObjectPattern":"ObjectExpression")},zt.parseProperty=function(t,e){var s,i,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(rt.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===rt.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===rt.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,n=this.startLoc),t||(s=this.eat(rt.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(rt.star),this.parsePropertyName(a)):i=!1,this.parsePropertyValue(a,t,s,i,r,n,e,o),this.finishNode(a,"Property")},zt.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var s="get"===t.kind?0:1;if(t.value.params.length!==s){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"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")},zt.parsePropertyValue=function(t,e,s,i,r,n,a,o){(s||i)&&this.type===rt.colon&&this.unexpected(),this.eat(rt.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===rt.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(s,i),t.kind="init"):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===rt.comma||this.type===rt.braceR||this.type===rt.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((s||i)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key)):this.type===rt.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((s||i)&&this.unexpected(),this.parseGetterSetter(t))},zt.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(rt.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(rt.bracketR),t.key;t.computed=!1}return t.key=this.type===rt.num||this.type===rt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},zt.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},zt.parseMethod=function(t,e,s){var i=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|_t(e,i.generator)|(s?128:0)),this.expect(rt.parenL),i.params=this.parseBindingList(rt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},zt.parseArrowExpression=function(t,e,s,i){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|_t(s,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,i),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},zt.parseFunctionBody=function(t,e,s,i){var r=e&&this.type!==rt.braceL,n=this.strict,a=!1;if(r)t.body=this.parseMaybeAssign(i),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);n&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!n&&!a&&!e&&!s&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},zt.isSimpleParamList=function(t){for(var e=0,s=t;e<s.length;e+=1)if("Identifier"!==s[e].type)return!1;return!0},zt.checkParams=function(t,e){for(var s=Object.create(null),i=0,r=t.params;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,1,e?null:s)}},zt.parseExprList=function(t,e,s,i){for(var r=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(rt.comma),e&&this.afterTrailingComma(t))break;var a=void 0;s&&this.type===rt.comma?a=null:this.type===rt.ellipsis?(a=this.parseSpread(i),i&&this.type===rt.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},zt.checkUnreserved=function(t){var e=t.start,s=t.end,i=t.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==i||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==i&&"await"!==i||this.raise(e,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(e,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,s).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+i+"' is reserved"))},zt.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},zt.parseIdentNode=function(){var t=this.startNode();return this.type===rt.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=rt.name):this.unexpected(),t},zt.parsePrivateIdent=function(){var t=this.startNode();return this.type===rt.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},zt.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===rt.semi||this.canInsertSemicolon()||this.type!==rt.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(rt.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},zt.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 Ht=Et.prototype;Ht.raise=function(t,e){var s=St(this.input,t);e+=" ("+s.line+":"+s.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var i=new SyntaxError(e);throw i.pos=t,i.loc=s,i.raisedAt=this.pos,i},Ht.raiseRecoverable=Ht.raise,Ht.curPosition=function(){if(this.options.locations)return new wt(this.curLine,this.pos-this.lineStart)};var Kt=Et.prototype,Qt=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Kt.enterScope=function(t){this.scopeStack.push(new Qt(t))},Kt.exitScope=function(){this.scopeStack.pop()},Kt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Kt.declareName=function(t,e,s){var i=!1;if(2===e){var r=this.currentScope();i=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 n=this.currentScope();i=this.treatFunctionsAsVar?n.lexical.indexOf(t)>-1:n.lexical.indexOf(t)>-1||n.var.indexOf(t)>-1,n.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){i=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}i&&this.raiseRecoverable(s,"Identifier '"+t+"' has already been declared")},Kt.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Kt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Kt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Kt.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 Yt=function(t,e,s){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new bt(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Jt=Et.prototype;function Zt(t,e,s,i){return t.type=e,t.end=s,this.options.locations&&(t.loc.end=i),this.options.ranges&&(t.range[1]=s),t}Jt.startNode=function(){return new Yt(this,this.start,this.startLoc)},Jt.startNodeAt=function(t,e){return new Yt(this,t,e)},Jt.finishNode=function(t,e){return Zt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Jt.finishNodeAt=function(t,e,s,i){return Zt.call(this,t,e,s,i)},Jt.copyNode=function(t){var e=new Yt(this,t.start,this.startLoc);for(var s in t)e[s]=t[s];return e};var Xt="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",te=Xt+" Extended_Pictographic",ee=te+" EBase EComp EMod EPres ExtPict",se={9:Xt,10:te,11:te,12:ee,13:ee,14:ee},ie={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"},re="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",ne="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",ae=ne+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",oe=ae+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",he=oe+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ce=he+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",le={9:ne,10:ae,11:oe,12:he,13:ce,14:ce+" 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"},pe={};function ue(t){var e=pe[t]={binary:xt(se[t]+" "+re),binaryOfStrings:xt(ie[t]),nonBinary:{General_Category:xt(re),Script:xt(le[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 fe=0,de=[9,10,11,12,13,14];fe<de.length;fe+=1)ue(de[fe]);var me=Et.prototype,ge=function(t,e){this.parent=t,this.base=e||this};ge.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var s=t;s;s=s.parent)if(e.base===s.base&&e!==s)return!0;return!1},ge.prototype.sibling=function(){return new ge(this.parent,this.base)};var xe=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=pe[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],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 ye(t){return 105===t||109===t||115===t}function ve(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function we(t){return t>=65&&t<=90||t>=97&&t<=122}function be(t){return we(t)||95===t}function Se(t){return be(t)||ke(t)}function ke(t){return t>=48&&t<=57}function Ce(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function _e(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Ee(t){return t>=48&&t<=55}xe.prototype.reset=function(t,e,s){var i=-1!==s.indexOf("v"),r=-1!==s.indexOf("u");this.start=0|t,this.source=e+"",this.flags=s,i&&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)},xe.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},xe.prototype.at=function(t,e){void 0===e&&(e=!1);var s=this.source,i=s.length;if(t>=i)return-1;var r=s.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=i)return r;var n=s.charCodeAt(t+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},xe.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var s=this.source,i=s.length;if(t>=i)return i;var r,n=s.charCodeAt(t);return!e&&!this.switchU||n<=55295||n>=57344||t+1>=i||(r=s.charCodeAt(t+1))<56320||r>57343?t+1:t+2},xe.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},xe.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},xe.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},xe.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},xe.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var s=this.pos,i=0,r=t;i<r.length;i+=1){var n=r[i],a=this.at(s,e);if(-1===a||a!==n)return!1;s=this.nextIndex(s,e)}return this.pos=s,!0},me.validateRegExpFlags=function(t){for(var e=t.validFlags,s=t.flags,i=!1,r=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(i=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(t.start,"Invalid regular expression flag")},me.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},me.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,s=t.backReferenceNames;e<s.length;e+=1){var i=s[e];t.groupNames[i]||t.raise("Invalid named capture referenced")}},me.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new ge(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")},me.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},me.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)},me.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 s=!1;if(this.options.ecmaVersion>=9&&(s=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!s,!0}return t.pos=e,!1},me.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},me.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},me.regexp_eatBracedQuantifier=function(t,e){var s=t.pos;if(t.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<i&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=s}return!1},me.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)},me.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},me.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(t),i=t.eat(45);if(s||i){for(var r=0;r<s.length;r++){var n=s.charAt(r);s.indexOf(n,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(i){var a=this.regexp_eatModifiers(t);s||a||58!==t.current()||t.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var h=a.charAt(o);(a.indexOf(h,o+1)>-1||s.indexOf(h)>-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},me.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},me.regexp_eatModifiers=function(t){for(var e="",s=0;-1!==(s=t.current())&&ye(s);)e+=yt(s),t.advance();return e},me.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)},me.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},me.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!ve(e)&&(t.lastIntValue=e,t.advance(),!0)},me.regexp_eatPatternCharacters=function(t){for(var e=t.pos,s=0;-1!==(s=t.current())&&!ve(s);)t.advance();return t.pos!==e},me.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},me.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,s=t.groupNames[t.lastStringValue];if(s)if(e)for(var i=0,r=s;i<r.length;i+=1)r[i].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(s||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},me.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},me.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=yt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=yt(t.lastIntValue);return!0}return!1},me.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,i=t.current(s);return t.advance(s),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(i=t.lastIntValue),function(t){return Y(t,!0)||36===t||95===t}(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)},me.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,i=t.current(s);return t.advance(s),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(i=t.lastIntValue),function(t){return J(t,!0)||36===t||95===t||8204===t||8205===t}(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)},me.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)},me.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var s=t.lastIntValue;if(t.switchU)return s>t.maxBackReference&&(t.maxBackReference=s),!0;if(s<=t.numCapturingParens)return!0;t.pos=e}return!1},me.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},me.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)},me.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},me.regexp_eatZero=function(t){return 48===t.current()&&!ke(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},me.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)},me.regexp_eatControlLetter=function(t){var e=t.current();return!!we(e)&&(t.lastIntValue=e%32,t.advance(),!0)},me.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var s,i=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var n=t.lastIntValue;if(r&&n>=55296&&n<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(n-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=n}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=i}return!1},me.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))},me.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},me.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 s=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((s=80===e)||112===e)){var i;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return s&&2===i&&t.raise("Invalid property name"),i;t.raise("Invalid property name")}return 0},me.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var s=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,s,i),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},me.regexp_validateUnicodePropertyNameAndValue=function(t,e,s){dt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(s)||t.raise("Invalid property value")},me.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")},me.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";be(e=t.current());)t.lastStringValue+=yt(e),t.advance();return""!==t.lastStringValue},me.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Se(e=t.current());)t.lastStringValue+=yt(e),t.advance();return""!==t.lastStringValue},me.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},me.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),s=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===s&&t.raise("Negated character class may contain strings"),!0}return!1},me.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},me.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var s=t.lastIntValue;!t.switchU||-1!==e&&-1!==s||t.raise("Invalid character class"),-1!==e&&-1!==s&&e>s&&t.raise("Range out of order in character class")}}},me.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var s=t.current();(99===s||Ee(s))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var i=t.current();return 93!==i&&(t.lastIntValue=i,t.advance(),!0)},me.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)},me.regexp_classSetExpression=function(t){var e,s=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(s=2);for(var i=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(s=1):t.raise("Invalid character in character class");if(i!==t.pos)return s;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(i!==t.pos)return s}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return s;2===e&&(s=2)}},me.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;return-1!==s&&-1!==i&&s>i&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},me.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},me.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var s=t.eat(94),i=this.regexp_classContents(t);if(t.eat(93))return s&&2===i&&t.raise("Negated character class may contain strings"),i;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},me.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var s=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return s}else t.raise("Invalid escape");t.pos=e}return null},me.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},me.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},me.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 s=t.current();return!(s<0||s===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(s)||function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(s)||(t.advance(),t.lastIntValue=s,0))},me.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&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},me.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!ke(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},me.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},me.regexp_eatDecimalDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;ke(s=t.current());)t.lastIntValue=10*t.lastIntValue+(s-48),t.advance();return t.pos!==e},me.regexp_eatHexDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;Ce(s=t.current());)t.lastIntValue=16*t.lastIntValue+_e(s),t.advance();return t.pos!==e},me.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var s=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*s+t.lastIntValue:t.lastIntValue=8*e+s}else t.lastIntValue=e;return!0}return!1},me.regexp_eatOctalDigit=function(t){var e=t.current();return Ee(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},me.regexp_eatFixedHexDigits=function(t,e){var s=t.pos;t.lastIntValue=0;for(var i=0;i<e;++i){var r=t.current();if(!Ce(r))return t.pos=s,!1;t.lastIntValue=16*t.lastIntValue+_e(r),t.advance()}return!0};var Ae=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new bt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ie=Et.prototype;function Pe(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}Ie.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 Ae(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ie.getToken=function(){return this.next(),new Ae(this)},"undefined"!=typeof Symbol&&(Ie[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===rt.eof,value:e}}}}),Ie.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?this.finishToken(rt.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Ie.readToken=function(t){return Y(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Ie.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var s=this.input.charCodeAt(t+1);return s<=56319||s>=57344?e:(e<<10)+s-56613888},Ie.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Ie.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var i=void 0,r=e;(i=ht(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,s),e,this.pos,t,this.curPosition())},Ie.skipLineComment=function(t){for(var e=this.pos,s=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ot(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,s,this.curPosition())},Ie.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&&t<14||t>=5760&&ct.test(String.fromCharCode(t))))break t;++this.pos}}},Ie.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=t,this.value=e,this.updateContext(s)},Ie.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(rt.ellipsis)):(++this.pos,this.finishToken(rt.dot))},Ie.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(rt.assign,2):this.finishOp(rt.slash,1)},Ie.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),s=1,i=42===t?rt.star:rt.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++s,i=rt.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(rt.assign,s+1):this.finishOp(i,s)},Ie.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(rt.assign,3):this.finishOp(124===t?rt.logicalOR:rt.logicalAND,2):61===e?this.finishOp(rt.assign,2):this.finishOp(124===t?rt.bitwiseOR:rt.bitwiseAND,1)},Ie.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(rt.assign,2):this.finishOp(rt.bitwiseXOR,1)},Ie.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&&!nt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(rt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(rt.assign,2):this.finishOp(rt.plusMin,1)},Ie.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),s=1;return e===t?(s=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(rt.assign,s+1):this.finishOp(rt.bitShift,s)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(s=2),this.finishOp(rt.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ie.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(rt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(rt.arrow)):this.finishOp(61===t?rt.eq:rt.prefix,1)},Ie.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(rt.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(rt.assign,3):this.finishOp(rt.coalesce,2)}return this.finishOp(rt.question,1)},Ie.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,Y(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(rt.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+yt(t)+"'")},Ie.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(rt.parenL);case 41:return++this.pos,this.finishToken(rt.parenR);case 59:return++this.pos,this.finishToken(rt.semi);case 44:return++this.pos,this.finishToken(rt.comma);case 91:return++this.pos,this.finishToken(rt.bracketL);case 93:return++this.pos,this.finishToken(rt.bracketR);case 123:return++this.pos,this.finishToken(rt.braceL);case 125:return++this.pos,this.finishToken(rt.braceR);case 58:return++this.pos,this.finishToken(rt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(rt.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(rt.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+yt(t)+"'")},Ie.finishOp=function(t,e){var s=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,s)},Ie.readRegexp=function(){for(var t,e,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(nt.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.pos}var r=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new xe(this));o.reset(s,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,a)}catch(t){}return this.finishToken(rt.regexp,{pattern:r,flags:a,value:h})},Ie.readInt=function(t,e,s){for(var i=this.options.ecmaVersion>=12&&void 0===e,r=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,h=0,c=null==e?1/0:e;h<c;++h,++this.pos){var l=this.input.charCodeAt(this.pos),p=void 0;if(i&&95===l)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===h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;else{if((p=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=t)break;o=l,a=a*t+p}}return i&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=e&&this.pos-n!==e?null:a},Ie.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var s=this.readInt(t);return null==s&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=Pe(this.input.slice(e,this.pos)),++this.pos):Y(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(rt.num,s)},Ie.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var s=this.pos-e>=2&&48===this.input.charCodeAt(e);s&&this.strict&&this.raise(e,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&110===i){var r=Pe(this.input.slice(e,this.pos));return++this.pos,Y(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(rt.num,r)}s&&/[89]/.test(this.input.slice(e,this.pos))&&(s=!1),46!==i||s||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||s||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),Y(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n,a=(n=this.input.slice(e,this.pos),s?parseInt(n,8):parseFloat(n.replace(/_/g,"")));return this.finishToken(rt.num,a)},Ie.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&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},Ie.readString=function(t){for(var e="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===t)break;92===i?(e+=this.input.slice(s,this.pos),e+=this.readEscapedChar(!1),s=this.pos):8232===i||8233===i?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ot(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(s,this.pos++),this.finishToken(rt.string,e)};var Oe={};function Ne(t,e){return Et.parse(t,e)}Ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Oe)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ie.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Oe;this.raise(t,e)},Ie.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==rt.template&&this.type!==rt.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(rt.template,t)):36===s?(this.pos+=2,this.finishToken(rt.dollarBraceL)):(++this.pos,this.finishToken(rt.backQuote));if(92===s)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ot(s)){switch(t+=this.input.slice(e,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Ie.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(rt.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")},Ie.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 yt(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 s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,e=this.input.charCodeAt(this.pos),"0"===i&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-i.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return ot(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},Ie.readHexChar=function(t){var e=this.pos,s=this.readInt(16,t);return null===s&&this.invalidStringToken(e,"Bad character escape sequence"),s},Ie.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,s=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(J(r,i))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?Y:J)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=yt(a),s=this.pos}e=!1}return t+this.input.slice(s,this.pos)},Ie.readWord=function(){var t=this.readWord1(),e=rt.name;return this.keywords.test(t)&&(e=st[t]),this.finishToken(e,t)},Et.acorn={Parser:Et,version:"8.16.0",defaultOptions:kt,Position:wt,SourceLocation:bt,getLineInfo:St,Node:Yt,TokenType:Z,tokTypes:rt,keywordTypes:st,TokContext:Ut,tokContexts:jt,isIdentifierChar:J,isIdentifierStart:Y,Token:Ae,isNewLine:ot,lineBreak:nt,lineBreakG:at,nonASCIIwhitespace:ct};const Ve=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]),Re=new Map;function Te(t,e){for(Re.has(t)&&Re.delete(t),Re.set(t,e);Re.size>100;){const t=Re.keys().next().value;if(void 0===t)break;Re.delete(t)}}function Le(t){let e=5381;for(let s=0;s<t.length;s++)e=(e<<5)+e+t.charCodeAt(s)|0;return(e>>>0).toString(36)}async function De(e){const s=Le(e.html)+"_"+Le(e.js),i=Re.get(s);if(i)return Te(s,i),i;const r=(async()=>function(e,s){if(!e||"object"!=typeof e)throw new Error("[hc-compile] component.js must `export default` an object");const i=e,r=i.name,n=i.method??{},a=i.attribute??{},o=i.custom??{},h=i.style??{},c=i.data,l=i.methods??{},p=i.computed,u=i.watch,f=i.mounted,d=i.beforeUnmount,m=i.props,g=new Set(["name","method","attribute","custom","style","option","data","methods","computed","watch","mounted","beforeUnmount","props"]),x={};for(const t of Object.keys(i))g.has(t)||(x[t]=i[t]);const y={};for(const[t,e]of Object.entries(n))Ve.has(t)||"function"!=typeof e||(y[t]=e);const v=Object.keys(y),w={...y,...l},b=(s??"").trim()||"<div></div>";return{options:{render:t.compile(b),props:{...m?Array.isArray(m)?Object.fromEntries(m.map(t=>[t,null])):"object"==typeof m?m:{}:{},hcCustomValues:{type:Object,default:()=>({})}},data(){const t="function"==typeof c?c.call(this):c??{},e=this.hcCustomValues??{},s={};for(const[t,i]of Object.entries(o)){let r;try{r=JSON.parse(JSON.stringify(i??{}))}catch{r={...i??{}}}t in e&&r&&"object"==typeof r&&(r.value=e[t]),s[t]=r}return{custom:s,...t}},methods:w,computed:p,watch:(()=>{const t=u&&"object"==typeof u?{...u}:{};return t.hcCustomValues={handler(t){if(t&&this.custom)for(const[e,s]of Object.entries(t)){const t=this.custom[e];t&&"object"==typeof t&&(t.value=s)}},deep:!0},t})(),mounted(){const t=[],e=this.$el;if(e&&e instanceof HTMLElement){Object.assign(e.style,h);for(const[t,s]of Object.entries(a))"string"==typeof s&&s&&e.setAttribute(t,s);for(const s of Ve){if("init"===s)continue;const i=n[s];if("function"==typeof i){const r=s.replace(/^on/,"").toLowerCase(),n=t=>{i.call(this,{event:t,data:t})};e.addEventListener(r,n),t.push(()=>e.removeEventListener(r,n))}}}this.__hcCleanup=t;const s=n.init;"function"==typeof s&&s.call(this),"function"==typeof f&&f.call(this)},beforeUnmount(){var t;null==(t=this.__hcCleanup)||t.forEach(t=>{try{t()}catch{}}),this.__hcCleanup=void 0,"function"==typeof d&&d.call(this)},...x},meta:{name:r,attribute:a,style:h,customDecl:o,methodNames:v}}}(function(t){let e;try{const s=Ne(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0}).body.find(t=>"ExportDefaultDeclaration"===t.type);if(!s)throw new Error("[hc-compile] component.js must `export default` an object");e=t.slice(0,s.start)+"module.exports = "+t.slice(s.declaration.start)}catch(t){throw t instanceof Error?t:new Error(String(t))}const s=new Function("module","exports",`"use strict";\n${e}\n;return module.exports;`),i={exports:{}};try{return s(i,i.exports)}catch(t){throw t instanceof Error?t:new Error(String(t))}}(e.js),e.html))();return Te(s,r),r.catch(()=>Re.delete(s)),r}function Me(){Re.clear()}function Be(){return Re.size}function Fe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ue(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var s=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),s}var je,$e={exports:{}};function ze(){if(je)return $e.exports;je=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return $e.exports=e(),$e.exports.createColors=e,$e.exports}const qe=Ue(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var We,Ge,He,Ke,Qe,Ye;function Je(){if(Ge)return We;Ge=1;let t=ze(),e=qe;class s extends Error{constructor(t,e,i,r,n,a){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),r&&(this.source=r),a&&(this.plugin=a),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let i=this.source;null==s&&(s=t.isColorSupported);let r=t=>t,n=t=>t,a=t=>t;if(s){let{bold:s,gray:i,red:o}=t.createColors(!0);n=t=>s(o(t)),r=t=>i(t),e&&(a=t=>e(t))}let o=i.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),l=String(c).length;return o.slice(h,c).map((t,e)=>{let s=h+1+e,i=" "+(" "+s).slice(-l)+" | ";if(s===this.line){if(t.length>160){let e=20,s=Math.max(0,this.column-e),o=Math.max(this.column+e,this.endColumn+e),h=t.slice(s,o),c=r(i.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return n(">")+r(i)+a(h)+"\n "+c+n("^")}let e=r(i.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(i)+a(t)+"\n "+e+n("^")}return" "+r(i)+a(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}return We=s,s.default=s,We}function Ze(){if(Ke)return He;Ke=1;const t=/(<)(\/?style\b)/gi,e=/(<)(!--)/g;function s(s){return"string"!=typeof s?s:s.includes("<")?s.replace(t,"\\3c $2").replace(e,"\\3c $2"):s}const i={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(t){this.builder=t}atrule(t,e){let i=t.raws,r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==i.afterName?r+=i.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let a=(i.between||"")+(e?";":"");this.builder(s(r+n+a),t)}}beforeAfter(t,e){let s;s="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let i=t.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(s.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<r;t++)s+=e}return s}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(s(e+r)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(s(i)),this.builder("}",t,"end")}body(t){let e=t.nodes,i=e.length-1;for(;i>0&&"comment"===e[i].type;)i-=1;let r=this.raw(t,"semicolon"),n="document"===t.type;for(let t=0;t<e.length;t++){let a=e[t],o=this.raw(a,"before");o&&this.builder(n?o:s(o)),this.stringify(a,i!==t||r)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder(s("/*"+e+t.text+i+"*/"),t)}decl(t,e){let i=t.raws,r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=i.important||" !important"),e&&(n+=";"),this.builder(s(n),t)}document(t){this.body(t)}raw(t,e,s){let r;if(s||(s=e),e&&(r=t.raws[e],void 0!==r))return r;let n=t.parent;if("before"===s){if(!n||"root"===n.type&&n.first===t)return"";if(n&&"document"===n.type)return""}if(!n)return i[s];let a=t.root(),o=a.rawCache||(a.rawCache={});if(void 0!==o[s])return o[s];if("before"===s||"after"===s)return this.beforeAfter(t,s);{let i="raw"+((h=s)[0].toUpperCase()+h.slice(1));this[i]?r=this[i](a,t):a.walk(t=>{if(r=t.raws[e],void 0!==r)return!1})}var h;return void 0===r&&(r=i[s]),o[s]=r,r}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let s;return t.walkComments(t=>{if(void 0!==t.raws.before)return s=t.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(e,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,e){let s;return t.walkDecls(t=>{if(void 0!==t.raws.before)return s=t.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(e,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&void 0!==s.raws.before)return e=s.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(s=>{let i=s.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==s.raws.before){let t=s.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let s=t[e],i=t.raws[e];return i&&i.value===s?i.raw:s}root(t){if(this.body(t),t.raws.after){let e=t.raws.after,i=t.parent&&"document"===t.parent.type;this.builder(i?e:s(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(s(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}return He=r,r.default=r,He}function Xe(){if(Ye)return Qe;Ye=1;let t=Ze();function e(e,s){new t(s).stringify(e)}return Qe=e,e.default=e,Qe}var ts,es,ss,is,rs,ns,as,os,hs,cs,ls,ps,us,fs,ds,ms,gs,xs,ys,vs,ws,bs,Ss,ks,Cs,_s,Es,As,Is,Ps,Os,Ns,Vs,Rs,Ts,Ls,Ds,Ms,Bs,Fs,Us,js,$s,zs,qs,Ws,Gs,Hs,Ks,Qs={};function Ys(){return ts||(ts=1,Qs.isClean=Symbol("isClean"),Qs.my=Symbol("my")),Qs}function Js(){if(ss)return es;ss=1;let t=Je(),e=Ze(),s=Xe(),{isClean:i,my:r}=Ys();function n(t,e){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if("proxyCache"===i)continue;let r=t[i],a=typeof r;"parent"===i&&"object"===a?e&&(s[i]=e):"source"===i?s[i]=r:Array.isArray(r)?s[i]=r.map(t=>n(t,s)):("object"===a&&null!==r&&(r=n(r)),s[i]=r)}return s}function a(t,e){if(e&&void 0!==e.offset)return e.offset;let s=1,i=1,r=0;for(let n=0;n<t.length;n++){if(i===e.line&&s===e.column){r=n;break}"\n"===t[n]?(s=1,i+=1):s+=1}return r}class o{get proxyOf(){return this}constructor(t={}){this.raws={},this[i]=!1,this[r]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let s of t[e])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=n(this);for(let s in t)e[s]=t[s];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(e,s={}){if(this.source){let{end:t,start:i}=this.rangeBy(s);return this.source.input.error(e,{column:i.column,line:i.line},{column:t.column,line:t.line},s)}return new t(e)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,s)=>(t[e]===s||(t[e]=s,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let t=this;for(;t=t.parent;)t[i]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,i=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(t.word);-1!==i&&(e=this.positionInside(i))}return e}positionInside(t){let e=this.source.start.column,s=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=a(i,this.source.start),n=r+t;for(let t=r;t<n;t++)"\n"===i[t]?(e=1,s+=1):e+=1;return{column:e,line:s,offset:n}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:a(e,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:a(e,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(t.word){let r=e.slice(a(e,this.source.start),a(e,this.source.end)).indexOf(t.word);-1!==r&&(s=this.positionInside(r),i=this.positionInside(r+t.word.length))}else t.start?s={column:t.start.column,line:t.start.line,offset:a(e,t.start)}:t.index&&(s=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:a(e,t.end)}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<s.line||i.line===s.line&&i.column<=s.column)&&(i={column:s.column+1,line:s.line,offset:s.offset+1}),{end:i,start:s}}raw(t,s){return(new e).raw(this,t,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,s=!1;for(let i of t)i===this?s=!0:s?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);s||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let s={},i=null==e;e=e||new Map;let r=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let i=this[t];if(Array.isArray(i))s[t]=i.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof i&&i.toJSON)s[t]=i.toJSON(null,e);else if("source"===t){if(null==i)continue;let n=e.get(i.input);null==n&&(n=r,e.set(i.input,r),r++),s[t]={end:i.end,inputId:n,start:i.start}}else s[t]=i}return i&&(s.inputs=[...e.keys()].map(t=>t.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=s){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,s={}){let i={node:this};for(let t in s)i[t]=s[t];return t.warn(e,i)}}return es=o,o.default=o,es}function Zs(){if(rs)return is;rs=1;let t=Js();class e extends t{constructor(t){super(t),this.type="comment"}}return is=e,e.default=e,is}function Xs(){if(as)return ns;as=1;let t=Js();class e extends t{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}return ns=e,e.default=e,ns}function ti(){if(hs)return os;hs=1;let t,e,s,i,r=Zs(),n=Xs(),a=Js(),{isClean:o,my:h}=Ys();function c(t){return t.map(t=>(t.nodes&&(t.nodes=c(t.nodes)),delete t.source,t))}function l(t){if(t[o]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)l(e)}class p extends a{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,s,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],s=t(this.proxyOf.nodes[e],e),!1!==s);)this.indexes[i]+=1;return delete this.indexes[i],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...s)=>t[e](...s.map(t=>"function"==typeof t?(e,s)=>t(e.toProxy(),s):t)):"every"===e||"some"===e?s=>t[e]((t,...e)=>s(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,s)=>(t[e]===s||(t[e]=s,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let s,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i+1,0,t);for(let t in this.indexes)s=this.indexes[t],i<s&&(this.indexes[t]=s+r.length);return this.markDirty(),this}insertBefore(t,e){let s,i=this.index(t),r=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],r).reverse();i=this.index(t);for(let t of n)this.proxyOf.nodes.splice(i,0,t);for(let t in this.indexes)s=this.indexes[t],i<=s&&(this.indexes[t]=s+n.length);return this.markDirty(),this}normalize(s,a){if("string"==typeof s)s=c(e(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s)){s=s.slice(0);for(let t of s)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===s.type&&"document"!==this.type){s=s.nodes.slice(0);for(let t of s)t.parent&&t.parent.removeChild(t,"ignore")}else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw new Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new n(s)]}else if(s.selector||s.selectors)s=[new i(s)];else if(s.name)s=[new t(s)];else{if(!s.text)throw new Error("Unknown node type in node creation");s=[new r(s)]}let u=s.map(t=>(t[h]||p.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[o]&&l(t),t.raws||(t.raws={}),void 0===t.raws.before&&a&&void 0!==a.raws.before&&(t.raws.before=a.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t));return u}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let s in this.indexes)e=this.indexes[s],e>=t&&(this.indexes[s]=e-1);return this.markDirty(),this}replaceValues(t,e,s){return s||(s=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,s))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,s)=>{let i;try{i=t(e,s)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("atrule"===s.type&&t.test(s.name))return e(s,i)}):this.walk((s,i)=>{if("atrule"===s.type&&s.name===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("atrule"===t.type)return e(t,s)}))}walkComments(t){return this.walk((e,s)=>{if("comment"===e.type)return t(e,s)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("decl"===s.type&&t.test(s.prop))return e(s,i)}):this.walk((s,i)=>{if("decl"===s.type&&s.prop===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("decl"===t.type)return e(t,s)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("rule"===s.type&&t.test(s.selector))return e(s,i)}):this.walk((s,i)=>{if("rule"===s.type&&s.selector===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("rule"===t.type)return e(t,s)}))}}return p.registerParse=t=>{e=t},p.registerRule=t=>{i=t},p.registerAtRule=e=>{t=e},p.registerRoot=t=>{s=t},os=p,p.default=p,p.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,t.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,n.prototype):"comment"===e.type?Object.setPrototypeOf(e,r.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(t=>{p.rebuild(t)})},os}function ei(){if(ls)return cs;ls=1;let t=ti();class e extends t{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}return cs=e,e.default=e,t.registerAtRule(e),cs}function si(){if(us)return ps;us=1;let t,e,s=ti();class i extends s{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(s={}){return new t(new e,this,s).stringify()}}return i.registerLazyResult=e=>{t=e},i.registerProcessor=t=>{e=t},ps=i,i.default=i,ps}function ii(){return ds||(ds=1,fs={nanoid:(t=21)=>{let e="",s=0|t;for(;s--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(s=e)=>{let i="",r=0|s;for(;r--;)i+=t[Math.random()*t.length|0];return i}}),fs}function ri(){if(gs)return ms;gs=1;let{existsSync:t,readFileSync:e}=qe,{dirname:s,join:i}=qe,{SourceMapConsumer:r,SourceMapGenerator:n}=qe;class a{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,r=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let s=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(s)return i=t.substr(s[0].length),Buffer?Buffer.from(i,"base64").toString():window.atob(i);var i;let r=t.slice(22);throw r=r.slice(0,r.indexOf(",")),new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let s=t.lastIndexOf(e.pop()),i=t.indexOf("*/",s);s>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(s,i)))}loadFile(i,r,n){if(n||this.unsafeMap||/\.map$/i.test(i))return this.root=s(i),t(i)?(this.mapFile=i,e(i,"utf-8").toString().trim()):void 0}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof r)return n.fromSourceMap(e).toString();if(e instanceof n)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let s=e(t);if(s){let e=this.loadFile(s,t,!0);if(!e)throw new Error("Unable to load previous source map: "+s.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=i(s(t),e));let r=this.loadFile(e,t,!1);if(r)try{this.json=JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return r}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ms=a,a.default=a,ms}function ni(){if(ys)return xs;ys=1;let{nanoid:t}=ii(),{isAbsolute:e,resolve:s}=qe,{SourceMapConsumer:i,SourceMapGenerator:r}=qe,{fileURLToPath:n,pathToFileURL:a}=qe,o=Je(),h=ri(),c=qe,l=Symbol("lineToIndexCache"),p=Boolean(i&&r),u=Boolean(s&&e);function f(t){if(t[l])return t[l];let e=t.css.split("\n"),s=new Array(e.length),i=0;for(let t=0,r=e.length;t<r;t++)s[t]=i,i+=e[t].length+1;return t[l]=s,s}class d{get from(){return this.file||this.id}constructor(i,r={}){if(null==i||"object"==typeof i&&!i.toString)throw new Error(`PostCSS received ${i} instead of CSS string`);if(this.css=i.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!u||/^\w+:\/\//.test(r.from)||e(r.from)?this.file=r.from:this.file=s(r.from)),u&&p){let t=new h(this.css,r);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,s,i={}){let r,n,h,c,l;if(e&&"object"==typeof e){let t=e,i=s;if("number"==typeof t.offset){c=t.offset;let i=this.fromOffset(c);e=i.line,s=i.col}else e=t.line,s=t.column,c=this.fromLineAndColumn(e,s);if("number"==typeof i.offset){h=i.offset;let t=this.fromOffset(h);n=t.line,r=t.col}else n=i.line,r=i.column,h=this.fromLineAndColumn(i.line,i.column)}else if(s)c=this.fromLineAndColumn(e,s);else{c=e;let t=this.fromOffset(c);e=t.line,s=t.col}let p=this.origin(e,s,n,r);return l=p?new o(t,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,i.plugin):new o(t,void 0===n?e:{column:s,line:e},void 0===n?s:{column:r,line:n},this.css,this.file,i.plugin),l.input={column:s,endColumn:r,endLine:n,endOffset:h,line:e,offset:c,source:this.css},this.file&&(a&&(l.input.url=a(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return f(this)[t-1]+e-1}fromOffset(t){let e=f(this),s=0;if(t>=e[e.length-1])s=e.length-1;else{let i,r=e.length-2;for(;s<r;)if(i=s+(r-s>>1),t<e[i])r=i-1;else{if(!(t>=e[i+1])){s=i;break}s=i+1}}return{col:t-e[s]+1,line:s+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:s(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,s,i,r){if(!this.map)return!1;let o,h,c=this.map.consumer(),l=c.originalPositionFor({column:s,line:t});if(!l.source)return!1;"number"==typeof i&&(o=c.originalPositionFor({column:r,line:i})),h=e(l.source)?a(l.source):new URL(l.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let p={column:l.column,endColumn:o&&o.column,endLine:o&&o.line,line:l.line,url:h.toString()};if("file:"===h.protocol){if(!n)throw new Error("file: protocol is not available in this PostCSS build");p.file=n(h)}let u=c.sourceContentFor(l.source);return u&&(p.source=u),p}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}return xs=d,d.default=d,c&&c.registerInput&&c.registerInput(d),xs}function ai(){if(ws)return vs;ws=1;let t,e,s=ti();class i extends s{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,s){let i=super.normalize(t);if(e)if("prepend"===s)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of i)t.raws.before=e.raws.before;return i}removeChild(t,e){let s=this.index(t);return!e&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(t)}toResult(s={}){return new t(new e,this,s).stringify()}}return i.registerLazyResult=e=>{t=e},i.registerProcessor=t=>{e=t},vs=i,i.default=i,s.registerRoot(i),vs}function oi(){if(Ss)return bs;Ss=1;let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(t,e,s){let i=[],r="",n=!1,a=0,o=!1,h="",c=!1;for(let s of t)c?c=!1:"\\"===s?c=!0:o?s===h&&(o=!1):'"'===s||"'"===s?(o=!0,h=s):"("===s?a+=1:")"===s?a>0&&(a-=1):0===a&&e.includes(s)&&(n=!0),n?(""!==r&&i.push(r.trim()),r="",n=!1):r+=s;return(s||""!==r)&&i.push(r.trim()),i}};return bs=t,t.default=t,bs}function hi(){if(Cs)return ks;Cs=1;let t=ti(),e=oi();class s extends t{get selectors(){return e.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,s=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return ks=s,s.default=s,t.registerRule(s),ks}function ci(){if(Is)return As;Is=1;let{dirname:t,relative:e,resolve:s,sep:i}=qe,{SourceMapConsumer:r,SourceMapGenerator:n}=qe,{pathToFileURL:a}=qe,o=ni(),h=Boolean(r&&n),c=Boolean(t&&s&&e&&i);return As=class{constructor(t,e,s,i){this.stringify=t,this.mapOpts=s.map||{},this.root=e,this.opts=s,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let e of this.previous()){let s,i=this.toUrl(this.path(e.file)),n=e.root||t(e.file);!1===this.mapOpts.sourcesContent?(s=new r(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,i,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),c&&h&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=n.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new n({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new n({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,s=1,i=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(n,o,h)=>{if(this.css+=n,o&&"end"!==h&&(a.generated.line=s,a.generated.column=i-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=n.match(/\n/g),e?(s+=e.length,t=n.lastIndexOf("\n"),i=n.length-t):i+=n.length,o&&"start"!==h){let t=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===t.last&&!t.raws.semicolon||(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=s,a.generated.column=i-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=s,a.generated.column=i-1,this.map.addMapping(a)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute)return i;if(60===i.charCodeAt(0))return i;if(/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let n=this.opts.to?t(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=t(s(n,this.mapOpts.annotation)));let a=e(n,i);return this.memoizedPaths.set(i,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new o(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let s=e.source.input.from;if(s&&!t[s]){t[s]=!0;let i=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(a){let e=a(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===i&&(t=t.replace(/\\/g,"/"));let s=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,s),s}},As}function li(){if(Ts)return Rs;Ts=1;let t=ti(),e=ni(),s=function(){if(Vs)return Ns;Vs=1;let t=ei(),e=Zs(),s=Xs(),i=ai(),r=hi(),n=function(){if(Os)return Ps;Os=1;const t="'".charCodeAt(0),e='"'.charCodeAt(0),s="\\".charCodeAt(0),i="/".charCodeAt(0),r="\n".charCodeAt(0),n=" ".charCodeAt(0),a="\f".charCodeAt(0),o="\t".charCodeAt(0),h="\r".charCodeAt(0),c="[".charCodeAt(0),l="]".charCodeAt(0),p="(".charCodeAt(0),u=")".charCodeAt(0),f="{".charCodeAt(0),d="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),x=":".charCodeAt(0),y="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Ps=function(k,C={}){let _,E,A,I,P,O,N,V,R,T,L=k.css.valueOf(),D=C.ignoreErrors,M=L.length,B=0,F=[],U=[],j=-1;function $(t){throw k.error("Unclosed "+t,B)}return{back:function(t){U.push(t)},endOfFile:function(){return 0===U.length&&B>=M},nextToken:function(k){if(U.length)return U.pop();if(B>=M)return;let C=!!k&&k.ignoreUnclosed;switch(_=L.charCodeAt(B),_){case r:case n:case o:case h:case a:I=B;do{I+=1,_=L.charCodeAt(I)}while(_===n||_===r||_===o||_===h||_===a);O=["space",L.slice(B,I)],B=I-1;break;case c:case l:case f:case d:case x:case m:case u:{let t=String.fromCharCode(_);O=[t,t,B];break}case p:if(T=F.length?F.pop()[1]:"",R=L.charCodeAt(B+1),"url"===T&&R!==t&&R!==e&&R!==n&&R!==r&&R!==o&&R!==a&&R!==h){I=B;do{if(N=!1,I=L.indexOf(")",I+1),-1===I){if(D||C){I=B;break}$("bracket")}for(V=I;L.charCodeAt(V-1)===s;)V-=1,N=!N}while(N);O=["brackets",L.slice(B,I+1),B,I],B=I}else B<=j?O=["(","(",B]:(I=L.indexOf(")",B+1),E=L.slice(B,I+1),-1===I||b.test(E)?(j=-1===I?M:I,O=["(","(",B]):(O=["brackets",E,B,I],B=I));break;case t:case e:P=_===t?"'":'"',I=B;do{if(N=!1,I=L.indexOf(P,I+1),-1===I){if(D||C){I=B+1;break}$("string")}for(V=I;L.charCodeAt(V-1)===s;)V-=1,N=!N}while(N);O=["string",L.slice(B,I+1),B,I],B=I;break;case y:v.lastIndex=B+1,v.test(L),I=0===v.lastIndex?L.length-1:v.lastIndex-2,O=["at-word",L.slice(B,I+1),B,I],B=I;break;case s:for(I=B,A=!0;L.charCodeAt(I+1)===s;)I+=1,A=!A;if(_=L.charCodeAt(I+1),A&&_!==i&&_!==n&&_!==r&&_!==o&&_!==h&&_!==a&&(I+=1,S.test(L.charAt(I)))){for(;S.test(L.charAt(I+1));)I+=1;L.charCodeAt(I+1)===n&&(I+=1)}O=["word",L.slice(B,I+1),B,I],B=I;break;default:_===i&&L.charCodeAt(B+1)===g?(I=L.indexOf("*/",B+2)+1,0===I&&(D||C?I=L.length:$("comment")),O=["comment",L.slice(B,I+1),B,I],B=I):(w.lastIndex=B+1,w.test(L),I=0===w.lastIndex?L.length-1:w.lastIndex-2,O=["word",L.slice(B,I+1),B,I],F.push(O),B=I)}return B++,O},position:function(){return B}}}}();const a={empty:!0,space:!0};return Ns=class{constructor(t){this.input=t,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(e){let s,i,r,n=new t;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let a=!1,o=!1,h=[],c=[];for(;!this.tokenizer.endOfFile();){if(s=(e=this.tokenizer.nextToken())[0],"("===s||"["===s?c.push("("===s?")":"]"):"{"===s&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),0===c.length){if(";"===s){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===s){o=!0;break}if("}"===s){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(n.source.end=this.getPosition(i[3]||i[2]),n.source.end.offset++)}this.end(e);break}h.push(e)}else h.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(n.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(n,"params",h),a&&(e=h[h.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let s,i=0;for(let r=e-1;r>=0&&(s=t[r],"space"===s[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(t){let e,s,i,r=0;for(let[n,a]of t.entries()){if(s=a,i=s[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){if(e){if("word"===e[0]&&"progid"===e[1])continue;return n}this.doubleColon(s)}e=s}return!1}comment(t){let s=new e;this.init(s,t[2]),s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++;let i=t[1].slice(2,-2);if(i.trim()){let t=i.match(/^(\s*)([^]*\S)(\s*)$/);s.text=t[2],s.raws.left=t[1],s.raws.right=t[3]}else s.text="",s.raws.left=i,s.raws.right=""}createTokenizer(){this.tokenizer=n(this.input)}decl(t,e){let i=new s;this.init(i,t[0][2]);let r,n=t[t.length-1];for(";"===n[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(t){for(let e=t.length-1;e>=0;e--){let s=t[e],i=s[3]||s[2];if(i)return i}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a,o=[];for(;t.length&&(a=t[0][0],"space"===a||"comment"===a);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let s=this.stringFrom(t,e);s=this.spacesFromEnd(t)+s," !important"!==s&&(i.raws.important=s);break}if("important"===r[1].toLowerCase()){let s=t.slice(0),r="";for(let t=e;t>0;t--){let e=s[t][0];if(r.trim().startsWith("!")&&"space"!==e)break;r=s.pop()[1]+r}r.trim().startsWith("!")&&(i.important=!0,i.raws.important=r,t=s)}if("space"!==r[0]&&"comment"!==r[0])break}let h=t.some(t=>"space"!==t[0]&&"comment"!==t[0]);h&&(i.raws.between+=o.map(t=>t[1]).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new r;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,s=null,i=!1,r=null,n=[],a=t[1].startsWith("--"),o=[],h=t;for(;h;){if(s=h[0],o.push(h),"("===s||"["===s)r||(r=h),n.push("("===s?")":"]");else if(a&&i&&"{"===s)r||(r=h),n.push("}");else if(0===n.length){if(";"===s){if(i)return void this.decl(o,a);break}if("{"===s)return void this.rule(o);if("}"===s){this.tokenizer.back(o.pop()),e=!0;break}":"===s&&(i=!0)}else s===n[n.length-1]&&(n.pop(),0===n.length&&(r=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(r),e&&i){if(!a)for(;o.length&&(h=o[o.length-1][0],"space"===h||"comment"===h);)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,s,i){let r,n,o,h,c=s.length,l="",p=!0;for(let t=0;t<c;t+=1)r=s[t],n=r[0],"space"!==n||t!==c-1||i?"comment"===n?(h=s[t-1]?s[t-1][0]:"empty",o=s[t+1]?s[t+1][0]:"empty",a[h]||a[o]||","===l.slice(-1)?p=!1:l+=r[1]):l+=r[1]:p=!1;if(!p){let i=s.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:i,value:l}}t[e]=l}rule(t){t.pop();let e=new r;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,s="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)s=t.pop()[1]+s;return s}spacesAndCommentsFromStart(t){let e,s="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)s+=t.shift()[1];return s}spacesFromEnd(t){let e,s="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)s=t.pop()[1]+s;return s}stringFrom(t,e){let s="";for(let i=e;i<t.length;i++)s+=t[i][1];return t.splice(e,t.length-e),s}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},Ns}();function i(t,i){let r=new e(t,i),n=new s(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}return Rs=i,i.default=i,t.registerParse(i),Rs}function pi(){if(Ds)return Ls;Ds=1;class t{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ls=t,t.default=t,Ls}function ui(){if(Bs)return Ms;Bs=1;let t=pi();class e{get content(){return this.css}constructor(t,e,s){this.processor=t,this.messages=[],this.root=e,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let i=new t(e,s);return this.messages.push(i),i}warnings(){return this.messages.filter(t=>"warning"===t.type)}}return Ms=e,e.default=e,Ms}function fi(){if(Us)return Fs;Us=1;let t={};return Fs=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function di(){if($s)return js;$s=1;let t=ti(),e=si(),s=ci(),i=li(),r=ui(),n=ai(),a=Xe(),{isClean:o,my:h}=Ys(),c=fi();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0};function f(t){return"object"==typeof t&&"function"==typeof t.then}function d(t){let e=!1,s=l[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,0,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function m(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:d(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function g(t){return t[o]=!1,t.nodes&&t.nodes.forEach(t=>g(t)),t}let x={};class y{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,n){let a;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof y||s instanceof r)a=g(s.root),s.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=s.map);else{let e=i;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{a=e(s,n)}catch(t){this.processed=!0,this.error=t}a&&!a[h]&&t.rebuild(a)}else a=g(s);this.result=new r(e,a,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let s=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let t=s.postcssPlugin,e=s.postcssVersion,i=this.result.processor.version,r=e.split("."),n=i.split(".");(r[0]!==n[0]||parseInt(r[1])>parseInt(n[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=s.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,s)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,s])};for(let e of this.plugins)if("object"==typeof e)for(let s in e){if(!p[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[s])if("object"==typeof e[s])for(let i in e[s])t(e,"*"===i?s:s+"-"+i.toLowerCase(),e[s][i]);else"function"==typeof e[s]&&t(e,s,e[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.plugins[t],s=this.runOnRoot(e);if(f(s))try{await s}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[o];){t[o]=!0;let e=[m(t)];for(;e.length>0;){let t=this.visitTick(e);if(f(t))try{await t}catch(t){let s=e[e.length-1].node;throw this.handleError(t,s)}}}if(this.listeners.OnceExit)for(let[e,s]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>s(t,this.helpers));await Promise.all(e)}else await s(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return f(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=a;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=this.result.root.source;if(void 0===t.map&&!(i&&i.input&&i.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let r=new s(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(f(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[o];)t[o]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[s,i]of t){let t;this.result.lastPlugin=s;try{t=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(f(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:s,visitors:i}=e;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void t.pop();if(i.length>0&&e.visitorIndex<i.length){let[t,r]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return r(s.toProxy(),this.helpers)}catch(t){throw this.handleError(t,s)}}if(0!==e.iterator){let i,r=e.iterator;for(;i=s.nodes[s.indexes[r]];)if(s.indexes[r]+=1,!i[o])return i[o]=!0,void t.push(m(i));e.iterator=0,delete s.indexes[r]}let r=e.events;for(;e.eventIndex<r.length;){let t=r[e.eventIndex];if(e.eventIndex+=1,0===t)return void(s.nodes&&s.nodes.length&&(s[o]=!0,e.iterator=s.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[o]=!0;let e=d(t);for(let s of e)if(0===s)t.nodes&&t.each(t=>{t[o]||this.walkSync(t)});else{let e=this.listeners[s];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}}return y.registerPostcss=t=>{x=t},js=y,y.default=y,n.registerLazyResult(y),e.registerLazyResult(y),js}var mi=function(){if(Ks)return Hs;Ks=1;let t=ei(),e=Zs(),s=ti(),i=Je(),r=Xs(),n=si(),a=function(){if(Es)return _s;Es=1;let t=ei(),e=Zs(),s=Xs(),i=ni(),r=ri(),n=ai(),a=hi();function o(h,c){if(Array.isArray(h))return h.map(t=>o(t));let{inputs:l,...p}=h;if(l){c=[];for(let t of l){let e={...t,__proto__:i.prototype};e.map&&(e.map={...e.map,__proto__:r.prototype}),c.push(e)}}if(p.nodes&&(p.nodes=h.nodes.map(t=>o(t,c))),p.source){let{inputId:t,...e}=p.source;p.source=e,null!=t&&(p.source.input=c[t])}if("root"===p.type)return new n(p);if("decl"===p.type)return new s(p);if("rule"===p.type)return new a(p);if("comment"===p.type)return new e(p);if("atrule"===p.type)return new t(p);throw new Error("Unknown node type: "+h.type)}return _s=o,o.default=o,_s}(),o=ni(),h=di(),c=oi(),l=Js(),p=li(),u=function(){if(Gs)return Ws;Gs=1;let t=si(),e=di(),s=function(){if(qs)return zs;qs=1;let t=ci(),e=li(),s=ui(),i=Xe(),r=fi();class n{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,s=e;try{t=s(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let a=i;this.result=new s(this._processor,void 0,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let h=new t(a,void 0,this._opts,r);if(h.isMap()){let[t,e]=h.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}return zs=n,n.default=n,zs}(),i=ai();class r{constructor(t=[]){this.version="8.5.14",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let s of t)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)e.push(s);else if("function"==typeof s)e.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,i={}){return this.plugins.length||i.parser||i.stringifier||i.syntax?new e(this,t,i):new s(this,t,i)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}return Ws=r,r.default=r,i.registerProcessor(r),t.registerProcessor(r),Ws}(),f=ui(),d=ai(),m=hi(),g=Xe(),x=pi();function y(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new u(t)}return y.plugin=function(t,e){let s,i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...s);return r.postcssPlugin=t,r.postcssVersion=(new u).version,r}return Object.defineProperty(r,"postcss",{get:()=>(s||(s=r()),s)}),r.process=function(t,e,s){return y([r(s)]).process(t,e)},r},y.stringify=g,y.parse=p,y.fromJSON=a,y.list=c,y.comment=t=>new e(t),y.atRule=e=>new t(e),y.decl=t=>new r(t),y.rule=t=>new m(t),y.root=t=>new d(t),y.document=t=>new n(t),y.CssSyntaxError=i,y.Declaration=r,y.Container=s,y.Processor=u,y.Document=n,y.Comment=e,y.Warning=x,y.AtRule=t,y.Result=f,y.Input=o,y.Rule=m,y.Root=d,y.Node=l,h.registerPostcss(y),Hs=y,y.default=y,Hs}();const gi=Fe(mi);gi.stringify,gi.fromJSON,gi.plugin,gi.parse,gi.list,gi.document,gi.comment,gi.atRule,gi.rule,gi.decl,gi.root,gi.CssSyntaxError,gi.Declaration,gi.Container,gi.Processor,gi.Document,gi.Comment,gi.Warning,gi.AtRule,gi.Result,gi.Input,gi.Rule,gi.Root,gi.Node;const xi=new Set(["body","html",":root","*"]);function yi(t,e){return t&&t.trim()?gi([(s=`[data-vbi-type="${e}"]`,{postcssPlugin:"hc-scope",AtRule(t){if("import"===t.name)return console.warn("[hc-css-scope] @import 已被拒绝(防外部资源加载):",t.params),void t.remove();"font-face"===t.name&&console.warn("[hc-css-scope] @font-face 全局生效,font-family 命名注意冲突")},Rule(t){(function(t){let e=t.parent;for(;e&&"object"==typeof e;){const t=e;if("atrule"===t.type&&/keyframes$/i.test(t.name??""))return!0;e=t.parent}return!1})(t)||(t.selectors=t.selectors.map(t=>function(t,e){const s=t.trim();if(!s)return s;if(xi.has(s))return e;for(const t of xi){const i=s.charAt(t.length);if(s.startsWith(t)&&(" "===i||">"===i||"+"===i||"~"===i||","===i))return e+s.slice(t.length)}return`${e} ${s}`}(t,s)))}})]).process(t,{from:void 0}).css:"";var s}const vi=new Map;function wi(t){let e=5381;for(let s=0;s<t.length;s++)e=(e<<5)+e+t.charCodeAt(s)|0;return(e>>>0).toString(36)}function bi(t){const e=t.replace(/[^a-zA-Z0-9_-]/g,"_");return e===t?`hc-style-${e}`:`hc-style-${e}-${wi(t).slice(0,6)}`}function Si(t,e){var s;const i=e??"",r=bi(t),n=vi.get(t);if(!i.trim())return null==(s=document.getElementById(r))||s.remove(),void(n&&vi.set(t,{...n,cssHash:""}));const a=wi(i);if(n&&n.cssHash===a)return;let o;try{o=yi(i,t)}catch(e){return void console.warn("[hc-css-scope]",t,"PostCSS process failed:",e)}!function(t,e){const s=bi(t);let i=document.getElementById(s);i||(i=document.createElement("style"),i.id=s,i.setAttribute("data-hc-scope",t),document.head.appendChild(i)),i.textContent=e}(t,o),n?vi.set(t,{...n,cssHash:a}):vi.set(t,{cssHash:a,refCount:0})}function ki(t,e){Si(t,e);const s=vi.get(t);s?vi.set(t,{...s,refCount:s.refCount+1}):vi.set(t,{cssHash:"",refCount:1})}function Ci(t){var e;const s=vi.get(t);if(!s)return;const i=s.refCount-1;i<=0?(null==(e=document.getElementById(bi(t)))||e.remove(),vi.delete(t)):vi.set(t,{...s,refCount:i})}function _i(t){var e;null==(e=document.getElementById(bi(t)))||e.remove(),vi.delete(t)}function Ei(){return vi.size}function Ai(){return[...vi.entries()].map(([t,e])=>({scopeId:t,componentId:t,refCount:e.refCount,cssHash:e.cssHash}))}function Ii(t,e,s){s(t,e)}function Pi(t,e,s){}var Oi={};Oi.Program=Oi.BlockStatement=Oi.StaticBlock=function(t,e,s){for(var i=0,r=t.body;i<r.length;i+=1)s(r[i],e,"Statement")},Oi.Statement=Ii,Oi.EmptyStatement=Pi,Oi.ExpressionStatement=Oi.ParenthesizedExpression=Oi.ChainExpression=function(t,e,s){return s(t.expression,e,"Expression")},Oi.IfStatement=function(t,e,s){s(t.test,e,"Expression"),s(t.consequent,e,"Statement"),t.alternate&&s(t.alternate,e,"Statement")},Oi.LabeledStatement=function(t,e,s){return s(t.body,e,"Statement")},Oi.BreakStatement=Oi.ContinueStatement=Pi,Oi.WithStatement=function(t,e,s){s(t.object,e,"Expression"),s(t.body,e,"Statement")},Oi.SwitchStatement=function(t,e,s){s(t.discriminant,e,"Expression");for(var i=0,r=t.cases;i<r.length;i+=1)s(r[i],e)},Oi.SwitchCase=function(t,e,s){t.test&&s(t.test,e,"Expression");for(var i=0,r=t.consequent;i<r.length;i+=1)s(r[i],e,"Statement")},Oi.ReturnStatement=Oi.YieldExpression=Oi.AwaitExpression=function(t,e,s){t.argument&&s(t.argument,e,"Expression")},Oi.ThrowStatement=Oi.SpreadElement=function(t,e,s){return s(t.argument,e,"Expression")},Oi.TryStatement=function(t,e,s){s(t.block,e,"Statement"),t.handler&&s(t.handler,e),t.finalizer&&s(t.finalizer,e,"Statement")},Oi.CatchClause=function(t,e,s){t.param&&s(t.param,e,"Pattern"),s(t.body,e,"Statement")},Oi.WhileStatement=Oi.DoWhileStatement=function(t,e,s){s(t.test,e,"Expression"),s(t.body,e,"Statement")},Oi.ForStatement=function(t,e,s){t.init&&s(t.init,e,"ForInit"),t.test&&s(t.test,e,"Expression"),t.update&&s(t.update,e,"Expression"),s(t.body,e,"Statement")},Oi.ForInStatement=Oi.ForOfStatement=function(t,e,s){s(t.left,e,"ForInit"),s(t.right,e,"Expression"),s(t.body,e,"Statement")},Oi.ForInit=function(t,e,s){"VariableDeclaration"===t.type?s(t,e):s(t,e,"Expression")},Oi.DebuggerStatement=Pi,Oi.FunctionDeclaration=function(t,e,s){return s(t,e,"Function")},Oi.VariableDeclaration=function(t,e,s){for(var i=0,r=t.declarations;i<r.length;i+=1)s(r[i],e)},Oi.VariableDeclarator=function(t,e,s){s(t.id,e,"Pattern"),t.init&&s(t.init,e,"Expression")},Oi.Function=function(t,e,s){t.id&&s(t.id,e,"Pattern");for(var i=0,r=t.params;i<r.length;i+=1)s(r[i],e,"Pattern");s(t.body,e,t.expression?"Expression":"Statement")},Oi.Pattern=function(t,e,s){"Identifier"===t.type?s(t,e,"VariablePattern"):"MemberExpression"===t.type?s(t,e,"MemberPattern"):s(t,e)},Oi.VariablePattern=Pi,Oi.MemberPattern=Ii,Oi.RestElement=function(t,e,s){return s(t.argument,e,"Pattern")},Oi.ArrayPattern=function(t,e,s){for(var i=0,r=t.elements;i<r.length;i+=1){var n=r[i];n&&s(n,e,"Pattern")}},Oi.ObjectPattern=function(t,e,s){for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];"Property"===n.type?(n.computed&&s(n.key,e,"Expression"),s(n.value,e,"Pattern")):"RestElement"===n.type&&s(n.argument,e,"Pattern")}},Oi.Expression=Ii,Oi.ThisExpression=Oi.Super=Oi.MetaProperty=Pi,Oi.ArrayExpression=function(t,e,s){for(var i=0,r=t.elements;i<r.length;i+=1){var n=r[i];n&&s(n,e,"Expression")}},Oi.ObjectExpression=function(t,e,s){for(var i=0,r=t.properties;i<r.length;i+=1)s(r[i],e)},Oi.FunctionExpression=Oi.ArrowFunctionExpression=Oi.FunctionDeclaration,Oi.SequenceExpression=function(t,e,s){for(var i=0,r=t.expressions;i<r.length;i+=1)s(r[i],e,"Expression")},Oi.TemplateLiteral=function(t,e,s){for(var i=0,r=t.quasis;i<r.length;i+=1)s(r[i],e);for(var n=0,a=t.expressions;n<a.length;n+=1)s(a[n],e,"Expression")},Oi.TemplateElement=Pi,Oi.UnaryExpression=Oi.UpdateExpression=function(t,e,s){s(t.argument,e,"Expression")},Oi.BinaryExpression=Oi.LogicalExpression=function(t,e,s){s(t.left,e,"Expression"),s(t.right,e,"Expression")},Oi.AssignmentExpression=Oi.AssignmentPattern=function(t,e,s){s(t.left,e,"Pattern"),s(t.right,e,"Expression")},Oi.ConditionalExpression=function(t,e,s){s(t.test,e,"Expression"),s(t.consequent,e,"Expression"),s(t.alternate,e,"Expression")},Oi.NewExpression=Oi.CallExpression=function(t,e,s){if(s(t.callee,e,"Expression"),t.arguments)for(var i=0,r=t.arguments;i<r.length;i+=1)s(r[i],e,"Expression")},Oi.MemberExpression=function(t,e,s){s(t.object,e,"Expression"),t.computed&&s(t.property,e,"Expression")},Oi.ExportNamedDeclaration=Oi.ExportDefaultDeclaration=function(t,e,s){if(t.declaration&&s(t.declaration,e,"ExportNamedDeclaration"===t.type||t.declaration.id?"Statement":"Expression"),t.source&&s(t.source,e,"Expression"),t.attributes)for(var i=0,r=t.attributes;i<r.length;i+=1)s(r[i],e)},Oi.ExportAllDeclaration=function(t,e,s){if(t.exported&&s(t.exported,e),s(t.source,e,"Expression"),t.attributes)for(var i=0,r=t.attributes;i<r.length;i+=1)s(r[i],e)},Oi.ImportAttribute=function(t,e,s){s(t.value,e,"Expression")},Oi.ImportDeclaration=function(t,e,s){for(var i=0,r=t.specifiers;i<r.length;i+=1)s(r[i],e);if(s(t.source,e,"Expression"),t.attributes)for(var n=0,a=t.attributes;n<a.length;n+=1)s(a[n],e)},Oi.ImportExpression=function(t,e,s){s(t.source,e,"Expression"),t.options&&s(t.options,e,"Expression")},Oi.ImportSpecifier=Oi.ImportDefaultSpecifier=Oi.ImportNamespaceSpecifier=Oi.Identifier=Oi.PrivateIdentifier=Oi.Literal=Pi,Oi.TaggedTemplateExpression=function(t,e,s){s(t.tag,e,"Expression"),s(t.quasi,e,"Expression")},Oi.ClassDeclaration=Oi.ClassExpression=function(t,e,s){return s(t,e,"Class")},Oi.Class=function(t,e,s){t.id&&s(t.id,e,"Pattern"),t.superClass&&s(t.superClass,e,"Expression"),s(t.body,e)},Oi.ClassBody=function(t,e,s){for(var i=0,r=t.body;i<r.length;i+=1)s(r[i],e)},Oi.MethodDefinition=Oi.PropertyDefinition=Oi.Property=function(t,e,s){t.computed&&s(t.key,e,"Expression"),t.value&&s(t.value,e,"Expression")};const Ni=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]);function Vi(t){if("string"!=typeof t||!t.trim())return{methodsDecl:[],emitsDecl:[],propsDecl:[]};let e;try{e=Ne(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0})}catch{return{methodsDecl:[],emitsDecl:[],propsDecl:[]}}const s=function(t){for(const e of t.body){if("ExportDefaultDeclaration"!==e.type)continue;const s=e.declaration;if("ObjectExpression"===s.type)return s;if("Identifier"===s.type)for(const e of t.body)if("VariableDeclaration"===e.type&&e.declarations.some(t=>{var e;return t.id.name===s.name&&"ObjectExpression"===(null==(e=t.init)?void 0:e.type)}))return e.declarations.find(t=>t.id.name===s.name).init}return null}(e);return{methodsDecl:s?Li(s):[],propsDecl:s?Mi(s):[],emitsDecl:Fi(e)}}function Ri(t){return t&&"Property"===t.type?"Identifier"===t.key.type?t.key.name:"Literal"===t.key.type&&"string"==typeof t.key.value?t.key.value:null:null}function Ti(t,e){return t&&"ObjectExpression"===t.type?t.properties.find(t=>"Property"===t.type&&Ri(t)===e):null}function Li(t){const e=Ti(t,"method");if(!e||"ObjectExpression"!==e.value.type)return[];const s=[];for(const t of e.value.properties){if("Property"!==t.type)continue;const e=Ri(t);if(!e)continue;if(Ni.has(e))continue;const i=t.value;"FunctionExpression"!==i.type&&"ArrowFunctionExpression"!==i.type&&!0!==t.method||s.push({name:e,params:Di(i)})}return s}function Di(t){return(null==t?void 0:t.params)?t.params.map(t=>"Identifier"===t.type?t.name:"AssignmentPattern"===t.type&&"Identifier"===t.left.type?t.left.name:"RestElement"===t.type&&"Identifier"===t.argument.type?"..."+t.argument.name:"_"):[]}function Mi(t){const e=Ti(t,"custom");if(!e||"ObjectExpression"!==e.value.type)return[];const s=[];for(const t of e.value.properties){if("Property"!==t.type)continue;const e=Ri(t);if(!e)continue;if("ObjectExpression"!==t.value.type){s.push({key:e,type:"unknown"});continue}const i={key:e};for(const e of t.value.properties){if("Property"!==e.type)continue;const t=Ri(e);if(!t)continue;const s=e.value;"value"===t||"type"===t||"name"===t?i[t]=Bi(s):"enum"===t&&"ArrayExpression"===s.type&&(i.enum=s.elements.map(Bi).filter(t=>void 0!==t))}s.push(i)}return s}function Bi(t){if(t){if("Literal"===t.type)return t.value;if("TemplateLiteral"===t.type&&0===t.expressions.length)return t.quasis.map(t=>t.value.cooked).join("");if("UnaryExpression"===t.type&&"-"===t.operator){const e=Bi(t.argument);if("number"==typeof e)return-e}}}function Fi(t){const e=new Set;return s=t,i={CallExpression(t){if(!function(t){if("MemberExpression"!==t.type)return!1;const e=t.property;return"Identifier"===e.type&&("emit"===e.name||"$emit"===e.name)}(t.callee))return;const s=Bi(t.arguments[0]);"string"==typeof s&&s&&e.add(s)}},r||(r=Oi),function t(e,s,n){var a=n||e.type;!function(t,e,s,i,r){if(null==t[e])throw new Error("No walker function defined for node type "+e);t[e](s,i,r)}(r,a,e,s,t),i[a]&&i[a](e,s)}(s,n,a),Array.from(e).map(t=>({event:t}));var s,i,r,n,a}const Ui={key:1,class:"rounded-md border-2 border-rose-300 bg-rose-50 p-4 text-sm text-rose-900 space-y-2 min-h-[140px] overflow-auto"},ji={class:"font-semibold flex items-center gap-1.5"},$i={class:"font-mono text-xs text-rose-800 break-all"},zi={key:0,class:"text-[10px] font-mono bg-rose-100/60 p-2 rounded overflow-auto max-h-60 text-rose-800"},qi=s({__name:"ErrorBoundary",props:{label:{}},setup(t){const s=t,l=e(null),p=e(0),u=e(!1);function f(){l.value=null,u.value=!1,p.value++}return i(t=>(console.error(`[hc-eb${s.label?" "+s.label:""}]`,t),l.value=t,!1)),(e,s)=>(r(),n("div",{key:p.value,class:"hc-eb-root",style:{width:"100%",height:"100%"}},[l.value?(r(),n("div",Ui,[o("div",ji,[s[1]||(s[1]=o("span",null,"⚠️",-1)),o("span",null,"组件渲染失败"+h(t.label?` — ${t.label}`:""),1)]),o("div",$i,h(l.value.message),1),o("button",{class:"text-xs text-rose-700 hover:text-rose-900 underline",onClick:s[0]||(s[0]=t=>u.value=!u.value)},h(u.value?"隐藏":"展开")+"堆栈 ",1),u.value?(r(),n("pre",zi,h(l.value.stack),1)):c("",!0),o("button",{class:"text-xs px-3 py-1 rounded bg-rose-600 hover:bg-rose-700 text-white transition-colors",onClick:f}," 重试 ")])):a(e.$slots,"default",{key:0})]))}}),Wi=["data-vbi-id","data-vbi-type","data-vbi-canvas"],Gi={key:0,class:"rounded-md border-2 border-amber-300 bg-amber-50 p-4 text-sm text-amber-900 space-y-2 min-h-[140px] overflow-auto"},Hi={class:"text-[11px] font-mono break-all whitespace-pre-wrap"},Ki={key:1,class:"grid place-items-center min-h-[140px] text-xs text-zinc-400"},Qi=s({__name:"RuntimeBox",props:{instanceId:{},componentId:{},scopeId:{},canvasId:{},htmlSource:{},jsSource:{},cssSource:{default:""},customValues:{default:()=>({})},position:{},size:{},zIndex:{}},setup(t){const s=t,i=l(()=>s.scopeId??s.componentId),a=p(w,null),b=l(()=>s.canvasId??a??v),S=u(null),C=e(null),_=e(!1),E=e(0);f(()=>[s.htmlSource,s.jsSource],()=>{!async function(){_.value=!0,C.value=null;try{const t=await De({html:s.htmlSource,js:s.jsSource});S.value=t,E.value++}catch(t){C.value=t instanceof Error?t:new Error(String(t)),S.value=null}finally{_.value=!1}}()},{immediate:!0});let I=!1;f(()=>[s.cssSource,i.value],([t,e],s)=>{const i=(null==s?void 0:s[1])??null;i&&i!==e?(Ci(i),ki(e,t),I=!0):I?Si(e,t):(ki(e,t),I=!0)},{immediate:!0});const P=l(()=>{const t={width:"100%",height:"100%"};return s.position&&(t.position="absolute",t.left=`${s.position.x}px`,t.top=`${s.position.y}px`),void 0!==s.zIndex&&(t.zIndex=String(s.zIndex)),t});let O=null,N=null;function V(t){if(t!==O)if(O=t,t&&"object"==typeof t){const e=b.value;k(e,s.instanceId,s.componentId,t),N=e}else null!==N&&(A(s.instanceId,N),N=null)}return d(()=>{null!==N&&(A(s.instanceId,N),N=null),O=null,I&&(Ci(i.value),I=!1)}),(e,s)=>(r(),n("div",{class:"_vbi_box","data-vbi-id":t.instanceId,"data-vbi-type":i.value,"data-vbi-canvas":b.value,style:m(P.value)},[C.value?(r(),n("div",Gi,[s[0]||(s[0]=o("div",{class:"font-semibold"},"⚠️ 编译失败",-1)),o("pre",Hi,h(C.value.message),1)])):_.value&&!S.value?(r(),n("div",Ki," 编译中… ")):S.value?(r(),g(qi,{key:E.value,label:t.instanceId},{default:x(()=>[(r(),g(y(S.value.options),{"hc-custom-values":t.customValues,ref:V},null,8,["hc-custom-values"]))]),_:1},8,["label"])):c("",!0)],12,Wi))}}),Yi="0.0.0-stage2b";export{v as DEFAULT_CANVAS_ID,qi as ErrorBoundary,w as HC_CANVAS_ID_KEY,F as HC_INJECT_KEY,Qi as RuntimeBox,Yi as VERSION,N as assets,ki as attachScope,Me as clearCompileCache,De as compileComponent,R as createCanvasesRegistry,L as createHyperCard,Ai as debugScopedCssRefs,Ci as detachScope,C as disposeCanvas,Be as getCompileCacheSize,I as getInstance,Ei as getScopedCssCount,Si as injectScopedCss,D as isVuePlugin,_ as listCanvasIds,P as listInstances,Vi as parseComponentSource,E as register,k as registerInCanvas,b as registryVersion,_i as removeScopedCss,O as runtime,yi as scopeCss,A as unregister};
|
|
1
|
+
import*as e from"vue";import{ref as t,defineComponent as s,onErrorCaptured as r,openBlock as n,createElementBlock as o,renderSlot as i,createElementVNode as l,toDisplayString as a,createCommentVNode as c,computed as u,inject as h,shallowRef as p,watch as f,onBeforeUnmount as d,normalizeStyle as m,createBlock as g,withCtx as y,resolveDynamicComponent as w}from"vue";import{p as v}from"./parseSourceEntry-BNu0kje7.js";import{a as b}from"./parseSourceEntry-BNu0kje7.js";const x="__default__",C="__hcCanvasId",S=t(0),k=new Map;function O(e,t,s,r){var n;const o=function(e){let t=k.get(e);return t||(t=new Map,k.set(e,t)),t}(e);o.has(t)&&(console.warn(`[hc-registry] instance ${t} already registered in canvas "${e}", overwriting`),null==(n=o.get(t))||n.__dispose());const i=function(e,t,s){const r={all:n=n||new Map,on:function(e,t){var s=n.get(e);s?s.push(t):n.set(e,[t])},off:function(e,t){var s=n.get(e);s&&(t?s.splice(s.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var s=n.get(e);s&&s.slice().map(function(e){e(t)}),(s=n.get("*"))&&s.slice().map(function(s){s(e,t)})}};var n;return{instanceId:e,componentId:t,vm:s,call(t,...r){const n=s[t];if("function"!=typeof n)throw new Error(`[hc-registry] method "${t}" not found on instance ${e}`);return n.apply(s,r)},on:(e,t)=>(r.on(e,t),()=>r.off(e,t)),emit(e,t){r.emit(e,t)},setProp(e,t){s[e]=t},setDataInput(t,r){const n=s.custom;if(!n||!(t in n))return void console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] not declared on instance ${e}; binding 改了一个未声明的 dataInput key,组件不会响应`);const o=n[t];o&&"object"==typeof o?!0===o.dataInput?o.value=r:console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] is not declared with dataInput:true on instance ${e}; 请在组件源码 custom.${t} 上加 \`dataInput: true\` 才能被 binding 灌入`):console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] not a {value:...} slot`)},__dispose(){r.all.clear()}}}(t,s,r);return o.set(t,i),S.value++,i}function A(e){const t=k.get(e);if(t){for(const e of t.values())e.__dispose();t.clear(),k.delete(e),S.value++}}function E(){return[...k.keys()]}function I(e,t,s){return O(x,e,t,s)}function P(e,t=x){const s=k.get(t);if(!s)return;const r=s.get(e);r&&(r.__dispose(),s.delete(e),S.value++)}function R(e,t){var s;if(void 0!==t)return(null==(s=k.get(t))?void 0:s.get(e))??null;let r=null;const n=[];for(const[t,s]of k){const o=s.get(e);o&&(r||(r=o),n.push(t))}return n.length>1&&console.warn(`[hc-registry] getInstance("${e}") matched ${n.length} canvases [${n.join(", ")}]; returning first. Prefer __HYPERCARD__.canvases.callComponent(canvasId, instanceId, ...) for explicit scope.`),r}function $(e){const t=null==e?void 0:e.componentId,s=t?e=>e.componentId===t:()=>!0;if(void 0!==(null==e?void 0:e.canvasId)){const t=k.get(e.canvasId);return t?[...t.values()].filter(s):[]}const r=[];for(const e of k.values())for(const t of e.values())s(t)&&r.push(t);return r}const j={getInstance:R,listInstances:$,call(e,t,...s){const r=R(e);if(r)return r.call(t,...s);console.debug(`[hc-runtime] call: instance "${e}" not found`)},on(e,t,s){const r=R(e);if(r)return r.on(t,s);console.debug(`[hc-runtime] on: instance "${e}" not found`)},emit(e,t,s){const r=R(e);r?r.emit(t,s):console.debug(`[hc-runtime] emit: instance "${e}" not found`)}},_={pickerUrl:e=>`/a/${e}`};function M(e){return{canvasId:e,listInstances:t=>$({canvasId:e,componentId:null==t?void 0:t.componentId}),getInstance:t=>R(t,e),call(t,s,...r){const n=R(t,e);if(n)try{return n.call(s,...r)}catch(r){return void console.warn(`[hc-canvases] call error: canvas="${e}" instance="${t}" method="${s}":`,r)}else console.warn(`[hc-canvases] call: instance "${t}" not found in canvas "${e}"`)},emit(t,s,r){const n=R(t,e);if(n)try{n.emit(s,r)}catch(r){console.warn(`[hc-canvases] emit error: canvas="${e}" instance="${t}" event="${s}":`,r)}else console.warn(`[hc-canvases] emit: instance "${t}" not found in canvas "${e}"`)},broadcastInCanvas(t,s){const r=$({canvasId:e});for(const n of r)try{n.emit(t,s)}catch(s){console.warn(`[hc-canvases] broadcastInCanvas: canvas="${e}" instance="${n.instanceId}" event="${t}" emit failed:`,s)}},dispose(){A(e)}}}function B(){return{list:()=>E().map(e=>M(e)),get:e=>E().includes(e)?M(e):null,getAll(){const e={};for(const t of E())e[t]=M(t);return e},callComponent(e,t,s,...r){const n=R(t,e);if(n)try{return n.call(s,...r)}catch(r){return void console.warn(`[hc-canvases] callComponent error: canvas="${e}" instance="${t}" method="${s}":`,r)}else console.warn(`[hc-canvases] callComponent: canvas="${e}" instance="${t}" not found`)},emitToCanvas(e,t,s,r){const n=R(t,e);if(n)try{n.emit(s,r)}catch(r){console.warn(`[hc-canvases] emitToCanvas error: canvas="${e}" instance="${t}" event="${s}":`,r)}else console.warn(`[hc-canvases] emitToCanvas: canvas="${e}" instance="${t}" not found`)},broadcast(e,t){for(const s of E())try{const r=$({canvasId:s});for(const n of r)try{n.emit(e,t)}catch(t){console.warn(`[hc-canvases] broadcast: canvas="${s}" instance="${n.instanceId}" event="${e}" emit failed:`,t)}}catch(t){console.warn(`[hc-canvases] broadcast: canvas="${s}" event="${e}" failed:`,t)}}}}const U=new Set(["vue","Vue","window","global","globalThis","console","document","process","$","libs","runtime","assets","version"]);function z(e={}){const t=e.strict??!1,s=e.libs??{},r=e.version??"v1";return{install(e){const n=Object.entries(s),o=n.filter(([,e])=>D(e)),i=n.filter(([e])=>U.has(e)),l=[`[hypercard] 已注册 ${n.length} 个 libs:`];for(const[e,t]of n)l.push(` ${e.padEnd(16)} ${F(t)}`);console.info(l.join("\n"));const a=[];o.length>1&&a.push(`检测到 ${o.length} 个 Vue plugin(${o.map(([e])=>e).join(", ")}),请确认全局组件命名不冲突`);for(const[e]of i)a.push(`lib 名 "${e}" 是保留词,建议改名`);if(a.length>0){const e=a.map(e=>` - ${e}`).join("\n");if(t)throw new Error(`[hypercard] strict mode 阻止启动:\n${e}`);console.warn(`[hypercard] 警告:\n${e}`)}for(const[s,r]of o){const[n,o]=L(r);try{e.use(n,...o)}catch(e){if(console.error(`[hypercard] app.use("${s}") 失败:`,e),t)throw e}}const c={};for(const[e,t]of n){const[s]=L(t);c[e]=s}const u={libs:c,runtime:j,assets:_,version:r,canvases:B()};e.provide(N,u),e.config.globalProperties.$hc=u,"undefined"!=typeof window&&(window.__HYPERCARD__=u)}}}function D(e){return Array.isArray(e)&&e.length>=1?D(e[0]):"object"==typeof e&&null!==e&&"function"==typeof e.install}function L(e){return Array.isArray(e)&&e.length>=1?[e[0],e.slice(1)]:[e,[]]}function F(e){return D(e)?Array.isArray(e)?"✓ Vue plugin (with options) → 已 app.use":"✓ Vue plugin → 已 app.use":"function"==typeof e?"· function":Array.isArray(e)?"· array":"object"==typeof e&&null!==e?"· object":"· "+typeof e}const N="__HYPERCARD__",T=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]),V=new Map;function W(e,t){for(V.has(e)&&V.delete(e),V.set(e,t);V.size>100;){const e=V.keys().next().value;if(void 0===e)break;V.delete(e)}}function J(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)|0;return(t>>>0).toString(36)}function H(e){if(!Array.isArray(e))return[];const t=[];for(const s of e){if(!s||"object"!=typeof s)continue;const e=s;if("string"!=typeof e.name)continue;const r={name:e.name};"boolean"==typeof e.multiple&&(r.multiple=e.multiple),Array.isArray(e.accepts)&&(r.accepts=e.accepts.filter(e=>"string"==typeof e)),"number"==typeof e.maxChildren&&(r.maxChildren=e.maxChildren),"string"==typeof e.label&&(r.label=e.label),t.push(r)}return t}async function Y(t){const s=J(t.html)+"_"+J(t.js),r=V.get(s);if(r)return W(s,r),r;const n=(async()=>function(t,s){if(!t||"object"!=typeof t)throw new Error("[hc-compile] component.js must `export default` an object");const r=t,n=r.name,o=r.method??{},i=r.attribute??{},l=r.custom??{},a=r.style??{},c=r.slots,u=r.data,h=r.methods??{},p=r.computed,f=r.watch,d=r.mounted,m=r.beforeUnmount,g=r.props,y=new Set(["name","method","attribute","custom","style","option","data","methods","computed","watch","mounted","beforeUnmount","props","slots"]),w={};for(const e of Object.keys(r))y.has(e)||(w[e]=r[e]);const v={};for(const[e,t]of Object.entries(o))T.has(e)||"function"!=typeof t||(v[e]=t);const b=Object.keys(v),x={...v,...h},C=(s??"").trim()||"<div></div>";return{options:{render:e.compile(C),props:{...g?Array.isArray(g)?Object.fromEntries(g.map(e=>[e,null])):"object"==typeof g?g:{}:{},hcCustomValues:{type:Object,default:()=>({})}},data(){const e="function"==typeof u?u.call(this):u??{},t=this.hcCustomValues??{},s={};for(const[e,r]of Object.entries(l)){let n;try{n=JSON.parse(JSON.stringify(r??{}))}catch{n={...r??{}}}e in t&&n&&"object"==typeof n&&(n.value=t[e]),s[e]=n}return{custom:s,...e}},methods:x,computed:p,watch:(()=>{const e=f&&"object"==typeof f?{...f}:{};return e.hcCustomValues={handler(e){if(e&&this.custom)for(const[t,s]of Object.entries(e)){const e=this.custom[t];e&&"object"==typeof e&&(e.value=s)}},deep:!0},e})(),mounted(){const e=[],t=this.$el;if(t&&t instanceof HTMLElement){Object.assign(t.style,a);for(const[e,s]of Object.entries(i))"string"==typeof s&&s&&t.setAttribute(e,s);for(const s of T){if("init"===s)continue;const r=o[s];if("function"==typeof r){const n=s.replace(/^on/,"").toLowerCase(),o=e=>{r.call(this,{event:e,data:e})};t.addEventListener(n,o),e.push(()=>t.removeEventListener(n,o))}}}this.__hcCleanup=e;const s=o.init;"function"==typeof s&&s.call(this),"function"==typeof d&&d.call(this)},beforeUnmount(){var e;null==(e=this.__hcCleanup)||e.forEach(e=>{try{e()}catch{}}),this.__hcCleanup=void 0,"function"==typeof m&&m.call(this)},...w},meta:{name:n,attribute:i,style:a,customDecl:l,methodNames:b,slotsDecl:H(c)}}}(function(e){let t;try{const s=v(e,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0}).body.find(e=>"ExportDefaultDeclaration"===e.type);if(!s)throw new Error("[hc-compile] component.js must `export default` an object");t=e.slice(0,s.start)+"module.exports = "+e.slice(s.declaration.start)}catch(e){throw e instanceof Error?e:new Error(String(e))}const s=new Function("module","exports",`"use strict";\n${t}\n;return module.exports;`),r={exports:{}};try{return s(r,r.exports)}catch(e){throw e instanceof Error?e:new Error(String(e))}}(t.js),t.html))();return W(s,n),n.catch(()=>V.delete(s)),n}function G(){V.clear()}function Z(){return V.size}function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),s}var Q,X={exports:{}};function ee(){if(Q)return X.exports;Q=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return X.exports=t(),X.exports.createColors=t,X.exports}const te=K(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var se,re,ne,oe,ie,le;function ae(){if(re)return se;re=1;let e=ee(),t=te;class s extends Error{constructor(e,t,r,n,o,i){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),i&&(this.plugin=i),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let r=this.source;null==s&&(s=e.isColorSupported);let n=e=>e,o=e=>e,i=e=>e;if(s){let{bold:s,gray:r,red:l}=e.createColors(!0);o=e=>s(l(e)),n=e=>r(e),t&&(i=e=>t(e))}let l=r.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),u=String(c).length;return l.slice(a,c).map((e,t)=>{let s=a+1+t,r=" "+(" "+s).slice(-u)+" | ";if(s===this.line){if(e.length>160){let t=20,s=Math.max(0,this.column-t),l=Math.max(this.column+t,this.endColumn+t),a=e.slice(s,l),c=n(r.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(r)+i(a)+"\n "+c+o("^")}let t=n(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(r)+i(e)+"\n "+t+o("^")}return" "+n(r)+i(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return se=s,s.default=s,se}function ce(){if(oe)return ne;oe=1;const e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function s(s){return"string"!=typeof s?s:s.includes("<")?s.replace(e,"\\3c $2").replace(t,"\\3c $2"):s}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let r=e.raws,n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==r.afterName?n+=r.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let i=(r.between||"")+(t?";":"");this.builder(s(n+o+i),e)}}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(s(t+n)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(s(r)),this.builder("}",e,"end")}body(e){let t=e.nodes,r=t.length-1;for(;r>0&&"comment"===t[r].type;)r-=1;let n=this.raw(e,"semicolon"),o="document"===e.type;for(let e=0;e<t.length;e++){let i=t[e],l=this.raw(i,"before");l&&this.builder(o?l:s(l)),this.stringify(i,r!==e||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(s("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=r.important||" !important"),t&&(o+=";"),this.builder(s(o),e)}document(e){this.body(e)}raw(e,t,s){let n;if(s||(s=t),t&&(n=e.raws[t],void 0!==n))return n;let o=e.parent;if("before"===s){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return r[s];let i=e.root(),l=i.rawCache||(i.rawCache={});if(void 0!==l[s])return l[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let r="raw"+((a=s)[0].toUpperCase()+a.slice(1));this[r]?n=this[r](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var a;return void 0===n&&(n=r[s]),l[s]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&"document"===e.parent.type;this.builder(r?t:s(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(s(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return ne=n,n.default=n,ne}function ue(){if(le)return ie;le=1;let e=ce();function t(t,s){new e(s).stringify(t)}return ie=t,t.default=t,ie}var he,pe,fe,de,me,ge,ye,we,ve,be,xe,Ce,Se,ke,Oe,Ae,Ee,Ie,Pe,Re,$e,je,_e,Me,Be,Ue,ze,De,Le,Fe,Ne,Te,Ve,We,Je,He,Ye,Ge,Ze,qe,Ke,Qe,Xe,et,tt,st,rt,nt,ot,it={};function lt(){return he||(he=1,it.isClean=Symbol("isClean"),it.my=Symbol("my")),it}function at(){if(fe)return pe;fe=1;let e=ae(),t=ce(),s=ue(),{isClean:r,my:n}=lt();function o(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],i=typeof n;"parent"===r&&"object"===i?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map(e=>o(e,s)):("object"===i&&null!==n&&(n=o(n)),s[r]=n)}return s}function i(e,t){if(t&&void 0!==t.offset)return t.offset;let s=1,r=1,n=0;for(let o=0;o<e.length;o++){if(r===t.line&&s===t.column){n=o;break}"\n"===e[o]?(s=1,r+=1):s+=1}return n}class l{get proxyOf(){return this}constructor(e={}){this.raws={},this[r]=!1,this[n]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let s of e[t])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=o(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,s={}){if(this.source){let{end:e,start:r}=this.rangeBy(s);return this.source.input.error(t,{column:r.column,line:r.line},{column:e.column,line:e.line},s)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,r=s.slice(i(s,this.source.start),i(s,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,s=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=i(r,this.source.start),o=n+e;for(let e=n;e<o;e++)"\n"===r[e]?(t=1,s+=1):t+=1;return{column:t,line:s,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:i(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:i(t,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(e.word){let n=t.slice(i(t,this.source.start),i(t,this.source.end)).indexOf(e.word);-1!==n&&(s=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line,offset:i(t,e.start)}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:i(t,e.end)}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line,offset:s.offset+1}),{end:r,start:s}}raw(e,s){return(new t).raw(this,e,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){if(null==r)continue;let o=t.get(r.input);null==o&&(o=n,t.set(r.input,n),n++),s[e]={end:r.end,inputId:o,start:r.start}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map(e=>e.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,s={}){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}}return pe=l,l.default=l,pe}function ct(){if(me)return de;me=1;let e=at();class t extends e{constructor(e){super(e),this.type="comment"}}return de=t,t.default=t,de}function ut(){if(ye)return ge;ye=1;let e=at();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}return ge=t,t.default=t,ge}function ht(){if(ve)return we;ve=1;let e,t,s,r,n=ct(),o=ut(),i=at(),{isClean:l,my:a}=lt();function c(e){return e.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function u(e){if(e[l]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class h extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map(e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e)):"every"===t||"some"===t?s=>e[t]((e,...t)=>s(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s,r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of n)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)s=this.indexes[e],r<s&&(this.indexes[e]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let s,r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)s=this.indexes[e],r<=s&&(this.indexes[e]=s+o.length);return this.markDirty(),this}normalize(s,i){if("string"==typeof s)s=c(t(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s)){s=s.slice(0);for(let e of s)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===s.type&&"document"!==this.type){s=s.nodes.slice(0);for(let e of s)e.parent&&e.parent.removeChild(e,"ignore")}else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw new Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new o(s)]}else if(s.selector||s.selectors)s=[new r(s)];else if(s.name)s=[new e(s)];else{if(!s.text)throw new Error("Unknown node type in node creation");s=[new n(s)]}return s.map(e=>(e[a]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&u(e),e.raws||(e.raws={}),void 0===e.raws.before&&i&&void 0!==i.raws.before&&(e.raws.before=i.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("atrule"===e.type)return t(e,s)}))}walkComments(e){return this.walk((t,s)=>{if("comment"===t.type)return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("decl"===e.type)return t(e,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("rule"===e.type)return t(e,s)}))}}return h.registerParse=e=>{t=e},h.registerRule=e=>{r=e},h.registerAtRule=t=>{e=t},h.registerRoot=e=>{s=e},we=h,h.default=h,h.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,r.prototype):"decl"===t.type?Object.setPrototypeOf(t,o.prototype):"comment"===t.type?Object.setPrototypeOf(t,n.prototype):"root"===t.type&&Object.setPrototypeOf(t,s.prototype),t[a]=!0,t.nodes&&t.nodes.forEach(e=>{h.rebuild(e)})},we}function pt(){if(xe)return be;xe=1;let e=ht();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return be=t,t.default=t,e.registerAtRule(t),be}function ft(){if(Se)return Ce;Se=1;let e,t,s=ht();class r extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Ce=r,r.default=r,Ce}function dt(){return Oe?ke:(Oe=1,ke={nanoid:(e=21)=>{let t="",s=0|e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let r="",n=0|s;for(;n--;)r+=e[Math.random()*e.length|0];return r}})}function mt(){if(Ee)return Ae;Ee=1;let{existsSync:e,readFileSync:t}=te,{dirname:s,join:r}=te,{SourceMapConsumer:n,SourceMapGenerator:o}=te;class i{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let s=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(s)return r=e.substr(s[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let n=e.slice(22);throw n=n.slice(0,n.indexOf(",")),new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(r,n,o){if(o||this.unsafeMap||/\.map$/i.test(r))return this.root=s(r),e(r)?(this.mapFile=r,t(r,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let s=t(e);if(s){let t=this.loadFile(s,e,!0);if(!t)throw new Error("Unable to load previous source map: "+s.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=r(s(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ae=i,i.default=i,Ae}function gt(){if(Pe)return Ie;Pe=1;let{nanoid:e}=dt(),{isAbsolute:t,resolve:s}=te,{SourceMapConsumer:r,SourceMapGenerator:n}=te,{fileURLToPath:o,pathToFileURL:i}=te,l=ae(),a=mt(),c=te,u=Symbol("lineToIndexCache"),h=Boolean(r&&n),p=Boolean(s&&t);function f(e){if(e[u])return e[u];let t=e.css.split("\n"),s=new Array(t.length),r=0;for(let e=0,n=t.length;e<n;e++)s[e]=r,r+=t[e].length+1;return e[u]=s,s}class d{get from(){return this.file||this.id}constructor(r,n={}){if(null==r||"object"==typeof r&&!r.toString)throw new Error(`PostCSS received ${r} instead of CSS string`);if(this.css=r.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,n.document&&(this.document=n.document.toString()),n.from&&(!p||/^\w+:\/\//.test(n.from)||t(n.from)?this.file=n.from:this.file=s(n.from)),p&&h){let e=new a(this.css,n);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let n,o,a,c,u;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof e.offset){c=e.offset;let r=this.fromOffset(c);t=r.line,s=r.col}else t=e.line,s=e.column,c=this.fromLineAndColumn(t,s);if("number"==typeof r.offset){a=r.offset;let e=this.fromOffset(a);o=e.line,n=e.col}else o=r.line,n=r.column,a=this.fromLineAndColumn(r.line,r.column)}else if(s)c=this.fromLineAndColumn(t,s);else{c=t;let e=this.fromOffset(c);t=e.line,s=e.col}let h=this.origin(t,s,o,n);return u=h?new l(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new l(e,void 0===o?t:{column:s,line:t},void 0===o?s:{column:n,line:o},this.css,this.file,r.plugin),u.input={column:s,endColumn:n,endLine:o,endOffset:a,line:t,offset:c,source:this.css},this.file&&(i&&(u.input.url=i(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),s=0;if(e>=t[t.length-1])s=t.length-1;else{let r,n=t.length-2;for(;s<n;)if(r=s+(n-s>>1),e<t[r])n=r-1;else{if(!(e>=t[r+1])){s=r;break}s=r+1}}return{col:e-t[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let l,a,c=this.map.consumer(),u=c.originalPositionFor({column:s,line:e});if(!u.source)return!1;"number"==typeof r&&(l=c.originalPositionFor({column:n,line:r})),a=t(u.source)?i(u.source):new URL(u.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let h={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");h.file=o(a)}let p=c.sourceContentFor(u.source);return p&&(h.source=p),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return Ie=d,d.default=d,c&&c.registerInput&&c.registerInput(d),Ie}function yt(){if($e)return Re;$e=1;let e,t,s=ht();class r extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Re=r,r.default=r,s.registerRoot(r),Re}function wt(){if(_e)return je;_e=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,s){let r=[],n="",o=!1,i=0,l=!1,a="",c=!1;for(let s of e)c?c=!1:"\\"===s?c=!0:l?s===a&&(l=!1):'"'===s||"'"===s?(l=!0,a=s):"("===s?i+=1:")"===s?i>0&&(i-=1):0===i&&t.includes(s)&&(o=!0),o?(""!==n&&r.push(n.trim()),n="",o=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r}};return je=e,e.default=e,je}function vt(){if(Be)return Me;Be=1;let e=ht(),t=wt();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return Me=s,s.default=s,e.registerRule(s),Me}function bt(){if(Le)return De;Le=1;let{dirname:e,relative:t,resolve:s,sep:r}=te,{SourceMapConsumer:n,SourceMapGenerator:o}=te,{pathToFileURL:i}=te,l=gt(),a=Boolean(n&&o),c=Boolean(e&&s&&t&&r);return De=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let s,r=this.toUrl(this.path(t.file)),o=t.root||e(t.file);!1===this.mapOpts.sourcesContent?(s=new n(t.text),s.sourcesContent&&(s.sourcesContent=null)):s=t.consumer(),this.map.applySourceMap(s,r,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=o.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,s=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,l,a)=>{if(this.css+=o,l&&"end"!==a&&(i.generated.line=s,i.generated.column=r-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=o.match(/\n/g),t?(s+=t.length,e=o.lastIndexOf("\n"),r=o.length-e):r+=o.length,l&&"start"!==a){let e=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===e.last&&!e.raws.semicolon||(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=s,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=s,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(r){if(this.mapOpts.absolute)return r;if(60===r.charCodeAt(0))return r;if(/^\w+:\/\//.test(r))return r;let n=this.memoizedPaths.get(r);if(n)return n;let o=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(o=e(s(o,this.mapOpts.annotation)));let i=t(o,r);return this.memoizedPaths.set(r,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(i){let t=i(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===r&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}}}function xt(){if(Je)return We;Je=1;let e=ht(),t=gt(),s=function(){if(Ve)return Te;Ve=1;let e=pt(),t=ct(),s=ut(),r=yt(),n=vt(),o=function(){if(Ne)return Fe;Ne=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),r="/".charCodeAt(0),n="\n".charCodeAt(0),o=" ".charCodeAt(0),i="\f".charCodeAt(0),l="\t".charCodeAt(0),a="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),h="(".charCodeAt(0),p=")".charCodeAt(0),f="{".charCodeAt(0),d="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),w="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,x=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Fe=function(S,k={}){let O,A,E,I,P,R,$,j,_,M,B=S.css.valueOf(),U=k.ignoreErrors,z=B.length,D=0,L=[],F=[],N=-1;function T(e){throw S.error("Unclosed "+e,D)}return{back:function(e){F.push(e)},endOfFile:function(){return 0===F.length&&D>=z},nextToken:function(S){if(F.length)return F.pop();if(D>=z)return;let k=!!S&&S.ignoreUnclosed;switch(O=B.charCodeAt(D),O){case n:case o:case l:case a:case i:I=D;do{I+=1,O=B.charCodeAt(I)}while(O===o||O===n||O===l||O===a||O===i);R=["space",B.slice(D,I)],D=I-1;break;case c:case u:case f:case d:case y:case m:case p:{let e=String.fromCharCode(O);R=[e,e,D];break}case h:if(M=L.length?L.pop()[1]:"",_=B.charCodeAt(D+1),"url"===M&&_!==e&&_!==t&&_!==o&&_!==n&&_!==l&&_!==i&&_!==a){I=D;do{if($=!1,I=B.indexOf(")",I+1),-1===I){if(U||k){I=D;break}T("bracket")}for(j=I;B.charCodeAt(j-1)===s;)j-=1,$=!$}while($);R=["brackets",B.slice(D,I+1),D,I],D=I}else D<=N?R=["(","(",D]:(I=B.indexOf(")",D+1),A=B.slice(D,I+1),-1===I||x.test(A)?(N=-1===I?z:I,R=["(","(",D]):(R=["brackets",A,D,I],D=I));break;case e:case t:P=O===e?"'":'"',I=D;do{if($=!1,I=B.indexOf(P,I+1),-1===I){if(U||k){I=D+1;break}T("string")}for(j=I;B.charCodeAt(j-1)===s;)j-=1,$=!$}while($);R=["string",B.slice(D,I+1),D,I],D=I;break;case w:v.lastIndex=D+1,v.test(B),I=0===v.lastIndex?B.length-1:v.lastIndex-2,R=["at-word",B.slice(D,I+1),D,I],D=I;break;case s:for(I=D,E=!0;B.charCodeAt(I+1)===s;)I+=1,E=!E;if(O=B.charCodeAt(I+1),E&&O!==r&&O!==o&&O!==n&&O!==l&&O!==a&&O!==i&&(I+=1,C.test(B.charAt(I)))){for(;C.test(B.charAt(I+1));)I+=1;B.charCodeAt(I+1)===o&&(I+=1)}R=["word",B.slice(D,I+1),D,I],D=I;break;default:O===r&&B.charCodeAt(D+1)===g?(I=B.indexOf("*/",D+2)+1,0===I&&(U||k?I=B.length:T("comment")),R=["comment",B.slice(D,I+1),D,I],D=I):(b.lastIndex=D+1,b.test(B),I=0===b.lastIndex?B.length-1:b.lastIndex-2,R=["word",B.slice(D,I+1),D,I],L.push(R),D=I)}return D++,R},position:function(){return D}}}}();const i={empty:!0,space:!0};return Te=class{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){let s,r,n,o=new e;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let i=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(s=(t=this.tokenizer.nextToken())[0],"("===s||"["===s?c.push("("===s?")":"]"):"{"===s&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),0===c.length){if(";"===s){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===s){l=!0;break}if("}"===s){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(t=a[a.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),l&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,n=0;for(let[o,i]of e.entries()){if(s=i,r=s[0],"("===r&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(s)}t=s}return!1}comment(e){let s=new t;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(r.trim()){let e=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=e[2],s.raws.left=e[1],s.raws.right=e[3]}else s.text="",s.raws.left=r,s.raws.right=""}createTokenizer(){this.tokenizer=o(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];if(r)return r}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,l=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)l.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(n=e[t],"!important"===n[1].toLowerCase()){r.important=!0;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s," !important"!==s&&(r.raws.important=s);break}if("important"===n[1].toLowerCase()){let s=e.slice(0),n="";for(let e=t;e>0;e--){let t=s[e][0];if(n.trim().startsWith("!")&&"space"!==t)break;n=s.pop()[1]+n}n.trim().startsWith("!")&&(r.important=!0,r.raws.important=n,e=s)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=l.map(e=>e[1]).join(""),l=[]),this.raw(r,"value",l.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,n=null,o=[],i=e[1].startsWith("--"),l=[],a=e;for(;a;){if(s=a[0],l.push(a),"("===s||"["===s)n||(n=a),o.push("("===s?")":"]");else if(i&&r&&"{"===s)n||(n=a),o.push("}");else if(0===o.length){if(";"===s){if(r)return void this.decl(l,i);break}if("{"===s)return void this.rule(l);if("}"===s){this.tokenizer.back(l.pop()),t=!0;break}":"===s&&(r=!0)}else s===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!i)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,i)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let n,o,l,a,c=s.length,u="",h=!0;for(let e=0;e<c;e+=1)n=s[e],o=n[0],"space"!==o||e!==c-1||r?"comment"===o?(a=s[e-1]?s[e-1][0]:"empty",l=s[e+1]?s[e+1][0]:"empty",i[a]||i[l]||","===u.slice(-1)?h=!1:u+=n[1]):u+=n[1]:h=!1;if(!h){let r=s.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}();function r(e,r){let n=new t(e,r),o=new s(n);try{o.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(r.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(r.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return o.root}return We=r,r.default=r,e.registerParse(r),We}function Ct(){if(Ye)return He;Ye=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return He=e,e.default=e,He}function St(){if(Ze)return Ge;Ze=1;let e=Ct();class t{get content(){return this.css}constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(t,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}}return Ge=t,t.default=t,Ge}function kt(){if(Ke)return qe;Ke=1;let e={};return qe=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function Ot(){if(Xe)return Qe;Xe=1;let e=ht(),t=ft(),s=bt(),r=xt(),n=St(),o=yt(),i=ue(),{isClean:l,my:a}=lt(),c=kt();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return"object"==typeof e&&"function"==typeof e.then}function d(e){let t=!1,s=u[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function m(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:d(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>g(e)),e}let y={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,s,o){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof w||s instanceof n)i=g(s.root),s.map&&(void 0===o.map&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=s.map);else{let t=r;o.syntax&&(t=o.syntax.parse),o.parser&&(t=o.parser),t.parse&&(t=t.parse);try{i=t(s,o)}catch(e){this.processed=!0,this.error=e}i&&!i[a]&&e.rebuild(i)}else i=g(s);this.result=new n(t,i,o),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.version,n=t.split("."),o=r.split(".");(n[0]!==o[0]||parseInt(n[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!h[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(f(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[m(e)];for(;t.length>0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let s=t[t.length-1].node;throw this.handleError(e,s)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>s(e,this.helpers));await Promise.all(t)}else await s(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(f(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,n]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==t.iterator){let r,n=t.iterator;for(;r=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!r[l])return r[l]=!0,void e.push(m(r));t.iterator=0,delete s.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e)return void(s.nodes&&s.nodes.length&&(s[l]=!0,t.iterator=s.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[l]=!0;let t=d(e);for(let s of t)if(0===s)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[s];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=e=>{y=e},Qe=w,w.default=w,o.registerLazyResult(w),t.registerLazyResult(w),Qe}const At=q(function(){if(ot)return nt;ot=1;let e=pt(),t=ct(),s=ht(),r=ae(),n=ut(),o=ft(),i=function(){if(ze)return Ue;ze=1;let e=pt(),t=ct(),s=ut(),r=gt(),n=mt(),o=yt(),i=vt();function l(a,c){if(Array.isArray(a))return a.map(e=>l(e));let{inputs:u,...h}=a;if(u){c=[];for(let e of u){let t={...e,__proto__:r.prototype};t.map&&(t.map={...t.map,__proto__:n.prototype}),c.push(t)}}if(h.nodes&&(h.nodes=a.nodes.map(e=>l(e,c))),h.source){let{inputId:e,...t}=h.source;h.source=t,null!=e&&(h.source.input=c[e])}if("root"===h.type)return new o(h);if("decl"===h.type)return new s(h);if("rule"===h.type)return new i(h);if("comment"===h.type)return new t(h);if("atrule"===h.type)return new e(h);throw new Error("Unknown node type: "+a.type)}return Ue=l,l.default=l,Ue}(),l=gt(),a=Ot(),c=wt(),u=at(),h=xt(),p=function(){if(rt)return st;rt=1;let e=ft(),t=Ot(),s=function(){if(tt)return et;tt=1;let e=bt(),t=xt(),s=St(),r=ue(),n=kt();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=t;try{e=s(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,n,o){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=o,this._map=void 0;let i=r;this.result=new s(this._processor,void 0,this._opts),this.result.css=n;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let a=new e(i,void 0,this._opts,n);if(a.isMap()){let[e,t]=a.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||n("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return et=o,o.default=o,et}(),r=yt();class n{constructor(e=[]){this.version="8.5.14",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else if("function"==typeof s)t.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,e,r):new s(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return st=n,n.default=n,r.registerProcessor(n),e.registerProcessor(n),st}(),f=St(),d=yt(),m=vt(),g=ue(),y=Ct();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new p(e)}return w.plugin=function(e,t){let s,r=!1;function n(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...s);return n.postcssPlugin=e,n.postcssVersion=(new p).version,n}return Object.defineProperty(n,"postcss",{get:()=>(s||(s=n()),s)}),n.process=function(e,t,s){return w([n(s)]).process(e,t)},n},w.stringify=g,w.parse=h,w.fromJSON=i,w.list=c,w.comment=e=>new t(e),w.atRule=t=>new e(t),w.decl=e=>new n(e),w.rule=e=>new m(e),w.root=e=>new d(e),w.document=e=>new o(e),w.CssSyntaxError=r,w.Declaration=n,w.Container=s,w.Processor=p,w.Document=o,w.Comment=t,w.Warning=y,w.AtRule=e,w.Result=f,w.Input=l,w.Rule=m,w.Root=d,w.Node=u,a.registerPostcss(w),nt=w,w.default=w,nt}());At.stringify,At.fromJSON,At.plugin,At.parse,At.list,At.document,At.comment,At.atRule,At.rule,At.decl,At.root,At.CssSyntaxError,At.Declaration,At.Container,At.Processor,At.Document,At.Comment,At.Warning,At.AtRule,At.Result,At.Input,At.Rule,At.Root,At.Node;const Et=new Set(["body","html",":root","*"]);function It(e,t){return e&&e.trim()?At([(s=`[data-vbi-type="${t}"]`,{postcssPlugin:"hc-scope",AtRule(e){if("import"===e.name)return console.warn("[hc-css-scope] @import 已被拒绝(防外部资源加载):",e.params),void e.remove();"font-face"===e.name&&console.warn("[hc-css-scope] @font-face 全局生效,font-family 命名注意冲突")},Rule(e){(function(e){let t=e.parent;for(;t&&"object"==typeof t;){const e=t;if("atrule"===e.type&&/keyframes$/i.test(e.name??""))return!0;t=e.parent}return!1})(e)||(e.selectors=e.selectors.map(e=>function(e,t){const s=e.trim();if(!s)return s;if(Et.has(s))return t;for(const e of Et){const r=s.charAt(e.length);if(s.startsWith(e)&&(" "===r||">"===r||"+"===r||"~"===r||","===r))return t+s.slice(e.length)}return`${t} ${s}`}(e,s)))}})]).process(e,{from:void 0}).css:"";var s}const Pt=new Map;function Rt(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)|0;return(t>>>0).toString(36)}function $t(e){const t=e.replace(/[^a-zA-Z0-9_-]/g,"_");return t===e?`hc-style-${t}`:`hc-style-${t}-${Rt(e).slice(0,6)}`}function jt(e,t){var s;const r=t??"",n=$t(e),o=Pt.get(e);if(!r.trim())return null==(s=document.getElementById(n))||s.remove(),void(o&&Pt.set(e,{...o,cssHash:""}));const i=Rt(r);if(o&&o.cssHash===i)return;let l;try{l=It(r,e)}catch(t){return void console.warn("[hc-css-scope]",e,"PostCSS process failed:",t)}!function(e,t){const s=$t(e);let r=document.getElementById(s);r||(r=document.createElement("style"),r.id=s,r.setAttribute("data-hc-scope",e),document.head.appendChild(r)),r.textContent=t}(e,l),o?Pt.set(e,{...o,cssHash:i}):Pt.set(e,{cssHash:i,refCount:0})}function _t(e,t){jt(e,t);const s=Pt.get(e);s?Pt.set(e,{...s,refCount:s.refCount+1}):Pt.set(e,{cssHash:"",refCount:1})}function Mt(e){var t;const s=Pt.get(e);if(!s)return;const r=s.refCount-1;r<=0?(null==(t=document.getElementById($t(e)))||t.remove(),Pt.delete(e)):Pt.set(e,{...s,refCount:r})}function Bt(e){var t;null==(t=document.getElementById($t(e)))||t.remove(),Pt.delete(e)}function Ut(){return Pt.size}function zt(){return[...Pt.entries()].map(([e,t])=>({scopeId:e,componentId:e,refCount:t.refCount,cssHash:t.cssHash}))}const Dt={key:1,class:"rounded-md border-2 border-rose-300 bg-rose-50 p-4 text-sm text-rose-900 space-y-2 min-h-[140px] overflow-auto"},Lt={class:"font-semibold flex items-center gap-1.5"},Ft={class:"font-mono text-xs text-rose-800 break-all"},Nt={key:0,class:"text-[10px] font-mono bg-rose-100/60 p-2 rounded overflow-auto max-h-60 text-rose-800"},Tt=s({__name:"ErrorBoundary",props:{label:{}},setup(e){const s=e,u=t(null),h=t(0),p=t(!1);function f(){u.value=null,p.value=!1,h.value++}return r(e=>(console.error(`[hc-eb${s.label?" "+s.label:""}]`,e),u.value=e,!1)),(t,s)=>(n(),o("div",{key:h.value,class:"hc-eb-root",style:{width:"100%",height:"100%"}},[u.value?(n(),o("div",Dt,[l("div",Lt,[s[1]||(s[1]=l("span",null,"⚠️",-1)),l("span",null,"组件渲染失败"+a(e.label?` — ${e.label}`:""),1)]),l("div",Ft,a(u.value.message),1),l("button",{class:"text-xs text-rose-700 hover:text-rose-900 underline",onClick:s[0]||(s[0]=e=>p.value=!p.value)},a(p.value?"隐藏":"展开")+"堆栈 ",1),p.value?(n(),o("pre",Nt,a(u.value.stack),1)):c("",!0),l("button",{class:"text-xs px-3 py-1 rounded bg-rose-600 hover:bg-rose-700 text-white transition-colors",onClick:f}," 重试 ")])):i(t.$slots,"default",{key:0})]))}}),Vt=["data-vbi-id","data-vbi-type","data-vbi-canvas"],Wt={key:0,class:"rounded-md border-2 border-amber-300 bg-amber-50 p-4 text-sm text-amber-900 space-y-2 min-h-[140px] overflow-auto"},Jt={class:"text-[11px] font-mono break-all whitespace-pre-wrap"},Ht={key:1,class:"grid place-items-center min-h-[140px] text-xs text-zinc-400"},Yt=s({__name:"RuntimeBox",props:{instanceId:{},componentId:{},scopeId:{},canvasId:{},htmlSource:{},jsSource:{},cssSource:{default:""},customValues:{default:()=>({})},position:{},size:{},zIndex:{}},setup(e){const s=e,r=u(()=>s.scopeId??s.componentId),i=h(C,null),v=u(()=>s.canvasId??i??x),b=p(null),S=t(null),k=t(!1),A=t(0);f(()=>[s.htmlSource,s.jsSource],()=>{!async function(){k.value=!0,S.value=null;try{const e=await Y({html:s.htmlSource,js:s.jsSource});b.value=e,A.value++}catch(e){S.value=e instanceof Error?e:new Error(String(e)),b.value=null}finally{k.value=!1}}()},{immediate:!0});let E=!1;f(()=>[s.cssSource,r.value],([e,t],s)=>{const r=(null==s?void 0:s[1])??null;r&&r!==t?(Mt(r),_t(t,e),E=!0):E?jt(t,e):(_t(t,e),E=!0)},{immediate:!0});const I=u(()=>{const e={width:"100%",height:"100%"};return s.position&&(e.position="absolute",e.left=`${s.position.x}px`,e.top=`${s.position.y}px`),void 0!==s.zIndex&&(e.zIndex=String(s.zIndex)),e});let R=null,$=null;function j(e){if(e!==R)if(R=e,e&&"object"==typeof e){const t=v.value;O(t,s.instanceId,s.componentId,e),$=t}else null!==$&&(P(s.instanceId,$),$=null)}return d(()=>{null!==$&&(P(s.instanceId,$),$=null),R=null,E&&(Mt(r.value),E=!1)}),(t,s)=>(n(),o("div",{class:"_vbi_box","data-vbi-id":e.instanceId,"data-vbi-type":r.value,"data-vbi-canvas":v.value,style:m(I.value)},[S.value?(n(),o("div",Wt,[s[0]||(s[0]=l("div",{class:"font-semibold"},"⚠️ 编译失败",-1)),l("pre",Jt,a(S.value.message),1)])):k.value&&!b.value?(n(),o("div",Ht," 编译中… ")):b.value?(n(),g(Tt,{key:A.value,label:e.instanceId},{default:y(()=>[(n(),g(w(b.value.options),{"hc-custom-values":e.customValues,ref:j},null,8,["hc-custom-values"]))]),_:1},8,["label"])):c("",!0)],12,Vt))}}),Gt="0.0.0-stage2b";export{x as DEFAULT_CANVAS_ID,Tt as ErrorBoundary,C as HC_CANVAS_ID_KEY,N as HC_INJECT_KEY,Yt as RuntimeBox,Gt as VERSION,_ as assets,_t as attachScope,G as clearCompileCache,Y as compileComponent,B as createCanvasesRegistry,z as createHyperCard,zt as debugScopedCssRefs,Mt as detachScope,A as disposeCanvas,Z as getCompileCacheSize,R as getInstance,Ut as getScopedCssCount,jt as injectScopedCss,D as isVuePlugin,E as listCanvasIds,$ as listInstances,b as parseComponentSource,I as register,O as registerInCanvas,S as registryVersion,Bt as removeScopedCss,j as runtime,It as scopeCss,P as unregister};
|