(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}},c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;lt[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=c((e=>{ /** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=d()})),p=c(((e,t)=>{ /* object-assign (c) Sindre Sorhus @license MIT */ var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l{var n=p(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n{var n=f(),r=m();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),g,_;function v(){return(v=s((()=>{g=e=>typeof e==`object`&&!!e&&!Array.isArray(e),_=e=>JSON.parse(JSON.stringify(e))})))()}function y(e){return typeof e==`function`}function b(e){return typeof e?.then==`function`}function x(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function C(e,t,n=!1){return e===void 0?n?t():t:e}function w(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var T,ee,te,ne,re,ie,ae,oe,se,ce,le,E;function ue(){return(ue=s((()=>{T=Array.isArray,ee=Array.prototype.indexOf,te=Array.prototype.includes,ne=Array.from,re=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyDescriptors,oe=Object.prototype,se=Array.prototype,ce=Object.getPrototypeOf,le=Object.isExtensible,E=()=>{}})))()}var de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le;function Re(){return(Re=s((()=>{de=1<<24,fe=1024,pe=2048,me=4096,he=8192,ge=16384,_e=32768,ve=1<<25,ye=65536,be=1<<18,xe=1<<19,Se=1<<20,Ce=1<<25,we=65536,Te=1<<21,Ee=1<<22,De=1<<23,Oe=Symbol(`$state`),ke=Symbol(`legacy props`),Ae=Symbol(``),je=Symbol(`attributes`),Me=Symbol(`class`),Ne=Symbol(`style`),Pe=Symbol(`text`),Fe=Symbol(`form reset`),Ie=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Le=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)})))()}function ze(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Be(){return(Be=s((()=>{})))()}function Ve(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function He(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ue(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function We(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ke(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function qe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Je(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ye(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Xe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Qe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function $e(){return($e=s((()=>{Be()})))()}var et,tt,nt,rt,it;function at(){return(at=s((()=>{et={},tt=Symbol(`uninitialized`),nt=`http://www.w3.org/1999/xhtml`,rt=`http://www.w3.org/2000/svg`,it=`http://www.w3.org/1998/Math/MathML`})))()}function ot(){console.warn(`https://svelte.dev/e/derived_inert`)}function st(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ct(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function lt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}function ut(){return(ut=s((()=>{})))()}function dt(e){_t=e}function ft(e){if(e===null)throw st(),et;return vt=e}function pt(){return ft(Fr(vt))}function D(e){if(_t){if(Fr(vt)!==null)throw st(),et;vt=e}}function mt(e=1){if(_t){for(var t=e,n=vt;t--;)n=Fr(n);vt=n}}function ht(e=!0){for(var t=0,n=vt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Fr(n);e&&n.remove(),n=i}}function gt(e){if(!e||e.nodeType!==8)throw st(),et;return e.data}var _t,vt;function yt(){return(yt=s((()=>{Re(),at(),ut(),Gr(),_t=!1})))()}function bt(e){return e===this.v}function xt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function St(e){return!xt(e,this.v)}var Ct,wt;function Tt(){return(Tt=s((()=>{Ct=!1,wt=!1})))()}function Et(){return(Et=s((()=>{})))()}function Dt(e,t=!1,n=!1){return Ot(e,new Map,``,kt,null,n)}function Ot(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(T(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c{Et(),ue(),kt=[]})))()}function jt(){return(jt=s((()=>{At(),Re(),yi(),Zi()})))()}function Mt(){return(Mt=s((()=>{ue(),Be()})))()}function Nt(e){Bt=e}function Pt(e){return Rt(`getContext`).get(e)}function Ft(e,t){let n=Rt(`setContext`);if(Ct){var r=Ui.f;!Vi&&r&32&&!Bt.i||Je()}return n.set(e,t),t}function It(){return Rt(`getAllContexts`)}function O(e,t=!1,n){Bt={p:Bt,i:!1,c:null,e:null,s:e,x:null,r:Ui,l:wt&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Bt,n=t.e;if(n!==null){t.e=null;for(var r of n)Qr(r)}return e!==void 0&&(t.x=e),t.i=!0,Bt=t.p,e??{}}function Lt(){return!wt||Bt!==null&&Bt.l===null}function Rt(e){return Bt===null&&ze(e),Bt.c??=new Map(zt(Bt)||void 0)}function zt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Bt;function Vt(){return(Vt=s((()=>{$e(),Zi(),yi(),Tt(),Re(),Bt=null})))()}function Ht(){var e=Gt;Gt=[],x(e)}function Ut(e){if(Gt.length===0&&!lr){var t=Gt;queueMicrotask(()=>{t===Gt&&Ht()})}Gt.push(e)}function Wt(){for(;Gt.length>0;)Ht()}var Gt;function Kt(){return(Kt=s((()=>{ue(),_r(),Gt=[]})))()}function qt(e){var t=Ui;if(t===null)return Vi.f|=De,e;if(!(t.f&32768)&&!(t.f&4))throw e;Jt(e,t)}function Jt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Yt(){return(Yt=s((()=>{at(),Gr(),Re(),ue(),Zi()})))()}function Xt(e,t){e.f=e.f&Qt|t}function Zt(e){e.f&512||e.deps===null?Xt(e,fe):Xt(e,me)}var Qt;function $t(){return($t=s((()=>{Re(),Qt=~(pe|me|fe)})))()}function en(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=we,en(t.deps))}function tn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),en(e.deps),Xt(e,fe)}function nn(){return(nn=s((()=>{Re(),$t()})))()}function rn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=Ri(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function an(){return(an=s((()=>{Zi(),ue()})))()}function on(e,t){return{subscribe:sn(e,t).subscribe}}function sn(e,t=E){let n=null,r=new Set;function i(t){if(xt(e,t)&&(e=t,n)){let t=!ln.length;for(let t of r)t[1](),ln.push(t,e);if(t){for(let e=0;e{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function cn(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return on(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>rn(e,e=>{s[t]=e,c&=~(1<{c|=1<t=e)(),t}var ln;function un(){return(un=s((()=>{ue(),an(),ln=[]})))()}function j(e,t,n){let r=n[t]??={store:null,source:yr(void 0),unsubscribe:E};if(r.store!==e&&!(yn in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=rn(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}}return e&&yn in n?A(e):z(r.source)}function dn(e,t){return pn(e,t),t}function fn(){let e={};function t(){Xr(()=>{for(var t in e)e[t].unsubscribe();re(e,yn,{enumerable:!1,value:!0})})}return[e,t]}function pn(e,t){_n=!0;try{e.set(t)}finally{_n=!1}}function mn(e,t,n){return pn(e,n),t}function hn(){vn=!0}function gn(e){var t=vn;try{return vn=!1,[e(),vn]}finally{vn=t}}var _n,vn,yn;function bn(){return(bn=s((()=>{an(),un(),ue(),Zi(),yi(),Er(),_n=!1,vn=!1,yn=Symbol(`unmounted`)})))()}function xn(){return(xn=s((()=>{Re(),At(),Zi()})))()}function Sn(e,t){if(t){let t=document.body;e.autofocus=!0,Ut(()=>{document.activeElement===t&&e.focus()})}}function Cn(e){_t&&Pr(e)!==null&&Ir(e)}function wn(){Tn||(Tn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Fe]?.()})},{capture:!0}))}var Tn;function En(){return(En=s((()=>{yt(),Gr(),Kt(),Re(),Tn=!1})))()}function Dn(e){var t=Vi,n=Ui;Ci(null),wi(null);try{return e()}finally{Ci(t),wi(n)}}function On(e,t,n,r=n){e.addEventListener(t,()=>Dn(n));let i=e[Fe];i?e[Fe]=()=>{i(),r(!0)}:e[Fe]=()=>r(!0),wn()}function kn(){return(kn=s((()=>{yi(),Zi(),Re(),En()})))()}function An(e){let t=0,n=vr(0),r;return()=>{Yr()&&(z(n),ri(()=>(t===0&&(r=Ri(()=>e(()=>xr(n)))),t+=1,()=>{Ut(()=>{--t,t===0&&(r?.(),r=void 0,xr(n))})})))}}function jn(){return(jn=s((()=>{Zi(),yi(),Er(),jt(),Kt()})))()}function Mn(e,t,n,r){new Pn(e,t,n,r)}var Nn,Pn;function Fn(){return(Fn=s((()=>{Re(),at(),Vt(),Yt(),yi(),Zi(),yt(),Kt(),$e(),ut(),_r(),Er(),jt(),jn(),Gr(),nn(),Nn=ye|xe,Pn=class{parent;is_pending=!1;transform_error;#e;#t=_t?vt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=An(()=>(this.#m=vr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Ui;t.b=this,t.f|=128,n(e)},this.parent=Ui.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ai(()=>{if(_t){let e=this.#t;pt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Nn),_t&&(this.#e=vt)}#g(){try{this.#a=si(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ut(r),t&&(this.#s=si(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){lt();return}t=!0,n&&Qe(),this.#s!==null&&mi(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Jt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=si(()=>e(this.#e)),Ut(()=>{var e=this.#c=document.createDocumentFragment(),t=Nr();e.append(t),this.#a=this.#S(()=>si(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,mi(this.#o,()=>{this.#o=null}),this.#x(ar))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=si(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();vi(this.#a,e);let t=this.#n.pending;this.#o=si(()=>t(this.#e))}else this.#x(ar)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){tn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Ui,n=Vi,r=Bt;wi(this.#i),Ci(this.#i),Nt(this.#i.ctx);try{return hr.ensure(),e()}catch(e){return qt(e),null}finally{wi(t),Ci(n),Nt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&mi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ut(()=>{this.#d=!1,this.#m&&br(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;ar?.is_fork?(this.#a&&ar.skip_effect(this.#a),this.#o&&ar.skip_effect(this.#o),this.#s&&ar.skip_effect(this.#s),ar.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(di(this.#a),null),this.#o&&=(di(this.#o),null),this.#s&&=(di(this.#s),null),_t&&(ft(this.#t),mt(),ft(ht()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return si(()=>{var r=Ui;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Jt(e,this.#i.parent),null}}))};Ut(()=>{var t;try{t=this.transform_error(e)}catch(e){Jt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Jt(e,this.#i&&this.#i.parent)):n(t)})}}})))()}function In(e,t,n,r){let i=Lt()?Vn:Hn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Ui,c=Ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Jt(e,s)}Rn()}}var d=zn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>eee(e))).then(u).catch(e=>Jt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Rn()}):f()}function Ln(){var e=Ui,t=Vi,n=Bt,r=ar;return function(i=!0){wi(e),Ci(t),Nt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Rn(e=!0){wi(null),Ci(null),Nt(null),e&&ar?.deactivate()}function zn(){var e=Ui,t=e.b,n=ar,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Bn(){return(Bn=s((()=>{Re(),Vt(),Fn(),Yt(),Zi(),_r(),Yn(),yi(),Kt()})))()}function Vn(e){var t=2|pe;return Ui!==null&&(Ui.f|=xe),{ctx:Bt,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:tt,wv:0,parent:Ui,ac:null}}function eee(e,t,n){let r=Ui;r===null&&Ve();var i=void 0,a=vr(tt),o=!Vi,s=new Set;return ree(()=>{var t=Ui,n=S();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Ie&&n.reject(e)}).finally(Rn)}catch(e){n.reject(e),Rn()}var c=ar;if(o){if(t.f&32768)var l=zn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Jn);else for(let e of s.values())e.reject(Jn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Jn&&(c.activate(),t?(a.f|=De,br(a,t)):(a.f&8388608&&(a.f^=De),br(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Xr(()=>{for(let e of s)e.reject(Jn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=Vn(e);return Ct||Ti(t),t}function Hn(e){let t=Vn(e);return t.equals=St,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n{t.ac.abort(Ie),t.ac=null}),t.fn!==null&&(t.teardown=E),Ni(t,0),li(t))}function qn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Pi(t)}var Jn;function Yn(){return(Yn=s((()=>{Re(),Zi(),kn(),$e(),ut(),yi(),Er(),Mt(),Tt(),Vt(),at(),_r(),Bn(),ue(),$t(),Jn=Symbol(`obsolete`)})))()}function Xn(e){var t=lr;lr=!0;try{var n;for(e&&(ar!==null&&!ar.is_fork&&ar.flush(),n=e());;){if(Wt(),ar===null)return n;ar.flush()}}finally{lr=t}}function tee(){try{Ke()}catch(e){Jt(e,cr)}}function Zn(e){var t=e.length;if(t!==0){for(var n=0;n0)){wr.clear();for(let e of gr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)gr.has(n)&&(gr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Pi(n)}}gr.clear()}}gr=null}}function Qn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Qn(i,t,n,r):e&4194320&&!(e&2048)&&$n(i,t,r)&&(Xt(i,pe),er(i))}}function $n(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(te.call(t,r))return!0;if(r.f&2&&$n(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function er(e){ar.schedule(e)}function tr(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Xt(e,fe);for(var n=e.first;n!==null;)tr(n,t),n=n.next}}function nr(e){Xt(e,fe);for(var t=e.first;t!==null;)nr(t),t=t.next}var rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr;function _r(){return(_r=s((()=>{Re(),Tt(),ue(),Zi(),$e(),Kt(),Yt(),Er(),yi(),nn(),at(),$t(),bn(),Mt(),xn(),Yn(),rr=null,ir=null,ar=null,or=null,sr=null,cr=null,lr=!1,ur=!1,dr=null,fr=null,pr=0,mr=1,hr=class e{id=mr++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){ir===null?rr=ir=this:(ir.#n=this,this.#t=ir),ir=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Xt(r,pe),t(r);for(r of n.m)Xt(r,me),t(r)}this.#p.add(e)}#g(){this.#e=!0,pr++>1e3&&(this.#S(),tee());for(let e of this.#u)this.#d.delete(e),Xt(e,pe),this.schedule(e);for(let e of this.#d)Xt(e,me),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=dr=[],r=[],i=fr=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw nr(e),this.#h()||this.discard(),t}if(ar=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(dr=null,fr=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)tr(e,t);i.length>0&&ar.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),or=this,Zn(r),Zn(n),or=null,this.#s?.resolve();var s=ar;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),Ct&&(this.#x(),ar=s)),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&s.#g()}#_(e,t,n){e.f^=fe;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=fe:i&4?t.push(r):Ct&&i&16777224?n.push(r):ki(r)&&(i&16&&this.#d.add(r),Pi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Xt(i,pe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),ar=this,this.#g()}#b(e){for(var t=0;t!u.current.get(e)[1]);if(!(!u.#e||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#p)u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):u.#b([e])});u.activate();var a=new Set,o=new Map;for(var s of t)Qn(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return!n||n[0]!==t[0]||n[1]!==t[1]}).map(([e])=>e);if(c.length>0)for(let e of this.#l)!(e.f&155648)&&$n(e,c,o)&&(e.f&4194320?(Xt(e,pe),u.schedule(e)):u.#u.add(e));if(u.#c.length>0&&!u.#m){u.apply();for(var l of u.#c)u.#_(l,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ut(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=S()).promise}static ensure(){if(ar===null){let t=ar=new e;!ur&&!lr&&Ut(()=>{t.#e||t.flush()})}return ar}apply(){if(!Ct||!this.is_fork&&this.#t===null&&this.#n===null){sr=null;return}sr=new Map;for(let[e,[t]]of this.current)sr.set(e,t);for(let t=rr;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id0&&!Tr&&nee()}return t}function nee(){Tr=!1;for(let e of Cr){e.f&1024&&Xt(e,me);let t;try{t=ki(e)}catch{t=!0}t&&Pi(e)}Cr.clear()}function xr(e){P(e,e.v+1)}function Sr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Lt(),a=r.length,o=0;o{Zi(),Re(),$e(),Tt(),jt(),Mt(),Vt(),_r(),Ar(),Yn(),$t(),Cr=new Set,wr=new Map,Tr=!1})))()}function Dr(e){if(typeof e!=`object`||!e||Oe in e)return e;let t=ce(e);if(t!==oe&&t!==se)return e;var n=new Map,r=T(e),i=N(0),a=null,o=Xi,s=e=>{if(Xi===o)return e();var t=Vi,n=Xi;Ci(null),Di(o);var r=e();return Ci(t),Di(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ye();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(tt,a));n.set(t,e),xr(i)}}else P(r,tt),xr(i);return!0},get(t,r,i){if(r===Oe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||ie(t,r)?.writable)&&(o=s(()=>N(Dr(c?t[r]:tt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===tt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==tt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Oe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==tt||Reflect.has(e,t);return(r!==void 0||Ui!==null&&(!i||ie(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Dr(e[t]):tt,a)),n.set(t,r)),z(r)===tt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;dN(tt,a)),n.set(d+``,f)):P(f,tt)}if(l===void 0)(!u||ie(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Dr(o)),n.set(t,l));else{u=l.v!==tt;var p=s(()=>Dr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}xr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==tt});for(var[r,a]of n)a.v!==tt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Xe()}})}function Or(e){try{if(typeof e==`object`&&e&&Oe in e)return e[Oe]}catch{}return e}function kr(e,t){return Object.is(Or(e),Or(t))}function Ar(){return(Ar=s((()=>{Zi(),ue(),Er(),Re(),at(),$e(),jt(),Mt(),Tt()})))()}function jr(){return(jr=s((()=>{ut(),Ar()})))()}function Mr(){if(Br===void 0){Br=window,Vr=document,Hr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ur=ie(t,`firstChild`).get,Wr=ie(t,`nextSibling`).get,le(e)&&(e[Me]=void 0,e[je]=null,e[Ne]=void 0,e.__e=void 0),le(n)&&(n[Pe]=void 0)}}function Nr(e=``){return document.createTextNode(e)}function Pr(e){return Ur.call(e)}function Fr(e){return Wr.call(e)}function F(e,t){if(!_t)return Pr(e);var n=Pr(vt);if(n===null)n=vt.appendChild(Nr());else if(t&&n.nodeType!==3){var r=Nr();return n?.before(r),ft(r),r}return t&&zr(n),ft(n),n}function I(e,t=!1){if(!_t){var n=Pr(e);return n instanceof Comment&&n.data===``?Fr(n):n}if(t){if(vt?.nodeType!==3){var r=Nr();return vt?.before(r),ft(r),r}zr(vt)}return vt}function L(e,t=1,n=!1){let r=_t?vt:e;for(var i;t--;)i=r,r=Fr(r);if(!_t)return r;if(n){if(r?.nodeType!==3){var a=Nr();return r===null?i?.after(a):r.before(a),ft(a),a}zr(r)}return ft(r),r}function Ir(e){e.textContent=``}function Lr(){return!Ct||gr!==null?!1:(Ui.f&_e)!==0}function Rr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function zr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Br,Vr,Hr,Ur,Wr;function Gr(){return(Gr=s((()=>{yt(),jr(),ue(),Zi(),Tt(),Re(),_r(),at()})))()}function Kr(e){Ui===null&&(Vi===null&&Ge(e),We()),Bi&&Ue(e)}function qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Jr(e,t){var n=Ui;n!==null&&n.f&8192&&(e|=he);var r={ctx:Bt,deps:null,nodes:null,f:e|pe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ar?.register_created_effect(r);var i=r;if(e&4)dr===null?hr.ensure().schedule(r):dr.push(r);else if(t!==null){try{Pi(r)}catch(e){throw di(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ye))}if(i!==null&&(i.parent=n,n!==null&&qr(i,n),Vi!==null&&Vi.f&2&&!(e&64))){var a=Vi;(a.effects??=[]).push(i)}return r}function Yr(){return Vi!==null&&!Hi}function Xr(e){let t=Jr(8,null);return Xt(t,fe),t.teardown=e,t}function Zr(e){Kr(`$effect`);var t=Ui.f;if(!Vi&&t&32&&Bt!==null&&!Bt.i){var n=Bt;(n.e??=[]).push(e)}else return Qr(e)}function Qr(e){return Jr(4|Se,e)}function $r(e){return Kr(`$effect.pre`),Jr(8|Se,e)}function ei(e){hr.ensure();let t=Jr(64|xe,e);return()=>{di(t)}}function ti(e){hr.ensure();let t=Jr(64|xe,e);return(e={})=>new Promise(n=>{e.outro?mi(t,()=>{di(t),n(void 0)}):(di(t),n(void 0))})}function ni(e){return Jr(4,e)}function ree(e){return Jr(Ee|xe,e)}function ri(e,t=0){return Jr(8|t,e)}function R(e,t=[],n=[],r=[]){In(r,t,n,t=>{Jr(8,()=>{e(...t.map(z))})})}function ii(e,t=[],n=[],r=[]){In(r,t,n,t=>{Jr(4,()=>e(...t.map(z)))})}function ai(e,t=0){return Jr(16|t,e)}function oi(e,t=0){return Jr(de|t,e)}function si(e){return Jr(32|xe,e)}function ci(e){var t=e.teardown;if(t!==null){let e=Bi,n=Vi;Si(!0),Ci(null);try{t.call(null)}finally{Si(e),Ci(n)}}}function li(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Dn(()=>{e.abort(Ie)});var r=n.next;n.f&64?n.parent=null:di(n,t),n=r}}function ui(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||di(t),t=n}}function di(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(fi(e.nodes.start,e.nodes.end),n=!0),e.f|=ve,li(e,t&&!n),Ni(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();ci(e),e.f^=ve,e.f|=ge;var i=e.parent;i!==null&&i.first!==null&&pi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function fi(e,t){for(;e!==null;){var n=e===t?null:Fr(e);e.remove(),e=n}}function pi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function mi(e,t,n=!0){var r=[];hi(e,r,!0);var i=()=>{n&&di(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function hi(e,t,n){if(!(e.f&8192)){e.f^=he;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);hi(i,t,o?n:!1)}i=a}}}function gi(e){_i(e,!0)}function _i(e,t){if(e.f&8192){e.f^=he,e.f&1024||(Xt(e,pe),hr.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);_i(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function vi(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fr(n);t.append(n),n=i}}function yi(){return(yi=s((()=>{Zi(),Re(),$e(),ue(),Gr(),Vt(),_r(),Bn(),kn(),$t()})))()}var bi;function xi(){return(xi=s((()=>{Er(),Zi(),bi=null})))()}function Si(e){Bi=e}function Ci(e){Vi=e}function wi(e){Ui=e}function Ti(e){Vi!==null&&(!Ct||Vi.f&2)&&(Wi??=new Set).add(e)}function Ei(e){qi=e}function Di(e){Xi=e}function Oi(){return++Ji}function ki(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~we),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&sr===null&&Xt(e,fe)}return!1}function Ai(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ct&&Wi!==null&&Wi.has(e)))for(var i=0;i{e.ac.abort(Ie)}),e.ac=null);try{e.f|=Te;var u=e.fn,d=u();e.f|=_e;var f=e.deps,p=ar?.is_fork;if(Gi!==null){var m;if(p||Ni(e,Ki),f!==null&&Ki>0)for(f.length=Ki+Gi.length,m=0;m{a.ac.abort(Ie),a.ac=null,Xt(a,pe)}),Kn(a),Ni(a,0)}}function Ni(e,t){var n=e.deps;if(n!==null)for(var r=t;r{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Xn()}function z(e){var t=!!(e.f&2);if(bi?.add(e),Vi!==null&&!Hi&&!(Ui!==null&&Ui.f&16384)&&(Wi===null||!Wi.has(e))){var n=Vi.deps;if(Vi.f&2097152)e.rv{ue(),yi(),Re(),Er(),Yn(),Tt(),jt(),Mt(),Vt(),_r(),Yt(),at(),xi(),kn(),$t(),ut(),zi=!1,Bi=!1,Vi=null,Hi=!1,Ui=null,Wi=null,Gi=null,Ki=0,qi=null,Ji=1,Yi=0,Xi=Yi})))()}function Qi(){return(Qi=s((()=>{J(),oc(),yi()})))()}function $i(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ea(e){return ia.includes(e)}function ta(e){return e=e.toLowerCase(),oa[e]??e}function na(e){return sa.includes(e)}function ra(e){return la.includes(e)}var ia,aa,oa,sa,ca,la;function ua(){return(ua=s((()=>{ia=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],aa=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),oa={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...aa],sa=[`touchstart`,`touchmove`],ca=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...ca],la=[`textarea`,`script`,`style`,`title`]})))()}function da(){return(da=s((()=>{Re(),ua(),Zi()})))()}function fa(){return(fa=s((()=>{})))()}function pa(){return(pa=s((()=>{Re(),yt(),Vt()})))()}function ma(e){if(!_t)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function ha(e,t,n,r={}){function i(e){if(r.capture||ba.call(t,e),!e.cancelBubble)return Dn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ut(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ga(e,t,n,r={}){var i=ha(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function _a(e,t,n,r,i){var a={capture:r,passive:i},o=ha(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xr(()=>{t.removeEventListener(e,o,a)})}function va(e,t,n){(t[xa]??={})[e]=n}function ya(e){for(var t=0;t{throw e});throw f}}finally{e[xa]=t,delete e.currentTarget,Ci(u),wi(d)}}}var xa,Sa,Ca,wa;function Ta(){return(Ta=s((()=>{yi(),ue(),yt(),Kt(),Zi(),kn(),xa=Symbol(`events`),Sa=new Set,Ca=new Set,wa=null})))()}function Ea(e){return Oa?.createHTML(e)??e}function Da(e){var t=Rr(`template`);return t.innerHTML=Ea(e.replaceAll(``,``)),t.content}var Oa;function ka(){return(ka=s((()=>{Gr(),Oa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})})))()}function Aa(e,t){var n=Ui;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function B(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(``);return()=>{if(_t)return Aa(vt,null),vt;i===void 0&&(i=Da(a?e:``+e),n||(i=Pr(i)));var t=r||Hr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Pr(t),s=t.lastChild;Aa(o,s)}else Aa(t,t);return t}}function ja(e=``){if(!_t){var t=Nr(e+``);return Aa(t,t),t}var n=vt;return n.nodeType===3?zr(n):(n.before(n=Nr()),ft(n)),Aa(n,n),n}function V(){if(_t)return Aa(vt,null),vt;var e=document.createDocumentFragment(),t=document.createComment(``),n=Nr();return e.append(t,n),Aa(t,n),e}function H(e,t){if(_t){var n=Ui;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=vt),pt();return}e!==null&&e.before(t)}function Ma(){if(_t&&vt&&vt.nodeType===8&&vt.textContent?.startsWith(`$`)){let e=vt.textContent.substring(1);return pt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Na(){return(Na=s((()=>{yt(),Gr(),ka(),Zi(),at(),Re()})))()}function Pa(e){Ra=e}function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Pe]??=e.nodeValue)&&(e[Pe]=n,e.nodeValue=`${n}`)}function Fa(e,t){return Ia(e,t)}function Ia(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Mr();var c=void 0,l=ti(()=>{var l=n??t.appendChild(Nr());Mn(l,{pending:()=>{}},t=>{O({});var n=Bt;if(a&&(n.c=a),i&&(r.$$events=i),_t&&Aa(t,null),Ra=o,c=e(t,r)||{},Ra=!0,_t&&(Ui.nodes.end=vt,vt===null||vt.nodeType!==8||vt.data!==`]`))throw st(),et;k()},s);var u=new Set,d=e=>{for(var n=0;n{for(var e of u)for(let n of[t,document]){var r=za.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ba),r.delete(e),r.size===0&&za.delete(n)):r.set(e,i)}Ca.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Ba.set(c,l),c}function La(e,t){let n=Ba.get(e);return n?(Ba.delete(e),n(t)):Promise.resolve()}var Ra,za,Ba;function Va(){return(Va=s((()=>{Gr(),at(),Zi(),Vt(),yi(),yt(),ue(),Ta(),ut(),$e(),Na(),ua(),Re(),Fn(),za=new Map,Ba=new WeakMap})))()}function Ha(){return(Ha=s((()=>{Re(),yt(),yi(),Er(),Va(),Zi()})))()}function Ua(){return(Ua=s((()=>{ue(),Re(),Vt(),ua()})))()}function Wa(){return(Wa=s((()=>{Vt()})))()}function Ga(){return(Ga=s((()=>{At(),yi(),Zi(),Mt()})))()}function Ka(){return(Ka=s((()=>{Bn(),Zi(),yt(),Na()})))()}var qa;function Ja(){return(Ja=s((()=>{_r(),yi(),Re(),yt(),Gr(),qa=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)gi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(gi(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(di(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();vi(r,t),t.append(Nr()),this.#n.set(e,{effect:r,fragment:t})}else di(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),mi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(di(n.effect),this.#n.delete(e))};ensure(e,t){var n=ar,r=Lr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=Nr();i.append(a),this.#n.set(e,{effect:si(()=>t(a)),fragment:i})}else this.#t.set(e,si(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else _t&&(this.anchor=vt),this.#a(n)}}})))()}function Ya(e,t,n,r,i){_t&&pt();var a=Lt(),o=tt,s=a?vr(o):yr(o,!1,!1),c=a?vr(o):yr(o,!1,!1),l=new qa(e);ai(()=>{var a=ar,o=t(),u=!1;let d=_t&&b(o)===(e.data===`[!`);if(d&&(ft(ht()),dt(!1)),b(o)){var f=Ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),ar===a&&a.deactivate(),hr.ensure();try{e()}finally{Rn(!1),lr||Xn()}}};o.then(t=>{e(()=>{br(s,t),l.ensure(Za,r&&(e=>r(e,s)))})},t=>{e(()=>{if(br(c,t),l.ensure(Qa,i&&(e=>i(e,c))),!i)throw c.v})}),_t?l.ensure(Xa,n):Ut(()=>{p||e(()=>{l.ensure(Xa,n)})})}else br(s,o),l.ensure(Za,r&&(e=>r(e,s)));return d&&dt(!0),()=>{u=!0}})}var Xa,Za,Qa;function $a(){return($a=s((()=>{ue(),yi(),Er(),yt(),Kt(),at(),Vt(),_r(),Ja(),Bn(),Xa=0,Za=1,Qa=2})))()}function W(e,t,n=!1){var r;_t&&(r=vt,pt());var i=new qa(e),a=n?ye:0;function o(e,t){if(_t){var n=gt(r);if(e!==parseInt(n.substring(1))){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,t),dt(!0);return}}i.ensure(e,t)}ai(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function eo(){return(eo=s((()=>{Re(),yt(),yi(),Ja()})))()}function to(e,t,n){_t&&pt();var r=new qa(e),i=!Lt();ai(()=>{var e=t();e!==e&&(e=no),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var no;function ro(){return(ro=s((()=>{Vt(),yi(),yt(),Ja(),no=Symbol(`NaN`)})))()}function io(e,t){_t&&ft(Pr(e)),ri(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}function ao(){return(ao=s((()=>{yi(),yt(),Gr()})))()}function oo(e,t){return t}function so(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;co(e,ne(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Ir(u),u.append(l),e.items.clear()}co(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function co(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var e=n();return T(e)?e:e==null?[]:ne(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,fo(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Ce,mo(l,null,o)):gi(l):mi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:ai(()=>{d=z(u);var e=d.length;let c=!1;_t&>(o)===`[!`!=(e===0)&&(o=ht(),ft(o),dt(!1),c=!0);for(var g=new Set,_=ar,v=Lr(),y=0;ya(o)):(l=si(()=>a(go??=Nr())),l.f|=Ce)),e>g.size&&He(``,``,``),_t&&e>0&&ft(ht()),!p){if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_)}c&&dt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,_t&&(o=vt)}function uo(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function fo(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=uo(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_0){var T=r&4&&o===0?n:null;if(a){for(_=0;_{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function po(e,t,n,r,i,a,o,s){var c=o&1?o&16?vr(n):yr(n,!1,!1):null,l=o&2?vr(i):null;return{v:c,i:l,e:si(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function mo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Fr(r);if(a.before(r),r===i)return;r=o}}function ho(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var go;function _o(){return(_o=s((()=>{at(),yt(),Gr(),yi(),Er(),ue(),Re(),Kt(),Zi(),Yn(),_r(),$e(),jt()})))()}function vo(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;_t&&(o=ft(Pr(c)))}R(()=>{var e=Ui;if(s===(s=t()??``)){_t&&pt();return}if(n&&!_t){e.nodes=null,c.innerHTML=s,s!==``&&Aa(Pr(c),c.lastChild);return}if(e.nodes!==null&&(fi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(_t){for(var a=vt.data,l=pt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Fr(l);if(l===null)throw st(),et;Aa(vt,u),o=ft(l);return}var d=Rr(r?`svg`:i?`math`:`template`,r?rt:i?it:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Aa(Pr(f),f.lastChild),r||i)for(;Pr(f);)o.before(Pr(f));else o.before(f)}})}function yo(){return(yo=s((()=>{at(),yi(),yt(),Na(),ut(),ua(),Vt(),Gr(),Zi(),Re()})))()}function bo(){return(bo=s((()=>{yt()})))()}function xo(){return(xo=s((()=>{ua()})))()}function So(e,t,...n){var r=new qa(e);ai(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ye)}function Co(){return(Co=s((()=>{Re(),yi(),Vt(),yt(),ka(),Na(),$e(),Gr(),xo(),Ja()})))()}function wo(e,t,n){var r;_t&&(r=vt,pt());var i=new qa(e);ai(()=>{var e=t()??null;if(_t&>(r)===`[`!=(e!==null)){var a=ht();ft(a),i.anchor=a,dt(!1),i.ensure(e,e&&(t=>n(t,e))),dt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ye)}function To(){return(To=s((()=>{Re(),yi(),yt(),Ja(),at()})))()}var Eo,Do;function Oo(){return(Oo=s((()=>{ue(),Eo=()=>performance.now(),Do={tick:e=>requestAnimationFrame(e),now:()=>Eo(),tasks:new Set}})))()}function ko(){let e=Do.now();Do.tasks.forEach(t=>{t.c(e)||(Do.tasks.delete(t),t.f())}),Do.tasks.size!==0&&Do.tick(ko)}function Ao(e){let t;return Do.tasks.size===0&&Do.tick(ko),{promise:new Promise(n=>{Do.tasks.add(t={c:e,f:n})}),abort(){Do.tasks.delete(t)}}}function jo(){return(jo=s((()=>{Oo()})))()}function Mo(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function No(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Mo(n.trim());t[i]=r.trim()}return t}function Po(e){Ro=e}function Fo(e,t,n){var r=(Ro??Ui).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Io(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Io(e,t,n,r,i,a){var o=r===1;if(y(t)){var s,c=!1;return Ut(()=>{c||(s=Io(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Lo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=No(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=No(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Ao(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Lo,Ro;function zo(){return(zo=s((()=>{ue(),yi(),Zi(),jo(),Va(),Re(),Kt(),kn(),Lo=e=>e,Ro=null})))()}function Bo(e,t,n,r,i,a){let o=_t;_t&&pt();var s=null;_t&&vt.nodeType===1&&(s=vt,pt());var c=_t?vt:e,l=Ui,u=new qa(c,!1);ai(()=>{let e=t()||null;var a=i?i():n||e===`svg`?rt:void 0;if(e===null){u.ensure(null,null),Pa(!0);return}return u.ensure(e,t=>{if(e){if(s=_t?s:Rr(e,a),Aa(s,s),r){var n=null;_t&&ra(e)&&s.append(n=document.createComment(``));var i=_t?Pr(s):s.appendChild(Nr());_t&&(i===null?dt(!1):ft(i)),Po(l),r(s,i),n?.remove(),Po(null)}Ui.nodes.end=s,t.before(s)}_t&&ft(t)}),Pa(!0),()=>{e&&Pa(!1)}},ye),Xr(()=>{Pa(!0)}),o&&(dt(!0),ft(c))}function Vo(){return(Vo=s((()=>{at(),yt(),Gr(),yi(),Va(),Zi(),Vt(),Re(),Na(),ua(),Ja(),zo()})))()}function Ho(e,t){let n=null,r=_t;var i;if(_t){n=vt;for(var a=Pr(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Fr(a);if(a===null)dt(!1);else{var o=Fr(a);a.remove(),ft(o)}}_t||(i=document.head.appendChild(Nr()));try{ai(()=>{var e=si(()=>t(i));e.f|=be})}finally{r&&(dt(!0),ft(n))}}function Uo(){return(Uo=s((()=>{yt(),Gr(),yi(),Re()})))()}function G(e,t){ni(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Rr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Wo(){return(Wo=s((()=>{fa(),yi(),Gr()})))()}function Go(){return(Go=s((()=>{yi(),Zi()})))()}function Ko(e,t){var n=void 0,r;oi(()=>{n!==(n=t())&&(r&&=(di(r),null),n&&(r=si(()=>{ni(()=>n(e))})))})}function qo(){return(qo=s((()=>{yi()})))()}function Jo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{})))()}function Zo(e){return typeof e==`object`?Yo(e):e??``}function Qo(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ns.includes(r[o-1]))&&(s===r.length||ns.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $o(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function es(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ts(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(es)),i&&c.push(...Object.keys(i).map(es));var l=0,u=-1;let t=e.length;for(var d=0;d{Xo(),ue(),ns=[...` \r\f\xA0\v`]})))()}function is(e,t,n,r,i,a){var o=e[Me];if(_t||o!==n||o===void 0){var s=Qo(n,r,a);(!_t||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Me]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function as(){return(as=s((()=>{rs(),Re(),yt()})))()}function os(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ss(e,t,n,r){var i=e[Ne];if(_t||i!==t){var a=ts(t,r);(!_t||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ne]=t}else r&&(Array.isArray(r)?(os(e,n?.[0],r[0]),os(e,n?.[1],r[1],`important`)):os(e,n,r));return r}function cs(){return(cs=s((()=>{rs(),Re(),yt()})))()}function ls(e,t,n=!1){if(e.multiple){if(t==null)return;if(!T(t))return ct();for(var r of e.options)r.selected=t.includes(ds(r));return}for(r of e.options)if(kr(ds(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function us(e){var t=new MutationObserver(()=>{`__value`in e&&ls(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Xr(()=>{t.disconnect()})}function ds(e){return`__value`in e?e.__value:e.value}function fs(){return(fs=s((()=>{yi(),kn(),Ar(),ue(),ut(),_r()})))()}function ps(e){if(_t){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e[Fe]=n,Ut(n),wn()}}function ms(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=_s(e);_t&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Cs)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ae]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&vs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function hs(e,t,n,r,i=!1,a=!1){if(_t&&i&&e.nodeName===ws){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ps(o)}var s=_s(e),c=s[xs],l=!s[Ss];let u=_t&&c;u&&dt(!1);var d=t||{},f=e.nodeName===Ts;for(var p in t)p in n||(n[p]=null);n.class?n.class=Zo(n.class):(r||n[ys])&&(n.class=null),n[bs]&&(n.style??=null);var m=vs(e);if(e.nodeName===ws&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,K(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){is(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ys],n[ys]),d[i]=o,d[ys]=n[ys];continue}if(i===`style`){ss(e,o,t?.[bs],n[bs]),d[i]=o,d[bs]=n[bs];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=ea(r);if($i(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)va(r,e,o),ya([r]);else if(o!=null){function y(e){d[i].call(this,e)}d[n]=ha(r,e,y,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Sn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)ms(e,o);else{var b=i;l||(b=ta(b));var x=b===`defaultValue`||b===`defaultChecked`;if(o==null&&!c&&!x){if(s[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||m.includes(b)&&(c||typeof o!=`string`)?(e[b]=o,b in s&&(s[b]=tt)):typeof o!=`function`&&K(e,b,o,a)}}}}return u&&dt(!0),d}function gs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){In(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Es,l=!1;if(oi(()=>{var u=t(...n.map(z)),d=hs(e,r,u,a,o,s);l&&c&&`value`in u&&ls(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||di(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&di(i[t]),i[t]=si(()=>Ko(e,()=>f))),d[t]=f}r=d}),c){var u=e;ni(()=>{ls(u,r.value,!0),us(u)})}l=!0})}function _s(e){return e[je]??={[xs]:e.nodeName.includes(`-`),[Ss]:e.namespaceURI===nt}}function vs(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ds.get(t);if(n)return n;Ds.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ae(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ce(i)}return n}var ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds;function Os(){return(Os=s((()=>{yt(),ue(),Ta(),En(),ut(),Re(),Kt(),ua(),Zi(),qo(),rs(),as(),cs(),at(),yi(),fs(),Bn(),ys=Symbol(`class`),bs=Symbol(`style`),xs=Symbol(`is custom element`),Ss=Symbol(`is html`),Cs=Le?`link`:`LINK`,ws=Le?`input`:`INPUT`,Ts=Le?`option`:`OPTION`,Es=Le?`select`:`SELECT`,Ds=new Map})))()}function ks(){return(ks=s((()=>{yt(),Gr(),ka(),qo()})))()}function As(){return(As=s((()=>{kn()})))()}function js(e,t,n=t){var r=new WeakSet;On(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ms(e)?Ns(a):a,n(a),ar!==null&&r.add(ar),await Fi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(_t&&e.defaultValue!==e.value||Ri(t)==null&&e.value)&&(n(Ms(e)?Ns(e.value):e.value),ar!==null&&r.add(ar)),ri(()=>{var n=t();if(e===document.activeElement){var i=Ct?or:ar;if(r.has(i))return}Ms(e)&&n===Ns(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ms(e){var t=e.type;return t===`number`||t===`range`}function Ns(e){return e===``?null:+e}function Ps(){return(Ps=s((()=>{yi(),kn(),$e(),Ar(),Kt(),yt(),Zi(),_r(),Tt()})))()}function Fs(){return(Fs=s((()=>{yi(),kn()})))()}function Is(){return(Is=s((()=>{kn()})))()}function Ls(){return(Ls=s((()=>{yi(),ue()})))()}function Rs(){return(Rs=s((()=>{yi(),Zi()})))()}function zs(e,t){return e===t||e?.[Oe]===t}function Bs(e={},t,n,r){var i=Bt.r,a=Ui;return ni(()=>{var o,s;return ri(()=>{o=s,s=r?.()||[],Ri(()=>{zs(n(...s),e)||(t(e,...s),o&&zs(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&zs(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Vs(){return(Vs=s((()=>{Re(),Vt(),yi(),Zi()})))()}function Hs(){return(Hs=s((()=>{yi(),kn()})))()}function Us(){return(Us=s((()=>{yi(),kn()})))()}function Ws(){return(Ws=s((()=>{ue(),yi(),Ta()})))()}function Gs(){return(Gs=s((()=>{ue(),Vt(),Yn(),yi(),Zi()})))()}function Ks(){return(Ks=s((()=>{Er(),Zi(),ue()})))()}function qs(e,t,n){return new Proxy({props:e,exclude:t},Ys)}function Js(...e){return new Proxy({props:e},Xs)}function q(e,t,n,r){var i=!wt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Vn(r),z(l)):(c&&(c=!1,s=o?Ri(r):r),s);let d;if(a){var f=Oe in e||ke in e;d=ie(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=gn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&qe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Vn:Hn)(()=>(_=!1,h()));a&&z(v);var y=Ui;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Dr(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Bi&&_||y.f&16384?v.v:z(v)})}var Ys,Xs;function Zs(){return(Zs=s((()=>{at(),ue(),Er(),Yn(),Zi(),$e(),Re(),Ar(),bn(),Tt(),yi(),Ys={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}},Xs={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(y(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];y(i)&&(i=i());let a=ie(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(y(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=ie(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Oe||t===ke)return!1;for(let n of e.props)if(y(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(y(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})))()}function Qs(){return(Qs=s((()=>{Vt(),yi(),bn(),Bn()})))()}function $s(){return($s=s((()=>{Re(),yi(),Er(),Va(),Zi(),_r(),ue(),Vt(),Tt(),$t(),Ws()})))()}function ec(){return(ec=s((()=>{$s(),yi(),Na(),ue(),Gr()})))()}function tc(){return(tc=s((()=>{Re(),At(),Zi()})))()}function J(){return(J=s((()=>{Qi(),Vt(),da(),pa(),Ha(),Ua(),Wa(),jt(),Ga(),Ka(),$a(),eo(),ro(),ao(),_o(),yo(),bo(),Co(),To(),Vo(),Uo(),Wo(),Go(),qo(),Os(),as(),Ta(),En(),ks(),cs(),zo(),As(),Ps(),Fs(),Is(),Ls(),fs(),Rs(),Vs(),Hs(),Us(),yt(),Ws(),Gs(),Ks(),Na(),Bn(),_r(),Yn(),yi(),Er(),Zs(),bn(),Fn(),xi(),Va(),Zi(),Qs(),Oo(),Ar(),ec(),Gr(),rs(),At(),ue(),xo(),jr(),tc()})))()}function nc(){return(nc=s((()=>{yt()})))()}function rc(e){Bt===null&&ze(`onMount`),wt&&Bt.l!==null?ac(Bt).m.push(e):Zr(()=>{let t=Ri(e);if(typeof t==`function`)return t})}function ic(e){Bt===null&&ze(`onDestroy`),rc(()=>()=>Ri(e))}function ac(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function oc(){return(oc=s((()=>{Zi(),ue(),J(),$e(),Tt(),Vt(),_r(),nc(),Va(),Co()})))()}function Y(){return(Y=s((()=>{typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})))()}function sc(e,t){G(e,uc);let n=qs(t,cc);var r=lc();gs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-uq7u28`);var i=F(r,!0);D(r),R(()=>U(i,t.name)),H(e,r)}var cc,lc,uc;function dc(){return(dc=s((()=>{Y(),J(),cc=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),lc=B(` `),uc={hash:`svelte-uq7u28`,code:`.icon.small-arrow.svelte-uq7u28 {overflow:hidden;width:12px;text-indent:-6px;}`}})))()}function fc(e,t){G(e,hc);let n=q(t,`ariaLive`,3,`assertive`),r=qs(t,pc);var i=mc();gs(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-1pvgsts`);var a=F(i),o=e=>{var n=V();So(I(n),()=>t.icon),H(e,n)},s=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);sc(e,{get name(){return z(n)}})}};W(a,e=>{t.icon?e(o):e(s,-1)}),So(L(a,2),()=>t.children??E),D(i),H(e,i)}var pc,mc,hc;function gc(){return(gc=s((()=>{Y(),J(),dc(),pc=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),mc=B(`
`),hc={hash:`svelte-1pvgsts`,code:`.alert.svelte-1pvgsts {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-1pvgsts {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1pvgsts {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1pvgsts {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1pvgsts {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})))()}function _c(e,t){let n=t,r=e.slice(n).match(vc);r&&(n+=r[0].length);let i=e.slice(n).match(yc);if(!i)return null;let a=i[0];if(bc.test(a))return null;n+=a.length;let o=e.slice(n).match(vc);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var vc,yc,bc,xc;function Sc(){return(Sc=s((()=>{vc=/^[\u061c\u200e\u200f\u2066-\u2069]+/,yc=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,bc=/^[-.0-9]/,xc=(e,t)=>e.slice(t).match(yc)?.[0]??``})))()}var Cc;function wc(){return(wc=s((()=>{Cc=Symbol.for(`CST`)})))()}var Tc,Ec,Dc,Oc,kc;function Ac(){return(Ac=s((()=>{wc(),Tc=class extends Error{type;constructor(e,t){super(t),this.type=e}},Ec=class extends Tc{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Dc=class extends Ec{constructor(e,t){let{start:n,end:r}=t[Cc]??{start:-1,end:-1};super(e,n,r)}},Oc=class extends Tc{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},kc=class extends Tc{source;cause;constructor(e,t){super(e,t),this.source=`�`}}})))()}function jc(e,t){if($c.startsWith(e,Qc))t&&(Qc+=e.length);else throw el(Qc,e)}function Mc(e){Qc=0,$c=e;let t=Ic();if($c.startsWith(`.match`,Qc))return Nc(t);let n=t.length>0||$c.startsWith(`{{`,Qc);!n&&Qc>0&&(Qc=0);let r=Fc(n);if(n&&(Yc(),Qc<$c.length))throw tl(`extra-content`,Qc,$c.length);return{type:`message`,declarations:t,pattern:r}}function Nc(e){Qc+=6,Yc(!0);let t=[];for(;$c[Qc]===`$`;)t.push(Wc()),Yc(!0);if(t.length===0)throw tl(`empty-token`,Qc);let n=[];for(;Qc<$c.length;)n.push(Pc()),Yc();return{type:`select`,declarations:e,selectors:t,variants:n}}function Pc(){let e=[];for(;Qc<$c.length;){Yc(e.length?`{`:!1);let t=$c[Qc];if(t===`{`)break;if(t===`*`)e.push({type:`*`}),Qc+=1;else{let t=Gc(!0);t.value=t.value.normalize(),e.push(t)}}return{keys:e,value:Fc(!0)}}function Fc(e){if(e){if($c.startsWith(`{{`,Qc))Qc+=2;else throw el(Qc,`{{`)}let t=[];loop:for(;Qc<$c.length;)switch($c[Qc]){case`{`:t.push(zc(!0));break;case`}`:if(!e)throw tl(`parse-error`,Qc);break loop;default:t.push(Hc())}if(e){if($c.startsWith(`}}`,Qc))Qc+=2;else throw el(Qc,`}}`)}return t}function Ic(){let e=[];Yc();loop:for(;$c[Qc]===`.`;){switch($c.substr(Qc,6)){case`.input`:e.push(Lc());break;case`.local`:e.push(Rc());break;case`.match`:break loop;default:throw tl(`parse-error`,Qc)}Yc()}return e}function Lc(){Qc+=6,Yc(),jc(`{`,!1);let e=Qc,t=zc(!1);if(t.type===`expression`&&t.arg?.type===`variable`)return{type:`input`,name:t.arg.name,value:t};throw tl(`bad-input-expression`,e,Qc)}function Rc(){Qc+=6,Yc(!0),jc(`$`,!0);let e=Jc();return Yc(),jc(`=`,!0),Yc(),jc(`{`,!1),{type:`local`,name:e,value:zc(!1)}}function zc(e){let t=Qc;Qc+=1,Yc();let n=Uc(!1);n&&Yc(`}`);let r=$c[Qc],i,a;switch(r){case`@`:case`}`:break;case`:`:{Qc+=1,i={type:`function`,name:qc()};let e=Bc();e&&(i.options=e);break}case`#`:case`/`:{if(n||!e)throw tl(`parse-error`,Qc);Qc+=1,a={type:`markup`,kind:r===`#`?`open`:`close`,name:qc()};let t=Bc();t&&(a.options=t);break}default:throw tl(`parse-error`,Qc)}let o=Vc();if(a?.kind===`open`&&$c[Qc]===`/`&&(a.kind=`standalone`,Qc+=1),jc(`}`,!0),i){let e=n?{type:`expression`,arg:n,functionRef:i}:{type:`expression`,functionRef:i};return o&&(e.attributes=o),e}if(a)return o&&(a.attributes=o),a;if(!n)throw tl(`empty-token`,t,Qc);return o?{type:`expression`,arg:n,attributes:o}:{type:`expression`,arg:n}}function Bc(){Yc(`/}`);let e={},t=!0;for(;Qc<$c.length;){let n=$c[Qc];if(n===`@`||n===`/`||n===`}`)break;let r=Qc,i=qc();if(Object.hasOwn(e,i))throw tl(`duplicate-option-name`,r,Qc);Yc(),jc(`=`,!0),Yc(),e[i]=Uc(!0),t=!1,Yc(`/}`)}return t?null:e}function Vc(){let e={},t=!0;for(;$c[Qc]===`@`;){let n=Qc;Qc+=1;let r=qc();if(Object.hasOwn(e,r))throw tl(`duplicate-attribute`,n,Qc);Yc(`=/}`),$c[Qc]===`=`?(Qc+=1,Yc(),e[r]=Gc(!0),Yc(`/}`)):e[r]=!0,t=!1}return t?null:e}function Hc(){let e=``,t=Qc;loop:for(;t<$c.length;++t)switch($c[t]){case`\\`:{let n=$c[t+1];if(!`\\{|}`.includes(n))throw tl(`bad-escape`,t,t+2);e+=$c.substring(Qc,t)+n,t+=1,Qc=t+1;break}case`{`:case`}`:break loop}return e+=$c.substring(Qc,t),Qc=t,e}function Uc(e){return $c[Qc]===`$`?Wc():Gc(e)}function Wc(){return Qc+=1,{type:`variable`,name:Jc()}}function Gc(e){if($c[Qc]===`|`)return Kc();let t=xc($c,Qc);if(!t){if(e)throw tl(`empty-token`,Qc);return}return Qc+=t.length,{type:`literal`,value:t}}function Kc(){Qc+=1;let e=``;for(let t=Qc;t<$c.length;++t)switch($c[t]){case`\\`:{let n=$c[t+1];if(!`\\{|}`.includes(n))throw tl(`bad-escape`,t,t+2);e+=$c.substring(Qc,t)+n,t+=1,Qc=t+1;break}case`|`:return e+=$c.substring(Qc,t),Qc=t+1,{type:`literal`,value:e}}throw el($c.length,`|`)}function qc(){let e=Jc();return $c[Qc]===`:`?(Qc+=1,e+`:`+Jc()):e}function Jc(){let e=_c($c,Qc);if(!e)throw tl(`empty-token`,Qc);return Qc=e.end,e.value}function Yc(e=!1){let t=$c[Qc],n=!1;if(e){for(;Xc.has(t);)t=$c[++Qc];for(;Zc.has(t);)t=$c[++Qc],n=!0}for(;Xc.has(t)||Zc.has(t);)t=$c[++Qc];if(e&&!n&&(e===!0||!e.includes($c[Qc])))throw el(Qc,`' '`)}var Xc,Zc,Qc,$c,el,tl;function nl(){return(nl=s((()=>{Sc(),Ac(),Xc=new Set(`؜‎‏⁦⁧⁨⁩`),Zc=new Set(` \r  `),el=(e,t)=>new Ec(`missing-syntax`,e,e+t.length,t),tl=(...e)=>new Ec(...e)})))()}function rl(e,t){let{node:n,pattern:r}=t,{functionRef:i=n,attributes:a=null,declaration:o=n,expression:s=n,key:c=n,markup:l=n,options:u=null,value:d=n,variant:f=n}=t,p=(e,t)=>{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function il(e,t=(e,t)=>{throw new Dc(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;rl(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}function al(){return(al=s((()=>{Ac()})))()}function ol(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return sl.includes(n)?`rtl`:`ltr`}catch{}return`auto`}var sl;function cl(){return(cl=s((()=>{sl=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`})))()}function ll(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function ul(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function dl(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function fl(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new kc(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function pl(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],ol(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=ol(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function ml(e,t,n){let r=fl(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=ul(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=dl(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return pl(e,i,a,!0)}function hl(e,t,n){let r=fl(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=ul(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=dl(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return pl(e,i,a,!0)}function gl(){return(gl=s((()=>{cl(),Ac()})))()}function _l(e,t,n){let r=fl(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=dl(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ul(r);break;case`currencyDisplay`:{let t=dl(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=dl(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=ul(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new kc(`bad-operand`,`A currency code is required for :currency`);return pl(e,r.value,i,!1)}function vl(){return(vl=s((()=>{Ac(),gl()})))()}function yl(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new kc(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=dl(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=ll(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=dl(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new kc(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=bl(t,n,r,xl)??`year-month-day`,s=bl(t,n,a,Sl),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(bl(t,n,e===`time`?`precision`:`timePrecision`,Cl)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=bl(t,n,`timeZoneStyle`,wl)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,ol(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=ol(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function bl(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=dl(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}var xl,Sl,Cl,wl,Tl,El,Dl;function Ol(){return(Ol=s((()=>{cl(),Ac(),xl=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),Sl=new Set([`long`,`medium`,`short`]),Cl=new Set([`hour`,`minute`,`second`]),wl=new Set([`long`,`short`]),Tl=(e,t,n)=>yl(`datetime`,e,t,n),El=(e,t,n)=>yl(`date`,e,t,n),Dl=(e,t,n)=>yl(`time`,e,t,n)})))()}function kl(e,t,n){let{value:r,options:i}=fl(n),a;try{a=`add`in t?ul(t.add):-1}catch{throw new kc(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?ul(t.subtract):-1}catch{throw new kc(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new kc(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),ml(e,{},{valueOf:()=>r,options:i})}function Al(){return(Al=s((()=>{Ac(),gl()})))()}function jl(e,t,n){let r=fl(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=dl(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=ul(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return pl(e,r.value,i,!0)}function Ml(){return(Ml=s((()=>{gl()})))()}function Nl(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Pl(e,t,n){let r=fl(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=dl(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=ul(r)}}catch(t){t instanceof Tc?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new kc(`bad-operand`,`A unit identifier is required for :unit`);return pl(e,r.value,i,!1)}function Fl(){return(Fl=s((()=>{Ac(),gl()})))()}var Il,Ll;function Rl(){return(Rl=s((()=>{vl(),Ol(),gl(),Al(),Ml(),Fl(),Il={integer:hl,number:ml,offset:kl,string:Nl},Il=Object.freeze(Object.assign(Object.create(null),Il)),Ll={currency:_l,date:El,datetime:Tl,percent:jl,time:Dl,unit:Pl},Ll=Object.freeze(Object.assign(Object.create(null),Ll))})))()}var zl;function Bl(){return(Bl=s((()=>{zl=Symbol(`bidi-isolate`)})))()}var Vl;function Hl(){return(Hl=s((()=>{Vl=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`})})))()}var Ul;function Wl(){return(Wl=s((()=>{Ul=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t})})))()}var Gl;function Kl(){return(Kl=s((()=>{Ac(),ou(),Gl=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(iu(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new kc(`bad-option`,`Unsupported value for u:dir option`);t.source=au(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(iu(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof kc?n=e:typeof e==`string`&&typeof t==`string`?n=new kc(e,t):(n=new kc(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}}})))()}function ql(e,t,{name:n,options:r}){let i=`:${n}`,a=au(t)??i;try{let o=t?[iu(e,t)]:[],s=e.functions[n];if(!s)throw new Oc(`unknown-function`,`Unknown function ${i}`,a);let c=new Gl(e,a,r),l=s(c,Jl(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new Oc(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[zl]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof Tc?t:new Oc(`bad-function-result`,String(t),a,t)),Vl(a)}}function Jl(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=iu(e,i));return n}function Yl(){return(Yl=s((()=>{Ac(),Hl(),Bl(),Kl(),ou()})))()}function Xl(e,{arg:t,functionRef:n}){if(n)return ql(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Nl(new Gl(e,n),{},t.value);return r.source=n,r}case`variable`:return eu(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}function Zl(){return(Zl=s((()=>{Kl(),Yl(),ru()})))()}function Ql(e,t){if(nu(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return Ql(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function $l(e,{name:t}){let n=Ql(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new Oc(`unresolved-variable`,r,n))}else if(n instanceof tu){let r=Xl(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function eu(e,t){let n=`$`+t.name,r=$l(e,t);if(r===void 0)return Vl(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return Vl(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return Ul(n,r)}let o=new Gl(e,n),s=a(o,{},r);return s.source=n,s}var tu,nu;function ru(){return(ru=s((()=>{Ac(),Hl(),Wl(),Kl(),Zl(),tu=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},nu=e=>e!==null&&(typeof e==`object`||typeof e==`function`)})))()}function iu(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return $l(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function au(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function ou(){return(ou=s((()=>{ru()})))()}function su(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new kc(`bad-option`,`The option ${t} is not valid for markup`);r.source=au(n),e.onError(r)}else{let r=iu(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function cu(){return(cu=s((()=>{Ac(),ou()})))()}function lu(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=eu(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new Oc(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;inull,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;e{Ac(),ru()})))()}var du;function fu(){return(fu=s((()=>{nl(),al(),cl(),Ac(),Rl(),Bl(),cu(),Zl(),ru(),uu(),du=class{#e;#t;#n;#r;#i;#a;constructor(e,t,n){this.#e=n?.bidiIsolation!==`none`,this.#n=n?.localeMatcher??`best fit`,this.#r=Array.isArray(e)?e.map(e=>new Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??ol(this.#r[0]),this.#i=typeof t==`string`?Mc(t):t,il(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),Il,n.functions):Il}format(e,t){let n=this.#o(e,t),r=``;for(let e of lu(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)su(n,e);else{let t;try{if(t=Xl(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[zl])){let e=t.dir===`ltr`?`⁦`:t.dir===`rtl`?`⁧`:`⁨`;r+=e+t.toString()+`⁩`}else r+=t.toString()}else{let e=new kc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?`⁨`+i+`⁩`:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of lu(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(su(n,e));else{let t;try{if(t=Xl(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[zl])){let n=t.dir===`ltr`?`⁦`:t.dir===`rtl`?`⁧`:`⁨`;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:`⁩`})}else r.push(...e)}else{let e=new kc(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:`⁨`},i,{type:`bidiIsolation`,value:`⁩`}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new tu(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}}})))()}function pu(){return(pu=s((()=>{fu()})))()}function mu(){return(mu=s((()=>{J(),Er(),jt(),Zi()})))()}function hu(){return(hu=s((()=>{Er(),jt(),Zi()})))()}var gu;function _u(){return(_u=s((()=>{Er(),jt(),Zi(),gu=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=Xi||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Xi===this.#r?N(e):vr(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return z(this.#t),!1}return z(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{z(this.#t);return}}return z(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),P(this.#n,super.size),xr(o);else if(i!==t){xr(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&xr(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),P(n,-1)),r&&(P(this.#n,super.size),xr(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;P(this.#n,0);for(var t of e.values())P(t,-1);xr(this.#t),e.clear()}}#a(){z(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)z(n)}keys(){return z(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return z(this.#n),super.size}}})))()}function vu(){return(vu=s((()=>{Er(),jt(),Zi(),yu()})))()}function yu(){return(yu=s((()=>{Er(),jt(),Zi(),vu()})))()}function bu(){return(bu=s((()=>{Ta()})))()}function xu(){return(xu=s((()=>{jn()})))()}function Su(){return(Su=s((()=>{bu(),xu()})))()}function Cu(){return(Cu=s((()=>{mu(),hu(),_u(),yu(),vu(),Su(),jn()})))()}var wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,X;function Z(){return(Z=s((()=>{J(),pu(),Rl(),Cu(),Intl.MessageFormat??=du,wu=N(``),Tu=Dr([]),Eu=Dr({}),Du=``,Ou=``,Au=new Set([`ar`,`arc`,`ckb`,`dv`,`fa`,`ha`,`he`,`khw`,`ks`,`ku`,`nqo`,`ps`,`sd`,`ug`,`ur`,`yi`]),ju=e=>e.textInfo?.direction??(Au.has(e.language)?`rtl`:`ltr`),Mu=(e=z(wu))=>{if(!e)return!1;try{return ju(new Intl.Locale(e))===`rtl`}catch{return!1}},Nu=(e,t)=>{if(!e||!t.length||t.includes(e))return e;try{let n=new Intl.Locale(e).language;return t.find(e=>{try{return new Intl.Locale(e).language===n}catch{return!1}})??e}catch{return e}},Pu=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,Pu(r,i)):e[i]=r,e},Object.create(null)),Fu=e=>{Tu.includes(e)||(Tu.push(e),Ou=Nu(Du,Tu))},Iu=(e,...t)=>{if(typeof e!=`string`||!e)throw TypeError(`addMessages: localeCode must be a non-empty string (got ${JSON.stringify(e)})`);t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),Fu(e),Eu[e]??={},t.forEach(t=>{Object.entries(Pu(t)).forEach(([t,n])=>{Eu[e][t]=new Intl.MessageFormat(e,String(n),{functions:Ll})})}),z(wu)&&!Tu.includes(z(wu))&&Bu.set(z(wu))},Lu=new gu,Ru=new gu,zu=(e=z(wu))=>{if(typeof e!=`string`)throw TypeError(`waitLocale: localeCode must be a string (got ${typeof e})`);if(!e)return Promise.resolve();if(!Ru.has(e)){let t=Lu.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Iu(e,t)},()=>{Ru.delete(e),z(wu)===e&&!Eu[e]&&Ou&&P(wu,Ou,!0)});Ru.set(e,n)}else Ru.set(e,Promise.resolve())}return Ru.get(e)??Promise.resolve()},Bu={get current(){return z(wu)},set(e){if(typeof e!=`string`)throw TypeError(`locale.set: value must be a string (got ${typeof e})`);let t=Tu.length?Nu(e,Tu):e;if(e&&Tu.length&&!Tu.includes(t)&&Ou&&Tu.includes(Ou)&&(t=Ou),P(wu,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;try{let e=new Intl.Locale(t);document.documentElement.dir=ju(e)}catch{}}return zu(t)}},Vu=(e,t)=>{if(typeof e!=`string`||!e)throw TypeError(`register: localeCode must be a non-empty string (got ${JSON.stringify(e)})`);if(typeof t!=`function`)throw TypeError(`register: loader must be a function (got ${typeof t})`);Lu.set(e,t),Ru.delete(e),Fu(e),z(wu)&&!Tu.includes(z(wu))&&Bu.set(z(wu))},Hu=()=>typeof navigator>`u`?void 0:navigator.languages?.[0]??navigator.language,Uu=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);if(e.initialLocale!==void 0&&typeof e.initialLocale!=`string`)throw TypeError(`init: initialLocale must be a string (got ${typeof e.initialLocale})`);if(e.handleMissingMessage!==void 0&&typeof e.handleMissingMessage!=`function`)throw TypeError(`init: handleMissingMessage must be a function (got ${typeof e.handleMissingMessage})`);Du=e.fallbackLocale,Ou=Nu(Du,Tu),ku=e.handleMissingMessage,e.formats,e.initialLocale&&Bu.set(e.initialLocale)},X=(e,{values:t={},locale:n,default:r}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i}=e;return X(t,{values:n,locale:r,default:i})}let i=n??z(wu),a=Ou,o=Eu[i]?.[e]?.format(t)??(i===a?void 0:Eu[a]?.[e]?.format(t));if(o!==void 0)return o;if(ku){let t=ku(e,i,r);if(t!==void 0)return t}return r??e}})))()}var Wu,Gu,Ku,qu,Ju,Yu,Xu;function Zu(){return(Zu=s((()=>{Gu=()=>(Wu??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Wu),Ku=[`Ctrl`,`Meta`,`Alt`,`Shift`],qu=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),Ju=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:qu.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),Yu=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,Gu()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Ku.includes(e)).every(t=>Ju(t,e))})},Xu=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,Gu()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!Yu(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}})))()}function Qu(e,t){G(e,ed);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=$u();So(F(i),()=>r()??E),D(i),R(()=>ss(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var $u,ed;function td(){return(td=s((()=>{Y(),J(),$u=B(``),ed={hash:`svelte-1aaxcpn`,code:`.truncated-text.svelte-1aaxcpn {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})))()}var nd;function rd(){return(rd=s((()=>{nd=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})))()}function id(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}function ad(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=od,i=!0;break;case`RFC4648-HEX`:r=sd,i=!0;break;case`Crockford`:r=cd,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=id(e),s=0,c=0,l=``;for(let e=0;e=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var od,sd,cd;function ld(){return(ld=s((()=>{od=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,sd=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,cd=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`})))()}var ud,dd,fd,pd;function md(){return(md=s((()=>{ld(),ud=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,dd=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},fd=()=>{let e=dd().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return ad(t,`RFC4648`,{padding:!1}).toLowerCase()},pd=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)}})))()}var hd,gd,_d,vd,yd,bd,xd,Sd;function Cd(){return(Cd=s((()=>{md(),_d=(e=`e`,t=7)=>[e,dd(t)].join(`-`),vd=e=>{hd?.delete(e),gd?.unobserve(e)},yd=()=>{if(`IntersectionObserver`in globalThis)return gd||(hd=new WeakMap,gd=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=hd?.get(t);n&&(n(),vd(t))})}),gd)},bd=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},Sd=e=>{let t=yd();if(t)return bd(e)?Promise.resolve(void 0):new Promise(n=>{hd?.set(e,n),xd(()=>{t.observe(e)})})}})))()}var wd,Td;function Ed(){return(Ed=s((()=>{J(),Cd(),rd(),bu(),wd=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Dr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let n=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!n)return;let{scrollHeight:r,scrollWidth:i}=n,a=e.top-8,o=t.height-e.bottom-8,{position:s}=this,c;document.dir===`rtl`&&(s.endsWith(`-left`)?s=s.replace(`-left`,`-right`):s.endsWith(`-right`)&&(s=s.replace(`-right`,`-left`)),s.startsWith(`left-`)?s=s.replace(`left-`,`right-`):s.startsWith(`right-`)&&(s=s.replace(`right-`,`left-`))),s.startsWith(`bottom-`)&&r>o&&(a>o?(s=s.replace(`bottom-`,`top-`),c=a):c=o),s.endsWith(`-left`)&&e.left+i>t.width-8&&(s=s.replace(`-left`,`-right`)),s.endsWith(`-right`)&&e.right-i<8&&(s=s.replace(`-right`,`-left`));let l={inset:[s.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:s.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,s.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:s.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,s.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:s.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,s.startsWith(`right-`)?`${Math.round(e.right)}px`:s.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:s.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:c?`${Math.round(c)}px`:`auto`};(l.inset!==this.style.inset||l.zIndex!==this.style.zIndex||l.minWidth!==this.style.minWidth||l.maxWidth!==this.style.maxWidth||l.height!==this.style.height)&&(this.style=l)})});popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=_d(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),ga(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ga(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ga(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t;let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=ga(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=ga(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.popupElement&&(this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement))}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await nd(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Td=(...e)=>new wd(...e)})))()}function Dd(e,t){var n=V();So(I(n),()=>t.children??E),H(e,n)}function Od(){return(Od=s((()=>{Y(),J()})))()}function kd(e,t){O(t,!0),G(e,Nd);let n=e=>{var n=V(),l=I(n),d=e=>{var n=Md(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},d=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};gs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:d,[ys]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-1n531w9`);var f=F(n);So(f,()=>t.extraContent??E),So(L(f,2),()=>t.children??E),D(n),Bs(n,e=>i(e),()=>i()),H(e,n)};W(l,e=>{z(v)&&e(d)}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=qs(t,jd),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=N(0),_=Pt(Ad);Ft(Ad,{retain:()=>{Ri(()=>{P(g,z(g)+1)})},release:()=>{Ri(()=>{P(g,z(g)-1)})}});let v=M(()=>l()||z(h)||z(g)>0),y=!1,b=0,x=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,S=async()=>{if(await Fi(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=x(e)+x(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},C=async()=>{if(y)return;y=!0,b+=1;let e=b;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),await Fi(),!(e!==b||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),P(p,!0),await S(),e===b&&P(m,!0))},w=async()=>{if(!y)return;y=!1,b+=1;let e=b,n=z(p),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),P(m,!1),P(p,!1),n&&await S(),e===b&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},T=It();return rc(()=>{let e=Fa(Dd,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:T});return()=>{i()?.close(),La(e)}}),Zr(()=>{r()?C():w()}),Zr(()=>{if(z(h))return _?.retain(),()=>{_?.release()}}),k({focus:d,close:f})}var Ad,jd,Md,Nd;function Pd(){return(Pd=s((()=>{Y(),J(),oc(),Od(),Ad=Symbol(`sui-modal-retainer`),jd=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Md=B(` `),Nd={hash:`svelte-1n531w9`,code:`dialog.svelte-1n531w9 {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-1n531w9::backdrop {background:transparent;}dialog.backdrop.svelte-1n531w9 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1n531w9 {transition-duration:50ms;opacity:1;}dialog.svelte-1n531w9:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1n531w9 {transition-duration:1ms !important;}dialog.svelte-1n531w9:not(.active) {pointer-events:none !important;}dialog.svelte-1n531w9:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}})))()}function Fd(e,t){O(t,!0),G(e,Rd);let n=e=>{var n=Ld();let o,s;So(F(n),()=>t.children??E),D(n),Bs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=is(n,1,`content ${t.class??``} ${z(m)??``}`,`svelte-1wlkzzs`,o,{touch:z(_)}),s=ss(n,``,s,{inset:z(h)?.style.inset,"z-index":z(h)?.style.zIndex,"min-width":z(h)?.style.minWidth,"max-width":z(h)?.style.maxWidth,"max-height":z(h)?.style.height,visibility:z(h)?.style.inset?void 0:`hidden`})}),_a(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),_a(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=qs(t,Id),f=N(void 0),p=N(!1),m=N(void 0),h=N(void 0),g=0;Zr(()=>{z(h)&&r(z(h).open)}),Zr(()=>{l()&&!z(f)&&a()&&(P(f,l()),z(f).append(a()))}),Zr(()=>{t.anchor&&!z(h)&&(P(h,Td(t.anchor,void 0,s(),c()),!0),P(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),Zr(()=>{if(z(h)&&z(f)&&a())return z(h).attachPopupElement(z(f),a()),()=>{z(h)?.detachPopupElement()}}),Zr(()=>{r()&&z(f)&&z(h)?.checkPosition()});let _=M(()=>u()&&z(p));rc(()=>(P(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=V(),y=I(v),b=e=>{n(e)},x=e=>{{let i=M(()=>o()??z(_));kd(e,Js(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await nd(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(f)},set dialog(e){P(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(y,e=>{l()?e(b):e(x,-1)}),H(e,v),k()}var Id,Ld,Rd;function zd(){return(zd=s((()=>{Y(),J(),rd(),oc(),Ed(),Pd(),Id=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Ld=B(`
`),Rd={hash:`svelte-1wlkzzs`,code:`.content.svelte-1wlkzzs {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-1wlkzzs {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-1wlkzzs .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1wlkzzs {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-1wlkzzs .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-1wlkzzs {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-1wlkzzs {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1wlkzzs {transform:scale(90%);}.content.touch.combobox.svelte-1wlkzzs .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1wlkzzs {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1wlkzzs {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}})))()}function Bd(e,t){O(t,!0),G(e,Gd);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=qs(t,Vd);var w=Wd(),T=I(w);gs(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[ys]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-887riy`);var ee=F(T);So(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=Hd();Qu(F(t),{get lines(){return h()},children:(e,t)=>{mt();var n=ja();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=Hd();So(F(n),()=>t.children??E),D(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},re=e=>{var n=Ud(),r=I(n),i=e=>{var t=Hd();Qu(F(t),{get lines(){return h()},children:(e,t)=>{mt();var n=ja();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),So(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),So(L(te,2),()=>t.endIcon??E),D(T),Bs(T,e=>n(e),()=>n()),Ko(T,()=>Xu(p()));var ie=L(T,2),ae=e=>{Fd(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();So(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Vd,Hd,Ud,Wd,Gd;function Kd(){return(Kd=s((()=>{Y(),J(),Zu(),td(),zd(),Vd=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),Hd=B(``),Ud=B(` `,1),Wd=B(` `,1),Gd={hash:`svelte-887riy`,code:`button.svelte-887riy {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-887riy {display:none !important;}button.svelte-887riy:not(:disabled):focus-visible {z-index:1;}button.svelte-887riy:is(.primary:where(.svelte-887riy), .secondary:where(.svelte-887riy), .tertiary:where(.svelte-887riy), .ghost:where(.svelte-887riy)) {justify-content:center;border-width:1px;}button.svelte-887riy:is(.primary:where(.svelte-887riy), .secondary:where(.svelte-887riy), .tertiary:where(.svelte-887riy), .ghost:where(.svelte-887riy)) .label:where(.svelte-887riy):only-child {padding:0 4px;}button.primary.svelte-887riy {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-887riy:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-887riy {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-887riy:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-887riy {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-887riy {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-887riy:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-887riy {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-887riy {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus-visible, [aria-expanded=true]:where(.svelte-887riy)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-887riy:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-887riy {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-887riy {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-887riy .label:where(.svelte-887riy) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-887riy .label:where(.svelte-887riy) {text-decoration:underline;}button.link.svelte-887riy:is(:where(.svelte-887riy):hover, :where(.svelte-887riy):focus, :where(.svelte-887riy):active) .label:where(.svelte-887riy) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-887riy {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-887riy .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-887riy {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-887riy {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-887riy {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-887riy:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-887riy {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-887riy {background-color:var(--sui-error-background-color);}button.svelte-887riy .label:where(.svelte-887riy) {padding:0 4px;}button.svelte-887riy > * {pointer-events:none;}button.svelte-887riy :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}})))()}function qd(e,t){O(t,!0),G(e,Xd);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`ariaLive`,3,`polite`),o=q(t,`children`,3,void 0),s=q(t,`icon`,3,void 0);var c=V(),l=I(c),u=e=>{var t=Yd(),c=F(t),l=F(c),u=e=>{var t=V();So(I(t),s),H(e,t)},d=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());sc(e,{get name(){return z(t)}})}};W(l,e=>{s()?e(u):e(d,-1)}),So(L(l,2),()=>o()??E),D(c);var f=L(c,2),p=e=>{var t=Jd(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));Bd(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{sc(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(f,e=>{r()&&e(p)}),D(t),R(()=>{is(t,1,`infobar ${i()??``}`,`svelte-dkgtu3`),K(c,`aria-live`,a())}),H(e,t)};W(l,e=>{n()&&e(u)}),H(e,c),k()}var Jd,Yd,Xd;function Zd(){return(Zd=s((()=>{Y(),J(),Z(),Kd(),dc(),Jd=B(`
`),Yd=B(`
`),Xd={hash:`svelte-dkgtu3`,code:`.infobar.svelte-dkgtu3 {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-dkgtu3 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-dkgtu3 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-dkgtu3 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-dkgtu3 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-dkgtu3 {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-dkgtu3 button {font-size:inherit !important;}.message.svelte-dkgtu3 .icon {font-size:16px; /* !hardcoded */}`}})))()}function iee(e,t){G(e,ef);let n=qs(t,Qd);var r=$d();gs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-5x0z2s`),So(F(r),()=>t.children??E),D(r),H(e,r)}var Qd,$d,ef;function tf(){return(tf=s((()=>{Y(),J(),Qd=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),$d=B(`
`),ef={hash:`svelte-5x0z2s`,code:`.bottom-navigation.svelte-5x0z2s {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-5x0z2s:is([inert]:where(.svelte-5x0z2s), [hidden]:where(.svelte-5x0z2s)) {display:none;}.bottom-navigation.svelte-5x0z2s .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}})))()}function nf(e,t){G(e,of);let n=q(t,`ariaLabel`,3,void 0),r=qs(t,rf);var i=af();gs(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-np9zrs`),So(F(i),()=>t.children??E),D(i),H(e,i)}var rf,af,of;function sf(){return(sf=s((()=>{Y(),J(),rf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),af=B(`
`),of={hash:`svelte-np9zrs`,code:`.button-group.svelte-np9zrs {flex:none;display:inline-flex;align-items:center;}`}})))()}function cf(e,t){G(e,uf);let n=q(t,`children`,3,void 0);var r=lf();So(F(r),()=>n()??E),D(r),H(e,r)}var lf,uf;function df(){return(df=s((()=>{Y(),J(),lf=B(`
`),uf={hash:`svelte-fx2tre`,code:`.floating-action-button-wrapper.svelte-fx2tre {display:contents;} @media (width < 768px) {.floating-action-button-wrapper.svelte-fx2tre {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-fx2tre button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-fx2tre button .icon {font-size:32px;} }`}})))()}var ff,pf,mf,hf,gf;function _f(){return(_f=s((()=>{J(),oc(),ff=Symbol(`sui-option-registry`),pf=class{#e=N(!1);get expanded(){return z(this.#e)}set expanded(e){P(this.#e,e,!0)}#t=N([]);get count(){return z(this.#t).length}get selectedEntry(){return z(this.#t).find(e=>e.selected)}register(e){return P(this.#t,[...z(this.#t),e]),()=>{P(this.#t,z(this.#t).filter(t=>t!==e))}}find(e){return z(this.#t).find(t=>t.value===e)}selectOnly(e){z(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},mf=()=>Ft(ff,new pf),hf=()=>Pt(ff),gf=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})))()}var vf,yf,bf,xf,Sf,Cf,wf,Tf;function Ef(){return(Ef=s((()=>{J(),Z(),Cd(),rd(),_f(),vf=/\p{Diacritic}/gu,yf=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(vf,``).toLocaleLowerCase():``),bf={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},xf=`a[href], button, input, select, textarea, summary, [tabindex]`,Sf=()=>[...document.querySelectorAll(xf)].filter(e=>e.tabIndex>=0&&!e.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)&&!!e.getClientRects().length),Cf=e=>{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},wf=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=_d(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=bf[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,(async()=>{await nd(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get opener(){return Cf(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?Cf(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();if(!t)return;t.focus(),await nd(50);let n=Sf(),r=n.indexOf(t);r>-1&&n[r+(e?-1:1)]?.focus()}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await nd(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=this.controlsPanel?o.getAttribute(`aria-controls`):null,m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:gf(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=Mu()?`ArrowLeft`:`ArrowRight`,n=Mu()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=Mu();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f{let t=yf(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},Tf=e=>t=>{let n=typeof e==`function`,r=n?e():e,i=new wf(t,r);return n&&Zr(()=>{i.onUpdate(e())}),()=>{i.destroy()}}})))()}function Df(e,t){O(t,!0),G(e,Af);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`ariaLabel`,3,void 0),c=qs(t,Of);var l=kf();gs(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-1lvdjdx`);var u=F(l);So(F(u),()=>t.children??E),D(u),D(l),Ko(l,Tf),R(()=>u.inert=r()),H(e,l),k()}var Of,kf,Af;function jf(){return(jf=s((()=>{Y(),J(),Ef(),Of=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),kf=B(`
`),Af={hash:`svelte-1lvdjdx`,code:`.select-button-group.svelte-1lvdjdx {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1lvdjdx:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1lvdjdx button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1lvdjdx button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1lvdjdx button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1lvdjdx button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1lvdjdx button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1lvdjdx [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1lvdjdx [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1lvdjdx [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1lvdjdx {display:contents;}`}})))()}function Mf(e,t){O(t,!0);let n=q(t,`selected`,15,!1),r=qs(t,Nf);Bd(e,Js(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var Nf;function Pf(){return(Pf=s((()=>{Y(),J(),Kd(),Nf=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])})))()}function Ff(e,t){O(t,!0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`popupPosition`,3,`bottom-left`),a=q(t,`popupPositionBaseElement`,3,void 0),o=q(t,`showPopupBackdrop`,3,!1),s=q(t,`label`,3,``),c=q(t,`variant`,3,void 0),l=q(t,`size`,3,`medium`),u=q(t,`iconic`,3,!1),d=qs(t,If),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=Lf(),h=I(m);return Bd(h,Js(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.endIcon),H(e,n)},a=e=>{sc(e,{name:`more_vert`})},o=e=>{sc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),Fd(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=V();So(I(r),()=>t.popup??E),H(e,r)},$$slots:{default:!0}}),H(e,m),k(p)}var If,Lf;function Rf(){return(Rf=s((()=>{Y(),J(),Kd(),dc(),zd(),If=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Lf=B(` `,1)})))()}function zf(e,t){O(t,!0),G(e,Hf);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`label`,3,``),a=q(t,`variant`,3,void 0),o=q(t,`size`,3,`medium`),s=q(t,`popupPosition`,3,`bottom-left`),c=q(t,`showPopupBackdrop`,3,!1),l=qs(t,Bf),u=N(void 0);var d=Vf(),f=F(d);Bd(f,Js(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{sc(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},i=e=>{var n=V();So(I(n),()=>t.popup??E),H(e,n)},l=M(()=>X(`_sui.split_button.more_options`));Ff(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Bs(d,e=>P(u,e),()=>z(u)),R(e=>{K(d,`hidden`,n()),K(d,`aria-hidden`,n()),K(d,`aria-disabled`,r()),K(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),k()}var Bf,Vf,Hf;function Uf(){return(Uf=s((()=>{Y(),J(),Z(),dc(),Rf(),Kd(),Bf=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),Vf=B(`
`),Hf={hash:`svelte-laxirt`,code:`.split-button.svelte-laxirt {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-laxirt button {margin:0;}.split-button.svelte-laxirt button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-laxirt button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}})))()}function Wf(e,t){G(e,qf);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=q(t,`ariaLabel`,3,void 0),a=qs(t,Gf);var o=Kf();gs(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-6qkybc`),H(e,o)}var Gf,Kf,qf;function Jf(){return(Jf=s((()=>{Y(),J(),Gf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),Kf=B(`
`),qf={hash:`svelte-6qkybc`,code:`.divider.svelte-6qkybc {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-6qkybc {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-6qkybc {margin:0 8px;width:1px;height:100%;}`}})))()}function Yf(e,t){G(e,Qf);let n=q(t,`flex`,3,!1),r=qs(t,Xf);var i=Zf();gs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[ys]:{flex:n()}}),void 0,void 0,void 0,`svelte-i6cjz5`),H(e,i)}var Xf,Zf,Qf;function $f(){return($f=s((()=>{Y(),J(),Xf=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),Zf=B(`
`),Qf={hash:`svelte-i6cjz5`,code:`.spacer.flex.svelte-i6cjz5:not([hidden]) {display:block;flex:auto;}.spacer.svelte-i6cjz5:not(.flex) {width:8px;height:8px;}`}})))()}function ep(e,t){G(e,rp);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`ariaLabel`,3,void 0),o=qs(t,tp);var s=np();gs(s,()=>({...o,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`,"aria-label":a()}),void 0,void 0,void 0,`svelte-jwklx2`);var c=F(s);So(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),H(e,s)}var tp,np,rp;function ip(){return(ip=s((()=>{Y(),J(),tp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),np=B(`
`),rp={hash:`svelte-jwklx2`,code:`.checkbox-group.svelte-jwklx2 {display:inline-flex;}.checkbox-group.horizontal.svelte-jwklx2 {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-jwklx2 {gap:4px;flex-direction:column;} @media (pointer: coarse) {.checkbox-group.vertical.svelte-jwklx2 {gap:8px;} }.inner.svelte-jwklx2 {display:contents;}`}})))()}function ap(e,t){let n=Ma();O(t,!0),G(e,lp);let r=q(t,`checked`,15),i=q(t,`name`,3,void 0),a=q(t,`value`,3,void 0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=q(t,`label`,3,void 0),f=q(t,`ariaLabel`,3,void 0),p=q(t,`group`,15),m=qs(t,op),h=N(void 0),g=M(()=>r()===`mixed`);Zr(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=cp();let v;var y=F(_),b=F(y);{let e=e=>{var n=V(),i=I(n),a=e=>{var n=V();So(I(n),()=>t.checkIcon),H(e,n)},o=e=>{sc(e,{name:`remove`})},s=e=>{sc(e,{name:`check`})};W(i,e=>{t.checkIcon?e(a):z(g)?e(o,1):r()&&e(s,2)}),H(e,n)},d=M(()=>f()||void 0),_=M(()=>f()?void 0:`${n}-label`);Bd(b,Js(()=>m,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(g)?!0:!r()),Array.isArray(p())&&(r()?p().includes(a())||p([...p(),a()]):p().includes(a())&&p(p().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(h)},set element(e){P(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=L(b,2),S=e=>{var r=sp(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},o=e=>{var t=ja();R(()=>U(t,d())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(x,e=>{(t.children||d())&&e(S)}),D(y),D(_),R(()=>{v=is(_,1,`sui checkbox ${t.class??``}`,`svelte-hphq4w`,v,{checked:r(),indeterminate:z(g),disabled:s(),readonly:c()}),K(_,`hidden`,o()),y.inert=s()}),va(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(h)?.click()}),H(e,_),k()}var op,sp,cp,lp;function up(){return(up=s((()=>{Y(),J(),Kd(),dc(),op=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),sp=B(``),cp=B(`
`),lp={hash:`svelte-hphq4w`,code:`.checkbox.svelte-hphq4w {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-hphq4w:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-hphq4w:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-hphq4w:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-hphq4w:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-hphq4w button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-hphq4w button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-hphq4w button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-hphq4w button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-hphq4w button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-hphq4w label:where(.svelte-hphq4w) {cursor:inherit;}.inner.svelte-hphq4w {display:contents;}`},ya([`click`])})))()}function dp(e,t){let n=Ma();O(t,!0),G(e,vp);let r=q(t,`open`,15,!1);q(t,`value`,11,``);let i=q(t,`role`,3,`dialog`),a=q(t,`size`,3,`medium`),o=q(t,`showClose`,3,!1),s=q(t,`showOk`,3,!0),c=q(t,`showCancel`,3,!0),l=q(t,`okLabel`,3,``),u=q(t,`okShortcuts`,3,void 0),d=q(t,`okDisabled`,3,!1),f=q(t,`cancelLabel`,3,``),p=q(t,`cancelShortcuts`,3,void 0),m=q(t,`cancelDisabled`,3,!1),h=q(t,`focusInput`,3,!0),g=qs(t,fp),_=N(void 0),v=N(void 0);Zr(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await nd(50),!e&&(h()?((z(v)?.querySelector(`input, button.primary`))?.focus(),(z(v)?.querySelector(`input`))?.select()):z(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);Bs(kd(e,Js(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=_p(),h=F(i),g=e=>{var r=mp(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.header),H(e,n)},s=e=>{var r=pp(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);Yf(s,{flex:!0});var c=L(s,2);So(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.closeIcon),H(e,n)},a=e=>{sc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>X(`_sui.close`));Bd(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};W(l,e=>{o()&&e(u)}),R(()=>{K(i,`id`,`${n}-title`),U(a,t.title)}),H(e,r)};W(i,e=>{t.header?e(a):e(s,-1)}),D(r),H(e,r)};W(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);So(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=gp(),r=F(n),i=e=>{var n=V();So(I(n),()=>t.footer??E),H(e,n)},a=e=>{var n=hp(),r=I(n);So(r,()=>t.footerExtra??E);var i=L(r,2);Yf(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||X(`_sui.ok`));Bd(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};W(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||X(`_sui.cancel`));Bd(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};W(h,e=>{c()&&e(g)}),H(e,n)};W(r,e=>{t.footer?e(i):e(a,-1)}),D(n),H(e,n)};W(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Bs(i,e=>P(v,e),()=>z(v)),R(()=>{is(i,1,`content ${t.class??``} ${a()??``}`,`svelte-qfq09e`),K(y,`id`,`${n}-body`)}),H(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}k()}var fp,pp,mp,hp,gp,_p,vp;function yp(){return(yp=s((()=>{Y(),J(),Z(),rd(),Kd(),$f(),dc(),Pd(),fp=new Set(`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),pp=B(`
`,1),mp=B(`
`),hp=B(` `,1),gp=B(``),_p=B(`
`),vp={hash:`svelte-qfq09e`,code:`.content.svelte-qfq09e {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-qfq09e {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-qfq09e {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-qfq09e {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));} @media (max-height: 400px) {.content.small.svelte-qfq09e {max-height:calc(100dvh - 32px);} }.content.medium.svelte-qfq09e {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));} @media (max-height: 600px) {.content.medium.svelte-qfq09e {max-height:calc(100dvh - 32px);} }.content.large.svelte-qfq09e {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));} @media (max-height: 800px) {.content.large.svelte-qfq09e {max-height:calc(100dvh - 32px);} }.content.x-large.svelte-qfq09e {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));} @media (max-height: 1000px) {.content.x-large.svelte-qfq09e {max-height:calc(100dvh - 32px);} }:is(.header.svelte-qfq09e, .footer.svelte-qfq09e) {display:flex;align-items:center;gap:4px;}.header.svelte-qfq09e {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-qfq09e .title:where(.svelte-qfq09e) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-qfq09e {margin:var(--sui-dialog-footer-margin, 0 24px 24px);} @media (width < 768px) {.footer.svelte-qfq09e {margin:var(--sui-dialog-footer-margin, 0 16px 16px);} }.body.svelte-qfq09e {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);} @media (width < 768px) {.body.svelte-qfq09e {margin:var(--sui-dialog-body-margin, 16px 16px);} }`}})))()}function bp(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=qs(t,xp);dp(e,Js(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var xp;function Sp(){return(Sp=s((()=>{Y(),J(),yp(),xp=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}function Cp(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=qs(t,wp);dp(e,Js(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var wp;function Tp(){return(Tp=s((()=>{Y(),J(),yp(),wp=new Set([`$$slots`,`$$events`,`$$legacy`,`open`])})))()}function Ep(e,t){let n=Ma();O(t,!0),G(e,Ap);let r=q(t,`value`,15),i=q(t,`element`,15),a=q(t,`role`,3,`textbox`),o=q(t,`keyShortcuts`,3,void 0),s=q(t,`dir`,3,void 0),c=q(t,`name`,3,void 0),l=q(t,`showInlineLabel`,3,!1),u=q(t,`inputmode`,3,`text`),d=q(t,`flex`,3,!1),f=q(t,`monospace`,3,!1),p=q(t,`debounce`,3,!1),m=q(t,`hidden`,3,!1),h=q(t,`disabled`,3,!1),g=q(t,`readonly`,3,!1),_=q(t,`required`,3,!1),v=q(t,`invalid`,3,!1),y=q(t,`ariaLabel`,3,void 0),b=qs(t,Dp),x=M(()=>typeof p()==`number`?p():300),S=0;Zr(()=>()=>{clearTimeout(S)});let C=e=>{r(i()?.value),t.oninput?.(e)},w=e=>{let t=e;p()?(clearTimeout(S),S=setTimeout(()=>{C(t)},z(x))):C(t)};var T=kp();let ee;var te=F(T);gs(te,()=>({...b,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":y(),"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:w}),void 0,void 0,void 0,`svelte-1s77hta`,!0),Bs(te,e=>i(e),()=>i()),Ko(te,()=>Xu(o()));var ne=L(te,2),re=e=>{var t=Op();let i;Qu(F(t),{children:(e,t)=>{mt();var n=ja();R(()=>U(n,y())),H(e,n)},$$slots:{default:!0}}),D(t),R(()=>{K(t,`id`,`${n}-label`),i=is(t,1,`label svelte-1s77hta`,null,i,{hidden:!!r()})}),H(e,t)};W(ne,e=>{y()&&l()&&e(re)}),D(T),R(()=>{ee=is(T,1,`sui text-input ${t.class??``}`,`svelte-1s77hta`,ee,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),K(T,`hidden`,m()),te.dir=te.dir}),H(e,T),k()}var Dp,Op,kp,Ap;function jp(){return(jp=s((()=>{Y(),J(),Zu(),td(),Dp=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),Op=B(``),kp=B(`
`),Ap={hash:`svelte-1s77hta`,code:`.text-input.svelte-1s77hta {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-1s77hta:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-1s77hta {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-1s77hta:is(:where(.svelte-1s77hta):-webkit-autofill, :where(.svelte-1s77hta):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-1s77hta {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-1s77hta:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-1s77hta:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-1s77hta:is(:where(.svelte-1s77hta):disabled, :where(.svelte-1s77hta):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-1s77hta {border-color:var(--sui-error-border-color);}input.svelte-1s77hta ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-1s77hta ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-1s77hta ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-1s77hta {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-1s77hta {opacity:0;}input.svelte-1s77hta:focus + .label:where(.svelte-1s77hta) {opacity:0;}input.svelte-1s77hta::placeholder, .label.svelte-1s77hta {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}})))()}function Mp(e,t){O(t,!0),G(e,Fp);let n=q(t,`open`,15,!1),r=q(t,`value`,15,``),i=q(t,`textboxAttrs`,19,()=>({})),a=qs(t,Np);dp(e,Js(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=Pp(),o=I(a);So(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=V();So(I(n),()=>t.input),H(e,n)},u=e=>{Ep(e,Js({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};W(c,e=>{t.input?e(l):e(u,-1)}),D(s),H(e,a)},$$slots:{default:!0}})),k()}var Np,Pp,Fp;function Ip(){return(Ip=s((()=>{Y(),J(),jp(),yp(),Np=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),Pp=B(`
`,1),Fp={hash:`svelte-ge1dkp`,code:`.input-outer.svelte-ge1dkp {margin:12px 0 0;}`}})))()}function Lp(e,t){O(t,!0);let n=q(t,`accept`,3,void 0),r=q(t,`multiple`,3,!1),i=q(t,`onSelect`,3,void 0),a=q(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=Rp();return Bs(c,e=>P(o,e),()=>z(o)),R(()=>{K(c,`accept`,n()),c.multiple=r()}),va(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),_a(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),H(e,c),k(s)}var Rp;function zp(){return(zp=s((()=>{Y(),J(),Rp=B(``),ya([`change`])})))()}function Bp(e,t){let n=Ma();G(e,aee);let r=q(t,`label`,3,``),i=qs(t,Vp);var a=Up();gs(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-13gdqzf`);var o=F(a),s=e=>{var t=Hp();Bo(F(t),()=>`th`,!1,(e,t)=>{gs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-13gdqzf`);var i=ja();R(()=>U(i,r())),H(t,i)}),D(t),H(e,t)};W(o,e=>{r()&&e(s)}),So(L(o,2),()=>t.children??E),D(a),H(e,a)}var Vp,Hp,Up,aee;function Wp(){return(Wp=s((()=>{Y(),J(),Vp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),Hp=B(`
`),Up=B(`
`),aee={hash:`svelte-13gdqzf`,code:`[role=rowgroup].svelte-13gdqzf {display:table-row-group;}[role=row].svelte-13gdqzf {display:table-row;}[role=columnheader].svelte-13gdqzf {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}})))()}function Gp(e,t){G(e,cee);let n=qs(t,oee);var r=see();gs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-hg9w8v`),So(F(r),()=>t.children??E),D(r),H(e,r)}var oee,see,cee;function Kp(){return(Kp=s((()=>{Y(),J(),oee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),see=B(`
`),cee={hash:`svelte-hg9w8v`,code:`.grid-cell.svelte-hg9w8v {display:table-cell;}`}})))()}function qp(e,t){G(e,dee);let n=q(t,`selected`,3,!1),r=qs(t,lee);var i=uee();gs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-1a211rr`),So(F(i),()=>t.children??E),D(i),H(e,i)}var lee,uee,dee;function Jp(){return(Jp=s((()=>{Y(),J(),lee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),uee=B(`
`),dee={hash:`svelte-1a211rr`,code:`.grid-row.svelte-1a211rr {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function fee(e,t){O(t,!0),G(e,Yp);let n=q(t,`element`,15),r=q(t,`multiple`,3,!1),i=q(t,`clickToSelect`,3,!0),a=q(t,`ariaLabel`,3,void 0),o=qs(t,pee);var s=mee(),c=e=>{t.onChange?.(e)};gs(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-18721re`),So(F(s),()=>t.children??E),D(s),Bs(s,e=>n(e),()=>n()),Ko(s,()=>Tf({clickToSelect:i()})),H(e,s),k()}var pee,mee,Yp;function Xp(){return(Xp=s((()=>{Y(),J(),Ef(),pee=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),mee=B(`
`),Yp={hash:`svelte-18721re`,code:`.grid.svelte-18721re {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-18721re {border-collapse:collapse;}.grid.data.svelte-18721re :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Zp(e,t){O(t,!0),G(e,em);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`multiple`,3,!1),c=q(t,`searchTerms`,3,``),l=q(t,`ariaLabel`,3,void 0),u=qs(t,Qp),d=N(!1);var f=$p(),p=e=>{let{detail:{matched:n,total:r}}=e;P(d,n!==r),t.onFilter?.(e)};gs(f,()=>({...u,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),"aria-label":l(),onFilter:p,[ys]:{filtered:z(d)}}),void 0,void 0,void 0,`svelte-1ris72s`);var m=F(f);So(F(m),()=>t.children??E),D(m),D(f),Ko(f,()=>Tf(()=>({searchTerms:c()}))),R(()=>m.inert=r()),H(e,f),k()}var Qp,$p,em;function tm(){return(tm=s((()=>{Y(),J(),Ef(),Qp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),$p=B(`
`),em={hash:`svelte-1ris72s`,code:`[role=listbox].svelte-1ris72s {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);} @media (pointer: coarse) {[role=listbox].svelte-1ris72s {gap:8px 0;} }[role=listbox].svelte-1ris72s [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1ris72s {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1ris72s {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-1ris72s .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-1ris72s .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1ris72s .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1ris72s:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1ris72s [role=separator] {display:none;}.inner.svelte-1ris72s {display:contents;}`}})))()}function nm(e,t){let n=Ma();G(e,am);let r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=qs(t,rm);var s=im();gs(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-1y82zsc`);var c=F(s);Qu(F(c),{children:(e,t)=>{mt();var n=ja();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);So(F(l),()=>t.children??E),D(l),D(s),R(()=>{K(c,`id`,`${n}-label`),l.inert=i()}),H(e,s)}var rm,im,am;function om(){return(om=s((()=>{Y(),J(),td(),rm=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),im=B(`
`),am={hash:`svelte-1y82zsc`,code:`.option-group.svelte-1y82zsc:not(:first-child) {margin:12px 0 0;}.label.svelte-1y82zsc {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-1y82zsc {display:contents;}`}})))()}function sm(e,t){O(t,!0),G(e,dm);let n=q(t,`selected`,15,!1),r=q(t,`hidden`,15,!1),i=q(t,`disabled`,3,!1),a=q(t,`value`,19,()=>t.label),o=q(t,`searchValue`,19,()=>t.label),s=q(t,`wrap`,3,!1),c=qs(t,cm),l=hf();l&&ic(l.register({get value(){return a()},get label(){return t.label},get name(){return t.name},get type(){return t.valueType??typeof a()},get selected(){return n()},set selected(e){n(e)},get disabled(){return i()}}));let u=M(()=>!l||l.expanded);var d=V(),f=I(d),p=e=>{var l=um();let u;Bd(F(l),Js(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},children:(e,r)=>{var i=lm(),a=I(i),o=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.checkIcon),H(e,n)},a=e=>{sc(e,{class:`check`,name:`check`})};W(r,e=>{t.checkIcon?e(i):e(a,-1)}),H(e,n)};W(a,e=>{n()&&e(o)}),So(L(a,2),()=>t.children??E),H(e,i)},$$slots:{startIcon:!0,default:!0}})),D(l),R(()=>{u=is(l,1,`sui option ${t.class??``}`,`svelte-16216hu`,u,{wrap:s()}),K(l,`hidden`,r())}),H(e,l)};W(f,e=>{z(u)&&e(p)}),H(e,d),k()}var cm,lm,um,dm;function fm(){return(fm=s((()=>{Y(),J(),oc(),_f(),Kd(),dc(),cm=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),lm=B(` `,1),um=B(`
`),dm={hash:`svelte-16216hu`,code:`.option.svelte-16216hu {display:contents;}.option.svelte-16216hu:focus-visible {outline-width:0 !important;}.option.svelte-16216hu .wrap button {white-space:normal;}.option.svelte-16216hu button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-16216hu button:active {background-color:var(--sui-active-background-color);}.option.svelte-16216hu button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-16216hu button * {flex:none;}.option.svelte-16216hu button .label {flex:auto;}.option.svelte-16216hu :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-16216hu .icon.check {margin:-2px;}`}})))()}function pm(e,t){O(t,!0),G(e,gm);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,mm);var o=hm(),s=e=>{t.onChange?.(e)};gs(o,()=>({...a,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i(),onChange:s}),void 0,void 0,void 0,`svelte-12tisvc`),So(F(o),()=>t.children??E),D(o),Ko(o,Tf),H(e,o),k()}var mm,hm,gm;function _m(){return(_m=s((()=>{Y(),J(),Ef(),mm=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),hm=B(`
`),gm={hash:`svelte-12tisvc`,code:`.menu.svelte-12tisvc {display:flex;flex-direction:column;margin:0;border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);} @media (pointer: coarse) {.menu.svelte-12tisvc {gap:8px 0;} }.menu.svelte-12tisvc [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}})))()}function vm(e,t){O(t,!0),G(e,Cm);let n=q(t,`role`,3,`menuitem`),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=q(t,`popupPosition`,3,`right-top`),s=qs(t,ym),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);rc(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=Sm(),m=F(p);{let e=e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},o=e=>{var n=xm(),r=I(n);let i;var o=F(r),s=e=>{var t=ja();R(()=>U(t,a())),H(e,t)},c=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)};W(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=bm(),r=F(n),i=e=>{var n=V();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{{let t=M(()=>Mu()?`chevron_left`:`chevron_right`);sc(e,{get name(){return z(t)}})}};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),H(e,n)};W(l,e=>{z(f)&&e(u)}),R(()=>i=is(r,1,`content svelte-1iz38cg`,null,i,{label:!!a()})),H(e,n)},d=e=>{var n=V();So(I(n),()=>t.endIcon??E),H(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);Bd(m,Js(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{Fd(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{pm(e,{children:(e,n)=>{var r=V();So(I(r),()=>t.items??E),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),D(p),R(()=>{is(p,1,`sui menuitem ${t.class??``}`,`svelte-1iz38cg`),K(p,`hidden`,r())}),H(e,p),k()}var ym,bm,xm,Sm,Cm;function wm(){return(wm=s((()=>{Y(),J(),Z(),oc(),Kd(),dc(),zd(),_m(),ym=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),bm=B(``),xm=B(`
`,1),Sm=B(`
`),Cm={hash:`svelte-1iz38cg`,code:`.menuitem.svelte-1iz38cg {position:relative;}.menuitem.svelte-1iz38cg button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-1iz38cg button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1iz38cg button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1iz38cg button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1iz38cg :hover > [role=menu] {opacity:1;}.menuitem.svelte-1iz38cg > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1iz38cg > [role=menu]:hover {opacity:1;}.content.svelte-1iz38cg {flex:auto;}.icon-outer.svelte-1iz38cg {flex:none;width:24px;height:24px;}`}})))()}function Tm(e,t){O(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=qs(t,Em);vm(e,Js(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{sc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Em;function Dm(){return(Dm=s((()=>{Y(),J(),dc(),wm(),Em=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function Om(e,t){O(t,!0);let n=q(t,`checked`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`label`,3,``),o=qs(t,km);vm(e,Js(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var t=V(),r=I(t),i=e=>{sc(e,{name:`check`})};W(r,e=>{n()&&e(i)}),H(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var km;function Am(){return(Am=s((()=>{Y(),J(),dc(),wm(),km=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`])})))()}function hee(e,t){G(e,vee);let n=q(t,`now`,3,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`ariaLabel`,3,void 0),o=qs(t,gee);var s=_ee();gs(s,()=>({...o,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text,"aria-label":a()}),void 0,void 0,void 0,`svelte-p8gy6s`);var c=F(s);let l;D(s),R(()=>l=ss(c,``,l,{width:`${n()??``}%`})),H(e,s)}var gee,_ee,vee;function yee(){return(yee=s((()=>{Y(),J(),gee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),_ee=B(`
`),vee={hash:`svelte-p8gy6s`,code:`.progressbar.svelte-p8gy6s {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-p8gy6s div:where(.svelte-p8gy6s) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}})))()}function bee(e,t){O(t,!0),G(e,Cee);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=q(t,`orientation`,3,`horizontal`),c=q(t,`ariaLabel`,3,void 0),l=qs(t,xee);var u=See(),d=e=>{t.onChange?.(e)};gs(u,()=>({...l,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),"aria-label":c(),onChange:d}),void 0,void 0,void 0,`svelte-w3bzlq`);var f=F(u);So(F(f),()=>t.children??E),D(f),D(u),Ko(u,Tf),R(()=>f.inert=r()),H(e,u),k()}var xee,See,Cee;function jm(){return(jm=s((()=>{Y(),J(),Ef(),xee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),See=B(`
`),Cee={hash:`svelte-w3bzlq`,code:`.radio-group.svelte-w3bzlq {display:inline-flex;}.radio-group.svelte-w3bzlq:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-w3bzlq {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-w3bzlq {gap:4px;flex-direction:column;} @media (pointer: coarse) {.radio-group.vertical.svelte-w3bzlq {gap:8px;} }.radio-group.svelte-w3bzlq [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-w3bzlq [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-w3bzlq [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-w3bzlq {display:contents;}`}})))()}function Mm(e,t){let n=Ma();O(t,!0),G(e,Dee);let r=q(t,`checked`,7,!1),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,3,void 0),l=q(t,`label`,3,void 0),u=q(t,`group`,15),d=qs(t,wee),f=N(void 0);Zr(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=Eee(),m=e=>{e.target.matches(`button`)||z(f)?.click()};gs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[ys]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1xez94g`);var h=F(p);Bd(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=Tee(),i=F(r),a=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},o=e=>{var t=ja();R(()=>U(t,l())),H(e,t)};W(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>K(r,`id`,`${n}-label`)),H(e,r)};W(g,e=>{(t.children||l())&&e(_)}),D(p),H(e,p),k()}var wee,Tee,Eee,Dee;function Nm(){return(Nm=s((()=>{Y(),J(),Kd(),wee=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),Tee=B(``),Eee=B(` `),Dee={hash:`svelte-1xez94g`,code:`.radio.svelte-1xez94g {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-1xez94g :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1xez94g :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1xez94g :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1xez94g :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1xez94g :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1xez94g button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-1xez94g button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1xez94g button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1xez94g button[aria-checked=true]::before {opacity:1;}.radio.svelte-1xez94g label:where(.svelte-1xez94g) {cursor:inherit;}`}})))()}function Oee(e,t){O(t,!0),G(e,Mee);let n=q(t,`disabled`,3,!1),r=q(t,`showHandleBar`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,kee),o=Pt(`paneGroup`);if(!o)throw Error(` must be used inside a `);let s=o.registerHandle(),c=M(()=>o.direction===`horizontal`),l=M(()=>o.sizes),u=M(()=>z(l)[s]??0),d=M(()=>o.getPaneConstraints(s)),f=M(()=>Math.max(z(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=M(()=>Math.min(z(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=N(void 0),h=N(!1),g=N(0),_=N(0),v=N(!1),y=()=>{let e=z(m)?.closest(`.resizable-pane-group`);return e?z(c)?e.clientWidth:e.clientHeight:0},b=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(h)||i!==z(_))return;e.preventDefault(),e.stopPropagation();let a=z(c)?t:r,l=a-z(g),u=y();if(!u)return;let d=l/u*100;z(c)&&Mu()&&(d=-d),P(g,a,!0),o.resize(s,d)},x=e=>{let{pointerId:n}=e;!z(h)||n!==z(_)||(z(m)?.releasePointerCapture(n),P(h,!1),P(g,0),P(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,b),document.removeEventListener(`pointerup`,x),document.removeEventListener(`pointercancel`,x))},S=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;P(h,!0),P(g,z(c)?r:i,!0),P(_,a,!0),z(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,b),document.addEventListener(`pointerup`,x),document.addEventListener(`pointercancel`,x)},C=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(z(c)){let e=Mu();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),z(v)||(P(v,!0),t.onResizeStart?.()),o.resize(s,l)},w=()=>{z(v)&&(P(v,!1),t.onResizeEnd?.())};var T=jee();gs(T,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(f),"aria-valuemax":z(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:S,onkeydown:C,onblur:w,[ys]:{horizontal:z(c),vertical:!z(c),disabled:n(),dragging:z(h)}}),[()=>Math.round(z(u))],void 0,void 0,`svelte-ifj2ua`);var ee=F(T),te=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},ne=e=>{H(e,Aee())};W(ee,e=>{t.children?e(te):r()&&e(ne,1)}),D(T),Bs(T,e=>P(m,e),()=>z(m)),H(e,T),k()}var kee,Aee,jee,Mee;function Pm(){return(Pm=s((()=>{Y(),J(),Z(),oc(),kee=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),Aee=B(`
`),jee=B(`
`),Mee={hash:`svelte-ifj2ua`,code:`.resizable-handle.svelte-ifj2ua {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-ifj2ua:focus-visible, .resizable-handle.svelte-ifj2ua:hover, .resizable-handle.dragging.svelte-ifj2ua {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-ifj2ua:focus-visible .handle-bar:where(.svelte-ifj2ua), .resizable-handle.svelte-ifj2ua:hover .handle-bar:where(.svelte-ifj2ua), .resizable-handle.dragging.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-ifj2ua {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-ifj2ua {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-ifj2ua {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-ifj2ua .handle-bar:where(.svelte-ifj2ua) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}})))()}function Nee(e,t){O(t,!0),G(e,Iee);let n=q(t,`direction`,3,`horizontal`),r=qs(t,Pee),i=Dr([]),a=N(void 0),o=Dr([]),s=Dr([]),c=0,l=()=>z(a)?n()===`horizontal`?z(a).clientWidth:z(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};Ft(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),Zr(()=>{i.length&&!o.length&&f()});var m=Fee();gs(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-1r3bui0`),So(F(m),()=>t.children??E),D(m),Bs(m,e=>P(a,e),()=>z(a)),H(e,m),k()}var Pee,Fee,Iee;function Fm(){return(Fm=s((()=>{Y(),J(),oc(),Pee=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),Fee=B(`
`),Iee={hash:`svelte-1r3bui0`,code:`.resizable-pane-group.svelte-1r3bui0 {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-1r3bui0 {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-1r3bui0 {flex-direction:column;width:100%;height:100%;}`}})))()}function Im(e,t){let n=Ma();O(t,!0);let r=q(t,`defaultSize`,3,void 0),i=q(t,`minSize`,3,0),a=q(t,`maxSize`,3,100),o=qs(t,Lee),s=Pt(`paneGroup`);if(!s)throw Error(` must be used inside a `);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${z(u)}%`);Zr(()=>{z(u)!==void 0&&Ri(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=Ree();gs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[bs]:{"flex-basis":z(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),So(F(f),()=>t.children??E),D(f),H(e,f),k()}var Lee,Ree;function Lm(){return(Lm=s((()=>{Y(),J(),oc(),Lee=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),Ree=B(`
`)})))()}function Rm(e,t){O(t,!0),G(e,Vee);let n=q(t,`itemChunkSize`,3,25),r=N(Dr(n())),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});Zr(()=>{z(i)&&o.observe(z(i))});var s=Bee(),c=I(s);lo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=V();So(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),H(e,i)});var l=L(c,2),u=e=>{var t=zee();Bs(t,e=>P(i,e),()=>z(i)),H(e,t)};W(l,e=>{z(a)&&e(u)}),H(e,s),k()}var zee,Bee,Vee;function zm(){return(zm=s((()=>{Y(),J(),zee=B(`
`),Bee=B(` `,1),Vee={hash:`svelte-182vrt3`,code:`.spinner.svelte-182vrt3 {height:1px;}`}})))()}function Bm(e,t){let n=Ma();O(t,!0),G(e,Wee);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`hidden`,3,!1),o=q(t,`disabled`,3,!1),s=q(t,`readonly`,3,!1),c=q(t,`required`,3,!1),l=q(t,`invalid`,3,!1),u=qs(t,Hee),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=Uee();let m;var h=F(p),g=F(h),_=e=>{var n=V();So(I(n),()=>t.searchIcon),H(e,n)},v=e=>{sc(e,{name:`search`})};W(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);Ep(y,Js({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.closeIcon),H(e,n)},a=e=>{sc(e,{name:`close`})};W(r,e=>{t.closeIcon?e(i):e(a,-1)}),H(e,n)},a=M(()=>X(`_sui.clear`));Bd(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return W(b,e=>{r()&&e(x)}),D(p),R(()=>{K(p,`role`,a()?void 0:`none`),m=is(p,1,`sui search-bar ${t.class??``}`,`svelte-1j8qubs`,m,{flex:i(),disabled:o(),readonly:s()}),K(p,`hidden`,a()),K(p,`aria-hidden`,a())}),H(e,p),k(f)}var Hee,Uee,Wee;function Vm(){return(Vm=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),Hee=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),Uee=B(`
`),Wee={hash:`svelte-1j8qubs`,code:`.search-bar.svelte-1j8qubs {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-1j8qubs:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1j8qubs > span:where(.svelte-1j8qubs) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-1j8qubs .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1j8qubs > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1j8qubs .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1j8qubs .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1j8qubs input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}})))()}function Gee(e,t){let n=Ma();O(t,!0),G(e,Zee);let r=q(t,`value`,15),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`editable`,3,!0),u=q(t,`position`,3,`bottom-left`),d=q(t,`filterThreshold`,3,5),f=q(t,`ariaLabel`,3,void 0),p=qs(t,Kee),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(void 0),y=N(void 0),b=N(void 0),x=N(``),S=N(!1),C=N(``),w=N(0),T=M(()=>!z(C)||z(w)>0),ee=M(()=>z(h)??z(g)),te=mf(),ne=()=>{let e=te.find(r());e&&(P(x,e.label,!0),te.selectOnly(r()))},re=e=>{let n=gf(e);r(n.value),ne(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};Zr(()=>{te.expanded=z(m)}),Zr(()=>{if(!z(y))return;let e=z(m)?z(b):z(v);e&&z(y).parentElement!==e&&e.append(z(y))}),rc(()=>{let e=te.selectedEntry;e&&(r(e.value),P(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),Zr(()=>{r(),ne()});var ie=Xee(),ae=I(ie);gs(ae,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[ys]:{editable:l()}}),void 0,void 0,void 0,`svelte-13k5i3t`);var oe=F(ae),se=e=>{var t=qee();gs(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":z(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[ys]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-13k5i3t`);var l=F(t);Qu(F(l),{children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>r()===void 0?X(`_sui.combobox.select_an_option`):z(x)]),H(e,n)},$$slots:{default:!0}}),D(l),D(t),Bs(t,e=>P(h,e),()=>z(h)),H(e,t)},ce=e=>{{let t=M(()=>r()===void 0?``:String(r()));Ep(e,Js(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return z(g)},set element(e){P(g,e,!0)}}))}};W(oe,e=>{l()?e(ce,-1):e(se)});var le=L(oe,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{sc(e,{name:`expand_more`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},r=M(()=>!l()||o()||a()?-1:0),s=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`)),c=M(()=>z(m)?`${n}-popup`:void 0);Bd(le,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return z(r)},get"aria-label"(){return z(s)},get"aria-controls"(){return z(c)},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(ae);var ue=L(ae,2),de=F(ue);Zp(F(de),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&re(e.target)},onFilter:e=>{P(w,e.detail.matched,!0)},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}}),D(de),Bs(de,e=>P(y,e),()=>z(y)),D(ue),Bs(ue,e=>P(v,e),()=>z(v)),Fd(L(ue,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(ee)},get position(){return u()},touchOptimized:!0,onOpen:()=>{P(S,d()!==-1&&te.count>d(),!0),P(C,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,t)=>{var r=Yee(),i=F(r),a=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));Bm(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(C)},set value(e){P(C,e,!0)}})}};W(i,e=>{z(S)&&e(a)});var o=L(i,2);Bs(o,e=>P(b,e),()=>z(b));var s=L(o,2),c=e=>{var t=Jee(),n=F(t,!0);D(t),R(e=>U(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),H(e,t)};W(s,e=>{z(T)||e(c)}),D(r),H(e,r)},$$slots:{default:!0}}),H(e,ie),k()}var Kee,qee,Jee,Yee,Xee,Zee;function Qee(){return(Qee=s((()=>{Y(),J(),Z(),oc(),_f(),Kd(),dc(),tm(),Vm(),jp(),td(),zd(),Kee=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),qee=B(`
`),Jee=B(``),Yee=B(`
`),Xee=B(`
`,1),Zee={hash:`svelte-13k5i3t`,code:`:is(.option-host.svelte-13k5i3t, .listbox-slot.svelte-13k5i3t) {display:contents;}.combobox.svelte-13k5i3t {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t):not(.selected) {font-style:italic;}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t):is(:where(.svelte-13k5i3t):hover, :where(.svelte-13k5i3t):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-13k5i3t div[role=combobox][aria-invalid=true]:where(.svelte-13k5i3t) {border-color:var(--sui-error-border-color);}.combobox.svelte-13k5i3t div[role=combobox]:where(.svelte-13k5i3t) .label:where(.svelte-13k5i3t) {width:100%;}.combobox.svelte-13k5i3t .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-13k5i3t > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-13k5i3t > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-13k5i3t > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-13k5i3t :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-13k5i3t .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-13k5i3t input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-13k5i3t + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px); /* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-13k5i3t + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-13k5i3t {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-13k5i3t .sui.search-bar {flex:none;}.combobox-inner.svelte-13k5i3t .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-13k5i3t .no-options:where(.svelte-13k5i3t) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}})))()}function $ee(e){let t=e-1;return t*t*t+1}function ete(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=$ee}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=tte(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function tte(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}function nte(){return(nte=s((()=>{})))()}function Hm(e,t){O(t,!0);let n=q(t,`value`,15),r=q(t,`hidden`,3,!1),i=q(t,`disabled`,3,!1),a=q(t,`readonly`,3,!1),o=q(t,`required`,3,!1),s=q(t,`invalid`,3,!1),c=qs(t,rte);Gee(e,Js(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}})),k()}var rte;function Um(){return(Um=s((()=>{Y(),J(),Qee(),rte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`])})))()}function ite(e,t){O(t,!0),G(e,cte);let n=q(t,`values`,31,()=>Dr([])),r=q(t,`max`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=qs(t,ate),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Mu()?`ArrowRight`:`ArrowLeft`),f=M(()=>Mu()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await Fi(),(z(p)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var y=ste();let b;var x=F(y);lo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=ote();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{sc(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));Bd(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};W(y,e=>{z(s)&&e(b)}),D(l),R(()=>{K(l,`draggable`,!a()&&!o()),p=is(l,1,`svelte-1ensfqk`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),K(m,`tabindex`,a()||o()?void 0:0),U(_,z(c))}),_a(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),_a(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),_a(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),va(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)0?0:t===`End`&&z(i)ete,()=>({duration:200})),H(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());Hm(e,Js(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=V();lo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=V(),s=I(o),c=e=>{sm(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));W(s,e=>{z(l)&&e(c)}),H(e,o)}),H(e,i)},$$slots:{default:!0}}))}};W(S,e=>{(typeof r()!=`number`||n().lengthP(p,e),()=>z(p)),R(e=>{b=is(y,1,`sui select-tags ${t.class??``}`,`svelte-1ensfqk`,b,{disabled:a()||o()}),K(y,`hidden`,i()),K(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),H(e,y),k()}var ate,ote,ste,cte;function lte(){return(lte=s((()=>{Y(),J(),Z(),oc(),nte(),Kd(),dc(),fm(),Um(),ate=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),ote=B(` `),ste=B(`
`),cte={hash:`svelte-1ensfqk`,code:`.select-tags.svelte-1ensfqk {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1ensfqk {pointer-events:none;}.select-tags.disabled.svelte-1ensfqk > :where(.svelte-1ensfqk) {opacity:0.5;}.select-tags.svelte-1ensfqk span[role=listbox]:where(.svelte-1ensfqk) {display:contents;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1ensfqk span[draggable].drag-source:where(.svelte-1ensfqk) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1ensfqk span[draggable].drop-before:where(.svelte-1ensfqk)::before, .select-tags.svelte-1ensfqk span[draggable].drop-after:where(.svelte-1ensfqk)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1ensfqk span[draggable].drop-before:where(.svelte-1ensfqk)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1ensfqk span[draggable].drop-after:where(.svelte-1ensfqk)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) .label:where(.svelte-1ensfqk) {outline:none;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) button {outline-offset:-2px;}.select-tags.svelte-1ensfqk span[draggable]:where(.svelte-1ensfqk) .icon {font-size:var(--sui-font-size-large);}`},ya([`keydown`])})))()}function ute(e,t){O(t,!0),G(e,hte);let n=q(t,`value`,15,0),r=q(t,`min`,3,0),i=q(t,`max`,3,100),a=q(t,`sliderLabel`,3,``),o=q(t,`values`,15,void 0),s=q(t,`sliderLabels`,3,void 0),c=q(t,`step`,3,1),l=q(t,`optionLabels`,19,()=>[]),u=q(t,`hidden`,3,!1),d=q(t,`disabled`,3,!1),f=q(t,`readonly`,3,!1),p=q(t,`invalid`,3,!1),m=qs(t,dte),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Dr([])),y=N(Dr([])),b=N(0),x=N(0),S=Dr([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Math.min(z(_),Math.max(0,Mu()?z(_)-e:e)),r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(z(v)[r]-t)=z(v)[a]))&&(z(h)?(o(o()[z(T)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Mu(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.preventDefault(),e.stopPropagation();let r=t-z(x),i=z(b)+r;ee(i)},re=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!z(C)||t!==z(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect(),n=e.clientX-t.left;ee(n)}r.releasePointerCapture(t),P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)},ie=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),P(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=z(g).getBoundingClientRect();P(b,n-s.left),P(x,r,!0),P(w,i,!0),P(T,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re)},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};rc(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),Zr(()=>{n(),o(),ae()});var se=mte();_a(`click`,Vr.body,()=>{P(C,!1)}),gs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[ys]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-co5xeo`);var ce=F(se),le=L(F(ce),2);let E;var ue=L(le,2);let de;var fe=L(ue,2),pe=e=>{var t=fte();let n;R(()=>{K(t,`tabindex`,d()?-1:0),K(t,`aria-label`,s()?.[1]),K(t,`aria-hidden`,u()),K(t,`aria-disabled`,d()),K(t,`aria-readonly`,f()),K(t,`aria-invalid`,p()),K(t,`aria-valuemin`,r()),K(t,`aria-valuemax`,i()),K(t,`aria-valuenow`,o()?.[1]),n=ss(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),va(`pointerdown`,t,e=>ie(e,1)),va(`keydown`,t,e=>te(e,1)),H(e,t)};W(fe,e=>{z(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=V();lo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=pte();let i;var a=F(r,!0);D(r),R(()=>{i=ss(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),U(a,z(t))}),H(e,r)}),H(e,t)};W(me,e=>{l().length&&e(he)}),D(ce),Bs(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{E=ss(le,``,E,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),K(ue,`tabindex`,d()?-1:0),K(ue,`aria-label`,z(h)?s()?.[0]:a()),K(ue,`aria-hidden`,u()),K(ue,`aria-disabled`,d()),K(ue,`aria-readonly`,f()),K(ue,`aria-invalid`,p()),K(ue,`aria-valuemin`,r()),K(ue,`aria-valuemax`,i()),K(ue,`aria-valuenow`,z(h)?o()?.[0]:n()),de=ss(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),va(`pointerdown`,ce,e=>ie(e)),va(`pointerdown`,ue,e=>ie(e,0)),va(`keydown`,ue,e=>te(e,0)),H(e,se),k()}var dte,fte,pte,mte,hte;function gte(){return(gte=s((()=>{Y(),J(),Z(),oc(),dte=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),fte=B(`
`),pte=B(` `),mte=B(`
`),hte={hash:`svelte-co5xeo`,code:`.slider.svelte-co5xeo {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-co5xeo:hover .base-bar:where(.svelte-co5xeo) {background-color:var(--sui-hover-background-color);}.slider.svelte-co5xeo:active .base-bar:where(.svelte-co5xeo) {background-color:var(--sui-active-background-color);}.base.svelte-co5xeo {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-co5xeo {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-co5xeo {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-co5xeo .slider-bar:where(.svelte-co5xeo) {background-color:var(--sui-error-border-color);}[role=slider].svelte-co5xeo {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-co5xeo:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-co5xeo:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-co5xeo [role=slider]:where(.svelte-co5xeo) {border-color:var(--sui-error-border-color);}.label.svelte-co5xeo {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-co5xeo:dir(ltr) {transform:translateX(-50%);}.label.svelte-co5xeo:dir(rtl) {transform:translateX(50%);}`},ya([`pointerdown`,`keydown`])})))()}function Wm(e,t){O(t,!0),G(e,yte);let n=q(t,`checked`,15),r=q(t,`label`,3,void 0),i=q(t,`hidden`,3,!1),a=q(t,`disabled`,3,!1),o=q(t,`readonly`,3,!1),s=q(t,`required`,3,!1),c=q(t,`invalid`,3,!1),l=q(t,`ariaLabel`,3,void 0),u=qs(t,_te);var d=vte(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};gs(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-1soui1e`);var p=L(F(d),2),m=e=>{var t=ja();R(()=>U(t,r())),H(e,t)},h=e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)};W(p,e=>{r()?e(m):e(h,-1)}),D(d),H(e,d),k()}var _te,vte,yte;function Gm(){return(Gm=s((()=>{Y(),J(),_te=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),vte=B(``),yte={hash:`svelte-1soui1e`,code:`button.svelte-1soui1e {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1soui1e:focus-visible {outline:0;}button.svelte-1soui1e:focus-visible span:where(.svelte-1soui1e) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-1soui1e span:where(.svelte-1soui1e):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-1soui1e {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-1soui1e::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}})))()}function bte(e,t){G(e,Cte);let n=qs(t,xte);var r=Ste();gs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-601y9t`),So(F(r),()=>t.children??E),D(r),H(e,r)}var xte,Ste,Cte;function wte(){return(wte=s((()=>{Y(),J(),xte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Ste=B(`
`),Cte={hash:`svelte-601y9t`,code:`.table-cell.svelte-601y9t {display:table-cell;}`}})))()}function Tte(e,t){G(e,Ote);let n=qs(t,Ete);var r=Dte();gs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-ab2xjt`),So(F(r),()=>t.children??E),D(r),H(e,r)}var Ete,Dte,Ote;function kte(){return(kte=s((()=>{Y(),J(),Ete=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Dte=B(`
`),Ote={hash:`svelte-ab2xjt`,code:`.table-row.svelte-ab2xjt {display:table-row;height:var(--sui-primary-row-height);}`}})))()}function Ate(e,t){G(e,qm);let n=q(t,`ariaLabel`,3,void 0),r=qs(t,jte);var i=Km();gs(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1meuwqk`),So(F(i),()=>t.children??E),D(i),H(e,i)}var jte,Km,qm;function Jm(){return(Jm=s((()=>{Y(),J(),jte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),Km=B(`
`),qm={hash:`svelte-1meuwqk`,code:`.table.svelte-1meuwqk {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1meuwqk {border-collapse:collapse;}.table.data.svelte-1meuwqk :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}})))()}function Mte(e,t){O(t,!0),G(e,Zm);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`name`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=qs(t,Ym),c=N(void 0),l=N(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=z(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(l,void 0)})};rc(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(z(c)),()=>{e.disconnect()}});var d=Xm(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};gs(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-1nmp560`);var m=F(d);So(F(m),()=>t.children??E),D(m);var h=L(m,2);D(d),Bs(d,e=>P(c,e),()=>z(c)),Ko(d,Tf),R(()=>{m.inert=r(),ss(h,z(l))}),H(e,d),k()}var Ym,Xm,Zm;function Qm(){return(Qm=s((()=>{Y(),J(),oc(),Ef(),Ym=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),Xm=B(`
`),Zm={hash:`svelte-1nmp560`,code:`.tab-list.svelte-1nmp560 {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-1nmp560 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-1nmp560 button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-1nmp560 .indicator:where(.svelte-1nmp560) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-1nmp560 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-1nmp560 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-1nmp560 .indicator:where(.svelte-1nmp560) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-1nmp560 button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-1nmp560 {display:contents;}.indicator.svelte-1nmp560 {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}})))()}function Nte(e,t){G(e,th);let n=qs(t,$m);var r=eh();gs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1ak0vgy`),So(F(r),()=>t.children??E),D(r),H(e,r)}var $m,eh,th;function nh(){return(nh=s((()=>{Y(),J(),$m=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),eh=B(`
`),th={hash:`svelte-1ak0vgy`,code:`.tab-panel.svelte-1ak0vgy {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1ak0vgy, .tab-panel.svelte-1ak0vgy:not([aria-hidden]) {display:none;}`}})))()}function Pte(e,t){let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`selected`,3,!1),a=qs(t,rh);Bd(e,Js(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=V();So(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();So(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V();So(I(n),()=>t.endIcon??E),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var rh;function ih(){return(ih=s((()=>{Y(),J(),Kd(),rh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`])})))()}function ah(e,t){O(t,!0),G(e,ch);let n=q(t,`show`,15,!1),r=q(t,`id`,3,void 0),i=q(t,`duration`,3,5e3),a=q(t,`position`,7,`auto`),o=qs(t,oh),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);rc(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),rc(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),Zr(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),Zr(()=>{r(),n(),i(),Ri(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=sh(),f=I(d);Bs(f,e=>P(s,e),()=>z(s));var p=L(f,2);gs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-1p6cs7s`),So(F(p),()=>t.children??E),D(p),Bs(p,e=>P(l,e),()=>z(l)),H(e,d),k()}var oh,sh,ch;function lh(){return(lh=s((()=>{Y(),J(),oc(),oh=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),sh=B(`
`,1),ch={hash:`svelte-1p6cs7s`,code:`.toast-base.svelte-1p6cs7s {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-1p6cs7s {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-1p6cs7s {display:block;opacity:0;}.toast.top-left.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-1p6cs7s:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-1p6cs7s:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-1p6cs7s {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-1p6cs7s:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-1p6cs7s:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-1p6cs7s {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})))()}var uh=c(((e,t)=>{ /** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public */ var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+``};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,ee;if(v){if(ee=o(x,C,e,_),!ee||ee.index>=e.length)break;var te=ee.index,ne=ee.index+ee[0].length,re=C;for(re+=S.value.length;te>=re;)S=S.next,re+=S.value.length;if(re-=S.value.length,C=re,S.value instanceof a)continue;for(var ie=S;ie!==t.tail&&(red.reach&&(d.reach=ce);var le=S.prev;oe&&(le=l(t,le,oe),C+=oe.length),u(t,le,T);var E=new a(f,g?i.tokenize(ae,g):ae,y,ae);if(S=l(t,le,E),se&&l(t,S,se),T>1){var ue={cause:f+`,`+m,reach:ce};s(e,t,n,S.prev,C,ue),d&&ue.reach>d.reach&&(d.reach=ue.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(` `),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}));function dh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function fh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ph(){return Uv()._blockCursorElement}function Fte(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function mh(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function hh(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&dh(225),n.reverse()}function gh(e,t=1e3){return e instanceof Kb?e.clone():e.size100;try{x_(e,()=>{let i=n_()||function(e){return e.read(`latest`,()=>{let e=n_();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n0){let t=0;for(let i=0;i0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t{yh(e,t,n)})}function Sh(e,t){return new Xb(e,t)}function Ch(e,t,n=Yb){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function wh(e,t,n){let r;if(m_(),typeof n==`function`){let i=e.getLatest(),a=Ch(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return Th(i).updateFromKnown(t,r),i}function Bte(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of ry(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}function Th(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Qb(t,Eh(t));return t.__state=n,n}function Eh(e){return e.__state?e.__state.sharedNodeState:nre(Uv(),e.getType()).sharedNodeState}function Dh(e){if(e)for(let t in e)return e}function Vte(e){return e}function Oh(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function kh(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function Ah(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function jh(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&Oh(n,e,t)||t&&Oh(n,t,e)||e&&kh(n,e,t)||t&&kh(n,t,e))}(c,l))}function Mh(e,t){let n=e.mergeWithSibling(t),r=g_()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Nh(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Hg(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(jh(t,r)){r=Mh(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Hg(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(jh(r,n)){r=Mh(r,n);break}break}n.remove()}}else r.remove()}function Ph(e){return Fh(e.anchor),Fh(e.focus),e}function Fh(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Hg(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function Ih(e,t){return fx.read(()=>{let n=0,r=e;for(let e=0;e0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${bx}))`)}function Gh(e,t){let n=e.style;t===0?Uh(n,``):t===1?Uh(n,`left`):t===2?Uh(n,`center`):t===3?Uh(n,`right`):t===4?Uh(n,`justify`):t===5?Uh(n,`start`):t===6&&Uh(n,`end`)}function Kh(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(C_(e))return null;let n=e.getParent();return n===null||yv(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function qh(e){let t=Av().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function Jh(e,t,n){t||e.contentEditable===`false`?Are(n,nx):n.removeAttribute(`contenteditable`)}function Yh(e,t,n){let r=ix,i=Rh();ix=``;let a=``,o=S_(e);for(let[r,i]of n){let n=qh(r);Jh(t,o,n),t.appendChild(n),ix=``;let s=Rh();eg(i,Gv(e,n,nx)),zh(s),Zh(e,r,t,n),a+=ix}return zh(i),ix=r,a}function Xh(e){return sy(e)&&e.__slots!==null?e.__slots:YS}function Zh(e,t,n,r){let i=_x.$getSlotTargetElement(e,t,n,nx);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Qh(e){let t=mx.get(e);return t===void 0?null:t.parentElement}function $h(e,t,n){let r=Xh(e),i=Xh(t);for(let[e,t]of r)if(!i.has(e)){let e=Qh(t);Vh(t,null),e!==null&&e.remove()}let a=ix,o=Rh(),s=``,c=null,l=S_(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Qh(i);ix=``;let u=Rh();if(o===null){o=qh(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),eg(a,Gv(t,o,nx))}else i===a?ig(a,o):(i!==void 0&&Vh(i,o),eg(a,Gv(t,o,nx)));if(zh(u),Jh(n,l,o),Zh(t,e,n,o),s+=ix,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return zh(o),ix=a,s}function eg(e,t){let n=px.get(e);if(n===void 0&&dh(60),t!==null){let r=dx.get(e);if(r!==void 0){let i=mx.get(e);if(i!==void 0){let a=cy(r)?r.__slotHost:null,o=cy(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),ig(e,t.element)}}}let r=_x.$createDOM(n,nx);if(function(e,t,n){let r=n._keyToDOMMap;cre(t,n,e),r.set(e,t)}(e,r,nx),Hg(n)?r.setAttribute(`data-lexical-text`,`true`):S_(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),Qv(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;Kh(r,n),e!==0&&Wh(r,e);let i=Xh(n),a=i.size>0?Yh(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,ix+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=ix,o=t-1;if(tg(ay(n,px),n,0,o,Gv(n,r,nx)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,ix=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&Gh(r,o),n.isInline()||ng(null,n,r)}else{let t=n.getTextContent();if(S_(n)){let t=n.decorate(nx,tx);t!==null&&ag(e,t),r.contentEditable=`false`;let i=Xh(n);i.size>0&&Yh(n,r,i)}ix+=t}return t!==null&&t.insertChild(r),_x.$decorateDOM(n,null,r,nx),Lh(n),sv(gx,rx,cx,n,`created`),r}function tg(e,t,n,r,i){let a=ix,o=Rh();ix=``,ax=null,ox=null,sx=null;let s=n;for(;s<=r;++s){let t=Rh();eg(e[s],i);let n=px.get(e[s]);n!==null&&Hg(n)?ax===null&&(ax=n.getFormat(),ox=n.getStyle(),sx=n.__key):$(n)&&s0?null:`empty`}return null}(t,px);i!==a&&r.setManagedLineBreak(a)}function Hte(e,t,n){var r;ax=null,ox=null,sx=null,function(e,t,n){let r=ix,i=e.__size,a=t.__size;ix=``;let o=n.element,s=nx._keyToDOMMap.get(t.__key);s===void 0&&dh(351,t.__key);let c=a-i;if(!vx&&Math.abs(c)<=1&&i>=ex&&e.__first===t.__first&&(c!==0||!nx._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=hx.get(e.__key);if(!vx&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,ix=r+m,rg(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&dh(353),ix=r+e,rg(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=px.get(t);if(e===void 0)break;let r=vx||ux.has(t)||lx.has(t),i=Rh();if(r)ig(t,o);else{let n,r;if($(e)){r=mx.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&dh(354,e.getType()),n=i}else n=e.getTextContent();ix+=n,r!==void 0&&Bh(r)}Hg(e)?ax===null&&(ax=e.getFormat(),ox=e.getStyle(),sx=e.__key):$(e)&&no,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:nx.getElementByKey(t);tg(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&Hh(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=ix,s.__lexicalFirstTextKey=sx,ix=r+ix}(e,t,Gv(t,n,nx)),yv(t)||(r=t,ax==null||ax===r.__textFormat||yx||r.setTextFormat(ax),function(e){ox==null||ox===e.__textStyle||yx||e.setTextStyle(ox)}(t))}function rg(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=px.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=px.get(r);if(Hg(e))return ax=e.getFormat(),void(ox=e.getStyle())}}t.__lexicalFirstTextKey=sx}function ig(e,t){let n=dx.get(e),r=px.get(e);n!==void 0&&r!==void 0||dh(61);let i=vx||ux.has(e)||lx.has(e),a=lv(nx,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&dh(355,n.getType()),e=t,Bh(a)}else e=n.getTextContent();return ix+=e,a}if(n!==r&&i&&sv(gx,rx,cx,r,`updated`),_x.$updateDOM(r,n,a,nx)){let n=eg(e,null);return t===null&&dh(62),t.replaceChild(n,a),Vh(e,null),n}if($(n)){$(r)||dh(334,e);let t=r.__indent;(vx||t!==n.__indent)&&Wh(a,t);let o=r.__format;(vx||o!==n.__format)&&Gh(a,o);let s=i&&(Xh(r).size>0||Xh(n).size>0)?$h(n,r,a):``;if(i){let e=ix;if(Hte(n,r,a),C_(r)||r.isInline()||ng(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,ix=e+s+t,a.__lexicalSlotTextLength=s.length}else(Xh(r).size>0||Xh(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&dh(356,n.getType()),ix+=e,Bh(a)}if((vx||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(Kh(a,r),C_(r)&&!vx))for(let e of r.getChildren())$(e)&&Kh(lv(nx,e.getKey()),e)}else{let t=r.getTextContent();if(S_(r)){let t=r.decorate(nx,tx);t!==null&&ag(e,t),i&&(Xh(r).size>0||Xh(n).size>0)&&$h(n,r,a)}ix+=t}if(!yx&&C_(r)){let e=r.getLatest();if(e.__cachedText!==ix){let t=e.getWritable();t.__cachedText=ix,r=t}}return _x.$decorateDOM(r,n,a,nx),Lh(r),a}function ag(e,t){let n=nx._pendingDecorators,r=nx._decorators;if(n===null){if(r[e]===t)return;n=lre(nx)}n[e]=t}function og(e){let t=e.nextSibling;return t!==null&&t===nx._blockCursorElement&&(t=t.nextSibling),t}function sg(e,t){let n=new Set;for(let r=t;r{for(let n of t){let t=px.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(lx.keys()),t(ux),e}();let o=new Map;return gx=o,ig(`root`,null),nx=void 0,rx=void 0,lx=void 0,ux=void 0,dx=void 0,fx=void 0,px=void 0,tx=void 0,mx=void 0,hx=void 0,gx=void 0,_x=zS,o}function cg(e){let t=mx.get(e);return t===void 0&&dh(75,e),t}function lg(e){return{type:e}}function Wte(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function Gte(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function ug(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=g_(),u;if(a!==void 0)u=a;else{let e=Tv(hv(l));u=e===null?null:Mv(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Hg(c)||(!i&&(!fb||l._inputState.lastBeforeInputInsertTextTimeStamp1||(i||!fb)&&p!==null&&!c.isComposing()&&d!==Kv(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=z_(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Hg(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function dg(e,t){return V_(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function fg(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=Mv(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,dg(r,i)&&dg(a,o)&&!s.postDeleteSelectionToRestore)||x_(t,()=>{if(!n)return void Q_(null);if(!F_(t,r,a))return;let c=n_();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),Q_(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=hv(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=Z_(),g=!1===t.isComposing()&&h.getTextContent()===``;if(o_g(e),0)}function yg(e,t){let n=Fv(e);if(Lv(n)&&ey(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=Pv(r.ownerDocument);return i!==null&&r.contains(i)&&ey(i,t)}function Kte(e){let t=e.inputType,n=hg(e),r=g_(),i=r._inputState,a=n_();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(_g(i),e.preventDefault(),Q(a)&&!a.isCollapsed()){let e=a.isBackward()?a.anchor:a.focus;a.anchor.set(e.key,e.offset,e.type),a.focus.set(e.key,e.offset,e.type)}return!0}if(t===`deleteContentBackward`){if(a===null){let e=r_();if(!Q(e))return!0;Q_(e.clone())}if(Q(a)){let t=a.anchor.key===a.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t{x_(r,()=>{K_(null)})},30),Q(a)){let e=a.anchor.getNode();e.markDirty(),Hg(e)||dh(142),mg(a,e)}}else{if(K_(null),pb&&n!==null&&!n.collapsed&&(a.applyDOMRange(n),!a.isCollapsed()))return e.preventDefault(),a.removeText(),!0;e.preventDefault();let o=a.anchor.getNode(),s=o.getTextContent(),c=o.canInsertTextAfter(),l=a.anchor.offset===0&&a.focus.offset===s.length,u=_b&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!S_(yre(a.anchor,!0))),!u){cv(r,Ox,!0);let e=n_();_b&&Q(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!Q(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&tv(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||C_(a.anchor.getNode())||n===null||a.applyDOMRange(n),i.unprocessedBeforeInputData=null;let s=a.anchor,c=a.focus,l=s.getNode(),u=c.getNode();if(t===`insertText`||t===`insertTranspose`){if(o===` `)e.preventDefault(),cv(r,kx,!1);else if(o===kb)e.preventDefault(),cv(r,Ax);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&ug(a,n,o,e.timeStamp,!0)?(e.preventDefault(),cv(r,jx,o),gg(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:cv(r,jx,e),gg((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;K_(null),t||cv(r,jx,e),bg(n);break}case`insertLineBreak`:K_(null),cv(r,kx,!1);break;case`insertParagraph`:K_(null),i.isInsertLineBreak&&!pb?(i.isInsertLineBreak=!1,cv(r,kx,!1)):cv(r,Ax);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:cv(r,Mx,e);break;case`deleteByComposition`:(function(e,t){return e!==t||$(e)||$(t)||!z_(e)||!z_(t)})(l,u)&&cv(r,Nx,e);break;case`deleteByDrag`:fv(Yre),cv(r,Nx,e);break;case`deleteByCut`:cv(r,Nx,e);break;case`deleteContent`:cv(r,Ox,!1);break;case`deleteWordBackward`:cv(r,Px,!0);break;case`deleteWordForward`:cv(r,Px,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:cv(r,Fx,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:cv(r,Fx,!1);break;case`formatStrikeThrough`:cv(r,Ix,`strikethrough`);break;case`formatBold`:cv(r,Ix,`bold`);break;case`formatItalic`:cv(r,Ix,`italic`);break;case`formatUnderline`:cv(r,Ix,`underline`);break;case`historyUndo`:cv(r,Lx);break;case`historyRedo`:cv(r,Rx)}return!0}function qte(e){let t=g_(),n=t._inputState,r=n_(),i=e.data,a=hg(e),o=!1;if(i!=null&&Q(r)){let s=Tv(hv(t)),c=s===null?null:Mv(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&Hg(u)&&B_(u);if(!l&&!d&&ug(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=xg(t,i);if(n.compositionPhase=`idle`,e)return fv(vS),dre(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;fb&&!r.isCollapsed()&&Hg(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===mre(c.anchorNode)||cv(t,jx,i);let f=i.length;db&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),_b&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,K_(null))}}return o||(tv(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(xg(t,i||void 0),fv(`composition-end`),n.compositionPhase=`idle`)),dre(),!0}function Jte(e){let t=g_(),n=t._inputState,r=n_();if(Q(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(K_(i.key),fv(`composition-start`),e.timeStamp{xg(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return av(e,`ArrowRight`,{shiftKey:`any`})}(e))cv(t,Bx,e);else if(function(e){return av(e,`ArrowRight`,{...US,shiftKey:`any`})}(e))cv(t,Vx,e);else if(function(e){return av(e,`ArrowLeft`,{shiftKey:`any`})}(e))cv(t,Hx,e);else if(function(e){return av(e,`ArrowLeft`,{...US,shiftKey:`any`})}(e))cv(t,Ux,e);else if(function(e){return av(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))cv(t,Wx,e);else if(function(e){return av(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))cv(t,Gx,e);else if(function(e){return av(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,cv(t,Kx,e);else if(function(e){return e.key===` `}(e))cv(t,qx,e);else if(function(e){return ub&&av(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,cv(t,kx,!0);else if(function(e){return av(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,cv(t,Kx,e);else if(function(e){return av(e,`Backspace`,{shiftKey:`any`})||ub&&av(e,`h`,{ctrlKey:!0})}(e))gre(e)?cv(t,Jx,e)&&vg(n):(e.preventDefault(),cv(t,Ox,!0));else if(function(e){return e.key===`Escape`}(e))cv(t,Yx,e);else if(function(e){return av(e,`Delete`,{})||ub&&av(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?cv(t,Xx,e):(e.preventDefault(),cv(t,Ox,!1));else if(function(e){return av(e,`Backspace`,WS)}(e))e.preventDefault(),cv(t,Px,!0);else if(function(e){return av(e,`Delete`,WS)}(e))e.preventDefault(),cv(t,Px,!1);else if(function(e){return ub&&av(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),cv(t,Fx,!0);else if(function(e){return ub&&(av(e,`Delete`,{metaKey:!0})||av(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),cv(t,Fx,!1);else if(function(e){return av(e,`b`,US)}(e))e.preventDefault(),cv(t,Ix,`bold`);else if(function(e){return av(e,`u`,US)}(e))e.preventDefault(),cv(t,Ix,`underline`);else if(function(e){return av(e,`i`,US)}(e))e.preventDefault(),cv(t,Ix,`italic`);else if(function(e){return av(e,`Tab`,{shiftKey:`any`})}(e))cv(t,Zx,e);else if(function(e){return av(e,`z`,US)}(e))e.preventDefault(),cv(t,Lx);else if(function(e){return ub?av(e,`z`,{metaKey:!0,shiftKey:!0}):av(e,`y`,{ctrlKey:!0})||av(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),cv(t,Rx);else{let r=t._editorState._selection;(function(e){return av(e,`a`,US)})(e)?(e.preventDefault(),cv(t,oS,e)&&vg(n)):r===null||Q(r)||(function(e){return av(e,`c`,US)}(e)?(e.preventDefault(),cv(t,iS,e)):function(e){return av(e,`x`,US)}(e)&&(e.preventDefault(),cv(t,aS,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(Kre,e),!0}function Sg(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}function Cg(e){let t=Cre(e.target);if(t===null)return;let n=dv(e.target),r=null,i=null,a=n===null?void 0:fS.get(n);if(n!==null){if(a!==void 0){let e=a.editors,n=a.hasShadowEditor;if(n===void 0){n=!1;for(let t of e)if(t._rootElement!==null&&Ev(t._rootElement.getRootNode())){n=!0;break}a.hasShadowEditor=n}if(n){let n=null,a=null;for(let o of e){let e=o._rootElement;if(e===null)continue;let s=Mv(t,e).anchorNode;if(s!==null&&L_(s)===o){if(Ev(e.getRootNode())){r=o,i=s;break}n===null&&(n=o,a=s)}}r===null&&n!==null&&(r=n,i=a)}else{let e=t.anchorNode;e===null||Lv(e)&&e.shadowRoot!==null||(r=L_(e),r!==null&&(i=e))}}if(r===null){let e=Pv(n);r=e===null?null:L_(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;x_(r,()=>{let n=r_(),a=i??Mv(t,r._rootElement).anchorNode;(Lv(a)||V_(a))&&Q_(t_(n,t,r,e))})}let o=ev(r),s=o[o.length-1],c=s._key,l=pS.get(c),u=l||s;u!==r&&fg(t,u,!1),fg(t,r,!0),r===s?l&&pS.delete(c):pS.set(c,r)}function wg(e){e._lexicalHandled=!0}function Tg(e){return!0===e._lexicalHandled}function Zte(e){let t=dS.get(e);if(t===void 0)return;let n=fS.get(t);if(n===void 0)return;dS.delete(e);let r=R_(e);I_(r)?(function(e){if(e._parentEditor!==null){let t=ev(e),n=t[t.length-1]._key;pS.get(n)===e&&pS.delete(n)}else pS.delete(e._key)}(r),n.editors.delete(r),n.hasShadowEditor=void 0,e.__lexicalEditor=null):r&&dh(198);let i=Sg(e);for(let e=0;e=0&&r.slice(i).toLowerCase()===Xre?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function jg(e,t,n=``){if(t===n)return;let r=Ag(n),i=Ag(t);for(let t in i)delete r[t],Qte(e,t,i[t]);for(let t in r)e.removeProperty(t)}function Mg(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function Ng(e,t){return 1&t?`strong`:2&t?`em`:`span`}function Pg(e,t,n,r,i){let a=r.classList,o=ov(i,`base`);o!==void 0&&a.add(...o),o=ov(i,`underlineStrikethrough`);let s=!1,c=8&t&&4&t;o!==void 0&&(8&n&&4&n?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in Nb){let r=Nb[e];if(o=ov(i,e),o!==void 0){if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}}function Fg(e,t,n){let r=n.isComposing(),i=e+(r?Ob:``),a=Uv(),o=Wv(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild(Av().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i){if(r||db){let[e,t,n]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=zg(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:Vg(n)}}function zg(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,Lv(n)){let e=n.style.display;if(e===``&&!Bv(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(V_(n))return n;if(n.nodeName===`BR`)return null}}function Bg(e){let t=Zre[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Ug(e.style,t),node:null}}function Vg(e=``){return xv(new yS(e))}function Hg(e){return e instanceof yS}function Ug(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>Hg(e)||Rg(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}function Wg(){return xv(new xS)}function Gg(e){return e instanceof xS}function Kg(e,t,n){return new Qre(e,t,n)}function qg(e,t){let n=t.__key,r=e.offset,i=`element`;if(Hg(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!$(t)){let e=t.getNextSibling();if(Hg(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function rne(e,t){if($(t)){let n=t.getLastDescendant();$(n)||Hg(n)?qg(e,n):qg(e,t)}else qg(e,t)}function ine(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=Vg();if(o.setFormat(n),o.setStyle(r),A_(a))a.splice(0,0,[o]);else if(a!==null){let e=yv(i)?k_().append(o):o;a.insertBefore(e)}else if(yv(i)){let e=i.getLastChild();$(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(k_().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}function ane(e,t,n,r){let i=e.anchor.getNode();Hg(i)||dh(398);let a=e.anchor.offset,o=Vg(t);o.setFormat(n),o.setStyle(r);let s=i.getParentOrThrow();if(a===0)s.isInline()&&!i.__prev?s.insertBefore(o):i.insertBefore(o,!1);else if(a===i.getTextContentSize())s.isInline()&&!i.__next?s.insertAfter(o):i.insertAfter(o,!1);else{let[e]=i.splitText(a);e.insertAfter(o,!1)}i.getTextContent()===``&&i.isAttached()&&i.remove(),o.selectEnd(),o.isComposing()&&e.anchor.type===`text`&&e.anchor.set(e.anchor.key,e.anchor.offset-t.length,e.anchor.type)}function one(){let e=Z_();if(e.isEmpty()){let t=k_();e.append(t),t.select()}}function Q(e){return e instanceof CS}function Jg(e){return e instanceof SS}function sne(e,t){if(Jg(e)){for(let n of e.getNodes())Rg(n)&&n.setFormat(t(n.getFormat()));return}if(e.isCollapsed())return e.setFormat(t(e.format)),void K_(null);let n=[];for(let r of e.getNodes())Hg(r)?n.push(r):$(r)?r.setTextFormat(t(r.getTextFormat())):Rg(r)&&r.setFormat(t(r.getFormat()));let r=n.length;if(r===0)return e.setFormat(t(e.format)),void K_(null);let i=e.anchor,a=e.focus,o=e.isBackward(),s=o?a:i,c=o?i:a,l=0,u=n[0],d=s.type===`element`?0:s.offset;if(s.type===`text`&&d===u.getTextContentSize()&&(l=1,u=n[1],d=0),u==null)return;let f=r-1,p=n[f],m=c.type===`text`?c.offset:p.getTextContentSize();if(u.is(p)){if(d===m)return;let n=t(u.getFormat());if(B_(u)||d===0&&m===u.getTextContentSize())u.setFormat(n);else{let e=u.splitText(d,m),t=d===0?e[0]:e[1];t.setFormat(n),s.type===`text`&&s.set(t.__key,0,`text`),c.type===`text`&&c.set(t.__key,m-d,`text`)}e.format=n;return}d===0||B_(u)||([,u]=u.splitText(d),d=0);let h=t(u.getFormat());u.setFormat(h);let g=t(p.getFormat());m>0&&(m===p.getTextContentSize()||B_(p)||([p]=p.splitText(m)),p.setFormat(g));for(let e=l+1;e{for(let[t,r]of n)e=U_(e,t,r?Nb[t]:0);return e})}function lne(e,t,n=null){let r=n===null&&Q(e)?U_(e.format,t,null):n;sne(e,e=>U_(e,t,r))}function une(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Yg(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[une(n),une(r)]}function dne(e,t){for(let n=t;n;n=n.getParent()){if($(n)){if(n.collapseAtStart(e))return!0;if(yv(n))break}if(n.getPreviousSibling())break}return!1}function fne(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}function pne(e,t,n,r){e.modify(t,n,r)}function mne(e,t,n){let r=e.getNodes(),i=r.filter(e=>pv(e,n));if(i.length===0||i.length===r.length)return!1;let a=t?i[0]:i[i.length-1],o=$(a)?a:a.getParentOrThrow();return t?o.selectStart():o.selectEnd(),!0}function Xg(e,t,n){if(f_(e,`extend`,t,n))return;let r=g_(),i=Tv(hv(r));if(!i||typeof i.modify!=`function`)return;let a=r._blockCursorElement,o=r._rootElement,s=e.anchor,c=e.focus.getNode();o===null||a===null||!$(c)||c.isInline()||c.canBeEmpty()||wv(a,r,o);let l=e=>{let t=e.getNode(),n=r.getElementByKey(e.key);return n!==null&&e.type===`text`&&Hg(t)?Kv(t,n,r):n},u=s.getNode(),d=l(s);if(d===null)return;let f=s.offset,p=e.isCollapsed(),m=e.focus,h=p?d:l(m);if(h===null)return;let g=m.offset;if(o_(i,h,g,h,g),pne(i,`move`,t?`backward`:`forward`,n),i.rangeCount===0)return;let _=jv(i,o)||i.getRangeAt(0),v=_.startContainer,y=_.startOffset;if(p&&n===`character`&&s.type===`text`&&Hg(u)&&u.isUnmergeable()&&f===(t?0:u.getTextContentSize())){let n=Ty(u,t?`previous`:`next`).getNodeAtCaret();if(Hg(n)){let r=t?n.getTextContentSize()-1:1;e.focus.set(n.__key,r,`text`),e.dirty=!0;return}}if(p&&n===`character`&&s.type===`text`){let n=t?0:u.getTextContentSize(),r=v===d?y:f===n?-1:n;if(r>=0)return void(r!==f&&(e.focus.set(s.key,r,`text`),e.dirty=!0))}let[b,x,S,C]=t?[v,y,d,f]:[d,f,v,y],w=C_(u)?u:_v(u);e.applyDOMRange({collapsed:!1,endContainer:S,endOffset:C,startContainer:b,startOffset:x}),e.dirty=!0,!mne(e,t,w)&&t&&fne(e),n===`lineboundary`&&f_(e,`extend`,t,n,`decorators`)}function hne(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;en||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function gne(e,t,n,r){let i,a=t,o=!1;if(Lv(e)){let s=!1,c=e.childNodes,l=c.length,u=r._blockCursorElement;a===l&&l>0&&(s=!0,a=l-1),Y_(e,r)!==void 0||ey(e,r)||(o=!0);let d=c[a],f=!1;if(d===u)d=c[a+1],f=!0;else if(u!==null){let n=u.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&a--}if(i=$_(d),Hg(i))a=Dy(i,s?`next`:`previous`);else{let c=$_(e);if(c===null)return null;if($(c)){let o=r.getElementByKey(c.getKey());o===null&&dh(214);let l=Gv(c,o,r);[c,a]=l.resolveChildIndex(c,o,e,t),$(c)||dh(215),s&&a>=c.getChildrenSize()&&(a=Math.max(0,c.getChildrenSize()-1));let u=c.getChildAtIndex(a);if($(u)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){let e=s?u.getLastDescendant():u.getFirstDescendant();e===null?c=u:(u=e,c=$(u)?u:u.getParentOrThrow()),a=0}Hg(u)?(i=u,c=null,a=Dy(u,s?`next`:`previous`)):u!==c&&s&&!f&&($(c)||dh(216),a=Math.min(c.getChildrenSize(),a+1))}else{let n=uy(c),i=n===null?c:n,o=i.getIndexWithinParent(),s=r.getElementByKey(c.getKey()),l=`after`;if(s!==null&&$_(e)===c){let n=Gv(c,s,r);n.element===s?t===0&&S_(c)&&(l=`before`):l=n.resolveLeafPosition(s,e,t)}a=l===`before`?o:o+1,c=i.getParentOrThrow()}if($(c))return[Kg(c.__key,a,`element`),o]}}else i=$_(e);return Hg(i)?[Kg(i.__key,Dy(i,a,`clamp`),`text`),o]:null}function _ne(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&$(a)&&a.isInline()){let t=a.getPreviousSibling();Hg(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else $(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):Hg(r)&&!i.isUnmergeable()&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&$(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&$(a)&&a.isInline()&&!a.canInsertTextAfter()&&a.getTextContentSize()>1){let t=a.getNextSibling();Hg(t)&&e.set(t.__key,0,`text`)}}}function Zg(e){let t=J_(e.key);return t===null?null:dy(t)}function vne(e,t,n){let r=Zg(e),i=Zg(t);if(r===i||r!==null&&i!==null&&r.is(i))return!1;let a=n(r,i);if(r!==null)return $(r)?t.set(r.getKey(),a?r.getChildrenSize():0,`element`):t.set(r.getKey(),a?r.getTextContentSize():0,`text`),!0;let o=uy(i);if(o===null)return!1;let s=o.getParent();if(s===null)return!1;let c=o.getIndexWithinParent();return t.set(s.getKey(),a?c+1:c,`element`),!0}function yne(e){let t=vne(e.anchor,e.focus,(t,n)=>function(e,t,n,r){if(n!==null&&r!==null){let e=uy(n),t=uy(r);if(e!==null&&e.is(t)){for(let t of fy(e).values()){if(t===n.getKey())return!0;if(t===r.getKey())return!1}return!0}return e===null||t===null||e.isBefore(t)}if(n!==null){let e=uy(n),r=J_(t.key);return e===null||r===null||!(!e.is(r)&&!e.isParentOf(r))||e.isBefore(r)}let i=uy(r),a=J_(e.key);return i!==null&&a!==null&&!i.is(a)&&!i.isParentOf(a)&&a.isBefore(i)}(e.anchor,e.focus,t,n));return t&&(e.dirty=!0),t}function bne(e,t,n,r,i,a){if(e===null||n===null||!F_(i,e,n))return null;let o=gne(e,t,Q(a)?a.anchor:null,i);if(o===null)return null;let s=gne(n,r,Q(a)?a.focus:null,i);if(s===null)return null;let[c,l]=o,[u,d]=s;if(c.type===`element`&&u.type===`element`){let t=$_(e),r=$_(n);if(S_(t)&&S_(r))return null}let f=i._slotsUsed&&vne(c,u,()=>(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(e,t){if(e.type===`text`&&t.type===`text`){let n=e.isBefore(t),r=e.is(t);_ne(e,n,r),_ne(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}(c,u),[c,u,l||d||f]}function Qg(e){return $(e)&&!e.isInline()}function xne(e,t,n,r,i,a){let o=h_(),s=new CS(Kg(e,t,i),Kg(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function $g(){let e=Kg(`root`,0,`element`),t=Kg(`root`,0,`element`);return new CS(e,t,0,``)}function e_(){return new SS(new Set)}function t_(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!qb&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(Q(e)&&!c)return e.clone();{if(t===null)return null;let r=Mv(t,n._rootElement);if(l=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,(s||o===void 0)&&Q(e)&&!F_(n,l,u))return e.clone()}let p=bne(l,d,u,f,n,e);if(p===null)return null;let[m,h,g]=p,_=0,v=``;if(Q(e)){let t=e.anchor;if(m.key===t.key)_=e.format,v=e.style;else{let e=m.getNode();Hg(e)?(_=e.getFormat(),v=e.getStyle()):$(e)&&(_=e.getTextFormat(),v=e.getTextStyle())}}let y=new CS(m,h,_,v);return g&&(y.dirty=!0),y}function n_(){return h_()._selection}function r_(){return g_()._editorState._selection}function i_(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n0||n0||n=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Hg(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if($(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Hg(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if($(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(Hg(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function a_(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,Hg(i)?s=`text`:$(i)&&(s=`element`)):(a=r.__key,Hg(r)?(o=r.getTextContentSize(),s=`text`):$(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function Cne(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function o_(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function wne(e,t,n){let r=lv(e,t.getKey());if($(t)){let i=Gv(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function Tne(e,t,n,r,i,a){let o=a.getRootNode(),s=H_(o)||Ev(o)?Pv(o):null;if(i.has(`collaboration`)&&s!==a||s!==null&&P_(s,s))return;let c=Mv(r,a),l;if(!Q(t))return void(e!==null&&F_(n,c.anchorNode,c.focusNode)&&r.removeAllRanges());let u=t.anchor,d=t.focus,f=u.getNode(),p=d.getNode(),[m,h]=wne(n,f,u.offset),[g,_]=wne(n,p,d.offset),v=t.format,y=t.style,b=t.isCollapsed(),x=m,S=g,C=!1;if(u.type===`text`?(x=Hg(f)?Kv(f,m,n):null,C=f.getFormat()!==v||f.getStyle()!==y):Q(e)&&e.anchor.type===`text`&&(C=!0),d.type===`text`&&(S=Hg(p)?Kv(p,g,n):null),x!==null&&S!==null){if(b&&(e===null||C||Q(e)&&(e.format!==v||e.style!==y))&&function(e,t,n,r,i,a){e._inputState.collapsedSelectionFormat={format:t,key:i,offset:r,style:n,timeStamp:a}}(n,v,y,h,u.key,performance.now()),(r.type!==`Range`||!b)&&c.anchorOffset===h&&c.focusOffset===_&&c.anchorNode===x&&c.focusNode===S){if(s===null||!a.contains(s)){let e=s===null?null:L_(s);e!==null&&e!==n||i.has(`skip-selection-focus`)||a.focus({preventScroll:!0})}if(u.type!==`element`)return}if(o_(r,x,h,S,_),db&&t.isCollapsed()&&a!==null&&!i.has(`skip-selection-focus`)){let e=Nv(a);if(e===null||!a.contains(e)){let e=Pv(a.ownerDocument),t=e===null?null:L_(e);t!==null&&t!==n||a.focus({preventScroll:!0})}}if(!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===Nv(a)){let e=Q(t)&&t.anchor.type===`element`?x.childNodes[h]||null:(l===void 0&&(l=wre(r,a)),l);if(e!==null){let t;if(V_(e)){let n=e.ownerDocument.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=dv(n),i=mv(r);if(r===null||i===null)return;let a=n.getBoundingClientRect();if(t.bottoml&&(d=s-l),d!==0){if(t)i.scrollBy(0,d);else{let e=u.scrollTop;u.scrollTop+=d;let t=u.scrollTop-e;o-=t,s-=t}}if(t)break;u=uv(u)}})(n,t,a)}}(function(e){e._inputState.isSelectionChangeFromDOMUpdate=!0})(n)}}function s_(e){let t=n_()||r_();t===null&&(t=Z_().selectEnd()),t.insertNodes(e)}function c_(e,t){for(let n of e.split(/(\r?\n|\t)/))n===` `||n===`\r `?t.linebreak():n===` `?t.tab():n!==``&&t.text(n)}function Ene(e){let t=[];return c_(e,{linebreak:()=>t.push(E_()),tab:()=>t.push(Wg()),text:e=>t.push(Vg(e))}),t}function Dne(){let e=n_();return e===null?``:e.getTextContent()}function l_(e){let t=[];for(let n of e)D_(n)||(!$(n)&&!S_(n)||n.isInline()?t.push(n):$(n)&&t.push(...l_(n.getChildren())));return t}function u_(e){let t=e;e.isCollapsed()||t.removeText();let n=n_();Q(n)&&(t=n),Q(t)||dh(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!Hv(i)&&ly(i)===null;){let e=i;if([i,a]=One(i,a),e.is(i))break}return a}function One(e,t){let n=e.getParent();if(!n){let e=k_();return Z_().append(e),e.select(),[Z_(),0]}if(Hg(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!$(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new CS(Kg(e.__key,t,`element`),Kg(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function kne(e){return D_(e)||gv(e)||Hg(e)||e.isParentRequired()}function d_(e){let t=k_(),n=null;for(let r=0;r99&&dh(14)}function h_(){return wS===null&&dh(195,Nne()),wS}function jne(e){h_()!==null&&TS===null&&(TS=e),TS!==e&&fh(378)}function g_(){return TS===null&&dh(337,Nne()),TS}function Mne(){g_()._dirtyType=2}function Nne(){let e=0,t=new Set,n=BS.version;if(typeof window<`u`)for(let r of Ov(document)){let i=R_(r);if(I_(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function Pne(){return TS}function Fne(e,t,n){let r=t.__type,i=nre(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e0&&Vne(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=wS,u=ES,d=TS,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){TS=e,wS=n,ES=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Ute(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),DS)throw t;Qne(e,null,r,n),xh(e),e._dirtyType=2,DS=!0,v_(e,a),DS=!1;return}finally{p.observe(r,jS),e._updating=f,wS=l,ES=u,TS=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set),e._updateTags=new Set,function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=lre(e)),delete r[a])}(e,n);let y=i?null:Tv(hv(e));if(e._editable&&y!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!v.has(`skip-dom-selection`)){TS=e,wS=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&wv(t,e,r),Tne(o,s,e,y,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(Q(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(Nv(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())Cv(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&Cv(t)){let n=t.getPreviousSibling();(n===null||Cv(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=Gv(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=Av().createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=ib(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&wv(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,jS),TS=d,wS=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e{kS.delete(e),e._cascadeCount=0},0))}(e),e._cascadeCount++>99)return e._updates=[],e._cascadeCount=0,void e._onWarn(Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${e._config.namespace}`));let n=t.shift();if(n){let[t,r]=n;b_(e,t,r)}})(e)})(e,t)}finally{OS=n}}function y_(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=t._listeners[e],i=Array.from(n);for(let[e,t]of i){t&&t();let i=e(...r);n.has(e)?n.set(e,i):i&&i()}}finally{t._updating=i}}function Bne(e,t,n,r){let i=ev(e),a;if(!OS)for(let e=0;e=0;e--)for(let o=0;o0&&s._updating){a=s;break}let c=s._commands.get(t);if(c!==void 0){let t=c[e];if(t.size>0){let e=!1;if(x_(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{Bne(a,t,n,r)}),!1}function Vne(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);Hg(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Nh(r),r!==void 0&&Ine(r,a)&&Fne(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){AS++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&Ine(c,a)&&Fne(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,AS++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),Hne(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||($(t)&&_h(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(sy(t)&&t.__slots!==null&&_h(t,e,i,a,o,n),i.has(e)||n.delete(e),o.push(e))}for(let e of o)a.delete(e);let s=g_(),c=s._compositionKey;c===null||a.has(c)||(s._compositionKey=null)}(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(Q(i)){e._slotsUsed&&yne(i);let t=c._nodeMap,n=i.anchor.key,r=i.focus.key;t.get(n)!==void 0&&t.get(r)!==void 0||dh(19)}else Jg(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),v_(e);return}finally{wS=u,ES=d,TS=f,e._updating=p,AS=0}e._dirtyType!==0||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(c,e)?c._flushSync?(c._flushSync=!1,v_(e)):l&&tie(()=>{v_(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function x_(e,t,n){TS===e&&n===void 0?p_()?b_(e,t,n):t():b_(e,t,n)}function Une(e){if(yv(e)){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}function $(e){return e instanceof MS}function Wne(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}function S_(e){return e instanceof NS}function C_(e){return e instanceof PS}function Gne(e){return new FS(gh(e._nodeMap),null,e._slotsUsed)}function w_(){return new FS(new Map([[`root`,new PS]]),null,!1)}function T_(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&dh(130,n.name),$(e)){let r=t.children;Array.isArray(r)||dh(59,n.name);let i=e.getChildren();for(let e=0;e0){let i={};for(let t of r){let r=my(e,t);r===null&&dh(366,n.name,t),i[t]=T_(r)}t.$slots=i}return t}function Kne(e){return e instanceof FS}function qne(e){return{node:E_()}}function E_(){return xv(new LS)}function D_(e){return e instanceof LS}function Jne(e){let t=e.parentElement;if(t!==null&&Vv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&O_(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&O_(n))return!0}}return!1}function Yne(e){let t=e.parentElement;if(t!==null&&Vv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&O_(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&O_(r))return!0}return!1}function O_(e){return V_(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function Xne(e){let t=k_();if(Zv(t,e),Yv(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in Fb&&t.setFormat(n)}return Xv(t,e),{node:t}}function k_(){return xv(new RS)}function A_(e){return e instanceof RS}function Zne(e){console.warn(e)}function Qne(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=w_(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(e._updateTags=new Set,e._updates=[],e._cascadeCount=0),e._blockCursorElement=null,e._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(e._inputState.handledSelectionCommandTimeoutId),e._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};let o=e._observer;o!==null&&(o.disconnect(),e._observer=null),t!==null&&(t.textContent=``,function(e,t){let n=`__lexicalKey_${t._key}`;delete e[n]}(t,e)),n!==null&&(n.textContent=``,a.set(`root`,n),cre(n,e,`root`))}function $ne(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of ry(e)){let e=r.transform;if(!n.has(e)){n.add(e);let i=r.transform();i&&t.add(i)}if(i){let e=i.$transform;e&&t.add(e)}}return t}function ere(e){let t=e||{},n=Pne(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=w_(),s=t.namespace||(i===null?pre():i._config.namespace),c=t.editorState,l=[PS,yS,LS,xS,RS,IS,...t.nodes||[]],{onError:u,onWarn:d,html:f}=t,p=t.editable===void 0||t.editable,m;if(e===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let e=0;e`;try{r=JSON.parse(Ub)}catch{}dh(365,String(e-l.length+(t.nodes?t.nodes.length:0)),typeof n==`function`?`${n.name}${typeof n.getType==`function`?` (type ${String(n.getType())})`:``}`:String(n),String(r))}ny(n);let a=n.getType(),o=$ne(n);m.set(a,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:Bte(l[e]),transforms:o})}}let h=new BS(o,i,m,{disableEvents:a,dom:{...zS,...e&&e.dom},namespace:s,theme:r},u||console.error,d||Zne,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}(m,f?f.import:void 0),p,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),function(e){e.registerCommand(wx,Kte,0),e.registerCommand(Tx,qte,0),e.registerCommand(Ex,Jte,0),e.registerCommand(Dx,Yte,0),e.registerCommand(zx,Xte,0)}(h),h}function tre(e,t){let n=e.get(t);e.delete(t),n&&n()}function j_(e,t,n){return e.set(t,n),tre.bind(null,e,t)}function M_(e){VS=e}function nre(e,t){let n=N_(e,t);return n===void 0&&dh(30,t),n}function N_(e,t){return e._nodes.get(t)}function P_(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return H_(t)||Ev(t)?Pv(t):null})():t;if(!Lv(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=X_(n),i=n.nodeName;return kg(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&R_(n)==null)}function F_(e,t,n){let r=e.getRootElement();if(!r)return!1;try{if(!t||!r.contains(t)||!r.contains(n))return!1}catch{return!1}return L_(t)===e&&e.read(`latest`,()=>!P_(t))}function I_(e){return e instanceof BS}function L_(e){let t=e;for(;t!=null;){let e=R_(t);if(I_(e))return e;t=uv(t)}return null}function R_(e){return e?e.__lexicalEditor:null}function rre(e){return jb.test(e)?`rtl`:Mb.test(e)?`ltr`:null}function z_(e){return Gg(e)||e.isToken()}function B_(e){return z_(e)||e.isSegmented()}function V_(e){return Rv(e)&&e.nodeType===3}function H_(e){return Rv(e)&&e.nodeType===9}function ire(e){let t=e;for(;t!=null;){if(V_(t))return t;t=t.firstChild}return null}function U_(e,t,n){let r=Nb[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~Nb.superscript:t===`superscript`?i&=~Nb.subscript:t===`lowercase`?(i&=~Nb.uppercase,i&=~Nb.capitalize):t===`uppercase`?(i&=~Nb.lowercase,i&=~Nb.capitalize):t===`capitalize`&&(i&=~Nb.lowercase,i&=~Nb.uppercase),i}function are(e){return Hg(e)||D_(e)||S_(e)}function ore(e,t){let n=function(){let e=VS;return VS=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);m_(),Ane();let r=g_(),i=h_(),a=``+eie++;i._nodeMap.set(a,e),$(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function W_(e){ly(e)!==null&&dh(380,e.__key,String(ly(e)));let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function G_(e){Ane(),Og(e)&&dh(323,e.__key,e.__type);let t=e.getLatest(),n=t.__parent===null?cy(t)?t.__slotHost:null:t.__parent,r=h_(),i=g_(),a=r._nodeMap,o=i._dirtyElements;n!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent===null?cy(e)?e.__slotHost:null:e.__parent}}(n,a,o);let s=t.__key;i._dirtyType===0&&(i._dirtyType=1),$(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function K_(e){m_();let t=g_(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=J_(n);e!==null&&e.getWritable()}if(e!==null){let t=J_(e);t!==null&&t.getWritable()}}}function q_(){return p_()?null:g_()._compositionKey}function J_(e,t){let n=(t||h_())._nodeMap.get(e);return n===void 0?null:n}function sre(e,t){let n=Y_(e,g_());return n===void 0?null:J_(n,t)}function cre(e,t,n){e[`__lexicalKey_${t._key}`]=n}function Y_(e,t){return e[`__lexicalKey_${t._key}`]}function X_(e,t){let n=e;for(;n!=null;){let e=sre(n,t);if(e!==null)return e;n=uv(n)}return null}function lre(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function ure(e){return e.read(()=>Z_().getTextContent())}function Z_(){return h_()._nodeMap.get(`root`)}function Q_(e){m_();let t=h_();e!==null&&(e.dirty=!0,e.setCachedNodes(null),Q(e)&&g_()._slotsUsed&&yne(e)),t._selection=e}function dre(){m_(),bh(g_())}function $_(e){let t=function(e,t){let n=e;for(;n!=null;){let e=Y_(n,t);if(e!==void 0)return e;n=uv(n)}return null}(e,g_());return t===null?null:J_(t)}function fre(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ev(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}function pre(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function mre(e){return V_(e)?e.nodeValue:null}function tv(e,t,n){let r=Tv(hv(t));if(r===null)return;let i=Mv(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=mre(a),r=X_(a);if(t!==null&&Hg(r)){if((t===Ob||t===Ab)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&nv(r,t,o,s,e)}}}function nv(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing();if(a.isToken()&&o)return;let s=t;if((o||i)&&(t.endsWith(Ob)&&(s=t.slice(0,-Ob.length)),i)){let e=Ab,t;for(;(t=s.indexOf(e))!==-1;)s=s.slice(0,t)+s.slice(t+e.length),n!==null&&n>t&&(n=Math.max(t,n-e.length)),r!==null&&r>t&&(r=Math.max(t,r-e.length))}let c=a.getTextContent();if(i||s!==c){let t=n_();if(s===``){if(K_(null),hb||pb||vb)a.remove();else{let e=g_();rv(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let i=a.getParent(),c=r_(),l=a.getTextContentSize(),u=q_(),d=a.getKey();if(a.isToken()&&!o||u!==null&&d===u&&!o||Q(c)&&(i!==null&&!i.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!a.canInsertTextBefore()&&!o||c.focus.key===e.__key&&c.focus.offset===l&&!a.canInsertTextAfter()&&!o))return void a.markDirty();if(!Q(t)||n===null||r===null)return void rv(a,s,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=Vg(a.getTextContent());a.replace(e),a=e}rv(a,s,t)}}}function rv(e,t,n){if(e.setTextContent(t),Q(n)){let t=e.getKey(),r=!1;for(let i of[`anchor`,`focus`]){let a=n[i];a.type===`text`&&a.key===t&&(a.offset=Dy(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function iv(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function hre(e,t){return iv(e,t,`altKey`)&&iv(e,t,`ctrlKey`)&&iv(e,t,`shiftKey`)&&iv(e,t,`metaKey`)}function av(e,t,n){if(!hre(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||e.key.length===1&&e.key.charCodeAt(0)<=127)return!1;if(e.code.startsWith(`Digit`)&&/^\d$/.test(t))return e.code===`Digit${t}`;let r=`Key`+t.toUpperCase();return e.code===r}function gre(e){return e.key===`Backspace`}function _re(e){let t=Z_();if(Q(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(C_(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Ph(e),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();if(a===null)return $(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),Ph(e)),e;let o=a;return t.set(o.getKey(),0,`element`),n.set(o.getKey(),o.getChildrenSize(),`element`),Ph(e),e}{let e=t.select(0,t.getChildrenSize());return Q_(Ph(e)),e}}function ov(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=ib(i);return n[t]=e,e}return i}function sv(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&dh(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function vre(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function yre(e,t){let n=e.offset;if(e.type===`element`)return vre(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?vre(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function bre(e){let t=hv(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function cv(e,t,...n){return Bne(e,t,n[0],e)}function lv(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&dh(75,t),n}function uv(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return Ev(n)?n.host:null}function dv(e){return H_(e)?e:Lv(e)?e.ownerDocument:null}function fv(e){m_(),g_()._updateTags.add(e)}function xre(e){m_(),g_()._deferred.push(e)}function pv(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function mv(e){let t=dv(e);return t?t.defaultView:null}function hv(e){let t=e._window;return t===null&&dh(78),t}function gv(e){return $(e)&&e.isInline()||S_(e)&&e.isInline()}function _v(e){let t=e.getLatest();for(;t!==null;){if(ly(t)!==null&&$(t))return t;let e=t.getParentOrThrow();if(yv(e))return e;t=e}return t}function vv(e){return $(e)&&e.isShadowRoot()}function yv(e){return C_(e)||vv(e)}function bv(e,t=!1){let n=e.constructor.clone(e,HS);return ore(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function xv(e){let t=g_(),n=e.getType(),r=N_(t,n);r===void 0&&dh(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||dh(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||dh(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&dh(203,e.constructor.name,n,r.name,r.getType()),t}return e}function Sv(e,t){!C_(e.getParent())||$(t)||S_(t)||dh(99)}function Sre(e){let t=J_(e);return t===null&&dh(63,e),t}function Cv(e){if(!e||e.isInline())return!1;if(S_(e))return!0;if($(e)){if(e.isShadowRoot()){let t=e.getParent();return!($(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function wv(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function Tv(e){return cb?(e||window).getSelection():null}function Cre(e){let t=mv(e);return t?t.getSelection():null}function Ev(e){return zv(e)&&`host`in e}function Dv(e){let t=e.getRootNode();if(t===e||!Ev(t))return nie;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!Ev(e))break;n.push(e),r=e.host}return n}function*Ov(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(H_(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function kv(e){return e===null?document:e.ownerDocument}function Av(){let e=Pne();return kv(e===null?null:e._rootElement)}function jv(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=Dv(t);if(n.length===0)return null;let r=e.getComposedRanges;try{let t=r.call(e,{shadowRoots:n})[0];if(t!==void 0)return t}catch{}try{let t=r.apply(e,n)[0];if(t!==void 0)return t}catch{}return null}function wre(e,t){let n=jv(e,t);if(n!==null){let e=Tre(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function Mv(e,t){let n=jv(e,t);return n===null?e:Ere(n,Dre(e))}function Tre(e){let t=e.startContainer.ownerDocument;if(t===null)return null;let n=t.createRange();try{return n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),n}catch{return null}}function Ere(e,t){let{startContainer:n,startOffset:r,endContainer:i,endOffset:a}=e;return t===`backward`?{anchorNode:i,anchorOffset:a,direction:t,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:t,focusNode:i,focusOffset:a}}function Dre(e){return e.direction}function Nv(e){let t=e.getRootNode();return H_(t)||Ev(t)?t.activeElement:null}function Pv(e){let t=e.activeElement;for(;t!==null&&t.shadowRoot!==null;){let e=t.shadowRoot.activeElement;if(e===null)break;t=e}return t}function Fv(e){let t=e.target;if(t!==null&&Lv(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function Iv(e){return Lv(e)&&e.tagName===`A`}function Lv(e){return Rv(e)&&e.nodeType===1}function Rv(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function zv(e){return Rv(e)&&e.nodeType===11}function Bv(e){return!(!Lv(e)||!e.style.display.startsWith(`inline`))||rie.test(e.nodeName)}function Vv(e){return(!Lv(e)||!e.style.display.startsWith(`inline`))&&iie.test(e.nodeName)}function Hv(e){if(S_(e)&&!e.isInline())return!0;if(!$(e)||yv(e))return!1;let t=e.getFirstChild(),n=t===null||D_(t)||Hg(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Uv(){return g_()}function Wv(e=Uv()){return e._config.dom||zS}function Gv(e,t,n=Uv()){let r=Wv(n).$getDOMSlot(e,t,n);return $(e)&&(Ore(r)||dh(344,e.getKey(),e.getType())),r}function Ore(e){return e instanceof Vb}function Kv(e,t,n=Uv()){return ire(Gv(e,t,n).element)}function qv(e){if(!e._readOnly&&e.isEmpty())return aie;e._readOnly||dh(192);let t=GS.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),GS.set(e,t)),t}function Jv(e){let t=e.constructor.clone(e,HS);return t.afterCloneFrom(e),t}function kre(e){return(t=Jv(e))[mS]=!0,t;var t}function Yv(e,t){let n=e.getAttribute(`data-lexical-indent`);if(n!==null){let e=parseInt(n,10);if(Number.isFinite(e)&&e>=0)return void t.setIndent(e)}let r=parseInt(e.style.paddingInlineStart,10)||0,i=Math.round(r/40);t.setIndent(i)}function Xv(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function Zv(e,t){let n=t.style.textAlign;return n&&n in Fb?e.setFormat(n):e}function Qv(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function $v(e){return!0===e.__lexicalUnmanaged}function Are(e,t=Uv()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function ey(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(Lv(n)&&n.hasAttribute(`data-lexical-slot`)||Y_(n,t)!==void 0)return!1;n=uv(n)}return!1}function ty(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==gS[t]}function ny(e){let t=KS.get(e);if(t)return t;let n=e.prototype!=null&&zb in e.prototype?e.prototype[zb]():void 0,r=function(e){if(!(e===gS||e.prototype instanceof gS)){let t=``,n=``;try{t=e.getType()}catch{}try{BS.version&&(n=JSON.parse(BS.version))}catch{}dh(290,e.name,t,n)}return e===NS||e===MS||e===gS}(e),i=!r&&ty(e,`getType`)?e.getType:void 0,a=i&&!(qS in i)?i.call(e):void 0,o,s=a;if(n){if(a)o=n[a];else{for(let[e,t]of Object.entries(n))s=e,o=t;if(!o)for(let e of Object.getOwnPropertySymbols(n)){let t=n[e];if(t){o=t;break}}}}if(!r&&s){if(!ty(e,`getType`)){let t=e,n=function(){return this===t?s:gS.getType.call(this)};n[qS]=!0,e.getType=n}if(ty(e,`clone`)||(e.clone=(t,n)=>{M_(t);let r=new e;return n!==HS&&r.afterCloneFrom(t),r}),ty(e,`importJSON`)||(e.importJSON=o&&o.$importJSON||(t=>new e().updateFromJSON(t))),!ty(e,`importDOM`)&&o){let{importDOM:t}=o;t&&(e.importDOM=()=>t)}}let c={klass:e,ownNodeConfig:o,ownNodeType:s};return KS.set(e,c),c}function*ry(e){for(let t=e;t&&(t===gS||kg(t.prototype));){let e=ny(t);yield e,t=e.ownNodeConfig&&e.ownNodeConfig.extends||oy(t)}}function iy(e){let t=Uv();return m_(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}function ay(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t===null?J_(r):t.get(r);e??dh(174),n.push(r),r=e.__next}return n}function oy(e){let t=Object.getPrototypeOf(e);if(typeof t==`function`&&t!==Function.prototype)return t;let n=e.prototype&&Object.getPrototypeOf(e.prototype);return n?n.constructor:null}function sy(e){return $(e)||S_(e)}function cy(e){return $(e)||S_(e)}function ly(e){let t=e.getLatest();return cy(t)?t.__slotHost:null}function uy(e){let t=ly(e);if(t===null)return null;let n=J_(t);return $(n)||S_(n)||dh(370),n}function jre(e){let t=uy(e);if(t===null)return null;let n=e.getLatest().__key;for(let[e,r]of fy(t))if(r===n)return e;return null}function dy(e){let t=e.getLatest();for(;t!==null;){if(ly(t)!==null)return t;t=t.getParent()}return null}function fy(e){let t=e.getLatest();return sy(t)&&t.__slots!==null?t.__slots:YS}function py(e){return Array.from(fy(e).keys())}function my(e,t){let n=fy(e).get(t);return n===void 0?null:J_(n)}function hy(e){let t=e.__slots;return t!==null&&t[XS]===e||(t=new Map(t),t[XS]=e,e.__slots=t),t}function Mre(e){for(let{ownNodeConfig:t}of ry(e)){let e=t&&t.slots;if(e)return e}return sie}function gy(e){let t=``;for(let n of py(e)){let r=my(e,n);r!==null&&(t+=r.getTextContent())}return t}function _y(e,t,n){let r=n.get(e),i=n.get(t);return r===void 0?i===void 0?et):1:i===void 0?-1:r-i}function Nre(e){let t=e.__slots;if(t===null||t.size<2)return;let n=function(e){let t=ZS.get(e);if(t===void 0){let n=Mre(e),r=new Map;for(let t of n)oie.includes(t)&&dh(371,e.name,t),r.has(t)&&dh(372,e.name,t),r.set(t,r.size);t=r,ZS.set(e,t)}return t}(e.constructor),r=null,i=!0;for(let e of t.keys()){if(r!==null&&_y(r,e,n)>0){i=!1;break}r=e}if(i)return;let a=Array.from(t).sort(([e],[t])=>_y(e,t,n));t.clear();for(let[e,n]of a)t.set(e,n)}function vy(e,t,n){t!==`__proto__`&&t!==`constructor`&&t!==`prototype`||dh(373,t);let r=e.getLatest();if(r.__slots!==null&&r.__slots.get(t)===n.getLatest().__key)return r;(!$(n)&&!S_(n)||n.isInline())&&dh(374,n.__key);let i=e.getWritable(),a=hy(i),o=a.get(t);o!==void 0&&yy(o);let s=n.getWritable(),c=uy(s);if(c!==null){let e=jre(s);e!==null&&hy(c.getWritable()).delete(e),s.__slotHost=null}return W_(s),s.__slotHost=i.__key,a.set(t,s.__key),Nre(i),function(){let e=Uv();e._slotsUsed=!0,e._pendingEditorState&&(e._pendingEditorState._slotsUsed=!0)}(),i}function Pre(e,t){let n=e.getWritable();if(n.__slots===null)return n;let r=n.__slots.get(t);return r!==void 0&&(yy(r),hy(n).delete(t)),n}function yy(e){let t=J_(e);if(t===null)return;let n=t.getWritable();cy(n)||dh(377,e),n.__slotHost=null,n.remove()}function by(e){return cie[e]}function xy(e,t=`root`){return e===null||lie[t](e)?null:ly(e)===null?e:null}function Sy(e){return e instanceof tC}function Cy(e){return e instanceof eC}function wy(e){return e instanceof $S}function Ty(e,t){return e?new die[t](e):null}function Ey(e,t,n){return e?new uie[t](e,Dy(e,n)):null}function Dy(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&fh(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function Oy(e,t){return new mie(e,t)}function ky(e,t){return $(e)?new fie[t](e):null}function Fre(e){return e&&e.getChildCaret()||e}function Ay(e){return e&&Fre(e.getAdjacentCaret())}function jy(e){return Ny(e,Ty(Z_(),e.direction))}function My(e){return Ny(e,e)}function Ny(e,t){return e.direction!==t.direction&&dh(265),new pie(e,t,e.direction)}function Py(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function Fy(e,t){let n=zy(e.origin,t.origin);switch(n===null&&dh(275,e.origin.getKey(),t.origin.getKey()),n.type){case`same`:{let n=e.type===`text`,r=t.type===`text`;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return t.type===`child`?1:-1;case`branch`:return Iy(n)}}function Iy(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling()){if(a.__key===i)return-1;if(o.__key===r)return 1}return a===null?1:-1}function Ly(e,t){return t.is(e)}function Ry(e){return $(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function zy(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=Ry(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=Ry(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(Ly(e,r)||dh(276),{commonAncestor:r,type:`ancestor`}):i===null?(Ly(t,r)||dh(277),{commonAncestor:r,type:`descendant`}):(($(a)||Ly(e,a))&&($(i)||Ly(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||dh(278),{a,b:i,commonAncestor:r,type:`branch`})}return null}function By(e,t){let{type:n,key:r,offset:i}=e,a=Sre(e.key);return n===`text`?(Hg(a)||dh(266,a.getType(),r),Ey(a,t,i)):($(a)||dh(267,a.getType(),r),Qy(a,e.offset,t))}function Vy(e,t){let{origin:n,direction:r}=t,i=r===`next`;Sy(t)?e.set(n.getKey(),t.offset,`text`):Cy(t)?Hg(n)?e.set(n.getKey(),Dy(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(wy(t)&&$(n)||dh(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function Hy(e){let t=n_(),n=Q(t)?t:$g();return Uy(n,e),Q_(n),n}function Uy(e,t){Vy(e.anchor,t.anchor),Vy(e.focus,t.focus)}function Wy(e){let{anchor:t,focus:n}=e,r=By(t,`next`),i=By(n,`next`),a=Fy(r,i)<=0?`next`:`previous`;return Ny(Xy(r,a),Xy(i,a))}function Gy(e){let{direction:t,origin:n}=e,r=Ty(n,by(t)).getNodeAtCaret();return r?Ty(r,t):ky(n.getParentOrThrow(),t)}function Ky(e,t=`root`){let n=[e];for(let r=wy(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(Gy(r));return n}function qy(e){return!!e&&e.origin.isAttached()}function Ire(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=Zy(e,r),o=Ky(a.anchor,n),s=Ky(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(wy(e))c.add(e.origin.getKey());else if(Cy(e)){let{origin:t}=e;$(t)&&!c.has(t.getKey())||l.push(t)}let u=new Set;for(let e of l){let t=e.getParent();t===null||c.has(t.getKey())||u.add(t),W_(e)}for(let e of u)!e.canBeEmpty()&&!yv(e)&&e.isEmpty()&&e.isAttached()&&e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=Gy(Ty(t,r)),c=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||c===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(c===`segmented`){let e=t.origin,n=Vg(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=Ey(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let d,f;for(let e of o)if(qy(e)){d=Jy(e);break}for(let e of s)if(qy(e)){f=Jy(e);break}let p=function(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c{let n;for(let r=c;rn.has(e.getKey())&&Hv(e));return d&&py(d).length>0?null:u&&d?[u,d]:null}(d,f,c);if(p){let[e,t]=p;ky(e,`previous`).splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}else if(f){let e=function(e){if(wy(e)){let t=e.origin;if(Hv(t))return t}else{let t=e.getParentAtCaret();if(t&&Hv(t))return t}return null}(f),t=e&&e.getParent(),n=e&&e.getParents().findLast(vv);if(e&&t&&!C_(t)&&e.isEmpty()&&c.has(e.getKey())&&py(e).length===0&&(!n||c.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!C_(n)&&n.isEmpty();){let e=n.getParent();if(e&&C_(e)&&e.getChildrenSize()<=1)break;let t=n;n=e,t.remove(!0)}}}let m=[d,f,...o,...s].find(qy);if(m)return My(Xy(Jy(m),e.direction));dh(269,JSON.stringify(o.map(e=>e.origin.__key)))}function Jy(e){let t=function(e){let t=e;for(;wy(t);){let e=Ay(t);if(!wy(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Hg(t.origin))return Sy(t)?t:Ey(t.origin,n,n);let r=t.getAdjacentCaret();return Cy(r)&&Hg(r.origin)?Ey(r.origin,n,by(n)):t}function Yy(e){return Sy(e)&&e.offset!==Dy(e.origin,e.direction)}function Xy(e,t){return e.direction===t?e:e.getFlipped()}function Zy(e,t){return e.direction===t?e:Ny(Xy(e.focus,t),Xy(e.anchor,t))}function Qy(e,t,n){let r=ky(e,`next`);for(let e=0;e0||!a&&n.canBeEmpty()&&i(n,`last`))&&o.insert(t(n).splice(0,0,r))}return o}function eb(e,t,n){let r=Xy(t,`next`);Sy(r)&&(r.offset===0?r=Ty(r.origin,`previous`).getFlipped():r.offset===r.origin.getTextContentSize()&&(r=Ty(r.origin,`next`))),r.origin.is(e)&&(Cy(r)||dh(342,e.getKey(),e.getType()),r=Gy(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=$y(e,n))r=e;return Sy(r)&&dh(283),r.insert(e.isInline()?k_().append(e):e),Xy(Ty(e.getLatest(),`next`),t.direction)}function tb(e){return e}function nb(e){return e}function rb(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e}function ib(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function ab(e,...t){let n=ib(...t);n.length>0&&e.classList.add(...n)}function ob(e,...t){let n=ib(...t);n.length>0&&e.classList.remove(...n)}function sb(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,zre,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,Bre,nS,rS,Vre,iS,aS,oS,Hre,Ure,sS,cS,Wre,Gre,Kre,lS,uS,dS,fS,qre,pS,mS,hS,gS,Jre,_S,Yre,vS,Xre,yS,bS,Zre,xS,Qre,SS,CS,$re,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,eie,tie,US,WS,nie,rie,iie,GS,aie,KS,qS,JS,YS,oie,XS,ZS,sie,cie,QS,$S,lie,eC,tC,uie,die,fie,pie,mie;function nC(){return(nC=s((()=>{cb=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,lb=cb&&`documentMode`in document?document.documentMode:null,ub=cb&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),db=cb&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),fb=!(!cb||!(`InputEvent`in window)||lb)&&`getTargetRanges`in new window.InputEvent(`input`),pb=cb&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mb=cb&&/Android/.test(navigator.userAgent),hb=cb&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!mb,gb=cb&&/^(?=.*Chrome).*/i.test(navigator.userAgent),_b=cb&&mb&&gb,vb=cb&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ub&&!gb,yb=0,bb=1,xb=2,Sb=1,Cb=2,wb=3,Tb=4,Eb=5,Db=6,Ob=hb||pb||vb?`\xA0`:`​`,kb=` `,Ab=db?`\xA0`:Ob,jb=RegExp(`^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]`),Mb=RegExp(`^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]`),Nb={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Pb={directionless:1,unmergeable:2},Fb={center:2,end:6,justify:4,left:1,right:3,start:5},Ib={[Cb]:`center`,[Db]:`end`,[Tb]:`justify`,[Sb]:`left`,[wb]:`right`,[Eb]:`start`},Lb={normal:0,segmented:2,token:1},Rb={[yb]:`normal`,[xb]:`segmented`,[bb]:`token`},zb=`$config`,Bb=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&dh(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&dh(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&dh(359),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=mh(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let a=mh(e,t);if(a===null)return`after`;let o=Array.prototype.indexOf.call(e.childNodes,a);return o>=0&&o<=i?`before`:`after`}getInsertionAnchor(){return this.before}},Vb=class e extends Bb{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;Fte(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===ph()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(vb||pb||hb);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=Av().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=Av().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset(),n=ph(),i=this.element.childNodes,a=Math.min(r,i.length),o=0;for(let e=t;en){o+=1;break}}return[e.getParentOrThrow(),o]}};try{Hb=`0.49.0+prod.esm`}catch{}Ub=Hb??`"+source"`,Wb=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){let e=Array.from(this._front).reverse();for(let t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},Gb=null,Kb=class e{_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,new e().init(this._old,this._nursery,this._size)}init(e,t,n){return this._old=e,this._nursery=t,this._size=n,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){let t=this._nursery&&this._nursery.get(e);return t===void 0?this._old&&this._old.get(e):t}get(e){let t=this.getWithTombstone(e);return t===Gb?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){let e=new Map(this._old);for(let[t,n]of this._nursery)n===Gb?e.delete(t):e.set(t,n);this._old=e,this._nursery=void 0}return this._mutable=!1,this}set(e,t){let n=this.getWithTombstone(e);if(n===t)return this;let r=this.getNursery();return n!==Gb&&n!==void 0||(this._size++,n===Gb&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,Gb),this._size--),t}getOrInsert(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}getOrInsertComputed(e,t){let n=this.get(e);if(n!==void 0)return n;let r=t(e);return this.set(e,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(let e of this.entries())yield e[0]}*values(){for(let e of this.entries())yield e[1]}*entries(){let e=this._nursery,t=this._old;if(t)for(let n of t){let t=n[0],r=e?e.get(t):void 0;r!==Gb&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===Gb||t&&t.has(n[0])||(yield n)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.entries())e(n,t,this)}get[Symbol.toStringTag](){return`GenMap`}[Symbol.iterator](){return this.entries()}},qb=!1,Jb=0,Yb=`latest`,Xb=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Vte).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}},Zb=new Set([`__proto__`,`constructor`,`prototype`]),Qb=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Dh(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){if(Zb.has(i))continue;let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(let e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=Dh(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(Zb.has(e))return;let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}},$b=Symbol.for(`@lexical/CachedTextSize`),ex=4,ix=``,ax=null,ox=null,sx=null,vx=!1,yx=!1,bx=`40px`,xx=lg(`SELECTION_CHANGE_COMMAND`),Sx=lg(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),Cx=lg(`CLICK_COMMAND`),wx=lg(`BEFORE_INPUT_COMMAND`),Tx=lg(`INPUT_COMMAND`),Ex=lg(`COMPOSITION_START_COMMAND`),Dx=lg(`COMPOSITION_END_COMMAND`),Ox=lg(`DELETE_CHARACTER_COMMAND`),kx=lg(`INSERT_LINE_BREAK_COMMAND`),Ax=lg(`INSERT_PARAGRAPH_COMMAND`),jx=lg(`CONTROLLED_TEXT_INSERTION_COMMAND`),Mx=lg(`PASTE_COMMAND`),Nx=lg(`REMOVE_TEXT_COMMAND`),Px=lg(`DELETE_WORD_COMMAND`),Fx=lg(`DELETE_LINE_COMMAND`),Ix=lg(`FORMAT_TEXT_COMMAND`),zre=lg(`SET_TEXT_FORMAT_COMMAND`),Lx=lg(`UNDO_COMMAND`),Rx=lg(`REDO_COMMAND`),zx=lg(`KEYDOWN_COMMAND`),Bx=lg(`KEY_ARROW_RIGHT_COMMAND`),Vx=lg(`MOVE_TO_END`),Hx=lg(`KEY_ARROW_LEFT_COMMAND`),Ux=lg(`MOVE_TO_START`),Wx=lg(`KEY_ARROW_UP_COMMAND`),Gx=lg(`KEY_ARROW_DOWN_COMMAND`),Kx=lg(`KEY_ENTER_COMMAND`),qx=lg(`KEY_SPACE_COMMAND`),Jx=lg(`KEY_BACKSPACE_COMMAND`),Yx=lg(`KEY_ESCAPE_COMMAND`),Xx=lg(`KEY_DELETE_COMMAND`),Zx=lg(`KEY_TAB_COMMAND`),Qx=lg(`INSERT_TAB_COMMAND`),$x=lg(`INDENT_CONTENT_COMMAND`),eS=lg(`OUTDENT_CONTENT_COMMAND`),tS=lg(`DROP_COMMAND`),Bre=lg(`FORMAT_ELEMENT_COMMAND`),nS=lg(`DRAGSTART_COMMAND`),rS=lg(`DRAGOVER_COMMAND`),Vre=lg(`DRAGEND_COMMAND`),iS=lg(`COPY_COMMAND`),aS=lg(`CUT_COMMAND`),oS=lg(`SELECT_ALL_COMMAND`),Hre=lg(`CLEAR_EDITOR_COMMAND`),Ure=lg(`CLEAR_HISTORY_COMMAND`),sS=lg(`CAN_REDO_COMMAND`),cS=lg(`CAN_UNDO_COMMAND`),Wre=lg(`FOCUS_COMMAND`),Gre=lg(`BLUR_COMMAND`),Kre=lg(`KEY_MODIFIER_COMMAND`),lS=Object.freeze({}),uS=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&_g(n),!t.isComposing()&&cv(t,zx,e)}],[`pointerdown`,function(e,t){let n=Fv(e),r=e.pointerType;Rv(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&x_(t,()=>{ey(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){cv(t,Ex,e)}],[`compositionend`,function(e,t){let n=t._inputState;db?n.compositionPhase=`ending-firefox`:pb||!hb&&!vb?cv(t,Dx,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;_g(n),x_(t,()=>{yg(e,t)||t.dispatchCommand(Tx,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){x_(t,()=>{let n=n_(),r=Tv(hv(t)),i=r_();if(r){if(Q(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!C_(t)&&Z_().getChildrenSize()===1&&t.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=Mv(r,t._rootElement).anchorNode;(Lv(n)||V_(n))&&Q_(t_(i,r,t,e))}}if(db&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;efunction(e,t){let n=e.inputType;n===`deleteCompositionText`||db&&bre(t)||n!==`insertCompositionText`&&x_(t,()=>{yg(e,t)||cv(t,wx,e)},{event:e})}(e,t)]),dS=new WeakMap,fS=new WeakMap,qre=Wte(e=>(e.addEventListener(`selectionchange`,Cg),()=>e.removeEventListener(`selectionchange`,Cg))),pS=new Map,mS=Symbol.for(`ephemeral`),hS={configurable:!0,enumerable:!1,value:void 0,writable:!0},gS=class{__type;__key;__parent;__prev;__next;__state;[$b];static getType(){let{ownNodeType:e}=ny(this);return e===void 0&&dh(64,this.name),e}static clone(e){dh(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||oy(this.constructor);return Object.assign(t,{extends:n}),typeof e==`string`&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&=this.__state.getWritable(this).resetOnCopyNode()}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",hS),Object.defineProperty(this,$b,hS),ore(this,e)}getType(){return this.__type}isInline(){dh(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=J_(e);if(t===null)break;e=t.__parent===null?ly(t):t.__parent}return!1}isSelected(e){let t=e||n_();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(Hg(this))return n;if(Q(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(S_(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:J_(e)}getParentOrThrow(){let e=this.getParent();return e===null&&dh(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(yv(t)||ly(e)!==null)return $(e)||e===this&&S_(e)||dh(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&dh(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:J_(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:J_(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=$(this)?this:this.getParent(),n=$(e)?e:e.getParent(),r=t&&n?zy(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=zy(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?Iy(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&dh(279),!1)))}isParentOf(e){return pv(e,this)}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=$(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do{if(u===null&&dh(68),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;l!==null||r.has(u.__key)||n.push(u)}while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=g_()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(Og(this))return this;let e=J_(this.__key);return e===null&&dh(113),e}getWritable(){if(Og(this))return this;m_();let e=h_(),t=g_(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=n_();if(o!==null&&o.setCachedNodes(null),a.has(r))return G_(i),i;let s=Jv(i);return a.add(r),G_(s),n.set(r,s),s}getTextContent(){return gy(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){dh(70)}updateDOM(e,t,n){dh(71)}getDOMSlot(e){return new Bb(e)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){dh(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Eh(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Th(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){Eg(this,!0,e)}replace(e,t){m_();let n=n_();n!==null&&(n=n.clone()),Sv(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size,l=o.getParent(),u=l===null?-1:o.getIndexWithinParent();W_(o),l!==null&&Q(n)&&i_(n,l,u,-1);let d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;Eg(r,!1,!0),d===null?s.__first=a:d.getWritable().__next=a,o.__prev=p,f===null?s.__last=a:f.getWritable().__prev=a,o.__next=m,o.__parent=h,s.__size=c;let g=0;t&&($(this)&&$(o)||dh(139),g=o.getChildrenSize(),o.splice(g,0,this.getChildren()));let _=py(this);if(_.length>0){sy(this)&&sy(o)||dh(368,this.__key,o.__key);for(let e of _){let t=my(this,e);t!==null&&(Pre(this,e),vy(o,e,t))}}if(Q(n)){Q_(n);let e=n.anchor,r=n.focus;e.key===i&&(t&&e.type===`element`?e.set(o.__key,g+e.offset,`element`):rne(e,o)),r.key===i&&(t&&r.type===`element`?r.set(o.__key,g+r.offset,`element`):rne(r,o))}return q_()===i&&K_(a),o}insertAfter(e,t=!0){m_(),Sv(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.getParent(),a=n_(),o=!1,s=!1;if(i!==null){let n=e.getIndexWithinParent();if(Q(a)){let e=i.__key,t=a.anchor,r=a.focus;o=t.type===`element`&&t.key===e&&t.offset===n+1,s=r.type===`element`&&r.key===e&&r.offset===n+1}W_(r),t&&Q(a)&&i_(a,i,n,-1)}else W_(r);let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Q(a)){let e=this.getIndexWithinParent();i_(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){m_(),Sv(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.__key,a=n_(),o=r.getParent(),s=o===null?-1:r.getIndexWithinParent();W_(r),o!==null&&t&&Q(a)&&i_(a,o,s,-1);let c=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),u=n.__prev,d=this.getIndexWithinParent();return c===null?l.__first=i:c.getWritable().__next=i,l.__size++,n.__prev=i,r.__prev=u,r.__next=n.__key,r.__parent=n.__parent,t&&Q(a)&&i_(a,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return k_()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){m_();let n=uy(this);if(n!==null)return n.selectPrevious(e,t);let r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if($(r))return r.select();if(!Hg(r)){let e=r.getIndexWithinParent()+1;return i.select(e,e)}return r.select(e,t)}selectNext(e,t){m_();let n=uy(this);if(n!==null)return n.selectNext(e,t);let r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if($(r))return r.select(0,0);if(!Hg(r)){let e=r.getIndexWithinParent();return i.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Jre=`history-push`,_S=`history-merge`,Yre=`skip-selection-focus`,vS=`composition-end`,Xre=`!important`,yS=class extends gS{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}$config(){return this.config(`text`,{importDOM:{"#text":()=>({conversion:nne,priority:0}),b:()=>({conversion:ene,priority:0}),code:()=>({conversion:Bg,priority:0}),em:()=>({conversion:Bg,priority:0}),i:()=>({conversion:Bg,priority:0}),mark:()=>({conversion:Bg,priority:0}),s:()=>({conversion:Bg,priority:0}),span:()=>({conversion:$te,priority:0}),strong:()=>({conversion:Bg,priority:0}),sub:()=>({conversion:Bg,priority:0}),sup:()=>({conversion:Bg,priority:0}),u:()=>({conversion:Bg,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return Rb[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===q_()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=Nb[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return U_(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=Mg(0,n),i=Ng(0,n),a=r===null?i:r,o=Av().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=Av().createElement(i),o.appendChild(s)),Ig(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&jg(o.style,c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=Mg(0,i),s=Mg(0,a),c=Ng(0,i),l=Ng(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??dh(48);let i=Av().createElement(l);return Ig(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??dh(49)),Fg(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&Pg(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&jg(t.style,p,f),!1}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Lv(t)||dh(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=Lg(t,`b`)),this.hasFormat(`italic`)&&(t=Lg(t,`i`)),this.hasFormat(`strikethrough`)&&(t=Lg(t,`s`)),this.hasFormat(`underline`)&&(t=Lg(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?Nb[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Pb[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=U_(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=Lb[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){m_();let n=e,r=t,i=n_(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!Q(i))return xne(o,n,o,r,`text`,`text`);{let e=q_();e!==i.anchor.key&&e!==i.focus.key||K_(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=n_();if(r&&Q(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){m_();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=q_(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;tt&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=n_();if(Q(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=Vg(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=Ah(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e=S&&(g.set(e.getKey(),b-S,`text`),b=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&G_(t),n!==null&&G_(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Q(v)&&i_(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||dh(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;q_()===r&&K_(n);let o=n_();if(Q(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&Cne(i,t,n,e,a),s!==null&&s.key===r&&Cne(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}},bS=new WeakMap,Zre={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`},xS=class extends yS{$config(){return this.config(`tab`,{extends:yS})}constructor(e=void 0){super(` `,e),this.__detail=2}createDOM(e){let t=super.createDOM(e),n=ov(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}setTextContent(e){return super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||dh(286),this}setDetail(e){return e!==2&&dh(127),this}setMode(e){return e!==`normal`&&dh(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}},Qre=class{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offsetn.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes().filter(e=>ly(e)===null),n=t.length;if(n===0)return;let r=t[n-1],i;if(Hg(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;ely(e)===null);if((n_()||r_())===this&&e[0]){let t=Ty(e[0],`next`);Hy(Ny(t,t))}for(let t of e)t.remove();one()}},CS=class e{format;style;anchor;focus;_cachedNodes;_cachedIsBackward;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Q(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(wy(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;$(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Cy(e.focus)&&$(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=ky(e.focus.origin,`previous`);wy(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Ay(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!$(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=Jy(e.anchor),r=Jy(e.anchor.getFlipped()),i=e=>Sy(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(Zy(Wy(this),`next`));return p_()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){return this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`),this}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=Yg(this),c=``,l=!0;for(let u=0;u($(e)||S_(e))&&!e.isInline())){$(r)||dh(211,n.constructor.name,n.getType());let t=u_(this);r.splice(t,0,e),i.selectEnd();return}if($(r)&&ly(r)!==null){let t=u_(this),n=l_(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}if(r===null){let t=d_(e),n=t.getLastDescendant(),r=By(this.anchor,`next`);for(let e of t.getChildren())r=eb(e,r);n!==null&&n.selectEnd();return}if($(r)&&!r.isParentRequired()&&!yv(r.getParentOrThrow())){let t=u_(this),n=l_(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}let a=d_(e),o=a.getLastDescendant(),s=a.getChildren(),c=!$(r)||!r.isEmpty()?this.insertParagraph():null;c&&!r.isAttached()&&(n=this.anchor.getNode(),r=JS(n,Hv));let l=s[s.length-1],u=s[0];var d;$(d=u)&&Hv(d)&&!d.isEmpty()&&$(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&($(r)||dh(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=s[1]),u&&(r===null&&dh(212,n.constructor.name,n.getType()),function(e,t){let n=t.getParentOrThrow().getLastChild(),r=t,i=[t];for(;r!==n;)r.getNextSibling()||dh(140),r=r.getNextSibling(),i.push(r);let a=e;for(let e of i)a=a.insertAfter(e)}(r,u));let f=JS(o,Hv);c&&$(f)&&(c.canMergeWhenEmpty()||Hv(l))&&(f.append(...c.getChildren()),c.remove()),$(r)&&r.isEmpty()&&r.remove(),o.selectEnd();let p=$(r)?r.getLastChild():null;D_(p)&&f!==r&&p.remove()}insertParagraph(){let e=this.anchor.getNode();if(this.anchor.type===`element`&&yv(e)){let t=k_();return e.splice(this.anchor.offset,0,[t]),t.select(),t}let t=u_(this),n=JS(this.anchor.getNode(),Hv);if(n!==null&&ly(n)!==null)return null;$(n)||dh(213);let r=n.getChildAtIndex(t),i=r?[r,...r.getNextSiblings()]:[],a=n.insertNewAfter(this,!1);return a?(a.append(...i),a.selectStart(),a):null}insertLineBreak(e){let t=E_();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=[...this.getNodes()],t=e.length,n=e[0],r=e[t-1],[i,a]=Yg(this),o=this.isBackward(),[s,c]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[l,u]=o?[a,i]:[i,a];if(t===0)return[];if(t===1){if(Hg(n)&&!this.isCollapsed()){let e=n.splitText(l,u),t=l===0?e[0]:e[1];return t?(s.set(t.getKey(),0,`text`),c.set(t.getKey(),t.getTextContentSize(),`text`),[t]):[]}return[n]}if(Hg(n)&&(l===n.getTextContentSize()?e.shift():l!==0&&([,n]=n.splitText(l),e[0]=n,s.set(n.getKey(),0,`text`))),Hg(r)){let t=r.getTextContent().length;u===0?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),`text`))}return e}modify(e,t,n){if(f_(this,e,t,n))return;let r=e===`move`,i=g_(),a=Tv(hv(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();s===null||o===null||!$(c)||c.isInline()||c.canBeEmpty()||wv(o,i,s);let l=lv(i,this.focus.key),u=l;if(this.focus.type===`text`&&(u=Hg(c)?Kv(c,l,i):null),this.dirty){let e=lv(i,this.anchor.key),t=e;if(this.anchor.type===`text`){let n=this.anchor.getNode();t=Hg(n)?Kv(n,e,i):null}t&&u&&o_(a,t,this.anchor.offset,u,this.focus.offset)}if(n===`character`&&Hg(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){let e=Ty(c,t?`previous`:`next`).getNodeAtCaret();if(Hg(e)){if(!r){let n=e.getTextContentSize();t?this.focus.set(e.__key,n-1,`text`):this.focus.set(e.__key,1,`text`),this.dirty=!0;return}{let n=i.getElementByKey(e.getKey()),r=n?Kv(e,n,i):null;if(r){let e=t?r.length:0;o_(a,r,e,r,e)}}}}if(pne(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=jv(a,i._rootElement),n=e||a.getRangeAt(0),o=this.anchor.getNode(),s=C_(o)?o:_v(o);this.applyDOMRange(n),this.dirty=!0,!r&&(mne(this,t,s),(e?a.direction!==`backward`:a.anchorNode===n.startContainer&&a.anchorOffset===n.startOffset)||fne(this))}n===`lineboundary`&&f_(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&$(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if($(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=jy(By(t,e?`previous`:`next`));if(r.getTextSlices().every(e=>e===null||e.distance===0)){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(wy(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=Jy(t);Uy(this,Ny(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(Cy(t)){if($(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(S_(t.origin)){if(!t.origin.isIsolated()){if(py(t.origin).length>0){if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=e_();e.add(t.origin.getKey()),Q_(e)}}else if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&$(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=e_();e.add(t.origin.getKey()),Q_(e)}else t.origin.remove()}return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return py(n).length>0?void 0:t.origin.isEmpty()&&!n.isEmpty()&&t.origin.getParent()===n.getParent()?void t.origin.remove(!0):(Uy(this,Ny(!t.origin.isEmpty()&&n.isEmpty()?Gy(Ty(n,t.direction)):r.anchor,t)),this.removeText())}for(let e=t.getNode();e!==null;){if(ly(e)!==null)return;if($(e)&&e.isShadowRoot())break;e=e.getParent()}}let i=this.focus;if(Xg(this,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&dne(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void hne(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void hne(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})(),wS=null,TS=null,ES=!1,DS=!1,OS=!1,kS=new Set,AS=0,jS={characterData:!0,childList:!0,subtree:!0},MS=class extends gS{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:Une,extends:gS})}constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``,this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&dh(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Ib[e]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&py(this).length===0}isDirty(){let e=g_()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[];for(let t of py(this)){let n=my(this,t);$(n)&&e.push(...n.getAllTextNodes())}let t=this.getFirstChild();for(;t!==null;){if(Hg(t)&&e.push(t),$(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;$(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;$(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return $(e)&&e.getLastDescendant()||e||null}let r=t[e];return $(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:J_(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&dh(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:J_(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&dh(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=gy(this),t=this.getChildren(),n=t.length;for(let r=0;re.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==``&&Fb[e]||0,this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){Og(this)&&dh(324,this.__key,this.__type);let r=this.getChildrenSize(),i=this.getWritable();e+t<=r||dh(226,String(e),String(t),String(r));for(let e of n);let a=i.__key,o=[],s=[],c=this.getChildAtIndex(e+t),l=null,u=r-t+n.length;if(e!==0){if(e===r)l=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(l=t.getPreviousSibling())}}if(t>0){let e=l===null?this.getFirstChild():l.getNextSibling();for(let n=0;n0&&(t.style.paddingInlineStart=40*e+`px`,t.setAttribute(`data-lexical-indent`,String(e)));let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t===0&&n===``||yv(this)||this.getChildren().some(Hg)||(t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=Gv(this,e,t),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}},NS=class extends gS{__slotHost;__slots;constructor(e){super(e),this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&dh(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots)}decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}},PS=class extends MS{__cachedText;$config(){return this.config(`root`,{extends:MS})}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){dh(51)}getTextContent(){let e=this.__cachedText;return e===null||!p_()&&g_()._dirtyType!==0?super.getTextContent():e}remove(){dh(52)}replace(e){dh(53)}insertBefore(e){dh(54)}insertAfter(e){dh(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)$(e)||S_(e)||dh(282);return super.splice(e,t,n)}static importJSON(e){return Z_().updateFromJSON(e)}collapseAtStart(){return!0}},FS=class e{_nodeMap;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(e,t=null,n=!1){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return zne(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t,this._slotsUsed);return n._readOnly=!0,n}toJSON(){return zne(null,this,()=>({root:T_(Z_())}))}},IS=class extends MS{$config(){return this.config(`artificial`,{extends:MS})}createDOM(e){return Av().createElement(`div`)}},LS=class extends gS{$config(){return this.config(`linebreak`,{importDOM:{br:e=>Jne(e)||Yne(e)?null:{conversion:qne,priority:0}}})}getTextContent(){return` `}createDOM(){return Av().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}},RS=class extends MS{$config(){return this.config(`paragraph`,{extends:MS,importDOM:{p:()=>({conversion:Xne,priority:0})}})}createDOM(e){let t=Av().createElement(`p`),n=ov(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(Hg);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=k_();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||Hg(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}},zS={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=N_(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>$(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>$(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)},BS=class{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Kb,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=pre(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return j_(this._listeners.update,e)}registerEditableListener(e){return j_(this._listeners.editable,e)}registerDecoratorListener(e){return j_(this._listeners.decorator,e)}registerTextContentListener(e){return j_(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return sb(j_(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){let r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){n===void 0&&dh(35);let r=this._commands;r.has(e)||r.set(e,[new Wb,new Wb,new Wb,new Wb,new Wb]);let i=r.get(e);i===void 0&&dh(36,String(e));let a=function(e){return 7&e}(n),o=i[a];return a===n?o.addBack(t):o.addFront(t),()=>{o.delete(t),i.every(e=>e.size===0)&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&dh(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=qv(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=qv(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=J_(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:_S}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return cv(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=ov(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Qne(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||Zte(t),n!=null&&t.classList.remove(...n)),e!==null){let t=mv(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=2,xh(this),this._updateTags.add(_S),v_(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;dS.set(e,n);let r=fS.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},fS.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=Sg(e);i.push(qre.register(n));for(let n=0;n{Tg(e)||(wg(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(Tg(e))return;wg(e);let n=t.isEditable();switch(r){case`cut`:return n&&cv(t,aS,e);case`copy`:return cv(t,iS,e);case`paste`:return n&&cv(t,Mx,e);case`dragstart`:return n&&cv(t,nS,e);case`dragover`:return n&&cv(t,rS,e);case`dragend`:return n&&cv(t,Vre,e);case`focus`:return n&&cv(t,Wre,e);case`blur`:return n&&cv(t,Gre,e);case`drop`:return n&&cv(t,tS,e)}};i.push(Gte(e,r,o))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(_S),v_(this);y_(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&dh(38);let n=e;n._readOnly&&(n=Gne(e),n._selection=e._selection?e._selection.clone():null),bh(this);let r=this._pendingEditorState,i=t===void 0?null:t.tag;r===null||r.isEmpty()||(i!=null&&this._updateTags.add(i),v_(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,x_(this,()=>{if(i&&this._updateTags.add(i),e._parsed)for(let[e,t]of n._nodeMap.entries())$(t)?this._dirtyElements.set(e,!0):this._dirtyLeaves.add(e)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(e,t,n){let r=w_(),i=wS,a=ES,o=TS,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,wS=r,ES=!1,TS=t,M_(null);try{let i=t._nodes;__(e.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,wS=i,ES=a,TS=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(...e){let[t,n]=e.length===1?[`force-commit`,e[0]]:e;return t===`force-commit`&&v_(this),(t===`pending`?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):b_(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),x_(this,()=>{let r=n_(),i=Z_();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||Q_(r.clone()),fv(`focus`),xre(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=Tv(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,y_(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>Mne()))}toJSON(){return{editorState:this._editorState.toJSON()}}},BS.version=Ub,VS=null,HS=Symbol(`INTERNAL_SKIP_AFTER_CLONE_FROM`),eie=1,tie=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},US={ctrlKey:!ub,metaKey:ub},WS={altKey:ub,ctrlKey:!ub},nie=[],rie=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i,iie=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i,GS=new WeakMap,aie=new Map,KS=new WeakMap,qS=Symbol(`lexical.synthesizedGetType`),JS=(e,t)=>{let n=e;for(;n!=null&&!C_(n);){if(t(n))return n;n=n.getParent()}return null},YS=new Map,oie=[`__proto__`,`constructor`,`prototype`],XS=Symbol(`slotMapOwner`),ZS=new WeakMap,sie=[],cie={next:`previous`,previous:`next`},QS=class{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Py({hasNext:Cy,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Ty(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ty(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&dh(263,Array.from(o).join(` `))}else i.insert(e);i=Ty(e,this.direction)}for(let e of o.values())e.remove();return this}},$S=class e extends QS{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ky(e,this.direction)}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=by(this.direction);return Ty(this.getNodeAtCaret(),e)||ky(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},lie={root:C_,shadowRoot:yv},eC=class e extends QS{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Ty(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return $(this.origin)?ky(this.origin,this.direction):null}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=by(this.direction);return Ty(this.getNodeAtCaret(),e)||ky(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof tC)&&this.direction===t.direction&&this.origin.is(t.origin)}},tC=class e extends QS{type=`text`;offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Ey(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return Ty(xy(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Ey(this.origin,by(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof eC||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ty(this.origin,this.direction)}},uie={next:class extends tC{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends tC{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},die={next:class extends eC{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends eC{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fie={next:class extends $S{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends $S{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}},pie=class e{type=`node-caret-range`;direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return Sy(t)?function(e,t){let{direction:n,origin:r}=e;return Oy(e,Dy(r,t===`focus`?by(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[Oy(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=Sy(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Sy(n),i=t=>t.isSameNodeCaret(n)?null:Ay(t)||t.getParentCaret(e);return Py({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},mie=class{type=`slice`;caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return ni?i:r,d=r>i?r:i):l?(f=o?i:r,d=void 0):u&&(f=0,d=o?r:i);let p=t.__text.slice(f,d);p!==t.__text&&(n===`clone`&&(t=kre(t)),t.__text=p)}}return t}function vie(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function iC(e,t,n){let r=By(e,n);if(Yy(r))return!1;for(;r;r=r.getParentCaret()){let e=r.getParentAtCaret();if(!e||r.getNodeAtCaret())return!1;if(t.is(e))return!0}return!1}function aC(e,t,n=vie){if(!e)return;let r=e.getStartEndPoints(),i=!1,a=null,o=new Map;if(r){let[t,n]=r,s=JS(t.getNode(),Hv);a=JS(n.getNode(),Hv);let c=e.isBackward()?`previous`:`next`;i=$(a)&&!a.is(s)&&function(e,t,n){let r=e.getNode();return(!$(r)||!r.isEmpty())&&iC(e,t,n)}(n,a,by(c)),$(s)&&o.set(s.getKey(),s),$(a)&&!i&&o.set(a.getKey(),a)}for(let t of e.getNodes())if($(t)&&Hv(t)){if(i&&t.is(a))continue;o.set(t.getKey(),t)}else if(!r){let e=JS(t,Hv);$(e)&&o.set(e.getKey(),e)}for(let e of o.values()){let r=t();n(e,r),e.replace(r,!0)}}function yie(e){let t=bie(e);return t!==null&&t.writingMode===`vertical-rl`}function bie(e){let t=e.anchor.getNode();return $(t)?hie(t):gie(t)}function xie(e,t){let n=yie(e)?!t:t;Cie(e)&&(n=!n);let r=By(e.focus,n?`previous`:`next`);if(Yy(r))return!1;if(Sy(r)&&!Gg(r.origin)&&r.origin.isUnmergeable()){let e=r.getNodeAtCaret();if(Hg(e)&&!Gg(e))return!0}for(let e of jy(r)){if(wy(e))return!e.origin.isInline();if(!$(e.origin)){if(S_(e.origin))return!0;break}}return!1}function Sie(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function Cie(e){let t=bie(e);return t!==null&&t.direction===`rtl`}function wie(e,t,n){let r=Cie(e),i;i=yie(e)||r?!n:n,Sie(e,t,i,`character`)}function oC(){return(oC=s((()=>{nC()})))()}function Tie(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function sC(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function Eie(e){let t=JS(e,e=>$(e)&&!e.isInline());return $(t)||Tie(4,e.__key),t}function cC(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function lC(e){let t=null;if(cC(e,DragEvent)?t=e.dataTransfer:cC(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function Die(e){let t=n_();if(!Q(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t$(e)&&!e.isInline());if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function Oie(e,t){let n=[],r=Array.from(e).reverse();for(let e=r.pop();e!==void 0;e=r.pop())if(t(e))n.push(e);else if($(e))for(let t of kie(e))r.push(t);return n}function kie(e){return Aie(ky(e,`previous`))}function Aie(e){return Py({hasNext:Cy,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}function jie(e,t){let n=n_();if(Q(n)&&n.isCollapsed()){let r=JS(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getFirstChild()===r&&Nie(n.anchor,r))return r.insertBefore(k_()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function Mie(e,t){let n=n_();if(Q(n)&&n.isCollapsed()){let r=JS(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getLastChild()===r&&Pie(n.anchor,r))return r.insertAfter(k_()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function Nie(e,t){return iC(e,t,`previous`)}function Pie(e,t){return iC(e,t,`next`)}function uC(){return(uC=s((()=>{oC(),nC()})))()}function dC(){if(CC>1)return void CC--;let e,t=!1;for(function(){let e=SC;for(SC=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();xC!==void 0;){let n=xC;for(xC=void 0,wC++;n!==void 0;){let r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Rie(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(wC=0,CC--,t)throw e}function Fie(e){let t=bC;bC=void 0;try{return e()}finally{bC=t}}function Iie(e){if(bC===void 0)return;let t=e.n;return t===void 0||t.t!==bC?(t={i:0,S:e,p:bC.s,n:void 0,t:bC,e:void 0,x:void 0,r:t},bC.s!==void 0&&(bC.s.n=t),bC.s=t,e.n=t,32&bC.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=bC.s,t.n=void 0,bC.s.n=t,bC.s=t),t):void 0}function fC(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Lie(e,t){return new fC(e,t)}function Rie(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function zie(e){for(let t=e.s;t!==void 0;t=t.n){let n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Bie(e){let t,n=e.s;for(;n!==void 0;){let e=n.p;n.i===-1?(n.S.U(n),e!==void 0&&(e.n=n.n),n.n!==void 0&&(n.n.p=e)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=e}e.s=t}function pC(e,t){fC.call(this,void 0),this.x=e,this.s=void 0,this.g=EC-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Vie(e){let t=e.m;if(e.m=void 0,typeof t==`function`){CC++;let n=bC;bC=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,mC(e),t}finally{bC=n,dC()}}}function mC(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Vie(e)}function Hie(e){if(bC!==this)throw Error(`Out-of-order effect`);Bie(this),bC=e,this.f&=-2,8&this.f&&mC(this),dC()}function hC(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}function Uie(e,t){let n=new hC(e,t);try{n.c()}catch(e){throw n.d(),e}let r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Wie(e){return(typeof e.nodes==`function`?e.nodes():e.nodes)||[]}function Gie(e,t){let n;return Lie(e(),{unwatched(){n&&=(n(),void 0)},watched(){this.value=e(),n=t(this)}})}function gC(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Kie(e,t){if(e&&t&&!Array.isArray(t)&&typeof e==`object`&&typeof t==`object`){let n=e,r=t;for(let e in r)!aae.has(e)&&Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=Kie(n[e],r[e]));return e}return t}function _C(e){return e.id===DC}function qie(e){return e.id===kC}function Jie(e){return function(e){return e.id===OC}(e)||gC(305,String(e.id),String(OC)),Object.assign(e,{id:kC})}function Yie(){let e=Z_();e.isEmpty()&&e.append(k_())}function Xie(){}function Zie(e){throw e}function vC(e){return Array.isArray(e)?e:[e]}function yC(e,t){let n=lae.maybeFromEditor(e);if(!n)return;let r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}function Qie(e){return yC(Uv(),e)}function $ie(){return{node:eae()}}function eae(){return iy(RC)}function tae(e){return e instanceof RC}var nae,bC,xC,SC,CC,wC,TC,EC,rae,iae,aae,DC,OC,kC,AC,jC,MC,NC,PC,oae,sae,FC,cae,IC,LC,lae,RC;function zC(){return(zC=s((()=>{nC(),nae=Symbol.for(`preact-signals`),CC=0,wC=0,TC=0,EC=0,fC.prototype.brand=nae,fC.prototype.h=function(){return!0},fC.prototype.S=function(e){let t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t===void 0?Fie(()=>{var e;(e=this.W)==null||e.call(this)}):t.e=e)},fC.prototype.U=function(e){if(this.t!==void 0){let t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Fie(()=>{var e;(e=this.Z)==null||e.call(this)}))}},fC.prototype.subscribe=function(e){return Uie(()=>{let t=this.value,n=bC;bC=void 0;try{e(t)}finally{bC=n}},{name:`sub`})},fC.prototype.valueOf=function(){return this.value},fC.prototype.toString=function(){return this.value+``},fC.prototype.toJSON=function(){return this.value},fC.prototype.peek=function(){let e=bC;bC=void 0;try{return this.value}finally{bC=e}},Object.defineProperty(fC.prototype,"value",{get(){let e=Iie(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(wC>100)throw Error(`Cycle detected`);(function(e){CC!==0&&wC===0&&e.l!==TC&&(e.l=TC,SC={S:e,v:e.v,i:e.i,o:SC})})(this),this.v=e,this.i++,EC++,CC++;try{for(let e=this.t;e!==void 0;e=e.x)e.t.N()}finally{dC()}}}}),pC.prototype=new fC,pC.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===EC))return!0;if(this.g=EC,this.f|=1,this.i>0&&!Rie(this))return this.f&=-2,!0;let e=bC;try{zie(this),bC=this;let e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return bC=e,Bie(this),this.f&=-2,!0},pC.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let e=this.s;e!==void 0;e=e.n)e.S.S(e)}fC.prototype.S.call(this,e)},pC.prototype.U=function(e){if(this.t!==void 0&&(fC.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let e=this.s;e!==void 0;e=e.n)e.S.U(e)}},pC.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(pC.prototype,"value",{get(){if(1&this.f)throw Error(`Cycle detected`);let e=Iie(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),hC.prototype.c=function(){let e=this.S();try{if(8&this.f||this.x===void 0)return;let e=this.x();typeof e==`function`&&(this.m=e)}finally{e()}},hC.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,Vie(this),zie(this),CC++;let e=bC;return bC=this,Hie.bind(this,e)},hC.prototype.N=function(){2&this.f||(this.f|=2,this.u=xC,xC=this)},hC.prototype.d=function(){this.f|=8,1&this.f||mC(this)},hC.prototype.dispose=function(){this.d()};try{rae=`0.49.0+prod.esm`}catch{}iae=rae??`"+source"`,aae=new Set([`__proto__`,`constructor`,`prototype`]),DC=0,OC=1,kC=2,AC=3,jC=4,MC=5,NC=6,PC=7,oae=new Set,sae=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:DC}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):rb;for(let n of this.configs)e=t(e,n);return e}init(e){let t=this.state;qie(t)||gC(306,String(t.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=function(e,t,n){return Object.assign(e,{config:t,id:AC,registerState:n})}(t,this.mergeConfigs(),n),a;this.state=i,this.extension.init&&(a=this.extension.init(e,i.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:jC,initResult:t,registerState:n})}(i,a,r)}build(e){let t=this.state,n;t.id!==jC&&gC(307,String(t.id),String(MC)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));let r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:MC,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;let n=this.state;n.id!==MC&&gC(308,String(n.id),String(MC));let r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:NC})}(n),()=>{let e=this.state;e.id!==PC&&gC(309,String(n.id),String(PC)),this.state=function(e){return Object.assign(e,{id:MC})}(e),r&&r()}}afterRegistration(e){let t=this.state,n;return t.id!==NC&&gC(310,String(t.id),String(NC)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:PC})}(t),n}getSignal(){return this._signal===void 0&&gC(311),this._signal}getInitResult(){this.extension.init===void 0&&gC(312,this.extension.name);let e=this.state;return function(e){return e.id>=jC}(e)||gC(313,String(e.id),String(jC)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return function(e){return e.id>=AC}(e)||gC(314,String(e.id),String(AC)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&gC(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&gC(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return function(e){return e.id>=PC}(e)||gC(316,String(e.id),String(PC)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||oae}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;(function(e){return e.id>=MC})(e)||gC(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}},FC={tag:_S},cae=tb({config:nb({setOptions:FC,updateOptions:FC}),init:({$initialEditorState:e=Yie})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){let i=r.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:r}=i;if(Kne(r))e.setEditorState(r,n);else if(typeof r==`function`)e.update(()=>{r(e)},t);else if(r&&(typeof r==`string`||typeof r==`object`)){let t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:`@lexical/extension/InitialState`,nodes:[PS,yS,LS,xS,RS]}),IC=Symbol.for(`@lexical/extension/LexicalBuilder`),LC=iae,lae=class e{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=LC,this.roots=e;for(let t of e)this.addExtension(t)}static fromExtensions(t){let n=[vC(cae)];for(let e of t)n.push(vC(e));return new e(n)}static maybeFromEditor(t){let n=t[IC];return n&&(n.PACKAGE_VERSION!==LC&&gC(292,n.PACKAGE_VERSION,LC),n instanceof e||gC(293)),n}static fromEditor(t){let n=e.maybeFromEditor(t);return n===void 0&&gC(294),n}constructEditor(){let{$initialEditorState:e,onError:t,onWarn:n,...r}=this.buildCreateEditorArgs(),i=Object.assign(ere({...r,...t?{onError:e=>{t(e,i)}}:{},...n?{onWarn:e=>{n(e,i)}}:{}}),{[IC]:this});for(let e of this.sortedExtensionReps())e.build(i);return i}buildEditor(){let e=Xie;function t(){try{e()}finally{e=Xie}}let n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=sb(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&gC(295,e.name),t}addEdge(e,t,n){let r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){this._sortedExtensionReps!==void 0&&gC(296);let[t]=vC(e);typeof t.name!=`string`&&gC(297,typeof t.name);let n=this.extensionNameMap.get(t.name);if(n!==void 0&&n.extension!==t&&gC(298,t.name),!n){n=new sae(this,t),this.extensionNameMap.set(t.name,n);let e=this.conflicts.get(t.name);typeof e==`string`&&gC(299,t.name,e);for(let e of t.conflictsWith||[])this.extensionNameMap.has(e)&&gC(299,t.name,e),this.conflicts.set(e,t.name);for(let e of t.dependencies||[]){let n=vC(e);this.addEdge(t.name,n[0].name,n.slice(1)),this.addExtension(n)}for(let[e,n]of t.peerDependencies||[])this.addEdge(t.name,e,n?[n]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(n,r)=>{let i=n.state;if(qie(i))return;let a=n.extension.name;var o;_C(i)||gC(300,a,r||`[unknown]`),_C(o=i)||gC(304,String(o.id),String(DC)),i=Object.assign(o,{id:OC}),n.state=i;let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let n=this.extensionNameMap.get(e);n&&t(n,a)}i=Jie(i),n.state=i,e.push(n)};for(let e of this.extensionNameMap.values())_C(e.state)&&t(e);for(let t of e)for(let[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of n)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let n=this.extensionNameMap.get(e.name);n===void 0&&gC(301,e.name);for(let e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],i=n.signal;for(let n of t){let t=n.register(e,i);t&&r.push(t)}for(let n of t){let t=n.afterRegistration(e);t&&r.push(t)}return sb(...r)}buildCreateEditorArgs(){let e={},t=new Set,n=new Map,r=new Map,i={},a={},o=this.sortedExtensionReps();for(let s of o){let{extension:o}=s;if(o.onError!==void 0&&(e.onError=o.onError),o.onWarn!==void 0&&(e.onWarn=o.onWarn),o.disableEvents!==void 0&&(e.disableEvents=o.disableEvents),o.parentEditor!==void 0&&(e.parentEditor=o.parentEditor),o.editable!==void 0&&(e.editable=o.editable),o.namespace!==void 0&&(e.namespace=o.namespace),o.$initialEditorState!==void 0&&(e.$initialEditorState=o.$initialEditorState),o.nodes)for(let e of Wie(o)){if(typeof e!=`function`){let t=n.get(e.replace);t&&gC(302,o.name,e.replace.name,t.extension.name),n.set(e.replace,s)}t.add(e)}if(o.html){if(o.html.export)for(let[e,t]of o.html.export.entries())r.set(e,t);o.html.import&&Object.assign(i,o.html.import)}o.theme&&Kie(a,o.theme)}Object.keys(a).length>0&&(e.theme=a),t.size&&(e.nodes=[...t]);let s=Object.keys(i).length>0,c=r.size>0;(s||c)&&(e.html={},s&&(e.html.import=i),c&&(e.html.export=r));for(let t of o)t.init(e);return e.onError||=Zie,e}},RC=class extends NS{$config(){return this.config(`horizontalrule`,{importDOM:{hr:()=>({conversion:$ie,priority:0})}})}exportDOM(){return{element:Av().createElement(`hr`)}}createDOM(e){let t=Av().createElement(`hr`);return ab(t,e.theme.hr),t}getTextContent(){return` `}isInline(){return!1}updateDOM(){return!1}},Date.now})))()}function BC(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function uae(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function dae(e){return UC&&UC.editor===e?UC:void 0}function fae(e,t){if(`cfg`in t){let{cfg:n,updater:r}=t;return[n,r(uae(e,n))]}return t}function pae(e,t){let n=t;for(let r of e){let[e,i]=fae(n,r),a=e.key;if(n===t&&uae(n,e)===i)continue;let o=n===t||n===void 0?mae(t):n;o[a]=i,n=o}return n}function mae(e){return Object.create(e||null)}function hae(e,t){return[e,t]}function gae(e,t,n,r=Uv()){let i=UC,a=dae(r);try{return UC={...a,editor:r,[e]:t},n()}finally{UC=i}}function _ae(e,t=()=>{}){return(n,r=Uv())=>i=>{let a=dae(r),o=a&&a[e],s=pae(n,o||t(r));return s&&s!==o?gae(e,s,i,r):i()}}function vae(e,t,n,r){return Object.assign(Sh(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function yae(e){if(!H_(e))return;let t=e;if(t.querySelector(`style`)===null)return;let n=new Map;function r(e){let t=n.get(e);if(t===void 0){t=new Set;for(let n=0;n{for(let n of r)if(!n(e,t))return!1;return!0}),tags:e};var r;let i=n=>VC(e,[...t,n]);return{[KC]:n,attr:(e,t,n)=>i(HC(e,t,n)),classAll:(...e)=>i(Tae(e)),classAny:(...e)=>i(function(e){let t=wae(e);return t.length===0?()=>!1:e=>{if(!Lv(e))return!1;let n=e.classList;for(let e of t)if(n.contains(e))return!0;return!1}}(e)),styleAny:(e,t,n)=>i(function(e,t,n){if(typeof t==`string`)return n=>Lv(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!Lv(t))return!1;let a=t.style.getPropertyValue(e);if(!a)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}BC(362,JSON.stringify(e))}(e,t,n))}}function wae(e){let t=[];for(let n of e)n&&t.push(n);return t}function Tae(e){let t=wae(e);return t.length===0?()=>!0:e=>{if(!Lv(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function HC(e,t,n){if(!0===t)return t=>Lv(t)&&t.hasAttribute(e);if(typeof t==`string`)return n=>Lv(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!Lv(t))return!1;let a=t.getAttribute(e);if(a==null)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}BC(361,JSON.stringify(e))}function Eae(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),e.peek()===`*`)e.consume();else if(JC.test(e.peek())){let n=e.readIdent();n&&t.add(n.toUpperCase())}for(;!e.eof();){let t=e.peek();if(t===`.`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected class name after "."`),r.push(t)}else if(t===`#`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected id after "#"`),n.push(HC(`id`,t))}else{if(t!==`[`)break;{e.consume(),e.skipWhitespace();let t=e.readIdent();e.assert(t!==``,`expected attribute name after "["`),e.skipWhitespace();let r=!0;if(e.peek()===`=`){e.consume(),e.skipWhitespace();let t=e.peek();t===`"`||t===`'`?r=e.readQuoted():(r=e.readIdent(),e.assert(r!==``,`expected attribute value`)),e.skipWhitespace()}e.assert(e.peek()===`]`,`expected "]"`),e.consume(),n.push(HC(t,r))}}}return r.length>0&&n.push(Tae(r)),{predicates:n,tags:t}}function Dae(e){let t=new Bae(e,0),n=[];for(;;){let e=Eae(t);if(n.push(e),t.skipWhitespace(),t.eof())break;t.assert(t.peek()===`,`,`expected "," (selector lists are the only supported combinator)`),t.consume(),t.skipWhitespace()}if(n.length===1)return VC(n[0].tags,n[0].predicates);let r=new Set;if(n.every(e=>e.tags.size>0))for(let e of n)for(let t of e.tags)r.add(t);return VC(r,[(e,t)=>{for(let r of n){let n=e.nodeName;if(r.tags.size>0&&!r.tags.has(n))continue;let i=!0;for(let n of r.predicates)if(!n(e,t)){i=!1;break}if(i)return!0}return!1}])}function Oae(e,t){yae(t);let n=H_(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(let t of n)if(!ZC.has(t.nodeName)){let n=Mae(t,e,i,!1);if(n!==null)for(let e of n)r.push(e)}return function(e){for(let t of e)t.getParent()&&t.getNextSibling()instanceof IS&&t.insertAfter(E_());for(let t of e){let e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function kae(e,t=null,n=Uv()){return Fae([hae(Pae,!0)],n)(()=>{let r=Z_(),i=Cae(n),a=Q(t)?dy(t.anchor.getNode()):null,o=e.append.bind(e);for(let e of($(a)?a:r).getChildren())jae(n,e,o,t,i);return e})}function Aae(e,t=null){return(typeof document>`u`||typeof window>`u`&&global.window===void 0)&&BC(338),jne(e),kae(Av().createElement(`div`),t,e).innerHTML}function jae(e,t,n,r=null,i=Wv(e)){let a=i.$shouldInclude(t,r,e),o=i.$shouldExclude(t,r,e),s=t;r!==null&&Hg(t)&&(s=_ie(r,t,`clone`));let{element:c,after:l,append:u,$getChildNodes:d}=i.$exportDOM(s,e);if(!c)return!1;let f=Av().createDocumentFragment(),p=d?d():$(s)?s.getChildren():[],m=a&&Jg(r)&&$(t)?null:r,h=f.append.bind(f);for(let n of p){let o=jae(e,n,h,m,i);!a&&o&&i.$extractWithChild(t,n,r,`html`,e)&&(a=!0)}if(a&&!o){if((Lv(c)||zv(c))&&(u?u(f):c.append(f)),n(c),l){let e=l.call(s,c);e&&(zv(c)?c.replaceChildren(e):c.replaceWith(e))}}else n(f);return a}function Mae(e,t,n,r,i=new Map,a){let o=[];if(ZC.has(e.nodeName))return o;let s=null,c=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=(s==null||!yv(s))&&(s!=null&&Qg(s)||r);for(let e=0;e{let e=new IS;return n.push(e),e}:k_)),s==null){if(f.length>0)for(let e of f)o.push(e);else Vv(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:Bv(e.nextSibling)&&Bv(e.previousSibling)}(e)&&o.push(E_())}else $(s)&&s.append(...f);return o}function Nae(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e{oC(),nC(),uC(),zC(),WC=`@lexical/html/DOM`,GC=Symbol.for(`@lexical/html/DOMExportContext`),Pae=bae(`isExport`,Boolean),Fae=_ae(GC,xae),KC=Symbol.for(`@lexical/html/SelectorImpl`),Iae={kind:`text`,predicate:V_,tags:new Set},Lae={[KC]:Iae},Rae={kind:`comment`,predicate:e=>e.nodeType===8,tags:new Set},zae={[KC]:Rae},qC={any:()=>VC(new Set,[]),comment:()=>zae,tag(...e){e.length>0||BC(363);let t=new Set;for(let n of e)t.add(n.toUpperCase());return VC(t,[])},text:()=>Lae},JC=/[A-Za-z0-9_-]/,Bae=class{constructor(e,t){this.source=e,this.pos=t}peek(e=0){return this.source[this.pos+e]||``}consume(){return this.source[this.pos++]||``}eof(){return this.pos>=this.source.length}skipWhitespace(){for(;!this.eof()&&/\s/.test(this.peek());)this.pos++}readIdent(){let e=this.pos;for(;!this.eof()&&JC.test(this.peek());)this.pos++;return this.source.slice(e,this.pos)}readQuoted(){let e=this.consume();this.assert(e===`"`||e===`'`,`expected quote`);let t=this.pos;for(;!this.eof()&&this.peek()!==e;)this.peek()===`\\`?this.pos+=2:this.pos++;this.assert(!this.eof(),`unterminated string`);let n=this.source.slice(t,this.pos);return this.pos++,n.replace(/\\(.)/g,`$1`)}assert(e,t){e||BC(364,String(this.pos+1),t,this.source)}},YC=qC,YC.tag(`b`,`strong`,`em`,`i`,`code`,`mark`,`s`,`sub`,`sup`,`u`,`span`),YC.text(),YC.tag(`script`,`style`),YC.tag(`br`),YC.tag(`p`),YC.tag(`hr`),YC.any(),Object.freeze([]),Object.freeze({}),qC.any(),XC={any:qC.any,comment:qC.comment,css:Dae,tag:qC.tag,text:qC.text},ZC=new Set([`STYLE`,`SCRIPT`])})))()}function $C(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Vae(e,t){let n=e;for(let r=Ty(e,t);r&&(sw(r.origin)||Gg(r.origin));r=r.getAdjacentCaret())n=r.origin;return n}function ew(e){return Vae(e,`previous`)}function tw(e){return Vae(e,`next`)}function Hae(e){let t=ew(e),n=tw(e),r=t;for(;r!==null;){if(sw(r)){let e=rre(r.getTextContent());if(e!==null)return e}if(r===n)break;r=r.getNextSibling()}let i=t.getParent();if($(i)){let e=i.getDirection();if(e===`ltr`||e===`rtl`)return e}return null}function Uae(e,t){let n=null,r=null,i=e,a=t,o=e.getTextContent();for(;;){if(a===0){let e=i.getPreviousSibling();if(e===null){i=null;break}if(sw(e)||Gg(e)||D_(e)||$C(167),i=e,D_(i)){n={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else a--;let e=o[a];sw(i)&&e!==` `&&(r={node:i,offset:a})}if(r!==null)return r;let s=null;if(tt.push(E_()),tab:()=>t.push(Wg()),text:e=>t.push(ow(e))}),t}function Kae(e,t,n){if(!Number.isInteger(t)||t<=0)return!1;let r=e.getTextContent(),i=/^ +/.exec(r);if(!i)return!1;let a=Math.min(t,i[0].length),o=e.getKey(),s=n.anchor.key===o&&n.anchor.type===`text`?n.anchor.offset:null,c=n.focus.key===o&&n.focus.type===`text`?n.focus.offset:null;return e.spliceText(0,a,``),s!==null&&n.anchor.set(o,Math.max(0,s-a),`text`),c!==null&&n.focus.set(o,Math.max(0,c-a),`text`),!0}function qae(e,t){for(let n of e.childNodes)if(Lv(n)&&n.tagName===t||qae(n,t))return!0;return!1}function nw(e,t){return iy(fw).setLanguage(e).setTheme(t)}function rw(e){return e instanceof fw}function Jae(e){return{node:nw(e.getAttribute(lw))}}function Yae(e){let t=e,n=Qae(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(Qae(t))return!0;t=t.parentElement}return!1}(t)?{node:n?nw():null}:{node:null}}function Xae(){return{node:nw()}}function Zae(){return{node:null}}function Qae(e){return e.style.fontFamily.match(`monospace`)!==null}function iw(e){return e.classList.contains(`js-file-line-container`)}function $ae(e){let{anchor:t}=e;if(e.isCollapsed()&&t.type===`element`){let e=t.getNode();if(rw(e)){let n=e.getChildrenSize();if(n>=2&&t.offset===n){let t=e.getLastChild();if(D_(t)&&D_(t.getPreviousSibling())){let t=k_();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}function aw(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function ow(e=``,t){return xv(new pw(e,t))}function sw(e){return e instanceof pw}function cw(e){if(!Q(e))return!1;let t=e.anchor.getNode(),n=rw(t)?t:t.getParent(),r=e.focus.getNode(),i=rw(r)?r:r.getParent();return rw(n)&&n.is(i)}function eoe(e){let t=e.getNodes(),n=[];if(t.length===1&&rw(t[0]))return n;let r=[];for(let e=0;e0&&(n.push(r),r=[]):r.push(i)}if(r.length>0){let t=e.isBackward()?e.anchor:e.focus,i=Kg(r[0].getKey(),0,`text`);t.is(i)||n.push(r)}return n}function toe(e,t){let n=n_();if(!Q(n)||!cw(n))return!1;let r=eoe(n),i=r.length;if(i===0&&n.isCollapsed())return e===$x&&n.insertNodes([Wg()]),!0;if(i===0&&e===$x&&n.getTextContent()===` `){let e=Wg(),t=E_(),r=n.isBackward()?`previous`:`next`;return n.insertNodes([e,t]),Hy(Zy(Ny(Ey(e,`next`,0),Jy(Ty(t,`next`))),r)),!0}for(let a=0;a0){let r=i[0];if(a===0&&(r=ew(r)),e===$x){let e=Wg();if(r.insertBefore(e),a===0){let t=n.isBackward()?`focus`:`anchor`,i=Kg(r.getKey(),0,`text`);n[t].is(i)&&n[t].set(e.getKey(),0,`text`)}}else Gg(r)?r.remove():t!==void 0&&sw(r)&&Kae(r,t,n)}}return!0}function noe(e,t){let n=n_();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.offset,o=i.offset,s=r.getNode(),c=i.getNode(),l=e===Wx;if(!cw(n)||!sw(s)&&!Gg(s)||!sw(c)&&!Gg(c))return!1;if(!t.altKey){if(n.isCollapsed()){let e=s.getParentOrThrow();if(l&&a===0&&s.getPreviousSibling()===null){if(e.getPreviousSibling()===null)return e.selectPrevious(),t.preventDefault(),!1}else if(!l&&a===s.getTextContentSize()&&s.getNextSibling()===null&&e.getNextSibling()===null)return e.selectNext(),t.preventDefault(),!1}return!1}let u,d;if(s.isBefore(c)?(u=ew(s),d=tw(c)):(u=ew(c),d=tw(s)),u==null||d==null)return!1;let f=u.getNodesBetween(d);for(let e=0;ee.remove()),e===Wx?(f.forEach(e=>h.insertBefore(e)),h.insertBefore(p)):(h.insertAfter(p),h=p,f.forEach(e=>{h.insertAfter(e),h=e})),n.setTextNodeRange(s,a,c,o),!0}function roe(e,t){let n=n_();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),s=e===Ux;if(!cw(n)||!sw(a)&&!Gg(a)||!sw(o)&&!Gg(o))return!1;let c=o,l=Hae(c)===`rtl`?!s:s,u=r.key,d=r.offset,f=r.type;if(l){let e=Uae(c,i.offset);if(e!==null){let{node:t,offset:r}=e;D_(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else c.getParentOrThrow().selectStart()}else Wae(c).select();return t.shiftKey&&n.anchor.set(u,d,f),t.preventDefault(),t.stopPropagation(),!0}function ioe(e,t,n){return sb(...n?[e.registerCommand(Gx,e=>!e.altKey&&Mie(rw,e),1),e.registerCommand(Bx,e=>Mie(rw,e),1),e.registerCommand(Wx,e=>!e.altKey&&jie(rw,e),1),e.registerCommand(Hx,e=>jie(rw,e),1)]:[],e.registerCommand(Zx,t=>{let n=function(e){let t=n_();if(!Q(t)||!cw(t))return null;let n=e?eS:$x,r=e?eS:Qx,i=t.anchor,a=t.focus;if(i.is(a))return r;let o=eoe(t);if(o.length!==1)return n;let s=o[0],c,l;s.length===0&&$C(285),t.isBackward()?(c=a,l=i):(c=i,l=a);let u=ew(s[0]),d=tw(s[0]),f=Kg(u.getKey(),0,`text`),p=Kg(d.getKey(),d.getTextContentSize(),`text`);return c.isBefore(f)||p.isBefore(l)?n:f.isBefore(c)||l.isBefore(p)?r:n}(t.shiftKey);return n!==null&&(t.preventDefault(),e.dispatchCommand(n),!0)},1),e.registerCommand(Qx,()=>!!cw(n_())&&(s_([Wg()]),!0),1),e.registerCommand($x,()=>toe($x),1),e.registerCommand(eS,()=>toe(eS,t),1),e.registerCommand(Wx,e=>{let t=n_();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();if(!cw(t))return!1;let i=r.getParent();return t.isCollapsed()&&n.offset===0&&r.getPreviousSibling()===null&&rw(i)&&i.getPreviousSibling()===null?(e.preventDefault(),!0):noe(Wx,e)},1),e.registerCommand(Gx,e=>{let t=n_();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();return!!cw(t)&&(t.isCollapsed()&&n.offset===r.getTextContentSize()&&r.getNextSibling()===null&&rw(r.getParentOrThrow())&&r.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):noe(Gx,e))},1),e.registerCommand(Ux,e=>roe(Ux,e),1),e.registerCommand(Vx,e=>roe(Vx,e),1))}var aoe,lw,uw,dw,fw,pw;function mw(){return(mw=s((()=>{QC(),nC(),zC(),uC(),aoe=`javascript`,lw=`data-language`,uw=`data-highlight-language`,dw=`data-theme`,fw=class extends MS{__language;__theme;__isSyntaxHighlightSupported;$config(){return this.config(`code`,{extends:MS,importDOM:{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||qae(e,`BR`))?{conversion:Jae,priority:1}:null,div:()=>({conversion:Yae,priority:1}),pre:()=>({conversion:Jae,priority:0}),table:e=>iw(e)?{conversion:Xae,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&iw(n)?{conversion:Zae,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&iw(t)?{conversion:Zae,priority:3}:null}}})}constructor(e=void 0,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=Av().createElement(`code`);ab(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(lw,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(uw,n));let r=this.getTheme();r&&t.setAttribute(dw,r);let i=this.getStyle();return i&&jg(t.style,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(lw,r):i&&t.removeAttribute(lw);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(uw,r):t.removeAttribute(uw):a&&r&&t.setAttribute(uw,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(dw,o):s&&t.removeAttribute(dw);let c=this.__style,l=e.__style;return c!==l&&jg(t.style,c,l),!1}exportDOM(e){let t=Av().createElement(`pre`);ab(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(lw,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(uw,n));let r=this.getTheme();r&&t.setAttribute(dw,r);let i=this.getStyle();return i&&jg(t.style,i),{element:t}}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){if(!yC(Uv(),`@lexical/code`)){let t=$ae(e);if(t)return t}let{anchor:n,focus:r}=e,i=(n.isBefore(r)?n:r).getNode();if(Hg(i)){let e=ew(i),t=[];for(;;)if(Gg(e))t.push(Wg()),e=e.getNextSibling();else{if(!sw(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;ne.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}},pw=class extends yS{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}$config(){return this.config(`code-highlight`,{extends:yS})}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return ab(t,aw(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=aw(n.theme,e.__highlightType),a=aw(n.theme,this.__highlightType);return i!==a&&(i&&ob(t,i),a&&ab(t,a)),r}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return nw()}},XC.tag(`tr`,`td`),XC.tag(`pre`),XC.tag(`code`),XC.tag(`div`),XC.tag(`div`,`br`),XC.tag(`div`),XC.tag(`table`).classAll(`js-file-line-container`),XC.tag(`td`).classAll(`js-file-line`)})))()}function ooe(){return(ooe=s((()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}})))()}function soe(){return(soe=s((()=>{Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript})))()}function coe(){return(coe=s((()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml})))()}function loe(){return(loe=s((()=>{(function(e){function t(e){return e=e.replace(//g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:t(`\\b__(?:(?!_)|_(?:(?!_))+_)+__\\b|\\*\\*(?:(?!\\*)|\\*(?:(?!\\*))+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)|__(?:(?!_))+__)+_\\b|\\*(?:(?!\\*)|\\*\\*(?:(?!\\*))+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~))+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:t(`!?\\[(?:(?!\\]))+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\]))+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(a,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?s(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):o[t]||e}),t}e.languages.md=e.languages.markdown})(Prism)})))()}function uoe(){return(uoe=s((()=>{Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean})))()}function doe(){return(doe=s((()=>{(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism)})))()}function foe(){return(foe=s((()=>{Prism.languages.objectivec=Prism.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec[`class-name`],Prism.languages.objc=Prism.languages.objectivec})))()}function poe(){return(poe=s((()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}})))()}function moe(){return(moe=s((()=>{(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism)})))()}function hoe(){return(hoe=s((()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python})))()}function goe(){return(goe=s((()=>{(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|)*\\*\\/`,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism)})))()}function _oe(){return(_oe=s((()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})})))()}function voe(){return(voe=s((()=>{(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism)})))()}function yoe(){return(yoe=s((()=>{(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(//g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)})))()}function boe(){return(boe=s((()=>{(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(//g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!)\\w+`.replace(//g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`(?:\\s*:\\s*)?|:\\s*`.replace(//g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism)})))()}function xoe(e){let t=function(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e)||e;try{return!!t&&_w.languages.hasOwnProperty(t)}catch{return!1}}async function Soe(e,t,n){}function hw(e){return typeof e==`string`?e:Array.isArray(e)?e.map(hw).join(``):hw(e.content)}function Coe(e,t){let n=/^diff-([\w-]+)/i.exec(t),r=e.getTextContent(),i=_w.tokenize(r,_w.languages[n?`diff`:t]);return n&&(i=function(e,t){let n=t,r=_w.languages[n],i={tokens:e},a=_w.languages.diff.PREFIXES;for(let e of i.tokens){if(typeof e==`string`||!(e.type in a)||!Array.isArray(e.content))continue;let t=e.type,n=0,i=()=>(n++,new _w.Token(`prefix`,a[t],t.replace(/^(\w+).*/,`$1`))),o=e.content.filter(e=>typeof e==`string`||e.type!==`prefix`),s=e.content.length-o.length,c=_w.tokenize(hw(o),r);c.unshift(i());let l=/\r\n|\n/g,u=e=>{let t=[];l.lastIndex=0;let r,a=0;for(;n{for(let t=0;tn.push(E_()),tab:()=>n.push(Wg()),text:e=>n.push(ow(e,t))});else{let{content:e,alias:t}=r;typeof e==`string`?n.push(...gw([e],r.type===`prefix`&&typeof t==`string`?t:r.type)):Array.isArray(e)&&n.push(...gw(e,r.type===`unchanged`?void 0:r.type))}return n}function woe(e,t,n,r){let i=r.getParent();rw(i)?Eoe(e,t,n,i):sw(r)&&r.replace(Vg(r.__text))}function Toe(e,t){let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;e{n.didTransform=!1,i.clear()})),function(e,t){let n=J_(e);if(!rw(n)||!n.isAttached())return;let r=n_();if(!Q(r))return void t();let i=r.anchor,a=i.offset,o=i.type===`element`&&D_(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o)return void i.getNode().select(a,a);n.getChildren().some(e=>{let t=Hg(e);if(t||D_(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}}(a,()=>{let e=J_(a);if(!rw(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,i=t.$tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=function(e,t){let n=0;for(;n{e.read(`latest`,()=>{for(let[n,r]of t)if(r!==`destroyed`){let t=J_(n);t!==null&&Toe(t,e)}})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set};return n.push(e.registerNodeTransform(fw,Eoe.bind(null,e,t,r)),e.registerNodeTransform(yS,woe.bind(null,e,t,r)),e.registerNodeTransform(pw,woe.bind(null,e,t,r))),sb(...n)}function koe(e,t=vw){if(!e.hasNodes([fw,pw]))throw Error(`CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor`);return sb(Ooe(e,t),ioe(e))}var _w,vw;function yw(){return(yw=s((()=>{mw(),nC(),uh(),ooe(),soe(),coe(),loe(),uoe(),doe(),foe(),poe(),moe(),hoe(),goe(),_oe(),voe(),yoe(),boe(),(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r ?| |(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(Prism),Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go[`class-name`],_w=globalThis.Prism||window.Prism,vw={$tokenize(e,t){let n=t||this.defaultLanguage;return n===null?Gae(e.getTextContent()):Coe(e,n)},defaultLanguage:aoe,tokenize(e,t){let n=this.defaultLanguage;return _w.tokenize(e,_w.languages[t||``]||(n===null?void 0:_w.languages[n]))}}})))()}function bw(){return(bw=s((()=>{yw(),mw()})))()}function Aoe(e,t,n){let r=function(e){let t=e[Cw];return t===void 0&&(t={dispose:()=>{},editors:new Map,installs:new Set},e[Cw]=t),t}(e);if(r.installs.size===0){let t=Noe.bind(e);e.addEventListener(`message`,t,!0),r.dispose=()=>{e.removeEventListener(`message`,t,!0)}}if(r.installs.add(t),n){let e=r.editors.get(n)||new Set;e.add(t),r.editors.set(n,e)}return joe.bind(null,e,r,t,n)}function joe(e,t,n,r){if(r){let e=t.editors.get(r);e&&e.delete(n)&&e.size===0&&t.editors.delete(r)}t.installs.delete(n)&&t.installs.size===0&&(t.dispose(),delete e[Cw])}function xw(e){return e&&e.ownerDocument.defaultView}function Moe(e){let t=Gie(()=>xw(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=xw(e)}));return Uie(()=>{let n=t.value;if(n)return Aoe(n,Symbol(`@lexical/dragon/editorInstall`),e)})}function Noe(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[Cw];if(t===void 0)return null;let n=R_(Pv(e.document));return I_(n)&&t.editors.has(n)?n:null}(this);if(t===null)return;let n=e.data;if(typeof n==`string`){let r;try{r=JSON.parse(n)}catch{return}if(r&&r.protocol===`nuanria_messaging`&&r.type===`request`){let n=r.payload;if(n&&n.functionId===`makeChanges`){let r=n.args;if(Array.isArray(r)){let[n,i,a,o,s,c]=r;if(![n,i,o,s].every(Number.isFinite)||typeof a!=`string`&&a!==-1)return;t.update(()=>{let t=n_();if(Q(t)){let r=t.anchor,l=r.getNode(),u=0,d=0;if(Hg(l)&&n>=0&&i>=0&&(u=n,d=n+i,t.setTextNodeRange(l,u,l,d)),typeof a!=`string`||u===d&&a===``||(t.insertRawText(a),l=r.getNode()),Hg(l)){let e=l.getTextContentSize();u=Math.min(Math.max(o,0),e),d=o<0||s<0?u:Math.min(o+s,e),t.setTextNodeRange(l,u,l,d)}if(typeof c==`string`&&s>0&&!t.isCollapsed()){let e=Sw[c];e!==void 0&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}var Sw,Cw;function ww(){return(ww=s((()=>{zC(),nC(),Sw={bold:`bold`,italic:`italic`,strikeThrough:`strikethrough`,subscript:`subscript`,superscript:`superscript`,underline:`underline`},Cw=Symbol.for(`@lexical/dragon/WindowState`)})))()}function Poe(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return 0;let a=t._selection,o=e._selection;if(i)return 1;if(!(Q(a)&&Q(o)&&o.isCollapsed()&&a.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||C_(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&Hg(r)&&r.__text.length===1&&a.anchor.offset===1?2:0}let c=s[0],l=e._nodeMap.get(c.__key);if(!Hg(l)||!Hg(c)||l.__mode!==c.__mode)return 0;let u=l.__text,d=c.__text;if(u===d)return 0;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return 0;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?2:g===-1&&h===m+1?3:g===-1&&h===m?4:0}function Foe(e,t,n){let r=n(),i=0,a=r,o=0,s=null;return(c,l,u,d,f,p)=>{let m=n();if(p.has(`composition-start`)&&(a=r,o=i,s=c),p.has(`historic`))return i=0,r=m,2;p.has(`composition-end`)&&s&&(r=a,i=o,c=s);let h=p.has(`paste`)||p.has(`cut`)?0:Poe(c,l,d,f,e.isComposing()),g=(()=>{let n=u===null||u.editor===e,a=p.has(Jre);if(!a&&n&&p.has(`history-merge`))return 0;if(h===1)return 2;if(c===null)return 1;let o=l._selection;if(!(d.size>0||f.size>0))return o===null?2:0;let s=typeof t==`number`?t:t.peek();return!1===a&&h!==0&&h===i&&mr.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(d)[0],c,l)?0:1})();return r=m,i=h,g}}function Tw(e,t){e.undoStack=[],e.redoStack=[],e.current=null,t&&t(e)}function Ioe(e,t,n,r=Date.now,i,a=null){let o=Foe(e,n,r),s=()=>{i&&i(t)};return s(),sb(e.registerCommand(Lx,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(i.length!==0){let a=t.current,o=i.pop();a!==null&&(r.push(a),e.dispatchCommand(sS,!0)),i.length===0&&e.dispatchCommand(cS,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(Rx,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(r.length!==0){let a=t.current;a!==null&&(i.push(a),e.dispatchCommand(cS,!0));let o=r.pop();r.length===0&&e.dispatchCommand(sS,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(Hre,()=>(Tw(t,i),!1),0),e.registerCommand(Ure,()=>(Tw(t,i),e.dispatchCommand(sS,!1),e.dispatchCommand(cS,!1),!0),0),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:c,tags:l})=>{let u=t.current,d=t.redoStack,f=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&n===p)return;let m=o(r,n,u,i,c,l);if(m===1){if(d.length!==0&&(t.redoStack=[],e.dispatchCommand(sS,!1)),u!==null){f.push({...u});let t=typeof a==`number`||a===null?a:a.peek();t!==null&&f.length>t&&f.splice(0,f.length-t),e.dispatchCommand(cS,!0)}}else if(m===2)return;t.current={editor:e,editorState:n},s()}))}function Loe(){return{current:null,redoStack:[],undoStack:[]}}function Ew(){return(Ew=s((()=>{zC(),nC(),Date.now})))()}function Roe(e){let t=null;if(Iv(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=Dw(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function Dw(e=``,t){return xv(new Nw(e,t))}function Ow(e){return e instanceof Nw}function zoe(e=``,t){return xv(new Pw(e,t))}function kw(e){return e instanceof Pw}function Aw(e,t){if(e.type===`element`){let n=e.getNode();return $(n)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Boe(e,t={}){let n;if(e&&typeof e==`object`){let{url:r,...i}=e;n=r,t={...i,...t}}else n=e;let{target:r,title:i}=t,a=t.rel===void 0?`noreferrer`:t.rel,o=n_();if(o===null||!Q(o)&&!Jg(o))return;if(Jg(o)){let e=o.getNodes();if(e.length===0)return;e.forEach(e=>{if(n===null){let t=JS(e,e=>!kw(e)&&Ow(e));t&&(t.insertBefore(e),t.getChildren().length===0&&t.remove())}else{let t=JS(e,e=>!kw(e)&&Ow(e));if(t)t.setURL(n),r!==void 0&&t.setTarget(r),a!==void 0&&t.setRel(a);else{let t=Dw(n,{rel:a,target:r});e.insertBefore(t),t.append(e)}}});return}if(o.isCollapsed()&&n===null)for(let e of o.getNodes()){let t=JS(e,e=>!kw(e)&&Ow(e));t!==null&&(t.getParentOrThrow().splice(t.getIndexWithinParent(),0,t.getChildren()),t.remove());return}let s=o.extract();if(n===null){let e=new Set;s.forEach(t=>{let n=JS(t,e=>!kw(e)&&Ow(e));if(n!==null){let t=n.getKey();if(e.has(t))return;(function(e,t){let n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),i=r=>n.has(r.getKey())||$(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),a=r.filter(i);if(a.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();let o=r.findIndex(i),s=r.findLastIndex(i),c=o===0,l=s===r.length-1;if(c)a.forEach(t=>e.insertBefore(t));else if(l)for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);else{for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);let t=r.slice(s+1);if(t.length>0){let n=bv(e);a[a.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}})(n,s),e.add(t)}});return}let c=new Set,l=e=>{c.has(e.getKey())||(c.add(e.getKey()),e.setURL(n),r!==void 0&&e.setTarget(r),a!==void 0&&e.setRel(a),i!==void 0&&e.setTitle(i))};if(s.length===1){let e=s[0],t=JS(e,Ow);if(t!==null)return l(t)}(function(e){let t=n_();if(!Q(t))return e();let n=Ph(t),r=n.isBackward(),i=Aw(n.anchor,r?-1:0),a=Aw(n.focus,r?0:-1);if(e(),i||a){let e=n_();if(Q(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}Q_(Ph(t))}}})(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let o=JS(t,Ow);if(o){l(o);continue}if($(t)){if(!t.isInline())continue;if(Ow(t)){if(!(kw(t)||e!==null&&e.getParentOrThrow().isParentOf(t))){l(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();Ow(s)&&s.is(e)?s.append(t):(e=Dw(n,{rel:a,target:r,title:i}),t.insertAfter(e),e.append(t))}})}function jw(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:Iw.test(e)?`tel:${e}`:`https://${e}`}var Mw,Nw,Pw,Fw,Iw;function Lw(){return(Lw=s((()=>{nC(),QC(),Mw=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),Nw=class extends MS{__url;__target;__rel;__title;$config(){return this.config(`link`,{extends:MS,importDOM:{a:()=>({conversion:Roe,priority:1})}})}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){let t=Av().createElement(`a`);return this.updateLinkDOM(null,t,e),ab(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Iv(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){let t=e;e=jw(e);try{let t=new URL(jw(e));if(!Mw.has(t.protocol))return`about:blank`}catch{let e=t.replace(/[\u0000-\u001F\u007F\s]/g,``).match(/^([a-z][a-z0-9+.-]*):/i);if(e!=null&&!Mw.has(`${e[1].toLowerCase()}:`))return`about:blank`}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=bv(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Q(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return(this.is(r)||this.isParentOf(r))&&(this.is(i)||this.isParentOf(i))&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}},Pw=class extends Nw{__isUnlinked;constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}$config(){return this.config(`autolink`,{extends:Nw})}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?Av().createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=zoe(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}},Fw=lg(`TOGGLE_LINK_COMMAND`),Iw=/^\+?[0-9\s()-]{5,}$/,XC.tag(`a`)})))()}function Rw(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Voe(e){let t=1,n=e.getParent();for(;n!=null;){if(Jw(n)){let e=n.getParent();if(Qw(e)){t++,n=e.getParent();continue}Rw(40)}return t}return t}function Hoe(e){let t=e.getParent();Qw(t)||Rw(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),Qw(r)&&(n=r);return n}function zw(e){return Jw(e)&&Qw(e.getFirstChild())}function Uoe(e,t){return Jw(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Bw(e){let t=n_();if(t!==null){let n=t.getNodes();if(Q(t)){let[r]=t.getStartEndPoints(),i=r.getNode(),a=i.getParent();if(yv(i)){let e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=k_();i.append(e),n=e.select().getNodes()}}else if(Uoe(i,n)){let t=Zw(e);if(yv(a)){i.replace(t);let e=qw();$(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Jw(i)){let e=i.getParentOrThrow();Vw(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t0&&e.append(...i),t.remove()}function Woe(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())Jw(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),Qw(r.getFirstChild())||n++)}function Goe(e){let t=new Set;if(zw(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(zw(r)&&zw(i)){let n=i.getFirstChild();if(Qw(n)){n.append(e);let i=r.getFirstChild();Qw(i)&&(Vw(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(zw(r)){let t=r.getFirstChild();if(Qw(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(zw(i)){let t=i.getFirstChild();Qw(t)&&t.append(e)}else if(Qw(n)){let t=bv(e),a=bv(n);t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function Ww(e){if(zw(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(Qw(n?n.getParent():void 0)&&Jw(n)&&Qw(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=bv(e),i=bv(t);r.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));let a=bv(e),o=bv(t);a.append(o),Vw(o,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(a),n.replace(e)}}}function Koe(e=!1){let t=n_();if(!Q(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode(),r=null;if(Jw(n)&&n.getChildrenSize()===0)r=n;else if(Hg(n)){let e=n.getParent();Jw(e)&&e.getChildren().every(e=>Hg(e)&&e.getTextContent().trim()===``)&&(r=e)}if(r===null)return!1;let i=Hoe(r),a=r.getParent();Qw(a)||Rw(40);let o=a.getParent(),s;if(yv(o))s=k_(),i.insertAfter(s);else{if(!Jw(o))return!1;s=bv(o),o.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();let c=r.getNextSiblings();if(c.length>0){let t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(a,r):1,n=bv(a).setStart(t);if(Jw(s)){let e=bv(s);e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...c)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!Jw(e)&&!Qw(e))break;t=e}t.remove()}(r),!0}function qoe(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return Gw(t)}if(e.classList.contains(`joplin-checkbox`)){for(let t of e.children)if(t.classList.contains(`checkbox-wrapper`)&&t.children.length>0&&t.children[0].tagName===`INPUT`)return Gw(t.children[0])}let t=e.getAttribute(`aria-checked`),n=qw(t===`true`||t!==`false`&&void 0);return Zv(n,e),{after:Kw.bind(null,n),node:Xv(n,e)}}function Gw(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=qw(e.hasAttribute(`checked`));return{after:Kw.bind(null,t),node:t}}function Kw(e,t){let n=t[0];return t.length===1&&A_(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function qw(e){return xv(new $w(void 0,e))}function Jw(e){return e instanceof $w}function Yw(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=Voe(n)-1,o=t%e.length,s=e[o],c=a[n.__tag],l,u=a.nested,d=a.checklist;if(u!==void 0&&u.list&&(l=u.list),c!==void 0&&r.push(c),d!==void 0&&n.__listType===`check`&&r.push(d),s!==void 0){r.push(...ib(s));for(let t=0;t1?r.push(...e):i.push(...e)}}i.length>0&&ob(e,...i),r.length>0&&ab(e,...r)}function Xw(e){let t;if(function(e){return Lv(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let n=e.start;t=Zw(`number`,n)}else t=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`)||e.getAttribute(`data-is-checklist`)===`1`)return!0;for(let t of e.childNodes)if(Lv(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?Zw(`check`):Zw(`bullet`);return Xv(t,e),{after:e=>function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t1&&e.forEach(e=>{Qw(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,t),node:t}}function Zw(e=`number`,t=1){return xv(new eT(e,t))}function Qw(e){return e instanceof eT}var $w,eT,tT,nT,rT;function iT(){return(iT=s((()=>{nC(),QC(),$w=class extends MS{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let t=e.getParent();if(Qw(t))t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(t){let n=e.createParentElementNode();Qw(n)||Rw(340);let r=[e];for(let t of[`previous`,`next`]){r.reverse();for(let{origin:n}of Ty(e,t)){if(!Jw(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),yv(t)||(eb(n,Gy(Ty(n,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:MS,importDOM:Dg({li:()=>({conversion:qoe,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=Av().createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){(function(e,t){let n=t.getParent();!Qw(n)||n.getListType()!==`check`||Qw(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))})(t,this),t.value=this.__value,function(e,t,n){let r=t.list;if(!r)return;let i=r.listitem,a=r.nested&&r.nested.listitem,o=n.getParent(),s=Qw(o)&&o.getListType()===`check`,c=n.getChecked(),l=n.getChildren().some(e=>Qw(e)),u=[];r.listitemChecked!==void 0&&u.push(r.listitemChecked),r.listitemUnchecked!==void 0&&u.push(r.listitemUnchecked),a!==void 0&&u.push(...ib(a)),u.length>0&&ob(e,...u);let d=[];if(i!==void 0&&d.push(...ib(i)),s){let e=c?r.listitemChecked:r.listitemUnchecked;e!==void 0&&d.push(e)}a!==void 0&&l&&d.push(...ib(a)),d.length>0&&ab(e,...d)}(t,n.theme,this);let r=e?e.__style:``,i=this.__style;r!==i&&jg(t.style,i,r),function(e,t,n){let r=t.__textStyle,i=n?n.__textStyle:``;if(n!==null&&i===r)return;let a=Ag(r);for(let t in a)e.style.setProperty(`--listitem-marker-${t}`,a[t]);if(i!==``)for(let t in Ag(i))t in a||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),zw(this)?{after(e){if(Lv(e)){let t=e.previousElementSibling;if(Lv(t)&&t.nodeName===`LI`){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;ti.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&zw(t)&&zw(n)&&(Uw(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=bv(this);return this.insertAfter(n,t),n}collapseAtStart(e){if(zw(this))return!1;let t=this.getParentOrThrow();if(Jw(t.getParentOrThrow()))return Ww(this),!0;let n=k_().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){let e=bv(t);e.append(...r),t.insertAfter(e)}return t.insertAfter(n),this.remove(),t.getChildrenSize()===0&&t.remove(),n.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return Qw(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;Jw(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&Rw(117),(e=Math.floor(e))>=0||Rw(199);let t=this.getIndent();for(;t!==e;)t{(function(e){let t=e.getNextSibling();Qw(t)&&e.getListType()===t.getListType()&&Uw(e,t)})(e),Woe(e)},extends:MS,importDOM:Dg({ol:()=>({conversion:Xw,priority:0}),ul:()=>({conversion:Xw,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=tT[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=Av().createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,Yw(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Yw(t,n.theme,this),e.__start!==this.__start&&t.setAttribute(`start`,String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return Lv(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e0;if(a&&typeof r.caretPositionFromPoint==`function`){let a=r.caretPositionFromPoint(e,t,{shadowRoots:i});if(a!==null&&function(e,t){for(let n=e;n!==null;){if(n===t)return!0;n=uv(n)}return!1}(a.offsetNode,n))return{node:a.offsetNode,offset:a.offset}}if(a){let i=n.getRootNode();if(Ev(i)){let a=i.elementFromPoint(e,t);if(a!==null&&n.contains(a)){let n=function(e,t,n,r){let i=r.createRange(),a=e=>te.bottom?t-e.bottom:0,o=t=>et.right?e-t.right:0,s=r.createTreeWalker(n,NodeFilter.SHOW_TEXT),c=null,l=1/0,u=1/0;for(let e=s.nextNode();e;e=s.nextNode()){i.selectNodeContents(e);for(let t of i.getClientRects()){let n=a(t),r=o(t);(ne}).createHTML(e):e}function Yoe(e,t,n,r){if(!e)return!1;let i=a=>!!e[a]&&e[a](t,n,i.bind(null,a-1),r);return i(e.length-1)}function sT(e,t,n){let r=t.getData(`text/plain`);for(let i of function(e){return Object.keys(e.$importMimeType).filter(t=>e.$importMimeType[t]!==void 0).sort((t,n)=>{let r=e.priority[t],i=e.priority[n];return r===void 0&&i===void 0?tn):r===void 0?1:i===void 0?-1:r-i})}(e)){let a=t.getData(i);if(a&&(i!==`text/html`||a!==r)&&Yoe(e.$importMimeType[i],a,n,t))return!0}return!1}function cT(e,t=n_()){return t??oT(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?``:Aae(e,t)}function lT(e,t=n_()){return t??oT(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify($oe(e,t))}function uT(e,t,n){(function(){let e=Qie(xT.name);return e?e.output:bT})().$insertDataTransfer(e,t)}function Xoe(e,t){let n={editorKey:t.getKey()};e.setData(ST,JSON.stringify(n))}function Zoe(e,t,n){let r=e.dataTransfer;if(r===null)return!1;let i=function(e){let t=e.getData(ST);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}return(r=n)!==null&&typeof r==`object`&&`editorKey`in r&&typeof r.editorKey==`string`?n:null;var r}(r);if(i===null)return!1;let a=function(e,t){let n=aT(e.clientX,e.clientY,t.getRootElement());if(n===null)return null;let r=X_(n.node);if(r===null)return null;if(Hg(r))return Ey(r,`next`,n.offset);if($(r))return Qy(r,n.offset,`next`);let i=r.getParent();return i===null?null:Qy(i,r.getIndexWithinParent()+1,`next`)}(e,t);if(a===null)return!1;let o=$y(a);if(o===null)return!1;let s=i.editorKey===t.getKey(),c=n_();if(s){if(!Q(c)||c.isCollapsed())return!1;if(function(e,t){let{anchor:n,focus:r}=Zy(Wy(t),`next`);return Fy(n,e)<0&&Fy(e,r)<0}(a,c))return e.preventDefault(),!0;c.removeText()}if(!o.origin.isAttached())return e.preventDefault(),!0;if(n(r,Hy(My(o)),t),!s){let e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){for(let n of Ov(t)){let t=R_(n);if(I_(t)&&t.getKey()===e&&Lv(n))return n}return null}(i.editorKey,n):null;r!==null&&r.dispatchEvent(new InputEvent(`beforeinput`,{bubbles:!0,cancelable:!0,inputType:`deleteByDrag`}))}return e.preventDefault(),!0}function Qoe(e,t){return Zoe(e,t,uT)}function dT(e,t,n){e.dispatchCommand(Sx,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Q(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=By(t,`previous`);if(r){if(Sy(r))n=r.origin;else{let e=Ny(r,ky(Z_(),`next`).getFlipped());for(let t of e){if(Hg(t.origin)){n=t.origin;break}if($(t.origin)&&!t.origin.isInline())break}}}if(n&&Hg(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}function fT(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=$(n)&&n.excludeFromCopy(`html`),o=n;t!==null&&Hg(o)&&(o=_ie(t,o,`clone`));let s=$(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&oT(58,n.name),$(e)){let e=t.children;Array.isArray(e)||oT(59,n.name)}return t}(o);Hg(o)&&o.getTextContentSize()===0&&(i=!1);let l=i&&Jg(t)&&$(n)?null:t;for(let r=0;r0){let n={};for(let r of t){let t=my(o,r);t===null&&oT(366,o.constructor.name,r);let i=[];fT(e,null,t,i),i.length===1&&i[0].type===t.getType()||oT(385,r,o.constructor.name,String(i.length),String(i.length>0?i[0].type:`none`)),n[r]=i[0]}c.$slots=n}}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e{e.update(()=>{r(mT(e,t,n))})});let r=e.getRootElement(),i=e._window||window,a=i.document,o=Tv(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.position=`fixed`,s.style.top=`-1000px`,s.append(a.createTextNode(`#`)),r.append(s);let c=a.createRange();return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise((t,r)=>{let o=e.registerCommand(iS,r=>(cC(r,ClipboardEvent)&&(o(),CT!==null&&(i.clearTimeout(CT),CT=null),t(mT(e,r,n))),!0),4);CT=i.setTimeout(()=>{o(),CT=null,t(!1)},50),a.execCommand(`copy`),s.remove()})}function mT(e,t,n){if(n===void 0){let t=Tv(e._window),r=n_();if(!r||r.isCollapsed()||!t)return!1;let i=Mv(t,e.getRootElement()),a=i.anchorNode,o=i.focusNode;if(a!==null&&o!==null&&!F_(e,a,o))return!1;n=hT(r)}t.preventDefault();let r=t.clipboardData;return r!==null&&(gT(r,n),!0)}function hT(e=n_()){return function(e,t){let n={"text/plain":``};for(let[r,i]of Object.entries(e))if(i){let e=nse(i,t);e!==null&&(n[r]=e)}return n}(tse(),e)}function gT(e,t){for(let[n]of wT)t[n]===void 0&&e.setData(n,``);for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function tse(e=Uv()){let t=yC(e,ET.name);return t?t.output:TT}function nse(e,t){let n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}var _T,vT,yT,bT,xT,ST,CT,wT,TT,ET;function DT(){return(DT=s((()=>{nC(),zC(),QC(),oC(),uC(),_T={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-list":30},vT=(e,t)=>{if(!Q(t))return t.insertRawText(e),!0;let n=e=>{let t=n_();Q(t)&&e(t)};return c_(e,{linebreak:()=>n(e=>e.insertParagraph()),tab:()=>n(e=>e.insertNodes([Wg()])),text:e=>n(t=>t.insertText(e))}),!0},yT={"application/x-lexical-editor":[(e,t,n)=>{try{let n=Uv(),r=JSON.parse(e);if(r&&r.namespace===n._config.namespace&&Array.isArray(r.nodes))return dT(n,ese(r.nodes),t),!0}catch(e){console.error(e)}return n()}],"text/html":[(e,t,n)=>{try{let n=Uv();return dT(n,Oae(n,new DOMParser().parseFromString(Joe(e),`text/html`)),t),!0}catch(e){return console.error(e),n()}}],"text/plain":[vT],"text/uri-list":[vT]},bT={$importMimeType:yT,$insertDataTransfer:(e,t)=>sT({$importMimeType:yT,priority:_T},e,t),priority:_T},xT=tb({build:(e,t)=>({$importMimeType:t.$importMimeType,$insertDataTransfer:(e,n)=>sT(t,e,n),priority:t.priority}),config:nb({$importMimeType:yT,priority:_T}),mergeConfig(e,t){let n=rb(e,t);if(t.$importMimeType){let r={...e.$importMimeType};for(let[e,n]of Object.entries(t.$importMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$importMimeType=r}return t.priority&&(n.priority={...e.priority,...t.priority}),n},name:`@lexical/clipboard/Import`}),ST=`application/x-lexical-drag`,CT=null,wT=[[`text/html`,cT],[`application/x-lexical-editor`,lT]],TT={"application/x-lexical-editor":[(e,t)=>e?lT(Uv(),e):t()],"text/html":[(e,t)=>e?cT(Uv(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]},ET=tb({build:(e,t,n)=>t.$exportMimeType,config:nb({$exportMimeType:TT}),mergeConfig(e,t){let n=rb(e,t);if(t.$exportMimeType){let r={...e.$exportMimeType};for(let[e,n]of Object.entries(t.$exportMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$exportMimeType=r}return n},name:`@lexical/clipboard/GetClipboardData`})})))()}function OT(e){let t=xv(new KT);return e&&e.shadowRoot?t.setIsShadowRoot(!0):t}function kT(e){return e instanceof KT}function AT(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function jT(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=MT(t),Yv(e,n),Zv(n,e),Xv(n,e)),{node:n}}function rse(e){let t=OT();return Zv(t,e),Yv(e,t),Xv(t,e),{node:t}}function MT(e=`h1`){return xv(new qT(e))}function NT(e){return e instanceof qT}function PT(e){return S_(X_(e))}function FT(e,t,n,r){let i=!1,a=null;if(e.isCollapsed()&&e.anchor.type===`text`){let t=e.anchor.getNode();if(Hg(t)){a=t;let r=e.anchor.offset,o=r===t.getTextContentSize()&&t.getNextSibling()===null,s=r===0&&t.getPreviousSibling()===null;i=n===`end`&&o||n===`start`&&s||n===`both`&&(o||s)}}let o=!1;for(let[n,s]of Object.entries(r)){if(s==null||!s[t])continue;let r=n;if(s.onlyAtBoundary){if(!(i&&a&&Hg(a)&&a.hasFormat(r)))continue;o=!0}e.hasFormat(r)&&e.toggleFormat(r)}o&&e.setStyle(``)}function IT(e,t){return function(e,t){if(!e.isCollapsed())return!1;let n=By(e.focus,t),r=JS(n.origin,vv);if(!r)return!1;let i=e.focus.getNode();if(!r.is(i)&&!pv(i,r))return!1;let a=Ny(n,Ty(r,t));if(a.getTextSlices().some(e=>e&&e.getTextContentSize()>0))return!1;let o=Ny(a.anchor.getSiblingCaret(),a.focus),s=o.anchor.origin;for(let e of o){if(!Cy(e)||!e.origin.is(s.getParent()))return!1;s=e.origin}let c=r;for(let e of jy(Ty(r,t))){if(!e.origin.is(c.getParent())){if(Cv(e.origin)){let e=Ty(c,t);return Hy(Ny(e,e)),!0}break}if(!vv(e.origin))break;c=e.origin}return!1}(e,t)||function(e,t){if(!e.isCollapsed()||e.anchor.type!==`element`)return!1;let n=By(e.anchor,t).getNodeAtCaret();return!(!vv(n)||n.isInline()||(Hy(My(Jy(ky(n,t)))),0))}(e,t)}function LT(e){return S_(e)&&!e.isInline()&&!e.isIsolated()&&e.isKeyboardSelectable()}function RT(e){let t=e_();t.add(e),Q_(t)}function zT(e,t){if(!e.isCollapsed())return!1;let n=e.focus,r=n.getNode(),i=t?`previous`:`next`,a=By(n,i);if(n.type===`element`&&$(r)&&yv(r)){let e=a.getNodeAtCaret();return!(e===null||!LT(e))&&(RT(e.__key),!0)}let o=JS($(r)?r:r.getParentOrThrow(),e=>$(e)&&!e.isInline()&&yv(e.getParent()));if(o===null)return!1;let s=Ty(o,i).getNodeAtCaret();if(s===null||!LT(s))return!1;if(o.getTextContentSize()===0)return RT(s.__key),!0;let c=Uv().getRootElement();if(c===null)return!1;let l=Tv(c.ownerDocument.defaultView);if(l===null||l.rangeCount===0)return!1;let u=l.anchorNode,d=l.anchorOffset,f=l.focusNode,p=l.focusOffset;l.modify(`move`,t?`backward`:`forward`,`line`);let m=l.anchorNode,h=l.anchorOffset;if(m===null)return BT(l,u,d,f,p),!1;let g=X_(m);return BT(l,u,d,f,p),g!==null&&(m===u&&h===d||!g.is(o)&&!pv(g,o))&&(RT(s.__key),!0)}function BT(e,t,n,r,i){t!==null&&r!==null&&e.setBaseAndExtent(t,n,r,i)}function VT(e,t){if(!e.isCollapsed())return!1;let n=e.focus.getNode(),r=JS($(n)?n:n.getParentOrThrow(),e=>$(e)&&!e.isInline());if(r===null)return!1;let i=Uv(),a=i.getRootElement();if(a===null)return!1;let o=a.ownerDocument.defaultView;if(o===null)return!1;let s=!1;for(let e of r.getChildren())if($(e)&&e.isInline()){let t=i.getElementByKey(e.getKey());if(t!==null){let e=o.getComputedStyle(t).display;if(e===`inline-grid`||e===`inline-flex`){s=!0;break}}}if(!s)return!1;let c=Ty(r,t?`previous`:`next`).getNodeAtCaret();if(c===null||!$(c)){if(t){let e=r.getFirstDescendant();Hg(e)?e.select(0,0):r.select(0,0)}else{let e=r.getLastDescendant();if(Hg(e)){let t=e.getTextContentSize();e.select(t,t)}else{let e=r.getChildrenSize();r.select(e,e)}}return!0}let l=i.getElementByKey(c.getKey());if(l===null)return!1;let u=Tv(o);if(u===null||u.rangeCount===0)return!1;let d=u.getRangeAt(0).cloneRange();d.collapse(!0);let f=d.getBoundingClientRect(),p=l.getBoundingClientRect(),m=p.top+p.height/2;if(f.height>0){let t=aT(f.left,m,a);if(t!==null&&l.contains(t.node)){let n=a.ownerDocument.createRange();return n.setStart(t.node,t.offset),n.collapse(!0),e.applyDOMRange(n),e.dirty=!0,!0}}let h=t?c.getLastDescendant():c.getFirstDescendant();if(Hg(h)){let e=t?h.getTextContentSize():0;h.select(e,e)}else{let e=c.getChildrenSize();c.select(t?e:0,t?e:0)}return!0}function HT(e,t){let n=Ty(e,t),r=n.getAdjacentCaret();r!==null&&$(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?Hy(My(n)):t===`next`?e.selectNext(0,0):e.selectPrevious()}function UT(e,t,n){n.preventDefault(),n.stopPropagation();let r=e.getNodes();if(r.length===0)return!0;let i=r.map(e=>Ty(e,`next`)).sort(Fy),a=(t?i[0]:i[i.length-1]).origin,o=JS(a,e=>e!==a&&$(e)&&!e.isInline())??Z_(),s=t?0:o.getChildrenSize();return o.select(s,s),!0}function ise(e,t=Lie(JT)){return sb(e.registerCommand(Cx,()=>{let e=n_();return Jg(e)?(e.clear(),!0):(Q(e)&&FT(e,`click`,`both`,t.peek()),!1)},0),e.registerCommand(Ox,e=>{let t=n_();return Q(t)?(t.deleteCharacter(e),!0):!!Jg(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(Px,e=>{let t=n_();return!!Q(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(Fx,e=>{let t=n_();return!!Q(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(jx,t=>{let n=n_();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)uT(r,n,e);else if(Q(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(Nx,()=>{let e=n_();return!!Q(e)&&(e.removeText(),!0)},0),e.registerCommand(Ix,e=>{let t=n_();return!(!Q(t)&&!Jg(t))&&(lne(t,e),!0)},0),e.registerCommand(zre,e=>{let t=n_();return!(!Q(t)&&!Jg(t))&&(cne(t,e),!0)},0),e.registerCommand(Bre,e=>{let t=n_();if(!Q(t)&&!Jg(t))return!1;let n=t.getNodes();for(let t of n){let n=JS(t,e=>$(e)&&!e.isInline());n!==null&&n.setFormat(e)}return!0},0),e.registerCommand(kx,e=>{let t=n_();return!!Q(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(Ax,()=>{let e=n_();return!!Q(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(Qx,()=>{let e=Wg(),t=n_();return Q(t)&&(e.setFormat(t.format),e.setStyle(t.style)),s_([e]),!0},0),e.registerCommand($x,()=>Die(e=>{let t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(eS,()=>Die(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(Wx,e=>{let t=n_();if(Jg(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),HT(n[0],`previous`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===0}(t)||!e.shiftKey&&IT(t,`previous`)||!e.shiftKey&&zT(t,!0)||!e.shiftKey&&VT(t,!0)))return e.preventDefault(),!0;return!1},0),e.registerCommand(Gx,e=>{let t=n_();if(Jg(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),HT(n[0],`next`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===Z_().getChildrenSize()}(t)||!e.shiftKey&&IT(t,`next`)||!e.shiftKey&&zT(t,!1)||!e.shiftKey&&VT(t,!1)))return e.preventDefault(),!0;return!1},0),e.registerCommand(Hx,e=>{let n=n_();if(Jg(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),HT(t[0],rC(t[0])?`next`:`previous`),!0}if(!Q(n))return!1;if(!e.shiftKey&&IT(n,rC(n.anchor.getNode())?`next`:`previous`))return e.preventDefault(),!0;if(e.shiftKey||FT(n,`arrow`,`start`,t.peek()),xie(n,!0)){let t=e.shiftKey;return e.preventDefault(),wie(n,t,!0),!0}return!1},0),e.registerCommand(Bx,e=>{let n=n_();if(Jg(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),HT(t[0],rC(t[0])?`previous`:`next`),!0}if(!Q(n))return!1;if(!e.shiftKey&&IT(n,rC(n.anchor.getNode())?`previous`:`next`))return e.preventDefault(),!0;if(e.shiftKey||FT(n,`arrow`,`end`,t.peek()),xie(n,!1)){let t=e.shiftKey;return e.preventDefault(),wie(n,t,!1),!0}return!1},0),e.registerCommand(Jx,t=>{let n=n_();if(!Jg(n)&&PT(t.target))return!1;if(Q(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(C_(n))return!1;let r=Eie(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(eS);if(pb&&fb)return!1}else if(!Jg(n))return!1;return t.preventDefault(),e.dispatchCommand(Ox,!0)},0),e.registerCommand(Xx,t=>{let n=n_();return!(!Jg(n)&&PT(t.target))&&!(!Q(n)&&!Jg(n))&&(t.preventDefault(),e.dispatchCommand(Ox,!1))},0),e.registerCommand(Kx,n=>{let r=n_();if(Jg(r)){let e=r.getNodes();e.length===1&&S_(e[0])&&!e[0].isInline()&&(r=e[0].selectNext())}if(!Q(r))return!1;if(FT(r,`enter`,`both`,t.peek()),n!==null){if((pb||hb||vb)&&fb)return!1;if(n.preventDefault(),n.shiftKey)return e.dispatchCommand(kx,!1)}return e.dispatchCommand(Ax)},0),e.registerCommand(Yx,()=>!!Q(n_())&&(e.blur(),!0),0),e.registerCommand(tS,t=>{let[,n]=lC(t);if(n.length>0){let r=t.clientX,i=t.clientY,a=aT(r,i,e.getRootElement());if(a!==null){let{offset:t,node:r}=a,i=X_(r);if(i!==null){let e=$g();if(Hg(i))e.anchor.set(i.getKey(),t,`text`),e.focus.set(i.getKey(),t,`text`);else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}Q_(Ph(e))}e.dispatchCommand(WT,n)}return t.preventDefault(),!0}return Qoe(t,e)},0),e.registerCommand(nS,t=>{let[n]=lC(t),r=n_();return!(n&&!Q(r))&&(Q(r)&&!r.isCollapsed()&&t.dataTransfer!==null&&(gT(t.dataTransfer,hT(r)),Xoe(t.dataTransfer,e)),!0)},0),e.registerCommand(rS,t=>{let[n]=lC(t),r=n_();if(n&&!Q(r))return!1;let i=t.clientX,a=t.clientY,o=aT(i,a,e.getRootElement());return o!==null&&S_(X_(o.node))&&t.preventDefault(),!0},0),e.registerCommand(oS,()=>{let e=n_();return _re(Q(e)&&dy(e.anchor.getNode())!==null?e:null),!0},0),e.registerCommand(iS,t=>(pT(e,cC(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(aS,t=>(async function(e,t){await pT(t,cC(e,ClipboardEvent)?e:null),t.update(()=>{let e=n_();Q(e)?e.removeText():Jg(e)&&e.getNodes().forEach(e=>e.remove())},{tag:`cut`})}(t,e),!0),0),e.registerCommand(Mx,t=>{let[,n,r]=lC(t);return n.length>0&&!r?(e.dispatchCommand(WT,n),!0):Rv(t.target)&&P_(t.target)?!1:n_()!==null&&(function(e,t){e.preventDefault(),t.update(()=>{let n=n_(),r=cC(e,InputEvent)||cC(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&uT(r,n,t)},{tag:`paste`})}(t,e),!0)},0),e.registerCommand(qx,()=>{let e=n_();return Q(e)&&FT(e,`space`,`both`,t.peek()),!1},0),e.registerCommand(Zx,()=>{let e=n_();return Q(e)&&FT(e,`tab`,`both`,t.peek()),!1},0),e.registerCommand(Vx,e=>{let t=n_();if(Jg(t))return UT(t,!1,e);if(!Q(t))return!1;let{anchor:n}=t;if(n.type!==`element`||n.offset!==0)return!1;let r=n.getNode();if(!$(r))return!1;let i=r.getFirstChild();if(!S_(i)||!i.isInline())return!1;let a=r.getKey(),o=r.selectEnd();return e.shiftKey&&o.anchor.set(a,0,`element`),e.preventDefault(),e.stopPropagation(),!0},0),e.registerCommand(Ux,e=>{let t=n_();if(Jg(t))return UT(t,!0,e);if(!Q(t))return!1;let{anchor:n,focus:r}=t,i=JS(r.getNode(),e=>$(e)&&!e.isInline());if(i===null)return!1;let a=i.getFirstChild();if(!S_(a)||!a.isInline()||JS(n.getNode(),e=>$(e)&&!e.isInline())!==i)return!1;let o=i.getKey();return(r.type!==`element`||r.key!==o||r.offset!==0)&&(t.focus.set(o,0,`element`),e.shiftKey||t.anchor.set(o,0,`element`),e.preventDefault(),e.stopPropagation(),!0)},0))}var WT,GT,KT,qT,JT;function YT(){return(YT=s((()=>{DT(),zC(),oC(),uC(),nC(),QC(),XC.tag(`h1`,`h2`,`h3`,`h4`,`h5`,`h6`),XC.tag(`blockquote`),XC.tag(`blockquote`),XC.tag(`p`),XC.tag(`span`),WT=lg(`DRAG_DROP_PASTE_FILE`),GT=Sh(`shadowRoot`,{parse:Boolean}),KT=class extends MS{$config(){return this.config(`quote`,{extends:MS,importDOM:{blockquote:()=>({conversion:rse,priority:0})},stateConfigs:[{flat:!0,stateConfig:GT}]})}isShadowRoot(){return Ch(this,GT)}setIsShadowRoot(e){return wh(this,GT,e)}createDOM(e){let t=Av().createElement(`blockquote`);return ab(t,e.theme.quote),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){return super.exportJSON()}static importJSON(e){return OT().updateFromJSON(e)}insertNewAfter(e,t){let n=k_(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){if(this.isShadowRoot()){for(let e of this.getChildren())this.insertBefore(e);return this.remove(),!0}let e=k_();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}},qT=class extends MS{__tag;$config(){return this.config(`heading`,{extends:MS,importDOM:{h1:()=>({conversion:jT,priority:0}),h2:()=>({conversion:jT,priority:0}),h3:()=>({conversion:jT,priority:0}),h4:()=>({conversion:jT,priority:0}),h5:()=>({conversion:jT,priority:0}),h6:()=>({conversion:jT,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&AT(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>AT(e)?{conversion:()=>({node:MT(`h1`)}),priority:3}:null}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e=`h1`,t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){let t=this.getWritable();return t.__tag=e,t}createDOM(e){let t=this.__tag,n=Av().createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];ab(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}exportDOM(e){let{element:t}=super.exportDOM(e);if(Lv(t)){this.isEmpty()&&t.append(Av().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?k_():MT(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=k_();e.select(),this.replace(e,!0)}return i}collapseAtStart(){if(this.isEmpty()){let e=k_();this.getChildren().forEach(t=>e.append(t)),this.replace(e)}return!0}extractWithChild(){return!0}},JT={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}}})))()}function XT(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function ZT(e){let t=XT(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}function QT(e){if(!A_(e))return!1;let t=e.getFirstChild();return t==null||e.getChildrenSize()===1&&Hg(t)&&bE.test(t.getTextContent())}function $T(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}function ase(e){if(e[0]!==`|`)return!1;let{length:t}=e,n=1,r=0;for(;n0&&(n===t||n===t-1&&/\s/.test(e[n]))}function eE(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function ose(e){let t=e.getChildren(),n=t.length-1,r=t[n];if(!Hg(r))return null;let i=r.getTextContent(),a=eE(i);if(a!==null){let[e,t]=a;return r.setTextContent(e),t}return/^ {2,}$/.test(i)&&function(e,t){for(let n=t-1;n>=0;n--){if(D_(e[n]))return!1;if(/\S/.test(e[n].getTextContent()))return!0}return!1}(t,n)?(r.setTextContent(``),i):null}function tE(e){let t=E_(),n=ose(e);return n!==null&&wh(t,FE,n),t}function sse(e,t=!1){let n=e.split(` `),r=0,i=[];for(let e=0;e=r){r=0,i.push(o);continue}i.push(a)}}return i.join(` `)}function cse(e,t,n,r,i){for(let a of t){if(!a.export)continue;let t=a.export(e,e=>nE(e,n,r,void 0,void 0,i));if(t!=null)return t}return $(e)?nE(e,n,r,void 0,void 0,i):S_(e)?e.getTextContent():null}function nE(e,t,n,r,i,a=!1){let o=[],s=e.getChildren();r||=[],i||=[];t:for(let e of s){for(let s of n){if(!s.export)continue;let c=s.export(e,e=>nE(e,t,n,r,[...i,...r],a),(e,n)=>rE(e,n,t,r,i,a));if(c!=null){o.push(c);continue t}}D_(e)?o.push(lse(e)):Hg(e)?o.push(rE(e,e.getTextContent(),t,r,i,a)):$(e)?o.push(nE(e,t,n,r,i,a)):S_(e)&&o.push(e.getTextContent())}return o.join(``)}function lse(e){return Ch(e,FE)+` `}function rE(e,t,n,r,i,a=!1){let o=e.hasFormat(`code`),s,c,l,u,d=t;if(o||(d=a?d.replace(/([*_`~])/g,`\\$1`):d.replace(/([*_`~\\])/g,`\\$1`)),o){let{fence:e,padded:n}=function(e){let t=e.match(/`+/g),n=t?Math.max(...t.map(e=>e.length)):0;return{fence:"`".repeat(n+1),padded:e.length===0||e.includes("`")||/^\s/.test(e)&&/\s$/.test(e)?` ${e} `:e}}(t);s=``,l=``,c=e+n+e,u=!1}else{let e=d.match(/^(\s*)(.*?)(\s*)$/s)||[``,``,d,``];s=e[1],c=e[2],l=e[3],u=c===``}let f=``,p=``,m=``,h=iE(e,!0),g=iE(e,!1),_=new Set;for(let t of n){let n=t.format[0],i=t.tag;n!==`code`&&oE(e,n)&&!_.has(n)&&(_.add(n),oE(h,n)&&r.find(e=>e.tag===i)||(r.push({format:n,tag:i}),f+=i))}for(let t=0;tt;){let e=o.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&typeof e.tag==`string`&&(n?a||(m+=e.tag):p+=e.tag),r.pop())}break}return u&&!e.hasFormat(`code`)?p+d:p+s+f+c+m+l}function iE(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();return Hg(n)?n:null}function aE(e,t){return Hg(e)&&e.hasFormat(t)}function oE(e,t){return!!aE(e,t)&&(t===`code`||!e||!/^\s*$/.test(e.getTextContent()))}function use(e,t){let n=e.getTextContent(),r=t.transformersByTag["`"],i=[],a=null;if(r){let e=function(e){let t=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},n=[],r=0;for(;r=2&&c.startsWith(` `)&&c.endsWith(` `)&&/[^ ]/.test(c)&&(c=c.slice(1,-1)),i.push({content:c,endIndex:s.index+s.length,startIndex:r.index}),a=o+1}return i}(n);for(let t of e)a||={content:t.content,endIndex:t.endIndex,startIndex:t.startIndex,tag:"`"},i.push({end:t.endIndex,start:t.startIndex})}let o=function(e,t,n=[]){let r=[],i=new Set(Object.keys(t.transformersByTag).filter(e=>e[0]!=="`").map(e=>e[0])),a=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},o=e=>n.some(t=>e>=t.start&&e0?function(e,t,n){let r={},i=0,a=null;for(;ic;r--){let s=t[r];if(!s.active||!s.canOpen||s.length===0||s.char!==o.char||(s.canClose||o.canOpen)&&(s.length+o.length)%3==0&&s.length%3!=0&&o.length%3!=0)continue;let c=Math.min(s.length,o.length),u=Object.keys(n.transformersByTag).filter(e=>e[0]===s.char&&e.length<=c).sort((e,t)=>t.length-e.length)[0];if(!u)continue;l=!0;let d=u.length,f={content:e.slice(s.index+s.length,o.index),endIndex:o.index+d,startIndex:s.index+(s.length-d),tag:u};(!a||f.startIndexa.endIndex)&&(a=f);for(let e=r+1;e0,o.length>0?o.index+=d:(o.active=!1,i++);break}l||(r[s]=i-1,o.canOpen||(o.active=!1),i++)}return a}(n,o,t):null,c=null,l=null;if(a&&s?s.startIndex<=a.startIndex&&s.endIndex>=a.endIndex?(c=s,l=t.transformersByTag[s.tag]):(c=a,l=r):a?(c=a,l=r):s&&(c=s,l=t.transformersByTag[s.tag]),!c||!l)return null;let u=[n.slice(c.startIndex,c.endIndex),c.tag,c.content];return u.index=c.startIndex,u.input=n,{endIndex:c.endIndex,isCodeSpan:l===r,match:u,startIndex:c.startIndex,transformer:l}}function sE(e,t,n,r,i){if(!cE(t,n,r,i))return!1;if(e===`*`)return!0;if(e===`_`){if(!cE(t,n,r,!i))return!0;let e=i?t[n-1]:t[n+r];return e!==void 0&&yE.test(e)}return!0}function cE(e,t,n,r){let i=e[t-1],a=e[t+n],[o,s]=r?[a,i]:[i,a];return o!==void 0&&!vE.test(o)&&(!yE.test(o)||s===void 0||vE.test(s)||yE.test(s))}function lE(e){return Hg(e)&&!e.hasFormat(`code`)}function uE(e,t,n){let r=use(e,t),i=function(e,t){let n=e,r,i,a,o;for(let e of t){if(!e.replace||!e.importRegExp)continue;let t=n.getTextContent().match(e.importRegExp);if(!t)continue;let s=t.index||0,c=e.getEndIndex?e.getEndIndex(n,t):s+t[0].length;!1!==c&&(r===void 0||i===void 0||si||c<=r))&&(r=s,i=c,a=e,o=t)}return r===void 0||i===void 0||a===void 0||o===void 0?null:{endIndex:i,match:o,startIndex:r,transformer:a}}(e,n);if(r&&i&&(r.isCodeSpan?i.startIndex<=r.startIndex&&i.endIndex>=r.endIndex?r=null:i=null:r.startIndex<=i.startIndex&&r.endIndex>=i.endIndex||i.startIndex>r.endIndex?i=null:r=null),r){let i=function(e,t,n,r,i){let a=e.getTextContent(),o,s,c;if(i[0]===a?o=e:t===0?[o,s]=e.splitText(n):[c,o,s]=e.splitText(t,n),o.setTextContent(i[2]),r)for(let e of r.format)o.hasFormat(e)||o.toggleFormat(e);return{nodeAfter:s,nodeBefore:c,transformedNode:o}}(e,r.startIndex,r.endIndex,r.transformer,r.match);lE(i.nodeAfter)&&uE(i.nodeAfter,t,n),lE(i.nodeBefore)&&uE(i.nodeBefore,t,n),lE(i.transformedNode)&&uE(i.transformedNode,t,n)}else if(i){let r=function(e,t,n,r,i){let a,o,s;return t===0?[a,o]=e.splitText(n):[s,a,o]=e.splitText(t,n),r.replace?{nodeAfter:o,nodeBefore:s,transformedNode:r.replace(a,i)||void 0}:null}(e,i.startIndex,i.endIndex,i.transformer,i.match);if(!r)return;lE(r.nodeAfter)&&uE(r.nodeAfter,t,n),lE(r.nodeBefore)&&uE(r.nodeBefore,t,n),lE(r.transformedNode)&&uE(r.transformedNode,t,n)}let a=$T(e.getTextContent());e.setTextContent(a)}function dse(e,t,n,r=!1){let i=ZT(n),a=function(e){let t={},n={},r=[];for(let i of e){let{tag:e}=i;t[e]=i;let a=e.replace(/(\*|\^|\+)/g,`\\$1`);r.push(a),n[e]=e.length===1?RegExp(e==="`"?"(^|[^\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)":`(^|[^\\\\${a}])(${a})((\\\\${a})?.*?[^${a}\\s](\\\\${a})?)(${a})(?![\\\\${a}])`):RegExp(`(^|[^\\\\])(${a})((\\\\${a})?.*?[^\\s](\\\\${a})?)(${a})(?!\\\\)`)}return{fullMatchRegExpByTag:n,openTagsRegExp:RegExp(`(${r.join(`|`)})`,`g`),transformersByTag:t}}(i.textFormat),o=e.split(` `),s=o.length;for(let e=0;e1)e.remove();else if($(e))for(let t of e.getAllTextNodes())mse(t)}function fse(e,t,n,r){for(let i of n){let{handleImportAfterStartMatch:n,regExpEnd:a,regExpStart:o,replace:s}=i,c=e[t].match(o);if(!c)continue;if(n){let a=n({lines:e,rootNode:r,startLineIndex:t,startMatch:c,transformer:i});if(a===null)continue;if(a)return a}let l=typeof a==`object`&&`regExp`in a?a.regExp:a,u=a&&typeof a==`object`&&`optional`in a?a.optional:!a,d=t,f=e.length;for(;d0){let e=s.getPreviousSibling();if(!a&&(A_(e)||kT(e)||Qw(e))){let t=e;if(Qw(e)){let n=e.getLastDescendant();t=n==null?null:JS(n,Jw)}t!=null&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[tE(t),...s.getChildren()]),s.remove())}}}function mse(e){let t=new Set,n=e.getTextContent(),r=n.indexOf(` `);for(;r!==-1;)t.add(r),t.add(r+1),r=n.indexOf(` `,r+1);e.splitText(...t).forEach(e=>{e.getTextContent()===` `&&e.replace(Wg())})}function hse(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function dE(e,t,n,r,i){if(!yv(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExp:o,replace:s}of r){let r=a.match(o),c=i||r&&r[0].endsWith(` `)?n:n-1;if(r&&r[0].length===c){let i=t.getNextSiblings(),[a,o]=t.splitText(n);if(!1!==s(e,o?[o,...i]:i,r,!1))return a.remove(),!0}}return!1}function fE(e,t,n,r,i){if(!yv(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExpStart:o,replace:s,regExpEnd:c}of r){if(c&&!(`optional`in c)||c&&`optional`in c&&!c.optional)continue;let r=a.match(o);if(r){let a=i||r[0].endsWith(` `)?n:n-1;if(r[0].length!==a)continue;let o=t.getNextSiblings(),[c,l]=t.splitText(n);if(!1!==s(e,l?[l,...o]:o,r,null,null,!1))return c.remove(),!0}}return!1}function gse(e,t){let n=0,r=e.getTextContent();for(let e=0;e=r;i--){let t=i-r;if(mE(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function mE(e,t,n,r,i){for(let a=0;ae.triggerOnEnter),i=XT(n.textFormat,({tag:e})=>e[e.length-1]),a=XT(n.textMatch,({trigger:e})=>e),o=new Set([` `]);for(let e of n.textFormat)o.add(e.tag.slice(-1));for(let e of n.textMatch)e.trigger!==void 0&&o.add(e.trigger);for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||hse(173,n.getType())}}let s=(e,t,r)=>!!dE(e,t,r,n.element)||!!fE(e,t,r,n.multilineElement)||!!function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t1&&!mE(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!_E.test(c))continue;let l=e,u=l,d=pE(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!D_(f);)if(Hg(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=pE(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(!1===t.intraword&&m&&!_E.test(m)||!t.format.includes(`code`)&&gse(u,d))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=n_(),y=$g();Q_(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.formatText(e,Nb[e]);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return Q(v)&&(y.format=v.format),!0}return!1}(t,r,i);return sb(e.registerUpdateListener(({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let a=t.has(vS),c=r.read(n_),l=i.read(n_);if(!Q(l)||!Q(c)||!c.isCollapsed()||c.is(l)&&!a)return;let u=c.anchor.key,d=c.anchor.offset,f=r._nodeMap.get(u);if(Hg(f)&&n.has(u)&&(a||d===1||!(d>l.anchor.offset+1))){if(a){let e=r.read(()=>f.getTextContent())[d-1];if(!o.has(e))return}e.update(()=>{if(!lE(f))return;let e=f.getParent();e===null||rw(e)||s(e,f,c.anchor.offset)&&fv(`history-push`)})}}),e.registerCommand(Kx,e=>{if(e!==null&&e.shiftKey)return!1;let t=n_();if(!Q(t)||!t.isCollapsed())return!1;let i=t.anchor.offset,a=t.anchor.getNode();if(!Hg(a)||!lE(a))return!1;let o=a.getParent();return o===null||rw(o)?!1:i===a.getTextContent().length&&!(!fE(o,a,i,n.multilineElement,!0)&&!dE(o,a,i,r,!0))&&(e!==null&&e.preventDefault(),!0)},1))}function hE(e,t=iD,n,r=!1,i=!1){let a=r?e:sse(e,i),o=n||Z_();o.clear(),dse(a,o,t,r),n_()!==null&&o.selectStart()}function gE(e=iD,t,n=!1){return function(e,t=!1){let n=ZT(e),r=[...n.multilineElement,...n.element],i=!t,a=n.textFormat.filter(e=>e.format.length===1).sort((e,t)=>Number(e.format.includes(`code`))-Number(t.format.includes(`code`)));return e=>{let o=[],s=(e||Z_()).getChildren();for(let e=0;e0&&!QT(c)&&!QT(s[e-1])?` ${l}`:l)}return o.join(` `)}}(e,n)(t)}var _E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD;function aD(){return(aD=s((()=>{nC(),mw(),Lw(),iT(),YT(),_E=/[!-/:-@[-`{-~\s]/,vE=/\s/,yE=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,bE=/^\s{0,3}$/,xE=/^(\s*)(\d{1,})\.\s/,SE=/^(\s*)[-*+]\s/,CE=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,wE=/^(#{1,6})\s/,TE=/^>\s/,EE=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,DE=/^[ \t]*`{3,}$/,OE=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,kE=/^(?:\|)(.+)(?:\|)\s?$/,AE=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,jE=/^<\/[a-z_][\w-]*\s*>/i,ME=e=>RegExp(`(?:${e.source})$`,e.flags),NE=Sh(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),PE=Sh(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),FE=Sh(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0}),IE=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},LE=e=>(t,n,r,i)=>{if(NT(t))return!1;let a=t.getPreviousSibling(),o=t.getNextSibling(),s=qw(e===`check`?r[3]===`x`:void 0),c=r[0].trim()[0],l=e!==`bullet`&&e!==`check`||c!==NE.parse(c)?void 0:c;if(Qw(o)&&o.getListType()===e){l&&wh(o,NE,l);let n=o.getFirstChild();n===null?o.append(s):n.insertBefore(s),e===`number`&&o.setStart(Number(r[2])),t.remove()}else if(Qw(a)&&a.getListType()===e)l&&wh(a,NE,l),a.append(s),t.remove();else{let n=Zw(e,e===`number`?Number(r[2]):void 0);l&&wh(n,NE,l),n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&s.setIndent(u)},RE=(e,t,n,r)=>{let i=[],a=e.getChildren(),o=0;for(let s of a)if(Jw(s)){if(s.getChildrenSize()===1){let e=s.getFirstChild();if(Qw(e)){let a=RE(e,t,n+1,r);a&&i.push(a);continue}}if(r&&!s.getChildren().some(e=>e.isSelected(r)))continue;let a=` `.repeat(4*n),c=e.getListType(),l=Ch(e,NE),u=c===`number`?`${e.getStart()+o}. `:c===`check`?`${l} [${s.getChecked()?`x`:` `}] `:l+` `,d=t(s);c!==`number`&&(d=d.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),i.push(a+u+d),o++}return i.join(` `)},zE={dependencies:[qT],export:(e,t)=>{if(!NT(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:wE,replace:IE(e=>MT(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},BE={dependencies:[KT],export:(e,t)=>{if(!kT(e))return null;let n=t(e).split(` `),r=[];for(let e of n)r.push(`> `+e);return r.join(` `)},regExp:TE,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(kT(n))return n.splice(n.getChildrenSize(),0,[tE(n),...t]),void e.remove()}let i=OT();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},VE={dependencies:[fw],export:e=>{if(!rw(e))return null;let t=e.getTextContent(),n=Ch(e,PE);if(t.indexOf(n)>-1){let e=t.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));n="`".repeat(t+1)}}return n+(e.getLanguage()||``)+(t?` `+t:``)+` `+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{let i=r[1],a=i.trim().length,o=e[n],s=r.index+i.length,c=o.slice(s),l=RegExp(`\`{${a},}$`);if(l.test(c)){let e=c.match(l),i=c.slice(0,c.lastIndexOf(e[0])),a=[...r];return a[2]=``,VE.replace(t,null,a,e,[i],!0),[!0,n]}let u=RegExp(`^[ \\t]*\`{${a},}$`);for(let i=n+1;i0&&c.unshift(l),VE.replace(t,null,r,s,c,!0),[!0,i]}}let d=e.slice(n+1),f=o.slice(r[0].length);return f.length>0&&d.unshift(f),VE.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:DE},regExpStart:EE,replace:(e,t,n,r,i,a)=>{let o,s,c=n[1]?n[1].trim():"```",l=n[2]||void 0;if(!t&&i){if(i.length===1)r?(o=nw(l),s=i[0]):(o=nw(l),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{for(o=nw(l),i.length>0&&(i[0].trim().length===0?i.shift():i[0].startsWith(` `)&&(i[0]=i[0].slice(1)));i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(` `)}wh(o,PE,c);let t=Vg(s);o.append(t),e.append(o)}else t&&IE(e=>nw(e?e[2]:void 0))(e,t,n,a)},type:`multiline-element`},HE={dependencies:[eT,$w],export:(e,t,n)=>Qw(e)?RE(e,t,0,n):null,regExp:SE,replace:LE(`bullet`),triggerOnEnter:!0,type:`element`},LE(`check`),UE={dependencies:[eT,$w],export:(e,t,n)=>Qw(e)?RE(e,t,0,n):null,regExp:xE,replace:LE(`number`),triggerOnEnter:!0,type:`element`},WE={format:[`code`],tag:"`",type:`text-format`},GE={format:[`highlight`],tag:`==`,type:`text-format`},KE={format:[`bold`,`italic`],tag:`***`,type:`text-format`},qE={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},JE={format:[`bold`],tag:`**`,type:`text-format`},YE={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},XE={format:[`strikethrough`],tag:`~~`,type:`text-format`},ZE={format:[`italic`],tag:`*`,type:`text-format`},QE={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},$E={dependencies:[Nw],export:(e,t,n)=>{if(!Ow(e)||kw(e))return null;let r=t(e),i=e.getTitle();return i!=null&&(i=i.replace(/([\\"])/g,`\\$1`)),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if(JS(e,Ow))return;let[,n,r,i]=t,a=Dw(r==null?void 0:$T(r),{title:i==null?void 0:$T(i)}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(os){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=Vg(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(Vg(l)),u},trigger:`)`,type:`text-match`},eD=[zE,BE,HE,UE],tD=[VE],nD=[WE,KE,qE,JE,YE,GE,ZE,QE,XE],rD=[$E],iD=[...eD,...tD,...nD,...rD]})))()}function oD(e){return e===`middle`||e===`bottom`}function sD(e){let t=e,n=e.nodeName.toLowerCase(),r;SD.test(t.style.width)&&(r=parseFloat(t.style.width));let i=CD.NO_STATUS;if(n===`th`){let e=t.getAttribute(`scope`);if(e===`col`)i=CD.COLUMN;else if(e===`row`)i=CD.ROW;else{let e=t.parentElement,n=Lv(e)&&e.nodeName.toLowerCase()===`tr`&&Lv(e.parentElement)&&(e.parentElement.nodeName.toLowerCase()===`thead`||e.rowIndex===0),r=t.cellIndex===0;n&&(i|=CD.ROW),r&&(i|=CD.COLUMN),i===CD.NO_STATUS&&(i=CD.ROW)}}let a=cD(i,t.colSpan,r);a.__rowSpan=t.rowSpan;let o=t.style.backgroundColor;o!==``&&(a.__backgroundColor=o);let s=t.style.verticalAlign;oD(s)&&(a.__verticalAlign=s);let c=t.style,l=(c&&c.textDecoration||``).split(` `),u=c.fontWeight===`700`||c.fontWeight===`bold`,d=l.includes(`line-through`),f=c.fontStyle===`italic`,p=l.includes(`underline`),m=c.color;return{after:e=>{let t=[],n=null,r=()=>{if(n){let e=n.getFirstChild();D_(e)&&n.getChildrenSize()===1&&e.remove()}};for(let i of e)if(gv(i)||Hg(i)||D_(i)){if(Hg(i)&&(u&&i.toggleFormat(`bold`),d&&i.toggleFormat(`strikethrough`),f&&i.toggleFormat(`italic`),p&&i.toggleFormat(`underline`),m)){let e=i.getStyle();e.includes(`color:`)||i.setStyle(e+`color: ${m};`)}n?n.append(i):(n=k_().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),t.length===0&&t.push(k_()),t},node:a}}function cD(e=CD.NO_STATUS,t=1,n){return xv(new wD(e,t,n))}function lD(e){return e instanceof wD}function uD(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function vse(e){let t=e,n;return SD.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>Oie(e,lD),node:dD(n)}}function dD(e){return xv(new TD(e))}function fD(e){return e instanceof TD}function yse(e,t,n){let r=[],i=null,a=null;function o(e){let t=r[e];return t===void 0&&(r[e]=t=[]),t}let s=e.getChildren();for(let e=0;e=s.length);t++){let n=o(e+t);for(let e=0;e colgroup`);if(!n)return void(r&&r.remove());r||(r=Av().createElement(`colgroup`),Qv(r),e.insertBefore(r,e.firstChild));let i=[];for(let e=0;e colgroup`);if(n){let e=[];for(let t of n.querySelectorAll(`:scope > col`)){let n=t.style.width||``;if(!SD.test(n)&&(n=t.getAttribute(`width`)||``,!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>Oie(e,fD),node:t}}function bD(){return xv(new DD)}function xD(e){return e instanceof DD}var SD,CD,wD,TD,ED,DD;function OD(){return(OD=s((()=>{nC(),zC(),QC(),uC(),SD=/^(\d+(?:\.\d+)?)px$/,CD={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},wD=class extends MS{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;$config(){return this.config(`tablecell`,{extends:MS,importDOM:{td:()=>({conversion:sD,priority:0}),th:()=>({conversion:sD,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign,this.__colSpan=e.__colSpan,this.__headerState=e.__headerState,this.__width=e.__width}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=CD.NO_STATUS,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=Av().createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(t.style.backgroundColor=this.__backgroundColor),oD(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),ab(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(Lv(t.element)){let e=t.element;e.setAttribute(`data-temporary-table-cell-lexical-key`,this.getKey()),e.style.border=`1px solid black`,this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||`top`,e.style.textAlign=`start`,this.__backgroundColor===null&&this.hasHeader()&&(e.style.backgroundColor=`#f2f3f5`)}return t}exportJSON(){return{...super.exportJSON(),...oD(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?`th`:`td`}setHeaderStyles(e,t=CD.BOTH){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==CD.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}},TD=class extends MS{__height;$config(){return this.config(`tablerow`,{extends:MS,importDOM:{tr:()=>({conversion:vse,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e=void 0,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let t=Av().createElement(`tr`);return this.__height&&(t.style.height=`${this.__height}px`),ab(t,e.theme.tableRow),t}extractWithChild(e,t,n){return n===`html`}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}},ED=new WeakSet,DD=class extends MS{__rowStriping=!1;__frozenColumnCount=0;__frozenRowCount=0;__colWidths=void 0;$config(){return this.config(`table`,{extends:MS,importDOM:{table:()=>({conversion:Sse,priority:1})}})}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return n===`html`}getDOMSlot(e){let t=pD(e)?e:e.querySelector(`table`);return pD(t)||uD(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector(`:scope > colgroup`))}createDOM(e,t){let n=Av().createElement(`table`);if(this.__style&&jg(n.style,this.__style),this.getColWidths()){let e=Av().createElement(`colgroup`);n.appendChild(e),Qv(e)}if(ab(n,e.theme.table),this.updateTableElement(null,n,e),vD(t)){let r=yD(t),i=function(e,t,n){let r=Av().createElement(`div`),i=t.theme.tableScrollableWrapper;return i?ab(r,i):r.style.overflowX=`auto`,n&&(r.style.scrollbarWidth=`none`),r.appendChild(e),r}(n,e,r);if(this.updateTableWrapper(null,i,n,e),r){let t=function(e){let t=Av(),n=t.createElement(`div`),r=e.theme.tableStickyScrollbar;r?ab(n,r):(n.style.position=`sticky`,n.style.bottom=`0`,n.style.overflowX=`scroll`,n.style.overflowY=`hidden`),n.style.display=`none`,n.setAttribute(`aria-hidden`,`true`),n.tabIndex=-1;let i=t.createElement(`div`);return i.style.height=`1px`,i.style.width=`0px`,n.appendChild(i),n}(e),n=Av().createElement(`div`);return n.setAttribute(`data-lexical-sticky-scrollbar`,`true`),n.appendChild(i),n.appendChild(t),Qv(t),n}return i}return n}updateTableWrapper(e,t,n,r){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(e,t,n,r){r>0?(ab(e,n.theme.tableFrozenColumn),t.setAttribute(`data-lexical-frozen-column`,`true`)):(ob(e,n.theme.tableFrozenColumn),t.removeAttribute(`data-lexical-frozen-column`))}(t,n,r,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(e,t,n,r){r>0?(ab(e,n.theme.tableFrozenRow),t.setAttribute(`data-lexical-frozen-row`,`true`)):(ob(e,n.theme.tableFrozenRow),t.removeAttribute(`data-lexical-frozen-row`))}(t,n,r,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:``)&&jg(t.style,this.__style,e?e.__style:``),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(e,t,n){n?(ab(e,t.theme.tableRowStriping),e.setAttribute(`data-lexical-row-striping`,`true`)):(ob(e,t.theme.tableRowStriping),e.removeAttribute(`data-lexical-row-striping`))}(t,n,this.__rowStriping);let r=e?e.getColumnCount():0,i=e?e.__colWidths:void 0;this.getColumnCount()===r&&this.getColWidths()===i||gD(t,this.getColumnCount(),this.getColWidths()),_D(t,n,this.getFormatType())}updateDOM(e,t,n){let r=mD(this,t);if(t===r===vD())return!0;if(hD(t)){if(t.hasAttribute(`data-lexical-sticky-scrollbar`)!==yD())return!0;let i=r.parentElement;hD(i)&&this.updateTableWrapper(e,i,r,n)}return this.updateTableElement(e,r,n),!1}scaleDOMColWidths(e,t){let n=this.getColWidths();n&&gD(mD(this,e),this.getColumnCount(),n.map(e=>e*t))}exportDOM(e){let t=super.exportDOM(e),{element:n}=t;return{after:n=>{if(t.after&&(n=t.after(n)),!pD(n)&&Lv(n)&&(n=n.querySelector(`table`)),!pD(n))return null;_D(n,e._config,this.getFormatType());let[r]=yse(this,null,null),i=new Map;for(let e of r)for(let t of e){let e=t.cell.getKey();i.has(e)||i.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let a=new Set;for(let e of n.querySelectorAll(`:scope > tr > [data-temporary-table-cell-lexical-key]`)){let t=e.getAttribute(`data-temporary-table-cell-lexical-key`);if(t){let n=i.get(t);if(e.removeAttribute(`data-temporary-table-cell-lexical-key`),n){i.delete(t);for(let e=0;e colgroup`);if(o){let e=Array.from(n.querySelectorAll(`:scope > colgroup > col`)).filter((e,t)=>a.has(t));o.replaceChildren(...e)}let s=n.querySelectorAll(`:scope > tr`);if(s.length>0){let e=Av().createElement(`tbody`);for(let t of s)e.appendChild(t);n.append(e)}return n},element:!pD(n)&&Lv(n)?n.querySelector(`table`):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t{lD(e)&&(t+=e.getColSpan())}),t}},XC.tag(`table`),XC.tag(`tr`),XC.tag(`td`,`th`)})))()}var kD,AD,jD,MD,ND,PD;function FD(){return(FD=s((()=>{kD=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),AD=(e,t,{ellipsis:n=`…`}={})=>{let r=[...e];return`${r.slice(0,t).join(``).trim()}${r.length>t?n:``}`},jD=e=>e.replace(/^\/+/,``).replace(/\/+$/,``),MD=e=>new DOMParser().parseFromString(e,`text/html`).body.textContent,ND=e=>{if(/\s/.test(e))return!1;if(typeof URL.canParse==`function`)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}},PD=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}).compare})))()}var ID=c(((e,t)=>{t!==void 0&&t.exports&&(t.exports={core:{meta:{path:`components/prism-core.js`,option:`mandatory`},core:`Core`},themes:{meta:{path:`themes/{id}.css`,link:`index.html?theme={id}`,exclusive:!0},prism:{title:`Default`,option:`default`},"prism-dark":`Dark`,"prism-funky":`Funky`,"prism-okaidia":{title:`Okaidia`,owner:`ocodia`},"prism-twilight":{title:`Twilight`,owner:`remybach`},"prism-coy":{title:`Coy`,owner:`tshedor`},"prism-solarizedlight":{title:`Solarized Light`,owner:`hectormatos2011 `},"prism-tomorrow":{title:`Tomorrow Night`,owner:`Rosey`}},languages:{meta:{path:`components/prism-{id}`,noCSS:!0,examplesPath:`examples/prism-{id}`,addCheckAll:!0},markup:{title:`Markup`,alias:[`html`,`xml`,`svg`,`mathml`,`ssml`,`atom`,`rss`],aliasTitles:{html:`HTML`,xml:`XML`,svg:`SVG`,mathml:`MathML`,ssml:`SSML`,atom:`Atom`,rss:`RSS`},option:`default`},css:{title:`CSS`,option:`default`,modify:`markup`},clike:{title:`C-like`,option:`default`},javascript:{title:`JavaScript`,require:`clike`,modify:`markup`,optional:`regex`,alias:`js`,option:`default`},abap:{title:`ABAP`,owner:`dellagustin`},abnf:{title:`ABNF`,owner:`RunDevelopment`},actionscript:{title:`ActionScript`,require:`javascript`,modify:`markup`,owner:`Golmote`},ada:{title:`Ada`,owner:`Lucretia`},agda:{title:`Agda`,owner:`xy-ren`},al:{title:`AL`,owner:`RunDevelopment`},antlr4:{title:`ANTLR4`,alias:`g4`,owner:`RunDevelopment`},apacheconf:{title:`Apache Configuration`,owner:`GuiTeK`},apex:{title:`Apex`,require:[`clike`,`sql`],owner:`RunDevelopment`},apl:{title:`APL`,owner:`ngn`},applescript:{title:`AppleScript`,owner:`Golmote`},aql:{title:`AQL`,owner:`RunDevelopment`},arduino:{title:`Arduino`,require:`cpp`,alias:`ino`,owner:`dkern`},arff:{title:`ARFF`,owner:`Golmote`},armasm:{title:`ARM Assembly`,alias:`arm-asm`,owner:`RunDevelopment`},arturo:{title:`Arturo`,alias:`art`,optional:[`bash`,`css`,`javascript`,`markup`,`markdown`,`sql`],owner:`drkameleon`},asciidoc:{alias:`adoc`,title:`AsciiDoc`,owner:`Golmote`},aspnet:{title:`ASP.NET (C#)`,require:[`markup`,`csharp`],owner:`nauzilus`},asm6502:{title:`6502 Assembly`,owner:`kzurawel`},asmatmel:{title:`Atmel AVR Assembly`,owner:`cerkit`},autohotkey:{title:`AutoHotkey`,owner:`aviaryan`},autoit:{title:`AutoIt`,owner:`Golmote`},avisynth:{title:`AviSynth`,alias:`avs`,owner:`Zinfidel`},"avro-idl":{title:`Avro IDL`,alias:`avdl`,owner:`RunDevelopment`},awk:{title:`AWK`,alias:`gawk`,aliasTitles:{gawk:`GAWK`},owner:`RunDevelopment`},bash:{title:`Bash`,alias:[`sh`,`shell`],aliasTitles:{sh:`Shell`,shell:`Shell`},owner:`zeitgeist87`},basic:{title:`BASIC`,owner:`Golmote`},batch:{title:`Batch`,owner:`Golmote`},bbcode:{title:`BBcode`,alias:`shortcode`,aliasTitles:{shortcode:`Shortcode`},owner:`RunDevelopment`},bbj:{title:`BBj`,owner:`hyyan`},bicep:{title:`Bicep`,owner:`johnnyreilly`},birb:{title:`Birb`,require:`clike`,owner:`Calamity210`},bison:{title:`Bison`,require:`c`,owner:`Golmote`},bnf:{title:`BNF`,alias:`rbnf`,aliasTitles:{rbnf:`RBNF`},owner:`RunDevelopment`},bqn:{title:`BQN`,owner:`yewscion`},brainfuck:{title:`Brainfuck`,owner:`Golmote`},brightscript:{title:`BrightScript`,owner:`RunDevelopment`},bro:{title:`Bro`,owner:`wayward710`},bsl:{title:`BSL (1C:Enterprise)`,alias:`oscript`,aliasTitles:{oscript:`OneScript`},owner:`Diversus23`},c:{title:`C`,require:`clike`,owner:`zeitgeist87`},csharp:{title:`C#`,require:`clike`,alias:[`cs`,`dotnet`],owner:`mvalipour`},cpp:{title:`C++`,require:`c`,owner:`zeitgeist87`},cfscript:{title:`CFScript`,require:`clike`,alias:`cfc`,owner:`mjclemente`},chaiscript:{title:`ChaiScript`,require:[`clike`,`cpp`],owner:`RunDevelopment`},cil:{title:`CIL`,owner:`sbrl`},cilkc:{title:`Cilk/C`,require:`c`,alias:`cilk-c`,owner:`OpenCilk`},cilkcpp:{title:`Cilk/C++`,require:`cpp`,alias:[`cilk-cpp`,`cilk`],owner:`OpenCilk`},clojure:{title:`Clojure`,owner:`troglotit`},cmake:{title:`CMake`,owner:`mjrogozinski`},cobol:{title:`COBOL`,owner:`RunDevelopment`},coffeescript:{title:`CoffeeScript`,require:`javascript`,alias:`coffee`,owner:`R-osey`},concurnas:{title:`Concurnas`,alias:`conc`,owner:`jasontatton`},csp:{title:`Content-Security-Policy`,owner:`ScottHelme`},cooklang:{title:`Cooklang`,owner:`ahue`},coq:{title:`Coq`,owner:`RunDevelopment`},crystal:{title:`Crystal`,require:`ruby`,owner:`MakeNowJust`},"css-extras":{title:`CSS Extras`,require:`css`,modify:`css`,owner:`milesj`},csv:{title:`CSV`,owner:`RunDevelopment`},cue:{title:`CUE`,owner:`RunDevelopment`},cypher:{title:`Cypher`,owner:`RunDevelopment`},d:{title:`D`,require:`clike`,owner:`Golmote`},dart:{title:`Dart`,require:`clike`,owner:`Golmote`},dataweave:{title:`DataWeave`,owner:`machaval`},dax:{title:`DAX`,owner:`peterbud`},dhall:{title:`Dhall`,owner:`RunDevelopment`},diff:{title:`Diff`,owner:`uranusjr`},django:{title:`Django/Jinja2`,require:`markup-templating`,alias:`jinja2`,owner:`romanvm`},"dns-zone-file":{title:`DNS zone file`,owner:`RunDevelopment`,alias:`dns-zone`},docker:{title:`Docker`,alias:`dockerfile`,owner:`JustinBeckwith`},dot:{title:`DOT (Graphviz)`,alias:`gv`,optional:`markup`,owner:`RunDevelopment`},ebnf:{title:`EBNF`,owner:`RunDevelopment`},editorconfig:{title:`EditorConfig`,owner:`osipxd`},eiffel:{title:`Eiffel`,owner:`Conaclos`},ejs:{title:`EJS`,require:[`javascript`,`markup-templating`],owner:`RunDevelopment`,alias:`eta`,aliasTitles:{eta:`Eta`}},elixir:{title:`Elixir`,owner:`Golmote`},elm:{title:`Elm`,owner:`zwilias`},etlua:{title:`Embedded Lua templating`,require:[`lua`,`markup-templating`],owner:`RunDevelopment`},erb:{title:`ERB`,require:[`ruby`,`markup-templating`],owner:`Golmote`},erlang:{title:`Erlang`,owner:`Golmote`},"excel-formula":{title:`Excel Formula`,alias:[`xlsx`,`xls`],owner:`RunDevelopment`},fsharp:{title:`F#`,require:`clike`,owner:`simonreynolds7`},factor:{title:`Factor`,owner:`catb0t`},false:{title:`False`,owner:`edukisto`},"firestore-security-rules":{title:`Firestore security rules`,require:`clike`,owner:`RunDevelopment`},flow:{title:`Flow`,require:`javascript`,owner:`Golmote`},fortran:{title:`Fortran`,owner:`Golmote`},ftl:{title:`FreeMarker Template Language`,require:`markup-templating`,owner:`RunDevelopment`},gml:{title:`GameMaker Language`,alias:`gamemakerlanguage`,require:`clike`,owner:`LiarOnce`},gap:{title:`GAP (CAS)`,owner:`RunDevelopment`},gcode:{title:`G-code`,owner:`RunDevelopment`},gdscript:{title:`GDScript`,owner:`RunDevelopment`},gedcom:{title:`GEDCOM`,owner:`Golmote`},gettext:{title:`gettext`,alias:`po`,owner:`RunDevelopment`},gherkin:{title:`Gherkin`,owner:`hason`},git:{title:`Git`,owner:`lgiraudel`},glsl:{title:`GLSL`,require:`c`,owner:`Golmote`},gn:{title:`GN`,alias:`gni`,owner:`RunDevelopment`},"linker-script":{title:`GNU Linker Script`,alias:`ld`,owner:`RunDevelopment`},go:{title:`Go`,require:`clike`,owner:`arnehormann`},"go-module":{title:`Go module`,alias:`go-mod`,owner:`RunDevelopment`},gradle:{title:`Gradle`,require:`clike`,owner:`zeabdelkhalek-badido18`},graphql:{title:`GraphQL`,optional:`markdown`,owner:`Golmote`},groovy:{title:`Groovy`,require:`clike`,owner:`robfletcher`},haml:{title:`Haml`,require:`ruby`,optional:[`css`,`css-extras`,`coffeescript`,`erb`,`javascript`,`less`,`markdown`,`scss`,`textile`],owner:`Golmote`},handlebars:{title:`Handlebars`,require:`markup-templating`,alias:[`hbs`,`mustache`],aliasTitles:{mustache:`Mustache`},owner:`Golmote`},haskell:{title:`Haskell`,alias:`hs`,owner:`bholst`},haxe:{title:`Haxe`,require:`clike`,optional:`regex`,owner:`Golmote`},hcl:{title:`HCL`,owner:`outsideris`},hlsl:{title:`HLSL`,require:`c`,owner:`RunDevelopment`},hoon:{title:`Hoon`,owner:`matildepark`},http:{title:`HTTP`,optional:[`csp`,`css`,`hpkp`,`hsts`,`javascript`,`json`,`markup`,`uri`],owner:`danielgtaylor`},hpkp:{title:`HTTP Public-Key-Pins`,owner:`ScottHelme`},hsts:{title:`HTTP Strict-Transport-Security`,owner:`ScottHelme`},ichigojam:{title:`IchigoJam`,owner:`BlueCocoa`},icon:{title:`Icon`,owner:`Golmote`},"icu-message-format":{title:`ICU Message Format`,owner:`RunDevelopment`},idris:{title:`Idris`,alias:`idr`,owner:`KeenS`,require:`haskell`},ignore:{title:`.ignore`,owner:`osipxd`,alias:[`gitignore`,`hgignore`,`npmignore`],aliasTitles:{gitignore:`.gitignore`,hgignore:`.hgignore`,npmignore:`.npmignore`}},inform7:{title:`Inform 7`,owner:`Golmote`},ini:{title:`Ini`,owner:`aviaryan`},io:{title:`Io`,owner:`AlesTsurko`},j:{title:`J`,owner:`Golmote`},java:{title:`Java`,require:`clike`,owner:`sherblot`},javadoc:{title:`JavaDoc`,require:[`markup`,`java`,`javadoclike`],modify:`java`,optional:`scala`,owner:`RunDevelopment`},javadoclike:{title:`JavaDoc-like`,modify:[`java`,`javascript`,`php`],owner:`RunDevelopment`},javastacktrace:{title:`Java stack trace`,owner:`RunDevelopment`},jexl:{title:`Jexl`,owner:`czosel`},jolie:{title:`Jolie`,require:`clike`,owner:`thesave`},jq:{title:`JQ`,owner:`RunDevelopment`},jsdoc:{title:`JSDoc`,require:[`javascript`,`javadoclike`,`typescript`],modify:`javascript`,optional:[`actionscript`,`coffeescript`],owner:`RunDevelopment`},"js-extras":{title:`JS Extras`,require:`javascript`,modify:`javascript`,optional:[`actionscript`,`coffeescript`,`flow`,`n4js`,`typescript`],owner:`RunDevelopment`},json:{title:`JSON`,alias:`webmanifest`,aliasTitles:{webmanifest:`Web App Manifest`},owner:`CupOfTea696`},json5:{title:`JSON5`,require:`json`,owner:`RunDevelopment`},jsonp:{title:`JSONP`,require:`json`,owner:`RunDevelopment`},jsstacktrace:{title:`JS stack trace`,owner:`sbrl`},"js-templates":{title:`JS Templates`,require:`javascript`,modify:`javascript`,optional:[`css`,`css-extras`,`graphql`,`markdown`,`markup`,`sql`],owner:`RunDevelopment`},julia:{title:`Julia`,owner:`cdagnino`},keepalived:{title:`Keepalived Configure`,owner:`dev-itsheng`},keyman:{title:`Keyman`,owner:`mcdurdin`},kotlin:{title:`Kotlin`,alias:[`kt`,`kts`],aliasTitles:{kts:`Kotlin Script`},require:`clike`,owner:`Golmote`},kumir:{title:`KuMir (КуМир)`,alias:`kum`,owner:`edukisto`},kusto:{title:`Kusto`,owner:`RunDevelopment`},latex:{title:`LaTeX`,alias:[`tex`,`context`],aliasTitles:{tex:`TeX`,context:`ConTeXt`},owner:`japborst`},latte:{title:`Latte`,require:[`clike`,`markup-templating`,`php`],owner:`nette`},less:{title:`Less`,require:`css`,optional:`css-extras`,owner:`Golmote`},lilypond:{title:`LilyPond`,require:`scheme`,alias:`ly`,owner:`RunDevelopment`},liquid:{title:`Liquid`,require:`markup-templating`,owner:`cinhtau`},lisp:{title:`Lisp`,alias:[`emacs`,`elisp`,`emacs-lisp`],owner:`JuanCaicedo`},livescript:{title:`LiveScript`,owner:`Golmote`},llvm:{title:`LLVM IR`,owner:`porglezomp`},log:{title:`Log file`,optional:`javastacktrace`,owner:`RunDevelopment`},lolcode:{title:`LOLCODE`,owner:`Golmote`},lua:{title:`Lua`,owner:`Golmote`},magma:{title:`Magma (CAS)`,owner:`RunDevelopment`},makefile:{title:`Makefile`,owner:`Golmote`},markdown:{title:`Markdown`,require:`markup`,optional:`yaml`,alias:`md`,owner:`Golmote`},"markup-templating":{title:`Markup templating`,require:`markup`,owner:`Golmote`},mata:{title:`Mata`,owner:`RunDevelopment`},matlab:{title:`MATLAB`,owner:`Golmote`},maxscript:{title:`MAXScript`,owner:`RunDevelopment`},mel:{title:`MEL`,owner:`Golmote`},mermaid:{title:`Mermaid`,owner:`RunDevelopment`},metafont:{title:`METAFONT`,owner:`LaeriExNihilo`},mizar:{title:`Mizar`,owner:`Golmote`},mongodb:{title:`MongoDB`,owner:`airs0urce`,require:`javascript`},monkey:{title:`Monkey`,owner:`Golmote`},moonscript:{title:`MoonScript`,alias:`moon`,owner:`RunDevelopment`},n1ql:{title:`N1QL`,owner:`TMWilds`},n4js:{title:`N4JS`,require:`javascript`,optional:`jsdoc`,alias:`n4jsd`,owner:`bsmith-n4`},"nand2tetris-hdl":{title:`Nand To Tetris HDL`,owner:`stephanmax`},naniscript:{title:`Naninovel Script`,owner:`Elringus`,alias:`nani`},nasm:{title:`NASM`,owner:`rbmj`},neon:{title:`NEON`,owner:`nette`},nevod:{title:`Nevod`,owner:`nezaboodka`},nginx:{title:`nginx`,owner:`volado`},nim:{title:`Nim`,owner:`Golmote`},nix:{title:`Nix`,owner:`Golmote`},nsis:{title:`NSIS`,owner:`idleberg`},objectivec:{title:`Objective-C`,require:`c`,alias:`objc`,owner:`uranusjr`},ocaml:{title:`OCaml`,owner:`Golmote`},odin:{title:`Odin`,owner:`edukisto`},opencl:{title:`OpenCL`,require:`c`,modify:[`c`,`cpp`],owner:`Milania1`},openqasm:{title:`OpenQasm`,alias:`qasm`,owner:`RunDevelopment`},oz:{title:`Oz`,owner:`Golmote`},parigp:{title:`PARI/GP`,owner:`Golmote`},parser:{title:`Parser`,require:`markup`,owner:`Golmote`},pascal:{title:`Pascal`,alias:`objectpascal`,aliasTitles:{objectpascal:`Object Pascal`},owner:`Golmote`},pascaligo:{title:`Pascaligo`,owner:`DefinitelyNotAGoat`},psl:{title:`PATROL Scripting Language`,owner:`bertysentry`},pcaxis:{title:`PC-Axis`,alias:`px`,owner:`RunDevelopment`},peoplecode:{title:`PeopleCode`,alias:`pcode`,owner:`RunDevelopment`},perl:{title:`Perl`,owner:`Golmote`},php:{title:`PHP`,require:`markup-templating`,owner:`milesj`},phpdoc:{title:`PHPDoc`,require:[`php`,`javadoclike`],modify:`php`,owner:`RunDevelopment`},"php-extras":{title:`PHP Extras`,require:`php`,modify:`php`,owner:`milesj`},"plant-uml":{title:`PlantUML`,alias:`plantuml`,owner:`RunDevelopment`},plsql:{title:`PL/SQL`,require:`sql`,owner:`Golmote`},powerquery:{title:`PowerQuery`,alias:[`pq`,`mscript`],owner:`peterbud`},powershell:{title:`PowerShell`,owner:`nauzilus`},processing:{title:`Processing`,require:`clike`,owner:`Golmote`},prolog:{title:`Prolog`,owner:`Golmote`},promql:{title:`PromQL`,owner:`arendjr`},properties:{title:`.properties`,owner:`Golmote`},protobuf:{title:`Protocol Buffers`,require:`clike`,owner:`just-boris`},pug:{title:`Pug`,require:[`markup`,`javascript`],optional:[`coffeescript`,`ejs`,`handlebars`,`less`,`livescript`,`markdown`,`scss`,`stylus`,`twig`],owner:`Golmote`},puppet:{title:`Puppet`,owner:`Golmote`},pure:{title:`Pure`,optional:[`c`,`cpp`,`fortran`],owner:`Golmote`},purebasic:{title:`PureBasic`,require:`clike`,alias:`pbfasm`,owner:`HeX0R101`},purescript:{title:`PureScript`,require:`haskell`,alias:`purs`,owner:`sriharshachilakapati`},python:{title:`Python`,alias:`py`,owner:`multipetros`},qsharp:{title:`Q#`,require:`clike`,alias:`qs`,owner:`fedonman`},q:{title:`Q (kdb+ database)`,owner:`Golmote`},qml:{title:`QML`,require:`javascript`,owner:`RunDevelopment`},qore:{title:`Qore`,require:`clike`,owner:`temnroegg`},r:{title:`R`,owner:`Golmote`},racket:{title:`Racket`,require:`scheme`,alias:`rkt`,owner:`RunDevelopment`},cshtml:{title:`Razor C#`,alias:`razor`,require:[`markup`,`csharp`],optional:[`css`,`css-extras`,`javascript`,`js-extras`],owner:`RunDevelopment`},jsx:{title:`React JSX`,require:[`markup`,`javascript`],optional:[`jsdoc`,`js-extras`,`js-templates`],owner:`vkbansal`},tsx:{title:`React TSX`,require:[`jsx`,`typescript`]},reason:{title:`Reason`,require:`clike`,owner:`Golmote`},regex:{title:`Regex`,owner:`RunDevelopment`},rego:{title:`Rego`,owner:`JordanSh`},renpy:{title:`Ren'py`,alias:`rpy`,owner:`HyuchiaDiego`},rescript:{title:`ReScript`,alias:`res`,owner:`vmarcosp`},rest:{title:`reST (reStructuredText)`,owner:`Golmote`},rip:{title:`Rip`,owner:`ravinggenius`},roboconf:{title:`Roboconf`,owner:`Golmote`},robotframework:{title:`Robot Framework`,alias:`robot`,owner:`RunDevelopment`},ruby:{title:`Ruby`,require:`clike`,alias:`rb`,owner:`samflores`},rust:{title:`Rust`,owner:`Golmote`},sas:{title:`SAS`,optional:[`groovy`,`lua`,`sql`],owner:`Golmote`},sass:{title:`Sass (Sass)`,require:`css`,optional:`css-extras`,owner:`Golmote`},scss:{title:`Sass (SCSS)`,require:`css`,optional:`css-extras`,owner:`MoOx`},scala:{title:`Scala`,require:`java`,owner:`jozic`},scheme:{title:`Scheme`,owner:`bacchus123`},"shell-session":{title:`Shell session`,require:`bash`,alias:[`sh-session`,`shellsession`],owner:`RunDevelopment`},smali:{title:`Smali`,owner:`RunDevelopment`},smalltalk:{title:`Smalltalk`,owner:`Golmote`},smarty:{title:`Smarty`,require:`markup-templating`,optional:`php`,owner:`Golmote`},sml:{title:`SML`,alias:`smlnj`,aliasTitles:{smlnj:`SML/NJ`},owner:`RunDevelopment`},solidity:{title:`Solidity (Ethereum)`,alias:`sol`,require:`clike`,owner:`glachaud`},"solution-file":{title:`Solution file`,alias:`sln`,owner:`RunDevelopment`},soy:{title:`Soy (Closure Template)`,require:`markup-templating`,owner:`Golmote`},sparql:{title:`SPARQL`,require:`turtle`,owner:`Triply-Dev`,alias:`rq`},"splunk-spl":{title:`Splunk SPL`,owner:`RunDevelopment`},sqf:{title:`SQF: Status Quo Function (Arma 3)`,require:`clike`,owner:`RunDevelopment`},sql:{title:`SQL`,owner:`multipetros`},squirrel:{title:`Squirrel`,require:`clike`,owner:`RunDevelopment`},stan:{title:`Stan`,owner:`RunDevelopment`},stata:{title:`Stata Ado`,require:[`mata`,`java`,`python`],owner:`RunDevelopment`},iecst:{title:`Structured Text (IEC 61131-3)`,owner:`serhioromano`},stylus:{title:`Stylus`,owner:`vkbansal`},supercollider:{title:`SuperCollider`,alias:`sclang`,owner:`RunDevelopment`},swift:{title:`Swift`,owner:`chrischares`},systemd:{title:`Systemd configuration file`,owner:`RunDevelopment`},"t4-templating":{title:`T4 templating`,owner:`RunDevelopment`},"t4-cs":{title:`T4 Text Templates (C#)`,require:[`t4-templating`,`csharp`],alias:`t4`,owner:`RunDevelopment`},"t4-vb":{title:`T4 Text Templates (VB)`,require:[`t4-templating`,`vbnet`],owner:`RunDevelopment`},tap:{title:`TAP`,owner:`isaacs`,require:`yaml`},tcl:{title:`Tcl`,owner:`PeterChaplin`},tt2:{title:`Template Toolkit 2`,require:[`clike`,`markup-templating`],owner:`gflohr`},textile:{title:`Textile`,require:`markup`,optional:`css`,owner:`Golmote`},toml:{title:`TOML`,owner:`RunDevelopment`},tremor:{title:`Tremor`,alias:[`trickle`,`troy`],owner:`darach`,aliasTitles:{trickle:`trickle`,troy:`troy`}},turtle:{title:`Turtle`,alias:`trig`,aliasTitles:{trig:`TriG`},owner:`jakubklimek`},twig:{title:`Twig`,require:`markup-templating`,owner:`brandonkelly`},typescript:{title:`TypeScript`,require:`javascript`,optional:`js-templates`,alias:`ts`,owner:`vkbansal`},typoscript:{title:`TypoScript`,alias:`tsconfig`,aliasTitles:{tsconfig:`TSConfig`},owner:`dkern`},unrealscript:{title:`UnrealScript`,alias:[`uscript`,`uc`],owner:`RunDevelopment`},uorazor:{title:`UO Razor Script`,owner:`jaseowns`},uri:{title:`URI`,alias:`url`,aliasTitles:{url:`URL`},owner:`RunDevelopment`},v:{title:`V`,require:`clike`,owner:`taggon`},vala:{title:`Vala`,require:`clike`,optional:`regex`,owner:`TemplarVolk`},vbnet:{title:`VB.Net`,require:`basic`,owner:`Bigsby`},velocity:{title:`Velocity`,require:`markup`,owner:`Golmote`},verilog:{title:`Verilog`,owner:`a-rey`},vhdl:{title:`VHDL`,owner:`a-rey`},vim:{title:`vim`,owner:`westonganger`},"visual-basic":{title:`Visual Basic`,alias:[`vb`,`vba`],aliasTitles:{vba:`VBA`},owner:`Golmote`},warpscript:{title:`WarpScript`,owner:`RunDevelopment`},wasm:{title:`WebAssembly`,owner:`Golmote`},"web-idl":{title:`Web IDL`,alias:`webidl`,owner:`RunDevelopment`},wgsl:{title:`WGSL`,owner:`Dr4gonthree`},wiki:{title:`Wiki markup`,require:`markup`,owner:`Golmote`},wolfram:{title:`Wolfram language`,alias:[`mathematica`,`nb`,`wl`],aliasTitles:{mathematica:`Mathematica`,nb:`Mathematica Notebook`},owner:`msollami`},wren:{title:`Wren`,owner:`clsource`},xeora:{title:`Xeora`,require:`markup`,alias:`xeoracube`,aliasTitles:{xeoracube:`XeoraCube`},owner:`freakmaxi`},"xml-doc":{title:`XML doc (.net)`,require:`markup`,modify:[`csharp`,`fsharp`,`vbnet`],owner:`RunDevelopment`},xojo:{title:`Xojo (REALbasic)`,owner:`Golmote`},xquery:{title:`XQuery`,require:`markup`,owner:`Golmote`},yaml:{title:`YAML`,alias:`yml`,owner:`hason`},yang:{title:`YANG`,owner:`RunDevelopment`},zig:{title:`Zig`,owner:`RunDevelopment`}},plugins:{meta:{path:`plugins/{id}/prism-{id}`,link:`plugins/{id}/`},"line-highlight":{title:`Line Highlight`,description:`Highlights specific lines and/or line ranges.`},"line-numbers":{title:`Line Numbers`,description:`Line number at the beginning of code lines.`,owner:`kuba-kubula`},"show-invisibles":{title:`Show Invisibles`,description:`Show hidden characters such as tabs and line breaks.`,optional:[`autolinker`,`data-uri-highlight`]},autolinker:{title:`Autolinker`,description:`Converts URLs and emails in code to clickable links. Parses Markdown links in comments.`},wpd:{title:`WebPlatform Docs`,description:`Makes tokens link to WebPlatform.org documentation. The links open in a new tab.`},"custom-class":{title:`Custom Class`,description:`This plugin allows you to prefix Prism's default classes (.comment can become .namespace--comment) or replace them with your defined ones (like .editor__comment). You can even add new classes.`,owner:`dvkndn`,noCSS:!0},"file-highlight":{title:`File Highlight`,description:`Fetch external files and highlight them with Prism. Used on the Prism website itself.`,noCSS:!0},"show-language":{title:`Show Language`,description:`Display the highlighted language in code blocks (inline code does not show the label).`,owner:`nauzilus`,noCSS:!0,require:`toolbar`},"jsonp-highlight":{title:`JSONP Highlight`,description:`Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).`,noCSS:!0,owner:`nauzilus`},"highlight-keywords":{title:`Highlight Keywords`,description:`Adds special CSS classes for each keyword for fine-grained highlighting.`,owner:`vkbansal`,noCSS:!0},"remove-initial-line-feed":{title:`Remove initial line feed`,description:`Removes the initial line feed in code blocks.`,owner:`Golmote`,noCSS:!0},"inline-color":{title:`Inline color`,description:`Adds a small inline preview for colors in style sheets.`,require:`css-extras`,owner:`RunDevelopment`},previewers:{title:`Previewers`,description:`Previewers for angles, colors, gradients, easing and time.`,require:`css-extras`,owner:`Golmote`},autoloader:{title:`Autoloader`,description:`Automatically loads the needed languages to highlight the code blocks.`,owner:`Golmote`,noCSS:!0},"keep-markup":{title:`Keep Markup`,description:`Prevents custom markup from being dropped out during highlighting.`,owner:`Golmote`,optional:`normalize-whitespace`,noCSS:!0},"command-line":{title:`Command Line`,description:`Display a command line with a prompt and, optionally, the output/response from the commands.`,owner:`chriswells0`},"unescaped-markup":{title:`Unescaped Markup`,description:`Write markup without having to escape anything.`},"normalize-whitespace":{title:`Normalize Whitespace`,description:`Supports multiple operations to normalize whitespace in code blocks.`,owner:`zeitgeist87`,optional:`unescaped-markup`,noCSS:!0},"data-uri-highlight":{title:`Data-URI Highlight`,description:`Highlights data-URI contents.`,owner:`Golmote`,noCSS:!0},toolbar:{title:`Toolbar`,description:`Attach a toolbar for plugins to easily register buttons on the top of a code block.`,owner:`mAAdhaTTah`},"copy-to-clipboard":{title:`Copy to Clipboard Button`,description:`Add a button that copies the code block to the clipboard when clicked.`,owner:`mAAdhaTTah`,require:`toolbar`,noCSS:!0},"download-button":{title:`Download Button`,description:`A button in the toolbar of a code block adding a convenient way to download a code file.`,owner:`Golmote`,require:`toolbar`,noCSS:!0},"match-braces":{title:`Match braces`,description:`Highlights matching braces.`,owner:`RunDevelopment`},"diff-highlight":{title:`Diff Highlight`,description:`Highlights the code inside diff blocks.`,owner:`RunDevelopment`,require:`diff`},"filter-highlight-all":{title:`Filter highlightAll`,description:`Filters the elements the highlightAll and highlightAllUnder methods actually highlight.`,owner:`RunDevelopment`,noCSS:!0},treeview:{title:`Treeview`,description:`A language with special styles to highlight file system tree structures.`,owner:`Golmote`}}})})),LD,RD,zD,BD,VD,HD,UD,WD,GD;function KD(){return(KD=s((()=>{bw(),Lw(),iT(),aD(),YT(),LD=`https://unpkg.com/prismjs@1.30.0`,RD={text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}},zD={bold:{labelKey:`bold`,icon:`format_bold`,inline:!0},italic:{labelKey:`italic`,icon:`format_italic`,inline:!0},strikethrough:{labelKey:`strikethrough`,icon:`strikethrough_s`,inline:!0},code:{labelKey:`code`,icon:`code`,inline:!0},link:{labelKey:`link`,icon:`link`,inline:!0},paragraph:{labelKey:`paragraph`,icon:`format_paragraph`,inline:!1},"heading-1":{labelKey:`heading_1`,icon:`format_h1`,inline:!1},"heading-2":{labelKey:`heading_2`,icon:`format_h2`,inline:!1},"heading-3":{labelKey:`heading_3`,icon:`format_h3`,inline:!1},"heading-4":{labelKey:`heading_4`,icon:`format_h4`,inline:!1},"heading-5":{labelKey:`heading_5`,icon:`format_h5`,inline:!1},"heading-6":{labelKey:`heading_6`,icon:`format_h6`,inline:!1},"bulleted-list":{labelKey:`bulleted_list`,icon:`format_list_bulleted`,inline:!1},"numbered-list":{labelKey:`numbered_list`,icon:`format_list_numbered`,inline:!1},blockquote:{labelKey:`blockquote`,icon:`format_quote`,inline:!1},"code-block":{labelKey:`code_block`,icon:`code_blocks`,inline:!1}},BD=[`bold`,`italic`,`strikethrough`,`code`],VD=[...BD,`link`],HD=[`paragraph`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`heading-5`,`heading-6`,`bulleted-list`,`numbered-list`,`blockquote`,`code-block`],UD={"heading-1":[qT],"heading-2":[qT],"heading-3":[qT],"heading-4":[qT],"heading-5":[qT],"heading-6":[qT],"bulleted-list":[eT,$w],"numbered-list":[eT,$w],blockquote:[KT],"code-block":[fw,pw],link:[Nw]},WD={"heading-1":[zE],"heading-2":[zE],"heading-3":[zE],"heading-4":[zE],"heading-5":[zE],"heading-6":[zE],"bulleted-list":[HE],"numbered-list":[UE],blockquote:[BE],"code-block":[VE],code:[WE],bold:[JE,YE,KE,qE],italic:[QE,ZE,KE,qE],strikethrough:[XE],link:[$E]},GD=[`*`,`__`,`***`,`___`]})))()}var qD,JD;function YD(){return(YD=s((()=>{qD=e=>e.replace(/(\s+)_([^_\n]+?)\n([^_\n]+?)_(\s+)/gm,`$1_$2_ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2** **$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~ ~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),JD=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(` `).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(` `)}})))()}var XD;function ZD(){return(ZD=s((()=>{zC(),XD={dependencies:[RC],export:e=>tae(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=eae();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}})))()}var QD,$D,eO,tO,nO,rO;function iO(){return(iO=s((()=>{aD(),OD(),nC(),QD=/^(?:\|)(.+)(?:\|)\s?$/,$D=/^(\| ?:?-*:? ?)+\|\s?$/,eO=e=>{let t=e.getFirstChild();return fD(t)?t.getChildrenSize():0},tO=e=>{e=e.replace(/\\n/g,` `);let t=cD(CD.NO_STATUS);return hE(e,iD,t),t},nO=e=>{let[,t]=e.match(QD)??[];return t?t.split(`|`).map(e=>tO(e)):null},rO={dependencies:[DD,TD,wD],export:e=>{if(!xD(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!fD(e))return;let r=!1;e.getChildren().forEach(e=>{lD(e)&&(n.push(gE(iD,e).replace(/\n/g,`\\n`).trim()),e.__headerState===CD.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(` `)},regExp:QD,replace:(e,t,[n])=>{if($D.test(n)){let t=e.getPreviousSibling();if(!t||!xD(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!fD(r))return;r.getChildren().forEach(e=>{lD(e)&&e.setHeaderStyles(CD.ROW,CD.ROW)}),e.remove();return}let r=nO(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!A_(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Hg(e))break;let t=nO(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=bD();i.forEach(e=>{let t=dD();s.append(t);for(let n=0;n{aO=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})))()}var sO,cO,lO,uO,dO,fO,pO;function mO(){return(mO=s((()=>{uh(),bw(),yw(),ww(),zC(),Ew(),Lw(),iT(),aD(),YT(),OD(),uC(),rd(),FD(),nC(),sO=u(ID(),1),KD(),YD(),ZD(),iO(),oO(),cO=()=>{let e=n_();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=BD.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof MS?t:sC(t,MS),Ow(n)&&(r.push(`link`),n=sC(n,MS)),Jw(n)&&(n=sC(n,eT)));let i=(()=>{if(!n)return`paragraph`;if(NT(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(Qw(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(kT(n))return`blockquote`;if(rw(n)||sw(n))return`code-block`;let e=n.getType();return HD.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},lO=(e,t)=>{let n=t.filter(({tag:e})=>!GD.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:gE(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:cO()}}))},uO=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(UD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[fw,pw]:[RC,DD,wD,TD]],theme:RD},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(WD).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[VE]:[XD,rO]],s=ere(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(ise(s)),l(Moe(s)),l(Ioe(s,Loe(),1e3)),n&&l(_se(s,o)),(e.includes(`code-block`)||r)&&l(koe(s,{defaultLanguage:i,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:vw.$tokenize})),e.includes(`link`)&&(l(s.registerCommand(Fw,e=>(Boe(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(Mx,e=>{let t=n_();if(!Q(t)||!cC(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return ND(n)?(t.isCollapsed()&&s_([Vg(n)]),!t.getNodes().some(e=>$(e)||Hg(e)&&!e.isSimpleText())&&(s.dispatchCommand(Fw,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(nT,()=>(Bw(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(rT,()=>(Bw(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(Ax,()=>Koe(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await nd(100),s.update(()=>{if(r){let e=Z_(),t=e.getChildren();if(t.length===1&&!rw(t[0])&&t[0].remove(),t.length===0){let t=nw();t.setLanguage(i),e.append(t)}}lO(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=n_();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof MS?n:sC(n,MS);Jw(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(eS,void 0)):(e.preventDefault(),s.dispatchCommand($x,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},dO=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(sO.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await aO(()=>import(`${LD}/components/prism-${t}.min.js`),void 0)}catch{}},fO=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>dO(e))),t=qD(t),t=JD(t),new Promise((r,i)=>{e.update(()=>{try{hE(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),pO=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})})))()}function hO(e,t){O(t,!0),G(e,vO);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=qs(t,gO),c=Pt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));Zr(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};rc(()=>{let{editor:e,enabledTransformers:t,dispose:n}=uO(c.config);return c.editor=e,c.enabledTransformers=t,z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),Zr(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=_O();gs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[ys]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-a9qoiq`),Bs(p,e=>P(l,e),()=>z(l)),H(e,p),k()}var gO,_O,vO;function yO(){return(yO=s((()=>{Y(),J(),oc(),mO(),gO=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),_O=B(`
`),vO={hash:`svelte-a9qoiq`,code:`.lexical-root.svelte-a9qoiq {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-a9qoiq:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-a9qoiq {padding:0;}.lexical-root.code.svelte-a9qoiq .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-a9qoiq:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-a9qoiq {border-color:var(--sui-error-border-color);}.lexical-root.svelte-a9qoiq [dir]:first-child {margin-top:0;}.lexical-root.svelte-a9qoiq [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-a9qoiq strong.italic {font-style:italic;}.lexical-root.svelte-a9qoiq .strikethrough {text-decoration:line-through;}.lexical-root.svelte-a9qoiq li.nested {list-style-type:none;}.lexical-root.svelte-a9qoiq .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-a9qoiq .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-a9qoiq .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-a9qoiq .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-a9qoiq [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-a9qoiq :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-a9qoiq hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-a9qoiq hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-a9qoiq .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-a9qoiq .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-a9qoiq .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-a9qoiq .token.inserted {color:green;}`}})))()}var bO;function xO(){return(xO=s((()=>{J(),Cd(),mO(),bO=()=>{let e=_d(`editor`),t=N(!1),n=N(void 0),r=N(Dr([])),i=N(Dr({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1})),a=N(``),o=N(Dr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=N(!0),c=N(!1),l=N(!1),u=async()=>{if(!z(n)||!z(t))return;let e=z(a);try{await fO(z(n),z(a)||``,z(r))}catch(t){P(c,!0),P(a,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},set enabledTransformers(e){P(r,e,!0)},get enabledTransformers(){return z(r)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(i)},set config(e){P(i,e,!0),P(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(a)},set inputValue(e){let t=z(a)!==e;t&&P(a,e,!0),z(s)&&(t||z(n)?.getEditorState().isEmpty())&&u()},get selection(){return z(o)},set selection(e){P(o,e,!0)},get useRichText(){return z(s)},set useRichText(e){P(s,e,!0)},get hasConverterError(){return z(c)},set hasConverterError(e){P(c,e,!0),z(c)&&(P(s,!1),P(l,!0))},get showConverterError(){return z(l)},set showConverterError(e){P(l,e,!0)},editorId:e,convertMarkdown:u}}})))()}function SO(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=Object.entries(CO.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Pt(`editorStore`),a=N(`plain`);Zr(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?Z_().getChildren()[0]:J_(i.selection.blockNodeKey);rw(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));Hm(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await pO(i.editor),i.selection?.blockNodeKey&&(await dO(e),i.editor.update(()=>{let t=J_(i.selection.blockNodeKey);rw(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=wO(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));sm(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}lo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));sm(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),H(e,n)},$$slots:{default:!0}})}k()}var CO,wO;function TO(){return(TO=s((()=>{Y(),J(),uh(),bw(),Z(),nC(),CO=u(ID()),oc(),fm(),Um(),mO(),wO=B(` `,1)})))()}function EO(e,t){G(e,kO);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=q(t,`variant`,3,void 0),o=q(t,`ariaLabel`,3,void 0),s=qs(t,DO);var c=OO();gs(c,()=>({...s,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o()}),void 0,void 0,void 0,`svelte-1ni1168`);var l=F(c);So(F(l),()=>t.children??E),D(l),D(c),R(()=>l.inert=r()),H(e,c)}var DO,OO,kO;function AO(){return(AO=s((()=>{Y(),J(),DO=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),OO=B(`
`),kO={hash:`svelte-1ni1168`,code:`[role=toolbar].svelte-1ni1168 {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-1ni1168 {--toolbar-size: var(--sui-primary-toolbar-size);} @media (width < 768px) {[role=toolbar].secondary.svelte-1ni1168 {padding-inline:0;} }[role=toolbar][aria-orientation=horizontal].svelte-1ni1168 {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1ni1168 {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1ni1168 button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1ni1168 h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-1ni1168 h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1ni1168 h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-1ni1168 .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1ni1168 .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1ni1168 {display:contents;}`}})))()}function jO(e,t){O(t,!0),G(e,PO),q(t,`code`,11,``),q(t,`lang`,11,`plain`);let n=q(t,`disabled`,3,!1),r=qs(t,MO);var i=NO();EO(F(i),Js(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=V();So(I(r),()=>t.children??E),H(e,r)},$$slots:{default:!0}})),D(i),H(e,i),k()}var MO,NO,PO;function FO(){return(FO=s((()=>{Y(),J(),AO(),MO=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),NO=B(`
`),PO={hash:`svelte-hs3kuq`,code:`.wrapper.svelte-hs3kuq {display:contents;}.wrapper.svelte-hs3kuq [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);} @media (width < 768px) {.wrapper.svelte-hs3kuq [role=toolbar] {flex-wrap:wrap;height:auto;} }.wrapper.svelte-hs3kuq .sui.menu-button {padding:0 4px;}.wrapper.svelte-hs3kuq .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-hs3kuq .sui.button-group {gap:4px;}`}})))()}function Cse(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>X(`_sui.text_editor.code_editor`));jO(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());SO(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}k()}function IO(){return(IO=s((()=>{Y(),J(),Z(),TO(),FO()})))()}function wse(e,t){O(t,!0),G(e,zO);let n=q(t,`code`,15,``),r=q(t,`lang`,15,`plain`),i=q(t,`showLanguageSwitcher`,3,!1),a=q(t,`flex`,3,!1),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=qs(t,LO),f=bO();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Ft(`editorStore`,f),Zr(()=>{f.initialized&&(n(),r(),Ri(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),Zr(()=>{f.initialized&&(f.inputValue,Ri(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?\w+?)?\n(?:(?.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=RO(),m=I(p);gs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[ys]:{flex:a()}}),void 0,void 0,void 0,`svelte-gt0st6`);var h=F(m),g=e=>{Cse(e,{get disabled(){return s()},get readonly(){return c()}})};W(h,e=>{i()&&e(g)}),hO(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{ah(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(_,e=>{f.showConverterError&&e(v)}),H(e,p),k()}var LO,RO,zO;function BO(){return(BO=s((()=>{Y(),J(),Z(),oc(),gc(),lh(),yO(),xO(),IO(),LO=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),RO=B(`
`,1),zO={hash:`svelte-gt0st6`,code:`.code-editor.svelte-gt0st6 {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.code-editor.svelte-gt0st6:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-gt0st6:not([hidden]) {display:block;}`}})))()}function VO(e,t){O(t,!0),G(e,GO);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`name`,3,void 0),o=q(t,`autoResize`,3,!1),s=q(t,`hidden`,3,!1),c=q(t,`disabled`,3,!1),l=q(t,`readonly`,3,!1),u=q(t,`required`,3,!1),d=q(t,`invalid`,3,!1),f=qs(t,HO);var p=WO();let m;var h=F(p);Cn(h),gs(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[ys]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-36nr95`);var g=L(h,2),_=e=>{var t=UO(),r=F(t,!0);D(t),R(()=>{K(t,`dir`,i()),U(r,n()),t.dir=t.dir}),H(e,t)};W(g,e=>{o()&&e(_)}),D(p),R(()=>{m=is(p,1,`sui text-area ${t.class??``}`,`svelte-36nr95`,m,{flex:r(),disabled:c(),readonly:l()}),K(p,`hidden`,s()),h.dir=h.dir}),js(h,n),H(e,p),k()}var HO,UO,WO,GO;function KO(){return(KO=s((()=>{Y(),J(),HO=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),UO=B(``),WO=B(`
`),GO={hash:`svelte-36nr95`,code:`.text-area.svelte-36nr95 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-36nr95 {display:none;}.text-area.flex.svelte-36nr95:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-36nr95, .clone.svelte-36nr95) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-36nr95), .clone:where(.svelte-36nr95)).resizing.svelte-36nr95 {transition-duration:0ms;}.svelte-36nr95:is(textarea:where(.svelte-36nr95), .clone:where(.svelte-36nr95)):focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-36nr95:is(textarea:where(.svelte-36nr95), .clone:where(.svelte-36nr95)):is(:where(.svelte-36nr95):disabled, :where(.svelte-36nr95):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-36nr95 {resize:vertical;}textarea.auto-resize.svelte-36nr95 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-36nr95 {border-color:var(--sui-error-border-color);}.clone.svelte-36nr95 {overflow:hidden;visibility:hidden;}textarea.svelte-36nr95, .clone.svelte-36nr95 {white-space:pre-wrap;word-break:break-all;}`}})))()}var qO,JO;function YO(){return(YO=s((()=>{v(),qO=e=>Array.isArray(e)&&e.every(e=>g(e)),JO=e=>[...new Set(e)]})))()}function Tse(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{sc(e,{get name(){return zD[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${zD[t.type].labelKey}`)),o=M(()=>!n.useRichText);Bd(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await pO(n.editor),n.editor.dispatchCommand(Ix,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}function XO(){return(XO=s((()=>{Y(),J(),Z(),nC(),oc(),Kd(),dc(),KD(),mO()})))()}function Ese(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>t.component.label),i=M(()=>t.component.icon),a=M(()=>t.component.createNode);{let t=e=>{var t=V(),n=I(t),r=e=>{sc(e,{get name(){return z(i)}})};W(n,e=>{z(i)&&e(r)}),H(e,t)},o=M(()=>!!z(i)),s=M(()=>z(i)?void 0:z(r)),c=M(()=>!n.useRichText);Bd(e,{get iconic(){return z(o)},get label(){return z(s)},get title(){return z(r)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(c)},onclick:()=>{n.editor?.update(()=>{s_([z(a)(),k_()])})},startIcon:t,$$slots:{startIcon:!0}})}k()}function ZO(){return(ZO=s((()=>{Y(),J(),nC(),oc(),Kd(),dc()})))()}function Dse(e,t){let n=Ma();O(t,!0);let r=`link`,i=Pt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=Dne().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(Fw,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=n_();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof Nw?t:sC(t,Nw))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{Yu(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=n_()??r_()?.clone();Q(t)||(t=$g()),z(c)||(P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0),s_([Vg(z(u))])),Q_(t),e(void 0)})}),await pO(i.editor),i.editor.dispatchCommand(Fw,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(zx,e=>(Yu(e,Gu()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};Zr(()=>{i.editor&&_()});var v=ek(),y=I(v);{let e=e=>{sc(e,{get name(){return zD[r].icon}})},t=M(()=>X(`_sui.text_editor.${zD[r].labelKey}`)),n=M(()=>!i.useRichText);Bd(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=V(),n=I(t),r=e=>{{let t=M(()=>X(`_sui.remove`));Bd(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};W(n,e=>{z(s)!==`create`&&e(r)}),H(e,t)},t=M(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));dp(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=$O(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);{let e=M(()=>X(`_sui.text_editor.url`));Ep(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}})}D(i);var d=L(i,2),f=e=>{var t=QO(),r=F(t),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`_sui.text_editor.text`));Ep(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return z(e)},onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}})}D(t),R(e=>{K(r,`for`,`${n}-text`),U(i,e)},[()=>X(`_sui.text_editor.text`)]),H(e,t)};W(d,e=>{z(c)||e(f)}),R(e=>{K(a,`for`,`${n}-url`),U(o,e)},[()=>X(`_sui.text_editor.url`)]),H(e,r)},$$slots:{footerExtra:!0,default:!0}})}H(e,v),k()}var QO,$O,ek;function tk(){return(tk=s((()=>{Y(),J(),Lw(),uC(),Z(),Zu(),nC(),oc(),Kd(),yp(),dc(),jp(),KD(),mO(),QO=B(`
`),$O=B(`
`,1),ek=B(` `,1)})))()}function Ose(e,t){O(t,!0);let n=Pt(`editorStore`);{let r=e=>{sc(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{pm(e,{children:(e,r)=>{var i=V();lo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;vm(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{s_([a()(),k_()])})},startIcon:e=>{var t=V(),n=I(t),r=e=>{sc(e,{get name(){return i()}})};W(n,e=>{i()&&e(r)}),H(e,t)},$$slots:{startIcon:!0}})}),H(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>X(`_sui.insert`));Ff(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}function nk(){return(nk=s((()=>{Y(),J(),Z(),nC(),oc(),dc(),Rf(),wm(),_m()})))()}function kse(e,t){O(t,!0);let n=Pt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await pO(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{aC(n_(),()=>MT(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{aC(n_(),()=>k_())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(nT,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(rT,void 0),t.type===`blockquote`&&n.editor.update(()=>{aC(n_(),()=>OT())}),t.type===`code-block`&&n.editor.update(()=>{aC(n_(),()=>nw())})};var a=V();to(I(a),()=>z(r),e=>{{let n=e=>{sc(e,{get name(){return zD[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${zD[t.type].labelKey}`));Tm(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),H(e,a),k()}function rk(){return(rk=s((()=>{Y(),J(),uh(),bw(),iT(),YT(),oC(),Z(),nC(),oc(),dc(),Dm(),KD(),mO()})))()}function Ase(e,t){O(t,!0);let n=q(t,`disabled`,3,!1),r=q(t,`readonly`,3,!1),i=Pt(`editorStore`),a=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=M(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=M(()=>JO([`paragraph`,...i.config.enabledButtons.filter(e=>HD.includes(e))])),c=M(()=>JO(i.config.enabledButtons.filter(e=>VD.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));jO(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=ok(),r=I(n),l=e=>{{let t=e=>{{let t=M(()=>zD[i.selection.blockType??``]?.icon??`format_paragraph`);sc(e,{get name(){return z(t)}})}},n=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));pm(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=V();lo(I(n),16,()=>z(s),e=>e,(e,t)=>{kse(e,{get type(){return t}})}),H(e,n)},$$slots:{default:!0}})}},r=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));Ff(e,{get disabled(){return z(r)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};W(r,e=>{z(s).length>1&&e(l)});var u=L(r,2),d=e=>{var t=ik(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);SO(r,{get disabled(){return z(e)}})}H(e,t)},f=e=>{var t=ik(),n=I(t),r=e=>{var t=ik(),n=I(t);Wf(n,{orientation:`vertical`}),nf(L(n,2),{children:(e,t)=>{var n=V();lo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=V(),r=I(n),i=e=>{Dse(e,{})},a=e=>{Tse(e,{get type(){return t}})};W(r,e=>{t===`link`?e(i):e(a,-1)}),H(e,n)}),H(e,n)},$$slots:{default:!0}}),H(e,t)};W(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=ak(),n=I(t);Wf(n,{orientation:`vertical`});var r=L(n,2);lo(r,17,()=>z(a),e=>e.id,(e,t)=>{Ese(e,{get component(){return z(t)}})});var i=L(r,2),s=e=>{Ose(e,{get components(){return z(o)}})};W(i,e=>{z(o).length&&e(s)}),H(e,t)};W(s,e=>{i.config.components.length&&e(l)}),H(e,t)};W(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=L(u,2);Yf(p,{flex:!0});var m=L(p,2),h=e=>{{let t=e=>{sc(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));Bd(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};W(m,e=>{i.config.modes.length>1&&e(h)}),H(e,n)},$$slots:{default:!0}})}k()}var ik,ak,ok;function sk(){return(sk=s((()=>{Y(),J(),Z(),YO(),oc(),sf(),Kd(),Jf(),$f(),dc(),Rf(),_m(),KD(),TO(),XO(),ZO(),tk(),nk(),rk(),FO(),ik=B(` `,1),ak=B(` `,1),ok=B(` `,1)})))()}function jse(e,t){O(t,!0),G(e,uk);let n=q(t,`value`,15,``),r=q(t,`flex`,3,!1),i=q(t,`dir`,3,void 0),a=q(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=q(t,`buttons`,19,()=>[...VD,...HD]),s=q(t,`components`,19,()=>[]),c=q(t,`useMarkdownShortcuts`,3,!0),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=q(t,`invalid`,3,!1),m=qs(t,ck),h=bO();h.config={...h.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c()},Ft(`editorStore`,h),Zr(()=>{if(!h.initialized)return;let e=n();Ri(()=>{h.inputValue=e})}),Zr(()=>{if(!h.initialized)return;let e=h.inputValue;Ri(()=>{n()!==e&&n(e)})});var g=lk(),_=I(g);gs(_,()=>({...m,role:`none`,class:`sui text-editor`,hidden:l(),[ys]:{flex:r()}}),void 0,void 0,void 0,`svelte-admw8g`);var v=F(_);Ase(v,{get disabled(){return u()},get readonly(){return d()}});var y=L(v,2);{let e=M(()=>!h.useRichText||l());hO(y,{get hidden(){return z(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()}})}var b=L(y,2);{let e=M(()=>h.useRichText||l());VO(b,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return p()},get value(){return h.inputValue},set value(e){h.inputValue=e}})}D(_);var x=L(_,2),S=e=>{ah(e,{get show(){return h.showConverterError},set show(e){h.showConverterError=e},children:(e,t)=>{fc(e,{status:`error`,children:(e,t)=>{mt();var n=ja();R(e=>U(n,e),[()=>X(`_sui.text_editor.converter_error`)]),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};W(x,e=>{h.showConverterError&&e(S)}),H(e,g),k()}var ck,lk,uk;function dk(){return(dk=s((()=>{Y(),J(),Z(),oc(),gc(),KO(),lh(),KD(),yO(),xO(),sk(),ck=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),lk=B(`
`,1),uk={hash:`svelte-admw8g`,code:`.text-editor.svelte-admw8g {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-admw8g:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-admw8g:not([hidden]) {display:block;}.text-editor.svelte-admw8g .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-admw8g .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}})))()}function Mse(e,t){let n=Ma();O(t,!0),G(e,mk);let r=q(t,`value`,15),i=q(t,`invalid`,15,!1),a=q(t,`flex`,3,!1),o=q(t,`min`,3,void 0),s=q(t,`max`,3,void 0),c=q(t,`step`,3,1),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`required`,3,!1),p=qs(t,fk),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());Zr(()=>{let e=String(r()??``);Ri(()=>{z(h)!==e&&P(h,e,!0)})}),Zr(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),Zr(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=pk();let S;var C=F(x),w=F(C);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.increaseIcon),H(e,n)},a=e=>{sc(e,{name:`expand_less`})};W(r,e=>{t.increaseIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>X(`_sui.number_input.increase`));Bd(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.decreaseIcon),H(e,n)},a=e=>{sc(e,{name:`expand_more`})};W(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),H(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>X(`_sui.number_input.decrease`));Bd(T,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);Ep(ee,Js({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=is(x,1,`sui number-input ${t.class??``}`,`svelte-kegv9c`,S,{flex:a(),disabled:u(),readonly:d()}),K(x,`hidden`,l())}),H(e,x),k()}var fk,pk,mk;function hk(){return(hk=s((()=>{Y(),J(),Z(),oc(),Kd(),dc(),jp(),fk=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),pk=B(`
`),mk={hash:`svelte-kegv9c`,code:`.number-input.svelte-kegv9c {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-kegv9c:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-kegv9c :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-kegv9c :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-kegv9c :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-kegv9c :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-kegv9c .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-kegv9c {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-kegv9c button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-kegv9c button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-kegv9c button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-kegv9c button .icon {font-size:20px;}`}})))()}function gk(e,t){let n=Ma();O(t,!0),G(e,yk);let r=q(t,`value`,15),i=q(t,`flex`,3,!1),a=q(t,`monospace`,3,!0),o=q(t,`hidden`,3,!1),s=q(t,`disabled`,3,!1),c=q(t,`readonly`,3,!1),l=q(t,`required`,3,!1),u=q(t,`invalid`,3,!1),d=qs(t,_k),f=N(void 0),p=N(!1);var m=vk();let h;var g=F(m);Ep(g,Js({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();So(I(n),()=>t.visibilityIcon),H(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);sc(e,{get name(){return z(t)}})}};W(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),H(e,n)},r=M(()=>s()||c()),i=M(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));Bd(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=is(m,1,`sui secret-input ${t.class??``}`,`svelte-td1yh1`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),K(m,`hidden`,o())}),H(e,m),k()}var _k,vk,yk;function bk(){return(bk=s((()=>{Y(),J(),Z(),Kd(),dc(),jp(),_k=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),vk=B(`
`),yk={hash:`svelte-td1yh1`,code:`.secret-input.svelte-td1yh1 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-td1yh1:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-td1yh1 input {-webkit-text-security:none;}.secret-input.svelte-td1yh1 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-td1yh1 input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-td1yh1 button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-td1yh1 button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-td1yh1 button .icon {font-size:var(--sui-font-size-xx-large);}`}})))()}function Nse(e){G(e,Sk),H(e,xk())}var xk,Sk;function Ck(){return(Ck=s((()=>{Y(),J(),xk=B(``),Sk={hash:`svelte-s1dyjb`,code:` /* https://fontsource.org/fonts/source-sans-3/cdn */ @font-face {font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.0/latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;size-adjust:110%; } /* https://fontsource.org/fonts/noto-mono/cdn */ @font-face {font-family:'Noto Mono';font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/noto-mono@5.3.0/latin-400-normal.woff2) format('woff2'); } /* https://fontsource.org/fonts/material-symbols-outlined/cdn */ @font-face {font-family:'Material Symbols Outlined';font-style:normal;font-display:block;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/material-symbols-outlined:vf@5.3.1/latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }.material-symbols-outlined { /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`}})))()}function Pse(e,t){O(t,!0),G(e,Ok);let n=q(t,`orientation`,3,`horizontal`),r=qs(t,wk),i=N(!1);rc(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=Dk();Ho(`uks73e`,e=>{var t=Tk(),n=I(t);Nse(L(n,4),{}),R(e=>K(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),H(e,t)});var o=I(a),s=e=>{var t=Ek();ss(t,``,{},{opacity:`0`}),H(e,t)};W(o,e=>{z(i)||e(s)});var c=L(o,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};gs(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-uks73e`),So(F(c),()=>t.children??E),D(c),H(e,a),k()}var wk,Tk,Ek,Dk,Ok;function kk(){return(kk=s((()=>{Y(),J(),oc(),Ck(),wk=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),Tk=B(` `,1),Ek=B(``),Dk=B(`
`,1),Ok={hash:`svelte-uks73e`,code:`:root, :host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl( var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation) var(--sui-alert-foreground-color-lightness) );--sui-warning-foreground-color: hsl( var(--sui-warning-color-hue) var(--sui-alert-foreground-color-saturation) var(--sui-alert-foreground-color-lightness) );--sui-info-foreground-color: hsl( var(--sui-info-color-hue) var(--sui-alert-foreground-color-saturation) var(--sui-alert-foreground-color-lightness) );--sui-success-foreground-color: hsl( var(--sui-success-color-hue) var(--sui-alert-foreground-color-saturation) var(--sui-alert-foreground-color-lightness) );--sui-hover-background-color: hsl(var(--sui-background-color-5-hsl) / 35%);--sui-selected-background-color: hsl(var(--sui-background-color-5-hsl) / 75%);--sui-active-background-color: hsl(var(--sui-background-color-5-hsl) / 100%);--sui-content-background-color: hsl(var(--sui-background-color-1-hsl));--sui-code-background-color: hsl(var(--sui-background-color-3-hsl));--sui-primary-background-color: hsl(var(--sui-background-color-2-hsl));--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl) / 80%);--sui-secondary-background-color: hsl(var(--sui-background-color-3-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl) / 80%);--sui-tertiary-background-color: hsl(var(--sui-background-color-4-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl) / 80%);--sui-disabled-background-color: hsl(var(--sui-background-color-4-hsl));--sui-error-background-color: hsl( var(--sui-error-color-hue) var(--sui-alert-background-color-saturation) var(--sui-alert-background-color-lightness) );--sui-warning-background-color: hsl( var(--sui-warning-color-hue) var(--sui-alert-background-color-saturation) var(--sui-alert-background-color-lightness) );--sui-info-background-color: hsl( var(--sui-info-color-hue) var(--sui-alert-background-color-saturation) var(--sui-alert-background-color-lightness) );--sui-success-background-color: hsl( var(--sui-success-color-hue) var(--sui-alert-background-color-saturation) var(--sui-alert-background-color-lightness) );--sui-focus-ring-width: 2px;--sui-focus-ring-color: var(--sui-primary-accent-color-translucent);--sui-primary-border-color: hsl(var(--sui-border-color-2-hsl));--sui-secondary-border-color: hsl(var(--sui-border-color-3-hsl));--sui-error-border-color: hsl( var(--sui-error-color-hue) var(--sui-alert-border-color-saturation) var(--sui-alert-border-color-lightness) );--sui-warning-border-color: hsl( var(--sui-warning-color-hue) var(--sui-alert-border-color-saturation) var(--sui-alert-border-color-lightness) );--sui-info-border-color: hsl( var(--sui-info-color-hue) var(--sui-alert-border-color-saturation) var(--sui-alert-border-color-lightness) );--sui-success-border-color: hsl( var(--sui-success-color-hue) var(--sui-alert-border-color-saturation) var(--sui-alert-border-color-lightness) );--sui-popup-shadow-color: hsl(var(--sui-shadow-color) / 40%);--sui-popup-backdrop-color: hsl(var(--sui-shadow-color) / 40%);--sui-font-family-default: "Source Sans 3", system-ui, sans-serif;--sui-font-size-xxx-large: 25px;--sui-font-size-xx-large: 21px;--sui-font-size-x-large: 19px;--sui-font-size-large: 17px;--sui-font-size-default: 15px;--sui-font-size-small: 13px;--sui-font-size-x-small: 11px;--sui-font-weight-normal: 400;--sui-font-weight-bold: 700;--sui-font-family-monospace: "Noto Sans Mono", ui-monospace, monospace;--sui-font-size-monospace: 0.9em;--sui-line-height-default: 1.2;--sui-line-height-compact: 1.4;--sui-line-height-comfortable: 1.6;--sui-word-spacing-normal: 1px;--sui-heading-margin: 0;--sui-heading-font-family: var(--sui-font-family-default);--sui-heading-font-weight: var(--sui-font-weight-bold);--sui-heading-line-height: var(--sui-line-height-default);--sui-paragraph-margin: 1.75em;--sui-control-small-border-width: 1px;--sui-control-small-border-radius: calc(var(--sui-control-small-height) / 8);--sui-control-small-padding: 0 calc((var(--sui-control-small-height) / 5));--sui-control-small-height: 24px;--sui-control-medium-border-width: 1px;--sui-control-medium-border-radius: calc(var(--sui-control-medium-height) / 8);--sui-control-medium-padding: 0 calc((var(--sui-control-medium-height) / 4));--sui-control-medium-height: 32px;--sui-control-large-border-width: 1px;--sui-control-large-border-radius: calc(var(--sui-control-large-height) / 8);--sui-control-large-padding: 0 calc((var(--sui-control-large-height) / 3));--sui-control-large-height: 40px;--sui-control-border-color: hsl(var(--sui-border-color-2-hsl));--sui-control-foreground-color: var(--sui-primary-foreground-color);--sui-control-background-color: hsl(var(--sui-background-color-4-hsl));--sui-control-font-family: var(--sui-font-family-default);--sui-control-font-size: var(--sui-font-size-default);--sui-control-line-height: var(--sui-line-height-compact);--sui-button-small-border-radius: var(--sui-control-small-border-radius);--sui-button-small-padding: var(--sui-control-small-padding);--sui-button-small-height: var(--sui-control-small-height);--sui-button-medium-border-radius: var(--sui-control-medium-border-radius);--sui-button-medium-padding: var(--sui-control-medium-padding);--sui-button-medium-height: var(--sui-control-medium-height);--sui-button-large-border-radius: var(--sui-control-large-border-radius);--sui-button-large-padding: var(--sui-control-large-padding);--sui-button-large-height: var(--sui-control-large-height);--sui-button-border-color: var(--sui-control-border-color);--sui-button-background-color: var(--sui-control-background-color);--sui-checkbox-border-radius: var(--sui-control-medium-border-radius);--sui-checkbox-height: 20px;--sui-checkbox-border-color: hsl(var(--sui-border-color-1-hsl));--sui-checkbox-background-color: var(--sui-control-background-color);--sui-option-border-radius: var(--sui-control-medium-border-radius);--sui-option-padding: calc((var(--sui-control-medium-height) / 6)) calc((var(--sui-control-medium-height) / 5));--sui-option-height: var(--sui-control-medium-height);--sui-listbox-border-radius: var(--sui-control-medium-border-radius);--sui-listbox-border-color: var(--sui-control-border-color);--sui-listbox-foreground-color: var(--sui-control-foreground-color);--sui-listbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-tree-border-radius: var(--sui-control-medium-border-radius);--sui-tree-border-color: var(--sui-control-border-color);--sui-tree-foreground-color: var(--sui-control-foreground-color);--sui-tree-background-color: hsl(var(--sui-background-color-1-hsl));--sui-tree-item-border-radius: var(--sui-control-medium-border-radius);--sui-tree-item-height: var(--sui-control-medium-height);--sui-tree-item-indent: 16px;--sui-textbox-border-radius: var(--sui-control-medium-border-radius);--sui-textbox-height: var(--sui-control-medium-height);--sui-textbox-border-color: var(--sui-control-border-color);--sui-textbox-foreground-color: var(--sui-control-foreground-color);--sui-textbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-font-family: var(--sui-font-family-default);--sui-textbox-font-size: var(--sui-font-size-default);--sui-textbox-singleline-padding: 0 8px;--sui-textbox-singleline-min-width: 240px;--sui-textbox-singleline-line-height: var(--sui-line-height-compact);--sui-textbox-multiline-padding: 16px;--sui-textbox-multiline-min-width: 480px;--sui-textbox-multiline-line-height: var(--sui-line-height-comfortable);--sui-tab-height: var(--sui-control-medium-height);--sui-tab-small-height: var(--sui-control-small-height);--sui-tab-medium-height: var(--sui-control-medium-height);--sui-tab-large-height: var(--sui-control-large-height);--sui-primary-toolbar-size: 56px;--sui-secondary-toolbar-size: 48px;--sui-bottom-navigation-height: var(--sui-primary-toolbar-size);--sui-primary-row-height: 56px;--sui-secondary-row-height: 40px;} @media (pointer: coarse) {:root, :host {--sui-control-small-height: 32px;--sui-control-medium-height: 40px;--sui-control-large-height: 48px;--sui-checkbox-height: 24px;--sui-secondary-row-height: 48px;} } @media (prefers-reduced-transparency) {:root, :host {--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl));} }:root[data-theme=light], :host[data-theme=light] {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}:root[data-theme=dark], :host[data-theme=dark] {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;} @media (prefers-color-scheme: light) {:root:not([data-theme]), :host:not([data-theme]) {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;} } @media (prefers-color-scheme: dark) {:root:not([data-theme]), :host:not([data-theme]) {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;} }.material-symbols-outlined {font-variation-settings:"FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;}*, ::before, ::after {overflow-anchor:none;scroll-behavior:smooth;box-sizing:border-box;outline-offset:0px;outline-width:var(--sui-focus-ring-width) !important;outline-style:solid;outline-color:transparent;border-width:0;border-style:solid;vertical-align:top;font-size-adjust:inherit;} @media (prefers-reduced-motion) {*, ::before, ::after {scroll-behavior:auto;transition-duration:1ms !important;} }::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-uks73e a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-uks73e {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-uks73e {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-uks73e {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-uks73e {display:flex;flex-direction:column;overflow:hidden;}`}})))()}function Ak(e,t){G(e,Mk);let n=q(t,`children`,3,void 0);var r=jk();So(F(r),()=>n()??E),D(r),H(e,r)}var jk,Mk;function Nk(){return(Nk=s((()=>{Y(),J(),jk=B(`
`),Mk={hash:`svelte-kasimd`,code:`.empty-state.svelte-kasimd {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}})))()}function Pk(e,t){G(e,Lk);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`ariaLabel`,3,void 0),a=qs(t,Fk);var o=Ik();gs(o,()=>({...a,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-1ysi1b`);var s=F(o);So(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),H(e,o)}var Fk,Ik,Lk;function Rk(){return(Rk=s((()=>{Y(),J(),Fk=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),Ik=B(`
`),Lk={hash:`svelte-1ysi1b`,code:`.inner.svelte-1ysi1b {display:contents;}`}})))()}function zk(e,t){O(t,!0),G(e,Vk);let n=N(null),r=N(!1);Zr(()=>(z(n)&&(async()=>{await Sd(z(n)),P(r,!0)})(),()=>{z(n)&&vd(z(n))}));var i=V(),a=I(i),o=e=>{var n=V();So(I(n),()=>t.children),H(e,n)},s=e=>{var t=Bk();Bs(t,e=>P(n,e),()=>z(n)),H(e,t)};W(a,e=>{z(r)?e(o):e(s,-1)}),H(e,i),k()}var Bk,Vk;function Hk(){return(Hk=s((()=>{Y(),J(),Cd(),Bk=B(`
`),Vk={hash:`svelte-1ye0s31`,code:`.placeholder.svelte-1ye0s31 {height:64px;}`}})))()}var Uk;function Wk(){return(Wk=s((()=>{Uk={ok:`OK`,cancel:`Cancel`,close:`Close`,clear:`Clear`,insert:`Insert`,update:`Update`,remove:`Remove`,collapse:`Collapse`,expand:`Expand`,dismiss:`Dismiss`,calendar:{year:`Year`,previous_decade:`Previous Decade`,next_decade:`Next Decade`,month:`Month`,previous_month:`Previous Month`,next_month:`Next Month`,today:`Today`},split_button:{x_options:`{$name} Options`,more_options:`More Options`},combobox:{select_an_option:`Select an option…`,filter_options:`Filter Options`,no_matching_options:`No matching options found`},number_input:{increase:`Increase`,decrease:`Decrease`},password_input:{show_password:`Show Password`,hide_password:`Hide Password`},secret_input:{show_secret:`Show Secret`,hide_secret:`Hide Secret`},select_tags:{selected_options:`Selected Options`,remove_x:`Remove {$name}`},text_editor:{text_editor:`Text Editor`,code_editor:`Code Editor`,text_style_options:`Text Style Options`,show_text_style_options:`Show Text Style Options`,paragraph:`Paragraph`,heading_1:`Heading 1`,heading_2:`Heading 2`,heading_3:`Heading 3`,heading_4:`Heading 4`,heading_5:`Heading 5`,heading_6:`Heading 6`,bulleted_list:`Bulleted List`,numbered_list:`Numbered List`,blockquote:`Block Quote`,code_block:`Code Block`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,link:`Link`,insert_link:`Insert Link`,update_link:`Update Link`,text:`Text`,url:`URL`,edit_in_markdown:`Edit in Markdown`,converter_error:`Unable to enable rich text mode. Please use the plain text editor instead.`,language:`Language`,plain_text:`Plain Text`}}})))()} /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */ function Gk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:mA;if(Qk&&Qk(e,null),!pA(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&($k(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Vse(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:ej(),t=e=>Xk(e);if(t.version=`3.4.13`,t.removed=[],!e||!e.document||e.document.nodeType!==$A.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,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Yk(d,`cloneNode`),p=Yk(d,`remove`),m=Yk(d,`nextSibling`),h=Yk(d,`childNodes`),g=Yk(d,`parentNode`),_=Yk(d,`shadowRoot`),v=Yk(d,`attributes`),y=o&&o.prototype?Yk(o.prototype,`nodeType`):null,b=o&&o.prototype?Yk(o.prototype,`nodeName`):null,x=o&&o.prototype?Yk(o.prototype,`ownerDocument`):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,ee=0,te=function(){if(ee>0)throw DA(`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.`)},ne=function(e){te(),ee++;try{return S.createHTML(e)}finally{ee--}},re=function(e){te(),ee++;try{return S.createScriptURL(e)}finally{ee--}},ie=function(){return T||=(w=tj(u,i),!0),w},ae=n,oe=ae.implementation,se=ae.createNodeIterator,ce=ae.createDocumentFragment,le=ae.getElementsByTagName,E=r.importNode,ue=nj();t.isSupported=typeof Zk==`function`&&typeof g==`function`&&oe&&oe.createHTMLDocument!==void 0;let de=zA,fe=BA,pe=VA,me=HA,he=UA,ge=GA,_e=KA,ve=JA,ye=WA,be=null,xe=qk({},[...OA,...kA,...AA,...MA,...PA]),Se=null,Ce=qk({},[...FA,...IA,...LA,...RA]),we=Object.seal(iA(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}})),Te=null,Ee=null,De=Object.seal(iA(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,ke=!0,Ae=!1,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!1,Ie=null,Le=null,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=`user-content-`,Ge=!0,Ke=!1,qe={},Je=null,Ye=qk({},`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(`.`)),Xe=null,Ze=qk({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Qe=null,$e=qk({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),et=`http://www.w3.org/1998/Math/MathML`,tt=`http://www.w3.org/2000/svg`,nt=`http://www.w3.org/1999/xhtml`,rt=nt,it=!1,at=null,ot=qk({},[et,tt,nt],hA),st=nA([`mi`,`mo`,`mn`,`ms`,`mtext`]),ct=qk({},st),lt=nA([`annotation-xml`]),ut=qk({},lt),dt=qk({},[`title`,`style`,`font`,`a`,`script`]),ft=null,pt=[`application/xhtml+xml`,`text/html`],D=null,mt=null,ht=n.createElement(`form`),gt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Jk(e),ft=pt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,D=ft===`application/xhtml+xml`?hA:mA,be=rj(e,`ALLOWED_TAGS`,xe,{transform:D}),Se=rj(e,`ALLOWED_ATTR`,Ce,{transform:D}),at=rj(e,`ALLOWED_NAMESPACES`,ot,{transform:hA}),Qe=rj(e,`ADD_URI_SAFE_ATTR`,$e,{transform:D,base:$e}),Xe=rj(e,`ADD_DATA_URI_TAGS`,Ze,{transform:D,base:Ze}),Je=rj(e,`FORBID_CONTENTS`,Ye,{transform:D}),Te=rj(e,`FORBID_TAGS`,Jk({}),{transform:D}),Ee=rj(e,`FORBID_ATTR`,Jk({}),{transform:D}),qe=wA(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Jk(e.USE_PROFILES):e.USE_PROFILES:!1,Oe=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=e.SAFE_FOR_TEMPLATES||!1,Ne=e.SAFE_FOR_XML!==!1,Pe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Ke=e.IN_PLACE||!1,ye=Use(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:WA,rt=typeof e.NAMESPACE==`string`?e.NAMESPACE:nt,ct=wA(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Jk(e.MATHML_TEXT_INTEGRATION_POINTS):qk({},st),ut=wA(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Jk(e.HTML_INTEGRATION_POINTS):qk({},lt);let t=wA(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Jk(e.CUSTOM_ELEMENT_HANDLING):iA(null);if(we=iA(null),wA(t,`tagNameCheck`)&>(t.tagNameCheck)&&(we.tagNameCheck=t.tagNameCheck),wA(t,`attributeNameCheck`)&>(t.attributeNameCheck)&&(we.attributeNameCheck=t.attributeNameCheck),wA(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(we.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),rA(we),Me&&(ke=!1),Be&&(ze=!0),qe&&(be=qk({},PA),Se=iA(null),qe.html===!0&&(qk(be,OA),qk(Se,FA)),qe.svg===!0&&(qk(be,kA),qk(Se,IA),qk(Se,RA)),qe.svgFilters===!0&&(qk(be,AA),qk(Se,IA),qk(Se,RA)),qe.mathMl===!0&&(qk(be,MA),qk(Se,LA),qk(Se,RA))),De.tagCheck=null,De.attributeCheck=null,wA(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?De.tagCheck=e.ADD_TAGS:pA(e.ADD_TAGS)&&(be===xe&&(be=Jk(be)),qk(be,e.ADD_TAGS,D))),wA(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?De.attributeCheck=e.ADD_ATTR:pA(e.ADD_ATTR)&&(Se===Ce&&(Se=Jk(Se)),qk(Se,e.ADD_ATTR,D))),wA(e,`ADD_URI_SAFE_ATTR`)&&pA(e.ADD_URI_SAFE_ATTR)&&qk(Qe,e.ADD_URI_SAFE_ATTR,D),wA(e,`FORBID_CONTENTS`)&&pA(e.FORBID_CONTENTS)&&(Je===Ye&&(Je=Jk(Je)),qk(Je,e.FORBID_CONTENTS,D)),wA(e,`ADD_FORBID_CONTENTS`)&&pA(e.ADD_FORBID_CONTENTS)&&(Je===Ye&&(Je=Jk(Je)),qk(Je,e.ADD_FORBID_CONTENTS,D)),Ge&&(be[`#text`]=!0),Pe&&qk(be,[`html`,`head`,`body`]),be.table&&(qk(be,[`tbody`]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw DA(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw DA(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=ne(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=ie()),S&&typeof C==`string`&&(C=ne(``)));nA&&nA(e),mt=e},vt=qk({},[...kA,...AA,...jA]),yt=qk({},[...MA,...NA]),bt=function(e,t,n){return t.namespaceURI===nt?e===`svg`:t.namespaceURI===et?e===`svg`&&(n===`annotation-xml`||ct[n]):!!vt[e]},xt=function(e,t,n){return t.namespaceURI===nt?e===`math`:t.namespaceURI===tt?e===`math`&&ut[n]:!!yt[e]},St=function(e,t,n){return t.namespaceURI===tt&&!ut[n]||t.namespaceURI===et&&!ct[n]?!1:!yt[e]&&(dt[e]||!vt[e])},Ct=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:rt,tagName:`template`});let n=mA(e.tagName),r=mA(t.tagName);return at[e.namespaceURI]?e.namespaceURI===tt?bt(n,t,r):e.namespaceURI===et?xt(n,t,r):e.namespaceURI===nt?St(n,t,r):!!(ft===`application/xhtml+xml`&&at[e.namespaceURI]):!1},wt=function(e){dA(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw DA(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Tt=function(e){Ot(e);let t=h(e);if(t){let e=[];cA(t,t=>{dA(e,t)}),cA(e,e=>{try{p(e)}catch{}})}let n=v(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{}}},Et=function(e,n){try{dA(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{dA(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(ze||Be)try{wt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Dt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||Se[D(i)]))try{e.removeAttribute(i)}catch{}}},Ot=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===$A.element&&Dt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},kt=function(e){if(!Ne)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===$A.processingInstruction||n===$A.comment&&EA(XA,e.data)){try{p(e)}catch{}continue}if(n===$A.element){let t=e,n=D(b?b(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=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},At=function(e){let t=null,r=null;if(Re)e=``+e;else{let t=gA(e,/^[\r\n\t ]+/);r=t&&t[0]}ft===`application/xhtml+xml`&&rt===nt&&(e=``+e+``);let i=S?ne(e):e;if(rt===nt)try{t=new l().parseFromString(i,ft)}catch{}if(!t||!t.documentElement){t=oe.createDocument(rt,`template`,null);try{t.documentElement.innerHTML=it?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),rt===nt?le.call(t,Pe?`html`:`body`)[0]:Pe?t.documentElement:a},jt=function(e){let t=x?x(e):e.ownerDocument;return se.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Mt=function(e){return e=_A(e,de,` `),e=_A(e,fe,` `),e=_A(e,pe,` `),e},Nt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=se.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Mt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&cA(i,e=>{Ft(e.content)&&Nt(e.content)})},Pt=function(e){let t=b?b(e):null;return typeof t!=`string`||D(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Ft=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===$A.documentFragment}catch{return!1}},It=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function O(e,n,r){e.length!==0&&cA(e,e=>{e.call(t,n,r,mt)})}let k=function(e,t){return!!(Ne&&e.hasChildNodes()&&!It(e.firstElementChild)&&EA(YA,e.textContent)&&EA(YA,e.innerHTML)||Ne&&e.namespaceURI===nt&&t===`style`&&It(e.firstElementChild)||e.nodeType===$A.processingInstruction||Ne&&e.nodeType===$A.comment&&EA(XA,e.data))},Lt=function(e,t,n){if(!Te[t]&&Ht(t)&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,t)||we.tagNameCheck instanceof Function&&we.tagNameCheck(t)))return!1;if(Ge&&!Je[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return wt(e),!0},Rt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Jk(t):t},zt=function(e,n){if(O(ue.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return Ke&&Ot(e),!0;if(Pt(e))return wt(e),!0;let r=D(b?b(e):e.nodeName);if(be=Rt(ue.uponSanitizeElement,be,xe,Ie),O(ue.uponSanitizeElement,e,{tagName:r,allowedTags:be}),e!==n&&g(e)===null)return Ke&&Ot(e),!0;if(k(e,r))return wt(e),!0;if(Te[r]||!(De.tagCheck instanceof Function&&De.tagCheck(r))&&!be[r]){let t=Lt(e,r,n);return t===!1&&O(ue.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===$A.element&&!Ct(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&EA(ZA,e.innerHTML))return wt(e),!0;if(Me&&e.nodeType===$A.text){let n=Mt(e.textContent);e.textContent!==n&&(dA(t.removed,{element:e.cloneNode()}),e.textContent=n)}return O(ue.afterSanitizeElements,e,null),!1},Bt=function(e,t,r){if(Ee[t]||Ne&&t===`patchsrc`||Ne&&t===`for`&&e!==`label`&&e!==`output`||He&&(t===`id`||t===`name`)&&(r in n||r in ht))return!1;let i=Se[t]||De.attributeCheck instanceof Function&&De.attributeCheck(t,e);if(!(ke&&EA(me,t))&&!(Oe&&EA(he,t))){if(!i){if(!(Ht(e)&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&EA(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t,e))||t===`is`&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&EA(we.tagNameCheck,r)||we.tagNameCheck instanceof Function&&we.tagNameCheck(r))))return!1}else if(!Qe[t]&&!EA(ye,_A(r,_e,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&vA(r,`data:`)===0&&Xe[e])&&!(Ae&&!EA(ge,_A(r,_e,``)))&&r)return!1}return!0},Vt=qk({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ht=function(e){return!Vt[mA(e)]&&EA(ve,e)},Ut=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ne(r);case`TrustedScriptURL`:return re(r)}return r},Wt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Pt(e)?wt(e):uA(t.removed)}catch{Et(n,e)}},Gt=function(e){O(ue.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Pt(e))return;Se=Rt(ue.uponSanitizeAttribute,Se,Ce,Le);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0},r=t.length,i=D(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=D(o),u=c,d=o===`value`?u:yA(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,O(ue.uponSanitizeAttribute,e,n),d=n.attrValue,Ue&&(l===`id`||l===`name`)&&vA(d,We)!==0&&(Et(o,e),d=We+d),Ne&&EA(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Et(o,e);continue}if(l===`attributename`&&gA(d,`href`)){Et(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){Et(o,e);continue}if(!je&&EA(QA,d)){Et(o,e);continue}if(Me&&(d=Mt(d)),!Bt(i,l,d)){Et(o,e);continue}d=Ut(i,l,s,d),d!==u&&Wt(e,o,s,d)}}O(ue.afterSanitizeAttributes,e,null)},Kt=function(e){let t=null,n=jt(e);for(O(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(O(ue.uponSanitizeShadowNode,t,null),zt(t,e),Gt(t),Ft(t.content)&&Kt(t.content),(y?y(t):t.nodeType)===$A.element){let e=_(t);Ft(e)&&(qt(e),Kt(e))}O(ue.afterSanitizeShadowDOM,e,null)},qt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Kt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===$A.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&D(e)===`template`){let e=n.content;Ft(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Ft(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(it=!e,it&&(e=``),typeof e!=`string`&&!It(e)&&(e=Hse(e),typeof e!=`string`))throw DA(`dirty is not a string, aborting`);if(!t.isSupported)return e;Fe?(be=Ie,Se=Le):_t(n),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(be=Jk(be)),ue.uponSanitizeAttribute.length>0&&(Se=Jk(Se)),t.removed=[];let c=Ke&&typeof e!=`string`&&It(e);if(c){kt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=D(t);if(!be[n]||Te[n])throw Tt(e),DA(`root node is forbidden and cannot be sanitized in-place`)}if(Pt(e))throw Tt(e),DA(`root node is clobbered and cannot be sanitized in-place`);try{qt(e)}catch(t){throw Tt(e),t}}else if(It(e))i=At(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===$A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),qt(a);else{if(!ze&&!Me&&!Pe&&e.indexOf(`<`)===-1)return S&&Ve?ne(e):e;if(i=At(e),!i)return ze?null:Ve?C:``}i&&Re&&wt(i.firstChild);let l=c?e:i;try{let e=jt(l);for(;o=e.nextNode();)zt(o,l),Gt(o),Ft(o.content)&&Kt(o.content)}catch(n){throw c&&(Tt(e),cA(t.removed,e=>{e.element&&Ot(e.element)})),n}if(c)return cA(t.removed,e=>{e.element&&Ot(e.element)}),Me&&Nt(e),e;if(ze){if(Me&&Nt(i),Be)for(s=ce.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Se.shadowroot||Se.shadowrootmode)&&(s=E.call(r,s,!0)),s}let u=Pe?i.outerHTML:i.innerHTML;return Pe&&be[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&EA(qA,i.ownerDocument.doctype.name)&&(u=` `+u),Me&&(u=Mt(u)),S&&Ve?ne(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_t(e),Fe=!0,Ie=be,Le=Se},t.clearConfig=function(){mt=null,Fe=!1,Ie=null,Le=null,S=w,C=``},t.isValidAttribute=function(e,t,n){mt||_t({});let r=D(e),i=D(t);return Bt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&wA(ue,e)&&dA(ue[e],t)},t.removeHook=function(e,t){if(wA(ue,e)){if(t!==void 0){let n=lA(ue[e],t);return n===-1?void 0:fA(ue[e],n,1)[0]}return uA(ue[e])}},t.removeHooks=function(e){wA(ue,e)&&(ue[e]=[])},t.removeAllHooks=function(){ue=nj()},t}var Zk,Qk,$k,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,ej,tj,nj,rj,ij;function aj(){return(aj=s((()=>{Zk=Object.entries,Qk=Object.setPrototypeOf,$k=Object.isFrozen,eA=Object.getPrototypeOf,tA=Object.getOwnPropertyDescriptor,nA=Object.freeze,rA=Object.seal,iA=Object.create,aA=typeof Reflect<`u`&&Reflect,oA=aA.apply,sA=aA.construct,nA||=function(e){return e},rA||=function(e){return e},oA||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r`u`?null:Kk(BigInt.prototype.toString),CA=typeof Symbol>`u`?null:Kk(Symbol.prototype.toString),wA=Kk(Object.prototype.hasOwnProperty),TA=Kk(Object.prototype.toString),EA=Kk(RegExp.prototype.test),DA=Bse(TypeError),OA=nA(`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(`.`)),kA=nA(`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(`.`)),AA=nA([`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`]),jA=nA([`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`]),MA=nA(`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(`.`)),NA=nA([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),PA=nA([`#text`]),FA=nA(`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(`.`)),IA=nA(`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(`.`)),LA=nA(`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(`.`)),RA=nA([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),zA=rA(/{{[\w\W]*|^[\w\W]*}}/g),BA=rA(/<%[\w\W]*|^[\w\W]*%>/g),VA=rA(/\${[\w\W]*/g),HA=rA(/^data-[\-\w.\u00B7-\uFFFF]+$/),UA=rA(/^aria-[\-\w]+$/),WA=rA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GA=rA(/^(?:\w+script|data):/i),KA=rA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qA=rA(/^html$/i),JA=rA(/^[a-z][.\w]*(-[.\w]+)+$/i),YA=rA(/<[/\w!]/g),XA=rA(/<[/\w]/g),ZA=rA(/<\/no(script|embed|frames)/i),QA=rA(/\/>/i),$A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ej=function(){return typeof window>`u`?null:window},tj=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}},nj=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rj=function(e,t,n,r){return wA(e,t)&&pA(e[t])?qk(r.base?Jk(r.base):{},e[t],r.transform):n},ij=Xk()})))()}var oj;function sj(){return(sj=s((()=>{aj(),oj=ij.sanitize.bind(ij),ij.isSupported,ij.addHook.bind(ij),ij.removeHook.bind(ij),ij.removeHooks.bind(ij),ij.removeAllHooks.bind(ij),ij.setConfig.bind(ij),ij.clearConfig.bind(ij),ij.isValidAttribute.bind(ij),ij.version,ij.removed})))()}function cj(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function lj(e){vj=e}function uj(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function dj(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(bj.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function fj(e,t){if(t){if(bj.escapeTest.test(e))return e.replace(bj.escapeReplace,qj)}else if(bj.escapeTestNoEncode.test(e))return e.replace(bj.escapeReplaceNoEncode,qj);return e}function pj(e){try{e=encodeURI(e).replace(bj.percentDecode,`%`)}catch{return null}return e}function mj(e,t){let n=e.replace(bj.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(bj.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length=0&&bj.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(` `)}function Gse(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r0?-2:-1}function Kse(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function qse(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Jse(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` `)}function gj(e,t){return eM.parse(e,t)}function _j(...e){return eM.use(...e),gj.defaults=eM.defaults,lj(gj.defaults),gj}var vj,yj,Yse,bj,Xse,Zse,Qse,xj,$se,Sj,Cj,wj,ece,Tj,tce,Ej,nce,rce,Dj,Oj,ice,kj,ace,oce,Aj,jj,sce,cce,lce,uce,Mj,dce,Nj,Pj,Fj,fce,pce,Ij,mce,hce,gce,Lj,_ce,vce,yce,Rj,bce,xce,Sce,Cce,wce,Tce,Ece,Dce,Oce,kce,Ace,zj,jce,Bj,Vj,Mce,Hj,Uj,Nce,Wj,Pce,Gj,Kj,Fce,qj,Jj,Yj,Xj,Zj,Qj,$j,Ice,eM,tM,nM;function rM(){return(rM=s((()=>{vj=cj(),yj={exec:()=>null},Yse=((e=``)=>{try{return!!RegExp(`(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:uj(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:uj(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:uj(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:uj(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:uj(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:uj(e=>RegExp(`^ {0,${e}}>`))},Xse=/^(?:[ \t]*(?:\n|$))+/,Zse=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qse=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xj=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$se=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sj=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cj=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wj=dj(Cj).replace(/bull/g,Sj).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ece=dj(Cj).replace(/bull/g,Sj).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Tj=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,tce=/^[^\n]+/,Ej=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nce=dj(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ej).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rce=dj(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Sj).getRegex(),Dj=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Oj=/|$))/,ice=dj(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Oj).replace(`tag`,Dj).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kj=e=>dj(Tj).replace(`hr`,xj).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,e).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Dj).getRegex(),ace=kj(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),oce=kj(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Aj={blockquote:dj(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,oce).getRegex(),code:Zse,def:nce,fences:Qse,heading:$se,hr:xj,html:ice,lheading:wj,list:rce,newline:Xse,paragraph:ace,table:yj,text:tce},jj=dj(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,xj).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Dj).getRegex(),sce={...Aj,lheading:ece,table:jj,paragraph:dj(Tj).replace(`hr`,xj).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,jj).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Dj).getRegex()},cce={...Aj,html:dj(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Oj).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yj,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:dj(Tj).replace(`hr`,xj).replace(`heading`,` *#{1,6} *[^ ]`).replace(`lheading`,wj).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},lce=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uce=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Mj=/^( {2,}|\\)\n(?!\s*$)/,dce=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Yse?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Lj=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_ce=dj(Lj,`u`).replace(/punct/g,Nj).getRegex(),vce=dj(Lj,`u`).replace(/punct/g,Ij).getRegex(),yce=dj(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,pce).replace(/punct/g,Nj).getRegex(),Rj=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,bce=dj(Rj,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),xce=dj(Rj,`gu`).replace(/notPunctSpace/g,hce).replace(/punctSpace/g,mce).replace(/punct/g,Ij).getRegex(),Sce=dj(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Cce=dj(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),wce=dj(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Tce=dj(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Nj).getRegex(),Ece=dj(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Pj).replace(/punct/g,Nj).getRegex(),Dce=dj(/\\(punct)/,`gu`).replace(/punct/g,Nj).getRegex(),Oce=dj(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),kce=dj(Oj).replace(`(?:-->|$)`,`-->`).getRegex(),Ace=dj(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,kce).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zj=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jce=dj(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,zj).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bj=dj(/^!?\[(label)\]\[(ref)\]/).replace(`label`,zj).replace(`ref`,Ej).getRegex(),Vj=dj(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ej).getRegex(),Mce=dj(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Bj).replace(`nolink`,Vj).getRegex(),Hj=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Uj={_backpedal:yj,anyPunctuation:Dce,autolink:Oce,blockSkip:gce,br:Mj,code:uce,del:yj,delLDelim:yj,delRDelim:yj,emStrongLDelim:_ce,emStrongRDelimAst:bce,emStrongRDelimUnd:Cce,escape:lce,link:jce,nolink:Vj,punctuation:fce,reflink:Bj,reflinkSearch:Mce,tag:Ace,text:dce,url:yj},Nce={...Uj,emStrongLDelim:yce,emStrongRDelimAst:Sce,emStrongRDelimUnd:wce,link:dj(/^!?\[(label)\]\((.*?)\)/).replace(`label`,zj).getRegex(),reflink:dj(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,zj).getRegex()},Wj={...Uj,emStrongRDelimAst:xce,emStrongLDelim:vce,delLDelim:Tce,delRDelim:Ece,url:dj(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Hj).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:dj(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},qj=e=>Fce[e],Jj=class{options;rules;lexer;constructor(e){this.options=e||vj}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Wse(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Jse(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=hj(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:hj(t[0],` `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:hj(t[0],` `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=hj(t[0],` `).split(` `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Kse(t[2].split(` `,1)[0],t[1].length),l=e.split(` `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(` `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` `+l}u=!l.trim(),r+=p+` `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Wse(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:hj(t[0],` `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=mj(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(` `):[],a={type:`table`,raw:hj(t[0],` `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:hj(t[0],` `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=hj(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Gse(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),qse(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return qse(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Yj=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vj,this.options.tokenizer=this.options.tokenizer||new Jj,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:bj,block:Gj.normal,inline:Kj.normal};this.options.pedantic?(t.block=Gj.pedantic,t.inline=Kj.pedantic):this.options.gfm&&(t.block=Gj.gfm,t.inline=this.options.breaks?Kj.breaks:Kj.gfm),this.tokenizer.rules=t}static get rules(){return{block:Gj,inline:Kj}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(bj.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let e=0;e(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=` `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` `)?``:` `)+i.raw,n.text+=` `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` `)?``:` `)+i.raw,n.text+=` `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(` `)?``:` `)+i.raw,r.text+=` `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` `)?``:` `)+i.raw,n.text+=` `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);e.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,t=>e.includes(t.slice(t.lastIndexOf(`[`)+1,-1))?`[`+`a`.repeat(t.length-2)+`]`:t))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,`++`),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Xj=class{options;parser;constructor(e){this.options=e||vj}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(bj.notSpaceStart)?.[0],i=e.replace(bj.endingNewline,``)+` `;return r?`
`+(n?i:fj(i,!0))+`
`:`
`+(n?i:fj(i,!0))+`
`}blockquote({tokens:e}){return`
${this.parser.parse(e)}
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} `}hr(e){return`
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t `+r+` `}listitem(e){return`
  • ${this.parser.parse(e.tokens)}
  • `}checkbox({checked:e}){return` `}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    `}table(e){let t=``,n=``;for(let t=0;t${r}`,` `+t+` `+r+`
    `}tablerow({text:e}){return` ${e} `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${fj(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=pj(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=pj(e);if(i===null)return fj(n);e=i;let a=`${fj(n)}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:fj(e.text)}},Zj=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Qj=class e{options;renderer;textRenderer;constructor(e){this.options=e||vj,this.options.renderer=this.options.renderer||new Xj,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zj}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Xj(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Jj(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new $j;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=$j.passThroughHooks.has(n)?e=>{if(this.defaults.async&&$j.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Yj.lex(e,t??this.defaults)}parser(e,t){return Qj.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Yj.lex:Yj.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Qj.parse:Qj.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Yj.lex:Yj.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Qj.parse:Qj.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+fj(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},eM=new Ice,gj.options=gj.setOptions=function(e){return eM.setOptions(e),gj.defaults=eM.defaults,lj(gj.defaults),gj},gj.getDefaults=cj,gj.defaults=vj,gj.use=_j,gj.walkTokens=function(e,t){return eM.walkTokens(e,t)},gj.parseInline=eM.parseInline,gj.Parser=Qj,gj.parser=Qj.parse,gj.Renderer=Xj,gj.TextRenderer=Zj,gj.Lexer=Yj,gj.lexer=Yj.lex,gj.Tokenizer=Jj,gj.Hooks=$j,gj.parse=gj,gj.options,gj.setOptions,gj.walkTokens,tM=gj.parseInline,nM=gj,Qj.parse,Yj.lex})))()}function iM(e,t){var n=Ui,r=Vi,i=e();let a=sn(i,t=>{var a=i!==e(),o,s=Vi,c=Ui;Ci(r),wi(n);try{o=ei(()=>{ri(()=>{let n=e();a&&t(n)})})}finally{Ci(s),wi(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}function aM(){return(aM=s((()=>{yi(),un(),jn(),Zi()})))()}var oM;function sM(){return(sM=s((()=>{oM=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){this.#e||(this.#t??=this.#s(),this.#e=await this.#t,this.#t=void 0);let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}}})))()}var cM,lM;function uM(){return(uM=s((()=>{cM=e=>{try{return JSON.parse(e)}catch{return null}},lM=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?cM(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(cM)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,cM(t)])}}})))()}var dM,Lce,Rce,fM,pM,zce,Bce,Vce,Hce,mM,Uce,Wce;function hM(){return(hM=s((()=>{md(),FD(),dM=(e=``)=>RegExp(`\\bblob:${kD(globalThis.location.origin)}\\/${ud.source}\\b`,e),Lce=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,Rce=[`application/atom+xml`,`application/javascript`,`application/json`,`application/ld+json`,`application/rss+xml`,`application/xhtml+xml`,`application/xml`,`application/yaml`,`image/svg+xml`],fM=e=>e.startsWith(`text/`)||Rce.includes(e),pM=e=>{let[,t,n,r,i]=e.match(Lce)??[];return{dirname:t,basename:n,filename:r,extension:i}},zce=(e,t)=>!t.length||t.some(t=>{if(t=t.toLowerCase(),t.startsWith(`.`))return e.name.toLowerCase().endsWith(t);let[n,r]=t.split(`/`);return r===`*`?e.type.split(`/`)[0]===n:e.type===t}),Bce=async({items:e},{accept:t}={})=>{let n=t?t.trim().split(/,\s*/):[],r=e=>new Promise(t=>{if(e.name.startsWith(`.`))t(null);else if(e.isFile)e.file(e=>{t(zce(e,n)?e:null)},()=>{t(null)});else{let n=e.createReader(),i=[],a=()=>{n.readEntries(e=>{e.length?(i.push(...e),a()):t(Promise.all(i.map(r)))})};a()}});return(await Promise.all([...e].map(e=>{let t=e.webkitGetAsEntry();return t?r(t):null}))).flat(1/0).filter(Boolean).sort((e,t)=>e.name.localeCompare(t.name))},Vce=async e=>(await e.text()).replace(/\r\n?/g,` `),Hce=async e=>{let t=typeof e==`string`?new Blob([e],{type:`text/plain`}):e,n=new FileReader;return new Promise((e,r)=>{n.onload=()=>{e(n.result)},n.onerror=()=>{r(n.error)},n.readAsDataURL(t)})},mM=async e=>(await Hce(e)).split(`,`)[1],Uce=async e=>{let t=Uint8Array.fromBase64(e);return new TextDecoder().decode(t)},Wce=(e,t)=>{let n=document.createElement(`a`),r=URL.createObjectURL(e);n.download=t??e.name??`${Date.now()}.${e.type.split(`/`)[1]}`,n.href=r,n.click(),globalThis.setTimeout(()=>{URL.revokeObjectURL(r)},0)}})))()}function Gce(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function Kce(e){return e}function gM(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||Kce,a={};function o(e,s,c){c||=1,Object.keys(e).forEach(function(l){let u=e[l],d=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),p=Gce(u),m=f===`[object Object]`||f===`[object Array]`,h=s?s+n+i(l):i(l);if(!d&&!p&&m&&Object.keys(u).length&&(!t.maxDepth||c0&&(l=o(c.shift()),u=o(c[0]))}d[l]=_M(e[s],t)}),a}var vM,qce,yM,Jce,Yce;function bM(){return(bM=s((()=>{vM=/{{(.+?)}}/,qce=new RegExp(vM.source,`g`),yM=/\\\{\\\{.+?\\\}\\\}/g,Jce=[`year`,`month`,`day`,`hour`,`minute`,`second`],Yce=/^{{(?.+?)}}$/})))()}var xM,SM,CM,wM,TM,EM,Xce,DM,OM;function kM(){return(kM=s((()=>{hM(),FD(),aM(),bM(),xM=sn([]),SM=cn([xM],([e],t)=>{t(e.find(({collectionName:e,internalPath:t})=>e===void 0&&t!==void 0))}),CM=sn(),wM=cn([CM,SM],([e,t])=>e?.internalPath===void 0?t:e),TM=e=>{let t=`typedKeyPath`in e?e.typedKeyPath?.match(/[^:]+$/)?.[0]:e.typedKeyPath;return A(xM).find(n=>(`typedKeyPath`in e?n.typedKeyPath===t:!n.typedKeyPath)?`componentName`in e?n.componentName===e.componentName:n.collectionName===e.collectionName&&n.fileName===e.fileName&&(`isIndexFile`in e?n.isIndexFile===e.isIndexFile:!n.isIndexFile):!1)},EM={source:void 0,items:[],entryRelative:[]},Xce=()=>{let e=A(xM);if(e===EM.source)return EM;let t=[],n=[];return e.forEach(e=>{let{internalPath:r,entryRelative:i}=e;if(r!==void 0){if(i)n.push(e);else{let n=kD(r).replace(yM,`.+?`);t.push({folder:e,regexSub:RegExp(`^${n}${r?`(?=\\/|$)`:`$`}`),regexExact:RegExp(`^${n}$`)})}}}),EM.source=e,EM.items=t,EM.entryRelative=n,EM},DM=(e,{matchSubFolders:t=!0}={})=>{let{filename:n,dirname:r}=pM(e);if(n.startsWith(`+`))return[];let{items:i,entryRelative:a}=Xce(),o=r??``;return[...a.filter(({internalPath:t})=>e.startsWith(`${t}/`)),...i.filter(({regexSub:e,regexExact:n})=>(t?e:n).test(o)).map(({folder:e})=>e)].sort((e,t)=>t.internalPath.localeCompare(e.internalPath))},OM=e=>!!e&&!e.entryRelative&&!e.hasTemplateTags})))()}var Zce=c(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(r[i]=p(e,i)&&n.isMergeableObject(t[i])?u(i,n)(e[i],t[i],n):c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}));function AM(e){if(e&&typeof e==`object`)switch(e[RM]){case PM:case LM:return!0}return!1}function jM(e){if(e&&typeof e==`object`)switch(e[RM]){case MM:case PM:case IM:case LM:return!0}return!1}var MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM;function KM(){return(KM=s((()=>{MM=Symbol.for(`yaml.alias`),NM=Symbol.for(`yaml.document`),PM=Symbol.for(`yaml.map`),FM=Symbol.for(`yaml.pair`),IM=Symbol.for(`yaml.scalar`),LM=Symbol.for(`yaml.seq`),RM=Symbol.for(`yaml.node.type`),zM=e=>!!e&&typeof e==`object`&&e[RM]===MM,BM=e=>!!e&&typeof e==`object`&&e[RM]===NM,VM=e=>!!e&&typeof e==`object`&&e[RM]===PM,HM=e=>!!e&&typeof e==`object`&&e[RM]===FM,UM=e=>!!e&&typeof e==`object`&&e[RM]===IM,WM=e=>!!e&&typeof e==`object`&&e[RM]===LM,GM=e=>(UM(e)||AM(e))&&!!e.anchor})))()}function qM(e,t){let n=Qce(t);BM(e)?JM(null,e.contents,n,Object.freeze([e]))===XM&&(e.contents=null):JM(null,e,n,Object.freeze([]))}function JM(e,t,n,r){let i=$ce(e,t,n,r);if(jM(i)||HM(i))return ele(e,r,i),JM(e,i,n,r);if(typeof i!=`symbol`){if(AM(t)){r=Object.freeze(r.concat(t));for(let e=0;e{KM(),YM=Symbol(`break visit`),tle=Symbol(`skip children`),XM=Symbol(`remove node`),qM.BREAK=YM,qM.SKIP=tle,qM.REMOVE=XM})))()}var nle,rle,QM;function $M(){return($M=s((()=>{KM(),ZM(),nle={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},rle=e=>e.replace(/[!,[\]{}]/g,e=>nle[e]),QM=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+rle(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&jM(e.contents)){let t={};qM(e.contents,(e,n)=>{jM(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(` `)}},QM.defaultYaml={explicit:!1,version:`1.2`},QM.defaultTags={"!!":`tag:yaml.org,2002:`}})))()}function ile(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ale(e){let t=new Set;return qM(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ole(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function sle(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ale(e);let a=ole(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(UM(t.node)||AM(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function eN(){return(eN=s((()=>{KM(),ZM()})))()}function tN(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;tnN(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!GM(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}function rN(){return(rN=s((()=>{KM()})))()}var iN;function aN(){return(aN=s((()=>{KM(),rN(),iN=class{constructor(e){Object.defineProperty(this,RM,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!BM(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=nN(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?tN(i,{"":o},``,o):o}}})))()}function oN(e,t,n){if(zM(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(AM(t)){let r=0;for(let i of t.items){let t=oN(e,i,n);t>r&&(r=t)}return r}if(HM(t)){let r=oN(e,t.key,n),i=oN(e,t.value,n);return Math.max(r,i)}return 1}var sN;function cN(){return(cN=s((()=>{eN(),ZM(),KM(),aN(),rN(),sN=class extends iN{constructor(e){super(MM),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],qM(e,{Node:(e,t)=>{(zM(t)||GM(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(nN(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=oN(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(ile(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}}})))()}var lN,uN;function dN(){return(dN=s((()=>{KM(),aN(),rN(),lN=e=>!e||typeof e!=`function`&&typeof e!=`object`,uN=class extends iN{constructor(e){super(IM),this.value=e}toJSON(e,t){return t?.keep?this.value:nN(this.value,e,t)}toString(){return String(this.value)}},uN.BLOCK_FOLDED=`BLOCK_FOLDED`,uN.BLOCK_LITERAL=`BLOCK_LITERAL`,uN.PLAIN=`PLAIN`,uN.QUOTE_DOUBLE=`QUOTE_DOUBLE`,uN.QUOTE_SINGLE=`QUOTE_SINGLE`})))()}function cle(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function fN(e,t,n){if(BM(e)&&(e=e.contents),jM(e))return e;if(HM(e)){let t=n.schema[PM].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new sN(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=lle+t.slice(2));let l=cle(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new uN(e);return c&&(c.node=t),t}l=e instanceof Map?o[PM]:Symbol.iterator in Object(e)?o[LM]:o[PM]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new uN(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}var lle;function pN(){return(pN=s((()=>{cN(),KM(),dN(),lle=`tag:yaml.org,2002:`})))()}function mN(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return fN(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var hN,gN;function _N(){return(_N=s((()=>{pN(),KM(),aN(),hN=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,gN=class extends iN{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>jM(t)||HM(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(hN(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(AM(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,mN(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(AM(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&UM(i)?i.value:i:AM(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!HM(t))return!1;let n=t.value;return n==null||e&&UM(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return AM(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(AM(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,mN(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}})))()}function vN(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var ule,yN;function bN(){return(bN=s((()=>{ule=e=>e.replace(/^(?!$)(?: $)?/gm,`#`),yN=(e,t,n)=>e.endsWith(` `)?vN(n,t):n.includes(` `)?` `+vN(n,t):(e.endsWith(` `)?``:` `)+n})))()}function xN(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=dle(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` `)n===`block`&&(h=dle(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` `&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r{SN=`flow`,fle=`block`,ple=`quoted`})))()}function hle(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function CN(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(kN(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` `&&(p=p.slice(0,-1)),p.replace(AN,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=xN(`${v}${e}${p}`,l,fle,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function gle(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` `)||u&&/[[\]{},]/.test(a))return TN(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` `)?TN(a,t):EN(e,t,n,r);if(!s&&!u&&i!==uN.PLAIN&&a.includes(` `))return EN(e,t,n,r);if(kN(a)){if(c===``)return t.forceBlockIndent=!0,EN(e,t,n,r);if(s&&c===l)return TN(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return TN(a,t)}return s?d:xN(d,c,SN,ON(t,!1))}function DN(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==uN.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=uN.QUOTE_DOUBLE);let c=e=>{switch(e){case uN.BLOCK_FOLDED:case uN.BLOCK_LITERAL:return i||a?TN(o.value,t):EN(o,t,n,r);case uN.QUOTE_DOUBLE:return CN(o.value,t);case uN.QUOTE_SINGLE:return wN(o.value,t);case uN.PLAIN:return gle(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}var ON,kN,AN;function jN(){return(jN=s((()=>{dN(),mle(),ON=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),kN=e=>/^(%|---|\.\.\.)/m.test(e);try{AN=RegExp(`(^|(?e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(UM(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function yle(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(UM(e)||AM(e))&&e.anchor;a&&ile(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function MN(e,t,n,r){if(HM(e))return e.toString(t,n,r);if(zM(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=jM(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=vle(t.doc.schema.tags,a);let o=yle(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):UM(a)?DN(a,t,n,r):a.toString(t,n,r);return o?UM(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function NN(){return(NN=s((()=>{eN(),KM(),bN(),jN()})))()}function ble({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=jM(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(AM(e)||!jM(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||AM(e)||(UM(e)?e.type===uN.BLOCK_FOLDED||e.type===uN.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=MN(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=yN(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=yN(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=yN(g,n.indent,l(f))));let _,v,y;jM(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&UM(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&WM(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=MN(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` `:``,v){let e=l(v);S+=`\n${vN(e,n.indent)}`}x===``&&!n.inFlow?S===` `&&y&&(S=` `):S+=`\n${n.indent}`}else if(!p&&AM(t)){let e=x[0],r=x.indexOf(` `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n{KM(),dN(),NN(),bN()})))()}function Sle(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}function Cle(e,t,n){let r=wle(e,n);if(WM(r))for(let n of r.items)PN(e,t,n);else if(Array.isArray(r))for(let n of r)PN(e,t,n);else PN(e,t,r)}function PN(e,t,n){let r=wle(e,n);if(!VM(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function wle(e,t){return e&&zM(t)?t.resolve(e.doc,e):t}var FN,IN,Tle;function LN(){return(LN=s((()=>{KM(),dN(),FN=`<<`,IN={identify:e=>e===FN||typeof e==`symbol`&&e.description===FN,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new uN(Symbol(FN)),{addToJSMap:Cle}),stringify:()=>FN},Tle=(e,t)=>(IN.identify(t)||UM(t)&&(!t.type||t.type===uN.PLAIN)&&IN.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===IN.tag&&e.default)})))()}function Ele(e,t,{key:n,value:r}){if(jM(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Tle(e,n))Cle(e,t,r);else{let i=nN(n,``,e);if(t instanceof Map)t.set(i,nN(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Dle(n,i,e),o=nN(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Dle(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(jM(e)&&n?.doc){let t=_le(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Sle(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function RN(){return(RN=s((()=>{LN(),NN(),KM(),rN()})))()}function zN(e,t,n){let r=fN(e,void 0,n),i=fN(t,void 0,n);return new BN(r,i)}var BN;function VN(){return(VN=s((()=>{pN(),xle(),RN(),KM(),BN=class e{constructor(e,t=null){Object.defineProperty(this,RM,{value:FM}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return jM(n)&&(n=n.clone(t)),jM(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Ele(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?ble(this,e,t,n):JSON.stringify(this)}}})))()}function Ole(e,t,n){return(t.inFlow??e.flow?Ale:kle)(e,t,n)}function kle({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=yN(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` `),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=yN(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` `;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function HN({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=vN(t(r),e);n.push(i.trimStart())}}function UN(){return(UN=s((()=>{KM(),NN(),bN()})))()}function WN(e,t){let n=UM(t)?t.value:t;for(let r of e)if(HM(r)&&(r.key===t||r.key===n||UM(r.key)&&r.key.value===n))return r}var GN;function KN(){return(KN=s((()=>{UN(),RN(),_N(),KM(),VN(),dN(),GN=class extends gN{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(PM,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(zN(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=HM(e)?e:!e||typeof e!=`object`||!(`key`in e)?new BN(e,e?.value):new BN(e.key,e.value);let r=WN(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);UM(r.value)&&lN(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=WN(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=WN(this.items,e)?.value;return(!t&&UM(n)?n.value:n)??void 0}has(e){return!!WN(this.items,e)}set(e,t){this.add(new BN(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Ele(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!HM(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ole(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}}})))()}var qN;function JN(){return(JN=s((()=>{KM(),KN(),qN={collection:`map`,default:!0,nodeClass:GN,tag:`tag:yaml.org,2002:map`,resolve(e,t){return VM(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>GN.from(e,t,n)}})))()}function YN(e){let t=UM(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var XN;function ZN(){return(ZN=s((()=>{pN(),UN(),_N(),KM(),dN(),rN(),XN=class extends gN{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(LM,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=YN(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=YN(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&UM(r)?r.value:r}has(e){let t=YN(e);return typeof t==`number`&&t{KM(),ZN(),QN={collection:`seq`,default:!0,nodeClass:XN,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return WM(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>XN.from(e,t,n)}})))()}var eP;function tP(){return(tP=s((()=>{jN(),eP={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),DN(e,t,n,r)}}})))()}var nP;function rP(){return(rP=s((()=>{dN(),nP={identify:e=>e==null,createNode:()=>new uN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new uN(null),stringify:({source:e},t)=>typeof e==`string`&&nP.test.test(e)?e:t.options.nullStr}})))()}var iP;function aP(){return(aP=s((()=>{dN(),iP={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new uN(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&iP.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}}})))()}function oP({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var sP,cP,lP;function uP(){return(uP=s((()=>{dN(),sP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:oP},cP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():oP(e)}},lP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new uN(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:oP}})))()}function jle(e,t,n){let{value:r}=e;return dP(r)&&r>=0?n+r.toString(t):oP(e)}var dP,fP,pP,mP,hP;function gP(){return(gP=s((()=>{dP=e=>typeof e==`bigint`||Number.isInteger(e),fP=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),pP={identify:e=>dP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>fP(e,2,8,n),stringify:e=>jle(e,8,`0o`)},mP={identify:dP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>fP(e,0,10,n),stringify:oP},hP={identify:e=>dP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>fP(e,2,16,n),stringify:e=>jle(e,16,`0x`)}})))()}var Mle;function Nle(){return(Nle=s((()=>{JN(),rP(),$N(),tP(),aP(),uP(),gP(),Mle=[qN,QN,eP,nP,iP,pP,mP,hP,sP,cP,lP]})))()}function Ple(e){return typeof e==`bigint`||Number.isInteger(e)}var _P,Fle,Ile;function Lle(){return(Lle=s((()=>{dN(),JN(),$N(),_P=({value:e})=>JSON.stringify(e),Fle=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:_P},{identify:e=>e==null,createNode:()=>new uN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:_P},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:_P},{identify:Ple,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ple(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:_P}],Ile=[qN,QN].concat(Fle,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})))()}var vP;function yP(){return(yP=s((()=>{dN(),jN(),vP={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new BN(new uN(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=HM(r)?r:new BN(r)}}else t(`Expected a sequence for this tag`);return e}function zle(e,t,n){let{replacer:r}=n,i=new XN(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(zN(o,s,n))}return i}var bP;function xP(){return(xP=s((()=>{KM(),VN(),dN(),ZN(),bP={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:Rle,createNode:zle}})))()}var SP,CP;function wP(){return(wP=s((()=>{KM(),rN(),KN(),ZN(),xP(),SP=class e extends XN{constructor(){super(),this.add=GN.prototype.add.bind(this),this.delete=GN.prototype.delete.bind(this),this.get=GN.prototype.get.bind(this),this.has=GN.prototype.has.bind(this),this.set=GN.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(HM(e)?(r=nN(e.key,``,t),i=nN(e.value,r,t)):r=nN(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=zle(e,t,n),i=new this;return i.items=r.items,i}},SP.tag=`tag:yaml.org,2002:omap`,CP={collection:`seq`,identify:e=>e instanceof Map,nodeClass:SP,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=Rle(e,t),r=[];for(let{key:e}of n.items)UM(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new SP,n)},createNode:(e,t,n)=>SP.from(e,t,n)}})))()}function Ble({value:e,source:t},n){return t&&(e?TP:EP).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var TP,EP;function Vle(){return(Vle=s((()=>{dN(),TP={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new uN(!0),stringify:Ble},EP={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new uN(!1),stringify:Ble}})))()}var Hle,Ule,Wle;function Gle(){return(Gle=s((()=>{dN(),Hle={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:oP},Ule={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():oP(e)}},Wle={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new uN(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:oP}})))()}function DP(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function OP(e,t,n){let{value:r}=e;if(kP(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return oP(e)}var kP,Kle,qle,Jle,Yle;function Xle(){return(Xle=s((()=>{kP=e=>typeof e==`bigint`||Number.isInteger(e),Kle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>DP(e,2,2,n),stringify:e=>OP(e,2,`0b`)},qle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>DP(e,1,8,n),stringify:e=>OP(e,8,`0`)},Jle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>DP(e,0,10,n),stringify:oP},Yle={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>DP(e,2,16,n),stringify:e=>OP(e,16,`0x`)}})))()}var AP,jP;function MP(){return(MP=s((()=>{KM(),VN(),KN(),AP=class e extends GN{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=HM(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new BN(e.key,null):new BN(e,null),WN(this.items,t.key)||this.items.push(t)}get(e,t){let n=WN(this.items,e);return!t&&HM(n)?UM(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=WN(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new BN(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(zN(e,null,n));return i}},AP.tag=`tag:yaml.org,2002:set`,jP={collection:`map`,identify:e=>e instanceof Set,nodeClass:AP,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>AP.from(e,t,n),resolve(e,t){if(VM(e)){if(e.hasAllNullValues(!0))return Object.assign(new AP,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}}})))()}function NP(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Zle(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return oP(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var PP,FP,IP;function LP(){return(LP=s((()=>{PP={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>NP(e,n),stringify:Zle},FP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>NP(e,!1),stringify:Zle},IP={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(IP.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=NP(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``}})))()}var RP;function Qle(){return(Qle=s((()=>{JN(),rP(),$N(),tP(),yP(),Vle(),Gle(),Xle(),LN(),wP(),xP(),MP(),LP(),RP=[qN,QN,eP,nP,TP,EP,Kle,qle,Jle,Yle,Hle,Ule,Wle,vP,IN,CP,bP,jP,PP,FP,IP]})))()}function zP(e,t,n){let r=BP.get(t);if(r&&!e)return n&&!r.includes(IN)?r.concat(IN):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(BP.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(IN)),i.reduce((e,t)=>{let n=typeof t==`string`?VP[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(VP).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var BP,VP,$le;function eue(){return(eue=s((()=>{JN(),rP(),$N(),tP(),aP(),uP(),gP(),Nle(),Lle(),yP(),LN(),wP(),xP(),Qle(),MP(),LP(),BP=new Map([[`core`,Mle],[`failsafe`,[qN,QN,eP]],[`json`,Ile],[`yaml11`,RP],[`yaml-1.1`,RP]]),VP={binary:vP,bool:iP,float:lP,floatExp:cP,floatNaN:sP,floatTime:FP,int:mP,intHex:hP,intOct:pP,intTime:PP,map:qN,merge:IN,null:nP,omap:CP,pairs:bP,seq:QN,set:jP,timestamp:IP},$le={"tag:yaml.org,2002:binary":vP,"tag:yaml.org,2002:merge":IN,"tag:yaml.org,2002:omap":CP,"tag:yaml.org,2002:pairs":bP,"tag:yaml.org,2002:set":jP,"tag:yaml.org,2002:timestamp":IP}})))()}var tue,nue;function HP(){return(HP=s((()=>{KM(),JN(),$N(),tP(),eue(),tue=(e,t)=>e.keyt.key),nue=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?zP(e,`compat`):e?zP(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?$le:{},this.tags=zP(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,PM,{value:qN}),Object.defineProperty(this,IM,{value:eP}),Object.defineProperty(this,LM,{value:QN}),this.sortMapEntries=typeof a==`function`?a:a===!0?tue:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})))()}function rue(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=_le(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(vN(t,``))}let o=!1,s=null;if(e.contents){if(jM(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(vN(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=MN(e.contents,i,()=>s=null,t);s&&(c+=yN(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(MN(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(` `)?(n.push(`...`),n.push(vN(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(vN(a(t),``)))}return n.join(` `)+` `}function iue(){return(iue=s((()=>{KM(),NN(),bN()})))()}function UP(e){if(AM(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var WP;function GP(){return(GP=s((()=>{cN(),_N(),KM(),VN(),rN(),HP(),iue(),eN(),pN(),$M(),WP=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,RM,{value:NM});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new QM({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[RM]:{value:NM}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=jM(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){UP(this.contents)&&this.contents.add(e)}addIn(e,t){UP(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ale(this);e.anchor=!t||n.has(t)?ole(t||`a`,n):t}return new sN(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=sle(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=fN(e,l,p);return o&&AM(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){let r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new BN(r,i)}delete(e){return UP(this.contents)?this.contents.delete(e):!1}deleteIn(e){return hN(e)?this.contents!=null&&(this.contents=null,!0):UP(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return AM(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return hN(e)?!t&&UM(this.contents)?this.contents.value:this.contents:AM(this.contents)?this.contents.getIn(e,t):void 0}has(e){return AM(this.contents)?this.contents.has(e):!1}hasIn(e){return hN(e)?this.contents!==void 0:AM(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=mN(this.schema,[e],t):UP(this.contents)&&this.contents.set(e,t)}setIn(e,t){hN(e)?this.contents=t:this.contents==null?this.contents=mN(this.schema,Array.from(e),t):UP(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new QM({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new QM({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new nue(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=nN(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?tN(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return rue(this,e)}}})))()}var KP,qP,aue,JP;function YP(){return(YP=s((()=>{KP=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},qP=class extends KP{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},aue=class extends KP{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},JP=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})))()}function XP(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function ZP(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(ZP(t.key)||ZP(t.value))return!0}return!1;default:return!0}}function QP(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&ZP(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function $P(){return($P=s((()=>{})))()}function oue(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||UM(e)&&UM(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}function eF(){return(eF=s((()=>{KM()})))()}function sue({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??GN)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=XP(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,tF)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=` `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||ZP(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,tF);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&QP(r.indent,u,i),n.atKey=!1,oue(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=XP(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&QP(r.indent,f,i),s=c.range[2];let l=new BN(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=` `+_.comment:g.comment=_.comment);let e=new BN(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c{VN(),KN(),$P(),eF(),tF=`All mapping items must start at the same column`})))()}function lue({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??XN)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=XP(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&QP(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function uue(){return(uue=s((()=>{ZN(),$P()})))()}function nF(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}function due({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?GN:XN))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a0){let e=nF(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=` `+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}var rF,iF;function fue(){return(fue=s((()=>{KM(),VN(),KN(),ZN(),eF(),rF=`Block collections are not allowed within flow collections`,iF=e=>e&&(e.type===`block-map`||e.type===`block-seq`)})))()}function aF(e,t,n,r,i,a){let o=n.type===`block-map`?sue(e,t,n,r,a):n.type===`block-seq`?lue(e,t,n,r,a):due(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function pue(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offsete.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),aF(e,t,n,i,o)}let l=aF(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=jM(u)?u:new uN(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function mue(){return(mue=s((()=>{KM(),dN(),KN(),ZN(),cue(),uue(),fue()})))()}function hue(e,t,n){let r=t.offset,i=gue(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?uN.BLOCK_FOLDED:uN.BLOCK_LITERAL,o=t.source?_ue(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?` `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;tc&&(c=r.length);else{r.length=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;ec||r[0]===` `?(f===` `?f=` `:!p&&f===` `&&(f=` `),d+=f+t.slice(c)+r,f=` `,p=!0):r===``?f===` `?d+=` `:f=` `:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e{dN()})))()}function vue(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=uN.PLAIN,c=yue(a,l);break;case`single-quoted-scalar`:s=uN.QUOTE_SINGLE,c=bue(a,l);break;case`double-quoted-scalar`:s=uN.QUOTE_DOUBLE,c=Sue(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=nF(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function yue(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),xue(e)}function bue(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),xue(e.slice(1,-1)).replace(/''/g,`'`)}function xue(e){let t,n;try{t=RegExp(`(.*?)(?t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function Cue(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===` `||r===`\r`)&&(r!==`\r`||e[t+2]===` `);)r===` `&&(n+=` `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}function wue(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}var Tue;function sF(){return(sF=s((()=>{dN(),Tue={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:` `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `}})))()}function Eue(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?hue(e,t,r):vue(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[IM]:c?Due(e.schema,i,c,n,r):t.type===`scalar`?Oue(e,i,t,r):e.schema[IM];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=UM(a)?a:new uN(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new uN(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Due(e,t,n,r,i){if(n===`!`)return e[IM];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[IM])}function Oue({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[IM];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[IM];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function kue(){return(kue=s((()=>{KM(),dN(),oF(),sF()})))()}function Aue(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}function jue(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Mue(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=Eue(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=pue(Nue,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=cF(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!UM(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function cF(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Eue(e,{type:`scalar`,offset:Aue(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Mue({options:e},{offset:t,source:n,end:r},i){let a=new sN(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=nF(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Nue;function Pue(){return(Pue=s((()=>{cN(),KM(),mue(),kue(),Nue={composeNode:jue,composeEmptyNode:cF}})))()}function Fue(e,t,{offset:n,start:r,value:i,end:a},o){let s=Object.assign({_directives:t},e),c=new WP(void 0,s),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=XP(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!u.hasNewline&&o(u.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),c.contents=i?jue(l,i,u,o):cF(l,u.end,r,null,u,o);let d=c.contents.range[2],f=nF(a,d,!1,o);return f.comment&&(c.comment=f.comment),c.range=[n,d,f.offset],c}function Iue(){return(Iue=s((()=>{GP(),Pue()})))()}function lF(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function Lue(e){let t=``,n=!1,r=!1;for(let i=0;i{$M(),GP(),YP(),KM(),Iue(),Rue=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=lF(e);r?this.warnings.push(new aue(i,t,n)):this.errors.push(new qP(i,t,n))},this.directives=new QM({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Lue(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(AM(i)&&!i.flow&&i.items.length>0){let e=i.items[0];HM(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=lF(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Fue(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new qP(lF(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new qP(lF(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=nF(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new qP(lF(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new WP(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})))()}function zue(){return(zue=s((()=>{oF(),sF(),jN()})))()}function dF(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Bue(Object.freeze([]),e,t)}function Bue(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t{fF=Symbol(`break visit`),Vue=Symbol(`skip children`),pF=Symbol(`remove item`),dF.BREAK=fF,dF.SKIP=Vue,dF.REMOVE=pF,dF.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},dF.parentCollection=(e,t)=>{let n=dF.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)}})))()}function Uue(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` `:case`\r `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function mF(){return(mF=s((()=>{zue(),Hue()})))()}function hF(e){switch(e){case void 0:case` `:case` `:case`\r`:case` `:return!0;default:return!1}}var gF,Wue,_F,Gue,vF,Kue;function yF(){return(yF=s((()=>{mF(),gF=new Set(`0123456789ABCDEFabcdef`),Wue=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),_F=new Set(`,[]{}`),Gue=new Set(` ,[]{} \r `),vF=e=>!e||Gue.has(e),Kue=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` `||t===`\r`&&this.buffer[e+1]===` `}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===` `||!t&&!this.atEnd)return e+n+1}return t===` `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&hF(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&ethis.indentValue&&!hF(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&hF(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(vF),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>hF(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case` `:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===` `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(` `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===` `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===` `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(hF(r)||e&&_F.has(r))break;t=n}else if(hF(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===` `?(n+=1,r=` `,i=this.buffer[n+1]):t=n),i===`#`||e&&_F.has(i))break;if(r===` `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&_F.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(vF),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(hF(n)||t&&_F.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!hF(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Wue.has(t))t=this.buffer[++e];else if(t===`%`&&gF.has(this.buffer[e+1])&&gF.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})))()}var que;function Jue(){return(Jue=s((()=>{que=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function CF(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n{mF(),yF(),Que=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Kue,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Uue(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&Zue(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Yue(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(bF(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=SF(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bF(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Xue(t.key)&&!bF(t.sep,`newline`)){let e=SF(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):bF(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!bF(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){CF(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||bF(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=SF(xF(t));Zue(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=SF(xF(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=SF(xF(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})))()}function $ue(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new que||null,prettyErrors:t}}function ede(e,t={}){let{lineCounter:n,prettyErrors:r}=$ue(t),i=new Que(n?.addNewLine),a=new Rue(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new qP(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(JP(e,n)),o.warnings.forEach(JP(e,n))),o}function tde(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=ede(e,n);if(!i)return null;if(i.warnings.forEach(e=>Sle(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function TF(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return BM(e)&&!r?e.toString(n):new WP(e,r,n).toString(n)}function nde(){return(nde=s((()=>{uF(),GP(),YP(),KM(),Jue(),wF()})))()}function rde(){return(rde=s((()=>{uF(),GP(),HP(),cN(),VN(),dN(),KN(),ZN(),mF(),yF(),wF(),nde(),ZM()})))()}function EF(){return(EF=s((()=>{rde()})))()}var DF;function OF(){return(OF=s((()=>{DF=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})))()}var kF;function ide(){return(ide=s((()=>{kF=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})))()}var AF,jF;function ade(){return(ade=s((()=>{AF=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],jF={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:AF,nb:AF,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(jF))jF[e]=new Map(jF[e])})))()}function ode(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=lde(t.locale),r=[...t.customReplacements],i=kF,a=cde;if(n&&({replacements:i,pattern:a}=NF.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var sde,MF,cde,NF,lde;function ude(){return(ude=s((()=>{ide(),ade(),sde=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),MF=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>sde(e)).join(`|`),`gu`)},cde=MF(kF),NF=new Map;for(let[e,t]of Object.entries(jF)){let n=new Map(kF);for(let[e,r]of t)n.set(e,r);NF.set(e,{replacements:n,pattern:MF(n)})}lde=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(jF,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(jF,n))return n}})))()}var PF;function FF(){return(FF=s((()=>{PF=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})))()}var dde,fde,IF;function LF(){return(LF=s((()=>{ude(),md(),FD(),aM(),qK(),FF(),dde=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],fde=new Map,IF=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(VK)??{},u=r??s,d=e;if(a&&(d=ode(d.normalize(`NFD`),{locale:n&&dde.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=PF(fde,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=dd(`short`)),typeof u==`number`&&d.length>u&&(d=AD(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})))()}var pde;function mde(){return(mde=s((()=>{pde=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`)})))()}var RF;function hde(){return(hde=s((()=>{RF={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`}})))()}function gde(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function _de(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function vde(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function yde(e){return vde(e)||gde(e)}function bde(){return(bde=s((()=>{})))()}function xde(e){let t=`&`+e+`;`;zF.innerHTML=t;let n=zF.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var zF;function Sde(){return(Sde=s((()=>{zF=document.createElement(`i`)})))()}function Cde(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?yde:u===`decimal`?gde:_de;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&pde.includes(y)&&(_=y,v=xde(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&xde(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1)){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):yde(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(wde(e))h(7,S),C=`�`;else if(e in RF)h(6,S),C=RF[e];else{let t=``;Tde(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Ede[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function wde(e){return e>=55296&&e<=57343||e>1114111}function Tde(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Ede;function Dde(){return(Dde=s((()=>{mde(),hde(),bde(),Sde(),Ede=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`]})))()}var BF,VF;function HF(){return(HF=s((()=>{bM(),BF=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(Yce)?.groups??{};return n===void 0?e:String(t(n)??``)},VF=(e,t)=>e.map(e=>{let{defaultValue:n,truthyValue:r,falsyValue:i}=e.args,a={...e.args},o=!1;if(n!==void 0){let e=BF(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=BF(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=BF(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e})})))()}var UF=c(((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`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,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])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.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(m);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()},_.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()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(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_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),GF=c(((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_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),KF=c(((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_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),Ode,qF,JF,YF;function XF(){return(XF=s((()=>{Ode=new Set([`local`,`utc`]),qF=new WeakMap,JF=e=>typeof e==`string`&&!Ode.has(e),YF=e=>{let t=qF.get(e);if(t)return t;let{type:n=`datetime-local`,min:r=void 0,max:i=void 0,step:a=void 0,format:o,date_format:s=void 0,time_format:c=void 0,picker_utc:l=!1,input_timezone:u=`local`,output_utc:d=!1}=e,f=typeof u==`string`&&u!==`any`?u:`local`,p=typeof s==`string`?s:``,m=typeof c==`string`?c:``,h=n===`date`||c===!1,g=n===`time`||s===!1,_=h?`9999-12-31`:g?void 0:`9999-12-31T23:59`,v=e.input_timezone===void 0?l?`utc`:`local`:f,y={type:h?`date`:g?`time`:`datetime-local`,min:typeof r==`string`&&r?r:void 0,max:typeof i==`string`&&i?i:_,step:typeof a==`number`&&Number.isInteger(a)&&a>0||a===`any`?a:void 0,format:o||[p,m].join(` `).trim()||void 0,dateOnly:h,timeOnly:g,inputTimeZone:v,outputUTC:e.output_utc===void 0?l:d,utc:v===`utc`,singleCustomTimeZone:JF(v)?v:void 0};return qF.set(e,y),y}})))()}var ZF,kde,Ade,jde,Mde,Nde,Pde,Fde,Ide,QF,Lde,Rde,zde,Bde,Vde,Hde,Ude,$F;function eI(){return(eI=s((()=>{FD(),ZF=u(UF(),1),kde=u(WF(),1),Ade=u(GF(),1),jde=u(KF(),1),LF(),XF(),ZF.default.extend(kde.default),ZF.default.extend(Ade.default),ZF.default.extend(jde.default),Mde=/\s*\|\s*/,Nde=/^\d{4}-[01]\d-[0-3]\d$/,Pde=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,Fde=Object.entries({date:/^date\('(?.+?)'(?:,\s*'(?.+?)')?\)$/,default:/^default\('(?.+?)'\)$/,ternary:/^ternary\('(?.*?)',\s*'(?.*?)'\)$/,truncate:/^truncate\((?\d+)(?:,\s*'(?.+?)')?\)$/}),Ide=e=>{for(let[t,n]of Fde){let r=Object.entries(e.match(n)?.groups??{});if(r.length)return{method:t,args:Object.fromEntries(r.filter(([,e])=>e!==void 0))}}return{method:e,args:{}}},QF=e=>{let[t,...n]=e.trim().split(Mde);return{value:t,transformations:n.map(e=>Ide(e))}},Lde=e=>String(e).toUpperCase(),Rde=e=>String(e).toLowerCase(),zde=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=YF(r),s=(n===`utc`||o||a&&i.match(Nde)||a&&i.match(Pde)?ZF.default.utc:ZF.default)(i);return s.isValid()?s.format(t):``},Bde=(e,{defaultValue:t})=>e?String(e):t,Vde=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Hde=(e,{max:t,ellipsis:n=`…`})=>AD(String(e),Number(t),{ellipsis:n}),Ude=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return Lde(t);case`lower`:return Rde(t);case`slugify`:return IF(String(t),{locale:r});case`date`:return zde(t,a,e??{});case`default`:return Bde(t,a);case`ternary`:return Vde(t,a);case`truncate`:return Hde(t,a);default:return String(t)}},$F=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Ude({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})))()}var tI,nI,rI,iI,aI,oI,sI;function cI(){return(cI=s((()=>{aM(),qK(),gL(),sL(),tI=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),nI=e=>e.filter(e=>tI(e)),rI=(e,t)=>{let n=typeof e==`string`?iL(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},iI=e=>e.label||e.name,aI=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],oI=(e,t)=>{let n=A(uL).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return A(dL).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},sI=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=A(VK);if(e===`_singletons`)return Array.isArray(r)?nI(r).findIndex(e=>e.name===t):-1;let i=tL({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1}})))()}var lI,uI,dI,Wde;function fI(){return(fI=s((()=>{lI=[`boolean`,`code`,`color`,`compute`,`datetime`,`file`,`hidden`,`image`,`keyvalue`,`list`,`map`,`markdown`,`number`,`object`,`relation`,`richtext`,`select`,`string`,`text`,`uuid`],uI=[`file`,`image`],dI=[...uI,`relation`,`select`],Wde=[...dI,`datetime`,`keyvalue`,`list`,`number`]})))()}var pI,mI,hI,gI,_I,vI;function yI(){return(yI=s((()=>{pI=new Map,mI=new Map,hI=new Map,gI=new Set,_I=new Map,vI=new Set})))()}var bI,Gde,xI;function SI(){return(SI=s((()=>{bI={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},Gde={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},xI=(e,t)=>{bI[e]||(console.warn(t??Gde[e]),bI[e]=!0)}})))()}var Kde,CI,wI,TI,EI;function DI(){return(DI=s((()=>{Z(),sL(),Kde=`_index`,CI=new WeakMap,wI=e=>{if(!QI(e))return;let{index_file:t}=e;if(t)return(t===!0?void 0:t.name)??Kde},TI=e=>{let t=CI.get(e);if(t&&t.locale===Bu.current)return t.indexFile;let n=wI(e),r;if(n!==void 0){let{index_file:t}=e,i=t===!0?{}:t;r={name:n,label:i.label??X(`index_file`),icon:i.icon??`home`,fields:i.fields,editor:i.editor}}return CI.set(e,{locale:Bu.current,indexFile:r}),r},EI=(e,t)=>{let n=wI(e);return n!==void 0&&t.slug===n}})))()}var OI,kI,qde,Jde,Yde,Xde,AI,Zde;function jI(){return(jI=s((()=>{OI=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],kI=[`njk`],qde=[...OI,...kI],Jde={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},Yde={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},Xde={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},AI=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],Zde=[`toml`,`toml-frontmatter`]})))()}var Qde,MI,NI,PI,FI,II,LI,RI;function zI(){return(zI=s((()=>{Z(),Qde={type:`language`,languageDisplay:`standard`,style:`short`,fallback:`none`},MI=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},NI=e=>e===`_default`?`auto`:Mu(e)?`rtl`:`ltr`,PI=new Map,FI=(e,{displayLocale:t=MI(Bu.current??`en`),formatterOptions:n=Qde}={})=>{let r=MI(e);if(!r)return;let i;t?(i=PI.get(t),i||(i=new Intl.DisplayNames(t,n),PI.set(t,i))):i=new Intl.DisplayNames(void 0,n);try{let e=i.of(r);if(!e)return;let[n,...a]=e;return[n.toLocaleUpperCase(t),...a].join(``)}catch(e){console.error(e);return}},II=new Map,LI=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=II.get(r);return i||(i=new Intl.ListFormat(MI(e),n),II.set(r,i)),i},RI=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)}})))()}var BI,$de,efe,tfe,VI,HI;function UI(){return(UI=s((()=>{hM(),FD(),yI(),bM(),SI(),sL(),DI(),jI(),zI(),BI=({extension:e,format:t})=>(t?hI.get(t)?.extension:void 0)||e||(t?Jde[t]??`md`:`md`),$de=({extension:e,format:t})=>t||(OI.includes(e)?`frontmatter`:Yde[e]??`yaml-frontmatter`),efe=(e,t)=>e?`(?${kD(e).replace(yM,`[^/]+?`)}${t?`|${t}`:``})`:`(?[^/]+?)`,tfe=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${kD(n)}\\/`:``,u?m:``,efe(r,i),l?h:``,`\\.`,kD(BI({format:t,extension:e})),`$`].join(``);return new RegExp(g)},VI=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:Xde[e]??void 0,HI=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,body_field:c,yaml_quote:l}=e,u=QI(e),d=t?.file?jD(t.file):void 0,f=d?pM(d).extension:a,p=t?.format??o,m=BI({format:p,extension:f}),h=$de({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?jD(r):void 0,v=u?TI(e)?.name:void 0;return l!==void 0&&xI(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:tfe({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?RI({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:VI({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}}})))()}var WI,GI,KI,qI,nfe,rfe,ife,afe,ofe,sfe,JI;function YI(){return(YI=s((()=>{v(),aM(),qK(),SI(),sL(),WI={SINGLE_FILE:`single_file`,SINGLE_FILE_DEFAULT_ROOT:`single_file_default_root`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},GI=`_default`,KI={key:`translationKey`,value:`{{slug}}`},qI={i18nEnabled:!1,saveAllLocales:!0,allLocales:[GI],initialLocales:[GI],defaultLocale:GI,structure:WI.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...KI},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},nfe=(e,t)=>{let n=A(VK);if(!g(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||eL(e)){if(g(e.i18n)&&Object.assign(r,e.i18n),t){if(t.i18n)g(t.i18n)&&Object.assign(r,t.i18n);else return}}else return;return r},rfe=(e,t)=>t?t.file.includes(`{{locale}}`)?WI.MULTIPLE_FILES:e===WI.SINGLE_FILE_DEFAULT_ROOT?WI.SINGLE_FILE_DEFAULT_ROOT:WI.SINGLE_FILE:e,ife=(e,t)=>({i18nSingleFile:e&&t===WI.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===WI.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===WI.MULTIPLE_FILES,i18nMultiFolder:e&&t===WI.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===WI.MULTIPLE_FOLDERS_I18N_ROOT||t===WI.MULTIPLE_ROOT_FOLDERS)}),afe=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:GI,ofe=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),sfe=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,JI=(e,t)=>{let n=nfe(e,t),{structure:r=WI.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&xI(`save_all_locales`),l!==void 0&&xI(`omit_default_locale_from_filename`);let{key:f=KI.key,value:p=KI.value}=c,m=i.length>0,h=m?i:[GI],g=afe(m,h,a),_=rfe(r,t),v=ife(m,_),y=!m||s===!0&&o===void 0,b=ofe(o,h,g),x=sfe(u,v,t);return _===`multiple_folders_i18n_root`&&xI(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}}})))()}var XI,ZI,QI,$I,eL,cfe,tL,lfe,ufe,dfe,nL,rL,iL,aL,oL;function sL(){return(sL=s((()=>{Z(),FD(),aM(),qK(),cI(),fI(),UI(),YI(),XI=sn(),ZI=new Map,QI=e=>typeof e.folder==`string`&&!Array.isArray(e.files),$I=e=>e.folder===void 0&&Array.isArray(e.files),eL=e=>$I(e)&&e.name===`_singletons`,cfe=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?QI(e):n===`file`?$I(e):n===`singleton`?eL(e):QI(e)||$I(e),tL=({collections:e=A(VK)?.collections??[],visible:t,type:n}={})=>e.filter(e=>cfe(e,{visible:t,type:n})),lfe=()=>tL({visible:!0})[0],ufe=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>uI.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},dfe=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:HI({rawCollection:e,_i18n:t}),_thumbnailFieldNames:ufe(e)}),nL=(e,t,n)=>({...e,_i18n:t,_type:eL(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(tI).map(t=>{let n=JI(e,t),r=HI({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),rL=()=>{let e=A(VK)?.singletons;if(!Array.isArray(e))return;let t=nI(e).map(e=>({...e,file:jD(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t},r=JI(n);return nL(n,r,t)},iL=e=>{let t=ZI.get(e);if(t)return t;if(e===`_singletons`){let t=rL();return ZI.set(e,t),t}let n=tL().find(t=>t.name===e);if(!n){ZI.set(e,void 0);return}let r=QI(n)?n:void 0,i=$I(n)?n:void 0;if(!r&&!i){ZI.set(e,void 0);return}r?r.folder=jD(r.folder):i?.files.forEach(e=>{e.file&&=jD(e.file)});let a=JI(n),o=r?dfe(r,a):nL(i,a,i.files);return ZI.set(e,o),o},aL=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?X(`files`):t&&a?a:i||r},oL=e=>e?e===`_singletons`?9999999:A(VK)?.collections?.findIndex(({name:t})=>t===e)??-1:-1})))()}var cL,lL,uL,dL,fL,pL,mL,hL;function gL(){return(gL=s((()=>{aM(),sL(),cL=sn(!1),lL=sn(),uL=sn([]),dL=sn([]),fL=sn([]),pL={source:void 0,fileMap:new Map,regexFolders:[]},mL=()=>{let e=A(uL);if(e===pL.source)return pL;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,iL(e.collectionName)?._file?.fullPathRegEx])}),pL.source=e,pL.fileMap=t,pL.regexFolders=n,pL},hL=e=>{let{fileMap:t,regexFolders:n}=mL();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))}})))()}var ffe=c(((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_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),_L,vL,yL,bL,xL,SL;function CL(){return(CL=s((()=>{_L=/^\d{4}-[01]\d-[0-3]\d$/,vL=/T00:00(?::00)?(?:\.000)?Z$/,yL={year:`numeric`,month:`short`,day:`numeric`},bL={hour:`numeric`,minute:`numeric`,hour12:!0},xL={...yL,...bL},SL=(e,t)=>e.toLocaleString(t??void 0,xL)})))()}var wL,TL,EL,DL,OL;function kL(){return(kL=s((()=>{XF(),wL=/(?[+-]\d{2})(?::?(?\d{2}))?(?::?(?\d{2}))?(?:\.\d+)?$|Z$/,TL=e=>String(Math.abs(Number(e))).padStart(2,`0`),EL=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=YF(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(wL);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${TL(a)}:${TL(o)}`;return(new Intl.DateTimeFormat(`en-US`,{timeZone:n,timeZoneName:`longOffset`}).formatToParts(r).find(e=>e.type===`timeZoneName`)?.value??``).replace(`GMT`,``)===s?n:void 0},DL=(e,t)=>{let n=EL(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=YF(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},OL=(e,t=new Date)=>{try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).formatToParts(t).find(e=>e.type===`timeZoneName`)?.value??``,r=e.split(`/`).pop()?.replaceAll(`_`,` `)??e;return`(${n.replace(`GMT`,``)}) ${r}`}catch{return e}}})))()}var AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL;function KL(){return(KL=s((()=>{OF(),AL=u(UF(),1),jL=u(WF(),1),ML=u(GF(),1),NL=u(ffe(),1),PL=u(KF(),1),zI(),CL(),XF(),kL(),AL.default.extend(jL.default),AL.default.extend(ML.default),AL.default.extend(PL.default),AL.default.extend(NL.default),FL=/^(?\d{4}-[01]\d-[0-3]\d)\b/,IL=/(?:^|T)(?