libre-webui 0.44.0 → 0.45.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/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +2 -0
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/routes/chat.d.ts.map +1 -1
- package/backend/dist/routes/chat.js +10 -2
- package/backend/dist/routes/chat.js.map +1 -1
- package/backend/dist/routes/decisions.d.ts +3 -0
- package/backend/dist/routes/decisions.d.ts.map +1 -0
- package/backend/dist/routes/decisions.js +148 -0
- package/backend/dist/routes/decisions.js.map +1 -0
- package/backend/dist/services/agentCliService.d.ts.map +1 -1
- package/backend/dist/services/agentCliService.js +2 -0
- package/backend/dist/services/agentCliService.js.map +1 -1
- package/backend/dist/services/apiTokenService.d.ts.map +1 -1
- package/backend/dist/services/apiTokenService.js +2 -0
- package/backend/dist/services/apiTokenService.js.map +1 -1
- package/backend/dist/services/authorizationService.d.ts +1 -1
- package/backend/dist/services/authorizationService.d.ts.map +1 -1
- package/backend/dist/services/authorizationService.js +8 -1
- package/backend/dist/services/authorizationService.js.map +1 -1
- package/backend/dist/services/chatGenerationService.d.ts +24 -2
- package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/chatGenerationService.js +72 -4
- package/backend/dist/services/chatGenerationService.js.map +1 -1
- package/backend/dist/services/chatRequestService.d.ts +11 -3
- package/backend/dist/services/chatRequestService.d.ts.map +1 -1
- package/backend/dist/services/chatRequestService.js +19 -3
- package/backend/dist/services/chatRequestService.js.map +1 -1
- package/backend/dist/services/contextCompactionService.d.ts.map +1 -1
- package/backend/dist/services/contextCompactionService.js +8 -0
- package/backend/dist/services/contextCompactionService.js.map +1 -1
- package/backend/dist/services/decisionAccessService.d.ts +16 -0
- package/backend/dist/services/decisionAccessService.d.ts.map +1 -0
- package/backend/dist/services/decisionAccessService.js +71 -0
- package/backend/dist/services/decisionAccessService.js.map +1 -0
- package/backend/dist/services/decisionService.d.ts +128 -0
- package/backend/dist/services/decisionService.d.ts.map +1 -0
- package/backend/dist/services/decisionService.js +515 -0
- package/backend/dist/services/decisionService.js.map +1 -0
- package/backend/dist/services/durableChatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/durableChatGenerationService.js +13 -2
- package/backend/dist/services/durableChatGenerationService.js.map +1 -1
- package/backend/dist/services/ollamaService.d.ts +6 -0
- package/backend/dist/services/ollamaService.d.ts.map +1 -1
- package/backend/dist/services/ollamaService.js +13 -0
- package/backend/dist/services/ollamaService.js.map +1 -1
- package/backend/dist/types/index.d.ts +38 -1
- package/backend/dist/types/index.d.ts.map +1 -1
- package/backend/dist/types/index.js.map +1 -1
- package/backend/dist/utils/decisionProtocol.d.ts +164 -0
- package/backend/dist/utils/decisionProtocol.d.ts.map +1 -0
- package/backend/dist/utils/decisionProtocol.js +755 -0
- package/backend/dist/utils/decisionProtocol.js.map +1 -0
- package/backend/dist/utils/ollamaLibrary.d.ts.map +1 -1
- package/backend/dist/utils/ollamaLibrary.js +26 -7
- package/backend/dist/utils/ollamaLibrary.js.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.js +31 -9
- package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
- package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
- package/backend/dist/utils/pluginDefinitionTrust.js +53 -9
- package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
- package/backend/dist/utils/pluginModelCatalog.d.ts +4 -2
- package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
- package/backend/dist/utils/pluginModelCatalog.js +12 -2
- package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
- package/backend/dist/websocketServer.d.ts.map +1 -1
- package/backend/dist/websocketServer.js +23 -6
- package/backend/dist/websocketServer.js.map +1 -1
- package/backend/package.json +2 -2
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/artifact-runtime/babel.js +172 -172
- package/frontend/dist/artifact-runtime/framer-motion.js +2 -2
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
- package/frontend/dist/artifact-runtime/papaparse.js +2 -2
- package/frontend/dist/artifact-runtime/plotly.js +5 -5
- package/frontend/dist/artifact-runtime/tailwind.js +16 -16
- package/frontend/dist/assets/index-C2A5Ko4-.js +59 -0
- package/frontend/dist/assets/index-FrFgrp5E.css +2 -0
- package/frontend/dist/index.html +28 -28
- package/frontend/dist/js/{ArtifactContainer-C7EEweSP.js → ArtifactContainer-DCCcjK16.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-B3yjn6Dw.js → ArtifactDemoPage-C-1acgxJ.js} +1 -1
- package/frontend/dist/js/{ArtifactSandboxFrame-DGC1hgTq.js → ArtifactSandboxFrame-BXWNhmtI.js} +1 -1
- package/frontend/dist/js/{ArtifactSlideOutPanel-xamxqotB.js → ArtifactSlideOutPanel-CvfdP_o2.js} +1 -1
- package/frontend/dist/js/{AutomationModal-Dj0E2mSl.js → AutomationModal-D7qiRMhj.js} +1 -1
- package/frontend/dist/js/{AutomationsPage-MTqU8Ap9.js → AutomationsPage-v98Ucl9p.js} +1 -1
- package/frontend/dist/js/{AvatarUpload-CrNLFoIi.js → AvatarUpload-W41SCHKE.js} +1 -1
- package/frontend/dist/js/{Button-BGE6ZJv5.js → Button-D6d7HYoa.js} +1 -1
- package/frontend/dist/js/{CalendarPage-BciFDr0S.js → CalendarPage-DkAa61Pa.js} +1 -1
- package/frontend/dist/js/ChannelsPage-0Vnfpgdr.js +1 -0
- package/frontend/dist/js/ChatPage-iyMY-uoE.js +14 -0
- package/frontend/dist/js/{ConnectModels-BPwpeVsJ.js → ConnectModels-CpWO6ALS.js} +1 -1
- package/frontend/dist/js/{EvaluationsPage-CT7EAYaj.js → EvaluationsPage-C7WHA1MJ.js} +1 -1
- package/frontend/dist/js/{FirstTimeSetup-BXkaFkvk.js → FirstTimeSetup-B8wcelBc.js} +1 -1
- package/frontend/dist/js/{GalleryPage-BPUY12kj.js → GalleryPage-u7dYKl3q.js} +1 -1
- package/frontend/dist/js/{HomePage-16KFuUir.js → HomePage-Cjlt3b9n.js} +1 -1
- package/frontend/dist/js/{LanguageSwitcher-MlITAZf6.js → LanguageSwitcher-gbTZY15P.js} +1 -1
- package/frontend/dist/js/{Logo-GlNrhpKp.js → Logo-DhV6D_3q.js} +1 -1
- package/frontend/dist/js/{LogoMark-rgOHhWo-.js → LogoMark-CmF1lHXT.js} +1 -1
- package/frontend/dist/js/{ModelManagerModals-inYMmqa4.js → ModelManagerModals-12hL-b-U.js} +1 -1
- package/frontend/dist/js/{NotesPage-kYFIBBCu.js → NotesPage-BQWBA5li.js} +2 -2
- package/frontend/dist/js/{PasswordStrengthMeter-ppDWQU9P.js → PasswordStrengthMeter-DdqX0FXA.js} +1 -1
- package/frontend/dist/js/PersonasPage-B8mFdWcX.js +13 -0
- package/frontend/dist/js/{PluginUsagePage-DQvsXxpI.js → PluginUsagePage-Uz6aHPIp.js} +1 -1
- package/frontend/dist/js/{RichMessageContent-BW9UvzYw.js → RichMessageContent-CVk-fp0N.js} +1 -1
- package/frontend/dist/js/{RichMessageContent-BraVuu1Q.js → RichMessageContent-DwMoWuR_.js} +1 -1
- package/frontend/dist/js/SettingsModal-CfjxNSmJ.js +19 -0
- package/frontend/dist/js/{SettingsToggle-BT6cbOnw.js → SettingsToggle-CNUeo6DO.js} +1 -1
- package/frontend/dist/js/{ShareDialog-CmgHPnKg.js → ShareDialog-NwirTDLR.js} +1 -1
- package/frontend/dist/js/{StrandsPage-Dg55juWQ.js → StrandsPage-ddHNdb6J.js} +1 -1
- package/frontend/dist/js/{SystemPage-PZhbWJCh.js → SystemPage-C_1exwI7.js} +1 -1
- package/frontend/dist/js/UserManagementPanel-hg7ztEtL.js +1 -0
- package/frontend/dist/js/{WhatsNewModal-DunfwUe9.js → WhatsNewModal-yYk7N4KY.js} +1 -1
- package/frontend/dist/js/WorkPage-i7yYRAuj.js +7 -0
- package/frontend/dist/js/api-BU13N8gU.js +1 -0
- package/frontend/dist/js/{api-DG2AKSTU.js → api-Dasm8tVY.js} +1 -1
- package/frontend/dist/js/{appNavigation-DXonlffV.js → appNavigation-DqP7fTWU.js} +1 -1
- package/frontend/dist/js/{appStore-DMmgXb-0.js → appStore-DCIUnT8X.js} +2 -2
- package/frontend/dist/js/appVersion-PJGaVilS.js +1 -0
- package/frontend/dist/js/ar-CsCftCVF.js +2 -0
- package/frontend/dist/js/authStore-Bp17zKvS.js +1 -0
- package/frontend/dist/js/{authStore-C89vePrB.js → authStore-ac5-hjOH.js} +3 -3
- package/frontend/dist/js/babel-C4LPTjCL.js +16 -0
- package/frontend/dist/js/bn-CvxUTZ9a.js +2 -0
- package/frontend/dist/js/chatStore-GhucyjJu.js +3 -0
- package/frontend/dist/js/{client-D05vqJPO.js → client-DxPoTB_C.js} +2 -2
- package/frontend/dist/js/{config-DCQ2-rvE.js → config-CQJEcQtz.js} +1 -1
- package/frontend/dist/js/cs-BovmMwcD.js +2 -0
- package/frontend/dist/js/da-Dof1gmsv.js +2 -0
- package/frontend/dist/js/de-CF9CXojW.js +2 -0
- package/frontend/dist/js/decisionsApi-BWB64EGn.js +1 -0
- package/frontend/dist/js/decisionsApi-CoJtg4PZ.js +1 -0
- package/frontend/dist/js/es-BXCt50HZ.js +2 -0
- package/frontend/dist/js/estree-DCoUd_wj.js +44 -0
- package/frontend/dist/js/{evaluationsApi-oCNxDBZ4.js → evaluationsApi-CBqKkjmI.js} +1 -1
- package/frontend/dist/js/fr-B5QcCDIw.js +2 -0
- package/frontend/dist/js/hi-BXYwSyKl.js +2 -0
- package/frontend/dist/js/html-DMnBrAcs.js +25 -0
- package/frontend/dist/js/id-BV3mY5L7.js +2 -0
- package/frontend/dist/js/is-BDK4LrQC.js +2 -0
- package/frontend/dist/js/it-DAeWl1Fm.js +2 -0
- package/frontend/dist/js/ja-DIJV01rA.js +2 -0
- package/frontend/dist/js/ko-Btr9-64X.js +2 -0
- package/frontend/dist/js/markdown-CQ4enQcD.js +70 -0
- package/frontend/dist/js/{messageCodeStyles-tSFFCV6k.js → messageCodeStyles-BugWE4s5.js} +2 -2
- package/frontend/dist/js/ms-DgVmv5zF.js +2 -0
- package/frontend/dist/js/nl-Dz5HpdLi.js +2 -0
- package/frontend/dist/js/pl-CIATY2b0.js +2 -0
- package/frontend/dist/js/postcss-CZstCllf.js +62 -0
- package/frontend/dist/js/pt-lrDXX76Y.js +2 -0
- package/frontend/dist/js/ru-_zovUYcg.js +2 -0
- package/frontend/dist/js/standalone-CttwqOis.js +29 -0
- package/frontend/dist/js/{strandsApi-Fs6zV4CA.js → strandsApi-Ck7FrcHH.js} +1 -1
- package/frontend/dist/js/sv-TkRDWCb8.js +2 -0
- package/frontend/dist/js/{teamEventStream-DD_ASSs5.js → teamEventStream-O3qGbUZz.js} +1 -1
- package/frontend/dist/js/th-CQyavDiP.js +2 -0
- package/frontend/dist/js/tr-CBcFl4_Z.js +2 -0
- package/frontend/dist/js/typescript-h2bi7nrV.js +22 -0
- package/frontend/dist/js/{ui-DATtlADq.js → ui-DxaHE9GD.js} +2 -2
- package/frontend/dist/js/{ui-vendor-WdvBNwsu.js → ui-vendor-DsURZnZt.js} +1 -1
- package/frontend/dist/js/uk-BNn1cUt8.js +2 -0
- package/frontend/dist/js/{useChat-RXTiCFz0.js → useChat-1HyAPpCk.js} +1 -1
- package/frontend/dist/js/useDictation-B3vNgs5D.js +1 -0
- package/frontend/dist/js/{useQuery-DCqz3UJt.js → useQuery-Cs76KYuP.js} +1 -1
- package/frontend/dist/js/useTranslation-CKqEdZ8j.js +1 -0
- package/frontend/dist/js/utils-BXRzbHJC.js +1 -0
- package/frontend/dist/js/{utils-vendor-CsC5rH1J.js → utils-vendor-B4bGLP5p.js} +1 -1
- package/frontend/dist/js/vi-Be8GO7e_.js +2 -0
- package/frontend/dist/js/{workApi-CbFQfwRZ.js → workApi-BNGRSv7q.js} +1 -1
- package/frontend/dist/js/workApi-C5jw1ra6.js +1 -0
- package/frontend/dist/js/yaml-CBt8G4BX.js +150 -0
- package/frontend/dist/js/zh-9CUKyYw5.js +2 -0
- package/package.json +4 -4
- package/plugins/anthropic.json +1 -0
- package/plugins/baseten.json +17 -0
- package/plugins/gemini.json +9 -0
- package/plugins/llama-cpp.json +13 -0
- package/plugins/meta.json +1 -0
- package/plugins/openai.json +13 -0
- package/plugins/openrouter.json +26 -0
- package/frontend/dist/assets/index-BM0txgxR.css +0 -2
- package/frontend/dist/assets/index-CekTqSoE.js +0 -67
- package/frontend/dist/js/ChannelsPage-De96Q63V.js +0 -1
- package/frontend/dist/js/ChatPage-CTRKLQly.js +0 -14
- package/frontend/dist/js/PersonasPage-mzAft_NC.js +0 -13
- package/frontend/dist/js/SettingsModal-B-5JP50i.js +0 -19
- package/frontend/dist/js/UserManagementPanel-DBwIOSOw.js +0 -1
- package/frontend/dist/js/WorkPage-DQlsa18h.js +0 -7
- package/frontend/dist/js/api-DdDgFM-F.js +0 -1
- package/frontend/dist/js/appVersion-Bl_QXi35.js +0 -1
- package/frontend/dist/js/ar-yKmq_nxn.js +0 -2
- package/frontend/dist/js/authStore-ByVF8A2u.js +0 -1
- package/frontend/dist/js/babel-BaOs8qJH.js +0 -16
- package/frontend/dist/js/bn-DAJjz2xA.js +0 -2
- package/frontend/dist/js/chatStore-BooPA4cg.js +0 -3
- package/frontend/dist/js/cs-BcctV9SN.js +0 -2
- package/frontend/dist/js/da-YtnjzG18.js +0 -2
- package/frontend/dist/js/de-BMQofu0d.js +0 -2
- package/frontend/dist/js/es-8oFYsnHw.js +0 -2
- package/frontend/dist/js/estree-Cw-tQG5d.js +0 -44
- package/frontend/dist/js/fr-CnGTnuJK.js +0 -2
- package/frontend/dist/js/hi-Ct5Inbp9.js +0 -2
- package/frontend/dist/js/html-Drt7kOJE.js +0 -25
- package/frontend/dist/js/id-CSqCL3hQ.js +0 -2
- package/frontend/dist/js/is-Bg68TmSt.js +0 -2
- package/frontend/dist/js/it-ZngXlxOR.js +0 -2
- package/frontend/dist/js/ja-DfQEoeFi.js +0 -2
- package/frontend/dist/js/ko-IifYVGBy.js +0 -2
- package/frontend/dist/js/markdown-C7cnJl_Q.js +0 -70
- package/frontend/dist/js/ms-C8jQLzkg.js +0 -2
- package/frontend/dist/js/nl-BFEa3rgC.js +0 -2
- package/frontend/dist/js/pl-BiPrQGU-.js +0 -2
- package/frontend/dist/js/postcss-DB_e0nkW.js +0 -62
- package/frontend/dist/js/pt-BziWZm5q.js +0 -2
- package/frontend/dist/js/ru-oTAEePGS.js +0 -2
- package/frontend/dist/js/standalone-YobQElH8.js +0 -29
- package/frontend/dist/js/sv-1_et6OWH.js +0 -2
- package/frontend/dist/js/th-DjyLzIKs.js +0 -2
- package/frontend/dist/js/tr-CCga9CbK.js +0 -2
- package/frontend/dist/js/typescript-2anSzo_N.js +0 -22
- package/frontend/dist/js/uk-h80KE68A.js +0 -2
- package/frontend/dist/js/useDictation-YyALwnw6.js +0 -1
- package/frontend/dist/js/useTranslation-D-_KTORQ.js +0 -1
- package/frontend/dist/js/utils-DsCVr_wG.js +0 -1
- package/frontend/dist/js/vi-CQxzmgwi.js +0 -2
- package/frontend/dist/js/workApi-CmH9c1xh.js +0 -1
- package/frontend/dist/js/yaml-Breo7DWT.js +0 -154
- package/frontend/dist/js/zh-CS3_ndbP.js +0 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,r=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},i=(e,t,r)=>n(e,typeof t==`symbol`?t:t+``,r),a=(e,n,r)=>n.has(e)||t(`Cannot `+r),o=(e,t,n)=>(a(e,t,`read from private field`),n?n.call(e):t.get(e)),s=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),c={};r(c,{languages:()=>po,options:()=>go,parsers:()=>_o,printers:()=>ls});var l=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),u=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},d=l(`replaceAll`,function(){if(typeof this==`string`)return u});function f(e){return this[e<0?this.length+e:e]}var p=l(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return f}),m=()=>{},ee=`string`,te=`array`,ne=`cursor`,re=`indent`,ie=`align`,ae=`trim`,oe=`group`,se=`fill`,ce=`if-break`,le=`indent-if-break`,ue=`line-suffix`,de=`line-suffix-boundary`,h=`line`,fe=`label`,pe=`break-parent`,me=new Set([ne,re,ie,ae,oe,se,ce,le,ue,de,h,fe,pe]);function he(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function ge(e){if(typeof e==`string`)return ee;if(Array.isArray(e))return te;if(!e)return;let{type:t}=e;if(me.has(t))return t}var _e=ge,ve=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function ye(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
|
|
2
|
+
Expected it to be 'string' or 'object'.`;if(_e(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=ve([...me].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
|
|
3
|
+
Expected it to be ${r}.`}var be=class extends Error{name=`InvalidDocError`;constructor(e){super(ye(e)),this.doc=e}};function xe(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){return he(n,e,i)}function i(e){switch(_e(e)){case te:return t(e.map(r));case se:return t({...e,parts:e.parts.map(r)});case ce:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case oe:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case ie:case re:case le:case fe:case ue:return t({...e,contents:r(e.contents)});case ee:case ne:case ae:case de:case h:case pe:return t(e);default:throw new be(e)}}}function g(e,t=Ae){return xe(e,e=>typeof e==`string`?x(t,e.split(`
|
|
4
|
+
`)):e)}var _=m,Se=m,Ce=m,we=m;function v(e){return _(e),{type:re,contents:e}}function Te(e,t){return we(e),_(t),{type:ie,contents:t,n:e}}function Ee(e){return Te(-1/0,e)}var y={type:pe};function De(e){return Ce(e),{type:se,parts:e}}function b(e,t={}){return _(e),Se(t.expandedStates,!0),{type:oe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Oe(e,t=``,n={}){return _(e),t!==``&&_(t),{type:ce,breakContents:e,flatContents:t,groupId:n.groupId}}function ke(e,t){return _(e),{type:le,contents:e,groupId:t.groupId,negate:t.negate}}function x(e,t){_(e),Se(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var S={type:h},C={type:h,soft:!0},w=[{type:h,hard:!0},y],Ae=[{type:h,hard:!0,literal:!0},y];function je(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var T=new class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(p(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${je([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=1/0;for(let n of e.split(`
|
|
5
|
+
`)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
|
|
6
|
+
`).map(e=>e.slice(t)).join(`
|
|
7
|
+
`)}}([` `,`
|
|
8
|
+
`,`\f`,`\r`,` `]),Me=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function Ne(e,t=!0){return[v([C,e]),t?C:``]}function E(e,t){let n=e.type===`NGRoot`?e.node.type===`NGMicrosyntax`&&e.node.body.length===1&&e.node.body[0].type===`NGMicrosyntaxExpression`?e.node.body[0].expression:e.node:e.type===`JsExpressionRoot`?e.node:e;return n&&(n.type===`ObjectExpression`||n.type===`ArrayExpression`||(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`||t.parser===`__ng_binding`||t.parser===`__ng_directive`)&&(n.type===`TemplateLiteral`||n.type===`StringLiteral`))}async function D(e,t,n,r){n={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...n};let i=!0;r&&(n.__onHtmlBindingRoot=(e,t)=>{i=r(e,t)});let a=await t(e,n,t);return i?b(a):Ne(a)}function Pe(e,t,n,r){let{node:i}=n,a=r.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/.test(a)?``:D(a,e,{parser:`__ng_directive`,__isInHtmlAttribute:!1},E)}var Fe=Pe,O=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Ie=Array.prototype.toReversed??function(){return[...this].reverse()},Le=l(`toReversed`,function(){if(Array.isArray(this))return Ie});function Re(){let e=globalThis,t=e.process?.platform;if(typeof t==`string`)return t.startsWith(`win`);let n=e.Deno?.build?.os;return typeof n==`string`?n===`windows`:e.navigator?.platform?.startsWith(`Win`)??!1}var ze=Re();function Be(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Ve(e){return e=Be(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function He(e){e=Be(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function Ue(e){return ze?He(e):Ve(e)}var We=e=>String(e).split(/[/\\]/).pop(),Ge=e=>String(e).startsWith(`file:`);function Ke(e){return Array.isArray(e)&&e.length>0}var qe=Ke;function Je(e,t){if(!t)return;let n=We(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function Ye(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var Xe=void 0;function Ze(e,t){if(t){if(Ge(t))try{t=Ue(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function Qe(e,t){let n=Le(0,e.plugins).flatMap(e=>e.languages??[]);return(Ye(n,t.language)??Je(n,t.physicalFile)??Je(n,t.file)??Ze(n,t.physicalFile)??Ze(n,t.file)??Xe?.(n,t.physicalFile))?.parsers[0]}var $e=Qe,et=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function tt(e){return!!e?.[et]}var nt=tt;function rt(e){return d(0,e,/[^\n]/g,` `)}var it=rt,at=3;function ot(e){let t=e.slice(0,at);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
|
|
9
|
+
`,at);if(n===-1)return;let r=e.slice(at,n).trim(),i=e.indexOf(`
|
|
10
|
+
${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
|
|
11
|
+
...`,n)),i===-1)return;let o=i+1+at,s=e.charAt(o+1);if(!/\s?/.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-at),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??=c.split(`
|
|
12
|
+
`),l.length},get column(){return l??=c.split(`
|
|
13
|
+
`),p(0,l,-1).length}},[et]:!0}}function st(e){let t=ot(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return it(n)+e.slice(n.length)}}:{content:e}}var ct=st,lt=`inline`,ut={area:`none`,base:`none`,basefont:`none`,datalist:`none`,head:`none`,link:`none`,meta:`none`,noembed:`none`,noframes:`none`,param:`block`,rp:`none`,script:`block`,style:`none`,template:`inline`,title:`none`,html:`block`,body:`block`,address:`block`,blockquote:`block`,center:`block`,dialog:`block`,div:`block`,figure:`block`,figcaption:`block`,footer:`block`,form:`block`,header:`block`,hr:`block`,legend:`block`,listing:`block`,main:`block`,p:`block`,plaintext:`block`,pre:`block`,search:`block`,xmp:`block`,slot:`contents`,ruby:`ruby`,rt:`ruby-text`,article:`block`,aside:`block`,h1:`block`,h2:`block`,h3:`block`,h4:`block`,h5:`block`,h6:`block`,hgroup:`block`,nav:`block`,section:`block`,dir:`block`,dd:`block`,dl:`block`,dt:`block`,menu:`block`,ol:`block`,ul:`block`,li:`list-item`,table:`table`,caption:`table-caption`,colgroup:`table-column-group`,col:`table-column`,thead:`table-header-group`,tbody:`table-row-group`,tfoot:`table-footer-group`,tr:`table-row`,td:`table-cell`,th:`table-cell`,input:`inline-block`,button:`inline-block`,fieldset:`block`,details:`block`,summary:`block`,marquee:`inline-block`,option:`block`,optgroup:`block`,select:`inline-block`,source:`block`,track:`block`,meter:`inline-block`,progress:`inline-block`,object:`inline-block`,video:`inline-block`,audio:`inline-block`},dt=`normal`,ft={listing:`pre`,plaintext:`pre`,pre:`pre`,xmp:`pre`,nobr:`nowrap`,table:`initial`,textarea:`pre-wrap`};function pt(e){return e.kind===`element`&&!e.hasExplicitNamespace&&![`html`,`svg`].includes(e.namespace)}var mt=pt,ht=e=>e?.kind===`element`&&O(e.attrMap,`ngNonBindable`),gt=new WeakMap,_t=e=>!!e&&he(gt,e,e=>ht(e)||_t(e.parent)),vt=(e,t)=>t.parser===`angular`&&_t(e),yt=e=>d(0,e,/^[\t\f\r ]*\n/g,``),bt=e=>yt(T.trimEnd(e)),xt=e=>{let t=e,n=T.getLeadingWhitespace(t);n&&(t=t.slice(n.length));let r=T.getTrailingWhitespace(t);return r&&(t=t.slice(0,-r.length)),{leadingWhitespace:n,trailingWhitespace:r,text:t}};function St(e,t){return!!(e.kind===`ieConditionalComment`&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind===`ieConditionalComment`&&!e.complete||j(e)&&e.children.some(e=>e.kind!==`text`&&e.kind!==`interpolation`)||on(e,t)&&!A(e,t)&&e.kind!==`interpolation`)}function Ct(e){return e.kind===`attribute`||!e.parent||!e.prev?!1:wt(e.prev)}function wt(e){return e.kind===`comment`&&e.value.trim()===`prettier-ignore`}function k(e){return e.kind===`text`||e.kind===`comment`||e.kind===`cdata`}function A(e,t){return e.kind===`element`&&(e.fullName===`script`||e.fullName===`style`||e.fullName===`svg:style`||e.fullName===`svg:script`||e.fullName===`mj-style`&&t.parser===`mjml`||mt(e)&&(e.name===`script`||e.name===`style`))}function Tt(e,t){return!(!e.children||A(e,t)||vt(e,t))}function Et(e,t){return A(e,t)||e.kind===`interpolation`||Dt(e)}function Dt(e){return tn(e).startsWith(`pre`)}function Ot(e,t){let n=r();return n&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf?e.kind===`interpolation`:n;function r(){return nt(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.prev&&(e.prev.kind===`text`||e.prev.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:j(e.parent)?!0:!(!e.prev&&(e.parent.kind===`root`||j(e)&&e.parent||A(e.parent,t)||an(e.parent,t)||!Jt(e.parent.cssDisplay))||e.prev&&!Zt(e.prev.cssDisplay))}}function kt(e,t){return nt(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.next&&(e.next.kind===`text`||e.next.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:j(e.parent)?!0:!(!e.next&&(e.parent.kind===`root`||j(e)&&e.parent||A(e.parent,t)||an(e.parent,t)||!Yt(e.parent.cssDisplay))||e.next&&!Xt(e.next.cssDisplay))}function At(e,t){return Qt(e.cssDisplay)&&!A(e,t)}function jt(e){return nt(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Mt(e){return Nt(e)||e.kind===`element`&&e.children.length>0&&([`body`,`script`,`style`].includes(e.name)||e.children.some(e=>Vt(e)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!==`text`&&Lt(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Rt(e.lastChild))}function Nt(e){return e.kind===`element`&&e.children.length>0&&([`html`,`head`,`ul`,`ol`,`select`].includes(e.name)||e.cssDisplay.startsWith(`table`)&&e.cssDisplay!==`table-cell`)}function Pt(e){return zt(e)||e.prev&&Ft(e.prev)||It(e)}function Ft(e){return zt(e)||e.kind===`element`&&e.fullName===`br`||It(e)}function It(e){return Lt(e)&&Rt(e)}function Lt(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind===`root`||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Rt(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind===`root`||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function zt(e){switch(e.kind){case`ieConditionalComment`:case`comment`:case`directive`:return!0;case`element`:return[`script`,`select`].includes(e.name)}return!1}function Bt(e){return e.lastChild?Bt(e.lastChild):e}function Vt(e){return e.children?.some(e=>e.kind!==`text`)}function Ht(e){if(e)switch(e){case`module`:case`text/javascript`:case`text/babel`:case`text/jsx`:case`application/javascript`:return`babel`;case`application/x-typescript`:return`typescript`;case`text/markdown`:return`markdown`;case`text/html`:return`html`;case`text/x-handlebars-template`:return`glimmer`;default:if(e.endsWith(`json`)||e.endsWith(`importmap`)||e===`speculationrules`)return`json`}}function Ut(e,t){let{name:n,attrMap:r}=e;if(n!==`script`||O(r,`src`))return;let{type:i,lang:a}=e.attrMap;return!a&&!i?`babel`:$e(t,{language:a})??Ht(i)}function Wt(e,t){if(!on(e,t))return;let{attrMap:n}=e;if(O(n,`src`))return;let{type:r,lang:i}=n;return $e(t,{language:i})??Ht(r)}function Gt(e,t){if(e.name===`style`){let{lang:n}=e.attrMap;return n?$e(t,{language:n}):`css`}if(e.name===`mj-style`&&t.parser===`mjml`)return`css`}function Kt(e,t){return Ut(e,t)??Gt(e,t)??Wt(e,t)}function qt(e){return e===`block`||e===`list-item`||e.startsWith(`table`)}function Jt(e){return!qt(e)&&e!==`inline-block`}function Yt(e){return!qt(e)&&e!==`inline-block`}function Xt(e){return!qt(e)}function Zt(e){return!qt(e)}function Qt(e){return!qt(e)&&e!==`inline-block`}function j(e){return tn(e).startsWith(`pre`)}function $t(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function en(e,t){if(N(e,t))return`block`;if(e.prev?.kind===`comment`){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if(e.kind===`element`&&e.namespace===`svg`){if($t(e,e=>e.fullName===`svg:foreignObject`))n=!0;else return e.name===`svg`?`inline-block`:`block`}switch(t.htmlWhitespaceSensitivity){case`strict`:return`inline`;case`ignore`:return`block`;default:if(e.kind===`element`&&(!e.namespace||n||mt(e))&&O(ut,e.name))return ut[e.name]}return lt}function tn(e){return e.kind===`element`&&(!e.namespace||mt(e))&&O(ft,e.name)?ft[e.name]:dt}function nn(e){return d(0,d(0,e,`'`,`'`),`"`,`"`)}function M(e){return nn(e.value)}var rn=new Set([`template`,`style`,`script`]);function an(e,t){return N(e,t)&&!rn.has(e.fullName)}function N(e,t){return t.parser===`vue`&&e.kind===`element`&&e.parent.kind===`root`&&e.fullName.toLowerCase()!==`html`}function on(e,t){return N(e,t)&&(an(e,t)||e.attrMap.lang&&e.attrMap.lang!==`html`)}function sn(e){let t=e.fullName;return t.charAt(0)===`#`||t===`slot-scope`||t===`v-slot`||t.startsWith(`v-slot:`)}function cn(e,t){let n=e.parent;if(!N(n,t))return!1;let r=n.fullName,i=e.fullName;return r===`script`&&i===`setup`||r===`style`&&i===`vars`}function ln(e,t){return N(e,t)&&e.name===`script`}function un(e){let{valueSpan:t,value:n}=e;return t.end.offset-t.start.offset===n.length+2}function dn(e,t){if(un(e))return!1;let{value:n}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n)||t.parser===`lwc`&&n.startsWith(`{`)&&n.endsWith(`}`)}var fn=/\{\{(.+?)\}\}/s,pn=({node:{value:e}})=>fn.test(e);async function mn(e,t,n){let r=M(n.node),i=[];for(let[t,n]of r.split(fn).entries())if(t%2==0)i.push(g(n));else try{i.push(b([`{{`,v([S,await D(n,e,{parser:`__ng_interpolation`,__isInHtmlInterpolation:!0})]),S,`}}`]))}catch{i.push(`{{`,g(n),`}}`)}return i}var hn=e=>(t,n,r)=>D(M(r.node),t,{parser:e},E),gn=[{test(e){let t=e.node.fullName;return t.startsWith(`(`)&&t.endsWith(`)`)||t.startsWith(`on-`)},print:hn(`__ng_action`)},{test(e){let t=e.node.fullName;return t.startsWith(`[`)&&t.endsWith(`]`)||/^bind(?:on)?-/.test(t)||/^ng-(?:if|show|hide|class|style|model-options)$/.test(t)},print:hn(`__ng_binding`)},{test:e=>e.node.fullName.startsWith(`*`),print:hn(`__ng_directive`)},{test:e=>/^i18n(?:-.+)?$/.test(e.node.fullName),print:_n},{test:pn,print:mn}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`angular`&&e(t),print:t}));function _n(e,t,{node:n}){let r=M(n);return Ne(De(x(S,T.split(r.trim()))),!r.includes(`@@`))}var vn=gn,yn=({node:e},t)=>!t.parentParser&&e.fullName===`class`&&!e.value.includes(`{{`),bn=(e,t,n)=>d(0,M(n.node).trim(),/\s+/g,` `),xn=new Set(`onabort.onafterprint.onauxclick.onbeforeinput.onbeforematch.onbeforeprint.onbeforetoggle.onbeforeunload.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncommand.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpagereveal.onpageshow.onpageswap.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onrejectionhandled.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`)),Sn=({node:e},t)=>xn.has(e.fullName)&&!t.parentParser&&!e.value.includes(`{{`),Cn=(e,t,n)=>D(M(n.node),e,{parser:`babel`,__isHtmlInlineEventHandler:!0},()=>!1);function wn(e){let t=[];for(let n of e.split(`;`)){if(n=T.trim(n),!n)continue;let[e,...r]=T.split(n);t.push({name:e,value:r})}return t}var Tn=wn,En=({node:e},t)=>e.fullName===`allow`&&!t.parentParser&&e.parent.fullName===`iframe`&&!e.value.includes(`{{`);function Dn(e,t,n){let{node:r}=n,i=Tn(M(r));return i.length===0?[``]:Ne(i.map(({name:e,value:t},n)=>[[e,...t].join(` `),n===i.length-1?Oe(`;`):[`;`,S]]))}function On(e){return e===` `||e===`
|
|
14
|
+
`||e===`\f`||e===`\r`||e===` `}var kn=/^[ \t\n\r\u000c]+/,An=/^[, \t\n\r\u000c]+/,jn=/^[^ \t\n\r\u000c]+/,Mn=/[,]+$/,Nn=/^\d+$/,Pn=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Fn(e){let t=e.length,n,r,i,a,o,s=0,c;function l(t){let n,r=t.exec(e.substring(s));if(r)return[n]=r,s+=n.length,n}let u=[];for(;;){if(l(An),s>=t){if(u.length===0)throw Error(`Must contain one or more image candidate strings.`);return u}c=s,n=l(jn),r=[],n.slice(-1)===`,`?(n=n.replace(Mn,``),f()):d()}function d(){for(l(kn),i=``,a=`in descriptor`;;){if(o=e.charAt(s),a===`in descriptor`){if(On(o))i&&(r.push(i),i=``,a=`after descriptor`);else if(o===`,`){s+=1,i&&r.push(i),f();return}else if(o===`(`)i+=o,a=`in parens`;else if(o===``){i&&r.push(i),f();return}else i+=o}else if(a===`in parens`){if(o===`)`)i+=o,a=`in descriptor`;else if(o===``){r.push(i),f();return}else i+=o}else if(a===`after descriptor`&&!On(o)){if(o===``){f();return}a=`in descriptor`,--s}s+=1}}function f(){let t=!1,i,a,o,s,l={},d,f,p,m,ee;for(s=0;s<r.length;s++)d=r[s],f=d[d.length-1],p=d.substring(0,d.length-1),m=parseInt(p,10),ee=parseFloat(p),Nn.test(p)&&f===`w`?((i||a)&&(t=!0),m===0?t=!0:i=m):Pn.test(p)&&f===`x`?((i||a||o)&&(t=!0),ee<0?t=!0:a=ee):Nn.test(p)&&f===`h`?((o||a)&&(t=!0),m===0?t=!0:o=m):t=!0;if(!t)l.source={value:n,startOffset:c},i&&(l.width={value:i}),a&&(l.density={value:a}),o&&(l.height={value:o}),u.push(l);else throw Error(`Invalid srcset descriptor found in "${e}" at "${d}".`)}}var In=Fn,Ln=e=>e.node.fullName===`srcset`&&(e.parent.fullName===`img`||e.parent.fullName===`source`),Rn={width:`w`,height:`h`,density:`x`},zn=Object.keys(Rn);function Bn(e,t,n){let r=In(M(n.node)),i=zn.filter(e=>r.some(t=>O(t,e)));if(i.length>1)throw Error(`Mixed descriptor in srcset is not supported`);let[a]=i,o=Rn[a],s=r.map(e=>e.source.value),c=Math.max(...s.map(e=>e.length)),l=r.map(e=>e[a]?String(e[a].value):``),u=l.map(e=>{let t=e.indexOf(`.`);return t===-1?e.length:t}),d=Math.max(...u);return Ne(x([`,`,S],s.map((e,t)=>{let n=[e],r=l[t];if(r){let i=c-e.length+1,a=d-u[t],s=` `.repeat(i+a);n.push(Oe(s,` `),r+o)}return n})))}var Vn=({node:e},t)=>e.fullName===`style`&&!t.parentParser&&!e.value.includes(`{{`),Hn=async(e,t,n)=>Ne(await e(M(n.node),{parser:`css`,__isHTMLStyleAttribute:!0})),Un=new WeakMap;function Wn(e,t){return he(Un,e.root,e=>e.children.some(e=>ln(e,t)&&[`ts`,`typescript`].includes(e.attrMap.lang)))}var P=Wn;function Gn(e,t,n){return D(`type T<${M(n.node)}> = any`,e,{parser:`babel-ts`,__isEmbeddedTypescriptGenericParameters:!0},E)}function Kn(e,t,n,r){let i=M(n.node),a=P(n,r)?`babel-ts`:`babel`;return D(`function _(${i}) {}`,e,{parser:a,__isVueBindings:!0})}async function qn(e,t,n,r){let{left:i,operator:a,right:o}=Jn(M(n.node)),s=P(n,r);return[b(await D(`function _(${i}) {}`,e,{parser:s?`babel-ts`:`babel`,__isVueForBindingLeft:!0})),` `,a,` `,await D(o,e,{parser:s?`__ts_expression`:`__js_expression`})]}function Jn(e){let t=e.match(/(.*?)\s+(in|of)\s+(.*)/s);if(!t)return;let n={for:t[3].trim()};if(!n.for)return;let r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,i=d(0,t[1].trim(),/^\(|\)$/g,``),a=i.match(r);a?(n.alias=i.replace(r,``),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=i;let o=[n.alias,n.iterator1,n.iterator2];if(!o.some((e,t)=>!e&&(t===0||o.slice(t+1).some(Boolean))))return{left:o.filter(Boolean).join(`,`),operator:t[2],right:n.for}}var Yn=[{test:e=>e.node.fullName===`v-for`,print:qn},{test:(e,t)=>e.node.fullName===`generic`&&ln(e.parent,t),print:Gn},{test:({node:e},t)=>sn(e)||cn(e,t),print:Kn},{test(e){let t=e.node.fullName;return t.startsWith(`@`)||t.startsWith(`v-on:`)},print:Xn},{test(e){let t=e.node.fullName;return t.startsWith(`:`)||t.startsWith(`.`)||t.startsWith(`v-bind:`)},print:Zn},{test:e=>e.node.fullName.startsWith(`v-`),print:Qn}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`vue`&&e(t,n),print:t}));async function Xn(e,t,n,r){try{return await Qn(e,t,n,r)}catch(e){if(e.cause?.code!==`BABEL_PARSER_SYNTAX_ERROR`)throw e}return D(M(n.node),e,{parser:P(n,r)?`__vue_ts_event_binding`:`__vue_event_binding`},E)}function Zn(e,t,n,r){return D(M(n.node),e,{parser:P(n,r)?`__vue_ts_expression`:`__vue_expression`},E)}function Qn(e,t,n,r){return D(M(n.node),e,{parser:P(n,r)?`__ts_expression`:`__js_expression`},E)}var $n=[{test:Ln,print:Bn},{test:Vn,print:Hn},{test:Sn,print:Cn},{test:yn,print:bn},{test:En,print:Dn},...Yn,...vn].map(({test:e,print:t})=>({test:e,print:tr(t)}));function er(e,t){let{node:n}=e,{value:r}=n;if(r)return dn(n,t)?[n.rawName,`=`,r]:$n.find(({test:n})=>n(e,t))?.print}function tr(e){return async(t,n,r,i)=>{let a=await e(t,n,r,i);if(a)return a=xe(a,e=>typeof e==`string`?d(0,e,`"`,`"`):e),[r.node.rawName,`="`,b(a),`"`]}}var nr=er,F=e=>e.sourceSpan.start.offset,rr=e=>e.sourceSpan.end.offset;function ir(e,t){return[e.isSelfClosing?``:ar(e,t),or(e,t)]}function ar(e,t){return e.lastChild&&R(e.lastChild)?``:[sr(e,t),cr(e,t)]}function or(e,t){return(e.next?L(e.next):dr(e.parent))?``:[lr(e,t),I(e,t)]}function sr(e,t){return dr(e)?lr(e.lastChild,t):``}function I(e,t){return R(e)?cr(e.parent,t):fr(e)?br(e.next,t):``}function cr(e,t){if(ur(e,t))return``;switch(e.kind){case`ieConditionalComment`:return`<!`;case`element`:if(e.hasHtmComponentClosingTag)return`<//`;default:return`</${e.rawName}`}}function lr(e,t){if(ur(e,t))return``;switch(e.kind){case`ieConditionalComment`:case`ieConditionalEndComment`:return`[endif]-->`;case`ieConditionalStartComment`:return`]><!-->`;case`interpolation`:return`}}`;case`angularIcuExpression`:return`}`;case`element`:if(e.isSelfClosing)return`/>`;default:return`>`}}function ur(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ct(e)||St(e.parent,t))}function L(e){return e.prev&&e.prev.kind!==`docType`&&e.kind!==`angularControlFlowBlock`&&!k(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function dr(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!k(Bt(e.lastChild))&&!j(e)}function R(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&k(Bt(e))}function fr(e){return e.next&&!k(e.next)&&k(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function pr(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?!t[1]||t[1].split(/\s+/):!1}function mr(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function hr(e,t,n){let{node:r}=e,{attrs:i=[],startTagComments:a=[]}=r;if(i.length===0&&a.length===0)return r.isSelfClosing?` `:``;let o=r.prev?.kind===`comment`&&pr(r.prev.value),s=typeof o==`boolean`?()=>o:Array.isArray(o)?e=>o.includes(e.rawName):()=>!1,c=[`attrs`,`startTagComments`].filter(e=>qe(r[e])),l=c.flatMap(r=>e.map(({node:e})=>({loc:F(e),printed:e.kind===`attribute`&&s(e)?g(t.originalText.slice(F(e),rr(e))):n()}),r));c.length>1&&l.sort((e,t)=>e.loc-t.loc);let u=r.kind===`element`&&r.fullName===`script`&&i.length===1&&i[0].fullName===`src`&&r.children.length===0&&a.length===0,d=a.some(e=>e.type===`single`),f=d||t.singleAttributePerLine&&i.length>1&&!N(r,t)?w:S,p=[v([u?` `:d?w:S,x(f,l.map(({printed:e})=>e))])];return r.firstChild&&mr(r.firstChild)||r.isSelfClosing&&dr(r.parent)||u?p.push(r.isSelfClosing?` `:``):p.push(t.bracketSameLine?r.isSelfClosing?` `:``:r.isSelfClosing?S:C),p}function gr(e){return e.firstChild&&mr(e.firstChild)?``:xr(e)}function _r(e,t,n){let{node:r}=e;return[vr(r,t),hr(e,t,n),r.isSelfClosing?``:gr(r)]}function vr(e,t){return e.prev&&fr(e.prev)?``:[z(e,t),br(e,t)]}function z(e,t){return mr(e)?xr(e.parent):L(e)?lr(e.prev,t):``}var yr=`<!doctype`;function br(e,t){switch(e.kind){case`ieConditionalComment`:case`ieConditionalStartComment`:return`<!--[if ${e.condition}`;case`ieConditionalEndComment`:return`<!--<!`;case`interpolation`:return`{{`;case`docType`:{if(e.value===`html`){let{filepath:e}=t;if(e&&/\.html?$/.test(e))return yr}let n=F(e);return t.originalText.slice(n,n+yr.length)}case`angularIcuExpression`:return`{`;case`element`:if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function xr(e){switch(e.kind){case`ieConditionalComment`:return`]>`;case`element`:if(e.condition)return`><!--<![endif]-->`;default:return`>`}}function Sr(e,t){if(!e.endSourceSpan)return``;let n=e.startSourceSpan.end.offset;e.firstChild&&mr(e.firstChild)&&(n-=xr(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&R(e.lastChild)?r+=cr(e,t).length:dr(e)&&(r-=lr(e.lastChild,t).length),t.originalText.slice(n,r)}var Cr=Sr,wr=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Tr(e,t){let{node:n}=e;switch(n.kind){case`element`:if(A(n,t)||n.kind===`interpolation`)return;if(!n.isSelfClosing&&on(n,t)){let r=Kt(n,t);return r?async(i,a)=>{let o=Cr(n,t),s=/^\s*$/.test(o),c=``;return s||=(c=await i(bt(o),{parser:r,__embeddedInHtml:!0}),c===``),[z(n,t),b(_r(e,t,a)),s?``:w,c,s?``:w,ir(n,t),I(n,t)]}:void 0}break;case`text`:if(A(n.parent,t)){let e=Kt(n.parent,t);if(e)return async r=>{let i=e===`markdown`?T.dedentString(n.value.replace(/^[^\S\n]*\n/,``)):n.value,a={parser:e,__embeddedInHtml:!0};if(t.parser===`html`&&e===`babel`){let e=`script`,{attrMap:t}=n.parent;t&&(t.type===`module`||(t.type===`text/babel`||t.type===`text/jsx`)&&t[`data-type`]===`module`)&&(e=`module`),a.__babelSourceType=e}return[y,z(n,t),await r(i,a),I(n,t)]}}else if(n.parent.kind===`interpolation`)return async r=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return i.parser=t.parser===`angular`?`__ng_interpolation`:t.parser===`vue`?P(e,t)?`__vue_ts_expression`:`__vue_expression`:`__js_expression`,[v([S,await r(n.value,i)]),n.parent.next&&L(n.parent.next)?` `:S]};break;case`attribute`:return nr(e,t);case`angularControlFlowBlockParameters`:return wr.has(e.parent.name)?Fe:void 0;case`angularLetDeclarationInitializer`:return e=>D(n.value,e,{parser:`__ng_binding`,__isInHtmlAttribute:!1})}}var Er=Tr,Dr=null;function Or(e){if(Dr!==null&&typeof Dr.property){let e=Dr;return Dr=Or.prototype=null,e}return Dr=Or.prototype=e??Object.create(null),new Or}var kr=10;for(let e=0;e<=kr;e++)Or();function Ar(e){return Or(e)}function jr(e,t=`type`){Ar(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Mr=jr,Nr=[[`children`]],Pr=Mr({root:Nr[0],element:[`attrs`,`startTagComments`,`children`],ieConditionalComment:Nr[0],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:Nr[0],text:Nr[0],docType:[],comment:[],attribute:[],startTagComment:[],cdata:[],angularControlFlowBlock:[`children`,`parameters`],angularControlFlowBlockParameters:Nr[0],angularControlFlowBlockParameter:[],angularLetDeclaration:[`init`],angularLetDeclarationInitializer:[],angularIcuExpression:[`cases`],angularIcuCase:[`expression`]},`kind`),Fr=new Set([`sourceSpan`,`startSourceSpan`,`endSourceSpan`,`nameSpan`,`valueSpan`,`keySpan`,`tagDefinition`,`tokens`,`valueTokens`,`switchValueSourceSpan`,`expSourceSpan`,`valueSourceSpan`]),Ir=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Lr(e,t,n){if(e.kind===`text`||e.kind===`comment`)return null;if(e.kind===`yaml`&&delete t.value,e.kind===`attribute`){let{fullName:r,value:i}=e;r===`style`||r===`class`||r===`srcset`&&(n.fullName===`img`||n.fullName===`source`)||r===`allow`&&n.fullName===`iframe`||r.startsWith(`on`)||r.startsWith(`@`)||r.startsWith(`:`)||r.startsWith(`.`)||r.startsWith(`#`)||r.startsWith(`v-`)||r===`vars`&&n.fullName===`style`||(r===`setup`||r===`generic`)&&n.fullName===`script`||r===`slot-scope`||r.startsWith(`(`)||r.startsWith(`[`)||r.startsWith(`*`)||r.startsWith(`bind`)||r.startsWith(`i18n`)||r.startsWith(`on-`)||r.startsWith(`ng-`)||i?.includes(`{{`)?delete t.value:i&&(t.value=d(0,i,/'|"|'/g,`"`))}if(e.kind===`docType`&&(t.value=d(0,e.value.toLowerCase(),/\s+/g,` `)),e.kind===`angularControlFlowBlock`&&e.parameters?.children)for(let n of t.parameters.children)Ir.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind===`angularIcuExpression`&&(t.switchValue=e.switchValue.trim()),e.kind===`angularLetDeclarationInitializer`&&delete t.value,e.kind===`element`&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}Lr.ignoredProperties=Fr;var Rr=`format`,zr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/,Br=/^\s*<!--\s*@(?:format|prettier)\s*-->/,Vr=e=>Br.test(e),Hr=e=>zr.test(e),Ur=e=>`<!-- @${Rr} -->
|
|
15
|
+
|
|
16
|
+
${e}`,Wr=new Map([[`if`,new Set([`else if`,`else`])],[`else if`,new Set([`else if`,`else`])],[`for`,new Set([`empty`])],[`defer`,new Set([`placeholder`,`error`,`loading`])],[`placeholder`,new Set([`placeholder`,`error`,`loading`])],[`error`,new Set([`placeholder`,`error`,`loading`])],[`loading`,new Set([`placeholder`,`error`,`loading`])],[`boundary`,new Set([`error`])]]);function Gr(e){let t=rr(e);return e.kind===`element`&&!e.endSourceSpan&&qe(e.children)?Math.max(t,Gr(p(0,e.children,-1))):t}function Kr(e,t,n){let r=e.node;if(Ct(r)){let e=Gr(r);return[z(r,t),g(T.trimEnd(t.originalText.slice(F(r)+(r.prev&&fr(r.prev)?br(r).length:0),e-(r.next&&L(r.next)?lr(r,t).length:0)))),I(r,t)]}return n()}function qr(e,t){return k(e)&&k(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Pt(t)?w:S:``:Pt(t)?w:C:L(t)&&e.kind===`element`&&e.children.length===1&&e.firstChild.kind===`interpolation`&&e.hasLeadingSpaces||fr(e)&&(Ct(t)||t.firstChild||t.isSelfClosing||t.kind===`element`&&t.attrs.length>0)||e.kind===`element`&&e.isSelfClosing&&L(t)?``:t.kind===`comment`&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces?C:!t.isLeadingSpaceSensitive||Pt(t)||L(t)&&e.lastChild&&R(e.lastChild)&&e.lastChild.lastChild&&R(e.lastChild.lastChild)?w:t.hasLeadingSpaces?S:C}function Jr(e,t,n){let{node:r}=e;if(Nt(r))return[y,...e.map(()=>{let r=e.node,i=r.prev?qr(r.prev,r):``;return[i?[i,jt(r.prev)?w:``]:``,Kr(e,t,n)]},`children`)];let i=r.children.map(()=>Symbol(``));return e.map(({node:r,index:a})=>{if(k(r)){if(r.prev&&k(r.prev)){let i=qr(r.prev,r);if(i)return jt(r.prev)?[w,w,Kr(e,t,n)]:[i,Kr(e,t,n)]}return Kr(e,t,n)}let o=[],s=[],c=[],l=[],u=r.prev?qr(r.prev,r):``,d=r.next?qr(r,r.next):``;return u&&(jt(r.prev)?o.push(w,w):u===w?o.push(w):k(r.prev)?s.push(u):s.push(Oe(``,C,{groupId:i[a-1]}))),d&&(jt(r)?k(r.next)&&l.push(w,w):d===w?k(r.next)&&l.push(w):c.push(d)),[...o,b([...s,b([Kr(e,t,n),...c],{id:i[a]})]),...l]},`children`)}function Yr(e,t,n){let{node:r}=e,i=[];ei(e)&&i.push(`} `),i.push(`@`,r.name);let a=Qr(r);if(r.parameters&&(a||i.push(` `),i.push(`(`,b(n(`parameters`)),`)`)),a)return i.push(`;`),i;if(!$r(r)){i.push(` {`);let a=Xr(r);r.children.length>0?(r.firstChild.hasLeadingSpaces=!0,r.lastChild.hasTrailingSpaces=!0,i.push(v([w,Jr(e,t,n)])),a&&i.push(w,`}`)):a&&i.push(`}`)}return b(i,{shouldBreak:!0})}function Xr(e){return!(e.next?.kind===`angularControlFlowBlock`&&Wr.get(e.name)?.has(e.next.name))}var Zr=e=>e?.kind===`angularControlFlowBlock`&&(e.name===`case`||e.name==="default"),Qr=e=>e?.kind===`angularControlFlowBlock`&&e.name===`default never`;function $r(e){return Zr(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function ei(e){let{previous:t}=e;return t?.kind===`angularControlFlowBlock`&&!Ct(t)&&!Xr(t)}function ti(e,t,n){return[v([C,x([`;`,S],e.map(n,`children`))]),C]}function ni(e,t,n){let{node:r}=e;return[vr(r,t),b([r.switchValue.trim(),`, `,r.type,r.cases.length>0?[`,`,v([S,x(S,e.map(n,`cases`))])]:``,C]),or(r,t)]}function ri(e,t,n){let{node:r}=e;return[r.value,` {`,b([v([C,e.map(({node:e,isLast:t})=>{let r=[n()];return e.kind===`text`&&(e.hasLeadingSpaces&&r.unshift(S),e.hasTrailingSpaces&&!t&&r.push(S)),r},`expression`)]),C]),`}`]}var ii=Object.freeze({character:`'`,codePoint:39}),ai=Object.freeze({character:`"`,codePoint:34}),oi=Object.freeze({preferred:ii,alternate:ai}),si=Object.freeze({preferred:ai,alternate:ii});function ci(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?oi:si,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}function li(e,t){let{node:n}=e,{value:r}=n;if(dn(n,t))return r;r=nn(r);let i=ci(r,`"`);return r=i===`"`?d(0,r,`"`,`"`):d(0,r,`'`,`'`),[i,g(r),i]}function ui(e,t){let{node:n}=e,r=[n.rawName];return n.value!==null&&r.push(`=`,li(e,t)),r}function di(e,t,n){let{node:r}=e;if(St(r,t))return[b(_r(e,t,n)),g(Cr(r,t)),...ir(r,t)];let i=r.children.length===1&&(r.firstChild.kind===`interpolation`||r.firstChild.kind===`angularIcuExpression`)&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol(`element-attr-group-id`),o=i=>b([b(_r(e,t,n),{id:a}),i,ir(r,t)]);return r.children.length===0?o(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?S:``):o([Mt(r)?y:``,(e=>i?ke(e,{groupId:a}):(A(r,t)||an(r,t))&&r.parent.kind===`root`&&t.parser===`vue`&&!t.vueIndentScriptAndStyle?e:v(e))([i?Oe(C,``,{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?S:r.firstChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Ee(C):C,Jr(e,t,n)]),(r.next?L(r.next):dr(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?` `:``:j(r)&&R(r.lastChild)?``:i?Oe(C,``,{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?S:(r.lastChild.kind===`comment`||r.lastChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(r.lastChild.value)?``:C])}function fi(e){let{node:{value:t,type:n}}=e;return n===`single`?`//${t.trimEnd()}`:[`/*`,g(t),`*/`]}function pi(e){let{value:t}=e;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?g(t):g(T.dedentString(bt(t)),w):x(S,T.split(t))}function mi(e,t){let{node:n}=e;if(n.parent.kind===`interpolation`){let{value:e}=n,t=/\n[^\S\n]*$/,r=t.test(e);r&&(e=e.replace(t,``));let i=[g(e)];return r&&(n.parent.next&&L(n.parent.next)?i.push(y):i.push(w)),i}let r=pi(n),i=z(n,t),a=I(n,t);return i&&(r[0]=[i,r[0]]),a&&r.push([r.pop(),a]),De(r)}var hi=(function(e){return e[e.RAW_TEXT=0]=`RAW_TEXT`,e[e.ESCAPABLE_RAW_TEXT=1]=`ESCAPABLE_RAW_TEXT`,e[e.PARSABLE_DATA=2]=`PARSABLE_DATA`,e})({});function B(e,t=!0){if(e[0]!=`:`)return[null,e];let n=e.indexOf(`:`,1);if(n===-1){if(t)throw Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function gi(e){return B(e)[1]===`ng-container`}function _i(e){return B(e)[1]===`ng-content`}function vi(e){return e===null?null:B(e)[0]}function yi(e,t){return e?`:${e}:${t}`:t}var bi,xi=`math`,Si=()=>Object.create(null);function Ci(){return bi||(bi=Si(),V(1,void 0,[[`iframe`,[`srcdoc`]],[`*`,[`innerHTML`,`outerHTML`]]]),V(2,void 0,[[`*`,[`style`]]]),V(4,void 0,[[`*`,[`formAction`]],[`area`,[`href`]],[`a`,[`href`,`xlink:href`]],[`form`,[`action`]],[`img`,[`src`]],[`video`,[`src`]]]),V(4,xi,[[`*`,[`href`,`xlink:href`]]]),V(5,void 0,[[`base`,[`href`]],[`embed`,[`src`]],[`frame`,[`src`]],[`iframe`,[`src`]],[`link`,[`href`]],[`object`,[`codebase`,`data`]]]),V(4,`svg`,[[`a`,[`href`,`xlink:href`]]]),V(6,`svg`,[[`animate`,[`attributeName`,`values`,`to`,`from`]],[`set`,[`to`,`attributeName`]],[`animateMotion`,[`attributeName`]],[`animateTransform`,[`attributeName`]]]),V(6,void 0,[[`unknown`,[`attributeName`,`values`,`to`,`from`,`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]],[`iframe`,[`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]]]),bi)}function V(e,t,n){let r=t??``;for(let[t,a]of n){let n=t.toLowerCase();for(let t of a){var i;let a=t.toLowerCase(),o=(i=bi)[a]??(i[a]=Si()),s=o[r]??(o[r]=Si());s[n]=e}}}function wi(e,t,n){let r=Ci()[t.toLowerCase()];if(!r)return 0;let i=e.toLowerCase(),a;if(n){let e=r[n];e&&(a=e[i]??e[`*`])}if(a===void 0){let e=r[``];e&&(a=e[i]??e[`*`])}if(a===void 0&&(!n||n===``)){let e=r.svg;e&&(a=e[i])}return a??0}var Ti={name:`custom-elements`},Ei={name:`no-errors-schema`},Di=/-+([a-z0-9])/g;function Oi(e){return e.replace(Di,(...e)=>e[1].toUpperCase())}var ki=class{},Ai=`boolean`,ji=`number`,Mi=`string`,Ni=`object`;function Pi(e){let[t,n]=B(e.toLowerCase(),!1);return t===`svg`||t===`math`?`:${t}:${n}`:n}var Fi=`[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored.[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume.:svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:svg:graphics^:svg:|.:svg:animation^:svg:|*begin,*end,*repeat.:svg:geometry^:svg:|.:svg:componentTransferFunction^:svg:|.:svg:gradient^:svg:|.:svg:textContent^:svg:graphics|.:svg:textPositioning^:svg:textContent|.a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username.area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username.audio^media|.br^[HTMLElement]|clear.base^[HTMLElement]|href,target.body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink.button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value.canvas^[HTMLElement]|#height,#width.content^[HTMLElement]|select.dl^[HTMLElement]|!compact.data^[HTMLElement]|value.datalist^[HTMLElement]|.details^[HTMLElement]|!open.dialog^[HTMLElement]|!open,returnValue.dir^[HTMLElement]|!compact.div^[HTMLElement]|align.embed^[HTMLElement]|align,height,name,src,type,width.fieldset^[HTMLElement]|!disabled,name.font^[HTMLElement]|color,face,size.form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target.frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src.frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows.geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch.hr^[HTMLElement]|align,color,!noShade,size,width.head^[HTMLElement]|.h1,h2,h3,h4,h5,h6^[HTMLElement]|align.html^[HTMLElement]|version.iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width.img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width.input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width.li^[HTMLElement]|type,#value.label^[HTMLElement]|htmlFor.legend^[HTMLElement]|align.link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type.map^[HTMLElement]|name.marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width.menu^[HTMLElement]|!compact.meta^[HTMLElement]|content,httpEquiv,media,name,scheme.meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value.ins,del^[HTMLElement]|cite,dateTime.ol^[HTMLElement]|!compact,!reversed,#start,type.object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width.optgroup^[HTMLElement]|!disabled,label.option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value.output^[HTMLElement]|defaultValue,%htmlFor,name,value.p^[HTMLElement]|align.param^[HTMLElement]|name,type,value,valueType.picture^[HTMLElement]|.pre^[HTMLElement]|#width.progress^[HTMLElement]|#max,#value.q,blockquote,cite^[HTMLElement]|.script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type.select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value.selectedcontent^[HTMLElement]|.slot^[HTMLElement]|name.source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width.span^[HTMLElement]|.style^[HTMLElement]|!disabled,media,type.search^[HTMLELement]|.caption^[HTMLElement]|align.th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width.col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width.table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width.tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign.tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign.template^[HTMLElement]|.textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap.time^[HTMLElement]|dateTime.title^[HTMLElement]|text.track^[HTMLElement]|!default,kind,label,src,srclang.ul^[HTMLElement]|!compact,type.unknown^[HTMLElement]|.video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width.:svg:a^:svg:graphics|.:svg:animate^:svg:animation|.:svg:animateMotion^:svg:animation|.:svg:animateTransform^:svg:animation|.:svg:circle^:svg:geometry|.:svg:clipPath^:svg:graphics|.:svg:defs^:svg:graphics|.:svg:desc^:svg:|.:svg:discard^:svg:|.:svg:ellipse^:svg:geometry|.:svg:feBlend^:svg:|.:svg:feColorMatrix^:svg:|.:svg:feComponentTransfer^:svg:|.:svg:feComposite^:svg:|.:svg:feConvolveMatrix^:svg:|.:svg:feDiffuseLighting^:svg:|.:svg:feDisplacementMap^:svg:|.:svg:feDistantLight^:svg:|.:svg:feDropShadow^:svg:|.:svg:feFlood^:svg:|.:svg:feFuncA^:svg:componentTransferFunction|.:svg:feFuncB^:svg:componentTransferFunction|.:svg:feFuncG^:svg:componentTransferFunction|.:svg:feFuncR^:svg:componentTransferFunction|.:svg:feGaussianBlur^:svg:|.:svg:feImage^:svg:|.:svg:feMerge^:svg:|.:svg:feMergeNode^:svg:|.:svg:feMorphology^:svg:|.:svg:feOffset^:svg:|.:svg:fePointLight^:svg:|.:svg:feSpecularLighting^:svg:|.:svg:feSpotLight^:svg:|.:svg:feTile^:svg:|.:svg:feTurbulence^:svg:|.:svg:filter^:svg:|.:svg:foreignObject^:svg:graphics|.:svg:g^:svg:graphics|.:svg:image^:svg:graphics|decoding.:svg:line^:svg:geometry|.:svg:linearGradient^:svg:gradient|.:svg:mpath^:svg:|.:svg:marker^:svg:|.:svg:mask^:svg:|.:svg:metadata^:svg:|.:svg:path^:svg:geometry|.:svg:pattern^:svg:|.:svg:polygon^:svg:geometry|.:svg:polyline^:svg:geometry|.:svg:radialGradient^:svg:gradient|.:svg:rect^:svg:geometry|.:svg:svg^:svg:graphics|#currentScale,#zoomAndPan.:svg:script^:svg:|type.:svg:set^:svg:animation|.:svg:stop^:svg:|.:svg:style^:svg:|!disabled,media,title,type.:svg:switch^:svg:graphics|.:svg:symbol^:svg:|.:svg:tspan^:svg:textPositioning|.:svg:text^:svg:textPositioning|.:svg:textPath^:svg:textContent|.:svg:title^:svg:|.:svg:use^:svg:graphics|.:svg:view^:svg:|#zoomAndPan.data^[HTMLElement]|value.keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name.menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default.summary^[HTMLElement]|.time^[HTMLElement]|dateTime.:svg:cursor^:svg:|.:math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:math:math^:math:|.:math:maction^:math:|.:math:menclose^:math:|.:math:merror^:math:|.:math:mfenced^:math:|.:math:mfrac^:math:|.:math:mi^:math:|.:math:mmultiscripts^:math:|.:math:mn^:math:|.:math:mo^:math:|.:math:mover^:math:|.:math:mpadded^:math:|.:math:mphantom^:math:|.:math:mroot^:math:|.:math:mrow^:math:|.:math:ms^:math:|.:math:mspace^:math:|.:math:msqrt^:math:|.:math:mstyle^:math:|.:math:msub^:math:|.:math:msubsup^:math:|.:math:msup^:math:|.:math:mtable^:math:|.:math:mtd^:math:|.:math:mtext^:math:|.:math:mtr^:math:|.:math:munder^:math:|.:math:munderover^:math:|.:math:semantics^:math:|`.split(`.`),Ii=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`,"aria-activedescendant":`ariaActiveDescendantElement`,"aria-atomic":`ariaAtomic`,"aria-autocomplete":`ariaAutoComplete`,"aria-busy":`ariaBusy`,"aria-checked":`ariaChecked`,"aria-colcount":`ariaColCount`,"aria-colindex":`ariaColIndex`,"aria-colindextext":`ariaColIndexText`,"aria-colspan":`ariaColSpan`,"aria-controls":`ariaControlsElements`,"aria-current":`ariaCurrent`,"aria-describedby":`ariaDescribedByElements`,"aria-description":`ariaDescription`,"aria-details":`ariaDetailsElements`,"aria-disabled":`ariaDisabled`,"aria-errormessage":`ariaErrorMessageElements`,"aria-expanded":`ariaExpanded`,"aria-flowto":`ariaFlowToElements`,"aria-haspopup":`ariaHasPopup`,"aria-hidden":`ariaHidden`,"aria-invalid":`ariaInvalid`,"aria-keyshortcuts":`ariaKeyShortcuts`,"aria-label":`ariaLabel`,"aria-labelledby":`ariaLabelledByElements`,"aria-level":`ariaLevel`,"aria-live":`ariaLive`,"aria-modal":`ariaModal`,"aria-multiline":`ariaMultiLine`,"aria-multiselectable":`ariaMultiSelectable`,"aria-orientation":`ariaOrientation`,"aria-owns":`ariaOwnsElements`,"aria-placeholder":`ariaPlaceholder`,"aria-posinset":`ariaPosInSet`,"aria-pressed":`ariaPressed`,"aria-readonly":`ariaReadOnly`,"aria-required":`ariaRequired`,"aria-roledescription":`ariaRoleDescription`,"aria-rowcount":`ariaRowCount`,"aria-rowindex":`ariaRowIndex`,"aria-rowindextext":`ariaRowIndexText`,"aria-rowspan":`ariaRowSpan`,"aria-selected":`ariaSelected`,"aria-setsize":`ariaSetSize`,"aria-sort":`ariaSort`,"aria-valuemax":`ariaValueMax`,"aria-valuemin":`ariaValueMin`,"aria-valuenow":`ariaValueNow`,"aria-valuetext":`ariaValueText`})),Li=Array.from(Ii).reduce((e,[t,n])=>(e.set(t,n),e),new Map),Ri=class extends ki{_schema=new Map;_eventSchema=new Map;constructor(){super(),Fi.forEach(e=>{let t=new Map,n=new Set,[r,i]=e.split(`|`),a=i.split(`,`),[o,s]=r.split(`^`);o.split(`,`).forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),n)});let c=s&&this._schema.get(s.toLowerCase());if(c){for(let[e,n]of c)t.set(e,n);for(let e of this._eventSchema.get(s.toLowerCase()))n.add(e)}a.forEach(e=>{if(e.length>0)switch(e[0]){case`*`:n.add(e.substring(1));break;case`!`:t.set(e.substring(1),Ai);break;case`#`:t.set(e.substring(1),ji);break;case`%`:t.set(e.substring(1),Ni);break;default:t.set(e,Mi)}})})}hasProperty(e,t,n){if(n.some(e=>e.name===Ei.name))return!0;let r=Pi(e);if(r.includes(`-`)){if(gi(r)||_i(r))return!1;if(n.some(e=>e.name===Ti.name))return!0}return(this._schema.get(r)||this._schema.get(`unknown`)).has(t)}hasElement(e,t){if(t.some(e=>e.name===Ei.name))return!0;let n=Pi(e);return n.includes(`-`)&&(gi(n)||_i(n)||t.some(e=>e.name===Ti.name))?!0:this._schema.has(n)}securityContext(e,t,n){n&&(t=this.getMappedPropName(t));let[r,i]=B(e,!1);return wi(i,t,r)}getMappedPropName(e){return Ii.get(e)??e}getDefaultComponentElementName(){return`ng-component`}validateProperty(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
17
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=Pi(e),n=this._schema.get(t)||this._schema.get(`unknown`);return Array.from(n.keys()).map(e=>Li.get(e)??e)}allKnownEventsOfElement(e){let t=Pi(e);return Array.from(this._eventSchema.get(t)??[])}normalizeAnimationStyleProperty(e){return Oi(e)}normalizeAnimationStyleValue(e,t,n){let r=``,i=n.toString().trim(),a=null;if(zi(e)&&n!==0&&n!==`0`){if(typeof n==`number`)r=`px`;else{let e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&e[1].length==0&&(a=`Please provide a CSS unit value for ${t}:${n}`)}}return{error:a,value:i+r}}};function zi(e){switch(e){case`width`:case`height`:case`minWidth`:case`minHeight`:case`maxWidth`:case`maxHeight`:case`left`:case`top`:case`bottom`:case`right`:case`fontSize`:case`outlineWidth`:case`outlineOffset`:case`paddingTop`:case`paddingLeft`:case`paddingBottom`:case`paddingRight`:case`marginTop`:case`marginLeft`:case`marginBottom`:case`marginRight`:case`borderRadius`:case`borderWidth`:case`borderTopWidth`:case`borderLeftWidth`:case`borderRightWidth`:case`borderBottomWidth`:case`textIndent`:return!0;default:return!1}}var H=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=2,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:s=!1}={}){e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=s??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType==`object`?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Bi,Vi;function Hi(e){return Vi||(Bi=new H({canSelfClose:!0}),Vi=Object.assign(Object.create(null),{base:new H({isVoid:!0}),meta:new H({isVoid:!0}),area:new H({isVoid:!0}),embed:new H({isVoid:!0}),link:new H({isVoid:!0}),img:new H({isVoid:!0}),input:new H({isVoid:!0}),param:new H({isVoid:!0}),hr:new H({isVoid:!0}),br:new H({isVoid:!0}),source:new H({isVoid:!0}),track:new H({isVoid:!0}),wbr:new H({isVoid:!0}),p:new H({closedByChildren:`address.article.aside.blockquote.div.dl.fieldset.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.nav.ol.p.pre.section.table.ul`.split(`.`),closedByParent:!0}),thead:new H({closedByChildren:[`tbody`,`tfoot`]}),tbody:new H({closedByChildren:[`tbody`,`tfoot`],closedByParent:!0}),tfoot:new H({closedByChildren:[`tbody`],closedByParent:!0}),tr:new H({closedByChildren:[`tr`],closedByParent:!0}),td:new H({closedByChildren:[`td`,`th`],closedByParent:!0}),th:new H({closedByChildren:[`td`,`th`],closedByParent:!0}),col:new H({isVoid:!0}),svg:new H({implicitNamespacePrefix:`svg`}),foreignObject:new H({implicitNamespacePrefix:`svg`,preventNamespaceInheritance:!0}),math:new H({implicitNamespacePrefix:`math`}),li:new H({closedByChildren:[`li`],closedByParent:!0}),dt:new H({closedByChildren:[`dt`,`dd`]}),dd:new H({closedByChildren:[`dt`,`dd`],closedByParent:!0}),rb:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rt:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rtc:new H({closedByChildren:[`rb`,`rtc`,`rp`],closedByParent:!0}),rp:new H({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),optgroup:new H({closedByChildren:[`optgroup`],closedByParent:!0}),option:new H({closedByChildren:[`option`,`optgroup`],closedByParent:!0}),pre:new H({ignoreFirstLf:!0}),listing:new H({ignoreFirstLf:!0}),style:new H({contentType:0}),script:new H({contentType:0}),title:new H({contentType:{default:1,svg:2}}),textarea:new H({contentType:1,ignoreFirstLf:!0})}),new Ri().allKnownElementNames().forEach(e=>{!Vi[e]&&vi(e)===null&&(Vi[e]=new H({canSelfClose:!1}))})),Vi[e]??Bi}var Ui=class e{file;offset;line;col;constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return this.offset==null?this.file.url:`${this.file.url}@${this.line}:${this.col}`}moveBy(t){let n=this.file.content,r=n.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,n.charCodeAt(i)==10){a--;let e=n.substring(0,i-1).lastIndexOf(`
|
|
18
|
+
`);o=e>0?i-e:i}else o--;for(;i<r&&t>0;){let e=n.charCodeAt(i);i++,t--,e==10?(a++,o=0):o++}return new e(this.file,i,a,o)}getContext(e,t){let n=this.file.content,r=this.offset;if(r!=null){r>n.length-1&&(r=n.length-1);let i=r,a=0,o=0;for(;a<e&&r>0&&(r--,a++,n[r]!=`
|
|
19
|
+
`||++o!=t););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,n[i]!=`
|
|
20
|
+
`||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}},Wi=class{content;url;constructor(e,t){this.content=e,this.url=t}},U=class{start;end;fullStart;details;constructor(e,t,n=e,r=null){this.start=e,this.end=t,this.fullStart=n,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Gi=(function(e){return e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`,e})({}),W=class extends Error{span;msg;level;relatedError;constructor(e,t,n=1,r){super(t),this.span=e,this.msg=t,this.level=n,this.relatedError=r,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Gi[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:``;return`${this.contextualMessage()}: ${this.span.start}${e}`}},G=class{sourceSpan;i18n;constructor(e,t){this.sourceSpan=e,this.i18n=t}},Ki=class extends G{value;tokens;constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n}visit(e,t){return e.visitText(this,t)}kind=`text`},qi=class extends G{value;tokens;constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n}visit(e,t){return e.visitCdata(this,t)}kind=`cdata`},Ji=class extends G{switchValue;type;cases;switchValueSourceSpan;constructor(e,t,n,r,i,a){super(r,a),this.switchValue=e,this.type=t,this.cases=n,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}kind=`expansion`},Yi=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}kind=`expansionCase`},Xi=class extends G{name;value;keySpan;valueSpan;valueTokens;constructor(e,t,n,r,i,a,o){super(n,o),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=a}visit(e,t){return e.visitAttribute(this,t)}kind=`attribute`;get nameSpan(){return this.keySpan}},Zi=class{value;type;sourceSpan;constructor(e,t,n){this.value=e,this.type=t,this.sourceSpan=n}visit(e,t){return e.visitStartTagComment?e.visitStartTagComment(this,t):void 0}kind=`startTagComment`},K=class extends G{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;nameSpan;isVoid;comments;constructor(e,t,n,r,i,a,o,s=null,c=null,l,u,d=[]){super(a,u),this.name=e,this.attrs=t,this.directives=n,this.children=r,this.isSelfClosing=i,this.startSourceSpan=o,this.endSourceSpan=s,this.nameSpan=c,this.isVoid=l,this.comments=d}visit(e,t){return e.visitElement(this,t)}kind=`element`},Qi=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}kind=`comment`},$i=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}kind=`docType`},q=class extends G{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,i,a,o=null,s){super(r,s),this.name=e,this.parameters=t,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o}visit(e,t){return e.visitBlock(this,t)}kind=`block`},J=class extends G{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;comments;constructor(e,t,n,r,i,a,o,s,c,l=null,u,d=[]){super(s,u),this.componentName=e,this.tagName=t,this.fullName=n,this.attrs=r,this.directives=i,this.children=a,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=l,this.comments=d}visit(e,t){return e.visitComponent(this,t)}kind=`component`},ea=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,n,r,i=null){this.name=e,this.attrs=t,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,t){return e.visitDirective(this,t)}kind=`directive`},ta=class{expression;sourceSpan;constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}kind=`blockParameter`;startSourceSpan=null;endSourceSpan=null},na=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.nameSpan=r,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}kind=`letDeclaration`;startSourceSpan=null;endSourceSpan=null};function ra(e,t,n=null){let r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{let t=i(e);t&&r.push(t)}),r}var ia=class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.directives),t(e.comments),t(e.children)})}visitAttribute(e,t){}visitStartTagComment(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,t=>{t(e.parameters),t(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.comments),t(e.children)})}visitDirective(e,t){this.visitChildren(t,t=>{t(e.attrs)})}visitChildren(e,t){let n=[],r=this;function i(t){t&&n.push(ra(r,t,e))}return t(i),Array.prototype.concat.apply([],n)}},aa=(function(e){return e[e.TAG_OPEN_START=0]=`TAG_OPEN_START`,e[e.TAG_OPEN_END=1]=`TAG_OPEN_END`,e[e.TAG_OPEN_END_VOID=2]=`TAG_OPEN_END_VOID`,e[e.TAG_CLOSE=3]=`TAG_CLOSE`,e[e.INCOMPLETE_TAG_OPEN=4]=`INCOMPLETE_TAG_OPEN`,e[e.TEXT=5]=`TEXT`,e[e.ESCAPABLE_RAW_TEXT=6]=`ESCAPABLE_RAW_TEXT`,e[e.RAW_TEXT=7]=`RAW_TEXT`,e[e.INTERPOLATION=8]=`INTERPOLATION`,e[e.ENCODED_ENTITY=9]=`ENCODED_ENTITY`,e[e.COMMENT_START=10]=`COMMENT_START`,e[e.COMMENT_END=11]=`COMMENT_END`,e[e.IN_ELEMENT_COMMENT=12]=`IN_ELEMENT_COMMENT`,e[e.CDATA_START=13]=`CDATA_START`,e[e.CDATA_END=14]=`CDATA_END`,e[e.ATTR_NAME=15]=`ATTR_NAME`,e[e.ATTR_QUOTE=16]=`ATTR_QUOTE`,e[e.ATTR_VALUE_TEXT=17]=`ATTR_VALUE_TEXT`,e[e.ATTR_VALUE_INTERPOLATION=18]=`ATTR_VALUE_INTERPOLATION`,e[e.DOC_TYPE_START=19]=`DOC_TYPE_START`,e[e.DOC_TYPE_END=20]=`DOC_TYPE_END`,e[e.EXPANSION_FORM_START=21]=`EXPANSION_FORM_START`,e[e.EXPANSION_CASE_VALUE=22]=`EXPANSION_CASE_VALUE`,e[e.EXPANSION_CASE_EXP_START=23]=`EXPANSION_CASE_EXP_START`,e[e.EXPANSION_CASE_EXP_END=24]=`EXPANSION_CASE_EXP_END`,e[e.EXPANSION_FORM_END=25]=`EXPANSION_FORM_END`,e[e.BLOCK_OPEN_START=26]=`BLOCK_OPEN_START`,e[e.BLOCK_OPEN_END=27]=`BLOCK_OPEN_END`,e[e.BLOCK_CLOSE=28]=`BLOCK_CLOSE`,e[e.BLOCK_PARAMETER=29]=`BLOCK_PARAMETER`,e[e.INCOMPLETE_BLOCK_OPEN=30]=`INCOMPLETE_BLOCK_OPEN`,e[e.LET_START=31]=`LET_START`,e[e.LET_VALUE=32]=`LET_VALUE`,e[e.LET_END=33]=`LET_END`,e[e.INCOMPLETE_LET=34]=`INCOMPLETE_LET`,e[e.COMPONENT_OPEN_START=35]=`COMPONENT_OPEN_START`,e[e.COMPONENT_OPEN_END=36]=`COMPONENT_OPEN_END`,e[e.COMPONENT_OPEN_END_VOID=37]=`COMPONENT_OPEN_END_VOID`,e[e.COMPONENT_CLOSE=38]=`COMPONENT_CLOSE`,e[e.INCOMPLETE_COMPONENT_OPEN=39]=`INCOMPLETE_COMPONENT_OPEN`,e[e.DIRECTIVE_NAME=40]=`DIRECTIVE_NAME`,e[e.DIRECTIVE_OPEN=41]=`DIRECTIVE_OPEN`,e[e.DIRECTIVE_CLOSE=42]=`DIRECTIVE_CLOSE`,e[e.PROCESSING_INSTRUCTION=43]=`PROCESSING_INSTRUCTION`,e[e.EOF=44]=`EOF`,e})({});function oa(e){return e>=9&&e<=32||e==160}function sa(e){return 48<=e&&e<=57}function ca(e){return e>=97&&e<=122||e>=65&&e<=90}function la(e){return e>=97&&e<=102||e>=65&&e<=70||sa(e)}function ua(e){return e===10||e===13}function da(e){return 48<=e&&e<=55}function fa(e){return e===39||e===34||e===96}var pa={AElig:`Æ`,AMP:`&`,amp:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,af:``,Aring:`Å`,angst:`Å`,Ascr:`𝒜`,Assign:`≔`,colone:`≔`,coloneq:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,setminus:`∖`,setmn:`∖`,smallsetminus:`∖`,ssetmn:`∖`,Barv:`⫧`,Barwed:`⌆`,doublebarwedge:`⌆`,Bcy:`Б`,Because:`∵`,becaus:`∵`,because:`∵`,Bernoullis:`ℬ`,Bscr:`ℬ`,bernou:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,breve:`˘`,Bumpeq:`≎`,HumpDownHump:`≎`,bump:`≎`,CHcy:`Ч`,COPY:`©`,copy:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,DD:`ⅅ`,Cayleys:`ℭ`,Cfr:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,cedil:`¸`,CenterDot:`·`,centerdot:`·`,middot:`·`,Chi:`Χ`,CircleDot:`⊙`,odot:`⊙`,CircleMinus:`⊖`,ominus:`⊖`,CirclePlus:`⊕`,oplus:`⊕`,CircleTimes:`⊗`,otimes:`⊗`,ClockwiseContourIntegral:`∲`,cwconint:`∲`,CloseCurlyDoubleQuote:`”`,rdquo:`”`,rdquor:`”`,CloseCurlyQuote:`’`,rsquo:`’`,rsquor:`’`,Colon:`∷`,Proportion:`∷`,Colone:`⩴`,Congruent:`≡`,equiv:`≡`,Conint:`∯`,DoubleContourIntegral:`∯`,ContourIntegral:`∮`,conint:`∮`,oint:`∮`,Copf:`ℂ`,complexes:`ℂ`,Coproduct:`∐`,coprod:`∐`,CounterClockwiseContourIntegral:`∳`,awconint:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,asympeq:`≍`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,ddagger:`‡`,Darr:`↡`,Dashv:`⫤`,DoubleLeftTee:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,nabla:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,acute:`´`,DiacriticalDot:`˙`,dot:`˙`,DiacriticalDoubleAcute:`˝`,dblac:`˝`,DiacriticalGrave:"`",grave:"`",DiacriticalTilde:`˜`,tilde:`˜`,Diamond:`⋄`,diam:`⋄`,diamond:`⋄`,DifferentialD:`ⅆ`,dd:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DoubleDot:`¨`,die:`¨`,uml:`¨`,DotDot:`⃜`,DotEqual:`≐`,doteq:`≐`,esdot:`≐`,DoubleDownArrow:`⇓`,Downarrow:`⇓`,dArr:`⇓`,DoubleLeftArrow:`⇐`,Leftarrow:`⇐`,lArr:`⇐`,DoubleLeftRightArrow:`⇔`,Leftrightarrow:`⇔`,hArr:`⇔`,iff:`⇔`,DoubleLongLeftArrow:`⟸`,Longleftarrow:`⟸`,xlArr:`⟸`,DoubleLongLeftRightArrow:`⟺`,Longleftrightarrow:`⟺`,xhArr:`⟺`,DoubleLongRightArrow:`⟹`,Longrightarrow:`⟹`,xrArr:`⟹`,DoubleRightArrow:`⇒`,Implies:`⇒`,Rightarrow:`⇒`,rArr:`⇒`,DoubleRightTee:`⊨`,vDash:`⊨`,DoubleUpArrow:`⇑`,Uparrow:`⇑`,uArr:`⇑`,DoubleUpDownArrow:`⇕`,Updownarrow:`⇕`,vArr:`⇕`,DoubleVerticalBar:`∥`,par:`∥`,parallel:`∥`,shortparallel:`∥`,spar:`∥`,DownArrow:`↓`,ShortDownArrow:`↓`,darr:`↓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,duarr:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,leftharpoondown:`↽`,lhard:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,rhard:`⇁`,rightharpoondown:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,top:`⊤`,DownTeeArrow:`↧`,mapstodown:`↧`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,in:`∈`,isin:`∈`,isinv:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,eqsim:`≂`,esim:`≂`,Equilibrium:`⇌`,rightleftharpoons:`⇌`,rlhar:`⇌`,Escr:`ℰ`,expectation:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,exist:`∃`,ExponentialE:`ⅇ`,ee:`ⅇ`,exponentiale:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,blacksquare:`▪`,squarf:`▪`,squf:`▪`,Fopf:`𝔽`,ForAll:`∀`,forall:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,gt:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,ggg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,ge:`≥`,geq:`≥`,GreaterEqualLess:`⋛`,gel:`⋛`,gtreqless:`⋛`,GreaterFullEqual:`≧`,gE:`≧`,geqq:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,gl:`≷`,gtrless:`≷`,GreaterSlantEqual:`⩾`,geqslant:`⩾`,ges:`⩾`,GreaterTilde:`≳`,gsim:`≳`,gtrsim:`≳`,Gscr:`𝒢`,Gt:`≫`,NestedGreaterGreater:`≫`,gg:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,caron:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,Poincareplane:`ℌ`,HilbertSpace:`ℋ`,Hscr:`ℋ`,hamilt:`ℋ`,Hopf:`ℍ`,quaternions:`ℍ`,HorizontalLine:`─`,boxh:`─`,Hstrok:`Ħ`,HumpEqual:`≏`,bumpe:`≏`,bumpeq:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Im:`ℑ`,image:`ℑ`,imagpart:`ℑ`,Igrave:`Ì`,Imacr:`Ī`,ImaginaryI:`ⅈ`,ii:`ⅈ`,Int:`∬`,Integral:`∫`,int:`∫`,Intersection:`⋂`,bigcap:`⋂`,xcap:`⋂`,InvisibleComma:``,ic:``,InvisibleTimes:``,it:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,imagline:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,lt:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Lscr:`ℒ`,lagran:`ℒ`,Larr:`↞`,twoheadleftarrow:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,lang:`⟨`,langle:`⟨`,LeftArrow:`←`,ShortLeftArrow:`←`,larr:`←`,leftarrow:`←`,slarr:`←`,LeftArrowBar:`⇤`,larrb:`⇤`,LeftArrowRightArrow:`⇆`,leftrightarrows:`⇆`,lrarr:`⇆`,LeftCeiling:`⌈`,lceil:`⌈`,LeftDoubleBracket:`⟦`,lobrk:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,dharl:`⇃`,downharpoonleft:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,lfloor:`⌊`,LeftRightArrow:`↔`,harr:`↔`,leftrightarrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,dashv:`⊣`,LeftTeeArrow:`↤`,mapstoleft:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,vartriangleleft:`⊲`,vltri:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,ltrie:`⊴`,trianglelefteq:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,uharl:`↿`,upharpoonleft:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,leftharpoonup:`↼`,lharu:`↼`,LeftVectorBar:`⥒`,LessEqualGreater:`⋚`,leg:`⋚`,lesseqgtr:`⋚`,LessFullEqual:`≦`,lE:`≦`,leqq:`≦`,LessGreater:`≶`,lessgtr:`≶`,lg:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,leqslant:`⩽`,les:`⩽`,LessTilde:`≲`,lesssim:`≲`,lsim:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,lAarr:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,longleftarrow:`⟵`,xlarr:`⟵`,LongLeftRightArrow:`⟷`,longleftrightarrow:`⟷`,xharr:`⟷`,LongRightArrow:`⟶`,longrightarrow:`⟶`,xrarr:`⟶`,Lopf:`𝕃`,LowerLeftArrow:`↙`,swarr:`↙`,swarrow:`↙`,LowerRightArrow:`↘`,searr:`↘`,searrow:`↘`,Lsh:`↰`,lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,NestedLessLess:`≪`,ll:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mscr:`ℳ`,phmmat:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,mnplus:`∓`,mp:`∓`,Mopf:`𝕄`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,ZeroWidthSpace:``,NewLine:`
|
|
21
|
+
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,nbsp:`\xA0`,Nopf:`ℕ`,naturals:`ℕ`,Not:`⫬`,NotCongruent:`≢`,nequiv:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,npar:`∦`,nparallel:`∦`,nshortparallel:`∦`,nspar:`∦`,NotElement:`∉`,notin:`∉`,notinva:`∉`,NotEqual:`≠`,ne:`≠`,NotEqualTilde:`≂̸`,nesim:`≂̸`,NotExists:`∄`,nexist:`∄`,nexists:`∄`,NotGreater:`≯`,ngt:`≯`,ngtr:`≯`,NotGreaterEqual:`≱`,nge:`≱`,ngeq:`≱`,NotGreaterFullEqual:`≧̸`,ngE:`≧̸`,ngeqq:`≧̸`,NotGreaterGreater:`≫̸`,nGtv:`≫̸`,NotGreaterLess:`≹`,ntgl:`≹`,NotGreaterSlantEqual:`⩾̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,NotGreaterTilde:`≵`,ngsim:`≵`,NotHumpDownHump:`≎̸`,nbump:`≎̸`,NotHumpEqual:`≏̸`,nbumpe:`≏̸`,NotLeftTriangle:`⋪`,nltri:`⋪`,ntriangleleft:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,nltrie:`⋬`,ntrianglelefteq:`⋬`,NotLess:`≮`,nless:`≮`,nlt:`≮`,NotLessEqual:`≰`,nle:`≰`,nleq:`≰`,NotLessGreater:`≸`,ntlg:`≸`,NotLessLess:`≪̸`,nLtv:`≪̸`,NotLessSlantEqual:`⩽̸`,nleqslant:`⩽̸`,nles:`⩽̸`,NotLessTilde:`≴`,nlsim:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,npr:`⊀`,nprec:`⊀`,NotPrecedesEqual:`⪯̸`,npre:`⪯̸`,npreceq:`⪯̸`,NotPrecedesSlantEqual:`⋠`,nprcue:`⋠`,NotReverseElement:`∌`,notni:`∌`,notniva:`∌`,NotRightTriangle:`⋫`,nrtri:`⋫`,ntriangleright:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,nrtrie:`⋭`,ntrianglerighteq:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,nsqsube:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,nsqsupe:`⋣`,NotSubset:`⊂⃒`,nsubset:`⊂⃒`,vnsub:`⊂⃒`,NotSubsetEqual:`⊈`,nsube:`⊈`,nsubseteq:`⊈`,NotSucceeds:`⊁`,nsc:`⊁`,nsucc:`⊁`,NotSucceedsEqual:`⪰̸`,nsce:`⪰̸`,nsucceq:`⪰̸`,NotSucceedsSlantEqual:`⋡`,nsccue:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,nsupset:`⊃⃒`,vnsup:`⊃⃒`,NotSupersetEqual:`⊉`,nsupe:`⊉`,nsupseteq:`⊉`,NotTilde:`≁`,nsim:`≁`,NotTildeEqual:`≄`,nsime:`≄`,nsimeq:`≄`,NotTildeFullEqual:`≇`,ncong:`≇`,NotTildeTilde:`≉`,nap:`≉`,napprox:`≉`,NotVerticalBar:`∤`,nmid:`∤`,nshortmid:`∤`,nsmid:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,ohm:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,ldquo:`“`,OpenCurlyQuote:`‘`,lsquo:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,oline:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,tbrk:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,part:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,plusmn:`±`,pm:`±`,Popf:`ℙ`,primes:`ℙ`,Pr:`⪻`,Precedes:`≺`,pr:`≺`,prec:`≺`,PrecedesEqual:`⪯`,pre:`⪯`,preceq:`⪯`,PrecedesSlantEqual:`≼`,prcue:`≼`,preccurlyeq:`≼`,PrecedesTilde:`≾`,precsim:`≾`,prsim:`≾`,Prime:`″`,Product:`∏`,prod:`∏`,Proportional:`∝`,prop:`∝`,propto:`∝`,varpropto:`∝`,vprop:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,quot:`"`,Qfr:`𝔔`,Qopf:`ℚ`,rationals:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,drbkarow:`⤐`,REG:`®`,circledR:`®`,reg:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,twoheadrightarrow:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,Rfr:`ℜ`,real:`ℜ`,realpart:`ℜ`,ReverseElement:`∋`,SuchThat:`∋`,ni:`∋`,niv:`∋`,ReverseEquilibrium:`⇋`,leftrightharpoons:`⇋`,lrhar:`⇋`,ReverseUpEquilibrium:`⥯`,duhar:`⥯`,Rho:`Ρ`,RightAngleBracket:`⟩`,rang:`⟩`,rangle:`⟩`,RightArrow:`→`,ShortRightArrow:`→`,rarr:`→`,rightarrow:`→`,srarr:`→`,RightArrowBar:`⇥`,rarrb:`⇥`,RightArrowLeftArrow:`⇄`,rightleftarrows:`⇄`,rlarr:`⇄`,RightCeiling:`⌉`,rceil:`⌉`,RightDoubleBracket:`⟧`,robrk:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,dharr:`⇂`,downharpoonright:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rfloor:`⌋`,RightTee:`⊢`,vdash:`⊢`,RightTeeArrow:`↦`,map:`↦`,mapsto:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,vartriangleright:`⊳`,vrtri:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,rtrie:`⊵`,trianglerighteq:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,uharr:`↾`,upharpoonright:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,rharu:`⇀`,rightharpoonup:`⇀`,RightVectorBar:`⥓`,Ropf:`ℝ`,reals:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,rAarr:`⇛`,Rscr:`ℛ`,realine:`ℛ`,Rsh:`↱`,rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortUpArrow:`↑`,UpArrow:`↑`,uarr:`↑`,uparrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,compfn:`∘`,Sopf:`𝕊`,Sqrt:`√`,radic:`√`,Square:`□`,squ:`□`,square:`□`,SquareIntersection:`⊓`,sqcap:`⊓`,SquareSubset:`⊏`,sqsub:`⊏`,sqsubset:`⊏`,SquareSubsetEqual:`⊑`,sqsube:`⊑`,sqsubseteq:`⊑`,SquareSuperset:`⊐`,sqsup:`⊐`,sqsupset:`⊐`,SquareSupersetEqual:`⊒`,sqsupe:`⊒`,sqsupseteq:`⊒`,SquareUnion:`⊔`,sqcup:`⊔`,Sscr:`𝒮`,Star:`⋆`,sstarf:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,sube:`⊆`,subseteq:`⊆`,Succeeds:`≻`,sc:`≻`,succ:`≻`,SucceedsEqual:`⪰`,sce:`⪰`,succeq:`⪰`,SucceedsSlantEqual:`≽`,sccue:`≽`,succcurlyeq:`≽`,SucceedsTilde:`≿`,scsim:`≿`,succsim:`≿`,Sum:`∑`,sum:`∑`,Sup:`⋑`,Supset:`⋑`,Superset:`⊃`,sup:`⊃`,supset:`⊃`,SupersetEqual:`⊇`,supe:`⊇`,supseteq:`⊇`,THORN:`Þ`,TRADE:`™`,trade:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,there4:`∴`,therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,thinsp:` `,Tilde:`∼`,sim:`∼`,thicksim:`∼`,thksim:`∼`,TildeEqual:`≃`,sime:`≃`,simeq:`≃`,TildeFullEqual:`≅`,cong:`≅`,TildeTilde:`≈`,ap:`≈`,approx:`≈`,asymp:`≈`,thickapprox:`≈`,thkap:`≈`,Topf:`𝕋`,TripleDot:`⃛`,tdot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,lowbar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,bbrk:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,bigcup:`⋃`,xcup:`⋃`,UnionPlus:`⊎`,uplus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,udarr:`⇅`,UpDownArrow:`↕`,updownarrow:`↕`,varr:`↕`,UpEquilibrium:`⥮`,udhar:`⥮`,UpTee:`⊥`,bot:`⊥`,bottom:`⊥`,perp:`⊥`,UpTeeArrow:`↥`,mapstoup:`↥`,UpperLeftArrow:`↖`,nwarr:`↖`,nwarrow:`↖`,UpperRightArrow:`↗`,nearr:`↗`,nearrow:`↗`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,bigvee:`⋁`,xvee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,mid:`∣`,shortmid:`∣`,smid:`∣`,VerticalLine:`|`,verbar:`|`,vert:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,VeryThinSpace:` `,hairsp:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,bigwedge:`⋀`,xwedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,Zeta:`Ζ`,Zfr:`ℨ`,zeetrf:`ℨ`,Zopf:`ℤ`,integers:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,mstpos:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acy:`а`,aelig:`æ`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,and:`∧`,wedge:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,angle:`∠`,ange:`⦤`,angmsd:`∡`,measuredangle:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,apE:`⩰`,apacir:`⩯`,ape:`≊`,approxeq:`≊`,apid:`≋`,apos:`'`,aring:`å`,ascr:`𝒶`,ast:`*`,midast:`*`,atilde:`ã`,auml:`ä`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,bcong:`≌`,backepsilon:`϶`,bepsi:`϶`,backprime:`‵`,bprime:`‵`,backsim:`∽`,bsim:`∽`,backsimeq:`⋍`,bsime:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrktbrk:`⎶`,bcy:`б`,bdquo:`„`,ldquor:`„`,bemptyv:`⦰`,beta:`β`,beth:`ℶ`,between:`≬`,twixt:`≬`,bfr:`𝔟`,bigcirc:`◯`,xcirc:`◯`,bigodot:`⨀`,xodot:`⨀`,bigoplus:`⨁`,xoplus:`⨁`,bigotimes:`⨂`,xotime:`⨂`,bigsqcup:`⨆`,xsqcup:`⨆`,bigstar:`★`,starf:`★`,bigtriangledown:`▽`,xdtri:`▽`,bigtriangleup:`△`,xutri:`△`,biguplus:`⨄`,xuplus:`⨄`,bkarow:`⤍`,rbarr:`⤍`,blacklozenge:`⧫`,lozf:`⧫`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,minusb:`⊟`,boxplus:`⊞`,plusb:`⊞`,boxtimes:`⊠`,timesb:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bumpE:`⪮`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cemptyv:`⦲`,cent:`¢`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,cire:`≗`,circlearrowleft:`↺`,olarr:`↺`,circlearrowright:`↻`,orarr:`↻`,circledS:`Ⓢ`,oS:`Ⓢ`,circledast:`⊛`,oast:`⊛`,circledcirc:`⊚`,ocir:`⊚`,circleddash:`⊝`,odash:`⊝`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,comma:`,`,commat:`@`,comp:`∁`,complement:`∁`,congdot:`⩭`,copf:`𝕔`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,curlyeqprec:`⋞`,cuesc:`⋟`,curlyeqsucc:`⋟`,cularr:`↶`,curvearrowleft:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curvearrowright:`↷`,curarrm:`⤼`,curlyvee:`⋎`,cuvee:`⋎`,curlywedge:`⋏`,cuwed:`⋏`,curren:`¤`,cwint:`∱`,cylcty:`⌭`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,dash:`‐`,hyphen:`‐`,dbkarow:`⤏`,rBarr:`⤏`,dcaron:`ď`,dcy:`д`,ddarr:`⇊`,downdownarrows:`⇊`,ddotseq:`⩷`,eDDot:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,diamondsuit:`♦`,diams:`♦`,digamma:`ϝ`,gammad:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,llcorner:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,doteqdot:`≑`,eDot:`≑`,dotminus:`∸`,minusd:`∸`,dotplus:`∔`,plusdo:`∔`,dotsquare:`⊡`,sdotb:`⊡`,drcorn:`⌟`,lrcorner:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,triangledown:`▿`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,eqcirc:`≖`,ecirc:`ê`,ecolon:`≕`,eqcolon:`≕`,ecy:`э`,edot:`ė`,efDot:`≒`,fallingdotseq:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,eqslantgtr:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,eqslantless:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,straightepsilon:`ϵ`,varepsilon:`ϵ`,equals:`=`,equest:`≟`,questeq:`≟`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,risingdotseq:`≓`,erarr:`⥱`,escr:`ℯ`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,fork:`⋔`,pitchfork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,sfrown:`⌢`,fscr:`𝒻`,gEl:`⪌`,gtreqqless:`⪌`,gacute:`ǵ`,gamma:`γ`,gap:`⪆`,gtrapprox:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gimel:`ℷ`,gjcy:`ѓ`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gneqq:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gnsim:`⋧`,gopf:`𝕘`,gscr:`ℊ`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtrdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrarr:`⥸`,gvertneqq:`≩︀`,gvnE:`≩︀`,hardcy:`ъ`,harrcir:`⥈`,harrw:`↭`,leftrightsquigarrow:`↭`,hbar:`ℏ`,hslash:`ℏ`,planck:`ℏ`,plankv:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,mldr:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,searhk:`⤥`,hkswarow:`⤦`,swarhk:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,larrhk:`↩`,hookrightarrow:`↪`,rarrhk:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hstrok:`ħ`,hybull:`⁃`,iacute:`í`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,ifr:`𝔦`,igrave:`ì`,iiiint:`⨌`,qint:`⨌`,iiint:`∭`,tint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,imath:`ı`,inodot:`ı`,imof:`⊷`,imped:`Ƶ`,incare:`℅`,infin:`∞`,infintie:`⧝`,intcal:`⊺`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iquest:`¿`,iscr:`𝒾`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAtail:`⤛`,lBarr:`⤎`,lEg:`⪋`,lesseqqgtr:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lambda:`λ`,langd:`⦑`,lap:`⪅`,lessapprox:`⪅`,laquo:`«`,larrbfs:`⤟`,larrfs:`⤝`,larrlp:`↫`,looparrowleft:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,leftarrowtail:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lcub:`{`,lbrack:`[`,lsqb:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lcy:`л`,ldca:`⤶`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leq:`≤`,leftleftarrows:`⇇`,llarr:`⇇`,leftthreetimes:`⋋`,lthree:`⋋`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessdot:`⋖`,ltdot:`⋖`,lfisht:`⥼`,lfr:`𝔩`,lgE:`⪑`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lneqq:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,longmapsto:`⟼`,xmap:`⟼`,looparrowright:`↬`,rarrlp:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,loz:`◊`,lozenge:`◊`,lpar:`(`,lparlt:`⦓`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsime:`⪍`,lsimg:`⪏`,lsquor:`‚`,sbquo:`‚`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,triangleleft:`◃`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,strns:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midcir:`⫰`,minus:`−`,minusdu:`⨪`,mlcp:`⫛`,models:`⊧`,mopf:`𝕞`,mscr:`𝓂`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nLeftarrow:`⇍`,nlArr:`⇍`,nLeftrightarrow:`⇎`,nhArr:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nRightarrow:`⇏`,nrArr:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nacute:`ń`,nang:`∠⃒`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,natur:`♮`,natural:`♮`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,neArr:`⇗`,nearhk:`⤤`,nedot:`≐̸`,nesear:`⤨`,toea:`⤨`,nfr:`𝔫`,nharr:`↮`,nleftrightarrow:`↮`,nhpar:`⫲`,nis:`⋼`,nisd:`⋺`,njcy:`њ`,nlE:`≦̸`,nleqq:`≦̸`,nlarr:`↚`,nleftarrow:`↚`,nldr:`‥`,nopf:`𝕟`,not:`¬`,notinE:`⋹̸`,notindot:`⋵̸`,notinvb:`⋷`,notinvc:`⋶`,notnivb:`⋾`,notnivc:`⋽`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,nrarr:`↛`,nrightarrow:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nscr:`𝓃`,nsub:`⊄`,nsubE:`⫅̸`,nsubseteqq:`⫅̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupseteqq:`⫆̸`,ntilde:`ñ`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwnear:`⤧`,oacute:`ó`,ocirc:`ô`,ocy:`о`,odblac:`ő`,odiv:`⨸`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,olcir:`⦾`,olcross:`⦻`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,or:`∨`,vee:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,oscr:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,para:`¶`,parsim:`⫳`,parsl:`⫽`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,straightphi:`ϕ`,varphi:`ϕ`,phone:`☎`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,planckh:`ℎ`,plus:`+`,plusacir:`⨣`,pluscir:`⨢`,plusdu:`⨥`,pluse:`⩲`,plussim:`⨦`,plustwo:`⨧`,pointint:`⨕`,popf:`𝕡`,pound:`£`,prE:`⪳`,prap:`⪷`,precapprox:`⪷`,precnapprox:`⪹`,prnap:`⪹`,precneqq:`⪵`,prnE:`⪵`,precnsim:`⋨`,prnsim:`⋨`,prime:`′`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quatint:`⨖`,quest:`?`,rAtail:`⤜`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,raemptyv:`⦳`,rangd:`⦒`,range:`⦥`,raquo:`»`,rarrap:`⥵`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rightarrowtail:`↣`,rarrw:`↝`,rightsquigarrow:`↝`,ratail:`⤚`,ratio:`∶`,rbbrk:`❳`,rbrace:`}`,rcub:`}`,rbrack:`]`,rsqb:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdsh:`↳`,rect:`▭`,rfisht:`⥽`,rfr:`𝔯`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,rightrightarrows:`⇉`,rrarr:`⇉`,rightthreetimes:`⋌`,rthree:`⋌`,ring:`˚`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rsaquo:`›`,rscr:`𝓇`,rtimes:`⋊`,rtri:`▹`,triangleright:`▹`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,scE:`⪴`,scap:`⪸`,succapprox:`⪸`,scaron:`š`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,succneqq:`⪶`,scnap:`⪺`,succnapprox:`⪺`,scnsim:`⋩`,succnsim:`⋩`,scpolint:`⨓`,scy:`с`,sdot:`⋅`,sdote:`⩦`,seArr:`⇘`,sect:`§`,semi:`;`,seswar:`⤩`,tosa:`⤩`,sext:`✶`,sfr:`𝔰`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,simdot:`⩪`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,smashp:`⨳`,smeparsl:`⧤`,smile:`⌣`,ssmile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,sqcaps:`⊓︀`,sqcups:`⊔︀`,sscr:`𝓈`,star:`☆`,sub:`⊂`,subset:`⊂`,subE:`⫅`,subseteqq:`⫅`,subdot:`⪽`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subsetneqq:`⫋`,subne:`⊊`,subsetneq:`⊊`,subplus:`⪿`,subrarr:`⥹`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,supE:`⫆`,supseteqq:`⫆`,supdot:`⪾`,supdsub:`⫘`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supsetneqq:`⫌`,supne:`⊋`,supsetneq:`⊋`,supplus:`⫀`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,telrec:`⌕`,tfr:`𝔱`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,vartheta:`ϑ`,thorn:`þ`,times:`×`,timesbar:`⨱`,timesd:`⨰`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tprime:`‴`,triangle:`▵`,utri:`▵`,triangleq:`≜`,trie:`≜`,tridot:`◬`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,uHar:`⥣`,uacute:`ú`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udblac:`ű`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uogon:`ų`,uopf:`𝕦`,upsi:`υ`,upsilon:`υ`,upuparrows:`⇈`,uuarr:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,uuml:`ü`,uwangle:`⦧`,vBar:`⫨`,vBarv:`⫩`,vangrt:`⦜`,varsubsetneq:`⊊︀`,vsubne:`⊊︀`,varsubsetneqq:`⫋︀`,vsubnE:`⫋︀`,varsupsetneq:`⊋︀`,vsupne:`⊋︀`,varsupsetneqq:`⫌︀`,vsupnE:`⫌︀`,vcy:`в`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,vfr:`𝔳`,vopf:`𝕧`,vscr:`𝓋`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedgeq:`≙`,weierp:`℘`,wp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wscr:`𝓌`,xfr:`𝔵`,xi:`ξ`,xnis:`⋻`,xopf:`𝕩`,xscr:`𝓍`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``};pa.ngsp=``;var ma=class{tokens;errors;nonNormalizedIcuExpressions;constructor(e,t,n){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=n}};function ha(e,t,n,r={}){let i=new Ca(new Wi(e,t),n,r);return i.tokenize(),new ma(Fa(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var ga=/\r\n?/g;function Y(e){return`Unexpected character "${e===0?`EOF`:String.fromCharCode(e)}"`}function _a(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function va(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var ya=[`@if`,`@else`,`@for`,`@switch`,`@case`,`@default`,`@empty`,`@defer`,`@placeholder`,`@loading`,`@boundary`,`@error`,`@content`],ba={start:`{{`,end:`}}`},xa=/^default[^\S\r\n]+never/,Sa=/^else[^\S\r\n]+if/,Ca=class{_getTagContentType;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_allowStartTagComments;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,n){this._getTagContentType=t,this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1,this._allowStartTagComments=n.allowStartTagComments??!0;let r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new La(e,r):new Ia(e,r),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0,this._selectorlessEnabled=n.selectorlessEnabled??!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(ga,`
|
|
22
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60)){if(this._attemptCharCode(33))this._attemptStr(`[CDATA[`)?this._consumeCdata(e):this._attemptStr(`--`)?this._consumeComment(e):this._attemptStrCaseInsensitive(`doctype`)?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(44),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();this._attemptCharCodeUntilFn(t=>oa(t)?!e:!Aa(t)||(e=!0,!1));let n=this._cursor.getChars(t).trim();return Sa.test(n)?n=`else if`:xa.test(n)&&(n=`default never`),n}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(26,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(X),this._attemptCharCode(41))this._attemptCharCodeUntilFn(X);else{t.type=30;return}}t.parts[0]===`default never`&&this._attemptCharCode(59)?(this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([])):this._attemptCharCode(123)?(this._beginToken(27),this._endToken([])):this._isBlockStart()&&(t.parts[0]===`case`||t.parts[0]==="default")?(this._beginToken(27),this._endToken([]),this._beginToken(28),this._endToken([])):t.type=30}_consumeBlockEnd(e){this._beginToken(28,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ja);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(29);let e=this._cursor.clone(),t=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let e=this._cursor.peek();if(e===92)this._cursor.advance();else if(e===t)t=null;else if(t===null&&fa(e))t=e;else if(e===40&&t===null)n++;else if(e===41&&t===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ja)}}_consumeLetDeclaration(e){if(this._requireStr(`@let`),this._beginToken(31,e),oa(this._cursor.peek()))this._attemptCharCodeUntilFn(X);else{let t=this._endToken([this._cursor.getChars(e)]);t.type=34;return}let t=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(X),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn(e=>X(e)&&!ua(e)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(33),this._cursor.advance(),this._endToken([])):(t.type=34,t.sourceSpan=this._cursor.getSpan(e))):t.type=34}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(e=>ca(e)||e===36||e===95||t&&sa(e)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();this._beginToken(32,e),this._attemptUntilIgnoreQuotes(e=>e===59),this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Da(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new W(this._cursor.getSpan(t),`Programming error - attempted to end a token when there was no start to the token`);if(this._currentTokenType===null)throw new W(this._cursor.getSpan(this._currentTokenStart),`Programming error - attempted to end a token which has no token type`);let n={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new W(t,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Ra&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof W)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return Oa(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_attemptUntilIgnoreQuotes(e){for(;this._cursor.peek()!==0;){let t=this._cursor.peek();if(e(t))break;fa(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(e=>e===92?(this._cursor.advance(),!1):e===t)),this._cursor.advance()}}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++){if(n.peek()!==e.charCodeAt(r))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&ya.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr(`@let`)}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ta),this._cursor.peek()!=59){this._cursor.advance();let n=e?`hexadecimal`:`decimal`;throw this._createError(va(n,this._cursor.getChars(t)),this._cursor.getSpan())}let r=this._cursor.getChars(n);this._cursor.advance();try{let n=parseInt(r,e?16:10);this._endToken([String.fromCodePoint(n),this._cursor.getChars(t)])}catch{throw this._createError(_a(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ea),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=n,this._endToken([`&`]);else{let e=this._cursor.getChars(n);this._cursor.advance();let r=O(pa,e)&&pa[e];if(!r)throw this._createError(_a(e),this._cursor.getSpan(t));this._endToken([r,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let n=[];for(;;){let r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(``))]),n.length=0,this._consumeEntity(6),this._beginToken(6)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(``))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`-->`)),this._beginToken(11),this._requireStr(`-->`),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`]]>`)),this._beginToken(14),this._requireStr(`]]>`),this._endToken([])}_consumeDocType(e){this._beginToken(19,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(20),this._cursor.advance(),this._endToken([])}_consumeProcessingInstruction(e){this._beginToken(43,e);let t=this._cursor.clone();this._attemptUntilIgnoreQuotes(e=>e===63||e===62);let n=this._cursor.peek(),r=this._cursor.getChars(t);this._cursor.advance(),n===63&&this._requireCharCode(62),this._endToken([r])}_consumePrefixAndName(e){let t=this._cursor.clone(),n=``;for(;this._cursor.peek()!==58&&!wa(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(n=this._cursor.getChars(t),this._cursor.advance(),r=this._cursor.clone()):r=t,this._requireCharCodeUntilFn(e,n===``?0:1);let i=this._cursor.getChars(r);return[n,i]}_consumeSingleLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(e=>ua(e)||e===0);let n=this._cursor.clone(),r=n.getChars(t);this._beginToken(12,e),this._endToken([r,`single`],n),this._attemptCharCodeUntilFn(X)}_consumeMultiLineComment(e){let t=this._cursor.clone();this._attemptCharCodeUntilFn(e=>{if(e===0)return!0;if(e===42){let e=this._cursor.clone();return e.advance(),e.peek()===47}return!1});let n=this._cursor.clone(),r=n.getChars(t),i=n;this._attemptStr(`*/`)&&(i=this._cursor.clone(),this._attemptCharCodeUntilFn(X)),this._beginToken(12,e),this._endToken([r,`multi`],i)}_consumeTagOpen(e){let t,n,r,i,a=[];try{if(this._selectorlessEnabled&&Ma(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[r,n,t]=i.parts,n&&(r+=`:${n}`),t&&(r+=`:${t}`),this._attemptCharCodeUntilFn(X);else{if(!ca(this._cursor.peek()))throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),n=i.parts[0],t=r=i.parts[1],this._attemptCharCodeUntilFn(X)}for(;;){if(this._allowStartTagComments){let e=this._cursor.clone();if(this._attemptStr(`//`)){this._consumeSingleLineComment(e);continue}if(this._attemptStr(`/*`)){this._consumeMultiLineComment(e);continue}}if(Pa(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let e=this._cursor.clone(),t=e.clone();t.advance(),Ma(t.peek())&&this._consumeDirective(e,t)}else{let e=this._consumeAttribute();a.push(e)}}i.type===35?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(t){if(t instanceof W){i?i.type=i.type===35?39:4:(this._beginToken(5,e),this._endToken([`<`]));return}throw t}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let o=this._getTagContentType(t,n,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(n,t),o===0?this._consumeRawTextWithTagClose(n,i,r,!1):o===1&&this._consumeRawTextWithTagClose(n,i,r,!0)}_consumeRawTextWithTagClose(e,t,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(X),!this._attemptStrCaseInsensitive(e&&t.type!==35?`${e}:${n}`:n))?!1:(this._attemptCharCodeUntilFn(X),this._attemptCharCode(62))),this._beginToken(t.type===35?38:3),this._requireCharCodeUntilFn(e=>e===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,n)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName(Z);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(35,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Na(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),n=``,r=``;return this._cursor.peek()===58&&(this._cursor.advance(),[n,r]=this._consumePrefixAndName(Z)),[t,n,r]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),n;return this._attemptCharCodeUntilFn(X),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(X),n=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(X),{prefix:e,name:t,value:n}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Y(e),this._cursor.getSpan());this._beginToken(15);let t;if(this._openDirectiveCount>0){let e=0;t=t=>{if(this._openDirectiveCount>0){if(t===40)e++;else if(t===41){if(e===0)return!0;e--}}return Z(t)}}else if(e===91){let e=0;t=t=>(t===91?e++:t===93&&e--,e<=0?Z(t):ua(t))}else t=Z;let n=this._consumePrefixAndName(t);return this._endToken(n),n}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let n=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(17,18,n,n),this._consumeQuote(t)}else{let t=()=>Z(this._cursor.peek());e=this._consumeWithInterpolation(17,18,t,t)}return e}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?37:36;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Ma(t.peek());)t.advance();if(Ma(t.peek())){this._beginToken(38,e);let t=this._consumeComponentName();this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken(t);return}}if(this._beginToken(3,e),this._attemptCharCodeUntilFn(X),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName(Z);this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(21),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(21),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(X),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(X)}_consumeExpansionCaseStart(){this._beginToken(22);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(X),this._beginToken(23),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.push(23)}_consumeExpansionCaseEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(25),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,n,r){this._beginToken(e);let i=[];for(;!n();){let n=this._cursor.clone();this._attemptStr(ba.start)?(this._endToken([this._processCarriageReturns(i.join(``))],n),i.length=0,this._consumeInterpolation(t,n,r),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(``))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(``));return this._endToken([a]),a}_consumeInterpolation(e,t,n){let r=[];this._beginToken(e,t),r.push(ba.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let e=this._cursor.clone();if(this._isTagStart()){this._cursor=e,r.push(this._getProcessedChars(i,e)),this._endToken(r);return}if(a===null){if(this._attemptStr(ba.end)){r.push(this._getProcessedChars(i,e)),r.push(ba.end),this._endToken(r);return}this._attemptStr(`//`)&&(o=!0)}let t=this._cursor.peek();this._cursor.advance(),t===92?this._cursor.advance():t===a?a=null:!o&&a===null&&fa(t)&&(a=t)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Na(this._cursor.peek());)this._cursor.advance();this._beginToken(40,e);let n=this._cursor.getChars(t);if(this._endToken([n]),this._attemptCharCodeUntilFn(X),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X);!Pa(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(X),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Y(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(42),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33||t===63)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===23}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(ba.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let n=yi(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,t){let n=yi(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function X(e){return!oa(e)||e===0}function Z(e){return oa(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function wa(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Ta(e){return e===59||e===0||!la(e)}function Ea(e){return e===59||e===0||!(ca(e)||sa(e))}function Da(e){return e!==125}function Oa(e,t){return ka(e)===ka(t)}function ka(e){return e>=97&&e<=122?e-97+65:e}function Aa(e){return ca(e)||sa(e)||e===95}function ja(e){return e!==59&&X(e)}function Ma(e){return e===95||e>=65&&e<=90}function Na(e){return ca(e)||sa(e)||e===95}function Pa(e){return e===47||e===62||e===60||e===0}function Fa(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];n&&n.type===5&&i.type===5||n&&n.type===17&&i.type===17?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}var Ia=class e{state;file;input;end;constructor(t,n){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!n)throw Error(`Programming error: the range argument must be provided with a file argument.`);this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e||=this;let n=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e);return new U(r,this.locationFromCursor(this),n===e?r:this.locationFromCursor(n))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Ra(`Unexpected character "EOF"`,this);let t=this.charAt(e.offset);t===10?(e.line++,e.column=0):ua(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Ui(e.file,e.state.offset,e.state.line,e.state.column)}},La=class e extends Ia{internalState;constructor(t,n){t instanceof e?(super(t),this.internalState={...t.internalState}):(super(t,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),n=``;for(;t.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92){if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117){if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let t=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(t,n)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}}else if(e()===120){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(da(e())){let t=``,n=0,r=this.clone();for(;da(e())&&n<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else ua(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}}decodeHexDigits(e,t){let n=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new Ra(`Invalid hexadecimal escape sequence`,e);return r}},Ra=class extends Error{msg;cursor;constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Q=class e extends W{elementName;static create(t,n,r){return new e(t,n,r)}constructor(e,t,n){super(t,n),this.elementName=e}},za=class{rootNodes;errors;constructor(e,t){this.rootNodes=e,this.errors=t}},Ba=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,t,n,r=!1,i){let a=e=>(t,...n)=>e(t.toLowerCase(),...n),o=r?this.getTagDefinition:a(this.getTagDefinition),s=e=>o(e).getContentType(),c=r?i:a(i),l=ha(e,t,i?(e,t,n,r)=>{let i=c(e,t,n,r);return i===void 0?s(e):i}:s,n),u=n&&n.canSelfClose||!1,d=n&&n.allowHtmComponentClosingTags||!1,f=new Va(l.tokens,o,u,d,r);return f.build(),new za(f.rootNodes,[...l.errors,...f.errors])}},Va=class e{tokens;tagDefinitionResolver;canSelfClose;allowHtmComponentClosingTags;isTagNameCaseSensitive;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,t,n,r,i){this.tokens=e,this.tagDefinitionResolver=t,this.canSelfClose=n,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=i,this._advance()}build(){for(;this._peek.type!==44;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===13?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===21?this._consumeExpansion(this._advance()):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===31?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===19?this._consumeDocType(this._advance()):this._peek.type===34?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===35||this._peek.type===39?this._consumeComponentStartTag(this._advance()):this._peek.type===38?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof q&&this.errors.push(Q.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),n=this._getText(t),r=this._advanceIf(14);this._addToParent(new qi(n,new U(e.sourceSpan.start,(r||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(7),n=this._advanceIf(11),r=t==null?null:t.parts[0].trim(),i=n==null?e.sourceSpan:new U(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Qi(r,i))}_consumeDocType(e){let t=this._advanceIf(7),n=this._advanceIf(20),r=t==null?null:t.parts[0].trim(),i=new U(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new $i(r,i))}_consumeExpansion(e){let t=this._advance(),n=this._advance(),r=[];for(;this._peek.type===22;){let e=this._parseExpansionCase();if(!e)return;r.push(e)}if(this._peek.type!==25){this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '}'.`));return}let i=new U(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Ji(t.parts[0],n.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==23)return this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '{'.`)),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let i=this._advance();r.push({type:44,parts:[],sourceSpan:i.sourceSpan});let a=new e(r,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(a.build(),a.errors.length>0)return this.errors=this.errors.concat(a.errors),null;let o=new U(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),s=new U(n.sourceSpan.start,i.sourceSpan.end,n.sourceSpan.fullStart);return new Yi(t.parts[0],a.rootNodes,o,t.sourceSpan,s)}_collectExpansionExpTokens(e){let t=[],n=[23];for(;;){if((this._peek.type===21||this._peek.type===23)&&n.push(this._peek.type),this._peek.type===24){if(Ha(n,23)){if(n.pop(),n.length===0)return t}else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null}if(this._peek.type===25){if(Ha(n,21))n.pop();else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null}if(this._peek.type===44)return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&t[0]==`
|
|
23
|
+
`){var n;let e=this._getClosestElementLikeParent();e!=null&&e.children.length==0&&(n=this._getTagDefinition(e))!=null&&n.ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],n=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
|
|
24
|
+
`){var i;let n=this._getContainer();n!=null&&n.children.length===0&&(i=this._getTagDefinition(n))!=null&&i.ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join(``).replace(/&([^;]+);/g,Ua):e.type===9?r+=e.parts[0]:r+=e.parts.join(``);if(r.length>0){let i=e.sourceSpan;this._addToParent(new Ki(r,new U(n.start,i.end,n.fullStart,n.details),t))}}_closeVoidElement(){var e;let t=this._getContainer();t!==null&&(e=this._getTagDefinition(t))!=null&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var t;let n=[],r=[],i=[];this._consumeAttributesAndDirectives(n,r,i);let a=this._getElementFullName(e,this._getClosestElementLikeParent()),o=this._getTagDefinition(a),s=!1;if(this._peek.type===2){this._advance(),s=!0;let t=this._getTagDefinition(a);this.canSelfClose||t?.canSelfClose||vi(a)!==null||t?.isVoid||this.errors.push(Q.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),s=!1);let c=this._peek.sourceSpan.fullStart,l=new U(e.sourceSpan.start,c,e.sourceSpan.fullStart),u=new U(e.sourceSpan.start,c,e.sourceSpan.fullStart),d=new U(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new K(a,n,r,[],s,l,u,void 0,d,o?.isVoid??!1,void 0,i),p=this._getContainer(),m=p!==null&&!!((t=this._getTagDefinition(p))!=null&&t.isClosedByChild(f.name));this._pushContainer(f,m),s?this._popContainer(a,K,l):e.type===4&&(this._popContainer(a,K,null),this.errors.push(Q.create(a,l,`Opening tag "${a}" not terminated.`)))}_consumeComponentStartTag(e){var t;let n=e.parts[0],r=[],i=[],a=[];this._consumeAttributesAndDirectives(r,i,a);let o=this._getClosestElementLikeParent(),s=this._getComponentTagName(e,o),c=this._getComponentFullName(e,o),l=this._peek.type===37;this._advance();let u=this._peek.sourceSpan.fullStart,d=new U(e.sourceSpan.start,u,e.sourceSpan.fullStart),f=new J(n,s,c,r,i,[],l,d,new U(e.sourceSpan.start,u,e.sourceSpan.fullStart),void 0,void 0,a),p=this._getContainer(),m=p!==null&&f.tagName!==null&&!!((t=this._getTagDefinition(p))!=null&&t.isClosedByChild(f.tagName));this._pushContainer(f,m),l?this._popContainer(c,J,d):e.type===39&&(this._popContainer(c,J,null),this.errors.push(Q.create(c,d,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(e,t,n){for(;this._peek.type===15||this._peek.type===40||this._peek.type===12;)if(this._peek.type===40)t.push(this._consumeDirective(this._peek));else if(this._peek.type===15)e.push(this._consumeAttr(this._advance()));else{let e=this._advance();n.push(new Zi(e.parts[0],e.parts[1],e.sourceSpan))}}_consumeComponentEndTag(e){let t=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(t,J,e.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],r;r=n instanceof J&&n.componentName===e.parts[0]?`, did you mean "${n.fullName}"?`:`. It may happen when the tag has already been closed by another tag.`;let i=`Unexpected closing tag "${t}"${r}`;this.errors.push(Q.create(t,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e==`string`?this.tagDefinitionResolver(e):e instanceof K?this.tagDefinitionResolver(e.name):e instanceof J&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var t;let n=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(n&&(t=this._getTagDefinition(n))!=null&&t.isVoid)this.errors.push(Q.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,K,e.sourceSpan)){let t=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Q.create(n,e.sourceSpan,t))}}_popContainer(e,t,n){let r=!1;for(let a=this._containerStack.length-1;a>=0;a--){var i;let o=this._containerStack[a],s=o instanceof J?o.fullName:o.name;if(vi(s)?s===e:(s===e||e===null)&&o instanceof t)return o.endSourceSpan=n,o.sourceSpan.end=n===null?o.sourceSpan.end:n.end,this._containerStack.splice(a,this._containerStack.length-a),!r;(o instanceof q||(i=this._getTagDefinition(o))==null||!i.closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=yi(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r;this._peek.type===16&&(r=this._advance());let i=``,a=[],o,s;if(this._peek.type===17)for(o=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let e=this._advance();a.push(e),e.type===18?i+=e.parts.join(``).replace(/&([^;]+);/g,Ua):e.type===9?i+=e.parts[0]:i+=e.parts.join(``),s=n=e.sourceSpan.end}this._peek.type===16&&(s=n=this._advance().sourceSpan.end);let c=o&&s&&new U(r?.sourceSpan.start??o.start,s,r?.sourceSpan.fullStart??o.fullStart);return new Xi(t,i,new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_consumeDirective(e){let t=[],n=e.sourceSpan.end,r=null;if(this._advance(),this._peek.type===41){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)t.push(this._consumeAttr(this._advance()));this._peek.type===42?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Q.create(null,e.sourceSpan,`Unterminated directive definition`))}let i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new U(i.start,r===null?e.sourceSpan.end:r.end,i.fullStart);return new ea(e.parts[0],t,a,i,r)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===29;){let e=this._advance();t.push(new ta(e.parts[0],e.sourceSpan))}this._peek.type===27&&this._advance();let n=this._peek.sourceSpan.fullStart,r=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new q(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){let t=this._containerStack.length,n=this._containerStack[t-1];if(!this._popContainer(null,q,e.sourceSpan)){if(this._containerStack.length<t){let t=n instanceof J?n.fullName:n.name;this.errors.push(Q.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${t}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(Q.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===29;){let e=this._advance();t.push(new ta(e.parts[0],e.sourceSpan))}let n=this._peek.sourceSpan.fullStart,r=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new U(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new q(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,q,null),this.errors.push(Q.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],n,r;if(this._peek.type!==32){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}if(n=this._advance(),this._peek.type!==33){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}r=this._advance();let i=r.sourceSpan.end,a=new U(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(t),s=new U(e.sourceSpan.start.moveBy(o),e.sourceSpan.end),c=new na(t,n.parts[0],a,s,n.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(e){let t=e.parts[0]??``,n=t?` "${t}"`:``;if(t.length>0){let n=e.sourceSpan.toString().lastIndexOf(t),r=new U(e.sourceSpan.start.moveBy(n),e.sourceSpan.end),i=new U(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),a=new na(t,``,e.sourceSpan,r,i);this._addToParent(a)}this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let t=this._containerStack[e];if(t instanceof K||t instanceof J)return t}return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t){return yi(this._getPrefix(e,t),e.parts[1])}_getComponentFullName(e,t){let n=e.parts[0],r=this._getComponentTagName(e,t);return r===null?n:r.startsWith(`:`)?n+r:`${n}:${r}`}_getComponentTagName(e,t){let n=this._getPrefix(e,t),r=e.parts[2];return!n&&!r?null:!n&&r?r:yi(n,r||`ng-component`)}_getPrefix(e,t){let n,r;if(e.type===35||e.type===39||e.type===38?(n=e.parts[1],r=e.parts[2]):(n=e.parts[0],r=e.parts[1]),n=n||this._getTagDefinition(r)?.implicitNamespacePrefix||``,!n&&t){let e=t instanceof K?t.name:t.tagName;if(e!==null){let t=B(e)[1],r=this._getTagDefinition(t);r!==null&&!r.preventNamespaceInheritance&&(n=vi(e))}}return n}};function Ha(e,t){return e.length>0&&e[e.length-1]===t}function Ua(e,t){return pa[t]===void 0?/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e:pa[t]||e}var Wa=class extends Ba{constructor(){super(Hi)}parse(e,t,n,r=!1,i){return super.parse(e,t,n,r,i)}},Ga;function Ka(e,t={}){let{canSelfClose:n=!1,allowHtmComponentClosingTags:r=!1,allowStartTagComments:i=!1,isTagNameCaseSensitive:a=!1,getTagContentType:o,tokenizeAngularBlocks:s=!1,tokenizeAngularLetDeclaration:c=!1,enableAngularSelectorlessSyntax:l=!1}=t;return Ga??=new Wa,Ga.parse(e,`angular-html-parser`,{tokenizeExpansionForms:s,canSelfClose:n,allowHtmComponentClosingTags:r,allowStartTagComments:i,tokenizeBlocks:s,tokenizeLet:c,selectorlessEnabled:l},a,o)}var qa=[Za,Ya,Xa,eo,no,io,so,ao,oo,co,to];function Ja(e,t){for(let n of qa)n(e,t);return e}function Ya(e){e.walk(e=>{if(e.kind===`element`&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind===`text`&&e.children[0].value[0]===`
|
|
25
|
+
`){let t=e.children[0];t.value.length===1?e.removeChild(t):(t.value=t.value.slice(1),t.sourceSpan=new U(t.sourceSpan.start.moveBy(1),t.sourceSpan.end))}})}function Xa(e){let t=e=>e.kind===`element`&&e.prev?.kind===`ieConditionalStartComment`&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild?.kind===`ieConditionalEndComment`&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.firstChild;e.removeChild(i),n--;let o=new U(i.sourceSpan.start,a.sourceSpan.end),s=new U(o.start,r.sourceSpan.end);r.condition=i.condition,r.sourceSpan=s,r.startSourceSpan=o,r.removeChild(a)}})}function Za(e,t){t.parser!==`angular`||!t.originalText.includes(`ngNonBindable`)||e.walk(e=>{e.kind===`element`&&O(e.attrMap,`ngNonBindable`)&&Qa(e,t)})}function Qa(e,t){let{children:n}=e;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(i.kind===`angularControlFlowBlock`){Qa(i,t);let n=[],{start:a}=i.sourceSpan;for(let e of i.children){if(a.offset<e.sourceSpan.start.offset){let r=new U(a,e.sourceSpan.start);n.push($a(r,t))}n.push(e),a=e.sourceSpan.end}if(a.offset<i.sourceSpan.end.offset){let e=new U(a,i.sourceSpan.end);n.push($a(e,t))}for(let t of n)e.insertChildBefore(i,t);e.removeChild(i),r+=n.length-1}else i.kind===`angularLetDeclaration`?e.replaceChild(i,$a(i.sourceSpan,t)):Qa(i,t)}}function $a(e,t){return{kind:`text`,value:t.originalText.slice(e.start.offset,e.end.offset),sourceSpan:e}}function eo(e){e.walk(e=>{if(e.children)for(let t=0;t<e.children.length;t++){let n=e.children[t],r=n.prev;n.kind!==`text`||r?.kind!==`text`||(r.value+=n.value,r.sourceSpan=new U(r.sourceSpan.start,n.sourceSpan.end),e.removeChild(n),t--)}})}function to(e){let t=e=>e.kind===`element`&&e.attrs.length===0&&!qe(e.startTagComments)&&e.children.length===1&&e.firstChild.kind===`text`&&!T.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev?.kind===`text`&&e.next?.kind===`text`;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.next;i.value+=`<${r.rawName}>`+r.firstChild.value+`</${r.rawName}>`+a.value,i.sourceSpan=new U(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(r),n--,e.removeChild(a)}})}function no(e,t){t.parser!==`html`&&e.walk(e=>{if(Tt(e,t))for(let t of e.children){if(t.kind!==`text`)continue;let n=t.sourceSpan.start,r,i=ro(t);for(let a=0;a<i.length;a++,n=r){let o=i[a];a%2==0?(r=n.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{kind:`text`,value:o,sourceSpan:new U(n,r)})):(r=n.moveBy(o.length+4),e.insertChildBefore(t,{kind:`interpolation`,sourceSpan:new U(n,r),children:o.length===0?[]:[{kind:`text`,value:o,sourceSpan:new U(n.moveBy(2),r.moveBy(-2))}]}))}e.removeChild(t)}})}function ro(e){let t=e.tokens?.filter(e=>e.type===aa.INTERPOLATION&&e.parts.length===3);if(!t?.some(e=>e.parts[1].includes(`}}`)))return e.value.split(/\{\{(.+?)\}\}/s);let n=[],{content:r}=e.sourceSpan.start.file,i=e.sourceSpan.start.offset;for(let{parts:e,sourceSpan:a}of t)n.push(r.slice(i,a.start.offset),r.slice(a.start.offset+e[0].length,a.end.offset-e[2].length)),i=a.end.offset;return n.push(r.slice(i,e.sourceSpan.end.offset)),n}function io(e,t){e.walk(e=>{let n=e.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind===`text`&&T.trim(n[0].value).length===0){e.hasDanglingSpaces=n.length>0,e.$children=[];return}let r=Et(e,t),i=Dt(e);if(!r)for(let t=0;t<n.length;t++){let r=n[t];if(r.kind!==`text`)continue;let{leadingWhitespace:i,text:a,trailingWhitespace:o}=xt(r.value),s=r.prev,c=r.next;a?(r.value=a,r.sourceSpan=new U(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-o.length)),i&&(s&&(s.hasTrailingSpaces=!0),r.hasLeadingSpaces=!0),o&&(r.hasTrailingSpaces=!0,c&&(c.hasLeadingSpaces=!0))):(e.removeChild(r),t--,(i||o)&&(s&&(s.hasTrailingSpaces=!0),c&&(c.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=r,e.isIndentationSensitive=i})}function ao(e){e.walk(e=>{e.isSelfClosing=!e.children||e.kind===`element`&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function oo(e,t){e.walk(e=>{e.kind===`element`&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})}function so(e,t){e.walk(e=>{e.cssDisplay=en(e,t)})}function co(e,t){e.walk(e=>{let{children:n}=e;if(n){if(n.length===0){e.isDanglingSpaceSensitive=At(e,t);return}for(let e of n)e.isLeadingSpaceSensitive=Ot(e,t),e.isTrailingSpaceSensitive=kt(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.isLeadingSpaceSensitive=(e===0||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===n.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})}var lo=Ja;function uo(e,t,n){let{node:r}=e;switch(r.kind){case`root`:return t.__onHtmlRoot&&t.__onHtmlRoot(r),[b(Jr(e,t,n)),w];case`element`:case`ieConditionalComment`:return di(e,t,n);case`angularControlFlowBlock`:return Yr(e,t,n);case`angularControlFlowBlockParameters`:return ti(e,t,n);case`angularControlFlowBlockParameter`:return T.trim(r.expression);case`angularLetDeclaration`:return b([`@let `,b([r.id,` =`,b(v([S,n(`init`)]))]),`;`]);case`angularLetDeclarationInitializer`:return r.value;case`angularIcuExpression`:return ni(e,t,n);case`angularIcuCase`:return ri(e,t,n);case`ieConditionalStartComment`:case`ieConditionalEndComment`:return[vr(r),or(r)];case`interpolation`:return[vr(r,t),...e.map(n,`children`),or(r,t)];case`text`:return mi(e,t);case`docType`:return[b([vr(r,t),` `,d(0,r.value.replace(/^html\b/i,`html`),/\s+/g,` `)]),or(r,t)];case`comment`:return[z(r,t),g(t.originalText.slice(F(r),rr(r))),I(r,t)];case`cdata`:return[z(r,t),`<![CDATA[`,g(r.value),`]]>`,I(r,t)];case`attribute`:return ui(e,t);case`startTagComment`:return fi(e);default:throw new Me(r,`HTML`)}}var fo={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:lo,print:uo,insertPragma:Ur,massageAstNode:Lr,embed:Er,getVisitorKeys:Pr},po=[{name:`Angular`,type:`markup`,aceMode:`html`,extensions:[`.component.html`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`angular`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`HTML`,type:`markup`,aceMode:`html`,extensions:[`.html`,`.hta`,`.htm`,`.html.hl`,`.inc`,`.xht`,`.xhtml`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`html`],vscodeLanguageIds:[`html`],linguistLanguageId:146},{name:`Lightning Web Components`,type:`markup`,aceMode:`html`,extensions:[],tmScope:`text.html.basic`,aliases:[`LWC`,`lwc`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`lwc`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`MJML`,type:`markup`,aceMode:`html`,extensions:[`.mjml`],tmScope:`text.mjml.basic`,aliases:[`MJML`,`mjml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`mjml`],filenames:[],vscodeLanguageIds:[`mjml`],linguistLanguageId:146},{name:`Vue`,type:`markup`,aceMode:`vue`,extensions:[`.vue`],tmScope:`text.html.vue`,codemirrorMode:`vue`,codemirrorMimeType:`text/x-vue`,parsers:[`vue`],vscodeLanguageIds:[`vue`],linguistLanguageId:391}],mo={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},ho=`HTML`,go={bracketSameLine:mo.bracketSameLine,htmlWhitespaceSensitivity:{category:ho,type:`choice`,default:`css`,description:`How to handle whitespaces in HTML.`,choices:[{value:`css`,description:`Respect the default value of CSS display property.`},{value:`strict`,description:`Whitespaces are considered sensitive.`},{value:`ignore`,description:`Whitespaces are considered insensitive.`}]},singleAttributePerLine:mo.singleAttributePerLine,vueIndentScriptAndStyle:{category:ho,type:`boolean`,default:!1,description:`Indent script and style tags in Vue files.`}},_o={};r(_o,{angular:()=>os,html:()=>rs,lwc:()=>cs,mjml:()=>as,vue:()=>ss});function vo(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var yo=vo,bo={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,allowStartTagComments:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function xo(e){return{...bo,...e}}function So(e){let{canSelfClose:t,allowHtmComponentClosingTags:n,allowStartTagComments:r,isTagNameCaseSensitive:i,shouldParseAsRawText:a,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:s}=e;return{canSelfClose:t,allowHtmComponentClosingTags:n,allowStartTagComments:r,isTagNameCaseSensitive:i,getTagContentType:a?(...e)=>a(...e)?hi.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:o,tokenizeAngularLetDeclaration:s}}var Co=new Map([[`a`,new Set([`charset`,`coords`,`download`,`href`,`hreflang`,`name`,`ping`,`referrerpolicy`,`rel`,`rev`,`shape`,`target`,`type`])],[`applet`,new Set([`align`,`alt`,`archive`,`code`,`codebase`,`height`,`hspace`,`name`,`object`,`vspace`,`width`])],[`area`,new Set([`alt`,`coords`,`download`,`href`,`hreflang`,`nohref`,`ping`,`referrerpolicy`,`rel`,`shape`,`target`,`type`])],[`audio`,new Set([`autoplay`,`controls`,`crossorigin`,`loading`,`loop`,`muted`,`preload`,`src`])],[`base`,new Set([`href`,`target`])],[`basefont`,new Set([`color`,`face`,`size`])],[`blockquote`,new Set([`cite`])],[`body`,new Set([`alink`,`background`,`bgcolor`,`bottommargin`,`leftmargin`,`link`,`rightmargin`,`text`,`topmargin`,`vlink`])],[`br`,new Set([`clear`])],[`button`,new Set([`command`,`commandfor`,`disabled`,`form`,`formaction`,`formenctype`,`formmethod`,`formnovalidate`,`formtarget`,`name`,`popovertarget`,`popovertargetaction`,`type`,`value`])],[`canvas`,new Set([`height`,`width`])],[`caption`,new Set([`align`])],[`col`,new Set([`align`,`bgcolor`,`char`,`charoff`,`span`,`valign`,`width`])],[`colgroup`,new Set([`align`,`bgcolor`,`char`,`charoff`,`span`,`valign`,`width`])],[`data`,new Set([`value`])],[`del`,new Set([`cite`,`datetime`])],[`details`,new Set([`name`,`open`])],[`dialog`,new Set([`closedby`,`open`])],[`dir`,new Set([`compact`])],[`div`,new Set([`align`])],[`dl`,new Set([`compact`])],[`embed`,new Set([`height`,`src`,`type`,`width`])],[`fieldset`,new Set([`disabled`,`form`,`name`])],[`font`,new Set([`color`,`face`,`size`])],[`form`,new Set([`accept`,`accept-charset`,`action`,`autocomplete`,`enctype`,`method`,`name`,`novalidate`,`rel`,`target`])],[`frame`,new Set([`frameborder`,`longdesc`,`marginheight`,`marginwidth`,`name`,`noresize`,`scrolling`,`src`])],[`frameset`,new Set([`cols`,`rows`])],[`h1`,new Set([`align`])],[`h2`,new Set([`align`])],[`h3`,new Set([`align`])],[`h4`,new Set([`align`])],[`h5`,new Set([`align`])],[`h6`,new Set([`align`])],[`head`,new Set([`profile`])],[`hr`,new Set([`align`,`color`,`noshade`,`size`,`width`])],[`html`,new Set([`manifest`,`version`,`xmlns`])],[`iframe`,new Set([`align`,`allow`,`allowfullscreen`,`allowpaymentrequest`,`frameborder`,`height`,`loading`,`longdesc`,`marginheight`,`marginwidth`,`name`,`referrerpolicy`,`sandbox`,`scrolling`,`src`,`srcdoc`,`width`])],[`img`,new Set([`align`,`alt`,`border`,`controls`,`crossorigin`,`decoding`,`elementtiming`,`fetchpriority`,`height`,`hspace`,`ismap`,`loading`,`longdesc`,`name`,`referrerpolicy`,`sizes`,`src`,`srcset`,`usemap`,`vspace`,`width`])],[`input`,new Set(`accept.align.alpha.alt.autocomplete.checked.colorspace.dirname.disabled.form.formaction.formenctype.formmethod.formnovalidate.formtarget.height.list.max.maxlength.min.minlength.multiple.name.pattern.placeholder.popovertarget.popovertargetaction.readonly.required.size.src.step.type.value.width`.split(`.`))],[`ins`,new Set([`cite`,`datetime`])],[`isindex`,new Set([`action`,`prompt`])],[`label`,new Set([`for`,`form`])],[`legend`,new Set([`align`])],[`li`,new Set([`type`,`value`])],[`link`,new Set([`as`,`blocking`,`charset`,`color`,`crossorigin`,`disabled`,`fetchpriority`,`href`,`hreflang`,`imagesizes`,`imagesrcset`,`integrity`,`media`,`referrerpolicy`,`rel`,`rev`,`sizes`,`target`,`type`])],[`map`,new Set([`name`])],[`menu`,new Set([`compact`])],[`meta`,new Set([`charset`,`content`,`http-equiv`,`media`,`name`,`scheme`])],[`meter`,new Set([`high`,`low`,`max`,`min`,`optimum`,`value`])],[`object`,new Set([`align`,`archive`,`border`,`classid`,`codebase`,`codetype`,`data`,`declare`,`form`,`height`,`hspace`,`name`,`standby`,`type`,`typemustmatch`,`usemap`,`vspace`,`width`])],[`ol`,new Set([`compact`,`reversed`,`start`,`type`])],[`optgroup`,new Set([`disabled`,`label`])],[`option`,new Set([`disabled`,`label`,`selected`,`value`])],[`output`,new Set([`for`,`form`,`name`])],[`p`,new Set([`align`])],[`param`,new Set([`name`,`type`,`value`,`valuetype`])],[`pre`,new Set([`width`,`wrap`])],[`progress`,new Set([`max`,`value`])],[`q`,new Set([`cite`])],[`script`,new Set([`async`,`blocking`,`charset`,`crossorigin`,`defer`,`fetchpriority`,`integrity`,`language`,`nomodule`,`referrerpolicy`,`src`,`type`])],[`select`,new Set([`autocomplete`,`disabled`,`form`,`multiple`,`name`,`required`,`size`])],[`slot`,new Set([`name`])],[`source`,new Set([`height`,`media`,`sizes`,`src`,`srcset`,`type`,`width`])],[`style`,new Set([`blocking`,`media`,`type`])],[`table`,new Set([`align`,`bgcolor`,`border`,`cellpadding`,`cellspacing`,`frame`,`rules`,`summary`,`width`])],[`tbody`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`td`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`template`,new Set([`for`,`shadowrootclonable`,`shadowrootcustomelementregistry`,`shadowrootdelegatesfocus`,`shadowrootmode`,`shadowrootserializable`,`shadowrootslotassignment`])],[`textarea`,new Set([`autocomplete`,`cols`,`dirname`,`disabled`,`form`,`maxlength`,`minlength`,`name`,`placeholder`,`readonly`,`required`,`rows`,`wrap`])],[`tfoot`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`th`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`thead`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`time`,new Set([`datetime`])],[`tr`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`track`,new Set([`default`,`kind`,`label`,`src`,`srclang`])],[`ul`,new Set([`compact`,`type`])],[`video`,new Set([`autoplay`,`controls`,`crossorigin`,`height`,`loading`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`width`])]]),wo=new Set(`accesskey.autocapitalize.autocorrect.autofocus.class.contenteditable.dir.draggable.enterkeyhint.exportparts.headingoffset.headingreset.hidden.id.inert.inputmode.is.itemid.itemprop.itemref.itemscope.itemtype.lang.nonce.part.popover.slot.spellcheck.style.tabindex.title.translate.writingsuggestions`.split(`.`)),To=new Set(`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.content.data.datalist.dd.del.details.dfn.dialog.dir.div.dl.dt.em.embed.fencedframe.fieldset.figcaption.figure.font.footer.form.frame.frameset.geolocation.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.link.listing.main.map.mark.marquee.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.picture.plaintext.pre.progress.q.rb.rbc.rp.rt.rtc.ruby.s.samp.script.search.section.select.selectedcontent.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.tt.u.ul.var.video.wbr.xmp`.split(`.`)),Eo={attrs:!0,children:!0,cases:!0,expression:!0},Do=new Set([`parent`]),$,Oo,ko,Ao=class e{constructor(e={}){s(this,$),i(this,`kind`),i(this,`parent`);for(let t of new Set([...Do,...Object.keys(e)]))this.setProperty(t,e[t]);if(nt(e))for(let t of Object.getOwnPropertySymbols(e))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in Eo&&(t=t.map(e=>this.createChild(e))),!Do.has(e)){this[e]=t;return}Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let n;for(let r in Eo){let i=this[r];if(i){let a=Mo(i,e=>e.map(t));n!==i&&(n??=new e({parent:this.parent}),n.setProperty(r,a))}}if(n)for(let e in this)e in Eo||(n[e]=this[e]);return t(n||this)}walk(e){for(let t in Eo){let n=this[t];if(n)for(let t=0;t<n.length;t++)n[t].walk(e)}e(this)}createChild(t){let n=t instanceof e?t.clone():new e(t);return n.setProperty(`parent`,this),n}insertChildBefore(e,t){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(t))}removeChild(e){let t=this.$children;t.splice(t.indexOf(e),1)}replaceChild(e,t){let n=this.$children;n[n.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get $children(){return this[o(this,$,Oo)]}set $children(e){this[o(this,$,Oo)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return p(1,this.$children,-1)}get prev(){let e=o(this,$,ko);return e[e.indexOf(this)-1]}get next(){let e=o(this,$,ko);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+`:`+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};$=new WeakSet,Oo=function(){return this.kind===`angularIcuCase`?`expression`:this.kind===`angularIcuExpression`?`cases`:`children`},ko=function(){return this.parent?.$children??[]};var jo=Ao;function Mo(e,t){let n=e.map(t);return n.some((t,n)=>t!==e[n])?n:e}var No=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/s,parse:Fo},{regex:/^\[if(?<condition>[^\]]*)\]><!$/,parse:Io},{regex:/^<!\s*\[endif\]$/,parse:Lo}];function Po(e,t){if(e.value)for(let{regex:n,parse:r}of No){let i=e.value.match(n);if(i)return r(e,i,t)}return null}function Fo(e,t,n){let{openingTagSuffix:r,condition:i,data:a}=t.groups,o=4+r.length,s=e.sourceSpan.start.moveBy(o),c=s.moveBy(a.length),[l,u]=(()=>{try{return[!0,n(a,s).children]}catch{return[!1,[{kind:`text`,value:a,sourceSpan:new U(s,c)}]]}})();return{kind:`ieConditionalComment`,complete:l,children:u,condition:d(0,i.trim(),/\s+/g,` `),sourceSpan:e.sourceSpan,startSourceSpan:new U(e.sourceSpan.start,s),endSourceSpan:new U(c,e.sourceSpan.end)}}function Io(e,t){let{condition:n}=t.groups;return{kind:`ieConditionalStartComment`,condition:d(0,n.trim(),/\s+/g,` `),sourceSpan:e.sourceSpan}}function Lo(e){return{kind:`ieConditionalEndComment`,sourceSpan:e.sourceSpan}}var Ro=class extends ia{visitExpansionCase(e,t){t.parseOptions.name===`angular`&&this.visitChildren(t,t=>{t(e.expression)})}visit(e,{parseOptions:t}){Go(e),Ko(e,t),Jo(e,t),qo(e)}};function zo(e,t,n,r){let i=n.name===`angular`;ra(new Ro,e.children,{parseOptions:n}),t&&e.children.unshift(t);let a=new jo(e);return a.walk(e=>{if(e.kind===`comment`){let t=Po(e,r);t&&e.parent.replaceChild(e,t)}else i&&e.kind===`element`&&e.comments&&(e.startTagComments=e.comments,delete e.comments);i&&(Bo(e),Vo(e),Ho(e))}),a}function Bo(e){if(e.kind===`block`){if(e.name=d(0,e.name.toLowerCase(),/\s+/g,` `).trim(),e.kind=`angularControlFlowBlock`,!qe(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind=`angularControlFlowBlockParameter`;e.parameters={kind:`angularControlFlowBlockParameters`,children:e.parameters,sourceSpan:new U(e.parameters[0].sourceSpan.start,p(0,e.parameters,-1).sourceSpan.end)}}}function Vo(e){e.kind===`letDeclaration`&&(e.kind=`angularLetDeclaration`,e.id=e.name,e.init={kind:`angularLetDeclarationInitializer`,sourceSpan:new U(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function Ho(e){e.kind===`expansion`&&(e.kind=`angularIcuExpression`),e.kind===`expansionCase`&&(e.kind=`angularIcuCase`)}function Uo(e,t){let n=e.toLowerCase();return t(n)?n:e}function Wo(e){let t=e.name.startsWith(`:`)?e.name.slice(1).split(`:`,1)[0]:null,n=e.nameSpan.toString(),r=t!==null&&n.startsWith(`${t}:`);e.name=r?n.slice(t.length+1):n,e.namespace=t,e.hasExplicitNamespace=r}function Go(e){switch(e.kind){case`element`:Wo(e);for(let t of e.attrs)Wo(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case`comment`:e.value=e.sourceSpan.toString().slice(4,-3);break;case`text`:e.value=e.sourceSpan.toString()}}function Ko(e,t){if(e.kind===`element`){let n=Hi(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());e.tagDefinition=!e.namespace||e.namespace===n.implicitNamespacePrefix||mt(e)?n:Hi(``)}}function qo(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new U(e.sourceSpan.start,e.endSourceSpan.end))}function Jo(e,t){if(e.kind===`element`&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||mt(e))&&(e.name=Uo(e.name,e=>To.has(e))),t.normalizeAttributeName))for(let t of e.attrs)t.namespace||(t.name=Uo(t.name,t=>To.has(e.name)&&(wo.has(t)||Co.get(e.name)?.has(t))))}function Yo(e,t){let{rootNodes:n,errors:r}=Ka(e,So(t));return r.length>0&&Qo(r[0]),{parseOptions:t,rootNodes:n}}function Xo(e,t){let n=So(t),{rootNodes:r,errors:i}=Ka(e,n);if(r.some(e=>e.kind===`docType`&&e.value===`html`||e.kind===`element`&&e.name.toLowerCase()===`html`))return Yo(e,ts);let a,o=()=>a??=Ka(e,{...n,getTagContentType:void 0}),s=e=>{let{offset:t}=e.startSourceSpan.start;return o().rootNodes.find(e=>e.kind===`element`&&e.startSourceSpan.start.offset===t)??e};for(let[e,t]of r.entries())if(t.kind===`element`){if(t.isVoid)i=o().errors,r[e]=s(t);else if(Zo(t)){let{endSourceSpan:n,startSourceSpan:i}=t,a=o().errors.find(e=>e.span.start.offset>i.start.offset&&e.span.start.offset<n.end.offset);a&&Qo(a),r[e]=s(t)}}return i.length>0&&Qo(i[0]),{parseOptions:t,rootNodes:r}}function Zo(e){if(e.kind!==`element`||e.name!==`template`)return!1;let t=e.attrs.find(e=>e.name===`lang`)?.value;return!t||t===`html`}function Qo(e){let{msg:t,span:{start:n,end:r}}=e;throw yo(t,{loc:{start:{line:n.line+1,column:n.col+1},end:{line:r.line+1,column:r.col+1}},cause:e})}function $o(e,t,n,r,i,a){let{offset:o}=r,s=es(it(t.slice(0,o))+n,e,{...i,shouldParseFrontMatter:!1},a);s.sourceSpan=new U(r,p(0,s.children,-1).sourceSpan.end);let c=s.children[0];return c.length===o?s.children.shift():(c.sourceSpan=new U(c.sourceSpan.start.moveBy(o),c.sourceSpan.end),c.value=c.value.slice(o)),s}function es(e,t,n,r={}){let{frontMatter:i,content:a}=n.shouldParseFrontMatter?ct(e):{content:e},o=new Wi(e,r.filepath),s=new Ui(o,0,0,0),c=s.moveBy(e.length),{parseOptions:l,rootNodes:u}=t(a,n),d={kind:`root`,sourceSpan:new U(s,c),children:u},f;if(i){let[e,t]=[i.start,i.end].map(e=>new Ui(o,e.index,e.line-1,e.column));f={...i,kind:`frontMatter`,sourceSpan:new U(e,t)}}return zo(d,f,l,(n,i)=>$o(t,e,n,i,l,r))}var ts=xo({name:`html`,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function ns(e){let t=xo(e),n=t.name===`vue`?Xo:Yo;return{parse:(e,r)=>es(e,n,t,r),hasPragma:Vr,hasIgnorePragma:Hr,astFormat:`html`,locStart:F,locEnd:rr}}var rs=ns(ts),is=new Set([`mj-style`,`mj-raw`]),as=ns({...ts,name:`mjml`,shouldParseAsRawText:e=>is.has(e)}),os=ns({name:`angular`,tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0,allowStartTagComments:!0}),ss=ns({name:`vue`,isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,n,r){return e.toLowerCase()!==`html`&&!n&&(e!==`template`||r.some(({name:e,value:t})=>e===`lang`&&t!==`html`&&t!==``&&t!==void 0))}}),cs=ns({name:`lwc`,canSelfClose:!1}),ls={html:fo};export{c as default,po as languages,go as options,_o as parsers,ls as printers};
|