Файл: vendor/laravel/framework/src/Illuminate/Foundation/resources/exceptions/renderer/dist/scripts.js
Строк: 35217
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=!1,r=!1,i=[],a=-1,o=!1;function s(e){u(e)}function c(){o=!0}function l(){o=!1,f()}function u(e){i.includes(e)||i.push(e),f()}function d(e){let t=i.indexOf(e);t!==-1&&t>a&&i.splice(t,1)}function f(){if(!r&&!n){if(o)return;n=!0,queueMicrotask(p)}}function p(){n=!1,r=!0;for(let e=0;e<i.length;e++)i[e](),a=e;i.length=0,a=-1,r=!1}var m,h,g,_,v=!0;function y(e){v=!1,e(),v=!0}function b(e){m=e.reactive,g=e.release,h=t=>e.effect(t,{scheduler:e=>{v?s(e):e()}}),_=e.raw}function x(e){h=e}function S(e){let t=()=>{};return[n=>{let r=h(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),g(r))},r},()=>{t()}]}function C(e,t){let n=!0,r,i=h(()=>{let i=e();if(JSON.stringify(i),!n&&(typeof i==`object`||i!==r)){let e=r;queueMicrotask(()=>{t(i,e)})}r=i,n=!1});return()=>g(i)}async function w(e){c();try{await e(),await Promise.resolve()}finally{l()}}var T=[],E=[],D=[];function O(e){D.push(e)}function k(e,t){typeof t==`function`?(e._x_cleanups||=[],e._x_cleanups.push(t)):(t=e,E.push(t))}function ee(e){T.push(e)}function A(e,t,n){e._x_attributeCleanups||={},e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function j(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}function M(e){for(e._x_effects?.forEach(d);e._x_cleanups?.length;)e._x_cleanups.pop()()}var te=new MutationObserver(de),ne=!1;function re(){te.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ne=!0}function ie(){oe(),te.disconnect(),ne=!1}var ae=[];function oe(){let e=te.takeRecords();ae.push(()=>e.length>0&&de(e));let t=ae.length;queueMicrotask(()=>{if(ae.length===t)for(;ae.length>0;)ae.shift()()})}function N(e){if(!ne)return e();ie();let t=e();return re(),t}var se=!1,ce=[];function le(){se=!0}function ue(){se=!1,de(ce),ce=[]}function de(e){if(se){ce=ce.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let a=0;a<e.length;a++)if(!e[a].target._x_ignoreMutationObserver&&(e[a].type===`childList`&&(e[a].removedNodes.forEach(e=>{e.nodeType===1&&e._x_marker&&n.add(e)}),e[a].addedNodes.forEach(e=>{if(e.nodeType===1){if(n.has(e)){n.delete(e);return}e._x_marker||t.push(e)}})),e[a].type===`attributes`)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&o===null?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach((e,t)=>{j(t,e)}),r.forEach((e,t)=>{T.forEach(n=>n(t,e))});for(let e of n)t.some(t=>t.contains(e))||E.forEach(t=>t(e));for(let e of t)e.isConnected&&D.forEach(t=>t(e));t=null,n=null,r=null,i=null}function fe(e){return he(me(e))}function pe(e,t,n){return e._x_dataStack=[t,...me(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot==`function`&&e instanceof ShadowRoot?me(e.host):e.parentNode?me(e.parentNode):[]}function he(e){return new Proxy({objects:e},ge)}var ge={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(e=>Object.keys(e))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t))},get({objects:e},t,n){return t==`toJSON`?_e:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n)},set({objects:e},t,n,r){let i=e.find(e=>Object.prototype.hasOwnProperty.call(e,t))||e[e.length-1],a=Object.getOwnPropertyDescriptor(i,t);return a?.set&&a?.get?a.set.call(r,n)||!0:Reflect.set(i,t,n)}};function _e(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function ve(e){let t=e=>typeof e==`object`&&!Array.isArray(e)&&e!==null,n=(r,i=``)=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:s}])=>{if(s===!1||o===void 0||typeof o==`object`&&o&&o.__v_skip)return;let c=i===``?a:`${i}.${a}`;typeof o==`object`&&o&&o._x_interceptor?r[a]=o.initialize(e,c,a):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function ye(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>be(t,n),e=>xe(t,n,e),n,r)}};return t(n),e=>{if(typeof e==`object`&&e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>(n.initialValue=e.initialize(r,i,a),t(r,i,a))}else n.initialValue=e;return n}}function be(e,t){return t.split(`.`).reduce((e,t)=>e[t],e)}function xe(e,t,n){if(typeof t==`string`&&(t=t.split(`.`)),t.length===1)e[t[0]]=n;else if(t.length===0)throw error;else if(e[t[0]])return xe(e[t[0]],t.slice(1),n);else return e[t[0]]={},xe(e[t[0]],t.slice(1),n)}var Se={};function P(e,t){Se[e]=t}function F(e,t){let n=Ce(t);return Object.entries(Se).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function Ce(e){let[t,n]=tt(e),r={interceptor:ye,...t};return k(e,n),r}function we(e,t,n,...r){try{return n(...r)}catch(n){Te(n,e,t)}}function Te(...e){return Ee(...e)}var Ee=Oe;function De(e){Ee=e}function Oe(e,t,n=void 0){e=Object.assign(e??{message:`No error message given.`},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
${n?`Expression: "`+n+`"
`:``}`,t),setTimeout(()=>{throw e},0)}var ke=!0;function Ae(e){let t=ke;ke=!1;let n=e();return ke=t,n}function je(e,t,n={}){let r;return I(e,t)(e=>r=e,n),r}function I(...e){return Me(...e)}var Me=Ie;function Ne(e){Me=e}var Pe;function Fe(e){Pe=e}function Ie(e,t){let n={};F(n,e);let r=[n,...me(e)],i=typeof t==`function`?Le(r,t):Be(r,t,e);return we.bind(null,e,t,i)}function Le(e,t){return(n=()=>{},{scope:r={},params:i=[],context:a}={})=>{if(!ke){Ve(n,t,he([r,...e]),i);return}Ve(n,t.apply(he([r,...e]),i))}}var Re={};function ze(e,t){if(Re[e])return Re[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[ns]*if.*(.*)/.test(e.trim())||/^(let|const)s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let t=new n([`__self`,`scope`],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return Te(n,t,e),Promise.resolve()}})();return Re[e]=i,i}function Be(e,t,n){let r=ze(t,n);return(i=()=>{},{scope:a={},params:o=[],context:s}={})=>{r.result=void 0,r.finished=!1;let c=he([a,...e]);if(typeof r==`function`){let e=r.call(s,r,c).catch(e=>Te(e,n,t));r.finished?(Ve(i,r.result,c,o,n),r.result=void 0):e.then(e=>{Ve(i,e,c,o,n)}).catch(e=>Te(e,n,t)).finally(()=>r.result=void 0)}}}function Ve(e,t,n,r,i){if(ke&&typeof t==`function`){let a=t.apply(n,r);a instanceof Promise?a.then(t=>Ve(e,t,n,r)).catch(e=>Te(e,i,t)):e(a)}else typeof t==`object`&&t instanceof Promise?t.then(t=>e(t)):e(t)}function He(...e){return Pe(...e)}function Ue(e,t,n={}){let r={};F(r,e);let i=[r,...me(e)],a=he([n.scope??{},...i]),o=n.params??[];if(t.includes(`await`)){let e=Object.getPrototypeOf(async function(){}).constructor;return new e([`scope`],`with (scope) { let __result = ${/^[ns]*if.*(.*)/.test(t.trim())||/^(let|const)s/.test(t.trim())?`(async()=>{ ${t} })()`:t}; return __result }`).call(n.context,a)}else{let e=/^[ns]*if.*(.*)/.test(t.trim())||/^(let|const)s/.test(t.trim())?`(()=>{ ${t} })()`:t,r=Function([`scope`],`with (scope) { let __result = ${e}; return __result }`).call(n.context,a);return typeof r==`function`&&ke?r.apply(a,o):r}}var We=`x-`;function Ge(e=``){return We+e}function Ke(e){We=e}var qe={};function L(e,t){return qe[e]=t,{before(t){if(!qe[t]){console.warn(String.raw`Cannot find directive `${t}`. `${e}` will use the default order of execution`);return}let n=ft.indexOf(t);ft.splice(n>=0?n:ft.indexOf(`DEFAULT`),0,e)}}}function Je(e){return Object.keys(qe).includes(e)}function Ye(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),r=Xe(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={};return t.map(at((e,t)=>r[e]=t)).filter(ct).map(ut(r,n)).sort(pt).map(t=>nt(e,t))}function Xe(e){return Array.from(e).map(at()).filter(e=>!ct(e))}var Ze=!1,Qe=new Map,$e=Symbol();function et(e){Ze=!0;let t=Symbol();$e=t,Qe.set(t,[]);let n=()=>{for(;Qe.get(t).length;)Qe.get(t).shift()();Qe.delete(t)};e(n),Ze=!1,n()}function tt(e){let t=[],n=e=>t.push(e),[r,i]=S(e);return t.push(i),[{Alpine:Kn,effect:r,cleanup:n,evaluateLater:I.bind(I,e),evaluate:je.bind(je,e)},()=>t.forEach(e=>e())]}function nt(e,t){let n=qe[t.type]||(()=>{}),[r,i]=tt(e);A(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),Ze?Qe.get($e).push(n):n())};return a.runCleanups=i,a}var rt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),it=e=>e;function at(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=ot.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var ot=[];function st(e){ot.push(e)}function ct({name:e}){return lt().test(e)}var lt=()=>RegExp(`^${We}([^:^.]+)\b`);function ut(e,t){return({name:n,value:r})=>{n===r&&(r=``);let i=n.match(lt()),a=n.match(/:([a-zA-Z0-9-_:]+)/),o=n.match(/.[^.]]+(?=[^]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map(e=>e.replace(`.`,``)),expression:r,original:s}}}var dt=`DEFAULT`,ft=[`ignore`,`ref`,`data`,`id`,`anchor`,`bind`,`init`,`for`,`model`,`modelable`,`transition`,`show`,`if`,dt,`teleport`];function pt(e,t){let n=ft.indexOf(e.type)===-1?dt:e.type,r=ft.indexOf(t.type)===-1?dt:t.type;return ft.indexOf(n)-ft.indexOf(r)}function mt(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function ht(e,t){if(typeof ShadowRoot==`function`&&e instanceof ShadowRoot){Array.from(e.children).forEach(e=>ht(e,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ht(r,t,!1),r=r.nextElementSibling}function R(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var gt=!1;function _t(){gt&&R(`Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.`),gt=!0,document.body||R("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),mt(document,`alpine:init`),mt(document,`alpine:initializing`),re(),O(e=>At(e,ht)),k(e=>jt(e)),ee((e,t)=>{Ye(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll(xt().join(`,`))).filter(e=>!wt(e.parentElement,!0)).forEach(e=>{At(e)}),mt(document,`alpine:initialized`),setTimeout(()=>{Mt()})}var vt=[],yt=[];function bt(){return vt.map(e=>e())}function xt(){return vt.concat(yt).map(e=>e())}function St(e){vt.push(e)}function Ct(e){yt.push(e)}function wt(e,t=!1){return Tt(e,e=>{if((t?xt():bt()).some(t=>e.matches(t)))return!0})}function Tt(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentNode instanceof ShadowRoot)return Tt(e.parentNode.host,t);if(e.parentElement)return Tt(e.parentElement,t)}}function Et(e){return bt().some(t=>e.matches(t))}var Dt=[];function Ot(e){Dt.push(e)}var kt=1;function At(e,t=ht,n=()=>{}){Tt(e,e=>e._x_ignore)||et(()=>{t(e,(e,t)=>{e._x_marker||(n(e,t),Dt.forEach(n=>n(e,t)),Ye(e,e.attributes).forEach(e=>e()),e._x_ignore||(e._x_marker=kt++),e._x_ignore&&t())})})}function jt(e,t=ht){t(e,e=>{M(e),j(e),delete e._x_marker})}function Mt(){[[`ui`,`dialog`,[`[x-dialog], [x-popover]`]],[`anchor`,`anchor`,[`[x-anchor]`]],[`sort`,`sort`,[`[x-sort]`]]].forEach(([e,t,n])=>{Je(t)||n.some(t=>{if(document.querySelector(t))return R(`found "${t}", but missing ${e} plugin`),!0})})}var Nt=[],Pt=!1;function Ft(e=()=>{}){return queueMicrotask(()=>{Pt||setTimeout(()=>{It()})}),new Promise(t=>{Nt.push(()=>{e(),t()})})}function It(){for(Pt=!1;Nt.length;)Nt.shift()()}function Lt(){Pt=!0}function Rt(e,t){return Array.isArray(t)?zt(e,t.join(` `)):typeof t==`object`&&t?Bt(e,t):typeof t==`function`?Rt(e,t()):zt(e,t)}function zt(e,t){return t=t===!0?t=``:t||``,(t=>(e.classList.add(...t),()=>{e.classList.remove(...t)}))((t=>t.split(` `).filter(t=>!e.classList.contains(t)).filter(Boolean))(t))}function Bt(e,t){let n=e=>e.split(` `).filter(Boolean),r=Object.entries(t).flatMap(([e,t])=>t?n(e):!1).filter(Boolean),i=Object.entries(t).flatMap(([e,t])=>t?!1:n(e)).filter(Boolean),a=[],o=[];return i.forEach(t=>{e.classList.contains(t)&&(e.classList.remove(t),o.push(t))}),r.forEach(t=>{e.classList.contains(t)||(e.classList.add(t),a.push(t))}),()=>{o.forEach(t=>e.classList.add(t)),a.forEach(t=>e.classList.remove(t))}}function Vt(e,t){return typeof t==`object`&&t?Ht(e,t):Ut(e,t)}function Ht(e,t){let n={};return Object.entries(t).forEach(([t,r])=>{n[t]=e.style[t],t.startsWith(`--`)||(t=Wt(t)),e.style.setProperty(t,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute(`style`)}),()=>{Vt(e,n)}}function Ut(e,t){let n=e.getAttribute(`style`,t);return e.setAttribute(`style`,t),()=>{e.setAttribute(`style`,n||``)}}function Wt(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function Gt(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}L(`transition`,(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r==`function`&&(r=i(r)),r!==!1&&(!r||typeof r==`boolean`?qt(e,n,t):Kt(e,r,t))});function Kt(e,t,n){Jt(e,Rt,``),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}function qt(e,t,n){Jt(e,Vt);let r=!t.includes(`in`)&&!t.includes(`out`)&&!n,i=r||t.includes(`in`)||[`enter`].includes(n),a=r||t.includes(`out`)||[`leave`].includes(n);t.includes(`in`)&&!r&&(t=t.filter((e,n)=>n<t.indexOf(`out`))),t.includes(`out`)&&!r&&(t=t.filter((e,n)=>n>t.indexOf(`out`)));let o=!t.includes(`opacity`)&&!t.includes(`scale`),s=o||t.includes(`opacity`),c=o||t.includes(`scale`),l=+!s,u=c?Qt(t,`scale`,95)/100:1,d=Qt(t,`delay`,0)/1e3,f=Qt(t,`origin`,`center`),p=`opacity, transform`,m=Qt(t,`duration`,150)/1e3,h=Qt(t,`duration`,75)/1e3,g=`cubic-bezier(0.4, 0.0, 0.2, 1)`;i&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:`scale(1)`}),a&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:`scale(1)`},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function Jt(e,t,n={}){e._x_transition||={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},r=()=>{}){Xt(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){Xt(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}}}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState===`visible`?requestAnimationFrame:setTimeout,a=()=>i(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((t,n)=>{e._x_transition.out(()=>{},()=>t(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>n({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let t=Yt(e);t?(t._x_hideChildren||=[],t._x_hideChildren.push(e)):i(()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then(([e])=>e?.());return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch(e=>{if(!e.isFromCancelledTransition)throw e})})})};function Yt(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Yt(t)}function Xt(e,t,{during:n,start:r,end:i}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){a(),o();return}let s,c,l;Zt(e,{start(){s=t(e,r)},during(){c=t(e,n)},before:a,end(){s(),l=t(e,i)},after:o,cleanup(){c(),l()}})}function Zt(e,t){let n,r,i,a=Gt(()=>{N(()=>{n=!0,r||t.before(),i||(t.end(),It()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Gt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},N(()=>{t.start(),t.during()}),Lt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,``).replace(`s`,``))*1e3,o=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,``).replace(`s`,``))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace(`s`,``))*1e3),N(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(N(()=>{t.end()}),It(),setTimeout(e._x_transitioning.finish,a+o),i=!0)})})}function Qt(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t===`scale`&&isNaN(r))return n;if(t===`duration`||t===`delay`){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return t===`origin`&&[`top`,`right`,`left`,`center`,`bottom`].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(` `):r}var $t=!1;function en(e,t=()=>{}){return(...n)=>$t?t(...n):e(...n)}function tn(e){return(...t)=>$t&&e(...t)}var nn=[];function rn(e){nn.push(e)}function an(e,t){nn.forEach(n=>n(e,t)),$t=!0,ln(()=>{At(t,(e,t)=>{t(e,()=>{})})}),$t=!1}var on=!1;function sn(e,t){t._x_dataStack||=e._x_dataStack,$t=!0,on=!0,ln(()=>{cn(t)}),$t=!1,on=!1}function cn(e){let t=!1;At(e,(e,n)=>{ht(e,(e,r)=>{if(t&&Et(e))return r();t=!0,n(e,r)})})}function ln(e){let t=h;x((e,n)=>{let r=t(e);return g(r),()=>{}}),e(),x(t)}function un(e,t,n,r=[]){switch(e._x_bindings||=m({}),e._x_bindings[t]=n,t=r.includes(`camel`)?yn(t):t,t){case`value`:dn(e,n);break;case`style`:pn(e,n);break;case`class`:fn(e,n);break;case`selected`:case`checked`:mn(e,t,n);break;default:hn(e,t,n);break}}function dn(e,t){if(kn(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t==`boolean`?e.checked=xn(e.value)===t:e.checked=bn(e.value,t));else if(On(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!=`boolean`&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(t=>bn(t,e.value)):e.checked=!!t;else if(e.tagName===`SELECT`)vn(e,t);else{if(e.value===t)return;e.value=t===void 0?``:t}}function fn(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Rt(e,t)}function pn(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Vt(e,t)}function mn(e,t,n){hn(e,t,n),_n(e,t,n)}function hn(e,t,n){[null,void 0,!1].includes(n)&&wn(t)?e.removeAttribute(t):(Cn(t)&&(n=t),gn(e,t,n))}function gn(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function _n(e,t,n){e[t]!==n&&(e[t]=n)}function vn(e,t){let n=[].concat(t).map(e=>e+``);Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}function yn(e){return e.toLowerCase().replace(/-(w)/g,(e,t)=>t.toUpperCase())}function bn(e,t){return e==t}function xn(e){return[1,`1`,`true`,`on`,`yes`,!0].includes(e)?!0:[0,`0`,`false`,`off`,`no`,!1].includes(e)?!1:e?!!e:null}var Sn=new Set(`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.formnovalidate.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected.shadowrootclonable.shadowrootdelegatesfocus.shadowrootserializable`.split(`.`));function Cn(e){return Sn.has(e)}function wn(e){return![`aria-pressed`,`aria-checked`,`aria-expanded`,`aria-selected`].includes(e)}function Tn(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Dn(e,t,n)}function En(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let n=e._x_inlineBindings[t];return n.extract=r,Ae(()=>je(e,n.expression))}return Dn(e,t,n)}function Dn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n==`function`?n():n:r===``?!0:Cn(t)?!![t,`true`].includes(r):r}function On(e){return e.type===`checkbox`||e.localName===`ui-checkbox`||e.localName===`ui-switch`}function kn(e){return e.type===`radio`||e.localName===`ui-radio`}function An(e,t){let n;return function(){let r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,i)},t)}}function jn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function Mn({get:e,set:t},{get:n,set:r}){let i=!0,a,o=h(()=>{let o=e(),s=n();if(i)r(Nn(o)),i=!1;else{let e=JSON.stringify(o),n=JSON.stringify(s);e===a?e!==n&&t(Nn(s)):r(Nn(o))}a=JSON.stringify(e()),JSON.stringify(n())});return()=>{g(o)}}function Nn(e){return typeof e==`object`?JSON.parse(JSON.stringify(e)):e}function Pn(e){(Array.isArray(e)?e:[e]).forEach(e=>e(Kn))}var Fn={},In=!1;function Ln(e,t){if(In||=(Fn=m(Fn),!0),t===void 0)return Fn[e];Fn[e]=t,ve(Fn[e]),typeof t==`object`&&t&&t.hasOwnProperty(`init`)&&typeof t.init==`function`&&Fn[e].init()}function Rn(){return Fn}var zn={};function Bn(e,t){let n=typeof t==`function`?t:()=>t;return e instanceof Element?Hn(e,n()):(zn[e]=n,()=>{})}function Vn(e){return Object.entries(zn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...e)=>n(...e)}})}),e}function Hn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([e,t])=>({name:e,value:t})),a=Xe(i);return i=i.map(e=>a.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),Ye(e,i,n).map(e=>{r.push(e.runCleanups),e()}),()=>{for(;r.length;)r.pop()()}}var Un={};function Wn(e,t){Un[e]=t}function Gn(e,t){return Object.entries(Un).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...e)=>r.bind(t)(...e)},enumerable:!1})}),e}var Kn={get reactive(){return m},get release(){return g},get effect(){return h},get raw(){return _},get transaction(){return w},version:`3.15.8`,flushAndStopDeferringMutations:ue,dontAutoEvaluateFunctions:Ae,disableEffectScheduling:y,startObservingMutations:re,stopObservingMutations:ie,setReactivityEngine:b,onAttributeRemoved:A,onAttributesAdded:ee,closestDataStack:me,skipDuringClone:en,onlyDuringClone:tn,addRootSelector:St,addInitSelector:Ct,setErrorHandler:De,interceptClone:rn,addScopeToNode:pe,deferMutations:le,mapAttributes:st,evaluateLater:I,interceptInit:Ot,initInterceptors:ve,injectMagics:F,setEvaluator:Ne,setRawEvaluator:Fe,mergeProxies:he,extractProp:En,findClosest:Tt,onElRemoved:k,closestRoot:wt,destroyTree:jt,interceptor:ye,transition:Xt,setStyles:Vt,mutateDom:N,directive:L,entangle:Mn,throttle:jn,debounce:An,evaluate:je,evaluateRaw:He,initTree:At,nextTick:Ft,prefixed:Ge,prefix:Ke,plugin:Pn,magic:P,store:Ln,start:_t,clone:sn,cloneNode:an,bound:Tn,$data:fe,watch:C,walk:ht,data:Wn,bind:Bn};function qn(e,t){let n=Object.create(null),r=e.split(`,`);for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var Jn=Object.freeze({});Object.freeze([]);var Yn=Object.prototype.hasOwnProperty,Xn=(e,t)=>Yn.call(e,t),Zn=Array.isArray,Qn=e=>rr(e)===`[object Map]`,$n=e=>typeof e==`string`,er=e=>typeof e==`symbol`,tr=e=>typeof e==`object`&&!!e,nr=Object.prototype.toString,rr=e=>nr.call(e),ir=e=>rr(e).slice(8,-1),ar=e=>$n(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,or=(e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=(e,t)=>e!==t&&(e===e||t===t),cr=new WeakMap,lr=[],ur,dr=Symbol(`iterate`),fr=Symbol(`Map key iterate`);function pr(e){return e&&e._isEffect===!0}function mr(e,t=Jn){pr(e)&&(e=e.raw);let n=_r(e,t);return t.lazy||n(),n}function hr(e){e.active&&=(vr(e),e.options.onStop&&e.options.onStop(),!1)}var gr=0;function _r(e,t){let n=function(){if(!n.active)return e();if(!lr.includes(n)){vr(n);try{return Sr(),lr.push(n),ur=n,e()}finally{lr.pop(),Cr(),ur=lr[lr.length-1]}}};return n.id=gr++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function vr(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var yr=!0,br=[];function xr(){br.push(yr),yr=!1}function Sr(){br.push(yr),yr=!0}function Cr(){let e=br.pop();yr=e===void 0?!0:e}function wr(e,t,n){if(!yr||ur===void 0)return;let r=cr.get(e);r||cr.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(ur)||(i.add(ur),ur.deps.push(i),ur.options.onTrack&&ur.options.onTrack({effect:ur,target:e,type:t,key:n}))}function Tr(e,t,n,r,i,a){let o=cr.get(e);if(!o)return;let s=new Set,c=e=>{e&&e.forEach(e=>{(e!==ur||e.allowRecurse)&&s.add(e)})};if(t===`clear`)o.forEach(c);else if(n===`length`&&Zn(e))o.forEach((e,t)=>{(t===`length`||t>=r)&&c(e)});else switch(n!==void 0&&c(o.get(n)),t){case`add`:Zn(e)?ar(n)&&c(o.get(`length`)):(c(o.get(dr)),Qn(e)&&c(o.get(fr)));break;case`delete`:Zn(e)||(c(o.get(dr)),Qn(e)&&c(o.get(fr)));break;case`set`:Qn(e)&&c(o.get(dr));break}s.forEach(o=>{o.options.onTrigger&&o.options.onTrigger({effect:o,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:a}),o.options.scheduler?o.options.scheduler(o):o()})}var Er=qn(`__proto__,__v_isRef,__isVue`),Dr=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(er)),Or=Mr(),kr=Mr(!0),Ar=jr();function jr(){let e={};return[`includes`,`indexOf`,`lastIndexOf`].forEach(t=>{e[t]=function(...e){let n=z(this);for(let e=0,t=this.length;e<t;e++)wr(n,`get`,e+``);let r=n[t](...e);return r===-1||r===!1?n[t](...e.map(z)):r}}),[`push`,`pop`,`shift`,`unshift`,`splice`].forEach(t=>{e[t]=function(...e){xr();let n=z(this)[t].apply(this,e);return Cr(),n}}),e}function Mr(e=!1,t=!1){return function(n,r,i){if(r===`__v_isReactive`)return!e;if(r===`__v_isReadonly`)return e;if(r===`__v_raw`&&i===(e?t?fi:di:t?ui:li).get(n))return n;let a=Zn(n);if(!e&&a&&Xn(Ar,r))return Reflect.get(Ar,r,i);let o=Reflect.get(n,r,i);return(er(r)?Dr.has(r):Er(r))||(e||wr(n,`get`,r),t)?o:vi(o)?!a||!ar(r)?o.value:o:tr(o)?e?gi(o):hi(o):o}}var Nr=Pr();function Pr(e=!1){return function(t,n,r,i){let a=t[n];if(!e&&(r=z(r),a=z(a),!Zn(t)&&vi(a)&&!vi(r)))return a.value=r,!0;let o=Zn(t)&&ar(n)?Number(n)<t.length:Xn(t,n),s=Reflect.set(t,n,r,i);return t===z(i)&&(o?sr(r,a)&&Tr(t,`set`,n,r,a):Tr(t,`add`,n,r)),s}}function Fr(e,t){let n=Xn(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Tr(e,`delete`,t,void 0,r),i}function Ir(e,t){let n=Reflect.has(e,t);return(!er(t)||!Dr.has(t))&&wr(e,`has`,t),n}function Lr(e){return wr(e,`iterate`,Zn(e)?`length`:dr),Reflect.ownKeys(e)}var Rr={get:Or,set:Nr,deleteProperty:Fr,has:Ir,ownKeys:Lr},zr={get:kr,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Br=e=>tr(e)?hi(e):e,Vr=e=>tr(e)?gi(e):e,Hr=e=>e,Ur=e=>Reflect.getPrototypeOf(e);function Wr(e,t,n=!1,r=!1){e=e.__v_raw;let i=z(e),a=z(t);t!==a&&!n&&wr(i,`get`,t),!n&&wr(i,`get`,a);let{has:o}=Ur(i),s=r?Hr:n?Vr:Br;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Gr(e,t=!1){let n=this.__v_raw,r=z(n),i=z(e);return e!==i&&!t&&wr(r,`has`,e),!t&&wr(r,`has`,i),e===i?n.has(e):n.has(e)||n.has(i)}function Kr(e,t=!1){return e=e.__v_raw,!t&&wr(z(e),`iterate`,dr),Reflect.get(e,`size`,e)}function qr(e){e=z(e);let t=z(this);return Ur(t).has.call(t,e)||(t.add(e),Tr(t,`add`,e,e)),this}function Jr(e,t){t=z(t);let n=z(this),{has:r,get:i}=Ur(n),a=r.call(n,e);a?ci(n,r,e):(e=z(e),a=r.call(n,e));let o=i.call(n,e);return n.set(e,t),a?sr(t,o)&&Tr(n,`set`,e,t,o):Tr(n,`add`,e,t),this}function Yr(e){let t=z(this),{has:n,get:r}=Ur(t),i=n.call(t,e);i?ci(t,n,e):(e=z(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Tr(t,`delete`,e,void 0,a),o}function Xr(){let e=z(this),t=e.size!==0,n=Qn(e)?new Map(e):new Set(e),r=e.clear();return t&&Tr(e,`clear`,void 0,void 0,n),r}function Zr(e,t){return function(n,r){let i=this,a=i.__v_raw,o=z(a),s=t?Hr:e?Vr:Br;return!e&&wr(o,`iterate`,dr),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}}function Qr(e,t,n){return function(...r){let i=this.__v_raw,a=z(i),o=Qn(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Hr:t?Vr:Br;return!t&&wr(a,`iterate`,c?fr:dr),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function $r(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:``;console.warn(`${or(e)} operation ${n}failed: target is readonly.`,z(this))}return e===`delete`?!1:this}}function ei(){let e={get(e){return Wr(this,e)},get size(){return Kr(this)},has:Gr,add:qr,set:Jr,delete:Yr,clear:Xr,forEach:Zr(!1,!1)},t={get(e){return Wr(this,e,!1,!0)},get size(){return Kr(this)},has:Gr,add:qr,set:Jr,delete:Yr,clear:Xr,forEach:Zr(!1,!0)},n={get(e){return Wr(this,e,!0)},get size(){return Kr(this,!0)},has(e){return Gr.call(this,e,!0)},add:$r(`add`),set:$r(`set`),delete:$r(`delete`),clear:$r(`clear`),forEach:Zr(!0,!1)},r={get(e){return Wr(this,e,!0,!0)},get size(){return Kr(this,!0)},has(e){return Gr.call(this,e,!0)},add:$r(`add`),set:$r(`set`),delete:$r(`delete`),clear:$r(`clear`),forEach:Zr(!0,!0)};return[`keys`,`values`,`entries`,Symbol.iterator].forEach(i=>{e[i]=Qr(i,!1,!1),n[i]=Qr(i,!0,!1),t[i]=Qr(i,!1,!0),r[i]=Qr(i,!0,!0)}),[e,n,t,r]}var[ti,ni,ri,ii]=ei();function ai(e,t){let n=t?e?ii:ri:e?ni:ti;return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(Xn(n,r)&&r in t?n:t,r,i)}var oi={get:ai(!1,!1)},si={get:ai(!0,!1)};function ci(e,t,n){let r=z(n);if(r!==n&&t.call(e,r)){let t=ir(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${t===`Map`?` as keys`:``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var li=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap;function pi(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function mi(e){return e.__v_skip||!Object.isExtensible(e)?0:pi(ir(e))}function hi(e){return e&&e.__v_isReadonly?e:_i(e,!1,Rr,oi,li)}function gi(e){return _i(e,!0,zr,si,di)}function _i(e,t,n,r,i){if(!tr(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let o=mi(e);if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function z(e){return e&&z(e.__v_raw)||e}function vi(e){return!!(e&&e.__v_isRef===!0)}P(`nextTick`,()=>Ft),P(`dispatch`,e=>mt.bind(mt,e)),P(`watch`,(e,{evaluateLater:t,cleanup:n})=>(e,r)=>{let i=t(e);n(C(()=>{let e;return i(t=>e=t),e},r))}),P(`store`,Rn),P(`data`,e=>fe(e)),P(`root`,e=>wt(e)),P(`refs`,e=>(e._x_refs_proxy||=he(yi(e)),e._x_refs_proxy));function yi(e){let t=[];return Tt(e,e=>{e._x_refs&&t.push(e._x_refs)}),t}var bi={};function xi(e){return bi[e]||(bi[e]=0),++bi[e]}function Si(e,t){return Tt(e,e=>{if(e._x_ids&&e._x_ids[t])return!0})}function Ci(e,t){e._x_ids||={},e._x_ids[t]||(e._x_ids[t]=xi(t))}P(`id`,(e,{cleanup:t})=>(n,r=null)=>wi(e,`${n}${r?`-${r}`:``}`,t,()=>{let t=Si(e,n),i=t?t._x_ids[n]:xi(n);return r?`${n}-${i}-${r}`:`${n}-${i}`})),rn((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function wi(e,t,n,r){if(e._x_id||={},e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}P(`el`,e=>e),Ti(`Focus`,`focus`,`focus`),Ti(`Persist`,`persist`,`persist`);function Ti(e,t,n){P(t,r=>R(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}L(`modelable`,(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let a=r(t),o=()=>{let e;return a(t=>e=t),e},s=r(`${t} = __placeholder`),c=e=>s(()=>{},{scope:{__placeholder:e}});c(o()),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.set;i(Mn({get(){return t()},set(e){n(e)}},{get(){return o()},set(e){c(e)}}))})}),L(`teleport`,(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!==`template`&&R(`x-teleport can only be used on a <template> tag`,e);let i=Di(n),a=e.content.cloneNode(!0).firstElementChild;e._x_teleport=a,a._x_teleportBack=e,e.setAttribute(`data-teleport-template`,!0),a.setAttribute(`data-teleport-target`,!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(t=>{a.addEventListener(t,t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))})}),pe(a,{},e);let o=(e,t,n)=>{n.includes(`prepend`)?t.parentNode.insertBefore(e,t):n.includes(`append`)?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};N(()=>{o(a,i,t),en(()=>{At(a)})()}),e._x_teleportPutBack=()=>{let r=Di(n);N(()=>{o(e._x_teleport,r,t)})},r(()=>N(()=>{a.remove(),jt(a)}))});var Ei=document.createElement(`div`);function Di(e){let t=en(()=>document.querySelector(e),()=>Ei)();return t||R(`Cannot find x-teleport element for selector: "${e}"`),t}var Oi=()=>{};Oi.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes(`self`)?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes(`self`)?delete e._x_ignoreSelf:delete e._x_ignore})},L(`ignore`,Oi),L(`effect`,en((e,{expression:t},{effect:n})=>{n(I(e,t))}));function ki(e,t,n,r){let i=e,a=e=>r(e),o={},s=(e,t)=>n=>t(e,n);if(n.includes(`dot`)&&(t=Ai(t)),n.includes(`camel`)&&(t=ji(t)),n.includes(`passive`)&&(o.passive=!0),n.includes(`capture`)&&(o.capture=!0),n.includes(`window`)&&(i=window),n.includes(`document`)&&(i=document),n.includes(`debounce`)){let e=n[n.indexOf(`debounce`)+1]||`invalid-wait`,t=Mi(e.split(`ms`)[0])?Number(e.split(`ms`)[0]):250;a=An(a,t)}if(n.includes(`throttle`)){let e=n[n.indexOf(`throttle`)+1]||`invalid-wait`,t=Mi(e.split(`ms`)[0])?Number(e.split(`ms`)[0]):250;a=jn(a,t)}return n.includes(`prevent`)&&(a=s(a,(e,t)=>{t.preventDefault(),e(t)})),n.includes(`stop`)&&(a=s(a,(e,t)=>{t.stopPropagation(),e(t)})),n.includes(`once`)&&(a=s(a,(e,n)=>{e(n),i.removeEventListener(t,a,o)})),(n.includes(`away`)||n.includes(`outside`))&&(i=document,a=s(a,(t,n)=>{e.contains(n.target)||n.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&t(n))})),n.includes(`self`)&&(a=s(a,(t,n)=>{n.target===e&&t(n)})),t===`submit`&&(a=s(a,(e,t)=>{t.target._x_pendingModelUpdates&&t.target._x_pendingModelUpdates.forEach(e=>e()),e(t)})),(Pi(t)||Fi(t))&&(a=s(a,(e,t)=>{Ii(t,n)||e(t)})),i.addEventListener(t,a,o),()=>{i.removeEventListener(t,a,o)}}function Ai(e){return e.replace(/-/g,`.`)}function ji(e){return e.toLowerCase().replace(/-(w)/g,(e,t)=>t.toUpperCase())}function Mi(e){return!Array.isArray(e)&&!isNaN(e)}function Ni(e){return[` `,`_`].includes(e)?e:e.replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[_s]/,`-`).toLowerCase()}function Pi(e){return[`keydown`,`keyup`].includes(e)}function Fi(e){return[`contextmenu`,`click`,`mouse`].some(t=>e.includes(t))}function Ii(e,t){let n=t.filter(e=>![`window`,`document`,`prevent`,`stop`,`once`,`capture`,`self`,`away`,`outside`,`passive`,`preserve-scroll`,`blur`,`change`,`lazy`].includes(e));if(n.includes(`debounce`)){let e=n.indexOf(`debounce`);n.splice(e,Mi((n[e+1]||`invalid-wait`).split(`ms`)[0])?2:1)}if(n.includes(`throttle`)){let e=n.indexOf(`throttle`);n.splice(e,Mi((n[e+1]||`invalid-wait`).split(`ms`)[0])?2:1)}if(n.length===0||n.length===1&&Li(e.key).includes(n[0]))return!1;let r=[`ctrl`,`shift`,`alt`,`meta`,`cmd`,`super`].filter(e=>n.includes(e));return n=n.filter(e=>!r.includes(e)),!(r.length>0&&r.filter(t=>((t===`cmd`||t===`super`)&&(t=`meta`),e[`${t}Key`])).length===r.length&&(Fi(e.type)||Li(e.key).includes(n[0])))}function Li(e){if(!e)return[];e=Ni(e);let t={ctrl:`control`,slash:`/`,space:` `,spacebar:` `,cmd:`meta`,esc:`escape`,up:`arrow-up`,down:`arrow-down`,left:`arrow-left`,right:`arrow-right`,period:`.`,comma:`,`,equal:`=`,minus:`-`,underscore:`_`};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(e=>e)}L(`model`,(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let a=e;t.includes(`parent`)&&(a=e.parentNode);let o=I(a,n),s;s=typeof n==`string`?I(a,`${n} = __placeholder`):typeof n==`function`&&typeof n()==`string`?I(a,`${n()} = __placeholder`):()=>{};let c=()=>{let e;return o(t=>e=t),Hi(e)?e.get():e},l=e=>{let t;o(e=>t=e),Hi(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};typeof n==`string`&&e.type===`radio`&&N(()=>{e.hasAttribute(`name`)||e.setAttribute(`name`,n)});let u=t.includes(`change`)||t.includes(`lazy`),d=t.includes(`blur`),f=t.includes(`enter`),p=u||d||f,m;if($t)m=()=>{};else if(p){let n=[],r=n=>l(Ri(e,t,n,c()));if(u&&n.push(ki(e,`change`,t,r)),d&&(n.push(ki(e,`blur`,t,r)),e.form)){let t=()=>r({target:e});e.form._x_pendingModelUpdates||(e.form._x_pendingModelUpdates=[]),e.form._x_pendingModelUpdates.push(t),i(()=>e.form._x_pendingModelUpdates.splice(e.form._x_pendingModelUpdates.indexOf(t),1))}f&&n.push(ki(e,`keydown`,t,e=>{e.key===`Enter`&&r(e)})),m=()=>n.forEach(e=>e())}else m=ki(e,e.tagName.toLowerCase()===`select`||[`checkbox`,`radio`].includes(e.type)?`change`:`input`,t,n=>{l(Ri(e,t,n,c()))});if(t.includes(`fill`)&&([void 0,null,``].includes(c())||On(e)&&Array.isArray(c())||e.tagName.toLowerCase()===`select`&&e.multiple)&&l(Ri(e,t,{target:e},c())),e._x_removeModelListeners||={},e._x_removeModelListeners.default=m,i(()=>e._x_removeModelListeners.default()),e.form){let n=ki(e.form,`reset`,[],n=>{Ft(()=>e._x_model&&e._x_model.set(Ri(e,t,{target:e},c())))});i(()=>n())}e._x_model={get(){return c()},set(e){l(e)}},e._x_forceModelUpdate=t=>{t===void 0&&typeof n==`string`&&n.match(/./)&&(t=``),window.fromModel=!0,N(()=>un(e,`value`,t)),delete window.fromModel},r(()=>{let n=c();t.includes(`unintrusive`)&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)})});function Ri(e,t,n,r){return N(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(On(e))if(Array.isArray(r)){let e=null;return e=t.includes(`number`)?zi(n.target.value):t.includes(`boolean`)?xn(n.target.value):n.target.value,n.target.checked?r.includes(e)?r:r.concat([e]):r.filter(t=>!Bi(t,e))}else return n.target.checked;else if(e.tagName.toLowerCase()===`select`&&e.multiple)return t.includes(`number`)?Array.from(n.target.selectedOptions).map(e=>zi(e.value||e.text)):t.includes(`boolean`)?Array.from(n.target.selectedOptions).map(e=>xn(e.value||e.text)):Array.from(n.target.selectedOptions).map(e=>e.value||e.text);else{let i;return i=kn(e)?n.target.checked?n.target.value:r:n.target.value,t.includes(`number`)?zi(i):t.includes(`boolean`)?xn(i):t.includes(`trim`)?i.trim():i}})}function zi(e){let t=e?parseFloat(e):null;return Vi(t)?t:e}function Bi(e,t){return e==t}function Vi(e){return!Array.isArray(e)&&!isNaN(e)}function Hi(e){return typeof e==`object`&&!!e&&typeof e.get==`function`&&typeof e.set==`function`}L(`cloak`,e=>queueMicrotask(()=>N(()=>e.removeAttribute(Ge(`cloak`))))),Ct(()=>`[${Ge(`init`)}]`),L(`init`,en((e,{expression:t},{evaluate:n})=>typeof t==`string`?!!t.trim()&&n(t,{},!1):n(t,{},!1))),L(`text`,(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{N(()=>{e.textContent=t})})})}),L(`html`,(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{N(()=>{e.innerHTML=t,e._x_ignoreSelf=!0,At(e),delete e._x_ignoreSelf})})})}),st(rt(`:`,it(Ge(`bind:`))));var Ui=(e,{value:t,modifiers:n,expression:r,original:i},{effect:a,cleanup:o})=>{if(!t){let t={};Vn(t),I(e,r)(t=>{Hn(e,t,i)},{scope:t});return}if(t===`key`)return Wi(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=I(e,r);a(()=>s(i=>{i===void 0&&typeof r==`string`&&r.match(/./)&&(i=``),N(()=>un(e,t,i,n))})),o(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Ui.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||={},e._x_inlineBindings[t]={expression:r,extract:!1})},L(`bind`,Ui);function Wi(e,t){e._x_keyExpression=t}St(()=>`[${Ge(`data`)}]`),L(`data`,(e,{expression:t},{cleanup:n})=>{if(Gi(e))return;t=t===``?`{}`:t;let r={};F(r,e);let i={};Gn(i,r);let a=je(e,t,{scope:i});(a===void 0||a===!0)&&(a={}),F(a,e);let o=m(a);ve(o);let s=pe(e,o);o.init&&je(e,o.init),n(()=>{o.destroy&&je(e,o.destroy),s()})}),rn((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute(`data-has-alpine-state`,!0))});function Gi(e){return $t?on?!0:e.hasAttribute(`data-has-alpine-state`):!1}L(`show`,(e,{modifiers:t,expression:n},{effect:r})=>{let i=I(e,n);e._x_doHide||=()=>{N(()=>{e.style.setProperty(`display`,`none`,t.includes(`important`)?`important`:void 0)})},e._x_doShow||=()=>{N(()=>{e.style.length===1&&e.style.display===`none`?e.removeAttribute(`style`):e.style.removeProperty(`display`)})};let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},s=()=>setTimeout(o),c=Gt(e=>e?o():a(),t=>{typeof e._x_toggleAndCascadeWithTransitions==`function`?e._x_toggleAndCascadeWithTransitions(e,t,o,a):t?s():a()}),l,u=!0;r(()=>i(e=>{!u&&e===l||(t.includes(`immediate`)&&(e?s():a()),c(e),l=e,u=!1)}))}),L(`for`,(e,{expression:t},{effect:n,cleanup:r})=>{let i=qi(t),a=I(e,i.items),o=I(e,e._x_keyExpression||`index`);e._x_prevKeys=[],e._x_lookup={},n(()=>Ki(e,i,a,o)),r(()=>{Object.values(e._x_lookup).forEach(e=>N(()=>{jt(e),e.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function Ki(e,t,n,r){let i=e=>typeof e==`object`&&!Array.isArray(e),a=e;n(n=>{Yi(n)&&n>=0&&(n=Array.from(Array(n).keys(),e=>e+1)),n===void 0&&(n=[]);let o=e._x_lookup,s=e._x_prevKeys,c=[],l=[];if(i(n))n=Object.entries(n).map(([i,a])=>{let o=Ji(t,a,i,n);r(t=>{l.includes(t)&&R(`Duplicate key on x-for`,e),l.push(t)},{scope:{index:i,...o}}),c.push(o)});else for(let i=0;i<n.length;i++){let a=Ji(t,n[i],i,n);r(t=>{l.includes(t)&&R(`Duplicate key on x-for`,e),l.push(t)},{scope:{index:i,...a}}),c.push(a)}let u=[],d=[],f=[],p=[];for(let e=0;e<s.length;e++){let t=s[e];l.indexOf(t)===-1&&f.push(t)}s=s.filter(e=>!f.includes(e));let h=`template`;for(let e=0;e<l.length;e++){let t=l[e],n=s.indexOf(t);if(n===-1)s.splice(e,0,t),u.push([h,e]);else if(n!==e){let t=s.splice(e,1)[0],r=s.splice(n-1,1)[0];s.splice(e,0,r),s.splice(n,0,t),d.push([t,r])}else p.push(t);h=t}for(let e=0;e<f.length;e++){let t=f[e];t in o&&(N(()=>{jt(o[t]),o[t].remove()}),delete o[t])}for(let e=0;e<d.length;e++){let[t,n]=d[e],r=o[t],i=o[n],s=document.createElement(`div`);N(()=>{i||R(`x-for ":key" is undefined or invalid`,a,n,o),i.after(s),r.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),s.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),s.remove()}),i._x_refreshXForScope(c[l.indexOf(n)])}for(let e=0;e<u.length;e++){let[t,n]=u[e],r=t===`template`?a:o[t];r._x_currentIfEl&&(r=r._x_currentIfEl);let i=c[n],s=l[n],d=document.importNode(a.content,!0).firstElementChild,f=m(i);pe(d,f,a),d._x_refreshXForScope=e=>{Object.entries(e).forEach(([e,t])=>{f[e]=t})},N(()=>{r.after(d),en(()=>At(d))()}),typeof s==`object`&&R(`x-for key cannot be an object, it must be a string or an integer`,a),o[s]=d}for(let e=0;e<p.length;e++)o[p[e]]._x_refreshXForScope(c[l.indexOf(p[e])]);a._x_prevKeys=l})}function qi(e){let t=/,([^,}]]*)(?:,([^,}]]*))?$/,n=/^s*(|)s*$/g,r=e.match(/([sS]*?)s+(?:in|of)s+([sS]*)/);if(!r)return;let i={};i.items=r[2].trim();let a=r[1].replace(n,``).trim(),o=a.match(t);return o?(i.item=a.replace(t,``).trim(),i.index=o[1].trim(),o[2]&&(i.collection=o[2].trim())):i.item=a,i}function Ji(e,t,n,r){let i={};return/^[.*]$/.test(e.item)&&Array.isArray(t)?e.item.replace(`[`,``).replace(`]`,``).split(`,`).map(e=>e.trim()).forEach((e,n)=>{i[e]=t[n]}):/^{.*}$/.test(e.item)&&!Array.isArray(t)&&typeof t==`object`?e.item.replace(`{`,``).replace(`}`,``).split(`,`).map(e=>e.trim()).forEach(e=>{i[e]=t[e]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function Yi(e){return!Array.isArray(e)&&!isNaN(e)}function Xi(){}Xi.inline=(e,{expression:t},{cleanup:n})=>{let r=wt(e);r._x_refs||={},r._x_refs[t]=e,n(()=>delete r._x_refs[t])},L(`ref`,Xi),L(`if`,(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!==`template`&&R(`x-if can only be used on a <template> tag`,e);let i=I(e,t),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;return pe(t,{},e),N(()=>{e.after(t),en(()=>At(t))()}),e._x_currentIfEl=t,e._x_undoIf=()=>{N(()=>{jt(t),t.remove()}),delete e._x_currentIfEl},t},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(e=>{e?a():o()})),r(()=>e._x_undoIf&&e._x_undoIf())}),L(`id`,(e,{expression:t},{evaluate:n})=>{n(t).forEach(t=>Ci(e,t))}),rn((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),st(rt(`@`,it(Ge(`on:`)))),L(`on`,en((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let a=r?I(e,r):()=>{};e.tagName.toLowerCase()===`template`&&(e._x_forwardEvents||=[],e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=ki(e,t,n,e=>{a(()=>{},{scope:{$event:e},params:[e]})});i(()=>o())})),Zi(`Collapse`,`collapse`,`collapse`),Zi(`Intersect`,`intersect`,`intersect`),Zi(`Focus`,`trap`,`focus`),Zi(`Mask`,`mask`,`mask`);function Zi(e,t,n){L(t,r=>R(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}Kn.setEvaluator(Ie),Kn.setRawEvaluator(Ue),Kn.setReactivityEngine({reactive:hi,effect:mr,release:hr,raw:z});var Qi=Kn,$i=`bottom`,ea=`right`,ta=`left`,na=`auto`,ra=[`top`,$i,ea,ta],ia=`start`,aa=`clippingParents`,oa=`viewport`,sa=`popper`,ca=`reference`,la=ra.reduce(function(e,t){return e.concat([t+`-`+ia,t+`-end`])},[]),ua=[].concat(ra,[na]).reduce(function(e,t){return e.concat([t,t+`-`+ia,t+`-end`])},[]),da=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function fa(e){return e?(e.nodeName||``).toLowerCase():null}function B(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pa(e){return e instanceof B(e).Element||e instanceof Element}function ma(e){return e instanceof B(e).HTMLElement||e instanceof HTMLElement}function ha(e){return typeof ShadowRoot>`u`?!1:e instanceof B(e).ShadowRoot||e instanceof ShadowRoot}function ga(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!ma(i)||!fa(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function _a(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!ma(r)||!fa(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var va={name:`applyStyles`,enabled:!0,phase:`write`,fn:ga,effect:_a,requires:[`computeStyles`]};function ya(e){return e.split(`-`)[0]}var ba=Math.max,xa=Math.min,Sa=Math.round;function Ca(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function wa(){return!/^((?!chrome|android).)*safari/i.test(Ca())}function Ta(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&ma(e)&&(i=e.offsetWidth>0&&Sa(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Sa(r.height)/e.offsetHeight||1);var o=(pa(e)?B(e):window).visualViewport,s=!wa()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Ea(e){var t=Ta(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Da(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ha(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oa(e){return B(e).getComputedStyle(e)}function ka(e){return[`table`,`td`,`th`].indexOf(fa(e))>=0}function Aa(e){return((pa(e)?e.ownerDocument:e.document)||window.document).documentElement}function ja(e){return fa(e)===`html`?e:e.assignedSlot||e.parentNode||(ha(e)?e.host:null)||Aa(e)}function Ma(e){return!ma(e)||Oa(e).position===`fixed`?null:e.offsetParent}function Na(e){var t=/firefox/i.test(Ca());if(/Trident/i.test(Ca())&&ma(e)&&Oa(e).position===`fixed`)return null;var n=ja(e);for(ha(n)&&(n=n.host);ma(n)&&[`html`,`body`].indexOf(fa(n))<0;){var r=Oa(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Pa(e){for(var t=B(e),n=Ma(e);n&&ka(n)&&Oa(n).position===`static`;)n=Ma(n);return n&&(fa(n)===`html`||fa(n)===`body`&&Oa(n).position===`static`)?t:n||Na(e)||t}function Fa(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Ia(e,t,n){return ba(e,xa(t,n))}function La(e,t,n){var r=Ia(e,t,n);return r>n?n:r}function Ra(){return{top:0,right:0,bottom:0,left:0}}function za(e){return Object.assign({},Ra(),e)}function Ba(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Va=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,za(typeof e==`number`?Ba(e,ra):e)};function Ha(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ya(n.placement),c=Fa(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Va(i.padding,n),d=Ea(a),f=c===`y`?`top`:ta,p=c===`y`?$i:ea,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Pa(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Ia(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ua(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Da(t.elements.popper,r)&&(t.elements.arrow=r))}var Wa={name:`arrow`,enabled:!0,phase:`main`,fn:Ha,effect:Ua,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Ga(e){return e.split(`-`)[1]}var Ka={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function qa(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Sa(n*i)/i||0,y:Sa(r*i)/i||0}}function Ja(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=ta,b=`top`,x=window;if(l){var S=Pa(n),C=`clientHeight`,w=`clientWidth`;if(S===B(n)&&(S=Aa(n),Oa(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=$i;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=ea;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Ka),O=u===!0?qa({x:p,y:h},B(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Ya(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ya(t.placement),variation:Ga(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ja(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ja(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Xa={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Ya,data:{}},Za={passive:!0};function Qa(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=B(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Za)}),s&&c.addEventListener(`resize`,n.update,Za),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Za)}),s&&c.removeEventListener(`resize`,n.update,Za)}}var $a={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Qa,data:{}},eo={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function to(e){return e.replace(/left|right|bottom|top/g,function(e){return eo[e]})}var no={start:`end`,end:`start`};function ro(e){return e.replace(/start|end/g,function(e){return no[e]})}function io(e){var t=B(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ao(e){return Ta(Aa(e)).left+io(e).scrollLeft}function oo(e,t){var n=B(e),r=Aa(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=wa();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+ao(e),y:c}}function so(e){var t=Aa(e),n=io(e),r=e.ownerDocument?.body,i=ba(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ba(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+ao(e),s=-n.scrollTop;return Oa(r||t).direction===`rtl`&&(o+=ba(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function co(e){var t=Oa(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function lo(e){return[`html`,`body`,`#document`].indexOf(fa(e))>=0?e.ownerDocument.body:ma(e)&&co(e)?e:lo(ja(e))}function uo(e,t){t===void 0&&(t=[]);var n=lo(e),r=n===e.ownerDocument?.body,i=B(n),a=r?[i].concat(i.visualViewport||[],co(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(uo(ja(a)))}function fo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function po(e,t){var n=Ta(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function mo(e,t,n){return t===`viewport`?fo(oo(e,n)):pa(t)?po(t,n):fo(so(Aa(e)))}function ho(e){var t=uo(ja(e)),n=[`absolute`,`fixed`].indexOf(Oa(e).position)>=0&&ma(e)?Pa(e):e;return pa(n)?t.filter(function(e){return pa(e)&&Da(e,n)&&fa(e)!==`body`}):[]}function go(e,t,n,r){var i=t===`clippingParents`?ho(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=mo(e,n,r);return t.top=ba(i.top,t.top),t.right=xa(i.right,t.right),t.bottom=xa(i.bottom,t.bottom),t.left=ba(i.left,t.left),t},mo(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _o(e){var t=e.reference,n=e.element,r=e.placement,i=r?ya(r):null,a=r?Ga(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case $i:c={x:o,y:t.y+t.height};break;case ea:c={x:t.x+t.width,y:s};break;case ta:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Fa(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case ia:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function vo(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?aa:s,l=n.rootBoundary,u=l===void 0?oa:l,d=n.elementContext,f=d===void 0?sa:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=za(typeof g==`number`?Ba(g,ra):g),v=f===`popper`?ca:sa,y=e.rects.popper,b=e.elements[m?v:f],x=go(pa(b)?b:b.contextElement||Aa(e.elements.popper),c,u,o),S=Ta(e.elements.reference),C=_o({reference:S,element:y,strategy:`absolute`,placement:i}),w=fo(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function yo(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?ua:c,u=Ga(r),d=u?s?la:la.filter(function(e){return Ga(e)===u}):ra,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=vo(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[ya(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function bo(e){if(ya(e)===`auto`)return[];var t=to(e);return[ro(e),t,ro(t)]}function xo(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=ya(g)===g,v=c||(_||!m?[to(g)]:bo(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(ya(n)===`auto`?yo(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=ya(E),O=Ga(E)===ia,k=[`top`,$i].indexOf(D)>=0,ee=k?`width`:`height`,A=vo(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=k?O?ea:ta:O?$i:`top`;b[ee]>x[ee]&&(j=to(j));var M=to(j),te=[];if(a&&te.push(A[D]<=0),s&&te.push(A[j]<=0,A[M]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,re=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ie=ne;ie>0&&re(ie)!==`break`;ie--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var So={name:`flip`,enabled:!0,phase:`main`,fn:xo,requiresIfExists:[`offset`],data:{_skip:!1}};function Co(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wo(e){return[`top`,ea,$i,ta].some(function(t){return e[t]>=0})}function To(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=vo(t,{elementContext:`reference`}),s=vo(t,{altBoundary:!0}),c=Co(o,r),l=Co(s,i,a),u=wo(c),d=wo(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Eo={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:To};function Do(e,t,n){var r=ya(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Oo(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=ua.reduce(function(e,n){return e[n]=Do(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var ko={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Oo};function Ao(e){var t=e.state,n=e.name;t.modifiersData[n]=_o({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var jo={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Ao,data:{}};function Mo(e){return e===`x`?`y`:`x`}function No(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=vo(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=ya(t.placement),v=Ga(t.placement),y=!v,b=Fa(_),x=Mo(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:ta,ee=b===`y`?$i:ea,A=b===`y`?`height`:`width`,j=S[b],M=j+g[k],te=j-g[ee],ne=p?-w[A]/2:0,re=v===`start`?C[A]:w[A],ie=v===`start`?-w[A]:-C[A],ae=t.elements.arrow,oe=p&&ae?Ea(ae):{width:0,height:0},N=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Ra(),se=N[k],ce=N[ee],le=Ia(0,C[A],oe[A]),ue=y?C[A]/2-ne-le-se-E.mainAxis:re-le-se-E.mainAxis,de=y?-C[A]/2+ne+le+ce+E.mainAxis:ie+le+ce+E.mainAxis,fe=t.elements.arrow&&Pa(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=j+ue-me-pe,ge=j+de-me,_e=Ia(p?xa(M,he):M,j,p?ba(te,ge):te);S[b]=_e,O[b]=_e-j}if(s){var ve=b===`x`?`top`:ta,ye=b===`x`?$i:ea,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],P=be-g[ye],F=[`top`,ta].indexOf(_)!==-1,Ce=D?.[x]??0,we=F?Se:be-C[xe]-w[xe]-Ce+E.altAxis,Te=F?be+C[xe]+w[xe]-Ce-E.altAxis:P,Ee=p&&F?La(we,be,Te):Ia(p?we:Se,be,p?Te:P);S[x]=Ee,O[x]=Ee-be}t.modifiersData[r]=O}}var Po={name:`preventOverflow`,enabled:!0,phase:`main`,fn:No,requiresIfExists:[`offset`]};function Fo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Io(e){return e===B(e)||!ma(e)?io(e):Fo(e)}function Lo(e){var t=e.getBoundingClientRect(),n=Sa(t.width)/e.offsetWidth||1,r=Sa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ro(e,t,n){n===void 0&&(n=!1);var r=ma(t),i=ma(t)&&Lo(t),a=Aa(t),o=Ta(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((fa(t)!==`body`||co(a))&&(s=Io(t)),ma(t)?(c=Ta(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ao(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function zo(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Bo(e){var t=zo(e);return da.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Vo(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ho(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Uo={placement:`bottom`,modifiers:[],strategy:`absolute`};function Wo(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Go(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Uo:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Uo,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:pa(e)?uo(e):e.contextElement?uo(e.contextElement):[],popper:uo(t)};var s=Bo(Ho([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Wo(t,n)){i.rects={reference:Ro(t,Pa(n),i.options.strategy===`fixed`),popper:Ea(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Vo(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Wo(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Ko=Go({defaultModifiers:[$a,jo,Xa,va,ko,So,Po,Wa,Eo]}),qo=`tippy-box`,Jo=`tippy-content`,Yo=`tippy-backdrop`,Xo=`tippy-arrow`,Zo=`tippy-svg-arrow`,Qo={passive:!0,capture:!0},$o=function(){return document.body};function es(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function ts(e,t){var n={}.toString.call(e);return n.indexOf(`[object`)===0&&n.indexOf(t+`]`)>-1}function ns(e,t){return typeof e==`function`?e.apply(void 0,t):e}function rs(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function is(e){return e.split(/s+/).filter(Boolean)}function as(e){return[].concat(e)}function os(e,t){e.indexOf(t)===-1&&e.push(t)}function ss(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function cs(e){return e.split(`-`)[0]}function ls(e){return[].slice.call(e)}function us(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ds(){return document.createElement(`div`)}function fs(e){return[`Element`,`Fragment`].some(function(t){return ts(e,t)})}function ps(e){return ts(e,`NodeList`)}function ms(e){return ts(e,`MouseEvent`)}function hs(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function gs(e){return fs(e)?[e]:ps(e)?ls(e):Array.isArray(e)?e:ls(document.querySelectorAll(e))}function _s(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+`ms`)})}function vs(e,t){e.forEach(function(e){e&&e.setAttribute(`data-state`,t)})}function ys(e){var t,n=as(e)[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function bs(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,a=e.props.interactiveBorder,o=cs(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c=o===`bottom`?s.top.y:0,l=o===`top`?s.bottom.y:0,u=o===`right`?s.left.x:0,d=o===`left`?s.right.x:0,f=t.top-r+c>a,p=r-t.bottom-l>a,m=t.left-n+u>a,h=n-t.right-d>a;return f||p||m||h})}function xs(e,t,n){var r=t+`EventListener`;[`transitionend`,`webkitTransitionEnd`].forEach(function(t){e[r](t,n)})}function Ss(e,t){for(var n=t;n;){if(e.contains(n))return!0;n=n.getRootNode==null?void 0:n.getRootNode()?.host}return!1}var Cs={isTouch:!1},ws=0;function Ts(){Cs.isTouch||(Cs.isTouch=!0,window.performance&&document.addEventListener(`mousemove`,Es))}function Es(){var e=performance.now();e-ws<20&&(Cs.isTouch=!1,document.removeEventListener(`mousemove`,Es)),ws=e}function Ds(){var e=document.activeElement;if(hs(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Os(){document.addEventListener(`touchstart`,Ts,Qo),window.addEventListener(`blur`,Ds)}var ks=typeof window<`u`&&typeof document<`u`?!!window.msCrypto:!1,As=Object.assign({appendTo:$o,aria:{content:`auto`,expanded:`auto`},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:``,offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:`top`,plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:`mouseenter focus`,triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:`fade`,arrow:!0,content:``,inertia:!1,maxWidth:350,role:`tooltip`,theme:``,zIndex:9999}),js=Object.keys(As),Ms=function(e){Object.keys(e).forEach(function(t){As[t]=e[t]})};function Ns(e){var t=(e.plugins||[]).reduce(function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=e[r]===void 0?As[r]??i:e[r]),t},{});return Object.assign({},e,t)}function Ps(e,t){return(t?Object.keys(Ns(Object.assign({},As,{plugins:t}))):js).reduce(function(t,n){var r=(e.getAttribute(`data-tippy-`+n)||``).trim();if(!r)return t;if(n===`content`)t[n]=r;else try{t[n]=JSON.parse(r)}catch{t[n]=r}return t},{})}function Fs(e,t){var n=Object.assign({},t,{content:ns(t.content,[e])},t.ignoreAttributes?{}:Ps(e,t.plugins));return n.aria=Object.assign({},As.aria,n.aria),n.aria={expanded:n.aria.expanded===`auto`?t.interactive:n.aria.expanded,content:n.aria.content===`auto`?t.interactive?null:`describedby`:n.aria.content},n}var Is=function(){return`innerHTML`};function Ls(e,t){e[Is()]=t}function Rs(e){var t=ds();return e===!0?t.className=Xo:(t.className=Zo,fs(e)?t.appendChild(e):Ls(t,e)),t}function zs(e,t){fs(t.content)?(Ls(e,``),e.appendChild(t.content)):typeof t.content!=`function`&&(t.allowHTML?Ls(e,t.content):e.textContent=t.content)}function Bs(e){var t=e.firstElementChild,n=ls(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Jo)}),arrow:n.find(function(e){return e.classList.contains(Xo)||e.classList.contains(Zo)}),backdrop:n.find(function(e){return e.classList.contains(Yo)})}}function Vs(e){var t=ds(),n=ds();n.className=qo,n.setAttribute(`data-state`,`hidden`),n.setAttribute(`tabindex`,`-1`);var r=ds();r.className=Jo,r.setAttribute(`data-state`,`hidden`),zs(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(n,r){var i=Bs(t),a=i.box,o=i.content,s=i.arrow;r.theme?a.setAttribute(`data-theme`,r.theme):a.removeAttribute(`data-theme`),typeof r.animation==`string`?a.setAttribute(`data-animation`,r.animation):a.removeAttribute(`data-animation`),r.inertia?a.setAttribute(`data-inertia`,``):a.removeAttribute(`data-inertia`),a.style.maxWidth=typeof r.maxWidth==`number`?r.maxWidth+`px`:r.maxWidth,r.role?a.setAttribute(`role`,r.role):a.removeAttribute(`role`),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&zs(o,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(Rs(r.arrow))):a.appendChild(Rs(r.arrow)):s&&a.removeChild(s)}return{popper:t,onUpdate:i}}Vs.$$tippy=!0;var Hs=1,Us=[],Ws=[];function Gs(e,t){var n=Fs(e,Object.assign({},As,Ns(us(t)))),r,i,a,o=!1,s=!1,c=!1,l=!1,u,d,f,p=[],m=rs(he,n.interactiveDebounce),h,g=Hs++,_=null,v=ss(n.plugins),y={id:g,reference:e,popper:ds(),popperInstance:_,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:Te,setProps:Ee,setContent:De,show:Oe,hide:ke,hideWithInteractivity:Ae,enable:Ce,disable:we,unmount:je,destroy:I};if(!n.render)return y;var b=n.render(y),x=b.popper,S=b.onUpdate;x.setAttribute(`data-tippy-root`,``),x.id=`tippy-`+y.id,y.popper=x,e._tippy=y,x._tippy=y;var C=v.map(function(e){return e.fn(y)}),w=e.hasAttribute(`aria-expanded`);return fe(),ne(),j(),M(`onCreate`,[y]),n.showOnCreate&&P(),x.addEventListener(`mouseenter`,function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener(`mouseleave`,function(){y.props.interactive&&y.props.trigger.indexOf(`mouseenter`)>=0&&k().addEventListener(`mousemove`,m)}),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return T()[0]===`hold`}function D(){var e;return!!((e=y.props.render)!=null&&e.$$tippy)}function O(){return h||e}function k(){var e=O().parentNode;return e?ys(e):document}function ee(){return Bs(x)}function A(e){return y.state.isMounted&&!y.state.isVisible||Cs.isTouch||u&&u.type===`focus`?0:es(y.props.delay,+!e,As.delay)}function j(e){e===void 0&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?``:`none`,x.style.zIndex=``+y.props.zIndex}function M(e,t,n){if(n===void 0&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function te(){var t=y.props.aria;if(t.content){var n=`aria-`+t.content,r=x.id;as(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+` `+r:r);else{var i=t&&t.replace(r,``).trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function ne(){w||!y.props.aria.expanded||as(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute(`aria-expanded`,y.state.isVisible&&e===O()?`true`:`false`):e.removeAttribute(`aria-expanded`)})}function re(){k().removeEventListener(`mousemove`,m),Us=Us.filter(function(e){return e!==m})}function ie(t){if(!(Cs.isTouch&&(c||t.type===`mousedown`))){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&Ss(x,n))){if(as(y.props.triggerTarget||e).some(function(e){return Ss(e,n)})){if(Cs.isTouch||y.state.isVisible&&y.props.trigger.indexOf(`click`)>=0)return}else M(`onClickOutside`,[y,t]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),s=!0,setTimeout(function(){s=!1}),y.state.isMounted||se())}}}function ae(){c=!0}function oe(){c=!1}function N(){var e=k();e.addEventListener(`mousedown`,ie,!0),e.addEventListener(`touchend`,ie,Qo),e.addEventListener(`touchstart`,oe,Qo),e.addEventListener(`touchmove`,ae,Qo)}function se(){var e=k();e.removeEventListener(`mousedown`,ie,!0),e.removeEventListener(`touchend`,ie,Qo),e.removeEventListener(`touchstart`,oe,Qo),e.removeEventListener(`touchmove`,ae,Qo)}function ce(e,t){ue(e,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function le(e,t){ue(e,t)}function ue(e,t){var n=ee().box;function r(e){e.target===n&&(xs(n,`remove`,r),t())}if(e===0)return t();xs(n,`remove`,d),xs(n,`add`,r),d=r}function de(t,n,r){r===void 0&&(r=!1),as(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),p.push({node:e,eventType:t,handler:n,options:r})})}function fe(){E()&&(de(`touchstart`,me,{passive:!0}),de(`touchend`,ge,{passive:!0})),is(y.props.trigger).forEach(function(e){if(e!==`manual`)switch(de(e,me),e){case`mouseenter`:de(`mouseleave`,ge);break;case`focus`:de(ks?`focusout`:`blur`,_e);break;case`focusin`:de(`focusout`,_e);break}})}function pe(){p.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),p=[]}function me(e){var t=!1;if(!(!y.state.isEnabled||ve(e)||s)){var n=u?.type===`focus`;u=e,h=e.currentTarget,ne(),!y.state.isVisible&&ms(e)&&Us.forEach(function(t){return t(e)}),e.type===`click`&&(y.props.trigger.indexOf(`mouseenter`)<0||o)&&y.props.hideOnClick!==!1&&y.state.isVisible?t=!0:P(e),e.type===`click`&&(o=!t),t&&!n&&F(e)}}function he(e){var t=e.target,r=O().contains(t)||x.contains(t);e.type===`mousemove`&&r||bs(Se().concat(x).map(function(e){var t=e._tippy.popperInstance?.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:n}:null}).filter(Boolean),e)&&(re(),F(e))}function ge(e){if(!(ve(e)||y.props.trigger.indexOf(`click`)>=0&&o)){if(y.props.interactive){y.hideWithInteractivity(e);return}F(e)}}function _e(e){y.props.trigger.indexOf(`focusin`)<0&&e.target!==O()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||F(e)}function ve(e){return Cs.isTouch?E()!==e.type.indexOf(`touch`)>=0:!1}function ye(){be();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=D()?Bs(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||O()}:e,l=[{name:`offset`,options:{offset:i}},{name:`preventOverflow`,options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:`flip`,options:{padding:5}},{name:`computeStyles`,options:{adaptive:!o}},{name:`$$tippy`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state;if(D()){var n=ee().box;[`placement`,`reference-hidden`,`escaped`].forEach(function(e){e===`placement`?n.setAttribute(`data-placement`,t.placement):t.attributes.popper[`data-popper-`+e]?n.setAttribute(`data-`+e,``):n.removeAttribute(`data-`+e)}),t.attributes.popper={}}}}];D()&&s&&l.push({name:`arrow`,options:{element:s,padding:3}}),l.push.apply(l,n?.modifiers||[]),y.popperInstance=Ko(c,x,Object.assign({},n,{placement:r,onFirstUpdate:f,modifiers:l}))}function be(){y.popperInstance&&=(y.popperInstance.destroy(),null)}function xe(){var e=y.props.appendTo,t,n=O();t=y.props.interactive&&e===$o||e===`parent`?n.parentNode:ns(e,[n]),t.contains(x)||t.appendChild(x),y.state.isMounted=!0,ye()}function Se(){return ls(x.querySelectorAll(`[data-tippy-root]`))}function P(e){y.clearDelayTimeouts(),e&&M(`onTrigger`,[y,e]),N();var t=A(!0),n=T(),i=n[0],a=n[1];Cs.isTouch&&i===`hold`&&a&&(t=a),t?r=setTimeout(function(){y.show()},t):y.show()}function F(e){if(y.clearDelayTimeouts(),M(`onUntrigger`,[y,e]),!y.state.isVisible){se();return}if(!(y.props.trigger.indexOf(`mouseenter`)>=0&&y.props.trigger.indexOf(`click`)>=0&&[`mouseleave`,`mousemove`].indexOf(e.type)>=0&&o)){var t=A(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):a=requestAnimationFrame(function(){y.hide()})}}function Ce(){y.state.isEnabled=!0}function we(){y.hide(),y.state.isEnabled=!1}function Te(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function Ee(t){if(!y.state.isDestroyed){M(`onBeforeUpdate`,[y,t]),pe();var n=y.props,r=Fs(e,Object.assign({},n,us(t),{ignoreAttributes:!0}));y.props=r,fe(),n.interactiveDebounce!==r.interactiveDebounce&&(re(),m=rs(he,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?as(n.triggerTarget).forEach(function(e){e.removeAttribute(`aria-expanded`)}):r.triggerTarget&&e.removeAttribute(`aria-expanded`),ne(),j(),S&&S(n,r),y.popperInstance&&(ye(),Se().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),M(`onAfterUpdate`,[y,t])}}function De(e){y.setProps({content:e})}function Oe(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Cs.isTouch&&!y.props.touch,i=es(y.props.duration,0,As.duration);if(!(e||t||n||r)&&!O().hasAttribute(`disabled`)&&(M(`onShow`,[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,D()&&(x.style.visibility=`visible`),j(),N(),y.state.isMounted||(x.style.transition=`none`),D()){var a=ee(),o=a.box,s=a.content;_s([o,s],0)}f=function(){var e;if(!(!y.state.isVisible||l)){if(l=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=ee(),n=t.box,r=t.content;_s([n,r],i),vs([n,r],`visible`)}te(),ne(),os(Ws,y),(e=y.popperInstance)==null||e.forceUpdate(),M(`onMount`,[y]),y.props.animation&&D()&&le(i,function(){y.state.isShown=!0,M(`onShown`,[y])})}},xe()}}function ke(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=es(y.props.duration,1,As.duration);if(!(e||t||n)&&(M(`onHide`,[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,o=!1,D()&&(x.style.visibility=`hidden`),re(),se(),j(!0),D()){var i=ee(),a=i.box,s=i.content;y.props.animation&&(_s([a,s],r),vs([a,s],`hidden`))}te(),ne(),y.props.animation?D()&&ce(r,y.unmount):y.unmount()}}function Ae(e){k().addEventListener(`mousemove`,m),os(Us,m),m(e)}function je(){y.state.isVisible&&y.hide(),y.state.isMounted&&(be(),Se().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Ws=Ws.filter(function(e){return e!==y}),y.state.isMounted=!1,M(`onHidden`,[y]))}function I(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),pe(),delete e._tippy,y.state.isDestroyed=!0,M(`onDestroy`,[y]))}}function Ks(e,t){t===void 0&&(t={});var n=As.plugins.concat(t.plugins||[]);Os();var r=Object.assign({},t,{plugins:n}),i=gs(e).reduce(function(e,t){var n=t&&Gs(t,r);return n&&e.push(n),e},[]);return fs(e)?i[0]:i}Ks.defaultProps=As,Ks.setDefaultProps=Ms,Ks.currentInput=Cs,Object.assign({},va,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Ks.setDefaultProps({render:Vs});var V=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function qs(e){return Js(e)}function Js(e){return Array.isArray(e)?Ys(e):e instanceof RegExp?e:typeof e==`object`?Xs(e):e}function Ys(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Js(e[n]);return t}function Xs(e){let t={};for(let n in e)t[n]=Js(e[n]);return t}function Zs(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Qs(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\`);return t===0?e:~t===e.length-1?Qs(e.substring(0,e.length-1)):e.substr(~t+1)}var $s=/$(d+)|${(d+):/(downcase|upcase)}/g,ec=class{static hasCaptures(e){return e===null?!1:($s.lastIndex=0,$s.test(e))}static replaceCaptures(e,t,n){return e.replace($s,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function tc(e,t){return e<t?-1:+(e>t)}function nc(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=tc(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function rc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ic(e){return e.replace(/[-\{}*+?|^$.,[]()#s]/g,`\$&`)}var ac=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},oc=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(dc(e),t)}static createFromParsedTheme(e,t){return pc(e,t)}_cachedMatchRoot=new ac(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>cc(e.parent,t.parentScopes));return n?new uc(n.fontStyle,n.foreground,n.background):null}},sc=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function cc(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!lc(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function lc(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var uc=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function dc(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&rc(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&rc(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new fc(l,u,e,o,s,c)}}return n}var fc=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},H=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(H||{});function pc(e,t){e.sort((e,t)=>{let n=tc(e.scope,t.scope);return n!==0||(n=nc(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new mc(t),o=new uc(n,a.getId(r),a.getId(i)),s=new _c(new gc(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new oc(a,o,s)}var mc=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},hc=Object.freeze([]),gc=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||hc,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},_c=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),gc.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(nc(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new gc(e,t,n,r,i))}},vc=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=bc(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function yc(e){return e}function bc(e){return e}function xc(e,t){let n=[],r=Cc(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Sc(i)){let e=[];do e.push(i),i=r.next();while(Sc(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Sc(e){return!!e&&!!e.match(/[w.:]+/)}function Cc(e){let t=/([LR]:|[w.:][w.:-]*|[,|-()])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function wc(e){typeof e.dispose==`function`&&e.dispose()}var Tc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Ec=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Dc=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Oc=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Tc(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Dc;for(let n of e)kc(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Tc){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function kc(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Tc?jc({baseGrammar:a,selfGrammar:i},r):Ac(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Tc(e))}function Ac(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Mc([r],t,n)}}function jc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Mc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Mc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Mc(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Zs({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Mc(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Rc(i);switch(a.kind){case 0:jc({...t,selfGrammar:t.baseGrammar},n);break;case 1:jc(t,n);break;case 2:Ac(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Ac(a.ruleName,i,n):jc(i,n)}else a.kind===4?n.add(new Ec(a.scopeName,a.ruleName)):n.add(new Tc(a.scopeName));break}}}var Nc=class{kind=0},Pc=class{kind=1},Fc=class{constructor(e){this.ruleName=e}kind=2},Ic=class{constructor(e){this.scopeName=e}kind=3},Lc=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Rc(e){if(e===`$base`)return new Nc;if(e===`$self`)return new Pc;let t=e.indexOf(`#`);return t===-1?new Ic(e):t===0?new Fc(e.substring(1)):new Lc(e.substring(0,t),e.substring(t+1))}var zc=/\(d+)/,Bc=/\(d+)/g,Vc=-1,Hc=-2;function Uc(e){return e}function Wc(e){return e}var Gc=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ec.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ec.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Qs(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ec.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ec.replaceCaptures(this._contentName,e,t)}},Kc=class extends Gc{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},qc=class extends Gc{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Qc(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Jc=class extends Gc{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yc=class extends Gc{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Qc(i,this.id),this.beginCaptures=a,this._end=new Qc(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $c;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Xc=class extends Gc{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Qc(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Qc(o,Hc),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $c;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $c,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Zc=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Kc(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new qc(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Zs({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Jc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Xc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Yc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Rc(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Jc||e instanceof Yc||e instanceof Xc)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Qc=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\n)(?<!\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=zc.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Bc.lastIndex=0,this.source.replace(Bc,(e,t)=>ic(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},$c=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new el(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new el(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},el=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},tl=class{constructor(e,t){this.languageId=e,this.tokenType=t}},nl=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new tl(e,8),this._embeddedLanguagesMatcher=new rl(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new tl(0,0);_getBasicScopeAttributes=new ac(e=>new tl(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/b(comment|string|regex|meta.embedded)b/},rl=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>ic(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var il=!1,al=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ol(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=sl(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new al(i,!0);f()}return new al(i,!1);function f(){let o=cl(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Vc){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),ml(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Yc){let r=o;ml(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Xc){let r=o;ml(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(ml(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function sl(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Xc&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=fl(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Hc){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),ml(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function cl(e,t,n,r,i,a){let o=ll(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=ul(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function ll(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=dl(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function ul(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=dl(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function dl(e,t,n,r,i){return il?{ruleScanner:e.compile(t,n),findOptions:pl(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function fl(e,t,n,r,i){return il?{ruleScanner:e.compileWhile(t,n),findOptions:pl(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function pl(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function ml(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));ol(e,p,n&&d.start===0,d.start,f,i,!1,0),wc(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new hl(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var hl=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function gl(e,t,n,r,i,a,o,s){return new bl(e,t,n,r,i,a,o,s)}function _l(e,t,n,r,i){let a=xc(t,vl),o=Zc.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function vl(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(yl(t[r],e))return n=r+1,!0;return!1})}function yl(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var bl=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new nl(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=xl(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=xc(e,vl);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)_l(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&_l(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Uc(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Wc(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=xl(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Zc.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Cl.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=vc.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Sl.createRootAndLookUpScopeName(a,r,this):Sl.createRoot(`unknown`,r),t=new Cl(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
`;let a=this.createOnigString(e),o=a.content.length,s=new Tl(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ol(this,a,i,0,t,s,!0,r);return wc(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function xl(e,t){return e=qs(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Sl=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=sc.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new sc(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new sc(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),vc.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Cl=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Sl.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Wc(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=Sl.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Uc(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Sl.fromExtension(r,n.contentNameScopesList))}},wl=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):xc(e,vl).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>xc(e,vl).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Tl=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=vc.set(n,0,yc(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=vc.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},El=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,gl(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Dl=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new El(oc.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(oc.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new wl(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new Oc(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},Ol=Cl.NULL,kl=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Al=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Al.prototype.normal={},Al.prototype.property={},Al.prototype.space=void 0;function jl(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Al(n,r,t)}function Ml(e){return e.toLowerCase()}var U=class{constructor(e,t){this.attribute=t,this.property=e}};U.prototype.attribute=``,U.prototype.booleanish=!1,U.prototype.boolean=!1,U.prototype.commaOrSpaceSeparated=!1,U.prototype.commaSeparated=!1,U.prototype.defined=!1,U.prototype.mustUseProperty=!1,U.prototype.number=!1,U.prototype.overloadedBoolean=!1,U.prototype.property=``,U.prototype.spaceSeparated=!1,U.prototype.space=void 0;var Nl=t({boolean:()=>W,booleanish:()=>G,commaOrSpaceSeparated:()=>J,commaSeparated:()=>Il,number:()=>K,overloadedBoolean:()=>Fl,spaceSeparated:()=>q}),Pl=0,W=Ll(),G=Ll(),Fl=Ll(),K=Ll(),q=Ll(),Il=Ll(),J=Ll();function Ll(){return 2**++Pl}var Rl=Object.keys(Nl),zl=class extends U{constructor(e,t,n,r){let i=-1;if(super(e,t),Bl(this,`space`,r),typeof n==`number`)for(;++i<Rl.length;){let e=Rl[i];Bl(this,Rl[i],(n&Nl[e])===Nl[e])}}};zl.prototype.defined=!0;function Bl(e,t,n){n&&(e[t]=n)}function Vl(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new zl(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ml(r)]=r,n[Ml(a.attribute)]=r}return new Al(t,n,e.space)}var Hl=Vl({properties:{ariaActiveDescendant:null,ariaAtomic:G,ariaAutoComplete:null,ariaBusy:G,ariaChecked:G,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:G,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:G,ariaFlowTo:q,ariaGrabbed:G,ariaHasPopup:null,ariaHidden:G,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:K,ariaLive:null,ariaModal:G,ariaMultiLine:G,ariaMultiSelectable:G,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:G,ariaReadOnly:G,ariaRelevant:null,ariaRequired:G,ariaRoleDescription:q,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:G,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ul(e,t){return t in e?e[t]:t}function Wl(e,t){return Ul(e,t.toLowerCase())}var Gl=Vl({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Il,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:W,allowPaymentRequest:W,allowUserMedia:W,alt:null,as:null,async:W,autoCapitalize:null,autoComplete:q,autoFocus:W,autoPlay:W,blocking:q,capture:null,charSet:null,checked:W,cite:null,className:q,cols:K,colSpan:null,content:null,contentEditable:G,controls:W,controlsList:q,coords:K|Il,crossOrigin:null,data:null,dateTime:null,decoding:null,default:W,defer:W,dir:null,dirName:null,disabled:W,download:Fl,draggable:G,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:W,formTarget:null,headers:q,height:K,hidden:Fl,high:K,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:W,inputMode:null,integrity:null,is:null,isMap:W,itemId:null,itemProp:q,itemRef:q,itemScope:W,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:W,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:W,muted:W,name:null,nonce:null,noModule:W,noValidate:W,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:W,optimum:K,pattern:null,ping:q,placeholder:null,playsInline:W,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:W,referrerPolicy:null,rel:q,required:W,reversed:W,rows:K,rowSpan:K,sandbox:q,scope:null,scoped:W,seamless:W,selected:W,shadowRootClonable:W,shadowRootDelegatesFocus:W,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:G,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:W,useMap:null,value:G,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:W,declare:W,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:W,noHref:W,noShade:W,noWrap:W,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:G,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:W,disableRemotePlayback:W,prefix:null,property:null,results:K,security:null,unselectable:null},space:`html`,transform:Wl}),Kl=Vl({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:J,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:W,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Il,g2:Il,glyphName:Il,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:J,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:J,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:J,rev:J,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:J,requiredFeatures:J,requiredFonts:J,requiredFormats:J,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:J,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:J,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:J,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ul}),ql=Vl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Jl=Vl({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Wl}),Yl=Vl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Xl=/[A-Z]/g,Zl=/-[a-z]/g,Ql=/^data[-w.:]+$/i;function $l(e,t){let n=Ml(t),r=t,i=U;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ql.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Zl,tu);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Zl.test(e)){let n=e.replace(Xl,eu);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=zl}return new i(r,t)}function eu(e){return`-`+e.toLowerCase()}function tu(e){return e.charAt(1).toUpperCase()}var nu=jl([Hl,Gl,ql,Jl,Yl],`html`),ru=jl([Hl,Kl,ql,Jl,Yl],`svg`),iu={}.hasOwnProperty;function au(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&iu.call(t,e)){let n=String(t[e]);i=iu.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var ou=/["&'<>`]/g,su=/[uD800-uDBFF][uDC00-uDFFF]/g,cu=/[x01-tvfx0E-x1Fx7Fx81x8Dx8Fx90x9DxA0-uFFFF]/g,lu=/[|\{}()[]^$+*?.]/g,uu=new WeakMap;function du(e,t){if(e=e.replace(t.subset?fu(t.subset):ou,r),t.subset||t.escapeOnly)return e;return e.replace(su,n).replace(cu,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function fu(e){let t=uu.get(e);return t||(t=pu(e),uu.set(e,t)),t}function pu(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(lu,`\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var mu=/[dA-Fa-f]/;function hu(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!mu.test(String.fromCharCode(t))?r:r+`;`}var gu=/d/;function _u(e,t,n){let r=`&#`+String(e);return n&&t&&!gu.test(String.fromCharCode(t))?r:r+`;`}var vu=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),yu={nbsp:`xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},bu=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],xu={}.hasOwnProperty,Su={},Cu;for(Cu in yu)xu.call(yu,Cu)&&(Su[yu[Cu]]=Cu);var wu=/[^dA-Za-z]/;function Tu(e,t,n,r){let i=String.fromCharCode(e);if(xu.call(Su,i)){let e=Su[i],a=`&`+e;return n&&vu.includes(e)&&!bu.includes(e)&&(!r||t&&t!==61&&wu.test(String.fromCharCode(t)))?a:a+`;`}return``}function Eu(e,t,n){let r=hu(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Tu(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=_u(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Du(e,t){return du(e,Object.assign({format:Eu},t))}var Ou=/^>|^->|<!--|-->|--!>|<!-$/g,ku=[`>`],Au=[`<`,`>`];function ju(e,t,n,r){return r.settings.bogusComments?`<?`+Du(e.value,Object.assign({},r.settings.characterReferences,{subset:ku}))+`>`:`<!--`+e.value.replace(Ou,i)+`-->`;function i(e){return Du(e,Object.assign({},r.settings.characterReferences,{subset:Au}))}}function Mu(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Nu(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Pu(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Fu(e){return e.join(` `).trim()}var Iu=/[ tnfr]/g;function Lu(e){return typeof e==`object`?e.type===`text`?Ru(e.value):!1:Ru(e)}function Ru(e){return e.replace(Iu,``)===``}var Y=Vu(1),zu=Vu(-1),Bu=[];function Vu(e){return t;function t(t,n,r){let i=t?t.children:Bu,a=(n||0)+e,o=i[a];if(!r)for(;o&&Lu(o);)a+=e,o=i[a];return o}}var Hu={}.hasOwnProperty;function Uu(e){return t;function t(t,n,r){return Hu.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Wu=Uu({body:qu,caption:Gu,colgroup:Gu,dd:Zu,dt:Xu,head:Gu,html:Ku,li:Yu,optgroup:$u,option:ed,p:Ju,rp:Qu,rt:Qu,tbody:nd,td:ad,tfoot:rd,th:ad,thead:td,tr:id});function Gu(e,t,n){let r=Y(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Lu(r.value.charAt(0)))}function Ku(e,t,n){let r=Y(n,t);return!r||r.type!==`comment`}function qu(e,t,n){let r=Y(n,t);return!r||r.type!==`comment`}function Ju(e,t,n){let r=Y(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function Yu(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Xu(e,t,n){let r=Y(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function Zu(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Qu(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function $u(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function ed(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function td(e,t,n){let r=Y(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function nd(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function rd(e,t,n){return!Y(n,t)}function id(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function ad(e,t,n){let r=Y(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var od=Uu({body:ld,colgroup:ud,head:cd,html:sd,tbody:dd});function sd(e){let t=Y(e,-1);return!t||t.type!==`comment`}function cd(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function ld(e){let t=Y(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Lu(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function ud(e,t,n){let r=zu(n,t),i=Y(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Wu(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function dd(e,t,n){let r=zu(n,t),i=Y(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Wu(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var fd={name:[[`
fr &/=>`.split(``),`
fr "&'/=>``.split(``)],[`
fr "&'/<=>`.split(``),`
fr "&'/<=>``.split(``)]],unquoted:[[`
fr &>`.split(``),`