ranui 0.2.1-alpha.3 → 0.2.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder.js +1 -1
- package/dist/{builtin-BkM0LLof.js → builtin-1lUEp_ro.js} +1 -1
- package/dist/{button-D0zcnKnG.js → button-Cj-XSCsd.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-CygMndQS.js → card-BHN9Xp4S.js} +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-D5om9aJO.js → checkbox-O_J_n1_W.js} +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{colorpicker-qWnaTlYX.js → colorpicker-mebH0XLm.js} +4 -4
- package/dist/colorpicker.js +1 -1
- package/dist/{content-Rry-U6ir.js → content-YOKzMoc7.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dropdown-DzdAR1nI.js → dropdown-CzGAVWYC.js} +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{factory-BkvRcCOx.js → factory-ZNhcQ4tf.js} +127 -127
- package/dist/{form-CUJpeQ7Q.js → form-B8afuJlF.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/{glass-Bj1Zf8Hy.js → glass-BniIptBE.js} +1 -1
- package/dist/glass.js +1 -1
- package/dist/{icon-CtlZJISZ.js → icon-GZrfSeon.js} +1 -1
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -1
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -1
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +1 -1
- package/dist/iife/mermaid.iife.js +1 -1
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +1 -1
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/iife/theme-switch.iife.js +1 -1
- package/dist/{image-ILZNlaGc.js → image-CqoQfJoV.js} +1 -1
- package/dist/image.js +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.iife.js +204 -204
- package/dist/index.js +29 -29
- package/dist/{input-CDH6zY9I.js → input-BlwAXu7I.js} +2 -2
- package/dist/input.js +1 -1
- package/dist/{loading-DJWGih1g.js → loading-M6gWxLbm.js} +1 -1
- package/dist/loading.js +1 -1
- package/dist/{math-DRmkEDSQ.js → math-8E-45Y8e.js} +1 -1
- package/dist/math.js +1 -1
- package/dist/{mermaid-CMhm7npE.js → mermaid-C1oQyPE3.js} +2 -2
- package/dist/mermaid.js +1 -1
- package/dist/{message-BpYJBvYn.js → message-CNdmbeLf.js} +2 -2
- package/dist/message.js +1 -1
- package/dist/{modal-BeQlDYDP.js → modal-gRagDkTb.js} +1 -1
- package/dist/modal.js +1 -1
- package/dist/{player-CQ4e3Yeo.js → player-CAQ5Og2P.js} +2 -2
- package/dist/player.js +1 -1
- package/dist/{popover-eZMnL1F3.js → popover-BZKSLe3D.js} +3 -3
- package/dist/popover.js +1 -1
- package/dist/{progress-DyHgW4Ep.js → progress-vk40tuhm.js} +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radar-D21Rccap.js → radar-Bg0cexzU.js} +1 -1
- package/dist/radar.js +1 -1
- package/dist/{route-pR5P4ann.js → route-CGwS0cd_.js} +1 -1
- package/dist/route.js +1 -1
- package/dist/{router-CewzSH7O.js → router-BK6DEkcN.js} +1 -1
- package/dist/router.js +1 -1
- package/dist/{scratch-BFVsgl-7.js → scratch-ClF1awGi.js} +1 -1
- package/dist/scratch.js +1 -1
- package/dist/{section-DSPCsIxv.js → section-BL0V7Kjf.js} +1 -1
- package/dist/section.js +1 -1
- package/dist/{select-B58nMfB1.js → select-BIFVbQIj.js} +4 -4
- package/dist/select.js +1 -1
- package/dist/{skeleton-DoHYMsTn.js → skeleton-D7JIbROq.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/{tab-BRPdZ9Ws.js → tab-DFVtDJb2.js} +1 -1
- package/dist/tab.js +1 -1
- package/dist/{tabpane-Owf72hw_.js → tabpane-C3qZGN-D.js} +1 -1
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-CZDIIonc.js → theme-switch-BXNH5uPD.js} +44 -44
- package/dist/theme-switch.js +1 -1
- package/dist/utils/builder/core.d.ts +15 -13
- package/docs/BUILDER.md +15 -0
- package/package.json +1 -1
package/dist/iife/math.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ranui_math=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.defineProperty,n=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},i=typeof document>`u`,a=0,o=1,s=2,c=null,l=null,u=0,d=new Set,f=!1;function p(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(y(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)b(e,s);u===0&&x()}}]}function m(e){let t=_(e,!0);return v(t),C(t),()=>te(t)}function h(e){let t={owned:[],cleanups:[],owner:l},n=l,r=c;l=t,c=null;try{return e(()=>ne(t))}finally{l=n,c=r}}function g(e){l&&l.cleanups.push(e)}function _(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:s,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:l}}function v(e){l&&l.owned.push(e)}function y(e){c&&(c.sources.add(e),e.observers.add(c))}function b(e,t){if(e.disposed||e.state>=t)return;let n=e.state===a;if(e.state=t,e.isEffect)d.add(e);else if(n)for(let t of e.observers)b(t,o)}function x(){if(!(u>0||f)){f=!0;try{for(;d.size>0;){let e=[...d];d.clear();for(let t of e)t.disposed||S(t)}}finally{f=!1}}}function S(e){if(!(e.disposed||e.state===a)){if(e.state===o)for(let t of e.sources)`fn`in t&&S(t);e.state===s&&C(e),e.state=a}}function C(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);ee(e);let t=c,n=l;c=e,l=e,e.running=!0,e.state=a;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)b(t,s)}}finally{e.running=!1,c=t,l=n}}function ee(e){for(let t of e.owned)te(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function te(e){e.disposed||(e.disposed=!0,ee(e),e.observers.clear())}function ne(e){for(let t of e.owned)te(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function re(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function ie(e){return re(e)}var ae=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,oe=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},se=(e,t,n)=>{for(let r of e)ae(r)&&(oe(r,t)&&n.push(r),se(r.childrenList,t,n))},ce=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?re(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}},le=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new ce)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new ue(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${ie(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${ie(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?re(e):(e instanceof ce,e.serialize())).join(``):a+=re(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},ue=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${re(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?re(e):(e instanceof ce,e.serialize())).join(``)}</template>`}},de=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(de(t)):e.concat(t),[]),fe=e=>e==null?null:e instanceof we?e.build():typeof e==`string`?i?e:document.createTextNode(e):e,pe=(e,t)=>{if(i){de([t()]).forEach(t=>{let n=fe(t);n!=null&&e.appendChild(n)});return}let n=document.createComment(``);e.appendChild(n);let r=[];m(()=>{let e=de([t()]);for(let e of r)e.parentNode?.removeChild(e);let i=[],a=n;for(let t of e){let e=fe(t);e!=null&&(a.after(e),a=e,i.push(e))}r=i})},me=`__ranFor`,he=e=>typeof e==`object`&&!!e&&e[me]===!0,ge=(e,t,n)=>{let[r,i]=p(t),a=null,o=h(t=>{let i=fe(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},_e=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},ve=(e,t)=>{if(i){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;g(()=>{for(let e of r.values())e.dispose();r.clear()}),m(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o))return;let s=r.get(o);s?(r.delete(o),s.index(n)):s=ge(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();_e(n,a),r=i})},ye=`__ranIndex`,be=e=>typeof e==`object`&&!!e&&e[ye]===!0,xe=(e,t,n)=>{let[r,i]=p(e),a=null,o=h(e=>{let i=fe(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Se=(e,t)=>{if(i){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];g(()=>{for(let e of r)e.dispose();r=[]}),m(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(xe(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}_e(n,r.map(e=>e.node).filter(e=>e!=null))})},Ce=(e,t)=>{de(t).forEach(t=>{if(he(t)){ve(e,t);return}if(be(t)){Se(e,t);return}if(typeof t==`function`){pe(e,t);return}let n=fe(t);n!=null&&e.appendChild(n)})},we=class{el;constructor(e){this.el=i?new le(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?m(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{i?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return Ce(this.el,e),this}replaceChildren(...e){if(i){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new Te(this.el,t,e)}build(){return this.el}serialize(){if(i)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Te=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return Ce(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(i)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return i?this.root.serialize():this.root.innerHTML}},Ee=e=>new we(e),De=()=>Ee(`div`),Oe=()=>Ee(`span`),ke=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},Ae=(e=8)=>Math.random().toString(36).substring(2,e+2),je=e=>typeof e==`function`,Me=12e4,Ne=`__ranuts_bridge__`,Pe=`default`,Fe=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},Ie=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=Pe){this.targetOrigin=t,this.channel=n,this.senderId=Ae(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,Fe.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:Ne,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let c=this.messageHandlers.get(n);if(je(c)){let t=e.source??this.targetWindow;Promise.resolve(c(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=Ae(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},Me),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{Fe.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new Ie(n,t,r);if(e||=Ae(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new ke;var w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],T=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new T(w[0],3609767458),new T(w[1],602891725),new T(w[2],3964484399),new T(w[3],2173295548),new T(w[4],4081628472),new T(w[5],3053834265),new T(w[6],2937671579),new T(w[7],3664609560),new T(w[8],2734883394),new T(w[9],1164996542),new T(w[10],1323610764),new T(w[11],3590304994),new T(w[12],4068182383),new T(w[13],991336113),new T(w[14],633803317),new T(w[15],3479774868),new T(w[16],2666613458),new T(w[17],944711139),new T(w[18],2341262773),new T(w[19],2007800933),new T(w[20],1495990901),new T(w[21],1856431235),new T(w[22],3175218132),new T(w[23],2198950837),new T(w[24],3999719339),new T(w[25],766784016),new T(w[26],2566594879),new T(w[27],3203337956),new T(w[28],1034457026),new T(w[29],2466948901),new T(w[30],3758326383),new T(w[31],168717936),new T(w[32],1188179964),new T(w[33],1546045734),new T(w[34],1522805485),new T(w[35],2643833823),new T(w[36],2343527390),new T(w[37],1014477480),new T(w[38],1206759142),new T(w[39],344077627),new T(w[40],1290863460),new T(w[41],3158454273),new T(w[42],3505952657),new T(w[43],106217008),new T(w[44],3606008344),new T(w[45],1432725776),new T(w[46],1467031594),new T(w[47],851169720),new T(w[48],3100823752),new T(w[49],1363258195),new T(w[50],3750685593),new T(w[51],3785050280),new T(w[52],3318307427),new T(w[53],3812723403),new T(w[54],2003034995),new T(w[55],3602036899),new T(w[56],1575990012),new T(w[57],1125592928),new T(w[58],2716904306),new T(w[59],442776044),new T(w[60],593698344),new T(w[61],3733110249),new T(w[62],2999351573),new T(w[63],3815920427),new T(3391569614,3928383900),new T(3515267271,566280711),new T(3940187606,3454069534),new T(4118630271,4000239992),new T(116418474,1914138554),new T(174292421,2731055270),new T(289380356,3203993006),new T(460393269,320620315),new T(685471733,587496836),new T(852142971,1086792851),new T(1017036298,365543100),new T(1126000580,2618297676),new T(1288033470,3409855158),new T(1501505948,4234509866),new T(1607167915,987167468),new T(1816402316,1246189591),new T(0,1),new T(0,32898),new T(2147483648,32906),new T(2147483648,2147516416),new T(0,32907),new T(0,2147483649),new T(2147483648,2147516545),new T(2147483648,32777),new T(0,138),new T(0,136),new T(0,2147516425),new T(0,2147483658),new T(0,2147516555),new T(2147483648,139),new T(2147483648,32905),new T(2147483648,32771),new T(2147483648,32770),new T(2147483648,128),new T(0,32778),new T(2147483648,2147483658),new T(2147483648,2147516545),new T(2147483648,32896),new T(0,2147483649),new T(2147483648,2147516424);var Le=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(Le),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(Le);var Re=new Map;function ze(e,t){i?(Re.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var Be=typeof document<`u`?HTMLElement:le,Ve=new Map,He=new Map,Ue=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!Ve.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),Ve.set(t,e)}let n=Ve.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},We=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!He.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),He.set(t,e)}let n=He.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},Ge=new WeakMap,Ke=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,qe=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||Ge.get(e)||e.attachShadow(n);return Ge.set(e,r),Ue(r,t?`${t}\n${Ke}`:Ke),r},Je=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},Ye=(e,t,n=``)=>e.getAttribute(t)??n,Xe=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},Ze=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&We(t,a)},Qe=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{position:var(--ran-math-position,relative)}.ran-math{display:var(--ran-math-display,flex);justify-content:var(--ran-math-justify-content,space-around);align-items:var(--ran-math-align-items,center)}.katex-html{display:var(--ran-math-katex-display,none)}`;function $e(e){return String(e).replace(Pt,e=>Nt[e])}function et(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}function tt(e){for(var t=0;t<nn.length;t++)for(var n=nn[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}function nt(e){for(var t=0;t<rn.length;t+=2)if(e>=rn[t]&&e<=rn[t+1])return!0;return!1}function rt(e,t){vn[e]=t}function it(e,t,n){if(!vn[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=vn[t][r];if(!i&&e[0]in bn&&(r=bn[e[0]].charCodeAt(0),i=vn[t][r]),!i&&n===`text`&&nt(r)&&(i=vn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function at(e){var t=e>=5?0:e>=3?1:2;if(!xn[t]){var n=xn[t]={cssEmPerMu:yn.quad[t]/18};for(var r in yn)yn.hasOwnProperty(r)&&(n[r]=yn[r][t])}return xn[t]}function ot(e){if(e instanceof Ln)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function st(e){if(e instanceof Nn)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}function E(e,t,n,r,i,a){F[e][i]={font:t,group:n,replace:r},a&&r&&(F[e][r]=F[e][i])}function D(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)Lr[n[c]]=s;t&&(a&&(Rr[t]=a),o&&(zr[t]=o))}function ct(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;D({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}function lt(e,t){var n=Vr([`base`],e,t),r=Vr([`strut`]);return r.style.height=P(n.height+n.depth),n.depth&&(r.style.verticalAlign=P(-n.depth)),n.children.unshift(r),n}function ut(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Kr(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(lt(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(lt(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(lt(o,t));var l;n?(l=lt(Kr(n,t,!0)),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Vr([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=P(u.height+u.depth),u.depth&&(d.style.verticalAlign=P(-u.depth))}return u}function dt(e){return new _n(e)}function ft(e,t,n,r,i){var a=ii(e,n),o=a.length===1&&a[0]instanceof Qr&&j.contains([`mrow`,`mtable`],a[0].type)?a[0]:new Q.MathNode(`mrow`,a),s=new Q.MathNode(`annotation`,[new Q.TextNode(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q.MathNode(`semantics`,[o,s]),l=new Q.MathNode(`math`,[c]);l.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&l.setAttribute(`display`,`block`);var u=i?`katex`:`katex-mathml`;return J.makeSpan([u],[l])}function O(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function pt(e){var t=mt(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function mt(e){return e&&(e.type===`atom`||Hn.hasOwnProperty(e.type))?e:null}function ht(e,t){var n=Kr(e.body,t,!0);return yi([e.mclass],n,t)}function gt(e,t){var n,r=ii(e.body,t);return e.mclass===`minner`?n=new Q.MathNode(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q.MathNode(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q.MathNode(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}function _t(e,t,n){var r=xi[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function vt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new A(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Si(),c=0;c<o.length;c++)if(!Ci(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=pt(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!(`=|.`.indexOf(l)>-1))if(`<>AV`.indexOf(l)>-1)for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(wi(o[p],l)){f=!1,c=p;break}if(Ci(o[p]))throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new A(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[_t(l,u,e)],mode:`math`,style:`display`};r.push(m),s=Si()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function yt(e,t){var n=mt(e);if(n&&j.contains(sa,n.text))return n;throw n?new A(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new A(`Invalid delimiter type '`+e.type+`'`,e)}function bt(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function xt(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)ua[n[c]]=s;a&&(Rr[t]=a),o&&(zr[t]=o)}function k(e,t){da[e]=t}function St(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}function Ct(e){if(e.indexOf(`ed`)===-1)return e.indexOf(`*`)===-1}function wt(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new A(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Ot(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(St(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup(),x={type:`ordgroup`,mode:e.mode,body:x},n&&(x={type:`styling`,mode:e.mode,style:n,body:[x]}),m.push(x);var S=e.fetch().text;if(S===`&`){if(d&&m.length===d){if(l||s)throw new A(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(S===`\\end`){b(),m.length===1&&x.type===`styling`&&x.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(S===`\\\\`){e.consume();var C=void 0;e.gullet.future().text!==` `&&(C=e.parseSizeGroup(!0)),g.push(C?C.value:null),b(),_.push(St(e)),m=[],h.push(m),y()}else throw new A(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Tt(e){return e.slice(0,1)===`d`?`display`:`text`}function Et(e,t,n){for(var r=Kr(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return J.makeFragment(r)}var Dt,Ot,A,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,j,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,M,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,N,P,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,F,I,L,R,z,B,V,Un,Wn,H,U,Gn,Kn,W,qn,G,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,K,ir,q,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,J,Y,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,X,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Z,Qr,$r,ei,Q,ti,ni,ri,ii,ai,$,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao=n((()=>{for(Dt=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Ot=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Dt.range(this,t))}},A=class e{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}var d=Error(r);return d.name=`ParseError`,d.__proto__=e.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=t,d}},A.prototype.__proto__=Error.prototype,kt=function(e,t){return e.indexOf(t)!==-1},At=function(e,t){return e===void 0?t:e},jt=/([A-Z])/g,Mt=function(e){return e.replace(jt,`-$1`).toLowerCase()},Nt={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Pt=/[&><"']/g,Ft=function e(t){return t.type===`ordgroup`||t.type===`color`?t.body.length===1?e(t.body[0]):t:t.type===`font`?e(t.body):t},It=function(e){var t=Ft(e);return t.type===`mathord`||t.type===`textord`||t.type===`atom`},Lt=function(e){if(!e)throw Error(`Expected non-null, but got `+String(e));return e},j={contains:kt,deflt:At,escape:$e,hyphenate:Mt,getBaseElem:Ft,isCharacterBox:It,protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`}},Rt={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},zt=class{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={},Rt)if(Rt.hasOwnProperty(t)){var n=Rt[t];this[t]=e[t]===void 0?et(n):n.processor?n.processor(e[t]):e[t]}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new A(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=j.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Bt=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Yt[Xt[this.id]]}sub(){return Yt[Zt[this.id]]}fracNum(){return Yt[Qt[this.id]]}fracDen(){return Yt[$t[this.id]]}cramp(){return Yt[en[this.id]]}text(){return Yt[tn[this.id]]}isTight(){return this.size>=2}},Vt=0,Ht=1,Ut=2,Wt=3,Gt=4,Kt=5,qt=6,Jt=7,Yt=[new Bt(Vt,0,!1),new Bt(Ht,0,!0),new Bt(Ut,1,!1),new Bt(Wt,1,!0),new Bt(Gt,2,!1),new Bt(Kt,2,!0),new Bt(qt,3,!1),new Bt(Jt,3,!0)],Xt=[Gt,Kt,Gt,Kt,qt,Jt,qt,Jt],Zt=[Kt,Kt,Kt,Kt,Jt,Jt,Jt,Jt],Qt=[Ut,Wt,Gt,Kt,qt,Jt,qt,Jt],$t=[Wt,Wt,Kt,Kt,Jt,Jt,Jt,Jt],en=[Ht,Ht,Wt,Wt,Kt,Kt,Jt,Jt],tn=[Vt,Ht,Ut,Wt,Ut,Wt,Ut,Wt],M={DISPLAY:Yt[Vt],TEXT:Yt[Ut],SCRIPT:Yt[Gt],SCRIPTSCRIPT:Yt[qt]},nn=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],rn=[],nn.forEach(e=>e.blocks.forEach(e=>rn.push(...e))),an=80,on=function(e,t){return`M95,`+(622+e+t)+`
|
|
1
|
+
var ranui_math=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.defineProperty,n=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},i=typeof document>`u`,a=0,o=1,s=2,c=null,l=null,u=0,d=new Set,f=!1;function p(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(y(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)b(e,s);u===0&&x()}}]}function m(e){let t=_(e,!0);return v(t),C(t),()=>te(t)}function h(e){let t={owned:[],cleanups:[],owner:l},n=l,r=c;l=t,c=null;try{return e(()=>ne(t))}finally{l=n,c=r}}function g(e){l&&l.cleanups.push(e)}function _(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:s,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:l}}function v(e){l&&l.owned.push(e)}function y(e){c&&(c.sources.add(e),e.observers.add(c))}function b(e,t){if(e.disposed||e.state>=t)return;let n=e.state===a;if(e.state=t,e.isEffect)d.add(e);else if(n)for(let t of e.observers)b(t,o)}function x(){if(!(u>0||f)){f=!0;try{for(;d.size>0;){let e=[...d];d.clear();for(let t of e)t.disposed||S(t)}}finally{f=!1}}}function S(e){if(!(e.disposed||e.state===a)){if(e.state===o)for(let t of e.sources)`fn`in t&&S(t);e.state===s&&C(e),e.state=a}}function C(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);ee(e);let t=c,n=l;c=e,l=e,e.running=!0,e.state=a;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)b(t,s)}}finally{e.running=!1,c=t,l=n}}function ee(e){for(let t of e.owned)te(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function te(e){e.disposed||(e.disposed=!0,ee(e),e.observers.clear())}function ne(e){for(let t of e.owned)te(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function re(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function ie(e){return re(e)}var ae=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,oe=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},se=(e,t,n)=>{for(let r of e)ae(r)&&(oe(r,t)&&n.push(r),se(r.childrenList,t,n))},ce=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?re(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}},le=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new ce)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new ue(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${ie(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${ie(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?re(e):(e instanceof ce,e.serialize())).join(``):a+=re(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},ue=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return se(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${re(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?re(e):(e instanceof ce,e.serialize())).join(``)}</template>`}},de=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(de(t)):e.concat(t),[]),fe=e=>e==null?null:e instanceof we?e.build():typeof e==`string`?i?e:document.createTextNode(e):e,pe=(e,t)=>{if(i){Ce(e,[t()]);return}let n=document.createComment(``),r=document.createComment(``);e.appendChild(n),e.appendChild(r);let a=null,o=()=>{a?.(),a=null;let e=n.nextSibling;for(;e&&e!==r;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};m(()=>{let e=t();o();let n=document.createDocumentFragment();a=h(t=>(Ce(n,[e]),t)),r.parentNode?.insertBefore(n,r)}),g(()=>a?.())},me=`__ranFor`,he=e=>typeof e==`object`&&!!e&&e[me]===!0,ge=(e,t,n)=>{let[r,i]=p(t),a=null,o=h(t=>{let i=fe(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},_e=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},ve=(e,t)=>{if(i){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;g(()=>{for(let e of r.values())e.dispose();r.clear()}),m(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o))return;let s=r.get(o);s?(r.delete(o),s.index(n)):s=ge(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();_e(n,a),r=i})},ye=`__ranIndex`,be=e=>typeof e==`object`&&!!e&&e[ye]===!0,xe=(e,t,n)=>{let[r,i]=p(e),a=null,o=h(e=>{let i=fe(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Se=(e,t)=>{if(i){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];g(()=>{for(let e of r)e.dispose();r=[]}),m(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(xe(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}_e(n,r.map(e=>e.node).filter(e=>e!=null))})},Ce=(e,t)=>{de(t).forEach(t=>{if(he(t)){ve(e,t);return}if(be(t)){Se(e,t);return}if(typeof t==`function`){pe(e,t);return}let n=fe(t);n!=null&&e.appendChild(n)})},we=class{el;constructor(e){this.el=i?new le(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?m(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{i?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return Ce(this.el,e),this}replaceChildren(...e){if(i){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new Te(this.el,t,e)}build(){return this.el}serialize(){if(i)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Te=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return Ce(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(i)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return i?this.root.serialize():this.root.innerHTML}},Ee=e=>new we(e),De=()=>Ee(`div`),Oe=()=>Ee(`span`),ke=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}},Ae=(e=8)=>Math.random().toString(36).substring(2,e+2),je=e=>typeof e==`function`,Me=12e4,Ne=`__ranuts_bridge__`,Pe=`default`,Fe=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},Ie=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=Pe){this.targetOrigin=t,this.channel=n,this.senderId=Ae(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,Fe.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:Ne,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let c=this.messageHandlers.get(n);if(je(c)){let t=e.source??this.targetWindow;Promise.resolve(c(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=Ae(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},Me),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{Fe.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}};(class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new Ie(n,t,r);if(e||=Ae(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}}).getInstance(),new ke;var w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],T=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}};new T(w[0],3609767458),new T(w[1],602891725),new T(w[2],3964484399),new T(w[3],2173295548),new T(w[4],4081628472),new T(w[5],3053834265),new T(w[6],2937671579),new T(w[7],3664609560),new T(w[8],2734883394),new T(w[9],1164996542),new T(w[10],1323610764),new T(w[11],3590304994),new T(w[12],4068182383),new T(w[13],991336113),new T(w[14],633803317),new T(w[15],3479774868),new T(w[16],2666613458),new T(w[17],944711139),new T(w[18],2341262773),new T(w[19],2007800933),new T(w[20],1495990901),new T(w[21],1856431235),new T(w[22],3175218132),new T(w[23],2198950837),new T(w[24],3999719339),new T(w[25],766784016),new T(w[26],2566594879),new T(w[27],3203337956),new T(w[28],1034457026),new T(w[29],2466948901),new T(w[30],3758326383),new T(w[31],168717936),new T(w[32],1188179964),new T(w[33],1546045734),new T(w[34],1522805485),new T(w[35],2643833823),new T(w[36],2343527390),new T(w[37],1014477480),new T(w[38],1206759142),new T(w[39],344077627),new T(w[40],1290863460),new T(w[41],3158454273),new T(w[42],3505952657),new T(w[43],106217008),new T(w[44],3606008344),new T(w[45],1432725776),new T(w[46],1467031594),new T(w[47],851169720),new T(w[48],3100823752),new T(w[49],1363258195),new T(w[50],3750685593),new T(w[51],3785050280),new T(w[52],3318307427),new T(w[53],3812723403),new T(w[54],2003034995),new T(w[55],3602036899),new T(w[56],1575990012),new T(w[57],1125592928),new T(w[58],2716904306),new T(w[59],442776044),new T(w[60],593698344),new T(w[61],3733110249),new T(w[62],2999351573),new T(w[63],3815920427),new T(3391569614,3928383900),new T(3515267271,566280711),new T(3940187606,3454069534),new T(4118630271,4000239992),new T(116418474,1914138554),new T(174292421,2731055270),new T(289380356,3203993006),new T(460393269,320620315),new T(685471733,587496836),new T(852142971,1086792851),new T(1017036298,365543100),new T(1126000580,2618297676),new T(1288033470,3409855158),new T(1501505948,4234509866),new T(1607167915,987167468),new T(1816402316,1246189591),new T(0,1),new T(0,32898),new T(2147483648,32906),new T(2147483648,2147516416),new T(0,32907),new T(0,2147483649),new T(2147483648,2147516545),new T(2147483648,32777),new T(0,138),new T(0,136),new T(0,2147516425),new T(0,2147483658),new T(0,2147516555),new T(2147483648,139),new T(2147483648,32905),new T(2147483648,32771),new T(2147483648,32770),new T(2147483648,128),new T(0,32778),new T(2147483648,2147483658),new T(2147483648,2147516545),new T(2147483648,32896),new T(0,2147483649),new T(2147483648,2147516424);var Le=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]);(function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t})(Le),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(Le);var Re=new Map;function ze(e,t){i?(Re.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var Be=typeof document<`u`?HTMLElement:le,Ve=new Map,He=new Map,Ue=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!Ve.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),Ve.set(t,e)}let n=Ve.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},We=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!He.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),He.set(t,e)}let n=He.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}},Ge=new WeakMap,Ke=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,qe=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||Ge.get(e)||e.attachShadow(n);return Ge.set(e,r),Ue(r,t?`${t}\n${Ke}`:Ke),r},Je=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},Ye=(e,t,n=``)=>e.getAttribute(t)??n,Xe=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},Ze=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&We(t,a)},Qe=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{position:var(--ran-math-position,relative)}.ran-math{display:var(--ran-math-display,flex);justify-content:var(--ran-math-justify-content,space-around);align-items:var(--ran-math-align-items,center)}.katex-html{display:var(--ran-math-katex-display,none)}`;function $e(e){return String(e).replace(Pt,e=>Nt[e])}function et(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}function tt(e){for(var t=0;t<nn.length;t++)for(var n=nn[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}function nt(e){for(var t=0;t<rn.length;t+=2)if(e>=rn[t]&&e<=rn[t+1])return!0;return!1}function rt(e,t){vn[e]=t}function it(e,t,n){if(!vn[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=vn[t][r];if(!i&&e[0]in bn&&(r=bn[e[0]].charCodeAt(0),i=vn[t][r]),!i&&n===`text`&&nt(r)&&(i=vn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function at(e){var t=e>=5?0:e>=3?1:2;if(!xn[t]){var n=xn[t]={cssEmPerMu:yn.quad[t]/18};for(var r in yn)yn.hasOwnProperty(r)&&(n[r]=yn[r][t])}return xn[t]}function ot(e){if(e instanceof Ln)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function st(e){if(e instanceof Nn)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}function E(e,t,n,r,i,a){F[e][i]={font:t,group:n,replace:r},a&&r&&(F[e][r]=F[e][i])}function D(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)Lr[n[c]]=s;t&&(a&&(Rr[t]=a),o&&(zr[t]=o))}function ct(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;D({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}function lt(e,t){var n=Vr([`base`],e,t),r=Vr([`strut`]);return r.style.height=P(n.height+n.depth),n.depth&&(r.style.verticalAlign=P(-n.depth)),n.children.unshift(r),n}function ut(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Kr(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(lt(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(lt(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(lt(o,t));var l;n?(l=lt(Kr(n,t,!0)),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Vr([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=P(u.height+u.depth),u.depth&&(d.style.verticalAlign=P(-u.depth))}return u}function dt(e){return new _n(e)}function ft(e,t,n,r,i){var a=ii(e,n),o=a.length===1&&a[0]instanceof Qr&&j.contains([`mrow`,`mtable`],a[0].type)?a[0]:new Q.MathNode(`mrow`,a),s=new Q.MathNode(`annotation`,[new Q.TextNode(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q.MathNode(`semantics`,[o,s]),l=new Q.MathNode(`math`,[c]);l.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&l.setAttribute(`display`,`block`);var u=i?`katex`:`katex-mathml`;return J.makeSpan([u],[l])}function O(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function pt(e){var t=mt(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function mt(e){return e&&(e.type===`atom`||Hn.hasOwnProperty(e.type))?e:null}function ht(e,t){var n=Kr(e.body,t,!0);return yi([e.mclass],n,t)}function gt(e,t){var n,r=ii(e.body,t);return e.mclass===`minner`?n=new Q.MathNode(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q.MathNode(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q.MathNode(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}function _t(e,t,n){var r=xi[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function vt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new A(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Si(),c=0;c<o.length;c++)if(!Ci(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=pt(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!(`=|.`.indexOf(l)>-1))if(`<>AV`.indexOf(l)>-1)for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(wi(o[p],l)){f=!1,c=p;break}if(Ci(o[p]))throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new A(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[_t(l,u,e)],mode:`math`,style:`display`};r.push(m),s=Si()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function yt(e,t){var n=mt(e);if(n&&j.contains(sa,n.text))return n;throw n?new A(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new A(`Invalid delimiter type '`+e.type+`'`,e)}function bt(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function xt(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)ua[n[c]]=s;a&&(Rr[t]=a),o&&(zr[t]=o)}function k(e,t){da[e]=t}function St(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}function Ct(e){if(e.indexOf(`ed`)===-1)return e.indexOf(`*`)===-1}function wt(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new A(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Ot(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(St(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup(),x={type:`ordgroup`,mode:e.mode,body:x},n&&(x={type:`styling`,mode:e.mode,style:n,body:[x]}),m.push(x);var S=e.fetch().text;if(S===`&`){if(d&&m.length===d){if(l||s)throw new A(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(S===`\\end`){b(),m.length===1&&x.type===`styling`&&x.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(S===`\\\\`){e.consume();var C=void 0;e.gullet.future().text!==` `&&(C=e.parseSizeGroup(!0)),g.push(C?C.value:null),b(),_.push(St(e)),m=[],h.push(m),y()}else throw new A(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Tt(e){return e.slice(0,1)===`d`?`display`:`text`}function Et(e,t,n){for(var r=Kr(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return J.makeFragment(r)}var Dt,Ot,A,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,j,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,M,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,N,P,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,F,I,L,R,z,B,V,Un,Wn,H,U,Gn,Kn,W,qn,G,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,K,ir,q,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,J,Y,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,X,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Z,Qr,$r,ei,Q,ti,ni,ri,ii,ai,$,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao=n((()=>{for(Dt=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Ot=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Dt.range(this,t))}},A=class e{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}var d=Error(r);return d.name=`ParseError`,d.__proto__=e.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=t,d}},A.prototype.__proto__=Error.prototype,kt=function(e,t){return e.indexOf(t)!==-1},At=function(e,t){return e===void 0?t:e},jt=/([A-Z])/g,Mt=function(e){return e.replace(jt,`-$1`).toLowerCase()},Nt={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Pt=/[&><"']/g,Ft=function e(t){return t.type===`ordgroup`||t.type===`color`?t.body.length===1?e(t.body[0]):t:t.type===`font`?e(t.body):t},It=function(e){var t=Ft(e);return t.type===`mathord`||t.type===`textord`||t.type===`atom`},Lt=function(e){if(!e)throw Error(`Expected non-null, but got `+String(e));return e},j={contains:kt,deflt:At,escape:$e,hyphenate:Mt,getBaseElem:Ft,isCharacterBox:It,protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`}},Rt={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},zt=class{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={},Rt)if(Rt.hasOwnProperty(t)){var n=Rt[t];this[t]=e[t]===void 0?et(n):n.processor?n.processor(e[t]):e[t]}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new A(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=j.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Bt=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Yt[Xt[this.id]]}sub(){return Yt[Zt[this.id]]}fracNum(){return Yt[Qt[this.id]]}fracDen(){return Yt[$t[this.id]]}cramp(){return Yt[en[this.id]]}text(){return Yt[tn[this.id]]}isTight(){return this.size>=2}},Vt=0,Ht=1,Ut=2,Wt=3,Gt=4,Kt=5,qt=6,Jt=7,Yt=[new Bt(Vt,0,!1),new Bt(Ht,0,!0),new Bt(Ut,1,!1),new Bt(Wt,1,!0),new Bt(Gt,2,!1),new Bt(Kt,2,!0),new Bt(qt,3,!1),new Bt(Jt,3,!0)],Xt=[Gt,Kt,Gt,Kt,qt,Jt,qt,Jt],Zt=[Kt,Kt,Kt,Kt,Jt,Jt,Jt,Jt],Qt=[Ut,Wt,Gt,Kt,qt,Jt,qt,Jt],$t=[Wt,Wt,Kt,Kt,Jt,Jt,Jt,Jt],en=[Ht,Ht,Wt,Wt,Kt,Kt,Jt,Jt],tn=[Vt,Ht,Ut,Wt,Ut,Wt,Ut,Wt],M={DISPLAY:Yt[Vt],TEXT:Yt[Ut],SCRIPT:Yt[Gt],SCRIPTSCRIPT:Yt[qt]},nn=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],rn=[],nn.forEach(e=>e.blocks.forEach(e=>rn.push(...e))),an=80,on=function(e,t){return`M95,`+(622+e+t)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ranui_mermaid=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},d=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var l=i(t),u=0,d=l.length,f;u<d;u++)f=l[u],!o.call(e,f)&&f!==a&&n(e,f,{get:(e=>t[e]).bind(null,f),enumerable:!(s=r(t,f))||s.enumerable});return e},f=(e,r,i)=>(i=e==null?{}:t(a(e)),d(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),p,m=s((()=>{p=typeof document>`u`})),h,g=s((()=>{h=class{ac;constructor(){this.ac=new AbortController}get signal(){return this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.ac.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.ac.signal}),this}abort(){this.ac.abort(),this.ac=new AbortController}}}));function _(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(C(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)w(e,N);I===0&&T()}}]}function v(e){let t=x(e,!0);return S(t),D(t),()=>k(t)}function y(e){let t={owned:[],cleanups:[],owner:F},n=F,r=P;F=t,P=null;try{return e(()=>A(t))}finally{F=n,P=r}}function b(e){F&&F.cleanups.push(e)}function x(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:N,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:F}}function S(e){F&&F.owned.push(e)}function C(e){P&&(P.sources.add(e),e.observers.add(P))}function w(e,t){if(e.disposed||e.state>=t)return;let n=e.state===j;if(e.state=t,e.isEffect)L.add(e);else if(n)for(let t of e.observers)w(t,M)}function T(){if(!(I>0||R)){R=!0;try{for(;L.size>0;){let e=[...L];L.clear();for(let t of e)t.disposed||E(t)}}finally{R=!1}}}function E(e){if(!(e.disposed||e.state===j)){if(e.state===M)for(let t of e.sources)`fn`in t&&E(t);e.state===N&&D(e),e.state=j}}function D(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);O(e);let t=P,n=F;P=e,F=e,e.running=!0,e.state=j;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)w(t,N)}}finally{e.running=!1,P=t,F=n}}function O(e){for(let t of e.owned)k(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function k(e){e.disposed||(e.disposed=!0,O(e),e.observers.clear())}function A(e){for(let t of e.owned)k(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}var j,M,N,P,F,I,L,R,ee=s((()=>{j=0,M=1,N=2,P=null,F=null,I=0,L=new Set,R=!1}));function te(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function z(e){return te(e)}var ne=s((()=>{})),re,ie,ae,oe=s((()=>{re=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,ie=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},ae=(e,t,n)=>{for(let r of e)re(r)&&(ie(r,t)&&n.push(r),ae(r.childrenList,t,n))}})),se,ce,le,ue=s((()=>{ne(),oe(),se=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?te(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}},ce=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new se)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new le(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${z(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${z(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?te(e):(e instanceof se,e.serialize())).join(``):a+=te(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},le=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${te(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?te(e):(e instanceof se,e.serialize())).join(``)}</template>`}}})),de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee=s((()=>{m(),ue(),ee(),de=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(de(t)):e.concat(t),[]),fe=e=>e==null?null:e instanceof we?e.build():typeof e==`string`?p?e:document.createTextNode(e):e,pe=(e,t)=>{if(p){de([t()]).forEach(t=>{let n=fe(t);n!=null&&e.appendChild(n)});return}let n=document.createComment(``);e.appendChild(n);let r=[];v(()=>{let e=de([t()]);for(let e of r)e.parentNode?.removeChild(e);let i=[],a=n;for(let t of e){let e=fe(t);e!=null&&(a.after(e),a=e,i.push(e))}r=i})},me=`__ranFor`,he=e=>typeof e==`object`&&!!e&&e[me]===!0,ge=(e,t,n)=>{let[r,i]=_(t),a=null,o=y(t=>{let i=fe(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},_e=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},ve=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;b(()=>{for(let e of r.values())e.dispose();r.clear()}),v(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o))return;let s=r.get(o);s?(r.delete(o),s.index(n)):s=ge(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();_e(n,a),r=i})},ye=`__ranIndex`,be=e=>typeof e==`object`&&!!e&&e[ye]===!0,xe=(e,t,n)=>{let[r,i]=_(e),a=null,o=y(e=>{let i=fe(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Se=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];b(()=>{for(let e of r)e.dispose();r=[]}),v(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(xe(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}_e(n,r.map(e=>e.node).filter(e=>e!=null))})},Ce=(e,t)=>{de(t).forEach(t=>{if(he(t)){ve(e,t);return}if(be(t)){Se(e,t);return}if(typeof t==`function`){pe(e,t);return}let n=fe(t);n!=null&&e.appendChild(n)})},we=class{el;constructor(e){this.el=p?new ce(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?v(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{p?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return Ce(this.el,e),this}replaceChildren(...e){if(p){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new Te(this.el,t,e)}build(){return this.el}serialize(){if(p)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Te=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return Ce(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(p)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return p?this.root.serialize():this.root.innerHTML}}})),De,Oe,ke,Ae,je=s((()=>{Ee(),De=e=>new we(e),Oe=()=>De(`div`),ke=()=>De(`slot`),Ae=()=>De(`button`)})),Me=s((()=>{m(),g(),ee(),oe(),ue(),Ee(),je()})),Ne,Pe=s((()=>{Ne=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}}})),Fe,Ie=s((()=>{Fe=(e=8)=>Math.random().toString(36).substring(2,e+2)})),Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe=s((()=>{Pe(),Ie(),Le=e=>typeof e==`function`,Re=12e4,ze=`__ranuts_bridge__`,Be=`default`,Ve=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},He=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=Be){this.targetOrigin=t,this.channel=n,this.senderId=Fe(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,Ve.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:ze,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let l=this.messageHandlers.get(n);if(Le(l)){let t=e.source??this.targetWindow;Promise.resolve(l(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=Fe(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},Re),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{Ve.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}},Ue=class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new He(n,t,r);if(e||=Fe(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}},Ue.getInstance(),new Ne,We=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ge=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}},new Ge(We[0],3609767458),new Ge(We[1],602891725),new Ge(We[2],3964484399),new Ge(We[3],2173295548),new Ge(We[4],4081628472),new Ge(We[5],3053834265),new Ge(We[6],2937671579),new Ge(We[7],3664609560),new Ge(We[8],2734883394),new Ge(We[9],1164996542),new Ge(We[10],1323610764),new Ge(We[11],3590304994),new Ge(We[12],4068182383),new Ge(We[13],991336113),new Ge(We[14],633803317),new Ge(We[15],3479774868),new Ge(We[16],2666613458),new Ge(We[17],944711139),new Ge(We[18],2341262773),new Ge(We[19],2007800933),new Ge(We[20],1495990901),new Ge(We[21],1856431235),new Ge(We[22],3175218132),new Ge(We[23],2198950837),new Ge(We[24],3999719339),new Ge(We[25],766784016),new Ge(We[26],2566594879),new Ge(We[27],3203337956),new Ge(We[28],1034457026),new Ge(We[29],2466948901),new Ge(We[30],3758326383),new Ge(We[31],168717936),new Ge(We[32],1188179964),new Ge(We[33],1546045734),new Ge(We[34],1522805485),new Ge(We[35],2643833823),new Ge(We[36],2343527390),new Ge(We[37],1014477480),new Ge(We[38],1206759142),new Ge(We[39],344077627),new Ge(We[40],1290863460),new Ge(We[41],3158454273),new Ge(We[42],3505952657),new Ge(We[43],106217008),new Ge(We[44],3606008344),new Ge(We[45],1432725776),new Ge(We[46],1467031594),new Ge(We[47],851169720),new Ge(We[48],3100823752),new Ge(We[49],1363258195),new Ge(We[50],3750685593),new Ge(We[51],3785050280),new Ge(We[52],3318307427),new Ge(We[53],3812723403),new Ge(We[54],2003034995),new Ge(We[55],3602036899),new Ge(We[56],1575990012),new Ge(We[57],1125592928),new Ge(We[58],2716904306),new Ge(We[59],442776044),new Ge(We[60],593698344),new Ge(We[61],3733110249),new Ge(We[62],2999351573),new Ge(We[63],3815920427),new Ge(3391569614,3928383900),new Ge(3515267271,566280711),new Ge(3940187606,3454069534),new Ge(4118630271,4000239992),new Ge(116418474,1914138554),new Ge(174292421,2731055270),new Ge(289380356,3203993006),new Ge(460393269,320620315),new Ge(685471733,587496836),new Ge(852142971,1086792851),new Ge(1017036298,365543100),new Ge(1126000580,2618297676),new Ge(1288033470,3409855158),new Ge(1501505948,4234509866),new Ge(1607167915,987167468),new Ge(1816402316,1246189591),new Ge(0,1),new Ge(0,32898),new Ge(2147483648,32906),new Ge(2147483648,2147516416),new Ge(0,32907),new Ge(0,2147483649),new Ge(2147483648,2147516545),new Ge(2147483648,32777),new Ge(0,138),new Ge(0,136),new Ge(0,2147516425),new Ge(0,2147483658),new Ge(0,2147516555),new Ge(2147483648,139),new Ge(2147483648,32905),new Ge(2147483648,32771),new Ge(2147483648,32770),new Ge(2147483648,128),new Ge(0,32778),new Ge(2147483648,2147483658),new Ge(2147483648,2147516545),new Ge(2147483648,32896),new Ge(0,2147483649),new Ge(2147483648,2147516424),Ke=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]),function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t}(Ke),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(Ke)})),Je=s((()=>{qe()})),Ye,Xe=s((()=>{Je(),Ye=[!1,`false`,null,void 0]})),Ze=s((()=>{}));function Qe(e,t){p?($e.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var $e,et=s((()=>{m(),$e=new Map})),tt,nt,rt=s((()=>{Me(),tt=()=>typeof document<`u`?HTMLElement:ce,nt=tt()})),it=s((()=>{})),at,ot,st,ct,lt=s((()=>{at=new Map,ot=new Map,st=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!at.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),at.set(t,e)}let n=at.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},ct=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!ot.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),ot.set(t,e)}let n=ot.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}}})),ut,dt,ft,pt,mt,ht,gt,_t,vt=s((()=>{lt(),ut=new WeakMap,dt=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,ft=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||ut.get(e)||e.attachShadow(n);return ut.set(e,r),st(r,t?`${t}\n${dt}`:dt),r},pt=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},mt=(e,t,n=``)=>e.getAttribute(t)??n,ht=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},gt=(e,t,n,r={})=>{if(n){e.setAttribute(t,``),r.aria&&e.setAttribute(`aria-${r.aria}`,`true`);return}e.removeAttribute(t),r.aria&&e.removeAttribute(`aria-${r.aria}`)},_t=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&ct(t,a)}})),yt=s((()=>{})),bt=s((()=>{Me(),Xe(),Ze(),ee(),rt(),it(),vt(),yt()}));bt();var xt=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:var(--ran-icon-host-display,inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name,rotate);animation-duration:var(--ran-icon-host-spin-animation-name,1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name,infinite)}.ran-icon{display:var(--ran-icon-display,flex);align-items:var(--ran-icon-align-items,center);justify-content:var(--ran-icon-justify-content,center);color:var(--ran-icon-color,inherit);font-size:var(--ran-icon-font-size,1em);margin:var(--ran-icon-margin,0)}.ran-icon svg{width:var(--ran-icon-svg-width,1em);height:var(--ran-icon-svg-height,1em);fill:var(--ran-icon-svg-fill,currentColor);stroke:var(--ran-icon-svg-stroke,currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform,rotate(360deg))}}`,St={copy:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>`},check:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></g></svg>`},download:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></g></svg>`},fullscreen:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M8 21H5a2 2 0 0 1-2-2v-3m18 0v3a2 2 0 0 1-2 2h-3"/></g></svg>`},"zoom-in":{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`},"zoom-out":{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`},refresh:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></g></svg>`}};Me(),et(),vt();var Ct=!1,wt=new Map,Tt=!1,Et=e=>/<svg[\s>]/i.test(e),eee=e=>{if(typeof e==`string`)return Et(e)?e:void 0;if(!e||typeof e!=`object`)return;let t=e,n=t.data;if(typeof n==`string`&&Et(n))return n;let r=t.default;if(typeof r==`string`&&Et(r))return r;if(r&&typeof r==`object`){let e=r;if(typeof e.data==`string`&&Et(e.data))return e.data}},Dt=(e,t)=>{Tt=!0;let n=eee(t);n&&(wt.set(`inline:${e}`,n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`ranui-icon-registered`,{detail:{name:e}})))};(e=>{Tt=!0,Object.entries(e).forEach(([e,t])=>{Dt(e,t)})})(St),Qe(`r-icon`,class extends nt{isDev=Ct;_events=new h;static get observedAttributes(){return[`name`,`size`,`color`,`spin`,`decorative`,`aria-label`,`sheet`]}_icon;_div;_shadowDom;_onIconRegistered=e=>{let t=e.detail?.name;t&&t===this.name&&!this._icon&&this.setIcon()};constructor(){super(),this._shadowDom=ft(this,xt);let e=pt(this._shadowDom,`.ran-icon`,()=>Oe().class(`ran-icon`).part(`ran-icon`).build());this._div=e}get name(){return mt(this,`name`)}set name(e){e&&this.setAttribute(`name`,e)}get size(){return mt(this,`size`)}set size(e){e&&this.setAttribute(`size`,e)}get color(){return mt(this,`color`)}set color(e){e&&this.setAttribute(`color`,e)}get spin(){return this.hasAttribute(`spin`)}set spin(e){e?this.setAttribute(`spin`,``):this.removeAttribute(`spin`)}get decorative(){let e=this.getAttribute(`decorative`);return e==null?!this.hasAttribute(`aria-label`):e!==`false`&&e!==`0`}set decorative(e){this.setAttribute(`decorative`,e?`true`:`false`)}get ariaLabel(){return mt(this,`aria-label`)}set ariaLabel(e){ht(this,`aria-label`,e,{removeEmpty:!0})}get sheet(){return mt(this,`sheet`)}set sheet(e){ht(this,`sheet`,e)}handlerExternalCss=()=>{_t(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11y=()=>{if(this._icon){if(this.decorative){this.setAttribute(`aria-hidden`,`true`),this.removeAttribute(`role`),this._icon.setAttribute(`aria-hidden`,`true`),this._icon.setAttribute(`focusable`,`false`);return}this.removeAttribute(`aria-hidden`),this.setAttribute(`role`,`img`),this._icon.removeAttribute(`aria-hidden`),this._icon.setAttribute(`focusable`,`false`)}};setIcon=()=>{if(typeof document>`u`)return;this._icon&&=(this._icon.remove(),void 0);let e=this.name;if(e)if(e.startsWith(`<svg`))this.renderSvg(e,e);else try{let t=`inline:${e}`,n=wt.get(t);if(!n){this.isDev&&Tt&&console.warn(`[ranui-icon] icon not registered: ${e}`);return}n&&this.isSvgText(n)?this.renderSvg(n,e):this.isDev&&console.warn(`[ranui-icon] invalid svg text: ${e}`)}catch(t){this.isDev&&console.warn(`[ranui-icon] render icon failed: ${e}`,t)}};isSvgText=e=>Et(e);parseSvg=e=>{let t=new window.DOMParser().parseFromString(e,`image/svg+xml`).documentElement;if(!t||t.tagName.toLowerCase()===`parsererror`||t.tagName.toLowerCase()!==`svg`)return;let n=new XMLSerializer().serializeToString(t),r=De(`template`).build();r.innerHTML=n.trim();let i=r.content.firstElementChild;if(!(!i||i.tagName.toLowerCase()!==`svg`))return i};renderSvg=(e,t)=>{let n=this.parseSvg(e);n?(this._icon=n,this._icon.setAttribute(`part`,`icon-svg`),this._icon.setAttribute(`data-name`,t),this._div.appendChild(this._icon),this.setSize(),this.setColor(),this.setSpin(),this.syncA11y()):this.isDev&&console.warn(`[ranui-icon] parse svg failed: ${t}`)};setSize=()=>{if(this._icon){let e=this.size||`1em`;this._icon.setAttribute(`width`,e),this._icon.setAttribute(`height`,e);let t=/^\d+(\.\d+)?$/.test(e)?`${e}px`:e;this._icon.style.setProperty(`width`,t),this._icon.style.setProperty(`height`,t)}};setColor=()=>{if(this._icon){let e=this.color||`currentColor`;this._icon.style.setProperty(`color`,e),this._icon.style.setProperty(`fill`,e),this._icon.style.setProperty(`stroke`,e)}};setSpin=()=>{this.spin?this._div.classList.add(`ran-icon-spin`):this._div.classList.remove(`ran-icon-spin`)};connectedCallback(){this._events.on(window,`ranui-icon-registered`,this._onIconRegistered),this.handlerExternalCss(),this.setIcon()}disconnectedCallback(){this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`name`&&this.setIcon(),e===`size`&&this.setSize(),e===`color`&&this.setColor(),e===`spin`&&this.setSpin(),(e===`decorative`||e===`aria-label`)&&this.syncA11y(),e===`sheet`&&this.handlerExternalCss())}});var Ot=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:block}.ran-mermaid{padding:var(--ran-mermaid-padding,0);position:relative}.ran-mermaid-diagram{justify-content:center;display:flex;overflow-x:auto}.ran-mermaid-diagram svg{max-width:100%;height:auto}.ran-mermaid-toolbar{top:var(--ran-mermaid-toolbar-top,8px);right:var(--ran-mermaid-toolbar-right,8px);gap:var(--ran-mermaid-toolbar-gap,4px);border-radius:var(--ran-radius-md,8px);background:var(--ran-mermaid-toolbar-background,var(--ran-color-bg-elevated,#fff));box-shadow:var(--ran-mermaid-toolbar-shadow,var(--ran-shadow-menu,0 2px 8px #0000001f));opacity:0;pointer-events:none;padding:4px;transition:opacity .15s;display:none;position:absolute}.ran-mermaid.has-controls .ran-mermaid-toolbar{display:flex}.ran-mermaid:hover .ran-mermaid-toolbar,.ran-mermaid-toolbar:focus-within{opacity:1;pointer-events:auto}.ran-mermaid-btn{width:var(--ran-mermaid-button-size,28px);height:var(--ran-mermaid-button-size,28px);border-radius:var(--ran-radius-sm,6px);color:var(--ran-mermaid-button-color,var(--ran-color-text-secondary,#666));cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.ran-mermaid-btn:hover{background:var(--ran-mermaid-button-hover-background,var(--ran-color-bg-muted,#0000000f));color:var(--ran-mermaid-button-hover-color,var(--ran-color-text,#222))}.ran-mermaid-btn:focus-visible{outline:var(--ran-mermaid-button-focus-outline,2px solid var(--ran-color-primary,#1890ff));outline-offset:1px}.ran-mermaid-menu{top:var(--ran-mermaid-menu-top,44px);right:var(--ran-mermaid-toolbar-right,8px);border-radius:var(--ran-radius-md,8px);background:var(--ran-mermaid-toolbar-background,var(--ran-color-bg-elevated,#fff));min-width:132px;box-shadow:var(--ran-mermaid-toolbar-shadow,var(--ran-shadow-menu,0 2px 8px #0000001f));z-index:1;flex-direction:column;padding:4px;display:flex;position:absolute}.ran-mermaid-menu-item{border-radius:var(--ran-radius-sm,6px);color:var(--ran-mermaid-menu-item-color,var(--ran-color-text,#222));text-align:left;cursor:pointer;background:0 0;border:none;padding:6px 10px;font-size:13px}.ran-mermaid-menu-item:hover{background:var(--ran-mermaid-button-hover-background,var(--ran-color-bg-muted,#0000000f))}.ran-mermaid-error{color:var(--ran-mermaid-error-color,#c0392b);white-space:pre-wrap;margin:0;padding:12px;font-size:13px}`,kt,B,At,jt=s((()=>{kt=Object.defineProperty,B=(e,t)=>kt(e,`name`,{value:t,configurable:!0}),At=(e,t)=>{for(var n in t)kt(e,n,{get:t[n],enumerable:!0})}})),Mt=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,o=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:f,w:l,d:s,D:p,h:o,m:a,s:i,ms:r,Q:d}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},b=`en`,x={};x[b]=_;var S=`$isDayjsObject`,C=function(e){return e instanceof D||!(!e||!e[S])},w=function e(t,n,r){var i;if(!t)return b;if(typeof t==`string`){var a=t.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<T(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,d=E.p(e),m=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,_=this.$M,v=this.$D,y=`set`+(this.$u?`UTC`:``);switch(d){case f:return r?m(1,0):m(31,11);case u:return r?m(1,_):m(0,_+1);case l:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return m(r?v-x:v+(6-x),_);case s:case p:return h(y+`Hours`,0);case o:return h(y+`Minutes`,1);case a:return h(y+`Seconds`,2);case i:return h(y+`Milliseconds`,3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),d=`set`+(this.$u?`UTC`:``),m=(n={},n[s]=d+`Date`,n[p]=d+`Date`,n[u]=d+`Month`,n[f]=d+`FullYear`,n[o]=d+`Hours`,n[a]=d+`Minutes`,n[i]=d+`Seconds`,n[r]=d+`Milliseconds`,n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===f){var g=this.clone().set(p,1);g.$d[m](h),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,d){var p,m=this;r=Number(r);var h=E.p(d),g=function(e){var t=T(m);return E.w(t.date(t.date()+Math.round(e*r)),m)};if(h===u)return this.set(u,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===s)return g(1);if(h===l)return g(7);var _=(p={},p[a]=t,p[o]=n,p[i]=e,p)[h]||1,v=this.$d.getTime()+r*_;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=E.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,d=n.meridiem,f=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},p=function(e){return E.s(a%12||12,e,`0`)},h=d||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return E.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return E.s(s+1,2,`0`);case`MMM`:return f(n.monthsShort,s,u,3);case`MMMM`:return f(u,s);case`D`:return t.$D;case`DD`:return E.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return f(n.weekdaysMin,t.$W,l,2);case`ddd`:return f(n.weekdaysShort,t.$W,l,3);case`dddd`:return l[t.$W];case`H`:return String(a);case`HH`:return E.s(a,2,`0`);case`h`:return p(1);case`hh`:return p(2);case`a`:return h(a,o,!0);case`A`:return h(a,o,!1);case`m`:return String(o);case`mm`:return E.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return E.s(t.$s,2,`0`);case`SSS`:return E.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,m){var h,g=this,_=E.p(p),v=T(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return E.m(g,v)};switch(_){case f:h=x()/12;break;case u:h=x();break;case d:h=x()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case o:h=b/n;break;case a:h=b/t;break;case i:h=b/e;break;default:h=b}return m?h:E.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},_}(),O=D.prototype;return T.prototype=O,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,u],[`$y`,f],[`$D`,p]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||=(e(t,D,T),!0),T},T.locale=w,T.isDayjs=C,T.unix=function(e){return T(1e3*e)},T.en=x[b],T.Ls=x,T.p={},T}))})),Nt,Pt,V,Ft,It,Lt=s((()=>{jt(),Nt=f(Mt(),1),Pt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},V={trace:B((...e)=>{},`trace`),debug:B((...e)=>{},`debug`),info:B((...e)=>{},`info`),warn:B((...e)=>{},`warn`),error:B((...e)=>{},`error`),fatal:B((...e)=>{},`fatal`)},Ft=B(function(e=`fatal`){let t=Pt.fatal;typeof e==`string`?e.toLowerCase()in Pt&&(t=Pt[e]):typeof e==`number`&&(t=e),V.trace=()=>{},V.debug=()=>{},V.info=()=>{},V.warn=()=>{},V.error=()=>{},V.fatal=()=>{},t<=Pt.fatal&&(V.fatal=console.error?console.error.bind(console,It(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,It(`FATAL`))),t<=Pt.error&&(V.error=console.error?console.error.bind(console,It(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,It(`ERROR`))),t<=Pt.warn&&(V.warn=console.warn?console.warn.bind(console,It(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,It(`WARN`))),t<=Pt.info&&(V.info=console.info?console.info.bind(console,It(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,It(`INFO`))),t<=Pt.debug&&(V.debug=console.debug?console.debug.bind(console,It(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,It(`DEBUG`))),t<=Pt.trace&&(V.trace=console.debug?console.debug.bind(console,It(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,It(`TRACE`)))},`setLogLevel`),It=B(e=>`%c${(0,Nt.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),Rt,tee=s((()=>{Rt={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return Rt.hue2rgb(a,i,e+1/3)*255;case`g`:return Rt.hue2rgb(a,i,e)*255;case`b`:return Rt.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}}})),nee,ree=s((()=>{nee={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),iee,aee=s((()=>{iee={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),zt,Bt=s((()=>{tee(),ree(),aee(),zt={channel:Rt,lang:nee,unit:iee}})),Vt,Ht,Ut=s((()=>{Bt(),Vt={};for(let e=0;e<=255;e++)Vt[e]=zt.unit.dec2hex(e);Ht={ALL:0,RGB:1,HSL:2}})),oee,see=s((()=>{Ut(),oee=class{constructor(){this.type=Ht.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=Ht.ALL}is(e){return this.type===e}}})),cee,lee=s((()=>{Bt(),see(),Ut(),cee=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new oee}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Ht.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=zt.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=zt.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=zt.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=zt.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=zt.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=zt.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(Ht.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ht.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ht.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ht.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ht.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ht.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),Wt,Gt=s((()=>{lee(),Wt=new cee({r:0,g:0,b:0,a:0},`transparent`)})),Kt,uee=s((()=>{Gt(),Ut(),Kt={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(Kt.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return Wt.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${Vt[Math.round(t)]}${Vt[Math.round(n)]}${Vt[Math.round(r)]}${Vt[Math.round(i*255)]}`:`#${Vt[Math.round(t)]}${Vt[Math.round(n)]}${Vt[Math.round(r)]}`}}})),qt,dee=s((()=>{Bt(),Gt(),qt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(qt.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return zt.channel.clamp.h(parseFloat(e)*.9);case`rad`:return zt.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return zt.channel.clamp.h(parseFloat(e)*360)}}return zt.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(qt.re);if(!n)return;let[,r,i,a,o,s]=n;return Wt.set({h:qt._hue2deg(r),s:zt.channel.clamp.s(parseFloat(i)),l:zt.channel.clamp.l(parseFloat(a)),a:o?zt.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${zt.lang.round(t)}, ${zt.lang.round(n)}%, ${zt.lang.round(r)}%, ${i})`:`hsl(${zt.lang.round(t)}, ${zt.lang.round(n)}%, ${zt.lang.round(r)}%)`}}})),Jt,fee=s((()=>{uee(),Jt={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=Jt.colors[e];if(t)return Kt.parse(t)},stringify:e=>{let t=Kt.stringify(e);for(let e in Jt.colors)if(Jt.colors[e]===t)return e}}})),Yt,pee=s((()=>{Bt(),Gt(),Yt={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(Yt.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return Wt.set({r:zt.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:zt.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:zt.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?zt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${zt.lang.round(t)}, ${zt.lang.round(n)}, ${zt.lang.round(r)}, ${zt.lang.round(i)})`:`rgb(${zt.lang.round(t)}, ${zt.lang.round(n)}, ${zt.lang.round(r)})`}}})),Xt,Zt=s((()=>{uee(),dee(),fee(),pee(),Ut(),Xt={format:{keyword:Jt,hex:Kt,rgb:Yt,rgba:Yt,hsl:qt,hsla:qt},parse:e=>{if(typeof e!=`string`)return e;let t=Kt.parse(e)||Yt.parse(e)||qt.parse(e)||Jt.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ht.HSL)||e.data.r===void 0?qt.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Yt.stringify(e):Kt.stringify(e)}})),Qt,mee=s((()=>{Bt(),Zt(),Qt=(e,t)=>{let n=Xt.parse(e);for(let e in t)n[e]=zt.channel.clamp[e](t[e]);return Xt.stringify(n)}})),$t,hee=s((()=>{Bt(),Gt(),Zt(),mee(),$t=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return Qt(e,{a:t});let i=Wt.set({r:zt.channel.clamp.r(e),g:zt.channel.clamp.g(t),b:zt.channel.clamp.b(n),a:zt.channel.clamp.a(r)});return Xt.stringify(i)}})),en,gee=s((()=>{Bt(),Zt(),en=(e,t)=>zt.lang.round(Xt.parse(e)[t])})),_ee,vee=s((()=>{Bt(),Zt(),_ee=e=>{let{r:t,g:n,b:r}=Xt.parse(e),i=.2126*zt.channel.toLinear(t)+.7152*zt.channel.toLinear(n)+.0722*zt.channel.toLinear(r);return zt.lang.round(i)}})),yee,bee=s((()=>{vee(),yee=e=>_ee(e)>=.5})),tn,xee=s((()=>{bee(),tn=e=>!yee(e)})),nn,rn=s((()=>{Bt(),Zt(),nn=(e,t,n)=>{let r=Xt.parse(e),i=r[t],a=zt.channel.clamp[t](i+n);return i!==a&&(r[t]=a),Xt.stringify(r)}})),an,See=s((()=>{rn(),an=(e,t)=>nn(e,`l`,t)})),on,Cee=s((()=>{rn(),on=(e,t)=>nn(e,`l`,-t)})),sn,wee=s((()=>{rn(),sn=(e,t)=>nn(e,`a`,-t)})),H,Tee=s((()=>{Zt(),mee(),H=(e,t)=>{let n=Xt.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return Qt(e,r)}})),Eee,Dee=s((()=>{Zt(),hee(),Eee=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=Xt.parse(e),{r:s,g:l,b:u,a:d}=Xt.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h;return $t(r*h+s*g,i*h+l*g,a*h+u*g,o*f+d*(1-f))}})),U,Oee=s((()=>{Zt(),Dee(),U=(e,t=100)=>{let n=Xt.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Eee(n,e,t)}})),kee=s((()=>{hee(),gee(),xee(),See(),Cee(),wee(),Tee(),Oee()})),cn=s((()=>{kee()}));function Aee(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jee(e){if(Array.isArray(e))return e}function Mee(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
var ranui_mermaid=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},d=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var l=i(t),u=0,d=l.length,f;u<d;u++)f=l[u],!o.call(e,f)&&f!==a&&n(e,f,{get:(e=>t[e]).bind(null,f),enumerable:!(s=r(t,f))||s.enumerable});return e},f=(e,r,i)=>(i=e==null?{}:t(a(e)),d(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),p,m=s((()=>{p=typeof document>`u`})),h,g=s((()=>{h=class{ac;constructor(){this.ac=new AbortController}get signal(){return this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.ac.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.ac.signal}),this}abort(){this.ac.abort(),this.ac=new AbortController}}}));function _(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(C(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)w(e,N);I===0&&T()}}]}function v(e){let t=x(e,!0);return S(t),D(t),()=>k(t)}function y(e){let t={owned:[],cleanups:[],owner:F},n=F,r=P;F=t,P=null;try{return e(()=>A(t))}finally{F=n,P=r}}function b(e){F&&F.cleanups.push(e)}function x(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:N,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:F}}function S(e){F&&F.owned.push(e)}function C(e){P&&(P.sources.add(e),e.observers.add(P))}function w(e,t){if(e.disposed||e.state>=t)return;let n=e.state===j;if(e.state=t,e.isEffect)L.add(e);else if(n)for(let t of e.observers)w(t,M)}function T(){if(!(I>0||R)){R=!0;try{for(;L.size>0;){let e=[...L];L.clear();for(let t of e)t.disposed||E(t)}}finally{R=!1}}}function E(e){if(!(e.disposed||e.state===j)){if(e.state===M)for(let t of e.sources)`fn`in t&&E(t);e.state===N&&D(e),e.state=j}}function D(e){if(e.running)throw Error(`ranui reactivity: cyclic dependency detected (a computation triggered itself).`);O(e);let t=P,n=F;P=e,F=e,e.running=!0,e.state=j;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)w(t,N)}}finally{e.running=!1,P=t,F=n}}function O(e){for(let t of e.owned)k(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function k(e){e.disposed||(e.disposed=!0,O(e),e.observers.clear())}function A(e){for(let t of e.owned)k(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}var j,M,N,P,F,I,L,R,ee=s((()=>{j=0,M=1,N=2,P=null,F=null,I=0,L=new Set,R=!1}));function te(e){return typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):String(e)}function z(e){return te(e)}var ne=s((()=>{})),re,ie,ae,oe=s((()=>{re=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,ie=(e,t)=>{let n=t.trim();if(!n)return!1;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},ae=(e,t,n)=>{for(let r of e)re(r)&&(ie(r,t)&&n.push(r),ae(r.childrenList,t,n))}})),se,ce,le,ue=s((()=>{ne(),oe(),se=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}serialize(){return this.childrenList.map(e=>typeof e==`string`?te(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}},ce=class{tagName;attributes=new Map;inlineStyles=new Map;childrenList=[];shadowRoot=null;textContent=null;content;eventListeners=new Map;style={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();this.inlineStyles.set(n,t)},removeProperty:e=>this.inlineStyles.delete(e)};classList={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)};_innerHTML=``;get innerHTML(){return this._innerHTML}set innerHTML(e){this._innerHTML=e,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new se)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}attachShadow(e){return this.shadowRoot=new le(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners.get(e)||new Set;n.add(t),this.eventListeners.set(e,n)}removeEventListener(e,t){let n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}dispatchEvent(e){let t=this.eventListeners.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName,n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${z(t)}"`).join(``),r=Array.from(this.inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`),i=r?` style="${z(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?te(e):(e instanceof se,e.serialize())).join(``):a+=te(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},le=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}appendChild(e){return this.childrenList.push(e),e}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return ae(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${te(e)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?te(e):(e instanceof se,e.serialize())).join(``)}</template>`}}})),de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee=s((()=>{m(),ue(),ee(),de=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(de(t)):e.concat(t),[]),fe=e=>e==null?null:e instanceof we?e.build():typeof e==`string`?p?e:document.createTextNode(e):e,pe=(e,t)=>{if(p){Ce(e,[t()]);return}let n=document.createComment(``),r=document.createComment(``);e.appendChild(n),e.appendChild(r);let i=null,a=()=>{i?.(),i=null;let e=n.nextSibling;for(;e&&e!==r;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};v(()=>{let e=t();a();let n=document.createDocumentFragment();i=y(t=>(Ce(n,[e]),t)),r.parentNode?.insertBefore(n,r)}),b(()=>i?.())},me=`__ranFor`,he=e=>typeof e==`object`&&!!e&&e[me]===!0,ge=(e,t,n)=>{let[r,i]=_(t),a=null,o=y(t=>{let i=fe(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},_e=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},ve=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;b(()=>{for(let e of r.values())e.dispose();r.clear()}),v(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o))return;let s=r.get(o);s?(r.delete(o),s.index(n)):s=ge(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();_e(n,a),r=i})},ye=`__ranIndex`,be=e=>typeof e==`object`&&!!e&&e[ye]===!0,xe=(e,t,n)=>{let[r,i]=_(e),a=null,o=y(e=>{let i=fe(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Se=(e,t)=>{if(p){(t.each()??[]).forEach((n,r)=>{let i=fe(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];b(()=>{for(let e of r)e.dispose();r=[]}),v(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(xe(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}_e(n,r.map(e=>e.node).filter(e=>e!=null))})},Ce=(e,t)=>{de(t).forEach(t=>{if(he(t)){ve(e,t);return}if(be(t)){Se(e,t);return}if(typeof t==`function`){pe(e,t);return}let n=fe(t);n!=null&&e.appendChild(n)})},we=class{el;constructor(e){this.el=p?new ce(e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){typeof e==`function`?v(()=>t(e())):t(e)}class(e){return this.bind(e,e=>{p?this.el.attributes.set(`class`,e):this.el.className=e}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return Ce(this.el,e),this}replaceChildren(...e){if(p){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new Te(this.el,t,e)}build(){return this.el}serialize(){if(p)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Te=class{root;hostEl;options;constructor(e,t,n){this.hostEl=e,this.root=t,this.options=n}children(...e){return Ce(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(p)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return p?this.root.serialize():this.root.innerHTML}}})),De,Oe,ke,Ae,je=s((()=>{Ee(),De=e=>new we(e),Oe=()=>De(`div`),ke=()=>De(`slot`),Ae=()=>De(`button`)})),Me=s((()=>{m(),g(),ee(),oe(),ue(),Ee(),je()})),Ne,Pe=s((()=>{Ne=class{_events=new Map;tap=(e,t)=>{this._events.get(e)&&e!==Symbol.for(`NEW_LISTENER`)&&this.call(Symbol.for(`NEW_LISTENER`),e);let n=this._events.get(e)||new Set;return typeof t==`function`?n.add({name:e,callback:t}):n.add(t),this._events.set(e,n),this};call=(e,...t)=>((this._events.get(e)||new Set).forEach(e=>{let{callback:n}=e;n(...t)}),this);callSync=async(e,...t)=>{let n=this._events.get(e)||new Set;for(let e of n){let{callback:n}=e;await n(...t)}return this};once=(e,t)=>{let n;if(typeof t==`function`)n={name:e,callback:(...r)=>{t(...r),this.off(e,n)},initialCallback:t};else{let{callback:r}=t;n={name:e,callback:(...t)=>{r(...t),this.off(e,n)},initialCallback:r}}return this.tap(e,n),this};off=(e,t)=>{let n=[...this._events.get(e)||new Set].filter(e=>{if(typeof t==`function`)return e.callback!==t&&e.initialCallback!==t;{let{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}});return this._events.set(e,new Set(n)),this}}})),Fe,Ie=s((()=>{Fe=(e=8)=>Math.random().toString(36).substring(2,e+2)})),Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe=s((()=>{Pe(),Ie(),Le=e=>typeof e==`function`,Re=12e4,ze=`__ranuts_bridge__`,Be=`default`,Ve=new class{bridges=new Set;attachedWindow=null;handleMessage=e=>{for(let t of Array.from(this.bridges))t.receive(e)};add(e){this.bridges.add(e),typeof window<`u`&&this.attachedWindow!==window&&(window.addEventListener(`message`,this.handleMessage),this.attachedWindow=window)}remove(e){this.bridges.delete(e),this.bridges.size===0&&this.attachedWindow&&(this.attachedWindow.removeEventListener(`message`,this.handleMessage),this.attachedWindow=null)}},He=class{targetWindow;targetOrigin;messageHandlers;pendingRequests;channel;senderId;available;constructor(e,t=`*`,n=Be){this.targetOrigin=t,this.channel=n,this.senderId=Fe(12),this.messageHandlers=new Map,this.pendingRequests=new Map,this.available=typeof window<`u`,this.available?(this.targetWindow=e??window,Ve.add(this)):this.targetWindow=void 0}post(e,t){let n={...t,__bridge:ze,channel:this.channel,senderId:this.senderId};e.postMessage(n,this.targetOrigin)}receive=e=>{if(!this.available||this.targetOrigin!==`*`&&e.origin!==this.targetOrigin||e.source&&e.source!==this.targetWindow)return;let t=e.data;if(!t||typeof t!=`object`||t.__bridge!==`__ranuts_bridge__`||(t.channel??`default`)!==this.channel)return;let{type:n,payload:r,id:i,isResponse:a,isError:o,senderId:s}=t;if(a&&i){let e=this.pendingRequests.get(i);e&&(o?e.reject(Error(typeof r==`string`?r:`Bridge request failed`)):e.resolve(r),this.pendingRequests.delete(i));return}if(s&&s===this.senderId||typeof n!=`string`||!this.messageHandlers.has(n))return;let l=this.messageHandlers.get(n);if(Le(l)){let t=e.source??this.targetWindow;Promise.resolve(l(r)).then(e=>{i&&this.post(t,{type:n,payload:e,id:i,isResponse:!0})}).catch(e=>{i&&this.post(t,{type:n,payload:e instanceof Error?e.message:String(e),id:i,isResponse:!0,isError:!0})})}};on=(e,t)=>{this.messageHandlers.set(e,t)};off=e=>{this.messageHandlers.delete(e)};send=async(e,t)=>{if(!this.available)return Promise.reject(Error(`PostMessageBridge is unavailable outside a browser environment`));let n=Fe(10);return new Promise((r,i)=>{let a=setTimeout(()=>{this.pendingRequests.has(n)&&(this.pendingRequests.delete(n),i(Error(`Request timeout`)))},Re),o=e=>{clearTimeout(a),i(e)};this.pendingRequests.set(n,{resolve:e=>{clearTimeout(a),r(e)},reject:o});try{this.post(this.targetWindow,{type:e,payload:t,id:n})}catch(e){this.pendingRequests.delete(n),o(e instanceof Error?e:Error(`Failed to post message`))}})};broadcast=e=>{if(this.available)try{this.post(this.targetWindow,{type:e.type,payload:e.payload})}catch{}};destroy=()=>{Ve.remove(this),this.messageHandlers.clear(),this.pendingRequests.forEach(e=>{e.reject(Error(`Bridge destroyed`))}),this.pendingRequests.clear()}},Ue=class e{static instance;bridges=new Map;constructor(){}static getInstance(){return e.instance||=new e,e.instance}connectClient=({id:e,targetOrigin:t,targetWindow:n,channel:r})=>{let i=new He(n,t,r);if(e||=Fe(10),this.bridges.has(e))throw Error(`Bridge ${e} already exists`);return this.bridges.set(e,i),{bridge:i,id:e}};getClient=e=>this.bridges.get(e);removeClient=e=>{let t=this.bridges.get(e);t&&(t.destroy(),this.bridges.delete(e))};removeAllClient=()=>{this.bridges.forEach(e=>{e.destroy()}),this.bridges.clear()};broadcast=e=>{this.bridges.forEach(t=>{t.broadcast(e)})};sendTo=(e,t,n)=>{let r=this.getClient(e);return r?r.send(t,n):Promise.reject(Error(`Bridge ${e} not found`))}},Ue.getInstance(),new Ne,We=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ge=class{highOrder;lowOrder;constructor(e,t){this.highOrder=e,this.lowOrder=t}},new Ge(We[0],3609767458),new Ge(We[1],602891725),new Ge(We[2],3964484399),new Ge(We[3],2173295548),new Ge(We[4],4081628472),new Ge(We[5],3053834265),new Ge(We[6],2937671579),new Ge(We[7],3664609560),new Ge(We[8],2734883394),new Ge(We[9],1164996542),new Ge(We[10],1323610764),new Ge(We[11],3590304994),new Ge(We[12],4068182383),new Ge(We[13],991336113),new Ge(We[14],633803317),new Ge(We[15],3479774868),new Ge(We[16],2666613458),new Ge(We[17],944711139),new Ge(We[18],2341262773),new Ge(We[19],2007800933),new Ge(We[20],1495990901),new Ge(We[21],1856431235),new Ge(We[22],3175218132),new Ge(We[23],2198950837),new Ge(We[24],3999719339),new Ge(We[25],766784016),new Ge(We[26],2566594879),new Ge(We[27],3203337956),new Ge(We[28],1034457026),new Ge(We[29],2466948901),new Ge(We[30],3758326383),new Ge(We[31],168717936),new Ge(We[32],1188179964),new Ge(We[33],1546045734),new Ge(We[34],1522805485),new Ge(We[35],2643833823),new Ge(We[36],2343527390),new Ge(We[37],1014477480),new Ge(We[38],1206759142),new Ge(We[39],344077627),new Ge(We[40],1290863460),new Ge(We[41],3158454273),new Ge(We[42],3505952657),new Ge(We[43],106217008),new Ge(We[44],3606008344),new Ge(We[45],1432725776),new Ge(We[46],1467031594),new Ge(We[47],851169720),new Ge(We[48],3100823752),new Ge(We[49],1363258195),new Ge(We[50],3750685593),new Ge(We[51],3785050280),new Ge(We[52],3318307427),new Ge(We[53],3812723403),new Ge(We[54],2003034995),new Ge(We[55],3602036899),new Ge(We[56],1575990012),new Ge(We[57],1125592928),new Ge(We[58],2716904306),new Ge(We[59],442776044),new Ge(We[60],593698344),new Ge(We[61],3733110249),new Ge(We[62],2999351573),new Ge(We[63],3815920427),new Ge(3391569614,3928383900),new Ge(3515267271,566280711),new Ge(3940187606,3454069534),new Ge(4118630271,4000239992),new Ge(116418474,1914138554),new Ge(174292421,2731055270),new Ge(289380356,3203993006),new Ge(460393269,320620315),new Ge(685471733,587496836),new Ge(852142971,1086792851),new Ge(1017036298,365543100),new Ge(1126000580,2618297676),new Ge(1288033470,3409855158),new Ge(1501505948,4234509866),new Ge(1607167915,987167468),new Ge(1816402316,1246189591),new Ge(0,1),new Ge(0,32898),new Ge(2147483648,32906),new Ge(2147483648,2147516416),new Ge(0,32907),new Ge(0,2147483649),new Ge(2147483648,2147516545),new Ge(2147483648,32777),new Ge(0,138),new Ge(0,136),new Ge(0,2147516425),new Ge(0,2147483658),new Ge(0,2147516555),new Ge(2147483648,139),new Ge(2147483648,32905),new Ge(2147483648,32771),new Ge(2147483648,32770),new Ge(2147483648,128),new Ge(0,32778),new Ge(2147483648,2147483658),new Ge(2147483648,2147516545),new Ge(2147483648,32896),new Ge(0,2147483649),new Ge(2147483648,2147516424),Ke=new Map([[100,`Continue`],[101,`Switching Protocols`],[102,`Processing`],[103,`Early Hints`],[200,`OK`],[201,`Created`],[202,`Accepted`],[203,`Non-Authoritative Information`],[204,`No Content`],[205,`Reset Content`],[206,`Partial Content`],[207,`Multi-Status`],[208,`Already Reported`],[226,`IM Used`],[300,`Multiple Choices`],[301,`Moved Permanently`],[302,`Found`],[303,`See Other`],[304,`Not Modified`],[305,`Use Proxy`],[307,`Temporary Redirect`],[308,`Permanent Redirect`],[400,`Bad Request`],[401,`Unauthorized`],[402,`Payment Required`],[403,`Forbidden`],[404,`Not Found`],[405,`Method Not Allowed`],[406,`Not Acceptable`],[407,`Proxy Authentication Required`],[408,`Request Timeout`],[409,`Conflict`],[410,`Gone`],[411,`Length Required`],[412,`Precondition Failed`],[413,`Payload Too Large`],[414,`URI Too Long`],[415,`Unsupported Media Type`],[416,`Range Not Satisfiable`],[417,`Expectation Failed`],[418,`I'm a Teapot`],[421,`Misdirected Request`],[422,`Unprocessable Entity`],[423,`Locked`],[424,`Failed Dependency`],[425,`Too Early`],[426,`Upgrade Required`],[428,`Precondition Required`],[429,`Too Many Requests`],[431,`Request Header Fields Too Large`],[451,`Unavailable For Legal Reasons`],[500,`Internal Server Error`],[501,`Not Implemented`],[502,`Bad Gateway`],[503,`Service Unavailable`],[504,`Gateway Timeout`],[505,`HTTP Version Not Supported`],[506,`Variant Also Negotiates`],[507,`Insufficient Storage`],[508,`Loop Detected`],[509,`Bandwidth Limit Exceeded`],[510,`Not Extended`],[511,`Network Authentication Required`]]),function(e){let t=new Map;for(let[n,r]of e)t.set(r.toLowerCase(),n);return t}(Ke),function(e){let t=[];for(let[n,r]of e)t.push(n);return t}(Ke)})),Je=s((()=>{qe()})),Ye,Xe=s((()=>{Je(),Ye=[!1,`false`,null,void 0]})),Ze=s((()=>{}));function Qe(e,t){p?($e.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var $e,et=s((()=>{m(),$e=new Map})),tt,nt,rt=s((()=>{Me(),tt=()=>typeof document<`u`?HTMLElement:ce,nt=tt()})),it=s((()=>{})),at,ot,st,ct,lt=s((()=>{at=new Map,ot=new Map,st=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!at.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),at.set(t,e)}let n=at.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!e.querySelector(`style[data-ranui]`)){let n=document.createElement(`style`);n.setAttribute(`data-ranui`,``),n.textContent=t,e.appendChild(n)}}},ct=(e,t)=>{if(!(typeof document>`u`)&&t){if(typeof CSSStyleSheet<`u`)try{if(!ot.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),ot.set(t,e)}let n=ot.get(t);e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return}catch{}if(!Array.from(e.querySelectorAll(`style[data-ranui-sheet]`)).some(e=>e.textContent===t)){let n=document.createElement(`style`);n.setAttribute(`data-ranui-sheet`,``),n.textContent=t,e.appendChild(n)}}}})),ut,dt,ft,pt,mt,ht,gt,_t,vt=s((()=>{lt(),ut=new WeakMap,dt=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,ft=(e,t=``,n={mode:`closed`})=>{let r=e.shadowRoot||ut.get(e)||e.attachShadow(n);return ut.set(e,r),st(r,t?`${t}\n${dt}`:dt),r},pt=(e,t,n)=>{let r=e.querySelector(t);if(r)return r;let i=n();return e.appendChild(i),i},mt=(e,t,n=``)=>e.getAttribute(t)??n,ht=(e,t,n,r={})=>{if(r.removeEmpty&&!n){e.removeAttribute(t);return}e.setAttribute(t,n??``)},gt=(e,t,n,r={})=>{if(n){e.setAttribute(t,``),r.aria&&e.setAttribute(`aria-${r.aria}`,`true`);return}e.removeAttribute(t),r.aria&&e.removeAttribute(`aria-${r.aria}`)},_t=(e,t,n,r,i)=>{if(n!==`sheet`||r===i)return;let a=e.getAttribute(`sheet`)||``;a&&ct(t,a)}})),yt=s((()=>{})),bt=s((()=>{Me(),Xe(),Ze(),ee(),rt(),it(),vt(),yt()}));bt();var xt=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:var(--ran-icon-host-display,inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name,rotate);animation-duration:var(--ran-icon-host-spin-animation-name,1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name,infinite)}.ran-icon{display:var(--ran-icon-display,flex);align-items:var(--ran-icon-align-items,center);justify-content:var(--ran-icon-justify-content,center);color:var(--ran-icon-color,inherit);font-size:var(--ran-icon-font-size,1em);margin:var(--ran-icon-margin,0)}.ran-icon svg{width:var(--ran-icon-svg-width,1em);height:var(--ran-icon-svg-height,1em);fill:var(--ran-icon-svg-fill,currentColor);stroke:var(--ran-icon-svg-stroke,currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform,rotate(360deg))}}`,St={copy:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>`},check:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></g></svg>`},download:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></g></svg>`},fullscreen:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M8 21H5a2 2 0 0 1-2-2v-3m18 0v3a2 2 0 0 1-2 2h-3"/></g></svg>`},"zoom-in":{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`},"zoom-out":{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`},refresh:{success:!0,_identification:!0,data:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></g></svg>`}};Me(),et(),vt();var Ct=!1,wt=new Map,Tt=!1,Et=e=>/<svg[\s>]/i.test(e),eee=e=>{if(typeof e==`string`)return Et(e)?e:void 0;if(!e||typeof e!=`object`)return;let t=e,n=t.data;if(typeof n==`string`&&Et(n))return n;let r=t.default;if(typeof r==`string`&&Et(r))return r;if(r&&typeof r==`object`){let e=r;if(typeof e.data==`string`&&Et(e.data))return e.data}},Dt=(e,t)=>{Tt=!0;let n=eee(t);n&&(wt.set(`inline:${e}`,n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`ranui-icon-registered`,{detail:{name:e}})))};(e=>{Tt=!0,Object.entries(e).forEach(([e,t])=>{Dt(e,t)})})(St),Qe(`r-icon`,class extends nt{isDev=Ct;_events=new h;static get observedAttributes(){return[`name`,`size`,`color`,`spin`,`decorative`,`aria-label`,`sheet`]}_icon;_div;_shadowDom;_onIconRegistered=e=>{let t=e.detail?.name;t&&t===this.name&&!this._icon&&this.setIcon()};constructor(){super(),this._shadowDom=ft(this,xt);let e=pt(this._shadowDom,`.ran-icon`,()=>Oe().class(`ran-icon`).part(`ran-icon`).build());this._div=e}get name(){return mt(this,`name`)}set name(e){e&&this.setAttribute(`name`,e)}get size(){return mt(this,`size`)}set size(e){e&&this.setAttribute(`size`,e)}get color(){return mt(this,`color`)}set color(e){e&&this.setAttribute(`color`,e)}get spin(){return this.hasAttribute(`spin`)}set spin(e){e?this.setAttribute(`spin`,``):this.removeAttribute(`spin`)}get decorative(){let e=this.getAttribute(`decorative`);return e==null?!this.hasAttribute(`aria-label`):e!==`false`&&e!==`0`}set decorative(e){this.setAttribute(`decorative`,e?`true`:`false`)}get ariaLabel(){return mt(this,`aria-label`)}set ariaLabel(e){ht(this,`aria-label`,e,{removeEmpty:!0})}get sheet(){return mt(this,`sheet`)}set sheet(e){ht(this,`sheet`,e)}handlerExternalCss=()=>{_t(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11y=()=>{if(this._icon){if(this.decorative){this.setAttribute(`aria-hidden`,`true`),this.removeAttribute(`role`),this._icon.setAttribute(`aria-hidden`,`true`),this._icon.setAttribute(`focusable`,`false`);return}this.removeAttribute(`aria-hidden`),this.setAttribute(`role`,`img`),this._icon.removeAttribute(`aria-hidden`),this._icon.setAttribute(`focusable`,`false`)}};setIcon=()=>{if(typeof document>`u`)return;this._icon&&=(this._icon.remove(),void 0);let e=this.name;if(e)if(e.startsWith(`<svg`))this.renderSvg(e,e);else try{let t=`inline:${e}`,n=wt.get(t);if(!n){this.isDev&&Tt&&console.warn(`[ranui-icon] icon not registered: ${e}`);return}n&&this.isSvgText(n)?this.renderSvg(n,e):this.isDev&&console.warn(`[ranui-icon] invalid svg text: ${e}`)}catch(t){this.isDev&&console.warn(`[ranui-icon] render icon failed: ${e}`,t)}};isSvgText=e=>Et(e);parseSvg=e=>{let t=new window.DOMParser().parseFromString(e,`image/svg+xml`).documentElement;if(!t||t.tagName.toLowerCase()===`parsererror`||t.tagName.toLowerCase()!==`svg`)return;let n=new XMLSerializer().serializeToString(t),r=De(`template`).build();r.innerHTML=n.trim();let i=r.content.firstElementChild;if(!(!i||i.tagName.toLowerCase()!==`svg`))return i};renderSvg=(e,t)=>{let n=this.parseSvg(e);n?(this._icon=n,this._icon.setAttribute(`part`,`icon-svg`),this._icon.setAttribute(`data-name`,t),this._div.appendChild(this._icon),this.setSize(),this.setColor(),this.setSpin(),this.syncA11y()):this.isDev&&console.warn(`[ranui-icon] parse svg failed: ${t}`)};setSize=()=>{if(this._icon){let e=this.size||`1em`;this._icon.setAttribute(`width`,e),this._icon.setAttribute(`height`,e);let t=/^\d+(\.\d+)?$/.test(e)?`${e}px`:e;this._icon.style.setProperty(`width`,t),this._icon.style.setProperty(`height`,t)}};setColor=()=>{if(this._icon){let e=this.color||`currentColor`;this._icon.style.setProperty(`color`,e),this._icon.style.setProperty(`fill`,e),this._icon.style.setProperty(`stroke`,e)}};setSpin=()=>{this.spin?this._div.classList.add(`ran-icon-spin`):this._div.classList.remove(`ran-icon-spin`)};connectedCallback(){this._events.on(window,`ranui-icon-registered`,this._onIconRegistered),this.handlerExternalCss(),this.setIcon()}disconnectedCallback(){this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`name`&&this.setIcon(),e===`size`&&this.setSize(),e===`color`&&this.setColor(),e===`spin`&&this.setSpin(),(e===`decorative`||e===`aria-label`)&&this.syncA11y(),e===`sheet`&&this.handlerExternalCss())}});var Ot=`.remove-wap-active-focus,.remove-wap-active-focus:active,.remove-wap-active-focus:focus{-webkit-tap-highlight-color:transparent;outline:0}:host{display:block}.ran-mermaid{padding:var(--ran-mermaid-padding,0);position:relative}.ran-mermaid-diagram{justify-content:center;display:flex;overflow-x:auto}.ran-mermaid-diagram svg{max-width:100%;height:auto}.ran-mermaid-toolbar{top:var(--ran-mermaid-toolbar-top,8px);right:var(--ran-mermaid-toolbar-right,8px);gap:var(--ran-mermaid-toolbar-gap,4px);border-radius:var(--ran-radius-md,8px);background:var(--ran-mermaid-toolbar-background,var(--ran-color-bg-elevated,#fff));box-shadow:var(--ran-mermaid-toolbar-shadow,var(--ran-shadow-menu,0 2px 8px #0000001f));opacity:0;pointer-events:none;padding:4px;transition:opacity .15s;display:none;position:absolute}.ran-mermaid.has-controls .ran-mermaid-toolbar{display:flex}.ran-mermaid:hover .ran-mermaid-toolbar,.ran-mermaid-toolbar:focus-within{opacity:1;pointer-events:auto}.ran-mermaid-btn{width:var(--ran-mermaid-button-size,28px);height:var(--ran-mermaid-button-size,28px);border-radius:var(--ran-radius-sm,6px);color:var(--ran-mermaid-button-color,var(--ran-color-text-secondary,#666));cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.ran-mermaid-btn:hover{background:var(--ran-mermaid-button-hover-background,var(--ran-color-bg-muted,#0000000f));color:var(--ran-mermaid-button-hover-color,var(--ran-color-text,#222))}.ran-mermaid-btn:focus-visible{outline:var(--ran-mermaid-button-focus-outline,2px solid var(--ran-color-primary,#1890ff));outline-offset:1px}.ran-mermaid-menu{top:var(--ran-mermaid-menu-top,44px);right:var(--ran-mermaid-toolbar-right,8px);border-radius:var(--ran-radius-md,8px);background:var(--ran-mermaid-toolbar-background,var(--ran-color-bg-elevated,#fff));min-width:132px;box-shadow:var(--ran-mermaid-toolbar-shadow,var(--ran-shadow-menu,0 2px 8px #0000001f));z-index:1;flex-direction:column;padding:4px;display:flex;position:absolute}.ran-mermaid-menu-item{border-radius:var(--ran-radius-sm,6px);color:var(--ran-mermaid-menu-item-color,var(--ran-color-text,#222));text-align:left;cursor:pointer;background:0 0;border:none;padding:6px 10px;font-size:13px}.ran-mermaid-menu-item:hover{background:var(--ran-mermaid-button-hover-background,var(--ran-color-bg-muted,#0000000f))}.ran-mermaid-error{color:var(--ran-mermaid-error-color,#c0392b);white-space:pre-wrap;margin:0;padding:12px;font-size:13px}`,kt,B,At,jt=s((()=>{kt=Object.defineProperty,B=(e,t)=>kt(e,`name`,{value:t,configurable:!0}),At=(e,t)=>{for(var n in t)kt(e,n,{get:t[n],enumerable:!0})}})),Mt=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,o=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:f,w:l,d:s,D:p,h:o,m:a,s:i,ms:r,Q:d}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},b=`en`,x={};x[b]=_;var S=`$isDayjsObject`,C=function(e){return e instanceof D||!(!e||!e[S])},w=function e(t,n,r){var i;if(!t)return b;if(typeof t==`string`){var a=t.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<T(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,d=E.p(e),m=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,_=this.$M,v=this.$D,y=`set`+(this.$u?`UTC`:``);switch(d){case f:return r?m(1,0):m(31,11);case u:return r?m(1,_):m(0,_+1);case l:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return m(r?v-x:v+(6-x),_);case s:case p:return h(y+`Hours`,0);case o:return h(y+`Minutes`,1);case a:return h(y+`Seconds`,2);case i:return h(y+`Milliseconds`,3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),d=`set`+(this.$u?`UTC`:``),m=(n={},n[s]=d+`Date`,n[p]=d+`Date`,n[u]=d+`Month`,n[f]=d+`FullYear`,n[o]=d+`Hours`,n[a]=d+`Minutes`,n[i]=d+`Seconds`,n[r]=d+`Milliseconds`,n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===f){var g=this.clone().set(p,1);g.$d[m](h),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,d){var p,m=this;r=Number(r);var h=E.p(d),g=function(e){var t=T(m);return E.w(t.date(t.date()+Math.round(e*r)),m)};if(h===u)return this.set(u,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===s)return g(1);if(h===l)return g(7);var _=(p={},p[a]=t,p[o]=n,p[i]=e,p)[h]||1,v=this.$d.getTime()+r*_;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=E.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,d=n.meridiem,f=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},p=function(e){return E.s(a%12||12,e,`0`)},h=d||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return E.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return E.s(s+1,2,`0`);case`MMM`:return f(n.monthsShort,s,u,3);case`MMMM`:return f(u,s);case`D`:return t.$D;case`DD`:return E.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return f(n.weekdaysMin,t.$W,l,2);case`ddd`:return f(n.weekdaysShort,t.$W,l,3);case`dddd`:return l[t.$W];case`H`:return String(a);case`HH`:return E.s(a,2,`0`);case`h`:return p(1);case`hh`:return p(2);case`a`:return h(a,o,!0);case`A`:return h(a,o,!1);case`m`:return String(o);case`mm`:return E.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return E.s(t.$s,2,`0`);case`SSS`:return E.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,m){var h,g=this,_=E.p(p),v=T(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return E.m(g,v)};switch(_){case f:h=x()/12;break;case u:h=x();break;case d:h=x()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case o:h=b/n;break;case a:h=b/t;break;case i:h=b/e;break;default:h=b}return m?h:E.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},_}(),O=D.prototype;return T.prototype=O,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,u],[`$y`,f],[`$D`,p]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||=(e(t,D,T),!0),T},T.locale=w,T.isDayjs=C,T.unix=function(e){return T(1e3*e)},T.en=x[b],T.Ls=x,T.p={},T}))})),Nt,Pt,V,Ft,It,Lt=s((()=>{jt(),Nt=f(Mt(),1),Pt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},V={trace:B((...e)=>{},`trace`),debug:B((...e)=>{},`debug`),info:B((...e)=>{},`info`),warn:B((...e)=>{},`warn`),error:B((...e)=>{},`error`),fatal:B((...e)=>{},`fatal`)},Ft=B(function(e=`fatal`){let t=Pt.fatal;typeof e==`string`?e.toLowerCase()in Pt&&(t=Pt[e]):typeof e==`number`&&(t=e),V.trace=()=>{},V.debug=()=>{},V.info=()=>{},V.warn=()=>{},V.error=()=>{},V.fatal=()=>{},t<=Pt.fatal&&(V.fatal=console.error?console.error.bind(console,It(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,It(`FATAL`))),t<=Pt.error&&(V.error=console.error?console.error.bind(console,It(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,It(`ERROR`))),t<=Pt.warn&&(V.warn=console.warn?console.warn.bind(console,It(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,It(`WARN`))),t<=Pt.info&&(V.info=console.info?console.info.bind(console,It(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,It(`INFO`))),t<=Pt.debug&&(V.debug=console.debug?console.debug.bind(console,It(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,It(`DEBUG`))),t<=Pt.trace&&(V.trace=console.debug?console.debug.bind(console,It(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,It(`TRACE`)))},`setLogLevel`),It=B(e=>`%c${(0,Nt.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),Rt,tee=s((()=>{Rt={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return Rt.hue2rgb(a,i,e+1/3)*255;case`g`:return Rt.hue2rgb(a,i,e)*255;case`b`:return Rt.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}}})),nee,ree=s((()=>{nee={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),iee,aee=s((()=>{iee={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),zt,Bt=s((()=>{tee(),ree(),aee(),zt={channel:Rt,lang:nee,unit:iee}})),Vt,Ht,Ut=s((()=>{Bt(),Vt={};for(let e=0;e<=255;e++)Vt[e]=zt.unit.dec2hex(e);Ht={ALL:0,RGB:1,HSL:2}})),oee,see=s((()=>{Ut(),oee=class{constructor(){this.type=Ht.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=Ht.ALL}is(e){return this.type===e}}})),cee,lee=s((()=>{Bt(),see(),Ut(),cee=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new oee}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Ht.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=zt.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=zt.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=zt.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=zt.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=zt.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=zt.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(Ht.HSL)&&t!==void 0?t:(this._ensureHSL(),zt.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(Ht.RGB)&&t!==void 0?t:(this._ensureRGB(),zt.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(Ht.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ht.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ht.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ht.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ht.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ht.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),Wt,Gt=s((()=>{lee(),Wt=new cee({r:0,g:0,b:0,a:0},`transparent`)})),Kt,uee=s((()=>{Gt(),Ut(),Kt={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(Kt.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return Wt.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${Vt[Math.round(t)]}${Vt[Math.round(n)]}${Vt[Math.round(r)]}${Vt[Math.round(i*255)]}`:`#${Vt[Math.round(t)]}${Vt[Math.round(n)]}${Vt[Math.round(r)]}`}}})),qt,dee=s((()=>{Bt(),Gt(),qt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(qt.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return zt.channel.clamp.h(parseFloat(e)*.9);case`rad`:return zt.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return zt.channel.clamp.h(parseFloat(e)*360)}}return zt.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(qt.re);if(!n)return;let[,r,i,a,o,s]=n;return Wt.set({h:qt._hue2deg(r),s:zt.channel.clamp.s(parseFloat(i)),l:zt.channel.clamp.l(parseFloat(a)),a:o?zt.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${zt.lang.round(t)}, ${zt.lang.round(n)}%, ${zt.lang.round(r)}%, ${i})`:`hsl(${zt.lang.round(t)}, ${zt.lang.round(n)}%, ${zt.lang.round(r)}%)`}}})),Jt,fee=s((()=>{uee(),Jt={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=Jt.colors[e];if(t)return Kt.parse(t)},stringify:e=>{let t=Kt.stringify(e);for(let e in Jt.colors)if(Jt.colors[e]===t)return e}}})),Yt,pee=s((()=>{Bt(),Gt(),Yt={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(Yt.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return Wt.set({r:zt.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:zt.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:zt.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?zt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${zt.lang.round(t)}, ${zt.lang.round(n)}, ${zt.lang.round(r)}, ${zt.lang.round(i)})`:`rgb(${zt.lang.round(t)}, ${zt.lang.round(n)}, ${zt.lang.round(r)})`}}})),Xt,Zt=s((()=>{uee(),dee(),fee(),pee(),Ut(),Xt={format:{keyword:Jt,hex:Kt,rgb:Yt,rgba:Yt,hsl:qt,hsla:qt},parse:e=>{if(typeof e!=`string`)return e;let t=Kt.parse(e)||Yt.parse(e)||qt.parse(e)||Jt.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ht.HSL)||e.data.r===void 0?qt.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Yt.stringify(e):Kt.stringify(e)}})),Qt,mee=s((()=>{Bt(),Zt(),Qt=(e,t)=>{let n=Xt.parse(e);for(let e in t)n[e]=zt.channel.clamp[e](t[e]);return Xt.stringify(n)}})),$t,hee=s((()=>{Bt(),Gt(),Zt(),mee(),$t=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return Qt(e,{a:t});let i=Wt.set({r:zt.channel.clamp.r(e),g:zt.channel.clamp.g(t),b:zt.channel.clamp.b(n),a:zt.channel.clamp.a(r)});return Xt.stringify(i)}})),en,gee=s((()=>{Bt(),Zt(),en=(e,t)=>zt.lang.round(Xt.parse(e)[t])})),_ee,vee=s((()=>{Bt(),Zt(),_ee=e=>{let{r:t,g:n,b:r}=Xt.parse(e),i=.2126*zt.channel.toLinear(t)+.7152*zt.channel.toLinear(n)+.0722*zt.channel.toLinear(r);return zt.lang.round(i)}})),yee,bee=s((()=>{vee(),yee=e=>_ee(e)>=.5})),tn,xee=s((()=>{bee(),tn=e=>!yee(e)})),nn,rn=s((()=>{Bt(),Zt(),nn=(e,t,n)=>{let r=Xt.parse(e),i=r[t],a=zt.channel.clamp[t](i+n);return i!==a&&(r[t]=a),Xt.stringify(r)}})),an,See=s((()=>{rn(),an=(e,t)=>nn(e,`l`,t)})),on,Cee=s((()=>{rn(),on=(e,t)=>nn(e,`l`,-t)})),sn,wee=s((()=>{rn(),sn=(e,t)=>nn(e,`a`,-t)})),H,Tee=s((()=>{Zt(),mee(),H=(e,t)=>{let n=Xt.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return Qt(e,r)}})),Eee,Dee=s((()=>{Zt(),hee(),Eee=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=Xt.parse(e),{r:s,g:l,b:u,a:d}=Xt.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h;return $t(r*h+s*g,i*h+l*g,a*h+u*g,o*f+d*(1-f))}})),U,Oee=s((()=>{Zt(),Dee(),U=(e,t=100)=>{let n=Xt.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Eee(n,e,t)}})),kee=s((()=>{hee(),gee(),xee(),See(),Cee(),wee(),Tee(),Oee()})),cn=s((()=>{kee()}));function Aee(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jee(e){if(Array.isArray(e))return e}function Mee(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pee(e,t){return jee(e)||Mee(e,t)||Fee(e,t)||Nee()}function Fee(e,t){if(e){if(typeof e==`string`)return Aee(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aee(e,t):void 0}}function ln(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return yn(e,t,r)}}function Iee(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return bn(e,n)}}function un(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tn;if(mn&&mn(e,null),!wn(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Vee(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Lee(e){for(let t=0;t<e.length;t++)Mn(e,t)||(e[t]=null);return e}function dn(e){let t=_n(null);for(let r of pn(e)){var n=Pee(r,2);let i=n[0],a=n[1];Mn(e,i)&&(wn(a)?t[i]=Lee(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=dn(a):t[i]=a)}return t}function Ree(e){switch(typeof e){case`string`:return e;case`number`:return qee(e);case`boolean`:return Jee(e);case`bigint`:return An?An(e):`0`;case`symbol`:return jn?jn(e):`Symbol()`;case`undefined`:return Nn(e);case`function`:case`object`:{if(e===null)return Nn(e);let t=e,n=fn(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Nn(e)}return Nn(e)}default:return Nn(e)}}function fn(e,t){for(;e!==null;){let n=Uee(e,t);if(n){if(n.get)return ln(n.get);if(typeof n.value==`function`)return ln(n.value)}e=Hee(e)}function n(){return null}return n}function zee(e){try{return Pn(e,``),!0}catch{return!1}}function Bee(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cte(),t=e=>Bee(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==Jn.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=fn(f,`cloneNode`),m=fn(f,`remove`),h=fn(f,`nextSibling`),g=fn(f,`childNodes`),_=fn(f,`parentNode`),v=fn(f,`shadowRoot`),y=fn(f,`attributes`),b=o&&o.prototype?fn(o.prototype,`nodeType`):null,x=o&&o.prototype?fn(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=!1,E=0,D=function(){if(E>0)throw Fn(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},O=function(e){D(),E++;try{return S.createHTML(e)}finally{E--}},k=function(e){D(),E++;try{return S.createScriptURL(e)}finally{E--}},A=function(){return T||=(w=lte(d,i),!0),w},j=n,M=j.implementation,N=j.createNodeIterator,P=j.createDocumentFragment,F=j.getElementsByTagName,I=r.importNode,L=Yn();t.isSupported=typeof pn==`function`&&typeof _==`function`&&M&&M.createHTMLDocument!==void 0;let R=Zee,ee=Qee,te=$ee,z=ete,ne=tte,re=nte,ie=rte,ae=ate,oe=Gn,se=null,ce=un({},[...In,...Ln,...Rn,...zn,...Bn]),le=null,ue=un({},[...Vn,...Hn,...Un,...Wn]),de=Object.seal(_n(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,pe=null,me=Object.seal(_n(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),he=!0,ge=!0,_e=!1,ve=!0,ye=!1,be=!0,xe=!1,Se=!1,Ce=null,we=null,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!0,Ae=!1,je=`user-content-`,Me=!0,Ne=!1,Pe={},Fe=null,Ie=un({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Le=null,Re=un({},[`audio`,`video`,`img`,`source`,`image`,`track`]),ze=null,Be=un({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ve=`http://www.w3.org/1998/Math/MathML`,He=`http://www.w3.org/2000/svg`,Ue=`http://www.w3.org/1999/xhtml`,We=Ue,Ge=!1,Ke=null,qe=un({},[Ve,He,Ue],En),Je=hn([`mi`,`mo`,`mn`,`ms`,`mtext`]),Ye=un({},Je),Xe=hn([`annotation-xml`]),Ze=un({},Xe),Qe=un({},[`title`,`style`,`font`,`a`,`script`]),$e=null,et=[`application/xhtml+xml`,`text/html`],tt=null,nt=null,rt=n.createElement(`form`),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(nt&&nt===e)return;(!e||typeof e!=`object`)&&(e={}),e=dn(e),$e=et.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,tt=$e===`application/xhtml+xml`?En:Tn,se=Xn(e,`ALLOWED_TAGS`,ce,{transform:tt}),le=Xn(e,`ALLOWED_ATTR`,ue,{transform:tt}),Ke=Xn(e,`ALLOWED_NAMESPACES`,qe,{transform:En}),ze=Xn(e,`ADD_URI_SAFE_ATTR`,Be,{transform:tt,base:Be}),Le=Xn(e,`ADD_DATA_URI_TAGS`,Re,{transform:tt,base:Re}),Fe=Xn(e,`FORBID_CONTENTS`,Ie,{transform:tt}),fe=Xn(e,`FORBID_TAGS`,dn({}),{transform:tt}),pe=Xn(e,`FORBID_ATTR`,dn({}),{transform:tt}),Pe=Mn(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?dn(e.USE_PROFILES):e.USE_PROFILES:!1,he=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ye=e.SAFE_FOR_TEMPLATES||!1,be=e.SAFE_FOR_XML!==!1,xe=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,ke=e.SANITIZE_DOM!==!1,Ae=e.SANITIZE_NAMED_PROPS||!1,Me=e.KEEP_CONTENT!==!1,Ne=e.IN_PLACE||!1,oe=zee(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Gn,We=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ue,Ye=Mn(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?dn(e.MATHML_TEXT_INTEGRATION_POINTS):un({},Je),Ze=Mn(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?dn(e.HTML_INTEGRATION_POINTS):un({},Xe);let t=Mn(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?dn(e.CUSTOM_ELEMENT_HANDLING):_n(null);if(de=_n(null),Mn(t,`tagNameCheck`)&&it(t.tagNameCheck)&&(de.tagNameCheck=t.tagNameCheck),Mn(t,`attributeNameCheck`)&&it(t.attributeNameCheck)&&(de.attributeNameCheck=t.attributeNameCheck),Mn(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(de.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),gn(de),ye&&(ge=!1),De&&(Ee=!0),Pe&&(se=un({},Bn),le=_n(null),Pe.html===!0&&(un(se,In),un(le,Vn)),Pe.svg===!0&&(un(se,Ln),un(le,Hn),un(le,Wn)),Pe.svgFilters===!0&&(un(se,Rn),un(le,Hn),un(le,Wn)),Pe.mathMl===!0&&(un(se,zn),un(le,Un),un(le,Wn))),me.tagCheck=null,me.attributeCheck=null,Mn(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?me.tagCheck=e.ADD_TAGS:wn(e.ADD_TAGS)&&(se===ce&&(se=dn(se)),un(se,e.ADD_TAGS,tt))),Mn(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?me.attributeCheck=e.ADD_ATTR:wn(e.ADD_ATTR)&&(le===ue&&(le=dn(le)),un(le,e.ADD_ATTR,tt))),Mn(e,`ADD_URI_SAFE_ATTR`)&&wn(e.ADD_URI_SAFE_ATTR)&&un(ze,e.ADD_URI_SAFE_ATTR,tt),Mn(e,`FORBID_CONTENTS`)&&wn(e.FORBID_CONTENTS)&&(Fe===Ie&&(Fe=dn(Fe)),un(Fe,e.FORBID_CONTENTS,tt)),Mn(e,`ADD_FORBID_CONTENTS`)&&wn(e.ADD_FORBID_CONTENTS)&&(Fe===Ie&&(Fe=dn(Fe)),un(Fe,e.ADD_FORBID_CONTENTS,tt)),Me&&(se[`#text`]=!0),xe&&un(se,[`html`,`head`,`body`]),se.table&&(un(se,[`tbody`]),delete fe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Fn(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Fn(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=O(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=A()),S&&typeof C==`string`&&(C=O(``)));hn&&hn(e),nt=e},ot=un({},[...Ln,...Rn,...Yee]),st=un({},[...zn,...Xee]),ct=function(e,t,n){return t.namespaceURI===Ue?e===`svg`:t.namespaceURI===Ve?e===`svg`&&(n===`annotation-xml`||Ye[n]):!!ot[e]},lt=function(e,t,n){return t.namespaceURI===Ue?e===`math`:t.namespaceURI===He?e===`math`&&Ze[n]:!!st[e]},ut=function(e,t,n){return t.namespaceURI===He&&!Ze[n]||t.namespaceURI===Ve&&!Ye[n]?!1:!st[e]&&(Qe[e]||!ot[e])},dt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:We,tagName:`template`});let n=Tn(e.tagName),r=Tn(t.tagName);return Ke[e.namespaceURI]?e.namespaceURI===He?ct(n,t,r):e.namespaceURI===Ve?lt(n,t,r):e.namespaceURI===Ue?ut(n,t,r):!!($e===`application/xhtml+xml`&&Ke[e.namespaceURI]):!1},ft=function(e){Cn(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(m(e),!_(e))throw Fn(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},pt=function(e){gt(e);let t=g(e);if(t){let e=[];xn(t,t=>{Cn(e,t)}),xn(e,e=>{try{m(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},mt=function(e,n){try{Cn(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Cn(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ee||De)try{ft(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ht=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||le[tt(i)]))try{e.removeAttribute(i)}catch{}}},gt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(b?b(e):e.nodeType)===Jn.element&&ht(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},_t=function(e){if(!be)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;if(n===Jn.processingInstruction||n===Jn.comment&&Pn(qn,e.data)){try{m(e)}catch{}continue}if(n===Jn.element){let t=e,n=tt(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},vt=function(e){let t=null,r=null;if(Te)e=`<remove></remove>`+e;else{let t=Dn(e,/^[\r\n\t ]+/);r=t&&t[0]}$e===`application/xhtml+xml`&&We===Ue&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?O(e):e;if(We===Ue)try{t=new u().parseFromString(i,$e)}catch{}if(!t||!t.documentElement){t=M.createDocument(We,`template`,null);try{t.documentElement.innerHTML=Ge?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),We===Ue?F.call(t,xe?`html`:`body`)[0]:xe?t.documentElement:a},yt=function(e){return N.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},bt=function(e){return e=On(e,R,` `),e=On(e,ee,` `),e=On(e,te,` `),e},xt=function(e){e.normalize();let t=N.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=bt(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&xn(r,e=>{Ct(e.content)&&xt(e.content)})},St=function(e){let t=x?x(e):null;return typeof t!=`string`||tt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Ct=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Jn.documentFragment}catch{return!1}},wt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Tt(e,n,r){e.length!==0&&xn(e,e=>{e.call(t,n,r,nt)})}let Et=function(e,t){return!!(be&&e.hasChildNodes()&&!wt(e.firstElementChild)&&Pn(Kn,e.textContent)&&Pn(Kn,e.innerHTML)||be&&e.namespaceURI===Ue&&t===`style`&&wt(e.firstElementChild)||e.nodeType===Jn.processingInstruction||be&&e.nodeType===Jn.comment&&Pn(qn,e.data))},eee=function(e,t){if(!fe[t]&&B(t)&&(de.tagNameCheck instanceof RegExp&&Pn(de.tagNameCheck,t)||de.tagNameCheck instanceof Function&&de.tagNameCheck(t)))return!1;if(Me&&!Fe[t]){let t=_(e),n=g(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Ne?n[i]:p(n[i],!0);t.insertBefore(r,h(e))}}}return ft(e),!0},Dt=function(e,n){if(Tt(L.beforeSanitizeElements,e,null),e!==n&&_(e)===null)return!0;if(St(e))return ft(e),!0;let r=tt(x?x(e):e.nodeName);if(Tt(L.uponSanitizeElement,e,{tagName:r,allowedTags:se}),e!==n&&_(e)===null)return!0;if(Et(e,r))return ft(e),!0;if(fe[r]||!(me.tagCheck instanceof Function&&me.tagCheck(r))&&!se[r]){let t=eee(e,r);return t===!1&&Tt(L.afterSanitizeElements,e,null),t}if((b?b(e):e.nodeType)===Jn.element&&!dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Pn(ote,e.innerHTML))return ft(e),!0;if(ye&&e.nodeType===Jn.text){let n=bt(e.textContent);e.textContent!==n&&(Cn(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Tt(L.afterSanitizeElements,e,null),!1},Ot=function(e,t,r){if(pe[t]||be&&t===`patchsrc`||be&&t===`for`&&e!==`label`&&e!==`output`||ke&&(t===`id`||t===`name`)&&(r in n||r in rt))return!1;let i=le[t]||me.attributeCheck instanceof Function&&me.attributeCheck(t,e);if(!(ge&&Pn(z,t))&&!(he&&Pn(ne,t))){if(!i){if(!(B(e)&&(de.tagNameCheck instanceof RegExp&&Pn(de.tagNameCheck,e)||de.tagNameCheck instanceof Function&&de.tagNameCheck(e))&&(de.attributeNameCheck instanceof RegExp&&Pn(de.attributeNameCheck,t)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(t,e))||t===`is`&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&Pn(de.tagNameCheck,r)||de.tagNameCheck instanceof Function&&de.tagNameCheck(r))))return!1}else if(!ze[t]&&!Pn(oe,On(r,ie,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&kn(r,`data:`)===0&&Le[e])&&!(_e&&!Pn(re,On(r,ie,``)))&&r)return!1}return!0},kt=un({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),B=function(e){return!kt[Tn(e)]&&Pn(ae,e)},At=function(e,t,n,r){if(S&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return O(r);case`TrustedScriptURL`:return k(r)}return r},jt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),St(e)?ft(e):Sn(t.removed)}catch{mt(n,e)}},Mt=function(e){Tt(L.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||St(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0},r=t.length,i=tt(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,l=a.value,u=tt(o),d=l,f=o===`value`?d:Kee(d);if(n.attrName=u,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Tt(L.uponSanitizeAttribute,e,n),f=n.attrValue,Ae&&(u===`id`||u===`name`)&&kn(f,je)!==0&&(mt(o,e),f=je+f),be&&Pn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){mt(o,e);continue}if(u===`attributename`&&Dn(f,`href`)){mt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){mt(o,e);continue}if(!ve&&Pn(ste,f)){mt(o,e);continue}if(ye&&(f=bt(f)),!Ot(i,u,f)){mt(o,e);continue}f=At(i,u,s,f),f!==d&&jt(e,o,s,f)}}Tt(L.afterSanitizeAttributes,e,null)},Nt=function(e){let t=null,n=yt(e);for(Tt(L.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Tt(L.uponSanitizeShadowNode,t,null),Dt(t,e),Mt(t),Ct(t.content)&&Nt(t.content),(b?b(t):t.nodeType)===Jn.element){let e=v(t);Ct(e)&&(Pt(e),Nt(e))}Tt(L.afterSanitizeShadowDOM,e,null)},Pt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Nt(e.shadow);continue}let n=e.node,r=(b?b(n):n.nodeType)===Jn.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&tt(e)===`template`){let e=n.content;Ct(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Ct(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ge=!e,Ge&&(e=`<!-->`),typeof e!=`string`&&!wt(e)&&(e=Ree(e),typeof e!=`string`))throw Fn(`dirty is not a string, aborting`);if(!t.isSupported)return e;Se?(se=Ce,le=we):at(n),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(se=dn(se)),L.uponSanitizeAttribute.length>0&&(le=dn(le)),t.removed=[];let l=Ne&&typeof e!=`string`&&wt(e);if(l){_t(e);let t=x?x(e):e.nodeName;if(typeof t==`string`){let n=tt(t);if(!se[n]||fe[n])throw pt(e),Fn(`root node is forbidden and cannot be sanitized in-place`)}if(St(e))throw pt(e),Fn(`root node is clobbered and cannot be sanitized in-place`);try{Pt(e)}catch(t){throw pt(e),t}}else if(wt(e))i=vt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Jn.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Pt(a);else{if(!Ee&&!ye&&!xe&&e.indexOf(`<`)===-1)return S&&Oe?O(e):e;if(i=vt(e),!i)return Ee?null:Oe?C:``}i&&Te&&ft(i.firstChild);let u=l?e:i,d=yt(u);try{for(;o=d.nextNode();)Dt(o,u),Mt(o),Ct(o.content)&&Nt(o.content)}catch(n){throw l&&(pt(e),xn(t.removed,e=>{e.element&>(e.element)})),n}if(l)return xn(t.removed,e=>{e.element&>(e.element)}),ye&&xt(e),e;if(Ee){if(ye&&xt(i),De)for(s=P.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(le.shadowroot||le.shadowrootmode)&&(s=I.call(r,s,!0)),s}let f=xe?i.outerHTML:i.innerHTML;return xe&&se[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Pn(ite,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
3
3
|
`+f),ye&&(f=bt(f)),S&&Oe?O(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};at(e),Se=!0,Ce=se,we=le},t.clearConfig=function(){nt=null,Se=!1,Ce=null,we=null,S=w,C=``},t.isValidAttribute=function(e,t,n){nt||at({});let r=tt(e),i=tt(t);return Ot(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Mn(L,e)&&Cn(L[e],t)},t.removeHook=function(e,t){if(Mn(L,e)){if(t!==void 0){let n=Wee(L[e],t);return n===-1?void 0:Gee(L[e],n,1)[0]}return Sn(L[e])}},t.removeHooks=function(e){Mn(L,e)&&(L[e]=[])},t.removeAllHooks=function(){L=Yn()},t}var pn,mn,Vee,Hee,Uee,hn,gn,_n,vn,yn,bn,xn,Wee,Sn,Cn,Gee,wn,Tn,En,Dn,On,kn,Kee,qee,Jee,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,Yee,zn,Xee,Bn,Vn,Hn,Un,Wn,Zee,Qee,$ee,ete,tte,Gn,nte,rte,ite,ate,Kn,qn,ote,ste,Jn,cte,lte,Yn,Xn,Zn,Qn=s((()=>{pn=Object.entries,mn=Object.setPrototypeOf,Vee=Object.isFrozen,Hee=Object.getPrototypeOf,Uee=Object.getOwnPropertyDescriptor,hn=Object.freeze,gn=Object.seal,_n=Object.create,vn=typeof Reflect<`u`&&Reflect,yn=vn.apply,bn=vn.construct,hn||=function(e){return e},gn||=function(e){return e},yn||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},bn||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},xn=ln(Array.prototype.forEach),Wee=ln(Array.prototype.lastIndexOf),Sn=ln(Array.prototype.pop),Cn=ln(Array.prototype.push),Gee=ln(Array.prototype.splice),wn=Array.isArray,Tn=ln(String.prototype.toLowerCase),En=ln(String.prototype.toString),Dn=ln(String.prototype.match),On=ln(String.prototype.replace),kn=ln(String.prototype.indexOf),Kee=ln(String.prototype.trim),qee=ln(Number.prototype.toString),Jee=ln(Boolean.prototype.toString),An=typeof BigInt>`u`?null:ln(BigInt.prototype.toString),jn=typeof Symbol>`u`?null:ln(Symbol.prototype.toString),Mn=ln(Object.prototype.hasOwnProperty),Nn=ln(Object.prototype.toString),Pn=ln(RegExp.prototype.test),Fn=Iee(TypeError),In=hn(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ln=hn(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Rn=hn([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Yee=hn([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),zn=hn(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Xee=hn([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Bn=hn([`#text`]),Vn=hn(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Hn=hn(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Un=hn(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Wn=hn([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Zee=gn(/{{[\w\W]*|^[\w\W]*}}/g),Qee=gn(/<%[\w\W]*|^[\w\W]*%>/g),$ee=gn(/\${[\w\W]*/g),ete=gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),tte=gn(/^aria-[\-\w]+$/),Gn=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nte=gn(/^(?:\w+script|data):/i),rte=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ite=gn(/^html$/i),ate=gn(/^[a-z][.\w]*(-[.\w]+)+$/i),Kn=gn(/<[/\w!]/g),qn=gn(/<[/\w]/g),ote=gn(/<\/no(script|embed|frames)/i),ste=gn(/\/>/i),Jn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cte=function(){return typeof window>`u`?null:window},lte=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Yn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xn=function(e,t,n,r){return Mn(e,t)&&wn(e[t])?un(r.base?dn(r.base):{},e[t],r.transform):n},Zn=Bee()})),ute=u({ParseError:()=>pr,SETTINGS_SCHEMA:()=>_r,__defineFunction:()=>er,__defineMacro:()=>G,__defineSymbol:()=>W,__domTree:()=>Cs,__parse:()=>vs,__renderToDomTree:()=>bs,__renderToHTMLTree:()=>xs,__setFontMetrics:()=>yte,default:()=>ure,render:()=>gs,renderToString:()=>_s,version:()=>Ss});function dte(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function fte(e){return e.default===void 0?dte(Array.isArray(e.type)?e.type[0]:e.type):e.default}function pte(e,t,n,r){var i=n[t];e[t]=i===void 0?fte(r):r.processor?r.processor(i):i}function mte(e){for(var t=0;t<Ar.length;t++)for(var n=Ar[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}function hte(e){for(var t=0;t<jr.length;t+=2)if(e>=jr[t]&&e<=jr[t+1])return!0;return!1}function gte(e){return`toText`in e}function _te(e){if(e instanceof qr)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function vte(e){if(e instanceof Gr)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}function yte(e,t){Qr[e]=t}function $n(e,t,n){if(!Qr[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Qr[t][r];if(!i&&e[0]in ei&&(r=ei[e[0]].charCodeAt(0),i=Qr[t][r]),!i&&n===`text`&&hte(r)&&(i=Qr[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function bte(e){var t=e>=5?0:e>=3?1:2;if(!ti[t]){var n=ti[t]={cssEmPerMu:$r.quad[t]/18};for(var r in $r)$r.hasOwnProperty(r)&&(n[r]=$r[r][t])}return ti[t]}function W(e,t,n,r,i,a){ni[e][i]={font:t,group:n,replace:r},a&&r&&(ni[e][r]=ni[e][i])}function er(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)la[n[l]]=s;t&&(a&&(ua[t]=a),o&&(da[t]=o))}function tr(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;er({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}function nr(e,t){var n=Yi([`base`],e,t),r=Yi([`strut`]);return r.style.height=zr(n.height+n.depth),n.depth&&(r.style.verticalAlign=zr(-n.depth)),n.children.unshift(r),n}function rr(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=ma(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var l=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(l=!0);l||(a.push(nr(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(nr(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(nr(o,t));var u;n?(u=nr(ma(n,t,!0),t),u.classes=[`tag`],a.push(u)):i&&a.push(i);var d=Yi([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=zr(d.height+d.depth),d.depth&&(f.style.verticalAlign=zr(-d.depth))}return d}function xte(e){return new Fr(e)}function ir(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Sa&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Sa&&n.text===`,`}else return!1}function Ste(e,t,n,r,i){var a=Da(e,n),o=a.length===1&&a[0]instanceof xa&&yne.has(a[0].type)?a[0]:new xa(`mrow`,a),s=new xa(`annotation`,[new Sa(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new xa(`semantics`,[o,s]),u=new xa(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),Yi([i?`katex`:`katex-mathml`],[u])}function Cte(e){return e in One}function ar(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function or(e){var t=sr(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function sr(e){return e&&(e.type===`atom`||kne.hasOwnProperty(e.type))?e:null}function wte(e,t){var n=ma(e.body,t,!0);return Yi([e.mclass],n,t)}function Tte(e,t){var n,r=Da(e.body,t);return e.mclass===`minner`?n=new xa(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new xa(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new xa(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}function Ete(e,t,n){var r=jne[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Dte(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new pr(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Ha(),l=0;l<o.length;l++)if(!Ua(o[l]))s.body.push(o[l]);else{r.push(s),l+=1;var u=or(o[l]).text,d=[,,];if(d[0]={type:`ordgroup`,mode:`math`,body:[]},d[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(u))if(`<>AV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;m<o.length;m++){if(Mne(o[m],u)){p=!1,l=m;break}if(Ua(o[m]))throw new pr(`Missing a `+u+` character to complete a CD arrow.`,o[m]);d[f].body.push(o[m])}if(p)throw new pr(`Missing a `+u+` character to complete a CD arrow.`,o[l])}else throw new pr(`Expected one of "<>AV=|." after @`,o[l]);var h={type:`styling`,body:[Ete(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=Ha()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function Ote(e){return`isMiddle`in e}function cr(e,t){var n=sr(e);if(n&&Hne.has(n.text))return n;throw n?new pr(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new pr(`Invalid delimiter type '`+e.type+`'`,e)}function kte(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function lr(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)bo[n[l]]=s;a&&(ua[t]=a),o&&(da[t]=o)}function G(e,t){xo[e]=t}function Ate(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}function ur(e){if(!e.includes(`ed`))return!e.includes(`*`)}function dr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var m=e.gullet.expandMacroAsText(`\\arraystretch`);if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new pr(`Invalid \\arraystretch: `+m)}e.gullet.beginGroup();var h=[],g=[h],_=[],v=[],y=l==null?void 0:[];function b(){l&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function x(){y&&(e.gullet.macros.get(`\\df@tag`)?(y.push(e.subparse([new Co(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):y.push(!!l&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(b(),v.push(Ate(e));;){var S=e.parseExpression(!1,u?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var C={type:`ordgroup`,mode:e.mode,body:S};n&&(C={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[C]}),h.push(C);var w=e.fetch().text;if(w===`&`){if(f&&h.length===f){if(u||s)throw new pr(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(w===`\\end`){x(),h.length===1&&C.type===`styling`&&C.body.length===1&&C.body[0].type===`ordgroup`&&C.body[0].body.length===0&&(g.length>1||!d)&&g.pop(),v.length<g.length+1&&v.push([]);break}else if(w===`\\\\`){e.consume();var T=void 0;e.gullet.future().text!==` `&&(T=e.parseSizeGroup(!0)),_.push(T?T.value:null),x(),v.push(Ate(e)),h=[],g.push(h),b()}else throw new pr(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:g,cols:a,rowGaps:_,hskipBeforeAndAfter:r,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:p}}function fr(e){return e.slice(0,1)===`d`?`display`:`text`}function jte(e,t,n){for(var r=ma(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Qi(r)}function Mte(e){return e in Wo}var pr,Nte,Pte,Fte,Ite,mr,hr,Lte,gr,Rte,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,zte,Bte,Vte,Hte,Ute,Wte,kr,Ar,jr,Mr,Nr,Gte,Kte,qte,Jte,Yte,Xte,Zte,Qte,$te,Pr,ene,Fr,Ir,tne,Lr,Rr,zr,Br,Vr,Hr,Ur,nne,Wr,Gr,Kr,rne,ine,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,K,ri,q,J,ii,ai,oi,si,ci,li,ui,di,Y,fi,X,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,ane,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,one,sne,Ui,Wi,Gi,cne,Ki,lne,qi,Ji,Yi,Xi,Zi,une,Qi,$i,dne,ea,ta,na,ra,ia,aa,oa,sa,ca,fne,pne,la,ua,da,fa,pa,mne,hne,gne,_ne,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,vne,yne,wa,Ta,bne,Ea,Da,Oa,ka,xne,Aa,ja,Ma,Na,Pa,Sne,Cne,wne,Fa,Tne,Ene,Ia,Dne,One,kne,La,Ra,za,Ane,Ba,Va,jne,Ha,Ua,Mne,Wa,Ga,Ka,qa,Nne,Ja,Ya,Xa,Za,Qa,Pne,$a,eo,to,no,ro,Fne,Ine,io,ao,oo,so,Lne,co,Rne,lo,uo,fo,zne,Bne,po,Vne,mo,ho,go,_o,Hne,vo,yo,bo,xo,So,Co,wo,Une,To,Wne,Eo,Do,Oo,ko,Ao,jo,Gne,Kne,Mo,No,Po,Fo,qne,Io,Lo,Ro,zo,Bo,Vo,Jne,Yne,Ho,Xne,Uo,Zne,Wo,Qne,Go,Ko,qo,Jo,Yo,Xo,$ne,Zo,Qo,$o,es,ere,tre,nre,rre,ts,ire,are,ns,ore,sre,rs,is,as,cre,os,ss,cs,ls,lre,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ure,dre=s((()=>{for(pr=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=u+l+d}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Nte=/([A-Z])/g,Pte=e=>e.replace(Nte,`-$1`).toLowerCase(),Fte={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Ite=/[&><"']/g,mr=e=>String(e).replace(Ite,e=>Fte[e]),hr=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?hr(e.body[0]):e:e.type===`font`?hr(e.body):e,Lte=new Set([`mathord`,`textord`,`atom`]),gr=e=>Lte.has(hr(e).type),Rte=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},_r={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},vr=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(_r)){var n=_r[t];n&&pte(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new pr(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Rte(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},yr=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Or[zte[this.id]]}sub(){return Or[Bte[this.id]]}fracNum(){return Or[Vte[this.id]]}fracDen(){return Or[Hte[this.id]]}cramp(){return Or[Ute[this.id]]}text(){return Or[Wte[this.id]]}isTight(){return this.size>=2}},br=0,xr=1,Sr=2,Cr=3,wr=4,Tr=5,Er=6,Dr=7,Or=[new yr(br,0,!1),new yr(xr,0,!0),new yr(Sr,1,!1),new yr(Cr,1,!0),new yr(wr,2,!1),new yr(Tr,2,!0),new yr(Er,3,!1),new yr(Dr,3,!0)],zte=[wr,Tr,wr,Tr,Er,Dr,Er,Dr],Bte=[Tr,Tr,Tr,Tr,Dr,Dr,Dr,Dr],Vte=[Sr,Cr,wr,Tr,Er,Dr,Er,Dr],Hte=[Cr,Cr,Tr,Tr,Dr,Dr,Dr,Dr],Ute=[xr,xr,Cr,Cr,Tr,Tr,Dr,Dr],Wte=[br,xr,Sr,Cr,Sr,Cr,Sr,Cr],kr={DISPLAY:Or[br],TEXT:Or[Sr],SCRIPT:Or[wr],SCRIPTSCRIPT:Or[Er]},Ar=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],jr=[],Ar.forEach(e=>e.blocks.forEach(e=>jr.push(...e))),Mr=e=>e+` `+e,Nr=80,Gte=function(e,t){return`M95,`+(622+e+t)+`
|
|
4
4
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|