Files
Obsidian/.obsidian/plugins/obsidian-quiet-outline/main.js
T

1010 lines
603 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("obsidian"),u=require("@codemirror/view");function d(e,t){let n=Object.keys(t).map(n=>f(e,n,t[n]));return n.length===1?n[0]:function(){n.forEach(e=>e())}}function f(e,t,n){let r=e[t],i=e.hasOwnProperty(t),a=i?r:function(){return Object.getPrototypeOf(e)[t].apply(this,arguments)},o=n(a);return r&&Object.setPrototypeOf(o,r),Object.setPrototypeOf(s,o),e[t]=s,c;function s(...n){return o===a&&e[t]===s&&c(),o.apply(this,n)}function c(){e[t]===s&&(i?e[t]=a:delete e[t]),o!==a&&(o=a,Object.setPrototypeOf(s,r||Function))}}function p(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var m={},h=[],g=()=>{},_=()=>!1,v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),y=e=>e.startsWith(`onUpdate:`),b=Object.assign,x=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,C=(e,t)=>S.call(e,t),w=Array.isArray,T=e=>re(e)===`[object Map]`,E=e=>re(e)===`[object Set]`,D=e=>re(e)===`[object Date]`,O=e=>typeof e==`function`,k=e=>typeof e==`string`,ee=e=>typeof e==`symbol`,A=e=>typeof e==`object`&&!!e,te=e=>(A(e)||O(e))&&O(e.then)&&O(e.catch),ne=Object.prototype.toString,re=e=>ne.call(e),ie=e=>re(e).slice(8,-1),ae=e=>re(e)===`[object Object]`,oe=e=>k(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,se=p(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ce=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},le=/-\w/g,ue=ce(e=>e.replace(le,e=>e.slice(1).toUpperCase())),de=/\B([A-Z])/g,fe=ce(e=>e.replace(de,`-$1`).toLowerCase()),pe=ce(e=>e.charAt(0).toUpperCase()+e.slice(1)),me=ce(e=>e?`on${pe(e)}`:``),he=(e,t)=>!Object.is(e,t),ge=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_e=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ve=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ye=e=>{let t=k(e)?Number(e):NaN;return isNaN(t)?e:t},be,xe=()=>be||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function Se(e){if(w(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=k(r)?Ee(r):Se(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(k(e)||A(e))return e}var Ce=/;(?![^(]*\))/g,we=/:([^]+)/,Te=/\/\*[^]*?\*\//g;function Ee(e){let t={};return e.replace(Te,``).split(Ce).forEach(e=>{if(e){let n=e.split(we);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function De(e){let t=``;if(k(e))t=e;else if(w(e))for(let n=0;n<e.length;n++){let r=De(e[n]);r&&(t+=r+` `)}else if(A(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var Oe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ke=p(Oe);Oe+``;function Ae(e){return!!e||e===``}function je(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Me(e[r],t[r]);return n}function Me(e,t){if(e===t)return!0;let n=D(e),r=D(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ee(e),r=ee(t),n||r)return e===t;if(n=w(e),r=w(t),n||r)return n&&r?je(e,t):!1;if(n=A(e),r=A(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Me(e[n],t[n]))return!1}}return String(e)===String(t)}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>k(e)?e:e==null?``:w(e)||A(e)&&(e.toString===ne||!O(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):T(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:ee(t)?Ie(t):A(t)&&!w(t)&&!ae(t)?String(t):t,Ie=(e,t=``)=>ee(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Re,ze=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Re&&(Re.active?(this.parent=Re,this.index=(Re.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=Re;try{return Re=this,e()}finally{Re=t}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){if(this._on>0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let e=Re;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Be(){return Re}var Ve,He=new WeakSet,Ue=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Re&&(Re.active?Re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,He.has(this)&&(He.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ot(this),Xe(this);let e=Ve,t=nt;Ve=this,nt=!0;try{return this.fn()}finally{Ze(this),Ve=e,nt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)et(e);this.deps=this.depsTail=void 0,ot(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?He.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qe(this)&&this.run()}get dirty(){return Qe(this)}},We=0,Ge,Ke;function qe(e,t=!1){if(e.flags|=8,t){e.next=Ke,Ke=e;return}e.next=Ge,Ge=e}function Je(){We++}function Ye(){if(--We>0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===st)||(e.globalVersion=st,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=Ve,r=nt;Ve=e,nt=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||he(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ve=n,nt=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var nt=!0,rt=[];function it(){rt.push(nt),nt=!1}function at(){let e=rt.pop();nt=e===void 0||e}function ot(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ve;Ve=void 0;try{t()}finally{Ve=e}}}var st=0,ct=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},lt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ve||!nt||Ve===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ve)t=this.activeLink=new ct(Ve,this),Ve.deps?(t.prevDep=Ve.depsTail,Ve.depsTail.nextDep=t,Ve.depsTail=t):Ve.deps=Ve.depsTail=t,ut(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ve.depsTail,t.nextDep=void 0,Ve.depsTail.nextDep=t,Ve.depsTail=t,Ve.deps===t&&(Ve.deps=e)}return t}trigger(e){this.version++,st++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ut(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ut(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var dt=new WeakMap,ft=Symbol(``),pt=Symbol(``),mt=Symbol(``);function ht(e,t,n){if(nt&&Ve){let t=dt.get(e);t||dt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new lt),r.map=t,r.key=n),r.track()}}function gt(e,t,n,r,i,a){let o=dt.get(e);if(!o){st++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=w(e),a=i&&oe(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===mt||!ee(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(mt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ft)),T(e)&&s(o.get(pt)));break;case`delete`:i||(s(o.get(ft)),T(e)&&s(o.get(pt)));break;case`set`:T(e)&&s(o.get(ft));break}}Ye()}function _t(e,t){let n=dt.get(e);return n&&n.get(t)}function vt(e){let t=j(e);return t===e?t:(ht(t,`iterate`,mt),rn(e)?t:t.map(sn))}function yt(e){return ht(e=j(e),`iterate`,mt),e}function bt(e,t){return nn(e)?cn(tn(e)?sn(t):t):sn(t)}var xt={__proto__:null,[Symbol.iterator](){return St(this,Symbol.iterator,e=>bt(this,e))},concat(...e){return vt(this).concat(...e.map(e=>w(e)?vt(e):e))},entries(){return St(this,`entries`,e=>(e[1]=bt(this,e[1]),e))},every(e,t){return wt(this,`every`,e,t,void 0,arguments)},filter(e,t){return wt(this,`filter`,e,t,e=>e.map(e=>bt(this,e)),arguments)},find(e,t){return wt(this,`find`,e,t,e=>bt(this,e),arguments)},findIndex(e,t){return wt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return wt(this,`findLast`,e,t,e=>bt(this,e),arguments)},findLastIndex(e,t){return wt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return wt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Et(this,`includes`,e)},indexOf(...e){return Et(this,`indexOf`,e)},join(e){return vt(this).join(e)},lastIndexOf(...e){return Et(this,`lastIndexOf`,e)},map(e,t){return wt(this,`map`,e,t,void 0,arguments)},pop(){return Dt(this,`pop`)},push(...e){return Dt(this,`push`,e)},reduce(e,...t){return Tt(this,`reduce`,e,t)},reduceRight(e,...t){return Tt(this,`reduceRight`,e,t)},shift(){return Dt(this,`shift`)},some(e,t){return wt(this,`some`,e,t,void 0,arguments)},splice(...e){return Dt(this,`splice`,e)},toReversed(){return vt(this).toReversed()},toSorted(e){return vt(this).toSorted(e)},toSpliced(...e){return vt(this).toSpliced(...e)},unshift(...e){return Dt(this,`unshift`,e)},values(){return St(this,`values`,e=>bt(this,e))}};function St(e,t,n){let r=yt(e),i=r[t]();return r!==e&&!rn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Ct=Array.prototype;function wt(e,t,n,r,i,a){let o=yt(e),s=o!==e&&!rn(e),c=o[t];if(c!==Ct[t]){let t=c.apply(e,a);return s?sn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,bt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Tt(e,t,n,r){let i=yt(e),a=i!==e&&!rn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=bt(e,t)),n.call(this,t,bt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?bt(e,c):c}function Et(e,t,n){let r=j(e);ht(r,`iterate`,mt);let i=r[t](...n);return(i===-1||i===!1)&&an(n[0])?(n[0]=j(n[0]),r[t](...n)):i}function Dt(e,t,n=[]){it(),Je();let r=j(e)[t].apply(e,n);return Ye(),at(),r}var Ot=p(`__proto__,__v_isRef,__isVue`),kt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(ee));function At(e){ee(e)||(e=String(e));let t=j(this);return ht(t,`has`,e),t.hasOwnProperty(e)}var jt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Yt:Jt:i?qt:Kt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=w(e);if(!r){let e;if(a&&(e=xt[t]))return e;if(t===`hasOwnProperty`)return At}let o=Reflect.get(e,t,ln(e)?e:n);if((ee(t)?kt.has(t):Ot(t))||(r||ht(e,`get`,t),i))return o;if(ln(o)){let e=a&&oe(t)?o:o.value;return r&&A(e)?$t(e):e}return A(o)?r?$t(o):Zt(o):o}},Mt=class extends jt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=w(e)&&oe(t);if(!this._isShallow){let e=nn(i);if(!rn(n)&&!nn(n)&&(i=j(i),n=j(n)),!a&&ln(i)&&!ln(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:C(e,t),s=Reflect.set(e,t,n,ln(e)?e:r);return e===j(r)&&s&&(o?he(n,i)&&gt(e,`set`,t,n,i):gt(e,`add`,t,n)),s}deleteProperty(e,t){let n=C(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&gt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!ee(t)||!kt.has(t))&&ht(e,`has`,t),n}ownKeys(e){return ht(e,`iterate`,w(e)?`length`:ft),Reflect.ownKeys(e)}},Nt=class extends jt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Pt=new Mt,Ft=new Nt,It=new Mt(!0),Lt=e=>e,Rt=e=>Reflect.getPrototypeOf(e);function zt(e,t,n){return function(...r){let i=this.__v_raw,a=j(i),o=T(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Lt:t?cn:sn;return!t&&ht(a,`iterate`,c?pt:ft),b(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Bt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Vt(e,t){let n={get(n){let r=this.__v_raw,i=j(r),a=j(n);e||(he(n,a)&&ht(i,`get`,n),ht(i,`get`,a));let{has:o}=Rt(i),s=t?Lt:e?cn:sn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ht(j(t),`iterate`,ft),t.size},has(t){let n=this.__v_raw,r=j(n),i=j(t);return e||(he(t,i)&&ht(r,`has`,t),ht(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=j(a),s=t?Lt:e?cn:sn;return!e&&ht(o,`iterate`,ft),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return b(n,e?{add:Bt(`add`),set:Bt(`set`),delete:Bt(`delete`),clear:Bt(`clear`)}:{add(e){let n=j(this),r=Rt(n),i=j(e),a=!t&&!rn(e)&&!nn(e)?i:e;return r.has.call(n,a)||he(e,a)&&r.has.call(n,e)||he(i,a)&&r.has.call(n,i)||(n.add(a),gt(n,`add`,a,a)),this},set(e,n){!t&&!rn(n)&&!nn(n)&&(n=j(n));let r=j(this),{has:i,get:a}=Rt(r),o=i.call(r,e);o||=(e=j(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?he(n,s)&&gt(r,`set`,e,n,s):gt(r,`add`,e,n),this},delete(e){let t=j(this),{has:n,get:r}=Rt(t),i=n.call(t,e);i||=(e=j(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&gt(t,`delete`,e,void 0,a),o},clear(){let e=j(this),t=e.size!==0,n=e.clear();return t&&gt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=zt(r,e,t)}),n}function Ht(e,t){let n=Vt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(C(n,r)&&r in t?n:t,r,i)}var Ut={get:Ht(!1,!1)},Wt={get:Ht(!1,!0)},Gt={get:Ht(!0,!1)},Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Yt=new WeakMap;function Xt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Zt(e){return nn(e)?e:en(e,!1,Pt,Ut,Kt)}function Qt(e){return en(e,!1,It,Wt,qt)}function $t(e){return en(e,!0,Ft,Gt,Jt)}function en(e,t,n,r,i){if(!A(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Xt(ie(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function tn(e){return nn(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function rn(e){return!!(e&&e.__v_isShallow)}function an(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}function on(e){return!C(e,`__v_skip`)&&Object.isExtensible(e)&&_e(e,`__v_skip`,!0),e}var sn=e=>A(e)?Zt(e):e,cn=e=>A(e)?$t(e):e;function ln(e){return e?e.__v_isRef===!0:!1}function M(e){return dn(e,!1)}function un(e){return dn(e,!0)}function dn(e,t){return ln(e)?e:new fn(e,t)}var fn=class{constructor(e,t){this.dep=new lt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:sn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||rn(e)||nn(e);e=n?e:j(e),he(e,t)&&(this._rawValue=e,this._value=n?e:sn(e),this.dep.trigger())}};function N(e){return ln(e)?e.value:e}var pn={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return ln(i)&&!ln(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function mn(e){return tn(e)?e:new Proxy(e,pn)}var hn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=ee(t)?t:String(t),this._raw=j(e);let r=!0,i=e;if(!w(e)||ee(this._key)||!oe(this._key))do r=!an(i)||rn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=N(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ln(this._raw[this._key])){let t=this._object[this._key];if(ln(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return _t(this._raw,this._key)}},gn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function P(e,t,n){return ln(e)?e:O(e)?new gn(e):A(e)&&arguments.length>1?_n(e,t,n):M(e)}function _n(e,t,n){return new hn(e,t,n)}var vn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new lt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=st-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function yn(e,t,n=!1){let r,i;return O(e)?r=e:(r=e.get,i=e.set),new vn(r,i,n)}var bn={},xn=new WeakMap,Sn=void 0;function Cn(e,t=!1,n=Sn){if(n){let t=xn.get(n);t||xn.set(n,t=[]),t.push(e)}}function wn(e,t,n=m){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:rn(e)||i===!1||i===0?Tn(e,1):Tn(e),u,d,f,p,h=!1,_=!1;if(ln(e)?(d=()=>e.value,h=rn(e)):tn(e)?(d=()=>l(e),h=!0):w(e)?(_=!0,h=e.some(e=>tn(e)||rn(e)),d=()=>e.map(e=>{if(ln(e))return e.value;if(tn(e))return l(e);if(O(e))return c?c(e,2):e()})):d=O(e)?t?c?()=>c(e,2):e:()=>{if(f){it();try{f()}finally{at()}}let t=Sn;Sn=u;try{return c?c(e,3,[p]):e(p)}finally{Sn=t}}:g,t&&i){let e=d,t=i===!0?1/0:i;d=()=>Tn(e(),t)}let v=Be(),y=()=>{u.stop(),v&&v.active&&x(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return y(),n}}let b=_?Array(e.length).fill(bn):bn,S=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let n=u.run();if(e||i||h||(_?n.some((e,t)=>he(e,b[t])):he(n,b))){f&&f();let e=Sn;Sn=u;try{let e=[n,b===bn?void 0:_&&b[0]===bn?[]:b,p];b=n,c?c(t,3,e):t(...e)}finally{Sn=e}}}else u.run()};return s&&s(S),u=new Ue(d),u.scheduler=o?()=>o(S,!1):S,p=e=>Cn(e,!1,u),f=u.onStop=()=>{let e=xn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();xn.delete(u)}},t?r?S(!0):b=u.run():o?o(S.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Tn(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ln(e))Tn(e.value,t,n);else if(w(e))for(let r=0;r<e.length;r++)Tn(e[r],t,n);else if(E(e)||T(e))e.forEach(e=>{Tn(e,t,n)});else if(ae(e)){for(let r in e)Tn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tn(e[r],t,n)}return e}function En(e,t,n,r){try{return r?e(...r):e()}catch(e){On(e,t,n)}}function Dn(e,t,n,r){if(O(e)){let i=En(e,t,n,r);return i&&te(i)&&i.catch(e=>{On(e,t,n)}),i}if(w(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Dn(e[a],t,n,r));return i}}function On(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||m;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){it(),En(a,null,10,[e,i,o]),at();return}}kn(e,n,i,r,o)}function kn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var An=[],jn=-1,Mn=[],Nn=null,Pn=0,Fn=Promise.resolve(),In=null;function Ln(e){let t=In||Fn;return e?t.then(this?e.bind(this):e):t}function Rn(e){let t=jn+1,n=An.length;for(;t<n;){let r=t+n>>>1,i=An[r],a=Wn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function zn(e){if(!(e.flags&1)){let t=Wn(e),n=An[An.length-1];!n||!(e.flags&2)&&t>=Wn(n)?An.push(e):An.splice(Rn(t),0,e),e.flags|=1,Bn()}}function Bn(){In||=Fn.then(Gn)}function Vn(e){w(e)?Mn.push(...e):Nn&&e.id===-1?Nn.splice(Pn+1,0,e):e.flags&1||(Mn.push(e),e.flags|=1),Bn()}function Hn(e,t,n=jn+1){for(;n<An.length;n++){let t=An[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;An.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Un(e){if(Mn.length){let e=[...new Set(Mn)].sort((e,t)=>Wn(e)-Wn(t));if(Mn.length=0,Nn){Nn.push(...e);return}for(Nn=e,Pn=0;Pn<Nn.length;Pn++){let e=Nn[Pn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Nn=null,Pn=0}}var Wn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gn(e){try{for(jn=0;jn<An.length;jn++){let e=An[jn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),En(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;jn<An.length;jn++){let e=An[jn];e&&(e.flags&=-2)}jn=-1,An.length=0,Un(e),In=null,(An.length||Mn.length)&&Gn(e)}}var Kn=null,qn=null;function Jn(e){let t=Kn;return Kn=e,qn=e&&e.type.__scopeId||null,t}function Yn(e,t=Kn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ka(-1);let i=Jn(t),a;try{a=e(...n)}finally{Jn(i),r._d&&ka(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Xn(e,t){if(Kn===null)return e;let n=ho(Kn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=m]=t[e];i&&(O(i)&&(i={mounted:i,updated:i}),i.deep&&Tn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Zn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(it(),Dn(c,n,8,[e.el,s,e,t]),at())}}function Qn(e,t){if(Qa){let n=Qa.provides,r=Qa.parent&&Qa.parent.provides;r===n&&(n=Qa.provides=Object.create(r)),n[e]=t}}function F(e,t,n=!1){let r=$a();if(r||Ai){let i=Ai?Ai._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&O(t)?t.call(r&&r.proxy):t}}var $n=Symbol.for(`v-scx`),er=()=>F($n);function tr(e,t){return rr(e,null,t)}function nr(e,t,n){return rr(e,t,n)}function rr(e,t,n=m){let{immediate:r,deep:i,flush:a,once:o}=n,s=b({},n),c=t&&r||!t&&a!==`post`,l;if(ao){if(a===`sync`){let e=er();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=g,e.resume=g,e.pause=g,e}}let u=Qa;s.call=(e,t,n)=>Dn(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{sa(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():zn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=wn(e,t,s);return ao&&(l?l.push(f):c&&f()),f}function ir(e,t,n){let r=this.proxy,i=k(e)?e.includes(`.`)?ar(r,e):()=>r[e]:e.bind(r,r),a;O(t)?a=t:(a=t.handler,n=t);let o=no(this),s=rr(i,a.bind(r),n);return o(),s}function ar(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var or=new WeakMap,sr=Symbol(`_vte`),cr=e=>e.__isTeleport,lr=e=>e&&(e.disabled||e.disabled===``),ur=e=>e&&(e.defer||e.defer===``),dr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,fr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,pr=(e,t)=>{let n=e&&e.to;return k(n)?t?t(n):null:n},mr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=lr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=lr(e.props),r=e.target=pr(e.props,m),a=yr(r,e,h,p);r&&(o!==`svg`&&dr(r)?o=`svg`:o!==`mathml`&&fr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),vr(e,!1)))},S=e=>{let t=()=>{if(or.get(e)===t){if(or.delete(e),lr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),vr(e,!0)}x(e)}};or.set(e,t),sa(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),ur(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),vr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=or.get(e);if(u){u.flags|=8,or.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=lr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||dr(p)?o=`svg`:(o===`mathml`||fr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),pa(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=pr(t.props,m);e&&(t.target=e,hr(t,e,null,l,0))}else g&&hr(t,p,h,l,1);vr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=lr(f),m=a||!p,h=or.get(e);if(h&&(h.flags|=8,or.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:hr,hydrate:gr};function hr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!or.has(e)&&(!d||lr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function gr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=pr(t.props,c),h=lr(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||yr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||yr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),vr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var _r=mr;function vr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function yr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[sr]=o,e&&(r(a,e,i),r(o,e,i)),o}var br=Symbol(`_leaveCb`),xr=Symbol(`_enterCb`);function Sr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yr(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}var Cr=[Function,Array],wr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cr,onEnter:Cr,onAfterEnter:Cr,onEnterCancelled:Cr,onBeforeLeave:Cr,onLeave:Cr,onAfterLeave:Cr,onLeaveCancelled:Cr,onBeforeAppear:Cr,onAppear:Cr,onAfterAppear:Cr,onAppearCancelled:Cr},Tr=e=>{let t=e.subTree;return t.component?Tr(t.component):t},Er={name:`BaseTransition`,props:wr,setup(e,{slots:t}){let n=$a(),r=Sr();return()=>{let i=t.default&&Pr(t.default(),!0),a=i&&i.length?Dr(i):n.subTree?Ua():void 0;if(!a)return;let o=j(e),{mode:s}=o;if(r.isLeaving)return jr(a);let c=Mr(a);if(!c)return jr(a);let l=Ar(c,o,r,n,e=>l=e);c.type!==Sa&&Nr(c,l);let u=n.subTree&&Mr(n.subTree);if(u&&u.type!==Sa&&!Pa(u,c)&&Tr(n).type!==Sa){let e=Ar(u,o,r,n);if(Nr(u,e),s===`out-in`&&c.type!==Sa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},jr(a);s===`in-out`&&c.type!==Sa?e.delayLeave=(e,t,n)=>{let i=kr(r,u);i[String(u.key)]=u,e[br]=()=>{t(),e[br]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Dr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Sa){t=n;break}}return t}var Or=Er;function kr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ar(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=kr(n,e),S=(e,t)=>{e&&Dn(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),w(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[br]&&t[br](!0);let i=x[b];i&&Pa(e,i)&&i.el[br]&&i.el[br](),S(r,[t])},enter(t){if(x[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=_||l,i=v||u,o=y||d;else return;let s=!1;t[xr]=e=>{s||(s=!0,S(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[xr]=void 0)};let c=t[xr].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[xr]&&t[xr](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[br]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[br]=void 0,x[i]===e&&delete x[i])};let o=t[br].bind(null,!1);x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=Ar(e,t,n,r,i);return i&&i(a),a}};return T}function jr(e){if(Vr(e))return e=Va(e),e.children=null,e}function Mr(e){if(!Vr(e))return cr(e.type)&&e.children?Dr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&O(n.default))return n.default()}}function Nr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===ba?(o.patchFlag&128&&i++,r=r.concat(Pr(o.children,t,s))):(t||o.type!==Sa)&&r.push(s==null?o:Va(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function I(e,t){return O(e)?b({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Ir(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Lr=new WeakMap;function Rr(e,t,n,r,i=!1){if(w(e)){e.forEach((e,a)=>Rr(e,t&&(w(t)?t[a]:t),n,r,i));return}if(Br(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Rr(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ho(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===m?s.refs={}:s.refs,d=s.setupState,f=j(d),p=d===m?_:e=>!Ir(u,e)&&C(f,e),h=(e,t)=>!(t&&Ir(u,t));if(l!=null&&l!==c){if(zr(t),k(l))u[l]=null,p(l)&&(d[l]=null);else if(ln(l)){let e=t;h(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(O(c)){it();try{En(c,s,12,[o,u])}finally{at()}}else{let t=k(c),r=ln(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:h(c)||!e.k?c.value:u[e.k];if(i)w(n)&&x(n,a);else if(w(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];h(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(h(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Lr.delete(e)};t.id=-1,Lr.set(e,t),sa(t,n)}else zr(e),s()}}}function zr(e){let t=Lr.get(e);t&&(t.flags|=8,Lr.delete(e))}xe().requestIdleCallback,xe().cancelIdleCallback;var Br=e=>!!e.type.__asyncLoader,Vr=e=>e.type.__isKeepAlive;function Hr(e,t){Wr(e,`a`,t)}function Ur(e,t){Wr(e,`da`,t)}function Wr(e,t,n=Qa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Kr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Vr(e.parent.vnode)&&Gr(r,t,n,e),e=e.parent}}function Gr(e,t,n,r){let i=Kr(t,e,r,!0);$r(()=>{x(r[t],i)},n)}function Kr(e,t,n=Qa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{it();let i=no(n),a=Dn(t,n,e,r);return i(),at(),a};return r?i.unshift(a):i.push(a),a}}var qr=e=>(t,n=Qa)=>{(!ao||e===`sp`)&&Kr(e,(...e)=>t(...e),n)},Jr=qr(`bm`),Yr=qr(`m`),Xr=qr(`bu`),Zr=qr(`u`),Qr=qr(`bum`),$r=qr(`um`),ei=qr(`sp`),ti=qr(`rtg`),ni=qr(`rtc`);function ri(e,t=Qa){Kr(`ec`,e,t)}var ii=Symbol.for(`v-ndc`);function ai(e,t,n={},r,i){if(Kn.ce||Kn.parent&&Br(Kn.parent)&&Kn.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Ea(),Ma(ba,null,[Ra(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ea();let o=a&&oi(a(n)),s=n.key||o&&o.key,c=Ma(ba,{key:(s&&!ee(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function oi(e){return e.some(e=>!Na(e)||!(e.type===Sa||e.type===ba&&!oi(e.children)))?e:null}var si=e=>e?io(e)?ho(e):si(e.parent):null,ci=b(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>si(e.parent),$root:e=>si(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_i(e),$forceUpdate:e=>e.f||=()=>{zn(e.update)},$nextTick:e=>e.n||=Ln.bind(e.proxy),$watch:e=>ir.bind(e)}),li=(e,t)=>e!==m&&!e.__isScriptSetup&&C(e,t),ui={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(li(r,t))return o[t]=1,r[t];else if(i!==m&&C(i,t))return o[t]=2,i[t];else if(C(a,t))return o[t]=3,a[t];else if(n!==m&&C(n,t))return o[t]=4,n[t];else fi&&(o[t]=0)}let l=ci[t],u,d;if(l)return t===`$attrs`&&ht(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==m&&C(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,C(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return li(i,t)?(i[t]=n,!0):r!==m&&C(r,t)?(r[t]=n,!0):C(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==m&&s[0]!==`$`&&C(e,s)||li(t,s)||C(a,s)||C(r,s)||C(ci,s)||C(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?C(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function di(e){return w(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var fi=!0;function pi(e){let t=_i(e),n=e.proxy,r=e.ctx;fi=!1,t.beforeCreate&&hi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:C,renderTriggered:T,errorCaptured:E,serverPrefetch:D,expose:k,inheritAttrs:ee,components:te,directives:ne,filters:re}=t;if(l&&mi(l,r,null),o)for(let e in o){let t=o[e];O(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);A(t)&&(e.data=Zt(t))}if(fi=!0,a)for(let e in a){let t=a[e],i=L({get:O(t)?t.bind(n,n):O(t.get)?t.get.bind(n,n):g,set:!O(t)&&O(t.set)?t.set.bind(n):g});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)gi(s[e],r,n,e);if(c){let e=O(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Qn(t,e[t])})}u&&hi(u,e,`c`);function ie(e,t){w(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ie(Jr,d),ie(Yr,f),ie(Xr,p),ie(Zr,m),ie(Hr,h),ie(Ur,_),ie(ri,E),ie(ni,C),ie(ti,T),ie(Qr,y),ie($r,x),ie(ei,D),w(k))if(k.length){let t=e.exposed||={};k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===g&&(e.render=S),ee!=null&&(e.inheritAttrs=ee),te&&(e.components=te),ne&&(e.directives=ne),D&&Fr(e)}function mi(e,t,n=g){w(e)&&(e=Si(e));for(let n in e){let r=e[n],i;i=A(r)?`default`in r?F(r.from||n,r.default,!0):F(r.from||n):F(r),ln(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function hi(e,t,n){Dn(w(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function gi(e,t,n,r){let i=r.includes(`.`)?ar(n,r):()=>n[r];if(k(e)){let n=t[e];O(n)&&nr(i,n)}else if(O(e))nr(i,e.bind(n));else if(A(e))if(w(e))e.forEach(e=>gi(e,t,n,r));else{let r=O(e.handler)?e.handler.bind(n):t[e.handler];O(r)&&nr(i,r,e)}}function _i(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>vi(c,e,o,!0)),vi(c,t,o)),A(t)&&a.set(t,c),c}function vi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&vi(e,a,n,!0),i&&i.forEach(t=>vi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=yi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var yi={data:bi,props:Ti,emits:Ti,methods:wi,computed:wi,beforeCreate:Ci,created:Ci,beforeMount:Ci,mounted:Ci,beforeUpdate:Ci,updated:Ci,beforeDestroy:Ci,beforeUnmount:Ci,destroyed:Ci,unmounted:Ci,activated:Ci,deactivated:Ci,errorCaptured:Ci,serverPrefetch:Ci,components:wi,directives:wi,watch:Ei,provide:bi,inject:xi};function bi(e,t){return t?e?function(){return b(O(e)?e.call(this,this):e,O(t)?t.call(this,this):t)}:t:e}function xi(e,t){return wi(Si(e),Si(t))}function Si(e){if(w(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ci(e,t){return e?[...new Set([].concat(e,t))]:t}function wi(e,t){return e?b(Object.create(null),e,t):t}function Ti(e,t){return e?w(e)&&w(t)?[...new Set([...e,...t])]:b(Object.create(null),di(e),di(t??{})):t}function Ei(e,t){if(!e)return t;if(!t)return e;let n=b(Object.create(null),e);for(let r in t)n[r]=Ci(e[r],t[r]);return n}function Di(){return{app:null,config:{isNativeTag:_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Oi=0;function ki(e,t){return function(n,r=null){O(n)||(n=b({},n)),r!=null&&!A(r)&&(r=null);let i=Di(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Oi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_o,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&O(e.install)?(a.add(e),e.install(c,...t)):O(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||Ra(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,ho(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Dn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Ai;Ai=c;try{return e()}finally{Ai=t}}};return c}}var Ai=null,ji=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${ue(t)}Modifiers`]||e[`${fe(t)}Modifiers`];function Mi(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||m,i=n,a=t.startsWith(`update:`),o=a&&ji(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>k(e)?e.trim():e)),o.number&&(i=n.map(ve)));let s,c=r[s=me(t)]||r[s=me(ue(t))];!c&&a&&(c=r[s=me(fe(t))]),c&&Dn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Dn(l,e,6,i)}}var Ni=new WeakMap;function Pi(e,t,n=!1){let r=n?Ni:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!O(e)){let r=e=>{let n=Pi(e,t,!0);n&&(s=!0,b(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(A(e)&&r.set(e,null),null):(w(a)?a.forEach(e=>o[e]=null):b(o,a),A(e)&&r.set(e,o),o)}function Fi(e,t){return!e||!v(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),C(e,t[0].toLowerCase()+t.slice(1))||C(e,fe(t))||C(e,t))}function Ii(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Jn(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Wa(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Wa(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Li(s)}}catch(t){wa.length=0,On(t,e,1),_=Ra(Sa)}let b=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(y)&&(v=Ri(v,a)),b=Va(b,v,!1,!0))}return n.dirs&&(b=Va(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Nr(b,n.transition),_=b,Jn(g),_}var Li=e=>{let t;for(let n in e)(n===`class`||n===`style`||v(n))&&((t||={})[n]=e[n]);return t},Ri=(e,t)=>{let n={};for(let r in e)(!y(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Bi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Vi(o,r,n)&&!Fi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Bi(r,o,l):!!o;return!1}function Bi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Vi(t,e,a)&&!Fi(n,a))return!0}return!1}function Vi(e,t,n){let r=e[n],i=t[n];return n===`style`&&A(r)&&A(i)?!Me(r,i):r!==i}function Hi({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Ui={},Wi=()=>Object.create(Ui),Gi=e=>Object.getPrototypeOf(e)===Ui;function Ki(e,t,n,r=!1){let i={},a=Wi();e.propsDefaults=Object.create(null),Ji(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Qt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function qi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=j(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Fi(e.emitsOptions,o))continue;let u=t[o];if(c)if(C(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=ue(o);i[t]=Yi(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ji(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!C(t,a)&&((r=fe(a))===a||!C(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Yi(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!C(t,e))&&(delete a[e],l=!0)}l&&gt(e.attrs,`set`,``)}function Ji(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(se(c))continue;let l=t[c],u;i&&C(i,u=ue(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Fi(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=j(n),r=s||m;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Yi(i,t,s,r[s],e,!C(r,s))}}return o}function Yi(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=C(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&O(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=no(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===fe(n))&&(r=!0))}return r}var Xi=new WeakMap;function Zi(e,t,n=!1){let r=n?Xi:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!O(e)){let r=e=>{c=!0;let[n,r]=Zi(e,t,!0);b(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return A(e)&&r.set(e,h),h;if(w(a))for(let e=0;e<a.length;e++){let t=ue(a[e]);Qi(t)&&(o[t]=m)}else if(a)for(let e in a){let t=ue(e);if(Qi(t)){let n=a[e],r=o[t]=w(n)||O(n)?{type:n}:b({},n),i=r.type,c=!1,l=!0;if(w(i))for(let e=0;e<i.length;++e){let t=i[e],n=O(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=O(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||C(r,`default`))&&s.push(t)}}let l=[o,s];return A(e)&&r.set(e,l),l}function Qi(e){return e[0]!==`$`&&!se(e)}var $i=e=>e===`_`||e===`_ctx`||e===`$stable`,ea=e=>w(e)?e.map(Wa):[Wa(e)],ta=(e,t,n)=>{if(t._n)return t;let r=Yn((...e)=>ea(t(...e)),n);return r._c=!1,r},na=(e,t,n)=>{let r=e._ctx;for(let n in e){if($i(n))continue;let i=e[n];if(O(i))t[n]=ta(n,i,r);else if(i!=null){let e=ea(i);t[n]=()=>e}}},ra=(e,t)=>{let n=ea(t);e.slots.default=()=>n},ia=(e,t,n)=>{for(let r in t)(n||!$i(r))&&(e[r]=t[r])},aa=(e,t,n)=>{let r=e.slots=Wi();if(e.vnode.shapeFlag&32){let e=t._;e?(ia(r,t,n),n&&_e(r,`_`,e,!0)):na(t,r)}else t&&ra(e,t)},oa=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=m;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:ia(i,t,n):(a=!t.$stable,na(t,i)),o=t}else t&&(ra(e,t),o={default:1});if(a)for(let e in i)!$i(e)&&o[e]==null&&delete i[e]},sa=ya;function ca(e){return la(e)}function la(e,t){let n=xe();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=g,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Pa(e,t)&&(r=_e(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case xa:y(e,t,n,r);break;case Sa:b(e,t,n,r);break;case Ca:e??x(t,n,r,o);break;case ba:A(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?te(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?Rr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Rr(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,ua(e,c),l,d),_&&Zn(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!se(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ja(p,i,e)}_&&Zn(e,null,i,`beforeMount`);let v=fa(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&sa(()=>{try{p&&Ja(p,i,e),v&&g.enter(f),_&&Zn(e,null,i,`mounted`)}finally{}},s)},E=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||va(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Ga(e[l]):Wa(e[l]);v(null,c,t,n,r,i,a,o,s)}},O=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||m,h=t.props||m,g;if(n&&da(n,!1),(g=h.onVnodeBeforeUpdate)&&Ja(g,n,t,e),f&&Zn(t,e,n,`beforeUpdate`),n&&da(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(l=0,s=!1,d=null),(p.innerHTML&&h.innerHTML==null||p.textContent&&h.textContent==null)&&u(c,``),d?k(e.dynamicChildren,d,c,n,r,ua(t,i),o):s||oe(e,t,c,null,n,r,ua(t,i),o,!1),l>0){if(l&16)ee(c,p,h,n,i);else if(l&2&&p.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,p.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&d==null&&ee(c,p,h,n,i);((g=h.onVnodeUpdated)||f)&&sa(()=>{g&&Ja(g,n,t,e),f&&Zn(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===ba||!Pa(c,l)||c.shapeFlag&198)?d(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ee=(e,t,n,r,i)=>{if(t!==n){if(t!==m)for(let o in t)!se(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(se(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},A=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&pa(e,t,!0)):oe(e,t,n,f,a,o,c,l,u)},te=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ne(t,n,r,i,a,o,c):re(e,t,c)},ne=(e,t,n,r,i,a,o)=>{let s=e.component=Za(e,r,i);if(Vr(e)&&(s.ctx.renderer=be),oo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=Ra(Sa);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},re=(e,t,n)=>{let r=t.component=e.component;if(zi(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ha(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{sa(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;da(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ge(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Ja(f,s,t,c),da(e,!0);let p=Ii(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),_e(m),e,i,a),t.el=p.el,u===null&&Hi(e,p.el),r&&sa(r,i),(f=t.props&&t.props.onVnodeUpdated)&&sa(()=>Ja(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Br(t);if(da(e,!1),l&&ge(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ja(o,d,t),da(e,!0),s&&Ce){let t=()=>{e.subTree=Ii(e),Ce(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&sa(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;sa(()=>Ja(o,d,e),i)}(t.shapeFlag&256||d&&Br(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&sa(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>zn(u),da(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,qi(e,t.props,r,n),oa(e,t.children,n),it(),Hn(e),at()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){le(l,f,n,r,i,a,o,s,c);return}else if(p&256){ce(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&he(l,i,a),f!==l&&u(n,f)):d&16?m&16?le(l,f,n,r,i,a,o,s,c):he(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},ce=(e,t,n,r,i,a,o,s,c)=>{e||=h,t||=h;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?Ga(t[f]):Wa(t[f]);v(e[f],r,n,null,i,a,o,s,c)}l>u?he(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},le=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?Ga(t[l]):Wa(t[l]);if(Pa(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?Ga(t[f]):Wa(t[f]);if(Pa(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)v(null,t[l]=c?Ga(t[l]):Wa(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)de(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?Ga(t[l]):Wa(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=f-m+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=p;l<=d;l++){let r=e[l];if(y>=b){de(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(C[_-m]===0&&Pa(r,t[_])){u=_;break}u===void 0?de(r,i,a,!0):(C[u-m]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?ma(C):h;for(_=w.length-1,l=b-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||_a(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?ue(d,n,p,2):_--)}}},ue=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,be);return}if(c===ba){r(s,t,n);for(let e=0;e<u.length;e++)ue(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Ca){S(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.persisted&&!s[br]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),sa(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[br];s._isLeaving&&s[br](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(it(),Rr(s,null,n,e,!0),at()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Br(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ja(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Zn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==ba||d>0&&d&64)?he(l,t,n,!1,!0):(a===ba&&d&384||!i&&u&16)&&he(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&sa(()=>{_&&Ja(_,t,e),h&&Zn(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===ba){pe(n,r);return}if(t===Ca){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},pe=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ga(c),ga(l),r&&ge(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&sa(s,t),sa(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)de(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[sr];return n?f(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Hn(r),Un(),!1)},be={p:v,um:de,m:ue,r:fe,mt:ne,mc:D,pc:oe,pbc:k,n:_e,o:e},Se,Ce;return t&&([Se,Ce]=t(be)),{render:ye,hydrate:Se,createApp:ki(ye,Se)}}function ua({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function da({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pa(e,t,n=!1){let r=e.children,i=t.children;if(w(r)&&w(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ga(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&pa(t,a)),a.type===xa&&(a.patchFlag===-1&&(a=i[e]=Ga(a)),a.el=t.el),a.type===Sa&&!a.el&&(a.el=t.el)}}function ma(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ha(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ha(t)}function ga(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function _a(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?_a(t.subTree):null}var va=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?w(e)?t.effects.push(...e):t.effects.push(e):Vn(e)}var ba=Symbol.for(`v-fgt`),xa=Symbol.for(`v-txt`),Sa=Symbol.for(`v-cmt`),Ca=Symbol.for(`v-stc`),wa=[],Ta=null;function Ea(e=!1){wa.push(Ta=e?null:[])}function Da(){wa.pop(),Ta=wa[wa.length-1]||null}var Oa=1;function ka(e,t=!1){Oa+=e,e<0&&Ta&&t&&(Ta.hasOnce=!0)}function Aa(e){return e.dynamicChildren=Oa>0?Ta||h:null,Da(),Oa>0&&Ta&&Ta.push(e),e}function ja(e,t,n,r,i,a){return Aa(La(e,t,n,r,i,a,!0))}function Ma(e,t,n,r,i){return Aa(Ra(e,t,n,r,i,!0))}function Na(e){return e?e.__v_isVNode===!0:!1}function Pa(e,t){return e.type===t.type&&e.key===t.key}var Fa=({key:e})=>e??null,Ia=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:k(e)||ln(e)||O(e)?{i:Kn,r:e,k:t,f:!!n}:e);function La(e,t=null,n=null,r=0,i=null,a=e===ba?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fa(t),ref:t&&Ia(t),scopeId:qn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Kn};return s?(Ka(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=k(n)?8:16),Oa>0&&!o&&Ta&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ta.push(c),c}var Ra=za;function za(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ii)&&(e=Sa),Na(e)){let r=Va(e,t,!0);return n&&Ka(r,n),Oa>0&&!a&&Ta&&(r.shapeFlag&6?Ta[Ta.indexOf(e)]=r:Ta.push(r)),r.patchFlag=-2,r}if(go(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:e,style:n}=t;e&&!k(e)&&(t.class=De(e)),A(n)&&(an(n)&&!w(n)&&(n=b({},n)),t.style=Se(n))}let o=k(e)?1:va(e)?128:cr(e)?64:A(e)?4:O(e)?2:0;return La(e,t,n,r,i,o,a,!0)}function Ba(e){return e?an(e)||Gi(e)?b({},e):e:null}function Va(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?qa(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fa(l),ref:t&&t.ref?n&&a?w(a)?a.concat(Ia(t)):[a,Ia(t)]:Ia(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ba?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Va(e.ssContent),ssFallback:e.ssFallback&&Va(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Nr(u,c.clone(u)),u}function Ha(e=` `,t=0){return Ra(xa,null,e,t)}function Ua(e=``,t=!1){return t?(Ea(),Ma(Sa,null,e)):Ra(Sa,null,e)}function Wa(e){return e==null||typeof e==`boolean`?Ra(Sa):w(e)?Ra(ba,null,e.slice()):Na(e)?Ga(e):Ra(xa,null,String(e))}function Ga(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Va(e)}function Ka(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(w(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ka(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Gi(t)?t._ctx=Kn:r===3&&Kn&&(Kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(O(t)){if(r&65){Ka(e,{default:t});return}t={default:t,_ctx:Kn},n=32}else t=String(t),r&64?(n=16,t=[Ha(t)]):n=8;e.children=t,e.shapeFlag|=n}function qa(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=De([t.class,r.class]));else if(e===`style`)t.style=Se([t.style,r.style]);else if(v(e)){let n=t[e],i=r[e];i&&n!==i&&!(w(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!y(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Ja(e,t,n,r=null){Dn(e,t,7,[n,r])}var Ya=Di(),Xa=0;function Za(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Ya,a={uid:Xa++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ze(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zi(r,i),emitsOptions:Pi(r,i),emit:null,emitted:null,propsDefaults:m,inheritAttrs:r.inheritAttrs,ctx:m,data:m,props:m,attrs:m,slots:m,refs:m,setupState:m,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Mi.bind(null,a),e.ce&&e.ce(a),a}var Qa=null,$a=()=>Qa||Kn,eo,to;{let e=xe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};eo=t(`__VUE_INSTANCE_SETTERS__`,e=>Qa=e),to=t(`__VUE_SSR_SETTERS__`,e=>ao=e)}var no=e=>{let t=Qa;return eo(e),e.scope.on(),()=>{e.scope.off(),eo(t)}},ro=()=>{Qa&&Qa.scope.off(),eo(null)};function io(e){return e.vnode.shapeFlag&4}var ao=!1;function oo(e,t=!1,n=!1){t&&to(t);let{props:r,children:i}=e.vnode,a=io(e);Ki(e,r,a,t),aa(e,i,n||t);let o=a?so(e,t):void 0;return t&&to(!1),o}function so(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ui);let{setup:r}=n;if(r){it();let n=e.setupContext=r.length>1?mo(e):null,i=no(e),a=En(r,e,0,[e.props,n]),o=te(a);if(at(),i(),(o||e.sp)&&!Br(e)&&Fr(e),o){if(a.then(ro,ro),t)return a.then(n=>{co(e,n,t)}).catch(t=>{On(t,e,0)});e.asyncDep=a}else co(e,a,t)}else fo(e,t)}function co(e,t,n){O(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.setupState=mn(t)),fo(e,n)}var lo,uo;function fo(e,t,n){let r=e.type;if(!e.render){if(!t&&lo&&!r.render){let t=r.template||_i(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=lo(t,b(b({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||g,uo&&uo(e)}{let t=no(e);it();try{pi(e)}finally{at(),t()}}}var po={get(e,t){return ht(e,`get`,``),e[t]}};function mo(e){return{attrs:new Proxy(e.attrs,po),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ho(e){return e.exposed?e.exposeProxy||=new Proxy(mn(on(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ci)return ci[n](e)},has(e,t){return t in e||t in ci}}):e.proxy}function go(e){return O(e)&&`__vccOpts`in e}var L=(e,t)=>yn(e,t,ao);function R(e,t,n){try{ka(-1);let r=arguments.length;return r===2?A(t)&&!w(t)?Na(t)?Ra(e,null,[t]):Ra(e,t):Ra(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Na(n)&&(n=[n]),Ra(e,t,n))}finally{ka(1)}}var _o=`3.5.39`,vo=void 0,yo=typeof window<`u`&&window.trustedTypes;if(yo)try{vo=yo.createPolicy(`vue`,{createHTML:e=>e})}catch{}var bo=vo?e=>vo.createHTML(e):e=>e,xo=`http://www.w3.org/2000/svg`,So=`http://www.w3.org/1998/Math/MathML`,Co=typeof document<`u`?document:null,wo=Co&&Co.createElement(`template`),To={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Co.createElementNS(xo,e):t===`mathml`?Co.createElementNS(So,e):n?Co.createElement(e,{is:n}):Co.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{wo.innerHTML=bo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=wo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Eo=`transition`,Do=`animation`,Oo=Symbol(`_vtc`),ko={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ao=b({},wr,ko),jo=(e=>(e.displayName=`Transition`,e.props=Ao,e))((e,{slots:t})=>R(Or,Po(e),t)),Mo=(e,t=[])=>{w(e)?e.forEach(e=>e(...t)):e&&e(...t)},No=e=>e?w(e)?e.some(e=>e.length>1):e.length>1:!1;function Po(e){let t={};for(let n in e)n in ko||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Fo(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:T=y}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Ro(e,t?u:s),Ro(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Ro(e,d),Ro(e,p),Ro(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:v,o=()=>E(t,e,n);Mo(i,[t,o]),zo(()=>{Ro(t,e?c:a),Lo(t,e?u:s),No(i)||Vo(t,r,h,o)})};return b(t,{onBeforeEnter(e){Mo(_,[e]),Lo(e,a),Lo(e,o)},onBeforeAppear(e){Mo(C,[e]),Lo(e,c),Lo(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Lo(e,d),e._enterCancelled?(Lo(e,f),Go(e)):(Go(e),Lo(e,f)),zo(()=>{e._isLeaving&&(Ro(e,d),Lo(e,p),No(x)||Vo(e,r,g,n))}),Mo(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Mo(y,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Mo(T,[e])},onLeaveCancelled(e){D(e),Mo(S,[e])}})}function Fo(e){if(e==null)return null;if(A(e))return[Io(e.enter),Io(e.leave)];{let t=Io(e);return[t,t]}}function Io(e){return ye(e)}function Lo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Oo]||(e[Oo]=new Set)).add(t)}function Ro(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Oo];n&&(n.delete(t),n.size||(e[Oo]=void 0))}function zo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Bo=0;function Vo(e,t,n,r){let i=e._endId=++Bo,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ho(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ho(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Eo}Delay`),a=r(`${Eo}Duration`),o=Uo(i,a),s=r(`${Do}Delay`),c=r(`${Do}Duration`),l=Uo(s,c),u=null,d=0,f=0;t===Eo?o>0&&(u=Eo,d=o,f=a.length):t===Do?l>0&&(u=Do,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Eo:Do:null,f=u?u===Eo?a.length:c.length:0);let p=u===Eo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Eo}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Uo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Wo(t)+Wo(e[n])))}function Wo(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Go(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ko(e,t,n){let r=e[Oo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var qo=Symbol(`_vod`),Jo=Symbol(`_vsh`),Yo=Symbol(``);function Xo(e){let t=$a();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Qo(e,n))},r=()=>{let r=e(t.proxy);t.ce?Qo(t.ce,r):Zo(t.subTree,r),n(r)};Xr(()=>{Vn(r)}),Yr(()=>{nr(r,g,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),$r(()=>e.disconnect())})}function Zo(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Zo(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Qo(e.el,t);else if(e.type===ba)e.children.forEach(e=>Zo(e,t));else if(e.type===Ca){let{el:n,anchor:r}=e;for(;n&&(Qo(n,t),n!==r);)n=n.nextSibling}}function Qo(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Yo]=r}}var $o=/(?:^|;)\s*display\s*:/;function es(e,t,n){let r=e.style,i=k(n),a=!1;if(n&&!i){if(t)if(k(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ns(r,t,``)}else for(let e in t)n[e]??ns(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ns(r,i,``):os(e,i,!k(t)&&t?t[i]:void 0,o)||ns(r,i,o)}}else if(i){if(t!==n){let e=r[Yo];e&&(n+=`;`+e),r.cssText=n,a=$o.test(n)}}else t&&e.removeAttribute(`style`);qo in e&&(e[qo]=a?r.display:``,e[Jo]&&(r.display=`none`))}var ts=/\s*!important$/;function ns(e,t,n){if(w(n))n.forEach(n=>ns(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=as(e,t);ts.test(n)?e.setProperty(fe(r),n.replace(ts,``),`important`):e[r]=n}}var rs=[`Webkit`,`Moz`,`ms`],is={};function as(e,t){let n=is[t];if(n)return n;let r=ue(t);if(r!==`filter`&&r in e)return is[t]=r;r=pe(r);for(let n=0;n<rs.length;n++){let i=rs[n]+r;if(i in e)return is[t]=i}return t}function os(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&k(r)&&n===r}var ss=`http://www.w3.org/1999/xlink`;function cs(e,t,n,r,i,a=ke(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(ss,t.slice(6,t.length)):e.setAttributeNS(ss,t,n):n==null||a&&!Ae(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ee(n)?String(n):n)}function ls(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?bo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ae(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function us(e,t,n,r){e.addEventListener(t,n,r)}function ds(e,t,n,r){e.removeEventListener(t,n,r)}var fs=Symbol(`_vei`);function ps(e,t,n,r,i=null){let a=e[fs]||(e[fs]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=gs(t);r?us(e,n,a[t]=bs(r,i),s):o&&(ds(e,n,o,s),a[t]=void 0)}}var ms=/(Once|Passive|Capture)$/,hs=/^on:?(?:Once|Passive|Capture)$/;function gs(e){let t,n;for(;(n=e.match(ms))&&!hs.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):fe(e.slice(2)),t]}var _s=0,vs=Promise.resolve(),ys=()=>_s||=(vs.then(()=>_s=0),Date.now());function bs(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(w(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Dn(e,t,5,a)}}else Dn(r,t,5,[e])};return n.value=e,n.attached=ys(),n}var xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ss=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ko(e,r,o):t===`style`?es(e,n,r):v(t)?y(t)||ps(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Cs(e,t,r,o))?(ls(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&cs(e,t,r,o,a,t!==`value`)):e._isVueCE&&(ws(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!k(r)))?ls(e,ue(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),cs(e,t,r,o))};function Cs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&xs(t)&&O(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return xs(t)&&k(n)?!1:t in e}function ws(e,t){let n=e._def.props;if(!n)return!1;let r=ue(t);return Array.isArray(n)?n.some(e=>ue(e)===r):Object.keys(n).some(e=>ue(e)===r)}var Ts=new WeakMap,Es=new WeakMap,Ds=Symbol(`_moveCb`),Os=Symbol(`_enterCb`),ks=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:b({},Ao,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=$a(),r=Sr(),i,a;return Zr(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ps(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(As),i.forEach(js);let r=i.filter(Ms);Go(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Lo(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ds]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ds]=null,Ro(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=j(e),s=Po(o),c=o.tag||ba;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Jo]&&(i.push(t),Nr(t,Ar(t,s,r,n)),Ts.set(t,Ns(t.el)))}a=t.default?Pr(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Nr(t,Ar(t,s,r,n))}return Ra(c,null,a)}}});function As(e){let t=e.el;t[Ds]&&t[Ds](),t[Os]&&t[Os]()}function js(e){Es.set(e,Ns(e.el))}function Ms(e){let t=Ts.get(e),n=Es.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Ns(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Ps(e,t,n){let r=e.cloneNode(),i=e[Oo];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ho(r);return a.removeChild(r),o}var Fs=b({patchProp:Ss},To),Is;function Ls(){return Is||=ca(Fs)}var Rs=((...e)=>{let t=Ls().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Bs(e);if(!r)return;let i=t._component;!O(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,zs(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function zs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Bs(e){return k(e)?document.querySelector(e):e}function Vs(e,t){for(let n=e;n>=0;n--)if(t[n].level<t[e].level)return n;return-1}function Hs(e,t){if(e===-1)return new Set(t.map((e,t)=>t));let n=[];for(let r=e+1;r<t.length&&!(t[r].level<=t[e].level);r++)n.push(r);return new Set(n)}function Us(e,t){let n=[...Hs(Vs(e,t),t)].filter(n=>t[n].level===t[e].level);return new Set(n)}var z=Zt({headers:[],dark:!0,cssChange:!1,markdown:!0,ellipsis:!1,labelDirection:`left`,leafChange:!1,searchSupport:!0,levelSwitch:!0,hideUnsearched:!0,regexSearch:!1,currentEditingKey:``,modifyKeys:{},dragModify:!1,textDirectionDecideBy:`system`,refreshTree:()=>{},theme:{patchColor:!1,primaryColorLight:``,primaryColorDark:``,rainbowLine:!1,rainbowColor1:``,rainbowColor2:``,rainbowColor3:``,rainbowColor4:``,rainbowColor5:``,fontSize:``,fontFamily:``,fontWeight:``,lineHeight:``,lineGap:``,customFontColor:!1,h1ColorLight:``,h2ColorLight:``,h3ColorLight:``,h4ColorLight:``,h5ColorLight:``,h6ColorLight:``,h1ColorDark:``,h2ColorDark:``,h3ColorDark:``,h4ColorDark:``,h5ColorDark:``,h6ColorDark:``},init:Ws});function Ws(e){let{app:t,settings:n}=e;z.dark=activeDocument.body.hasClass(`theme-dark`),z.markdown=n.markdown,z.ellipsis=n.ellipsis,z.labelDirection=n.label_direction,z.refreshTree=()=>{e.outlineView?.vueInstance.forceRemakeTree(),t.workspace.trigger(`layout-change`)},z.searchSupport=n.search_support,z.levelSwitch=n.level_switch,z.hideUnsearched=n.hide_unsearched,z.regexSearch=n.regex_search,z.dragModify=n.drag_modify,z.textDirectionDecideBy=n.lang_direction_decide_by,z.theme.patchColor=n.patch_color,z.theme.primaryColorLight=n.primary_color_light,z.theme.primaryColorDark=n.primary_color_dark,z.theme.rainbowLine=n.rainbow_line,z.theme.rainbowColor1=n.rainbow_color_1,z.theme.rainbowColor2=n.rainbow_color_2,z.theme.rainbowColor3=n.rainbow_color_3,z.theme.rainbowColor4=n.rainbow_color_4,z.theme.rainbowColor5=n.rainbow_color_5,z.theme.fontSize=n.font_size,z.theme.fontFamily=n.font_family,z.theme.fontWeight=n.font_weight,z.theme.lineHeight=n.line_height,z.theme.lineGap=n.line_gap,z.theme.customFontColor=n.custom_font_color,z.theme.h1ColorLight=n.h1_color,z.theme.h2ColorLight=n.h2_color,z.theme.h3ColorLight=n.h3_color,z.theme.h4ColorLight=n.h4_color,z.theme.h5ColorLight=n.h5_color,z.theme.h6ColorLight=n.h6_color,z.theme.h1ColorDark=n.h1_color_dark,z.theme.h2ColorDark=n.h2_color_dark,z.theme.h3ColorDark=n.h3_color_dark,z.theme.h4ColorDark=n.h4_color_dark,z.theme.h5ColorDark=n.h5_color_dark,z.theme.h6ColorDark=n.h6_color_dark}var Gs=class e{state=`unresolved`;resolve;reject;promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}).then(e=>(this.setState(`resolved`),e),e=>(this.setState(`rejected`),Promise.reject(Ks(e))));setState(e){this.state===`unresolved`&&(this.state=e)}static resolved(t){let n=new e;return n.resolve(t),n}isResolved(){return this.state===`resolved`}isRejected(){return this.state===`rejected`}};function Ks(e){return e instanceof Error?e:Error(String(e))}var qs=class{_used=!1;_loaded=new Gs;_events=[];canDrop=!1;plugin;view;constructor(e,t){this.plugin=e,this.view=t}async load(){this._used||(this._used=!0,this.constructor._installed||(await this.install(),this.constructor._installed=!0),await this.onload(),this._loaded.resolve())}async unload(){for(await this._loaded.promise;this._events.length>0;)await this._events.pop()?.();await this.onunload(),this.plugin.navigator=new Js(this.plugin,null)}register(e){this._events.push(e)}registerEvent(e){this.register(()=>{e.e?.offref(e)})}registerDomEvent(e,t,n,r){e.addEventListener(t,n,r),this.register(()=>{e.removeEventListener(t,n,r)})}registerInterval(e){return this.register(()=>{window.clearInterval(e)}),e}getDefaultLevel(){return parseInt(this.plugin.settings.expand_level)}getPath(){return``}async install(){}async onload(){}async onunload(){}async handleDrop(e,t,n){}onRightClick(e,t,n,r){}toBottom(){}onExpandKeysChange(e,t){}changeHeadingContent(e,t){}async jumpWithoutFocus(e){await this.jump(e)}async jumpWhenClick(e){await this.jumpWithoutFocus(e)}},Js=class extends qs{getId(){return`dummy`}async unload(){}async jump(e){}async getHeaders(){return[]}async setHeaders(){z.headers=[]}async updateHeaders(){}},Ys={"Settings for Quiet Outline.":`Quiet Outline 的设置页面`,"Set Primary Color":`设置主颜色 明/暗`,"Patch default color":`用设置覆盖默认主颜色`,"Set Rainbow Line Color":`设置彩虹大纲线颜色`,"Render Markdown":`渲染markdown元素`,"Render heading string as markdown format.":`以markdown格式渲染标题文本`,"Search Support":`开启搜索`,"Add a searching area on the top":`在顶部添加一个搜索框`,"Level Switch":`层级切换器`,"Expand headings to certain level.":`展开标题到特定层级`,"Default Level":`默认层级`,"Default expand level when opening a new note.":`打开新笔记时,标题展开到的默认层级`,"No expand":`不展开`,"To Bottom":`跳转到笔记末尾`,Reset:`重置`,"Input to search":`输入以搜索`,"result(s):":`条匹配结果:`,"Hide Unsearched":`过滤未搜索的标题`,"Hide irrelevant headings when searching":`搜索时,隐藏未命中的标题`,"Regex Search":`正则搜索`,"Search headings using regular expression":`支持使用正则表达式来搜索`,"Auto Expand":`自动展开`,"Auto expand and collapse headings when scrolling and cursor position change":`当滚动页面时,自动跟踪当前所在标题并展开`,"Auto Scroll Into View":`自动滚动到定位的标题`,"Auto scroll located heading into view":`当滚动或者光标位置变化时,大纲自动滚动到相应标题`,"Only Expand":`仅展开当前标题`,"Expand and Collapse Rest":`展开同时折叠剩余标题`,"Expand and Collapse Rest to Default":`展开同时折叠剩余标题至默认层级`,"Expand and Collapse Rest to Setting Level (Level Switch)":`展开同时折叠剩余标题至设置层级(层级切换器)`,Disabled:`关闭自动展开`,"Locate By Cursor":`定位到光标处`,"Highlight and Auto expand postion will be determined by cursor position":`高亮和自动展开位置将由光标位置决定`,"Show Popover on hover":`鼠标悬停在标题时显示笔记内容`,"Press functional key and move cursor to heading":`按住功能键,移动光标到标题处`,Disable:`关闭`,Ellipsis:`省略长标题`,"Tooltip direction":`完整标题显示方向`,"Keep one line per heading":`保持标题只有一行,省略多余部分`,"Persist Markdown States":`记录 markdown 状态`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`保存和恢复 markdown 笔记的光标、滚动状态以及标题的展开/折叠状态`,"Save Cursor Position":`保存光标位置`,"Save and restore cursor position of markdown note":`保存和恢复 markdown 笔记的光标位置`,"Save Scroll Position":`保存滚动位置`,"Save and restore scroll position of markdown note":`保存和恢复 markdown 笔记的滚动位置`,"Save Heading Expansion State":`保存标题展开状态`,"Save and restore expanded/collapsed state of headings":`保存和恢复标题的展开/折叠状态`,"Save Delay":`保存延迟`,"Delay after the last change before saving markdown-states.json, in seconds. Set to 0 to save immediately.":`最后一次变化后延迟保存 markdown-states.json 的秒数。设置为 0 时立即保存。`,"Keep Search Input":`保留搜索输入`,"Keep search input when switching between notes":`切换笔记时保留搜索输入`,"Drag headings to modify note":`启用拖拽标题来调整文档结果`,"❗ This will modify note content, be careful.":`❗ 拖拽操作会改变文档内容,小心使用`,"Text Direction":`文本方向`,"is decided by":`由什么决定`,"Export Format":`标题输出格式`,Canvas:`白板`,General:`常规设置`,Styles:`样式设置`,"Canvas Sort Order":`白板大纲排序`,"Heading Truncate Length":`标题截断长度`,"Sort method for canvas nodes":`白板卡片的排序逻辑`,"Sort by Area":`按面积 (大 -> 小)`,"Sort by Name (A -> Z)":`按名称 (A -> Z)`,"Sort by Name (Z -> A)":`按名称 (Z -> A)`,"Show group nodes":`显示组节点`,"Show file nodes":`显示文件节点`,"Show text nodes":`显示文本节点`,"Show link nodes":`显示链接节点`,Copy:`复制`,Heading:`标题`,"Heading and children headings":`标题和子标题`,"Heading and Content":`该段内容`,"Heading and siblings headings":`标题和兄弟标题`,"Rename heading":`重命名标题`,"Link of heading":`标题链接`,"Collapse Recursively":`递归折叠`,"Expand Recursively":`递归展开`,"Collapse Sibling":`折叠同级标题`,"Expand Sibling":`展开同级标题`,"Change Level":`调整层级`,Increase:`增加`,"Increase Recursively":`递归增加`,Decrease:`减少`,"Decrease Recursively":`递归减少`,"Maximum level reached":`已达到最大层级`,"Minimum level reached":`已达到最小层级`,"Vimlize Canvas":`Vim Canvas`,"Add vim-like keymap for canvas":`给 Canvas 添加 Vim 风格的快捷键`,Confirm:`确认`,Cancel:`取消`,Delete:`删除`,"This will delete heading:":`即将删除标题:`,"This will modify the note content. Continue?":`此操作会修改笔记内容,是否继续?`,"Font Size":`字体大小`,"Custom font size for outline text (e.g., 14px, 1rem)":`大纲文本的自定义字体大小(例如:14px, 1rem)`,"Font Family":`字体家族`,"Custom font family for outline text":`大纲文本的自定义字体家族`,"Font Weight":`字体粗细`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`大纲文本的自定义字体粗细(例如:normal, bold, 400, 700`,"Line Height":`行高`,"Custom line height for outline text (e.g., 1.5, 2)":`大纲文本的自定义行高(例如:1.5, 2)`,"Line Gap":`行间距`,"Custom gap between lines (e.g., 4px, 0.5rem)":`行之间的自定义间距(例如:4px, 0.5rem)`,"Custom Font Color":`自定义字体颜色`,"Enable custom font colors for different heading levels":`为不同级别的标题启用自定义字体颜色`,"H1 Color":`H1 颜色`,"H2 Color":`H2 颜色`,"H3 Color":`H3 颜色`,"H4 Color":`H4 颜色`,"H5 Color":`H5 颜色`,"H6 Color":`H6 颜色`},Xs={"Change Level":`Change Level`,Increase:`Increase`,"Increase Recursively":`Increase Recursively`,Decrease:`Decrease`,"Decrease Recursively":`Decrease Recursively`,"Maximum level reached":`Maximum level reached`,"Minimum level reached":`Minimum level reached`,"Settings for Quiet Outline.":`Settings for Quiet Outline.`,"Set Primary Color":`Set Primary Color Light/Dark`,"Patch default color":`Patch default color`,"Set Rainbow Line Color":`Set Rainbow Line Color`,"Render Markdown":`Render Markdown`,"Render heading string as markdown format.":`Render heading string as markdown format`,"Search Support":`Search Support`,"Add a searching area on the top":`Add a search area on the top`,"Level Switch":`Level Switch`,"Expand headings to certain level.":`Expand headings to certain level`,"Default Level":`Default Level`,"Default expand level when opening a new note.":`Default expand level`,"No expand":`No expand`,"To Bottom":`To Bottom`,Reset:`Reset`,"Input to search":`Input to search`,"result(s):":`result(s):`,"Hide Unsearched":`Hide Unsearched`,"Hide irrelevant headings when searching":`Hide irrelevant headings when searching`,"Regex Search":`Regex Search`,"Search headings using regular expression":`Search headings using regular expression`,"Auto Expand":`Auto Expand`,"Auto expand and collapse headings when scrolling and cursor position change":`Auto expand and collapse headings when scrolling and cursor position change`,"Auto Scroll Into View":`Auto Scroll Into View`,"Auto scroll located heading into view":`Auto scroll located heading into view`,"Only Expand":`Only Expand`,"Expand and Collapse Rest":`Expand and Collapse Rest`,"Expand and Collapse Rest to Default":`Expand and Collapse Rest to Default`,"Expand and Collapse Rest to Setting Level (Level Switch)":`Expand and Collapse Rest to Setting Level (Level Switch)`,Disabled:`Disabled`,"Locate By Cursor":`Locate By Cursor`,"Show Popover on hover":`Show Popover on hover`,"Press functional key and move cursor to heading":`Press functional key and move cursor to heading`,Disable:`Disable`,"Highlight and Auto expand postion will be determined by cursor position":`Highlight and Auto expand postion will be determined by cursor position`,Ellipsis:`Ellipsis`,"Tooltip direction":`Tooltip direction`,"Keep one line per heading":`Keep one line per heading`,"Persist Markdown States":`Persist Markdown States`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings`,"Save Cursor Position":`Save Cursor Position`,"Save and restore cursor position of markdown note":`Save and restore cursor position of markdown note`,"Save Scroll Position":`Save Scroll Position`,"Save and restore scroll position of markdown note":`Save and restore scroll position of markdown note`,"Save Heading Expansion State":`Save Heading Expansion State`,"Save and restore expanded/collapsed state of headings":`Save and restore expanded/collapsed state of headings`,"Save Delay":`Save Delay`,"Delay after the last change before saving markdown-states.json, in seconds. Set to 0 to save immediately.":`Delay after the last change before saving markdown-states.json, in seconds. Set to 0 to save immediately.`,"Keep Search Input":`Keep Search Input`,"Keep search input when switching between notes":`Keep search input when switching between notes`,"Drag headings to modify note":`Drag headings to modify note`,"❗ This will modify note content, be careful.":`❗ This will modify note content, be careful`,"Text Direction":`Text Direction`,"is decided by":`is decided by`,"Export Format":`Export Format`,General:`General`,Styles:`Styles`,Canvas:`Canvas`,"Canvas Sort Order":`Canvas Sort Order`,"Heading Truncate Length":`Heading Truncate Length`,"Sort method for canvas nodes":`Sort method for canvas nodes`,"Sort by Area":`Sort by Area (Big -> Small)`,"Sort by Name (A -> Z)":`Sort by Name (A -> Z)`,"Sort by Name (Z -> A)":`Sort by Name (Z -> A)`,"Show group nodes":`Show group nodes`,"Show file nodes":`Show file nodes`,"Show text nodes":`Show text nodes`,"Show link nodes":`Show link nodes`,Copy:`Copy`,Heading:`Heading`,"Heading and children headings":`Heading and children headings`,"Heading and Content":`Heading and Content`,"Heading and siblings headings":`Heading and siblings headings`,"Rename heading":`Rename`,"Link of heading":`Link of heading`,"Collapse Recursively":`Collapse Recursively`,"Expand Recursively":`Expand Recursively`,"Collapse Sibling":`Collapse Sibling`,"Expand Sibling":`Expand Sibling`,"Vimlize Canvas":`Vimlize Canvas`,"Add vim-like keymap for canvas":`Add vim-like keymap for canvas`,Confirm:`Confirm`,Cancel:`Cancel`,Delete:`Delete`,"This will delete heading:":`This will delete heading:`,"This will modify the note content. Continue?":`This will modify the note content. Continue?`,"Font Size":`Font Size`,"Custom font size for outline text (e.g., 14px, 1rem)":`Custom font size for outline text (e.g., 14px, 1rem)`,"Font Family":`Font Family`,"Custom font family for outline text":`Custom font family for outline text`,"Font Weight":`Font Weight`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`Custom font weight for outline text (e.g., normal, bold, 400, 700)`,"Line Height":`Line Height`,"Custom line height for outline text (e.g., 1.5, 2)":`Custom line height for outline text (e.g., 1.5, 2)`,"Line Gap":`Line Gap`,"Custom gap between lines (e.g., 4px, 0.5rem)":`Custom gap between lines (e.g., 4px, 0.5rem)`,"Custom Font Color":`Custom Font Color`,"Enable custom font colors for different heading levels":`Enable custom font colors for different heading levels`,"H1 Color":`H1 Color`,"H2 Color":`H2 Color`,"H3 Color":`H3 Color`,"H4 Color":`H4 Color`,"H5 Color":`H5 Color`,"H6 Color":`H6 Color`},Zs={en:Xs,zh:Ys,"zh-TW":{"Change Level":`調整層級`,Increase:`增加`,"Increase Recursively":`遞迴增加`,Decrease:`減少`,"Decrease Recursively":`遞迴減少`,"Maximum level reached":`已達到最大層級`,"Minimum level reached":`已達到最小層級`,Confirm:`確認`,Cancel:`取消`,Delete:`刪除`,"This will delete heading:":`即將刪除標題:`,"This will modify the note content. Continue?":`此操作會修改筆記內容,是否繼續?`,"Settings for Quiet Outline.":`Quiet Outline 的設定頁面`,"Set Primary Color":`設定主要顏色 明/暗`,"Patch default color":`使用設定覆蓋預設主要顏色`,"Set Rainbow Line Color":`設定彩虹大綱線顏色`,"Render Markdown":`渲染 markdown 元素`,"Render heading string as markdown format.":`以 markdown 格式渲染標題文字`,"Search Support":`開啟搜尋`,"Add a searching area on the top":`在頂部新增一個搜尋框`,"Level Switch":`層級切換器`,"Expand headings to certain level.":`展開標題到特定層級`,"Default Level":`預設層級`,"Default expand level when opening a new note.":`開啟新筆記時,標題展開到的預設層級`,"No expand":`不展開`,"To Bottom":`跳轉到筆記末尾`,Reset:`重置`,"Input to search":`輸入以搜尋`,"result(s):":`筆相符結果:`,"Hide Unsearched":`過濾未搜尋的標題`,"Hide irrelevant headings when searching":`搜尋時,隱藏未命中的標題`,"Regex Search":`正則搜尋`,"Search headings using regular expression":`支援使用正則運算式來搜尋`,"Auto Expand":`自動展開`,"Auto expand and collapse headings when scrolling and cursor position change":`當捲動頁面或游標改變時,自動跟隨目前所在標題並展開`,"Auto Scroll Into View":`自動捲動到定位的標題`,"Auto scroll located heading into view":`當捲動或游標位置變化時,大綱自動捲動到相應標題`,"Only Expand":`僅展開目前標題`,"Expand and Collapse Rest":`展開同時摺疊剩餘標題`,"Expand and Collapse Rest to Default":`展開同時摺疊剩餘標題至預設層級`,"Expand and Collapse Rest to Setting Level (Level Switch)":`展開同時摺疊剩餘標題至設定層級(層級切換器)`,Disabled:`關閉自動展開`,"Locate By Cursor":`定位到游標處`,"Highlight and Auto expand postion will be determined by cursor position":`高亮和自動展開位置將由游標位置決定`,"Show Popover on hover":`滑鼠懸停在標題時顯示筆記內容`,"Press functional key and move cursor to heading":`按住功能鍵,移動游標到標題處`,Disable:`關閉`,Ellipsis:`省略長標題`,"Tooltip direction":`完整標題顯示方向`,"Keep one line per heading":`保持標題只有一行,省略多餘部分`,"Persist Markdown States":`持續保存 Markdown 狀態`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`儲存並恢復 Markdown 筆記的游標、捲動狀態,以及標題的展開/摺疊狀態`,"Save Cursor Position":`儲存游標位置`,"Save and restore cursor position of markdown note":`儲存並恢復 Markdown 筆記的游標位置`,"Save Scroll Position":`儲存捲動位置`,"Save and restore scroll position of markdown note":`儲存並恢復 Markdown 筆記的捲動位置`,"Save Heading Expansion State":`儲存標題展開狀態`,"Save and restore expanded/collapsed state of headings":`儲存並恢復標題的展開/摺疊狀態`,"Save Delay":`儲存延遲`,"Delay after the last change before saving markdown-states.json, in seconds. Set to 0 to save immediately.":`最後一次變化後延遲儲存 markdown-states.json 的秒數。設定為 0 時立即儲存。`,"Keep Search Input":`保留搜尋輸入`,"Keep search input when switching between notes":`切換筆記時保留搜尋輸入`,"Drag headings to modify note":`啟用拖曳標題來調整文件結構`,"❗ This will modify note content, be careful.":`❗ 拖曳操作會改變文件內容,請小心使用`,"Text Direction":`文字方向`,"is decided by":`由什麼決定`,"Export Format":`標題輸出格式`,Canvas:`白板`,General:`一般設定`,Styles:`樣式設定`,"Canvas Sort Order":`白板大綱排序`,"Heading Truncate Length":`標題截斷長度`,"Show group nodes":`顯示群組節點`,"Show file nodes":`顯示檔案節點`,"Show text nodes":`顯示文字節點`,"Show link nodes":`顯示連結節點`,"Sort method for canvas nodes":`白板卡片的排序邏輯`,"Sort by Area":`按面積 (大 -> 小)`,"Sort by Name (A -> Z)":`按名稱 (A -> Z)`,"Sort by Name (Z -> A)":`按名稱 (Z -> A)`,Copy:`複製`,Heading:`標題`,"Heading and children headings":`標題和子標題`,"Heading and Content":`該段內容`,"Heading and siblings headings":`標題和兄弟標題`,"Rename heading":`重命名標題`,"Link of heading":`標題連結`,"Collapse Recursively":`遞迴摺疊`,"Expand Recursively":`遞迴展開`,"Collapse Sibling":`摺疊同級標題`,"Expand Sibling":`展開同級標題`,"Vimlize Canvas":`Vim Canvas`,"Add vim-like keymap for canvas":`給 Canvas 新增 Vim 風格的快捷鍵`,"Font Size":`字型大小`,"Custom font size for outline text (e.g., 14px, 1rem)":`大綱文字的自訂字型大小(例如:14px, 1rem)`,"Font Family":`字型家族`,"Custom font family for outline text":`大綱文字的自訂字型家族`,"Font Weight":`字型粗細`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`大綱文字的自訂字型粗細(例如:normal, bold, 400, 700`,"Line Height":`行高`,"Custom line height for outline text (e.g., 1.5, 2)":`大綱文字的自訂行高(例如:1.5, 2)`,"Line Gap":`行間距`,"Custom gap between lines (e.g., 4px, 0.5rem)":`行之間的自訂間距(例如:4px, 0.5rem)`,"Custom Font Color":`自訂字型顏色`,"Enable custom font colors for different heading levels":`為不同級別的標題啟用自訂字型顏色`,"H1 Color":`H1 顏色`,"H2 Color":`H2 顏色`,"H3 Color":`H3 顏色`,"H4 Color":`H4 顏色`,"H5 Color":`H5 顏色`,"H6 Color":`H6 顏色`}}[(0,l.getLanguage)()||`en`];function B(e){return Zs&&Zs[e]||Xs[e]}var Qs=`quiet-outline-confirm-modal`,$s=`quiet-outline-confirm-modal__buttons`,ec=`quiet-outline-confirm-modal__btn-icon`;function tc(e,t=``){return e==null?t:typeof e==`string`?e:B(e.i18nKey)}var nc=class extends l.Modal{options;constructor(e,t){super(e),this.options=t}onOpen(){let{contentEl:e}=this,t=tc(this.options.title);t&&this.titleEl.setText(t);let n=tc(this.options.message).split(/\n\s*\n/g).map(e=>e.trim()).filter(Boolean);for(let t of n){let n=e.createEl(`p`),r=t.split(`
`);for(let e=0;e<r.length;e++)e>0&&n.createEl(`br`),n.appendText(r[e])}e.addClass(Qs);let r=e.createDiv({cls:$s}),i=tc(this.options.cancelText,B(`Cancel`)),a=tc(this.options.confirmText,B(`Confirm`)),o=new l.ButtonComponent(r).setButtonText(a).setCta().onClick(async()=>{await this.safeConfirm()});o.setClass(`mod-warning`),this.options.confirmIcon&&rc(o,this.options.confirmIcon);let s=new l.ButtonComponent(r).setButtonText(i).onClick(async()=>{await this.safeCancel(),this.close()});this.options.cancelIcon&&rc(s,this.options.cancelIcon),s.buttonEl.focus()}onClose(){this.contentEl.empty()}async safeConfirm(){let e=this.options.closeOnConfirm??!0;await this.options.onConfirm(),e&&this.close()}async safeCancel(){this.options.onCancel&&await this.options.onCancel()}};function rc(e,t){let n=e.buttonEl.createSpan({cls:ec});(0,l.setIcon)(n,t),e.buttonEl.prepend(n)}function ic(e,t){return new Promise(n=>{let r=new nc(e,{...t,onConfirm:()=>n(!0),onCancel:()=>n(!1)}),i=r.onClose.bind(r);r.onClose=()=>{n(!1),i()},r.open()})}var ac=new class extends l.Events{on(e,t,n){return super.on(e,t,n)}off(e,t){super.off(e,t)}trigger(e,...t){super.trigger(e,...t)}},oc=class{constructor(e){}update(e){e.selectionSet&&ac.trigger(`cursorchange`,e.docChanged)}destroy(){}},sc=u.ViewPlugin.fromClass(oc),cc=5;function lc(e,t){let n=0,r=0,i=[];for(;n<e.length&&r<t.length;){if(e[n].title===t[r].title&&e[n].level===t[r].level){n++,r++;continue}let a=uc(e,t,n,r);if(a.type==`modify`){let o=e[n].level<e[n+1].level?t[r].level<t[r+1].level?`parent2parent`:`parent2child`:t[r].level<t[r+1].level?`child2parent`:`child2child`;i.push({type:a.type,begin:n,length:a.length,levelChange:e[n].level!==t[r].level,levelChangeType:o})}else i.push({type:a.type,begin:n,length:a.length});a.type===`add`?r+=a.length:a.type===`remove`?n+=a.length:(n+=a.length,r+=a.length)}return n===e.length&&r!==t.length&&i.push({type:`add`,begin:n,length:t.length-r}),n!==e.length&&r===t.length&&i.push({type:`remove`,begin:n,length:e.length-n}),i}function uc(e,t,n,r){let i=dc(e[n],t,r),a=dc(t[r],e,n),o=fc(e,t,n,r),s=[{type:`add`,length:i},{type:`remove`,length:a},{type:`modify`,length:o}];return s.sort((e,t)=>e.length-t.length),s[0].type==`add`&&s[1].type==`remove`&&s[0].length===s[1].length?s[1]:s[0]}function dc(e,t,n){let r=t.slice(n),i=r.findIndex(t=>t.title===e.title&&t.level===e.level);return i=i<0?r.length:i,i}function fc(e,t,n,r){let i=Math.min(e.length-n-1,t.length-r-1,cc);for(let a=1;i>0&&a<=i;a++)if(e[n+a].title===t[r+a].title&&e[n+a].level===t[r+a].level)return a;return Number.MAX_VALUE}function pc(e,t){let n=lc(e,t),r={offsetModifies:[],removes:[],adds:[],modifies:[]},i=0;return n.forEach(e=>{switch(e.type){case`add`:r.adds.push({begin:i+e.begin}),i+=e.length,r.offsetModifies.push({begin:e.begin,offset:i});break;case`remove`:i-=e.length,r.offsetModifies.push({begin:e.begin+e.length,offset:i}),r.removes.push({begin:e.begin,length:e.length});break;case`modify`:if(!e.levelChange||e.levelChangeType===`child2child`)break;r.modifies.push({oldBegin:e.begin,newBegin:e.begin+i,levelChangeType:e.levelChangeType});break}}),r}async function mc(e,t){return await e.metadataCache.computeMetadataAsync(new TextEncoder().encode(t).buffer)}async function hc(e,t){let n=await mc(t,e),r=n.headings||[],i=n.sections||[],a=[{heading:``,headingLevel:0,headingExpaned:!1,id:-1,content:{preContent:``,children:[]},type:`section`}],o=0,s=0,c=0;for(let t of i)if(t.type===`heading`){for(s=Math.max(t.position.start.offset,0),a.last().content.preContent=e.slice(o,s);r[c].level<=a.last().headingLevel;)a.pop();let n={heading:r[c].heading,headingLevel:r[c].level,headingExpaned:!1,id:c,content:{preContent:``,children:[]},type:`section`};a.last().content.children.push(n),a.push(n),o=r[c].position.end.offset+1,c++}let l=e.slice(o);return a.length>1&&!l.endsWith(`
`)&&(l+=`
`),a.last().content.preContent=l,a[0]}function gc(e,t,n,r){let[i,a]=vc(e,t),[o,s]=vc(e,n),c=structuredClone(a);switch(r){case`before`:o.content.children.splice(o.content.children.indexOf(s),0,c),Sc(c,s.headingLevel-a.headingLevel);break;case`after`:o.content.children.splice(o.content.children.indexOf(s)+1,0,c),Sc(c,s.headingLevel-a.headingLevel);break;case`inside`:s.content.children.push(c),Sc(c,s.headingLevel-a.headingLevel+1);break}i.content.children.splice(i.content.children.indexOf(a),1)}function _c(e,t){let[n,r]=vc(e,t);n.content.children.splice(n.content.children.indexOf(r),1)}function vc(e,t){let n=yc(e,e,t);if(!n)throw Error(`section ${t} not found`);return n}function yc(e,t,n){if(e.id===n)return[t,e];for(let t of e.content.children){let r=yc(t,e,n);if(r)return r}}function bc(e){return e.preContent+e.children.map(xc).join(``)}function xc(e){let t=`#`.repeat(e.headingLevel)+` `+e.heading,n=bc(e.content);return e.id<0?n:`${t}\n${n}`}function Sc(e,t){e.headingLevel+=t,e.content.children.forEach(e=>{Sc(e,t)})}function Cc(e,t){function n(e,t){switch(t.type){case`normal`:e.addItem(e=>e.setTitle(t.title).onClick(t.fn));break;case`danger`:e.addItem(e=>e.setTitle(t.title).setWarning(!0).onClick(t.fn));break;case`parent`:e.addItem(e=>{e.setTitle(t.title),Cc(e.setSubmenu().setNoIcon(),t.subMenu)});break;case`separator`:e.addSeparator();break}}t.forEach(t=>{n(e,t)})}function wc(e,t){return{type:`normal`,title:e,fn:t}}function Tc(e,t){return{type:`danger`,title:e,fn:t}}function Ec(e,t){return{type:`parent`,title:e,subMenu:t}}function Dc(){return{type:`separator`}}function Oc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var kc=class{data=new Map;count(){let e=0;for(let t of this.data.values())e+=t.length;return e}clear(e){this.data.delete(e)}add(e,t){this.data.has(e)||this.data.set(e,[]),this.data.get(e).push(t)}get(e){return this.data.get(e)}keys(){return Array.from(this.data.keys())}},Ac=class{app;file;editor;tokenRange;oldHeading;constructor(e,t,n,r,i){this.app=e,this.file=t,this.editor=n,this.tokenRange=r,this.oldHeading=i}async updateHeadingLinks(e){if(!e)return!1;let t=this.getChanges(e),n=t.data.size,r=t.count(),i=t.get(this.file.path)||[];i.length>0&&t.clear(this.file.path);let a=this.replaceInFile(e),o={link:``,original:``,position:{start:{line:0,col:0,offset:a.start},end:{line:0,col:0,offset:a.end}}};i.push({sourcePath:this.file.path,change:a.text,reference:o}),await this.app.vault.process(this.file,e=>Ic(e,i)),await this.app.fileManager.updateInternalLinks(t);let s=i18next.t(`nouns.link-with-count`,{count:r}),c=i18next.t(`nouns.file-with-count`,{count:n});new l.Notice(i18next.t(`dialogue.msg-updated-links`,{links:s,files:c}))}getChanges(e){let t=this.app.metadataCache,n=new kc,r=(0,l.stripHeading)(this.oldHeading).toLowerCase(),i=(0,l.stripHeadingForLink)(e);return this.app.fileManager.iterateAllRefs((e,a)=>{if(!Nc(a))return;let o=(0,l.parseLinktext)(a.link),s=o.path,c=o.subpath;c&&(0,l.stripHeading)(c.substring(1)).toLowerCase()===r&&t.getFirstLinkpathDest(s,e)===this.file&&n.add(e,{sourcePath:e,reference:a,change:zc(a,s+`#`+i)})}),n}replaceInEditor(e){let t=this.tokenRange,n=this.editor,r=n.offsetToPos(t.start),i=n.getLine(r.line),a=this.replaceHeadingText(i,e);n.setLine(r.line,a)}replaceInFile(e){let t=this.tokenRange,n=this.editor,r=n.offsetToPos(t.start),i=n.getLine(r.line),a=this.replaceHeadingText(i,e);return{...t,text:a}}replaceHeadingText(e,t){return e.replace(/^(#{1,6} ).*/m,(e,n)=>n+t)}getCustomReplacements(e){return{oldSubpath:(0,l.stripHeading)(this.oldHeading).toLowerCase(),newSubpath:(0,l.stripHeadingForLink)(e)}}};function jc(e){if(!Oc(e)||!Oc(e.position))return!1;let t=e.position;return Oc(t.start)&&Oc(t.end)&&typeof t.start.offset==`number`&&typeof t.end.offset==`number`}function Mc(e){return Oc(e)&&typeof e.key==`string`}function Nc(e){return Oc(e)&&typeof e.link==`string`&&typeof e.original==`string`}function Pc(e){return Oc(e)&&typeof e.contains==`function`}function Fc(e,t,n){let r=e;for(;r&&t.length;){let e=t.shift();if(Array.isArray(r)){let i=parseInt(e);if(isNaN(i)||i<0||i>=r.length)return;if(!(t.length>0)){r[i]=n;return}r=r[i]}else{if(!Oc(r))return;if(!(t.length>0)){r[e]=n;return}!Oc(r[e])&&!Array.isArray(r[e])&&(r[e]={}),r=r[e]}}}function Ic(e,t){let n=[],r=[];for(let e of t)if(jc(e.reference)){let t=e.reference.position;n.push({start:t.start.offset,end:t.end.offset,text:e.change})}else Mc(e.reference)&&r.push({key:e.reference.key,value:e.change});if(n.length>0){n.sort((e,t)=>t.start-e.start);for(let t of n)e=e.substring(0,t.start)+t.text+e.substring(t.end)}if(r.length===0)return e;let i=(0,l.getFrontMatterInfo)(e);if(!i.exists)return e;let a;try{a=(0,l.parseYaml)(i.frontmatter)}catch{return e}if(!Oc(a)&&!Array.isArray(a))return e;for(let e of r)Fc(a,e.key.split(`.`),e.value);let o=(0,l.stringifyYaml)(a);return e.slice(0,i.from)+o+e.slice(i.to)}var Lc=/^(!?\[\[)(.*?)(\|(.*))?(]])$/,Rc=/^(!?\[)(.*?)(]\(\s*)((<[^>]*?>|[^ "]+?)(\s+([^ ]+|"[^"]+"|'[^']+'|\([^']+\)))?)?(\s*\))$/;function zc(e,t,n){let r,i=e.original,a=e.link,o=i.match(Lc);if(o){let e=o[1],a=o[2],s=o[4],c=s===void 0?``:s,u=o[5];if(c){let o=/\\\|/.test(i)?`\\|`:`|`,s=c.trim(),d=Gc(a)===s,f=Pc(n)&&n.contains(s);d&&!f&&(c=Gc((0,l.getLinkpath)(t))),r=`${e}${t}${o}${c}${u}`}else r=e+t+u}else{let e=i.match(Rc),n=!e||!e[5].startsWith(`<`)?Bc(t):`<${t}>`;if(e){let i=e[1],o=e[2],s=e[3],c=e[6]??``,u=e[8],d=Jc(o).trim(),f=(0,l.getLinkpath)(a);d===Gc(f)?o=Gc((0,l.getLinkpath)(t)):d.includes(`/`)&&d===Kc(f)&&(o=Kc((0,l.getLinkpath)(t))),r=i+o+s+n+c+u}else r=`[](${n})`,i.startsWith(`!`)&&(r=`!`+r)}return r}function Bc(e){return[...e].map(e=>{let t=e.charCodeAt(0);return e===`\\`||e===` `||t===0||t===8||t===11||t===12||t>=14&&t<=31?encodeURIComponent(e):e}).join(``)}function Vc(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function Hc(e){e=Vc(e);let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?e:e.substring(0,t)}function Uc(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?``:e.substring(t+1).toLowerCase()}function Wc(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?e:e.substring(0,t)}function Gc(e){let t=Vc(e);return Uc(t)===`md`?Hc(t):t}function Kc(e){return Uc(Vc(e))===`md`?Wc(e):e}var qc=/\u00A0|\u202F/g;function Jc(e){return e.replace(qc,` `)}function Yc(e,t){function n(e,t){return Array(e.length+t.length).fill(``).map((n,r)=>r%2==0?e[r/2]:t[(r-1)/2])}let r=t.split(/\{.*?\}/),i=[...t.matchAll(/\{(.*?)\}/g)].map(e=>e[1]);function a(e){let t=o[e.level-1],a=i.map(n=>{switch(n){case`title`:return e.title;case`path`:return`#`+e.title.replace(/ /g,`%20`);case`bullet`:return`-`;case`num`:return t.toString();case`num-nest`:return t.toString()}let r=n.match(/num-nest\[(.*?)\]/);if(r){let t=r[1];return o.slice(0,e.level).join(t)}return``});return n(r,a).join(``)}let o=[0,0,0,0,0,0],s=[];return e.forEach(e=>{o.forEach((t,n)=>{n>e.level-1&&(o[n]=0)}),o[e.level-1]++;let t=` `.repeat(e.level-1)+a(e);s.push(t)}),s}var Xc,Zc=`markdown-states.json`,Qc=class extends qs{canDrop=!0;expandedKeys;constructor(e,t){super(e,t),Xc=e}getId(){return`markdown`}async getHeaders(){let e=this.view.file&&this.plugin.app.metadataCache.getFileCache(this.view.file);return(structuredClone(e?.headings)||[]).map(e=>({title:e.heading,level:e.level,line:e.position.start.line,position:e.position}))}async setHeaders(){z.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();z.modifyKeys=pc(z.headers,e),z.headers=e}async jump(e){let t=$c(e).line,n={line:t,cursor:{from:{line:t,ch:0},to:{line:t,ch:0}}};this.plugin.startJumping(),Xc.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{this.view.app.workspace.setActiveLeaf(this.view.leaf,{focus:!0}),this.view.setEphemeralState(n)})}async jumpWhenClick(e){await this.jump(e)}async jumpWithoutFocus(e){let t={line:$c(e).line};this.plugin.startJumping(),Xc.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{this.view.setEphemeralState(t)})}async install(){this.plugin.registerEditorExtension([sc])}async onload(){this.registerEvent(ac.on(`cursorchange`,el)),this.registerDomEvent(this.view.contentEl,`scroll`,ol,!0)}async onunload(){}toBottom(){let e=this.view.data.split(`
`),t=()=>{this.view.setEphemeralState({line:e.length-5})};t(),activeWindow.setTimeout(t,100)}getDefaultLevel(){let e;return this.view.file&&(e=this.plugin.app.metadataCache.getFileCache(this.view.file)?.frontmatter?.[`qo-default-level`],typeof e==`string`&&(e=parseInt(e))),e||parseInt(Xc.settings.expand_level)}getPath(){return this.view.file?.path??``}onExpandKeysChange(e,t){e===this.view.file?.path&&(this.expandedKeys=t,this.storeMarkdownState(`expandedKeys`))}changeHeadingContent(e,t){!t||!this.view.file||(new Ac(this.view.app,this.view.file,this.view.editor,{start:$c(e).position.start.offset,end:$c(e).position.end.offset},$c(e).title).updateHeadingLinks(t),$c(e).title=t)}changeHeadingLevel(e,t){if(t<1||t>6)return;let n=$c(e).line;$c(e).level=t,this.view.editor.setLine(n,`${`#`.repeat(t)} ${$c(e).title}`)}async handleDrop(e,t,n){let r=await hc(this.view.data,this.view.app);gc(r,e,t,n),this.view.file&&await Xc.app.vault.modify(this.view.file,xc(r))}onRightClick(e,t,n,r){Cc(n,[Ec(B(`Copy`),[wc(B(`Heading`),async()=>{await navigator.clipboard.writeText(t.raw)}),wc(B(`Heading and siblings headings`),async()=>{let{no:e}=t,n=Yc(z.headers,this.plugin.settings.export_format).map(t=>t.slice(z.headers[e].level-1)),r=Us(e,z.headers),i=n.filter((e,t)=>r.has(t));await navigator.clipboard.writeText(i.join(`
`))}),wc(B(`Heading and children headings`),async()=>{let{no:e,level:n}=t,r=Yc(z.headers,this.plugin.settings.export_format);r=r.map(t=>t.slice(z.headers[e].level-1));let i=[r[e]];for(let t=e+1;t<z.headers.length&&!(z.headers[t].level<=n);t++)i.push(r[t]);await navigator.clipboard.writeText(i.join(`
`))}),wc(B(`Link of heading`),async()=>{if(!this.view.file)return;let e=this.plugin.app.fileManager.generateMarkdownLink(this.view.file,``,`#`+t.raw);await navigator.clipboard.writeText(e)}),wc(B(`Heading and Content`),async()=>{let{no:e,level:n}=t,r=e+1;for(;r<z.headers.length&&!(z.headers[r].level<=n);r++);let i=this.view.data.slice($c(e).position.start.offset,$c(r)?.position.start.offset||this.view.data.length);await navigator.clipboard.writeText(i)})]),Dc(),Ec(B(`Change Level`),[wc(B(`Increase`),()=>{this.changeHeadingLevel(t.no,t.level+1)}),wc(B(`Increase Recursively`),async()=>{let e=[],n=0;for(let r=t.no;r<z.headers.length;r++){let i=z.headers[r];if(i.level<=t.level&&r!==t.no)break;e.push({...i,no:r}),n=Math.max(n,i.level)}if(n>=6){new l.Notice(B(`Maximum level reached`));return}e.forEach(e=>{this.changeHeadingLevel(e.no,e.level+1)})}),wc(B(`Decrease`),()=>{this.changeHeadingLevel(t.no,t.level-1)}),wc(B(`Decrease Recursively`),async()=>{let e=[],n=2**53-1;for(let r=t.no;r<z.headers.length;r++){let i=z.headers[r];if(i.level<=t.level&&r!==t.no)break;e.push({...i,no:r}),n=Math.min(n,i.level)}if(n<=1){new l.Notice(B(`Minimum level reached`));return}e.forEach(e=>{this.changeHeadingLevel(e.no,e.level-1)})})]),wc(B(`Rename heading`),async()=>{z.currentEditingKey=t.node.key}),Tc(B(`Delete`),async()=>{let e=t.raw,n=`${B(`This will delete heading:`)} ${e}\n\n${B(`This will modify the note content. Continue?`)}`;if(!await ic(this.view.app,{title:B(`Confirm`),message:n,confirmText:B(`Delete`),cancelText:B(`Cancel`),confirmIcon:`trash`,cancelIcon:`x`}))return;let r=await hc(this.view.data,this.view.app);if(_c(r,t.no),!this.view.file){new l.Notice(`No file in markdown view`);return}await Xc.app.vault.modify(this.view.file,xc(r))})]),n.onHide(r||(()=>{})),n.showAtMouseEvent(e)}async loadMarkdownState(){return Xc.data_manager.loadFileData(Zc,{})}storeMarkdownState(e){if(!Xc.settings.persist_md_states||!tl(e))return;let t=this.view;if(!t.file?.path)return;let n=Xc.data_manager.getData(`markdown-states.json`)||{},r=n[t.file.path]||{},i=t.getEphemeralState(),a={...r};switch(e){case`scroll`:if(i.scroll===void 0)return;a.scroll=i.scroll;break;case`cursor`:if(!i.cursor)return;a.cursor=i.cursor;break;case`expandedKeys`:a.expandedKeys=this.expandedKeys||[];break}n[t.file.path]=a,Xc.data_manager.saveFileData(Zc,n)}};function $c(e){return z.headers[e]}function el(e){if(Xc.navigator.storeMarkdownState(`cursor`),!(!Xc.allow_cursor_change||!Xc.jumping.isResolved()||e)&&Xc.settings.locate_by_cursor){Xc.block_scroll();let e=al(nl(!1,!0));if(e===void 0)return;Xc.outlineView?.vueInstance.onPosChange(e)}}function tl(e){switch(e){case`scroll`:return Xc.settings.persist_md_scroll;case`cursor`:return Xc.settings.persist_md_cursor;case`expandedKeys`:return Xc.settings.persist_md_expanded_keys}}function nl(e,t){let n=Xc.navigator.view;return n.editor?Xc.settings.locate_by_cursor&&!e?t?n.editor.getCursor(`from`).line:Math.ceil(n.previewMode.getScroll()):t?rl(n.editor.cm):il(n):0}function rl(e){let{y:t,height:n}=e.dom.getBoundingClientRect(),r=t+n/2,i=e.viewportLineBlocks,a=0;return i.forEach(t=>{let n=e.domAtPos(t.from).node,i=(n.nodeName==`#text`?n.parentNode:n).getBoundingClientRect();i.y+i.height/2<=r&&(a=e.state.doc.lineAt(t.from).number)}),Math.max(a-2,0)}function il(e){let t=e.previewMode.renderer,n=t.previewEl,r=n.getBoundingClientRect(),i=r.y+r.height/2,a=n.querySelectorAll(`.markdown-preview-sizer>div[class|=el]`),o=0;return a.forEach(e=>{let{y:n}=e.getBoundingClientRect();if(n<=i){let n=t.getSectionForElement(e);n&&(o=n.lineStart||n.start.line)}}),o}function al(e){let t=null,n=z.headers.length;for(;--n>=0;)if($c(n).line<=e){t=$c(n);break}if(t)return n}var ol=(0,l.debounce)(sl,150,!1);function sl(e){if(Xc.navigator.storeMarkdownState(`scroll`),!Xc.allow_scroll)return;if(!Xc.jumping.isResolved()){Xc.jumping.resolve();return}let t=e.target;if(!t.classList.contains(`markdown-preview-view`)&&!t.classList.contains(`cm-scroller`)&&!t.classList.contains(`outliner-plugin-list-lines-scroller`))return;let n=al(nl(!0,Xc.navigator.view.getMode()===`source`));n!==void 0&&Xc.outlineView?.vueInstance.onPosChange(n)}var cl=class extends qs{constructor(e,t){super(e,t)}async onload(){this.plugin.settings.vimlize_canvas&&vl(this.view)}async install(){let e=this.plugin;e.klasses.canvas||(this.patchCanvas(this.view.canvas),e.klasses.canvas=this.view.constructor),e.registerEvent(ac.on(`canvas-change`,()=>{e.refresh()})),e.registerEvent(ac.on(`canvas-selection-change`,async t=>{if(t.size===0||t.size>1){let t=e.app.workspace.getActiveFileView();if(!t)return;await e.updateNavAndRefresh(t.getViewType(),t);return}let n=[...t][0];if(!Object.prototype.hasOwnProperty.call(n,`nodeEl`))return;let r=n;if(wl(r)&&r.filePath.endsWith(`.md`)){let t=r.child;await e.updateNavAndRefresh(`embed-markdown-file`,t);return}if(Tl(r)){let t=r.child;await e.updateNavAndRefresh(`embed-markdown-text`,t);return}await e.updateNavAndRefresh(`dummy`,null)}))}async jump(e){let t=this.view.canvas.nodes.get(z.headers[e].id);t!==void 0&&(this.view.canvas.zoomToBbox(t.bbox),this.view.canvas.selectOnly(t),this.view.setEphemeralState({focus:!0}))}async jumpWithoutFocus(e){let t=this.view.canvas.nodes.get(z.headers[e].id);t!==void 0&&this.view.canvas.zoomToBbox(t.bbox)}async setHeaders(){z.headers=await this.getHeaders()}async getHeaders(){let e=this.view.canvas.data.nodes;return e?(e=e.filter(e=>this.plugin.settings.shown_node_types.includes(e.type)),ll(e,this.plugin.settings.canvas_sort_by,this.plugin.settings.heading_truncate_length)):[]}async updateHeaders(){await this.setHeaders()}getPath(){return this.view.file?.path??``}getId(){return`canvas`}patchCanvas(e){this.plugin.register(d(e.constructor.prototype,{requestSave(e){return function(...t){return ac.trigger(`canvas-change`),e.apply(this,t)}},updateSelection(e){return function(...t){e.apply(this,t),ac.trigger(`canvas-selection-change`,this.selection)}}}))}};function ll(e,t=`area`,n=20){let r=e.slice().sort((e,n)=>t===`name_asc`?ml(e).localeCompare(ml(n),void 0,{numeric:!0}):t===`name_desc`?ml(n).localeCompare(ml(e),void 0,{numeric:!0}):-fl(e,n)),i=[];for(let e=0;e<r.length;e++)gl(i,r[e]);let a=[];return hl(i,1,(e,t)=>{a.push({level:t,title:ml(e,n),id:e.id,icon:ul(e)})}),a}function ul(e){if(e.type===`group`)return`create-group`;if(e.type===`text`)return`lucide-sticky-note`;if(e.type===`link`)return`lucide-globe-2`;if(e.type===`file`){if(e.file.endsWith(`.md`))return`lucide-file-text`;if(e.file.endsWith(`.mp3`))return`lucide-music-2`;if(e.file.endsWith(`.mp4`))return`lucide-youtube`;if(e.file.endsWith(`.png`)||e.file.endsWith(`.jpg`))return`lucide-file-image`}return`lucide-link`}var dl=e=>e.height*e.width;function fl(e,t){return dl(e)-dl(t)}var pl={};function ml(e,t=20){let n;switch(e.type){case`text`:n=e.text.split(`
`)[0],n=n.slice(n.search(/[^#\s].*/)),n.length>t&&(n=n.substring(0,t)+`...`);break;case`file`:n=e.file.split(`/`).slice(-1)[0];break;case`link`:pl[e.url]?n=pl[e.url]:(n=e.url,(0,l.request)(e.url).then(t=>{pl[e.url]=/<title>(.*)<\/title>/.exec(t)?.[1]||``}).catch(()=>{}));break;case`group`:n=e.label||`Unnamed Group`;break}return n}function hl(e,t,n){for(let r=0;r<e.length;r++)n(e[r].node,t),hl(e[r].children,t+1,n)}function gl(e,t){let n=!1;for(let r=0;r<e.length;r++)e[r].node.type===`group`&&_l(t,e[r].node)&&(n=!0,gl(e[r].children,t));n||e.push({node:t,children:[]})}function _l(e,t){return e.x>=t.x&&e.y>=t.y&&e.x+e.width<=t.x+t.width&&e.y+e.height<=t.y+t.height}function vl(e){if(e.__vimed)return;e.scope?.register([],`Escape`,t=>{yl(t)||(t.preventDefault(),e.canvas.deselectAll())}),e.scope?.register([],`J`,t=>{yl(t)||(t.preventDefault(),xl(e.canvas,`down`))}),e.scope?.register([],`K`,t=>{yl(t)||(t.preventDefault(),xl(e.canvas,`up`))}),e.scope?.register([],`H`,t=>{yl(t)||(t.preventDefault(),xl(e.canvas,`left`))}),e.scope?.register([],`L`,t=>{yl(t)||(t.preventDefault(),xl(e.canvas,`right`))}),e.scope?.register([],`I`,t=>{if(yl(t))return;let n=bl(e.canvas);n&&(t.preventDefault(),n.startEditing())});let t=null;e.scope?.register([],`Z`,n=>{if(!yl(n)){if(n.preventDefault(),t===`Z`){let n=bl(e.canvas);if(!n)return;t=null,e.canvas.zoomToBbox(n.bbox);return}t=`Z`,activeWindow.setTimeout(()=>{t=null},300)}}),e.scope?.register([],`A`,n=>{if(!yl(n)&&(n.preventDefault(),t===`Z`)){t=null,e.canvas.zoomToFit();return}}),e.__vimed=!0}function yl(e){let t=e.targetNode;return t?.instanceOf(HTMLElement)&&t.contentEditable===`true`}function bl(e){let t=[...e.selection];return t.length!==1||e.edges.has(t[0].id)?null:t[0]}function xl(e,t){if(e.selection.size>1)return;if(e.selection.size===0){let t=e.getContainingNodes(e.getViewportBBox());t.length>0&&e.selectOnly(t[0]);return}let n=[...e.selection.values()][0];if(e.edges.has(n.id))return;let r=n,i=r.bbox,a=[...e.nodes.values()].filter(e=>e!==r&&e.unknownData.type!==`group`);switch(t){case`up`:{let e=a.filter(e=>e.bbox.maxY<i.minY),t=e.filter(e=>Sl(e.bbox,i,`x`));a=t.length>0?t.sort((e,t)=>t.bbox.maxY-e.bbox.maxY):e.sort((e,t)=>Cl(e.bbox,i)-Cl(t.bbox,i));break}case`down`:{let e=a.filter(e=>e.bbox.minY>i.maxY),t=e.filter(e=>Sl(e.bbox,i,`x`));a=t.length>0?t.sort((e,t)=>e.bbox.minY-t.bbox.minY):e.sort((e,t)=>Cl(e.bbox,i)-Cl(t.bbox,i));break}case`left`:{let e=a.filter(e=>e.bbox.maxX<i.minX),t=e.filter(e=>Sl(e.bbox,i,`y`));a=t.length>0?t.sort((e,t)=>t.bbox.maxX-e.bbox.maxX):e.sort((e,t)=>Cl(e.bbox,i)-Cl(t.bbox,i));break}case`right`:{let e=a.filter(e=>e.bbox.minX>i.maxX),t=e.filter(e=>Sl(e.bbox,i,`y`));a=t.length>0?t.sort((e,t)=>e.bbox.minX-t.bbox.minX):e.sort((e,t)=>Cl(e.bbox,i)-Cl(t.bbox,i));break}}let o=a[0];o&&(e.selectOnly(o),e.panIntoView(o.bbox))}function Sl(e,t,n){return n===`x`?e.minX<t.maxX&&e.maxX>t.minX:e.minY<t.maxY&&e.maxY>t.minY}function Cl(e,t){let n={x:e.minX+(e.maxX-e.minX)/2,y:e.minY+(e.maxY-e.minY)/2},r={x:t.minX+(t.maxX-t.minX)/2,y:t.minY+(t.maxY-t.minY)/2};return Math.sqrt((n.x-r.x)**2+(n.y-r.y)**2)}function wl(e){return e.unknownData.type===`file`}function Tl(e){return e.unknownData.type===`text`}var El=class extends Qc{getId(){return`kanban`}canDrop=!1;async install(){Qc._installed||=(await super.install(),!0)}async jump(e){activeDocument.querySelectorAll(`.workspace-leaf[style=""] .kanban-plugin__lane-wrapper`)[e]?.scrollIntoView({block:`center`,inline:`center`,behavior:`smooth`})}};function Dl(e){return z.headers[e]}var Ol=class extends qs{constructor(e,t){super(e,t)}getId(){return`embed-markdown-file`}async jump(e){let t=Dl(e).line;this.plugin.startJumping(),this.plugin.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{Al(this.view,{line:t,focus:!0})})}async jumpWithoutFocus(e){let t=Dl(e).line;this.plugin.startJumping(),this.plugin.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{Al(this.view,{line:t})})}async getHeaders(){return this.view.file?(this.plugin.app.metadataCache.getFileCache(this.view.file)?.headings||[]).map(e=>({level:e.level,title:e.heading,line:e.position.start.line,position:e.position})):[]}async setHeaders(){z.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();z.modifyKeys=pc(z.headers,e),z.headers=e}},kl=class extends qs{constructor(e,t){super(e,t)}getId(){return`embed-markdown-text`}async jump(e){let t=Dl(e).line;Al(this.view,{line:t,focus:!0})}async jumpWithoutFocus(e){let t=Dl(e).line;Al(this.view,{line:t})}async getHeaders(){let{headings:e}=await mc(this.plugin.app,this.view.text);return(e||[]).map(e=>({...e,title:e.heading,line:e.position.start.line}))}async setHeaders(){z.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();z.modifyKeys=pc(z.headers,e),z.headers=e}};function Al(e,t){e.getMode()===`source`?(jl(e.editMode.editor,t.line),t.focus&&e.editMode.editor.focus()):(Ml(e.previewMode.renderer,t.line),e.previewMode.containerEl.tabIndex=-1,t.focus&&e.previewMode.containerEl.focus())}function jl(e,t){let n={from:{line:t,ch:0},to:{line:t,ch:e.getLine(t).length}};e.addHighlights([n],`is-flashing`,!0,!0),e.setCursor(n.from),e.scrollIntoView(n,!0)}function Ml(e,t){e.applyScroll(t,{highlight:!0,center:!0})}var Nl=3e3,Pl=class extends qs{allItems=[];view;get pdfViewer(){return this.view.viewer.child?.pdfViewer}constructor(e,t){super(e,t),this.view=t}async ready(){let e=new Gs;this.view.viewer.then(t=>{e.resolve(t)});let t=await Promise.race([e.promise,sleep(3e3).then(()=>null)]);return await this.waitForPdfOutline(),this.view._quietOutlineCache?(this.allItems=this.view._quietOutlineCache.allItems,t):(t?.pdfViewer?.pdfOutlineViewer.allItems&&(this.allItems=t.pdfViewer.pdfOutlineViewer.allItems,await Promise.all(this.allItems.map(async e=>{e.pageNumber=await e.getPageNumber()}))),this.view._quietOutlineCache={allItems:this.allItems},t)}async onload(){let e=await this.ready();e&&this.listenToPageChange(e)}listenToPageChange(e){let t=[...this.allItems].sort((e,t)=>e.pageNumber-t.pageNumber),n=(0,l.debounce)(async e=>{if(t.length===0||z.headers.length===0)return;let n=t.findLastIndex(t=>t.pageNumber<e.pageNumber),r=0;n<t.length-1&&t[n+1].pageNumber===e.pageNumber?r=n+1:n!==-1&&(r=n);let i=z.headers.findIndex(e=>j(e.item)===t[r].item);i!==-1&&this.plugin.outlineView?.vueInstance.onPosChange(i)},50,!0);e.on(`pagechanging`,n),this.register(()=>{try{e.off(`pagechanging`,n)}catch{}})}getId(){return`pdf`}async jump(e){let t=Fl(e).dest;t&&this.pdfViewer?.pdfOutlineViewer.linkService.goToDestination(t)}async getHeaders(){return Il(await this.waitForPdfOutline()||[],1)}async setHeaders(){z.headers=await this.getHeaders()}async updateHeaders(){await this.setHeaders()}waitForPdfOutline(){return new Promise(e=>{let t=this.pdfViewer,n=t?.pdfOutlineViewer;if(!t||!n){e(null);return}if(n.outline){e(n.outline);return}let r=!1,i=n=>{r||(r=!0,window.clearTimeout(a),t.eventBus._off(`outlineloaded`,o),e(n))},a=window.setTimeout(()=>{i(null)},Nl),o=e=>{i(e.outlineCount>0?n.outline:null)};t.eventBus._on(`outlineloaded`,o)})}};function Fl(e){return z.headers[e]}function Il(e,t){let n=[];for(let r of e)n.push(Ll(r,t)),r.items&&n.push(...Il(r.items,t+1));return n}function Ll(e,t){return{level:t,title:e.title,dest:e.dest,item:e}}var Rl={dummy:Js,markdown:Qc,kanban:El,canvas:cl,pdf:Pl,"embed-markdown-file":Ol,"embed-markdown-text":kl};function zl(e){return e in Rl}function Bl(e,t,n){let r=Rl[e];return new r(t,n)}function Vl(e,t,n){return zl(e)?Bl(e,t,n):new Js(t,n)}function Hl(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function Ul(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var Wl=/\s*,(?![^(]*\))\s*/g,Gl=/\s+/g;function Kl(e,t){let n=[];return t.split(Wl).forEach(t=>{let r=Ul(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function ql(e,t){let n=[];return t.split(Wl).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function Jl(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Kl(t,e):ql(t,e))}),t.join(`, `).replace(Gl,` `)}function Yl(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function Xl(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Zl(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function Ql(e){return e?/^\s*@(s|m)/.test(e):!1}var $l=/[A-Z]/g;function eu(e){return e.replace($l,e=>`-`+e.toLowerCase())}function tu(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${eu(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function nu(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function ru(e,t,n,r){if(!t)return``;let i=nu(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=eu(e),t!=null&&o.push(` ${e}${tu(t)}`)}),e&&o.push(`}`),o.join(`
`)}function iu(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))iu(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?iu(r,t,n):r&&n(r)}else e&&n(e)})}function au(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)Ql(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});Ql(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)Ql(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});Ql(e)?o=e:t.push(e)}let s=Jl(t),c=ru(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&iu(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=ru(s,{raw:e},r,i);n.push(t)}else au(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function ou(e,t,n){let r=[];return au(e,[],r,t,n),r.join(`
`)}function su(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<`u`&&(window.__cssrContext={});function cu(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(Yl),t.els=[];else{let e=Xl(n,r);e&&i.includes(e)&&(Yl(e),t.els=i.filter(t=>t!==e))}}function lu(e,t){e.push(t)}function uu(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=su(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=Xl(n,s);if(u!==null&&!a)return u;let d=u??Zl(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),lu(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),lu(t.els,d),d}function du(e){return ou(this,this.instance,e)}function fu(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return uu(this.instance,this,t,r,i,a,o,s,n)}function pu(e={}){let{id:t,parent:n}=e;cu(this.instance,this,t,n)}var mu=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:du,mount:fu,unmount:pu}},hu=function(e,t,n,r){return Array.isArray(t)?mu(e,{$:null},null,t):Array.isArray(n)?mu(e,t,null,n):Array.isArray(r)?mu(e,t,n,r):mu(e,t,n,null)};function gu(e={}){let t={c:((...e)=>hu(t,...e)),use:(e,...n)=>e.install(t,...n),find:Xl,context:{},config:e};return t}function _u(e,t){if(e===void 0)return!1;if(t){let{context:{ids:n}}=t;return n.has(e)}return Xl(e)!==null}var vu=`.n-`,yu=`__`,bu=`--`,xu=gu(),Su=Hl({blockPrefix:vu,elementPrefix:yu,modifierPrefix:bu});xu.use(Su);var{c:V,find:Cu}=xu,{cB:H,cE:U,cM:W,cNotM:wu}=Su;function Tu(e){return V(({props:{bPrefix:e}})=>`${e||vu}modal, ${e||vu}drawer`,[e])}function Eu(e){return V(({props:{bPrefix:e}})=>`${e||vu}popover`,[e])}function G(e,t){return e+(t==="default"?``:t.replace(/^[a-z]/,e=>e.toUpperCase()))}var Du=[],Ou=new WeakMap;function ku(){Du.forEach(e=>e(...Ou.get(e))),Du=[]}function Au(e,...t){Ou.set(e,t),!Du.includes(e)&&Du.push(e)===1&&requestAnimationFrame(ku)}function ju(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Mu(e){return e.composedPath()[0]||null}function Nu(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function Pu(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function Fu(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}var Iu={aliceblue:`#F0F8FF`,antiquewhite:`#FAEBD7`,aqua:`#0FF`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,black:`#000`,blanchedalmond:`#FFEBCD`,blue:`#00F`,blueviolet:`#8A2BE2`,brown:`#A52A2A`,burlywood:`#DEB887`,cadetblue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerblue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,cyan:`#0FF`,darkblue:`#00008B`,darkcyan:`#008B8B`,darkgoldenrod:`#B8860B`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,darkgreen:`#006400`,darkkhaki:`#BDB76B`,darkmagenta:`#8B008B`,darkolivegreen:`#556B2F`,darkorange:`#FF8C00`,darkorchid:`#9932CC`,darkred:`#8B0000`,darksalmon:`#E9967A`,darkseagreen:`#8FBC8F`,darkslateblue:`#483D8B`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,darkturquoise:`#00CED1`,darkviolet:`#9400D3`,deeppink:`#FF1493`,deepskyblue:`#00BFFF`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1E90FF`,firebrick:`#B22222`,floralwhite:`#FFFAF0`,forestgreen:`#228B22`,fuchsia:`#F0F`,gainsboro:`#DCDCDC`,ghostwhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,gray:`#808080`,grey:`#808080`,green:`#008000`,greenyellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotpink:`#FF69B4`,indianred:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderblush:`#FFF0F5`,lawngreen:`#7CFC00`,lemonchiffon:`#FFFACD`,lightblue:`#ADD8E6`,lightcoral:`#F08080`,lightcyan:`#E0FFFF`,lightgoldenrodyellow:`#FAFAD2`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,lightgreen:`#90EE90`,lightpink:`#FFB6C1`,lightsalmon:`#FFA07A`,lightseagreen:`#20B2AA`,lightskyblue:`#87CEFA`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#B0C4DE`,lightyellow:`#FFFFE0`,lime:`#0F0`,limegreen:`#32CD32`,linen:`#FAF0E6`,magenta:`#F0F`,maroon:`#800000`,mediumaquamarine:`#66CDAA`,mediumblue:`#0000CD`,mediumorchid:`#BA55D3`,mediumpurple:`#9370DB`,mediumseagreen:`#3CB371`,mediumslateblue:`#7B68EE`,mediumspringgreen:`#00FA9A`,mediumturquoise:`#48D1CC`,mediumvioletred:`#C71585`,midnightblue:`#191970`,mintcream:`#F5FFFA`,mistyrose:`#FFE4E1`,moccasin:`#FFE4B5`,navajowhite:`#FFDEAD`,navy:`#000080`,oldlace:`#FDF5E6`,olive:`#808000`,olivedrab:`#6B8E23`,orange:`#FFA500`,orangered:`#FF4500`,orchid:`#DA70D6`,palegoldenrod:`#EEE8AA`,palegreen:`#98FB98`,paleturquoise:`#AFEEEE`,palevioletred:`#DB7093`,papayawhip:`#FFEFD5`,peachpuff:`#FFDAB9`,peru:`#CD853F`,pink:`#FFC0CB`,plum:`#DDA0DD`,powderblue:`#B0E0E6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#F00`,rosybrown:`#BC8F8F`,royalblue:`#4169E1`,saddlebrown:`#8B4513`,salmon:`#FA8072`,sandybrown:`#F4A460`,seagreen:`#2E8B57`,seashell:`#FFF5EE`,sienna:`#A0522D`,silver:`#C0C0C0`,skyblue:`#87CEEB`,slateblue:`#6A5ACD`,slategray:`#708090`,slategrey:`#708090`,snow:`#FFFAFA`,springgreen:`#00FF7F`,steelblue:`#4682B4`,tan:`#D2B48C`,teal:`#008080`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,white:`#FFF`,whitesmoke:`#F5F5F5`,yellow:`#FF0`,yellowgreen:`#9ACD32`,transparent:`#0000`};function Lu(e,t,n){t/=100,n/=100;let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Ru(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}var zu=`^\\s*`,Bu=`\\s*$`,Vu=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*`,Hu=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*`,Uu=`([0-9A-Fa-f])`,Wu=`([0-9A-Fa-f]{2})`,Gu=RegExp(`${zu}hsl\\s*\\(${Hu},${Vu},${Vu}\\)${Bu}`),Ku=RegExp(`${zu}hsv\\s*\\(${Hu},${Vu},${Vu}\\)${Bu}`),qu=RegExp(`${zu}hsla\\s*\\(${Hu},${Vu},${Vu},${Hu}\\)${Bu}`),Ju=RegExp(`${zu}hsva\\s*\\(${Hu},${Vu},${Vu},${Hu}\\)${Bu}`),Yu=RegExp(`${zu}rgb\\s*\\(${Hu},${Hu},${Hu}\\)${Bu}`),Xu=RegExp(`${zu}rgba\\s*\\(${Hu},${Hu},${Hu},${Hu}\\)${Bu}`),Zu=RegExp(`${zu}#${Uu}${Uu}${Uu}${Bu}`),Qu=RegExp(`${zu}#${Wu}${Wu}${Wu}${Bu}`),$u=RegExp(`${zu}#${Uu}${Uu}${Uu}${Uu}${Bu}`),ed=RegExp(`${zu}#${Wu}${Wu}${Wu}${Wu}${Bu}`);function td(e){return parseInt(e,16)}function nd(e){try{let t;if(t=qu.exec(e))return[ud(t[1]),fd(t[5]),fd(t[9]),ld(t[13])];if(t=Gu.exec(e))return[ud(t[1]),fd(t[5]),fd(t[9]),1];throw Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(e){throw e}}function rd(e){try{let t;if(t=Ju.exec(e))return[ud(t[1]),fd(t[5]),fd(t[9]),ld(t[13])];if(t=Ku.exec(e))return[ud(t[1]),fd(t[5]),fd(t[9]),1];throw Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(e){throw e}}function id(e){try{let t;if(t=Qu.exec(e))return[td(t[1]),td(t[2]),td(t[3]),1];if(t=Yu.exec(e))return[dd(t[1]),dd(t[5]),dd(t[9]),1];if(t=Xu.exec(e))return[dd(t[1]),dd(t[5]),dd(t[9]),ld(t[13])];if(t=Zu.exec(e))return[td(t[1]+t[1]),td(t[2]+t[2]),td(t[3]+t[3]),1];if(t=ed.exec(e))return[td(t[1]),td(t[2]),td(t[3]),ld(td(t[4])/255)];if(t=$u.exec(e))return[td(t[1]+t[1]),td(t[2]+t[2]),td(t[3]+t[3]),ld(td(t[4]+t[4])/255)];if(e in Iu)return id(Iu[e]);if(Gu.test(e)||qu.test(e)){let[t,n,r,i]=nd(e);return[...Ru(t,n,r),i]}else if(Ku.test(e)||Ju.test(e)){let[t,n,r,i]=rd(e);return[...Lu(t,n,r),i]}throw Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(e){throw e}}function ad(e){return e>1?1:e<0?0:e}function od(e,t,n,r){return`rgba(${dd(e)}, ${dd(t)}, ${dd(n)}, ${ad(r)})`}function sd(e,t,n,r,i){return dd((e*t*(1-r)+n*r)/i)}function K(e,t){Array.isArray(e)||(e=id(e)),Array.isArray(t)||(t=id(t));let n=e[3],r=t[3],i=ld(n+r-n*r);return od(sd(e[0],n,t[0],r,i),sd(e[1],n,t[1],r,i),sd(e[2],n,t[2],r,i),i)}function q(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:id(e);return typeof t.alpha==`number`?od(n,r,i,t.alpha):od(n,r,i,a)}function cd(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:id(e),{lightness:o=1,alpha:s=1}=t;return pd([n*o,r*o,i*o,a*s])}function ld(e){let t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ud(e){let t=Math.round(Number(e));return t>=360||t<0?0:t}function dd(e){let t=Math.round(Number(e));return t>255?255:t<0?0:t}function fd(e){let t=Math.round(Number(e));return t>100?100:t<0?0:t}function pd(e){let[t,n,r]=e;return 3 in e?`rgba(${dd(t)}, ${dd(n)}, ${dd(r)}, ${ld(e[3])})`:`rgba(${dd(t)}, ${dd(n)}, ${dd(r)}, 1)`}function md(e=8){return Math.random().toString(16).slice(2,2+e)}function hd(e,t){let n=[];for(let r=0;r<e;++r)n.push(t);return n}function gd(e){return e.composedPath()[0]}var _d={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function vd(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(gd(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(gd(n))},i=r=>{e&&(t.contains(gd(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function yd(e,t,n){let r=_d[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=vd(e,t,n)),a}function bd(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=yd(e,t,n);return Object.keys(i).forEach(e=>{Cd(e,document,i[e],r)}),!0}return!1}function xd(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=yd(e,t,n);return Object.keys(i).forEach(e=>{wd(e,document,i[e],r)}),!0}return!1}function Sd(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=gd(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,bd(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(xd(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:Cd,off:wd}=Sd();function Td(e){let t=M(!!e.value);if(t.value)return $t(t);let n=nr(e,e=>{e&&(t.value=!0,n())});return $t(t)}function Ed(e){let t=L(e),n=M(t.value);return nr(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}var Dd=typeof window<`u`?document?.fonts?.ready:void 0,Od=!1;Dd===void 0?Od=!0:Dd.then(()=>{Od=!0});function kd(e){if(Od)return;let t=!1;Yr(()=>{Od||Dd?.then(()=>{t||e()})}),Qr(()=>{t=!0})}function Ad(e,t){return nr(e,e=>{e!==void 0&&(t.value=e)}),L(()=>e.value===void 0?t.value:e.value)}function jd(){let e=M(!1);return Yr(()=>{e.value=!0}),$t(e)}var Md=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function Nd(){return Md}function Pd(e){return e}var Fd=Pd(`n-internal-select-menu-body`),Id=Pd(`n-drawer-body`),Ld=Pd(`n-modal-body`),Rd=Pd(`n-popover-body`),zd=`__disabled__`;function Bd(e){let t=F(Ld,null),n=F(Id,null),r=F(Rd,null),i=F(Fd,null),a=M();if(typeof document<`u`){a.value=document.fullscreenElement;let e=()=>{a.value=document.fullscreenElement};Yr(()=>{Cd(`fullscreenchange`,document,e)}),Qr(()=>{wd(`fullscreenchange`,document,e)})}return Ed(()=>{let{to:o}=e;return o===void 0?t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:i?.value?i.value:o??(a.value||`body`):o===!1?zd:o===!0?a.value||`body`:o})}Bd.tdkey=zd,Bd.propTo={type:[String,Object,Boolean],default:void 0};var Vd=typeof document<`u`&&typeof window<`u`;function Hd(e){let t={isDeactivated:!1},n=!1;return Hr(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Ur(()=>{t.isDeactivated=!0,n||=!0}),t}function Ud(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Wd(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(Ha(String(e)));return}if(Array.isArray(e)){Wd(e,t,n);return}if(e.type===ba){if(e.children===null)return;Array.isArray(e.children)&&Wd(e.children,t,n)}else e.type!==Sa&&n.push(e)}}),n}function Gd(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=Wd(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var Kd=null;function qd(){if(Kd===null&&(Kd=document.getElementById(`v-binder-view-measurer`),Kd===null)){Kd=document.createElement(`div`),Kd.id=`v-binder-view-measurer`;let{style:e}=Kd;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(Kd)}return Kd.getBoundingClientRect()}function Jd(e,t){let n=qd();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Yd(e){let t=e.getBoundingClientRect(),n=qd();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Xd(e){return e.nodeType===9?null:e.parentNode}function Zd(e){if(e===null)return null;let t=Xd(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return Zd(t)}var Qd=I({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){Qn(`VBinder`,$a()?.proxy);let t=F(`VBinder`,null),n=M(null),r=r=>{n.value=r,t&&e.syncTargetWithParent&&t.setTargetRef(r)},i=[],a=()=>{let e=n.value;for(;e=Zd(e),e!==null;)i.push(e);for(let e of i)Cd(`scroll`,e,u,!0)},o=()=>{for(let e of i)wd(`scroll`,e,u,!0);i=[]},s=new Set,c=e=>{s.size===0&&a(),s.has(e)||s.add(e)},l=e=>{s.has(e)&&s.delete(e),s.size===0&&o()},u=()=>{Au(d)},d=()=>{s.forEach(e=>e())},f=new Set,p=e=>{f.size===0&&Cd(`resize`,window,h),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&wd(`resize`,window,h)},h=()=>{f.forEach(e=>e())};return Qr(()=>{wd(`resize`,window,h),o()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:l,addResizeListener:p,removeResizeListener:m}},render(){return Ud(`binder`,this.$slots)}}),$d=I({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=F(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?Xn(Gd(`follower`,this.$slots),[[t]]):Gd(`follower`,this.$slots)}});function ef(e,t){console.error(`[vdirs/${e}]: ${t}`)}var tf=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&ef(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},nf=`@@ziContext`,rf={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[nf]={enabled:!!i,initialized:!1},i&&(tf.ensureZIndex(e,r),e[nf].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[nf].enabled;i&&!a&&(tf.ensureZIndex(e,r),e[nf].initialized=!0),e[nf].enabled=!!i},unmounted(e,t){if(!e[nf].initialized)return;let{value:n={}}=t,{zIndex:r}=n;tf.unregister(e,r)}},af=`@css-render/vue3-ssr`;function of(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}function sf(e,t,n){let{styles:r,ids:i}=n;i.has(e)||r!==null&&(i.add(e),r.push(of(e,t)))}var cf=typeof document<`u`;function lf(){if(cf)return;let e=F(af,null);if(e!==null)return{adapter:(t,n)=>sf(t,n,e),context:e}}function uf(e,t){console.error(`[vueuc/${e}]: ${t}`)}function df(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var ff=/\s*,(?![^(]*\))\s*/g,pf=/\s+/g;function mf(e,t){let n=[];return t.split(ff).forEach(t=>{let r=df(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function hf(e,t){let n=[];return t.split(ff).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function gf(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?mf(t,e):hf(t,e))}),t.join(`, `).replace(pf,` `)}function _f(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function vf(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function yf(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function bf(e){return e?/^\s*@(s|m)/.test(e):!1}var xf=/[A-Z]/g;function Sf(e){return e.replace(xf,e=>`-`+e.toLowerCase())}function Cf(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${Sf(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function wf(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function Tf(e,t,n,r){if(!t)return``;let i=wf(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=Sf(e),t!=null&&o.push(` ${e}${Cf(t)}`)}),e&&o.push(`}`),o.join(`
`)}function Ef(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))Ef(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?Ef(r,t,n):r&&n(r)}else e&&n(e)})}function Df(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)bf(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});bf(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)bf(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});bf(e)?o=e:t.push(e)}let s=gf(t),c=Tf(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&Ef(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=Tf(s,{raw:e},r,i);n.push(t)}else Df(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function Of(e,t,n){let r=[];return Df(e,[],r,t,n),r.join(`
`)}typeof window<`u`&&(window.__cssrContext={});function kf(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(_f),t.els=[];else{let e=vf(n,r);e&&i.includes(e)&&(_f(e),t.els=i.filter(t=>t!==e))}}function Af(e,t){e.push(t)}function jf(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=su(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=vf(n,s);if(u!==null&&!a)return u;let d=u??yf(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),Af(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),Af(t.els,d),d}function Mf(e){return Of(this,this.instance,e)}function Nf(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return jf(this.instance,this,t,r,i,a,o,s,n)}function Pf(e={}){let{id:t,parent:n}=e;kf(this.instance,this,t,n)}var Ff=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Mf,mount:Nf,unmount:Pf}},If=function(e,t,n,r){return Array.isArray(t)?Ff(e,{$:null},null,t):Array.isArray(n)?Ff(e,t,null,n):Array.isArray(r)?Ff(e,t,n,r):Ff(e,t,n,null)};function Lf(e={}){let t={c:((...e)=>If(t,...e)),use:(e,...n)=>e.install(t,...n),find:vf,context:{},config:e};return t}var{c:Rf}=Lf(),zf=`vueuc-style`;function Bf(e){return e&-e}var Vf=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=Bf(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=Bf(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Hf=I({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Td(P(e,`show`)),mergedTo:L(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?Ud(`lazy-teleport`,this.$slots):R(_r,{disabled:this.disabled,to:this.mergedTo},Ud(`lazy-teleport`,this.$slots)):null}}),Uf={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Wf={start:`end`,center:`center`,end:`start`},Gf={top:`height`,bottom:`height`,left:`width`,right:`width`},Kf={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},qf={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Jf={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Yf={top:!0,bottom:!1,left:!0,right:!1},Xf={top:`end`,bottom:`start`,left:`end`,right:`start`};function Zf(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Yf[i]?c:-c:o=Yf[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Jf[e],i=Uf[r],a=Gf[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=Wf[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=Wf[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=Uf[e],i=Gf[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Xf[e],l=u(i,e,d)):(c=Xf[r],l=u(i,r,d)))}let f=o;return t[o]<n[Gf[o]]&&t[o]<t[Uf[o]]&&(f=Uf[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function Qf(e,t){return t?qf[e]:Kf[e]}function $f(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var ep=Rf([Rf(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),Rf(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[Rf(`> *`,{pointerEvents:`all`})])]),tp=I({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=F(`VBinder`),n=Ed(()=>e.enabled===void 0?e.show:e.enabled),r=M(null),i=M(null),a=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(c),n.includes(`resize`)&&t.addResizeListener(c)},o=()=>{t.removeScrollListener(c),t.removeResizeListener(c)};Yr(()=>{n.value&&(c(),a())});let s=lf();ep.mount({id:`vueuc/binder`,head:!0,anchorMetaName:zf,ssr:s}),Qr(()=>{o()}),kd(()=>{n.value&&c()});let c=()=>{if(!n.value)return;let a=r.value;if(a===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?Jd(s,c):Yd(o);a.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),a.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;a.setAttribute(`v-placement`,p),l?a.setAttribute(`v-overlap`,``):a.removeAttribute(`v-overlap`);let{style:g}=a;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=Yd(a),v=Yd(i.value),{left:y,top:b,placement:x}=Zf(p,u,_,m,h,l),S=Qf(x,l),{left:C,top:w,transform:T}=$f(x,v,u,b,y,l);a.setAttribute(`v-placement`,x),a.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),a.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),a.style.transform=`translateX(${C}) translateY(${w}) ${T}`,a.style.setProperty(`--v-transform-origin`,S),a.style.transformOrigin=S};nr(n,e=>{e?(a(),l()):o()});let l=()=>{Ln().then(c).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{nr(P(e,t),c)}),[`teleportDisabled`].forEach(t=>{nr(P(e,t),l)}),nr(P(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(c):t.removeResizeListener(c),e.includes(`scroll`)?t.addScrollListener(c):t.removeScrollListener(c)});let u=jd();return{VBinder:t,mergedEnabled:n,offsetContainerRef:i,followerRef:r,mergedTo:Ed(()=>{let{to:t}=e;if(t!==void 0)return t;u.value}),syncPosition:c}},render(){return R(Hf,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=R(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[R(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?Xn(t,[[rf,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}}),np=[],rp=function(){return np.some(function(e){return e.activeTargets.length>0})},ip=function(){return np.some(function(e){return e.skippedTargets.length>0})},ap=`ResizeObserver loop completed with undelivered notifications.`,op=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ap}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ap),window.dispatchEvent(e)},sp;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(sp||={});var cp=function(e){return Object.freeze(e)},lp=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,cp(this)}return e}(),up=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,cp(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),dp=function(e){return e instanceof SVGElement&&`getBBox`in e},fp=function(e){if(dp(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},pp=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},mp=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},hp=typeof window<`u`?window:{},gp=new WeakMap,_p=/auto|scroll/,vp=/^tb|vertical/,yp=/msie|trident/i.test(hp.navigator&&hp.navigator.userAgent),bp=function(e){return parseFloat(e||`0`)},xp=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new lp((n?t:e)||0,(n?e:t)||0)},Sp=cp({devicePixelContentBoxSize:xp(),borderBoxSize:xp(),contentBoxSize:xp(),contentRect:new up(0,0,0,0)}),Cp=function(e,t){if(t===void 0&&(t=!1),gp.has(e)&&!t)return gp.get(e);if(fp(e))return gp.set(e,Sp),Sp;var n=getComputedStyle(e),r=dp(e)&&e.ownerSVGElement&&e.getBBox(),i=!yp&&n.boxSizing===`border-box`,a=vp.test(n.writingMode||``),o=!r&&_p.test(n.overflowY||``),s=!r&&_p.test(n.overflowX||``),c=r?0:bp(n.paddingTop),l=r?0:bp(n.paddingRight),u=r?0:bp(n.paddingBottom),d=r?0:bp(n.paddingLeft),f=r?0:bp(n.borderTopWidth),p=r?0:bp(n.borderRightWidth),m=r?0:bp(n.borderBottomWidth),h=r?0:bp(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:bp(n.width)-S-x,T=r?r.height:bp(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=cp({devicePixelContentBoxSize:xp(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:xp(E,D,a),contentBoxSize:xp(w,T,a),contentRect:new up(d,c,w,T)});return gp.set(e,O),O},wp=function(e,t,n){var r=Cp(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case sp.DEVICE_PIXEL_CONTENT_BOX:return o;case sp.BORDER_BOX:return i;default:return a}},Tp=function(){function e(e){var t=Cp(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=cp([t.borderBoxSize]),this.contentBoxSize=cp([t.contentBoxSize]),this.devicePixelContentBoxSize=cp([t.devicePixelContentBoxSize])}return e}(),Ep=function(e){if(fp(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Dp=function(){var e=1/0,t=[];np.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Tp(t.target),i=Ep(t.target);r.push(n),t.lastReportedSize=wp(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Op=function(e){np.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Ep(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},kp=function(){var e=0;for(Op(e);rp();)e=Dp(),Op(e);return ip()&&op(),e>0},Ap,jp=[],Mp=function(){return jp.splice(0).forEach(function(e){return e()})},Np=function(e){if(!Ap){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Mp()}).observe(n,{characterData:!0}),Ap=function(){n.textContent=`${t?t--:t++}`}}jp.push(e),Ap()},Pp=function(e){Np(function(){requestAnimationFrame(e)})},Fp=0,Ip=function(){return!!Fp},Lp=250,Rp={attributes:!0,characterData:!0,childList:!0,subtree:!0},zp=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Bp=function(e){return e===void 0&&(e=0),Date.now()+e},Vp=!1,Hp=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Lp),!Vp){Vp=!0;var n=Bp(e);Pp(function(){var r=!1;try{r=kp()}finally{if(Vp=!1,e=n-Bp(),!Ip())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Rp)};document.body?t():hp.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),zp.forEach(function(t){return hp.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),zp.forEach(function(t){return hp.removeEventListener(t,e.listener,!0)}),!0)},e}()),Up=function(e){!Fp&&e>0&&Hp.start(),Fp+=e,!Fp&&Hp.stop()},Wp=function(e){return!dp(e)&&!mp(e)&&getComputedStyle(e).display===`inline`},Gp=function(){function e(e,t){this.target=e,this.observedBox=t||sp.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=wp(this.target,this.observedBox,!0);return Wp(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Kp=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),qp=new WeakMap,Jp=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Yp=function(){function e(){}return e.connect=function(e,t){var n=new Kp(e,t);qp.set(e,n)},e.observe=function(e,t,n){var r=qp.get(e),i=r.observationTargets.length===0;Jp(r.observationTargets,t)<0&&(i&&np.push(r),r.observationTargets.push(new Gp(t,n&&n.box)),Up(1),Hp.schedule())},e.unobserve=function(e,t){var n=qp.get(e),r=Jp(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&np.splice(np.indexOf(n),1),n.observationTargets.splice(r,1),Up(-1))},e.disconnect=function(e){var t=this,n=qp.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xp=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Yp.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!pp(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Yp.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!pp(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Yp.unobserve(this,e)},e.prototype.disconnect=function(){Yp.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Zp=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Xp)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Qp=I({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=$a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}Yr(()=>{let e=n.$el;if(e===void 0){uf(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){uf(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Zp.registerHandler(e.nextElementSibling,r),t=!0)}),Qr(()=>{t&&Zp.unregisterHandler(n.$el.nextElementSibling)})},render(){return ai(this.$slots,`default`)}}),$p;function em(){return typeof document>`u`?!1:($p===void 0&&($p=`matchMedia`in window&&window.matchMedia(`(pointer:coarse)`).matches),$p)}var tm;function nm(){return typeof document>`u`?1:(tm===void 0&&(tm=`chrome`in window?window.devicePixelRatio:1),tm)}var rm=`VVirtualListXScroll`;function im({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=M(0),i=M(0),a=L(()=>{let t=e.value;if(t.length===0)return null;let n=new Vf(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return Qn(rm,{startIndexRef:Ed(()=>{let e=a.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),endIndexRef:Ed(()=>{let t=a.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=a.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:i}}var am=I({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:a}=F(rm);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:a,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),om=Rf(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[Rf(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[Rf(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),sm=I({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=lf();om.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:zf,ssr:t}),Yr(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&g({key:n}):g({index:t})});let n=!1,r=!1;Hr(()=>{if(n=!1,!r){r=!0;return}g({top:p.value,left:o.value})}),Ur(()=>{n=!0,r||=!0});let i=Ed(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),a=L(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:o,listWidthRef:s}=im({columnsRef:P(e,`columns`),renderColRef:P(e,`renderCol`),renderItemWithColsRef:P(e,`renderItemWithCols`)}),c=M(null),l=M(void 0),u=new Map,d=L(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Vf(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=u.get(n);a!==void 0&&i.add(t,a)}),i}),f=M(0),p=M(0),m=Ed(()=>Math.max(d.value.getBound(p.value-Nu(e.paddingTop))-1,0)),h=L(()=>{let{value:t}=l;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=m.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),g=(e,t)=>{if(typeof e==`number`){b(e,t,`auto`);return}let{left:n,top:r,index:i,key:o,position:s,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)b(n,r,c);else if(i!==void 0)y(i,c,l);else if(o!==void 0){let e=a.value.get(o);e!==void 0&&y(e,c,l)}else s===`bottom`?b(0,2**53-1,c):s===`top`&&b(0,0,c)},_,v=null;function y(t,n,r){let{value:i}=d,a=i.sum(t)+Nu(e.paddingTop);if(!r)c.value.scrollTo({left:0,top:a,behavior:n});else{_=t,v!==null&&window.clearTimeout(v),v=window.setTimeout(()=>{_=void 0,v=null},16);let{scrollTop:e,offsetHeight:r}=c.value;if(a>e){let o=i.get(t);a+o<=e+r||c.value.scrollTo({left:0,top:a+o-r,behavior:n})}else c.value.scrollTo({left:0,top:a,behavior:n})}}function b(e,t,n){c.value.scrollTo({left:e,top:t,behavior:n})}function x(t,r){if(n||e.ignoreItemResize||O(r.target))return;let{value:i}=d,o=a.value.get(t),s=i.get(o),l=r.borderBoxSize?.[0]?.blockSize??r.contentRect.height;if(l===s)return;l-e.itemSize===0?u.delete(t):u.set(t,l-e.itemSize);let p=l-s;if(p===0)return;i.add(o,p);let m=c.value;if(m!=null){if(_===void 0){let e=i.sum(o);m.scrollTop>e&&m.scrollBy(0,p)}else(o<_||o===_&&l+i.sum(o)>m.scrollTop+m.offsetHeight)&&m.scrollBy(0,p);D()}f.value++}let S=!em(),C=!1;function w(t){var n;(n=e.onScroll)==null||n.call(e,t),(!S||!C)&&D()}function T(t){var n;if((n=e.onWheel)==null||n.call(e,t),S){let e=c.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/nm(),e.scrollLeft+=t.deltaX/nm(),D(),C=!0,Au(()=>{C=!1})}}}function E(t){if(n||O(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===l.value)return}else if(t.contentRect.height===l.value&&t.contentRect.width===s.value)return;l.value=t.contentRect.height,s.value=t.contentRect.width;let{onResize:r}=e;r!==void 0&&r(t)}function D(){let{value:e}=c;e!=null&&(p.value=e.scrollTop,o.value=e.scrollLeft)}function O(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:l,listStyle:{overflow:`auto`},keyToIndex:a,itemsStyle:L(()=>{let{itemResizable:t}=e,n=Pu(d.value.sum());return f.value,[e.itemsStyle,{boxSizing:`content-box`,width:Pu(i.value),height:t?``:n,minHeight:t?n:``,paddingTop:Pu(e.paddingTop),paddingBottom:Pu(e.paddingBottom)}]}),visibleItemsStyle:L(()=>(f.value,{transform:`translateY(${Pu(d.value.sum(m.value))})`})),viewportItems:h,listElRef:c,itemsElRef:M(null),scrollTo:g,handleListResize:E,handleListScroll:w,handleListWheel:T,handleItemResize:x}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return R(Qp,{onResize:this.handleListResize},{default:()=>{var i;return R(`div`,qa(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):R(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[R(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],s=n.get(o),c=r==null?void 0:R(am,{index:s,item:a}),l=i==null?void 0:R(am,{index:s,item:a}),u=this.$slots.default({item:a,renderedCols:c,renderedItemWithCols:l,index:s})[0];return e?R(Qp,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>u}):(u.key=o,u)})}})])])}})}});function cm(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function lm(e){let{left:t,right:n,top:r,bottom:i}=Fu(e);return`${r} ${t} ${i} ${n}`}function um(e,t){console.error(`[naive/${e}]: ${t}`)}function dm(e,t){throw Error(`[naive/${e}]: ${t}`)}function J(e,...t){if(Array.isArray(e))e.forEach(e=>J(e,...t));else return e(...t)}function fm(e){return typeof e==`string`?`s-${e}`:`n-${e}`}function pm(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?Ha(e):typeof e==`number`?Ha(String(e)):null}function mm(e){return e.some(e=>!Na(e)||!(e.type===Sa||e.type===ba&&!mm(e.children)))?e:null}function hm(e,t){return e&&mm(e())||t()}function gm(e,t,n){return e&&mm(e(t))||n(t)}function _m(e,t){return t(e&&mm(e())||null)}function vm(e){return!(e&&mm(e()))}var ym=I({render(){var e;return(e=this.$slots).default?.call(e)}}),bm=Pd(`n-config-provider`);function xm(e={},t={defaultBordered:!0}){let n=F(bm,null);return{inlineThemeDisabled:n?.inlineThemeDisabled,mergedRtlRef:n?.mergedRtlRef,mergedComponentPropsRef:n?.mergedComponentPropsRef,mergedBreakpointsRef:n?.mergedBreakpointsRef,mergedBorderedRef:L(()=>{let{bordered:r}=e;return r===void 0?n?.mergedBorderedRef.value??t.defaultBordered??!0:r}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:un(`n`),namespaceRef:L(()=>n?.mergedNamespaceRef.value)}}function Sm(e,t,n,r){n||dm(`useThemeClass`,`cssVarsRef is not passed`);let i=F(bm,null),a=i?.mergedThemeHashRef,o=i?.styleMountTarget,s=M(``),c=lf(),l,u=`__${e}`,d=()=>{let e=u,i=t?t.value:void 0,d=a?.value;d&&(e+=`-${d}`),i&&(e+=`-${i}`);let{themeOverrides:f,builtinThemeOverrides:p}=r;f&&(e+=`-${su(JSON.stringify(f))}`),p&&(e+=`-${su(JSON.stringify(p))}`),s.value=e,l=()=>{let t=n.value,r=``;for(let e in t)r+=`${e}: ${t[e]};`;V(`.${e}`,r).mount({id:e,ssr:c,parent:o}),l=void 0}};return tr(()=>{d()}),{themeClass:s,onRender:()=>{l?.()}}}var Cm=Pd(`n-form-item`);function wm(e,{defaultSize:t=`medium`,mergedSize:n,mergedDisabled:r}={}){let i=F(Cm,null);Qn(Cm,null);let a=L(n?()=>n(i):()=>{let{size:n}=e;if(n)return n;if(i){let{mergedSize:e}=i;if(e.value!==void 0)return e.value}return t}),o=L(r?()=>r(i):()=>{let{disabled:t}=e;return t===void 0?i?i.disabled.value:!1:t}),s=L(()=>{let{status:t}=e;return t||i?.mergedValidationStatus.value});return Qr(()=>{i&&i.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:o,mergedStatusRef:s,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var Tm={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function Em(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Dm(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Om(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Am(s,e=>e.test(o)):km(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function km(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Am(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jm(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Mm={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Nm=(e,t,n)=>{let r,i=Mm[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},Pm={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Fm=(e,t,n,r)=>Pm[e],Im={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Dm({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Dm({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Dm({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Dm({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Dm({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},Lm={ordinalNumber:jm({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Om({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Om({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Om({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Om({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Om({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},Rm={name:`en-US`,locale:{code:`en-US`,formatDistance:Nm,formatLong:{date:Em({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Em({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Em({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:Fm,localize:Im,match:Lm,options:{weekStartsOn:0,firstWeekContainsDate:1}}},zm=typeof global==`object`&&global&&global.Object===Object&&global,Bm=typeof self==`object`&&self&&self.Object===Object&&self,Vm=zm||Bm||Function(`return this`)(),Hm=Vm.Symbol,Um=Object.prototype,Wm=Um.hasOwnProperty,Gm=Um.toString,Km=Hm?Hm.toStringTag:void 0;function qm(e){var t=Wm.call(e,Km),n=e[Km];try{e[Km]=void 0;var r=!0}catch{}var i=Gm.call(e);return r&&(t?e[Km]=n:delete e[Km]),i}var Jm=Object.prototype.toString;function Ym(e){return Jm.call(e)}var Xm=`[object Null]`,Zm=`[object Undefined]`,Qm=Hm?Hm.toStringTag:void 0;function $m(e){return e==null?e===void 0?Zm:Xm:Qm&&Qm in Object(e)?qm(e):Ym(e)}function eh(e){return typeof e==`object`&&!!e}var th=`[object Symbol]`;function nh(e){return typeof e==`symbol`||eh(e)&&$m(e)==th}function rh(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ih=Array.isArray,ah=1/0,oh=Hm?Hm.prototype:void 0,sh=oh?oh.toString:void 0;function ch(e){if(typeof e==`string`)return e;if(ih(e))return rh(e,ch)+``;if(nh(e))return sh?sh.call(e):``;var t=e+``;return t==`0`&&1/e==-ah?`-0`:t}function lh(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function uh(e){return e}var dh=`[object AsyncFunction]`,fh=`[object Function]`,ph=`[object GeneratorFunction]`,mh=`[object Proxy]`;function hh(e){if(!lh(e))return!1;var t=$m(e);return t==fh||t==ph||t==dh||t==mh}var gh=Vm[`__core-js_shared__`],_h=function(){var e=/[^.]+$/.exec(gh&&gh.keys&&gh.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function vh(e){return!!_h&&_h in e}var yh=Function.prototype.toString;function bh(e){if(e!=null){try{return yh.call(e)}catch{}try{return e+``}catch{}}return``}var xh=/[\\^$.*+?()[\]{}|]/g,Sh=/^\[object .+?Constructor\]$/,Ch=Function.prototype,wh=Object.prototype,Th=Ch.toString,Eh=wh.hasOwnProperty,Dh=RegExp(`^`+Th.call(Eh).replace(xh,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Oh(e){return!lh(e)||vh(e)?!1:(hh(e)?Dh:Sh).test(bh(e))}function kh(e,t){return e?.[t]}function Ah(e,t){var n=kh(e,t);return Oh(n)?n:void 0}var jh=Object.create,Mh=function(){function e(){}return function(t){if(!lh(t))return{};if(jh)return jh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Nh(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ph(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Fh=800,Ih=16,Lh=Date.now;function Rh(e){var t=0,n=0;return function(){var r=Lh(),i=Ih-(r-n);if(n=r,i>0){if(++t>=Fh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zh(e){return function(){return e}}var Bh=function(){try{var e=Ah(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Vh=Rh(Bh?function(e,t){return Bh(e,`toString`,{configurable:!0,enumerable:!1,value:zh(t),writable:!0})}:uh),Hh=9007199254740991,Uh=/^(?:0|[1-9]\d*)$/;function Wh(e,t){var n=typeof e;return t??=Hh,!!t&&(n==`number`||n!=`symbol`&&Uh.test(e))&&e>-1&&e%1==0&&e<t}function Gh(e,t,n){t==`__proto__`&&Bh?Bh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kh(e,t){return e===t||e!==e&&t!==t}var qh=Object.prototype.hasOwnProperty;function Jh(e,t,n){var r=e[t];(!(qh.call(e,t)&&Kh(r,n))||n===void 0&&!(t in e))&&Gh(e,t,n)}function Yh(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Gh(n,s,c):Jh(n,s,c)}return n}var Xh=Math.max;function Zh(e,t,n){return t=Xh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Xh(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Nh(e,this,s)}}function Qh(e,t){return Vh(Zh(e,t,uh),e+``)}var $h=9007199254740991;function eg(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=$h}function tg(e){return e!=null&&eg(e.length)&&!hh(e)}function ng(e,t,n){if(!lh(n))return!1;var r=typeof t;return(r==`number`?tg(n)&&Wh(t,n.length):r==`string`&&t in n)?Kh(n[t],e):!1}function rg(e){return Qh(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&ng(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var ig=Object.prototype;function ag(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ig)}function og(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sg=`[object Arguments]`;function cg(e){return eh(e)&&$m(e)==sg}var lg=Object.prototype,ug=lg.hasOwnProperty,dg=lg.propertyIsEnumerable,fg=cg(function(){return arguments}())?cg:function(e){return eh(e)&&ug.call(e,`callee`)&&!dg.call(e,`callee`)};function pg(){return!1}var mg=typeof exports==`object`&&exports&&!exports.nodeType&&exports,hg=mg&&typeof module==`object`&&module&&!module.nodeType&&module,gg=hg&&hg.exports===mg?Vm.Buffer:void 0,_g=(gg?gg.isBuffer:void 0)||pg,vg=`[object Arguments]`,yg=`[object Array]`,bg=`[object Boolean]`,xg=`[object Date]`,Sg=`[object Error]`,Cg=`[object Function]`,wg=`[object Map]`,Tg=`[object Number]`,Eg=`[object Object]`,Dg=`[object RegExp]`,Og=`[object Set]`,kg=`[object String]`,Ag=`[object WeakMap]`,jg=`[object ArrayBuffer]`,Mg=`[object DataView]`,Ng=`[object Float32Array]`,Pg=`[object Float64Array]`,Fg=`[object Int8Array]`,Ig=`[object Int16Array]`,Lg=`[object Int32Array]`,Rg=`[object Uint8Array]`,zg=`[object Uint8ClampedArray]`,Bg=`[object Uint16Array]`,Vg=`[object Uint32Array]`,Hg={};Hg[Ng]=Hg[Pg]=Hg[Fg]=Hg[Ig]=Hg[Lg]=Hg[Rg]=Hg[zg]=Hg[Bg]=Hg[Vg]=!0,Hg[vg]=Hg[yg]=Hg[jg]=Hg[bg]=Hg[Mg]=Hg[xg]=Hg[Sg]=Hg[Cg]=Hg[wg]=Hg[Tg]=Hg[Eg]=Hg[Dg]=Hg[Og]=Hg[kg]=Hg[Ag]=!1;function Ug(e){return eh(e)&&eg(e.length)&&!!Hg[$m(e)]}function Wg(e){return function(t){return e(t)}}var Gg=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Kg=Gg&&typeof module==`object`&&module&&!module.nodeType&&module,qg=Kg&&Kg.exports===Gg&&zm.process,Jg=function(){try{return Kg&&Kg.require&&Kg.require(`util`).types||qg&&qg.binding&&qg.binding(`util`)}catch{}}(),Yg=Jg&&Jg.isTypedArray,Xg=Yg?Wg(Yg):Ug,Zg=Object.prototype.hasOwnProperty;function Qg(e,t){var n=ih(e),r=!n&&fg(e),i=!n&&!r&&_g(e),a=!n&&!r&&!i&&Xg(e),o=n||r||i||a,s=o?og(e.length,String):[],c=s.length;for(var l in e)(t||Zg.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Wh(l,c)))&&s.push(l);return s}function $g(e,t){return function(n){return e(t(n))}}function e_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var t_=Object.prototype.hasOwnProperty;function n_(e){if(!lh(e))return e_(e);var t=ag(e),n=[];for(var r in e)r==`constructor`&&(t||!t_.call(e,r))||n.push(r);return n}function r_(e){return tg(e)?Qg(e,!0):n_(e)}var i_=Ah(Object,`create`);function a_(){this.__data__=i_?i_(null):{},this.size=0}function o_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var s_=`__lodash_hash_undefined__`,c_=Object.prototype.hasOwnProperty;function l_(e){var t=this.__data__;if(i_){var n=t[e];return n===s_?void 0:n}return c_.call(t,e)?t[e]:void 0}var u_=Object.prototype.hasOwnProperty;function d_(e){var t=this.__data__;return i_?t[e]!==void 0:u_.call(t,e)}var f_=`__lodash_hash_undefined__`;function p_(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=i_&&t===void 0?f_:t,this}function m_(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}m_.prototype.clear=a_,m_.prototype.delete=o_,m_.prototype.get=l_,m_.prototype.has=d_,m_.prototype.set=p_;function h_(){this.__data__=[],this.size=0}function g_(e,t){for(var n=e.length;n--;)if(Kh(e[n][0],t))return n;return-1}var __=Array.prototype.splice;function v_(e){var t=this.__data__,n=g_(t,e);return n<0?!1:(n==t.length-1?t.pop():__.call(t,n,1),--this.size,!0)}function y_(e){var t=this.__data__,n=g_(t,e);return n<0?void 0:t[n][1]}function b_(e){return g_(this.__data__,e)>-1}function x_(e,t){var n=this.__data__,r=g_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function S_(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}S_.prototype.clear=h_,S_.prototype.delete=v_,S_.prototype.get=y_,S_.prototype.has=b_,S_.prototype.set=x_;var C_=Ah(Vm,`Map`);function w_(){this.size=0,this.__data__={hash:new m_,map:new(C_||S_),string:new m_}}function T_(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function E_(e,t){var n=e.__data__;return T_(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function D_(e){var t=E_(this,e).delete(e);return this.size-=+!!t,t}function O_(e){return E_(this,e).get(e)}function k_(e){return E_(this,e).has(e)}function A_(e,t){var n=E_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function j_(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j_.prototype.clear=w_,j_.prototype.delete=D_,j_.prototype.get=O_,j_.prototype.has=k_,j_.prototype.set=A_;function M_(e){return e==null?``:ch(e)}var N_=$g(Object.getPrototypeOf,Object),P_=`[object Object]`,F_=Function.prototype,I_=Object.prototype,L_=F_.toString,R_=I_.hasOwnProperty,z_=L_.call(Object);function B_(e){if(!eh(e)||$m(e)!=P_)return!1;var t=N_(e);if(t===null)return!0;var n=R_.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&L_.call(n)==z_}function V_(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function H_(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:V_(e,t,n)}var U_=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function W_(e){return U_.test(e)}function G_(e){return e.split(``)}var K_=`\\ud800-\\udfff`,q_=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,J_=`\\ufe0e\\ufe0f`,Y_=`[`+K_+`]`,X_=`[`+q_+`]`,Z_=`\\ud83c[\\udffb-\\udfff]`,Q_=`(?:`+X_+`|`+Z_+`)`,$_=`[^`+K_+`]`,ev=`(?:\\ud83c[\\udde6-\\uddff]){2}`,tv=`[\\ud800-\\udbff][\\udc00-\\udfff]`,nv=`\\u200d`,rv=Q_+`?`,iv=`[`+J_+`]?`,av=`(?:`+nv+`(?:`+[$_,ev,tv].join(`|`)+`)`+iv+rv+`)*`,ov=iv+rv+av,sv=`(?:`+[$_+X_+`?`,X_,ev,tv,Y_].join(`|`)+`)`,cv=RegExp(Z_+`(?=`+Z_+`)|`+sv+ov,`g`);function lv(e){return e.match(cv)||[]}function uv(e){return W_(e)?lv(e):G_(e)}function dv(e){return function(t){t=M_(t);var n=W_(t)?uv(t):void 0,r=n?n[0]:t.charAt(0),i=n?H_(n,1).join(``):t.slice(1);return r[e]()+i}}var fv=dv(`toUpperCase`);function pv(){this.__data__=new S_,this.size=0}function mv(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hv(e){return this.__data__.get(e)}function gv(e){return this.__data__.has(e)}var _v=200;function vv(e,t){var n=this.__data__;if(n instanceof S_){var r=n.__data__;if(!C_||r.length<_v-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new j_(r)}return n.set(e,t),this.size=n.size,this}function yv(e){var t=this.__data__=new S_(e);this.size=t.size}yv.prototype.clear=pv,yv.prototype.delete=mv,yv.prototype.get=hv,yv.prototype.has=gv,yv.prototype.set=vv;var bv=typeof exports==`object`&&exports&&!exports.nodeType&&exports,xv=bv&&typeof module==`object`&&module&&!module.nodeType&&module,Sv=xv&&xv.exports===bv?Vm.Buffer:void 0,Cv=Sv?Sv.allocUnsafe:void 0;function wv(e,t){if(t)return e.slice();var n=e.length,r=Cv?Cv(n):new e.constructor(n);return e.copy(r),r}var Tv=Vm.Uint8Array;function Ev(e){var t=new e.constructor(e.byteLength);return new Tv(t).set(new Tv(e)),t}function Dv(e,t){var n=t?Ev(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ov(e){return typeof e.constructor==`function`&&!ag(e)?Mh(N_(e)):{}}function kv(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Av=kv();function jv(e,t,n){(n!==void 0&&!Kh(e[t],n)||n===void 0&&!(t in e))&&Gh(e,t,n)}function Mv(e){return eh(e)&&tg(e)}function Nv(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Pv(e){return Yh(e,r_(e))}function Fv(e,t,n,r,i,a,o){var s=Nv(e,n),c=Nv(t,n),l=o.get(c);if(l){jv(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=ih(c),p=!f&&_g(c),m=!f&&!p&&Xg(c);u=c,f||p||m?ih(s)?u=s:Mv(s)?u=Ph(s):p?(d=!1,u=wv(c,!0)):m?(d=!1,u=Dv(c,!0)):u=[]:B_(c)||fg(c)?(u=s,fg(s)?u=Pv(s):(!lh(s)||hh(s))&&(u=Ov(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),jv(e,n,u)}function Iv(e,t,n,r,i){e!==t&&Av(t,function(a,o){if(i||=new yv,lh(a))Fv(e,t,o,n,Iv,r,i);else{var s=r?r(Nv(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),jv(e,o,s)}},r_)}var Lv=rg(function(e,t,n){Iv(e,t,n)});function Rv(e){let{mergedLocaleRef:t,mergedDateLocaleRef:n}=F(bm,null)||{},r=L(()=>t?.value?.[e]??Tm[e]);return{dateLocaleRef:L(()=>n?.value??Rm),localeRef:r}}var zv=`naive-ui-style`;function Bv(e,t,n){if(!t)return;let r=lf(),i=L(()=>{let{value:n}=t;if(!n)return;let r=n[e];if(r)return r}),a=F(bm,null),o=()=>{tr(()=>{let{value:t}=n,o=`${t}${e}Rtl`;if(_u(o,r))return;let{value:s}=i;s&&s.style.mount({id:o,head:!0,anchorMetaName:zv,props:{bPrefix:t?`.${t}-`:void 0},ssr:r,parent:a?.styleMountTarget})})};return r?o():Jr(o),i}var Vv={fontFamily:`v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMono:`v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace`,fontWeight:`400`,fontWeightStrong:`500`,cubicBezierEaseInOut:`cubic-bezier(.4, 0, .2, 1)`,cubicBezierEaseOut:`cubic-bezier(0, 0, .2, 1)`,cubicBezierEaseIn:`cubic-bezier(.4, 0, 1, 1)`,borderRadius:`3px`,borderRadiusSmall:`2px`,fontSize:`14px`,fontSizeMini:`12px`,fontSizeTiny:`12px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,lineHeight:`1.6`,heightMini:`16px`,heightTiny:`22px`,heightSmall:`28px`,heightMedium:`34px`,heightLarge:`40px`,heightHuge:`46px`},{fontSize:Hv,fontFamily:Uv,lineHeight:Wv}=Vv,Gv=V(`body`,`
margin: 0;
font-size: ${Hv};
font-family: ${Uv};
line-height: ${Wv};
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`,[V(`input`,`
font-family: inherit;
font-size: inherit;
`)]);function Kv(e,t,n){if(!t)return;let r=lf(),i=F(bm,null),a=()=>{let a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:zv,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget}),i?.preflightStyleDisabled||Gv.mount({id:`n-global`,head:!0,anchorMetaName:zv,ssr:r,parent:i?.styleMountTarget})};r?a():Jr(a)}function qv(e){return e}function Jv(e,t,n,r,i,a){let o=lf(),s=F(bm,null);if(n){let e=()=>{let e=a?.value;n.mount({id:e===void 0?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:zv,ssr:o,parent:s?.styleMountTarget}),s?.preflightStyleDisabled||Gv.mount({id:`n-global`,head:!0,anchorMetaName:zv,ssr:o,parent:s?.styleMountTarget})};o?e():Jr(e)}return L(()=>{let{theme:{common:t,self:n,peers:a={}}={},themeOverrides:o={},builtinThemeOverrides:c={}}=i,{common:l,peers:u}=o,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=s?.mergedThemeRef.value||{},{common:h=void 0,[e]:g={}}=s?.mergedThemeOverridesRef.value||{},{common:_,peers:v={}}=g,y=Lv({},t||f||d||r.common,h,_,l);return{common:y,self:Lv((n||p||r.self)?.(y),c,g,o),peers:Lv({},r.peers,m,a),peerOverrides:Lv({},c.peers,v,u)}})}Jv.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Yv=H(`base-icon`,`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
`,[V(`svg`,`
height: 1em;
width: 1em;
`)]),Xv=I({name:`BaseIcon`,props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Kv(`-base-icon`,Yv,P(e,`clsPrefix`))},render(){return R(`i`,{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Zv=I({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=jd();return()=>R(jo,{name:`icon-switch-transition`,appear:n.value},t)}});function Qv(e,t){let n=I({render(){return t()}});return I({name:fv(e),setup(){let t=F(bm,null)?.mergedIconsRef;return()=>{let r=t?.value?.[e];return r?r():R(n,null)}}})}var $v=I({name:`ChevronDown`,render(){return R(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},R(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),ey=Qv(`clear`,()=>R(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},R(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},R(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},R(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),ty=I({name:`Empty`,render(){return R(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},R(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),R(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ny=I({name:`Eye`,render(){return R(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},R(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),R(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),ry=I({name:`EyeOff`,render(){return R(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},R(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),R(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),R(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),R(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),R(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),iy=I({name:`Switcher`,render(){return R(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},R(`path`,{d:`M12 8l10 8l-10 8z`}))}}),{cubicBezierEaseInOut:ay}=Vv;function oy({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${ay} !important`}={}){return[V(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),V(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),V(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var sy=H(`base-clear`,`
flex-shrink: 0;
height: 1em;
width: 1em;
position: relative;
`,[V(`>`,[U(`clear`,`
font-size: var(--n-clear-size);
height: 1em;
width: 1em;
cursor: pointer;
color: var(--n-clear-color);
transition: color .3s var(--n-bezier);
display: flex;
`,[V(`&:hover`,`
color: var(--n-clear-color-hover)!important;
`),V(`&:active`,`
color: var(--n-clear-color-pressed)!important;
`)]),U(`placeholder`,`
display: flex;
`),U(`clear, placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[oy({originalTransform:`translateX(-50%) translateY(-50%)`,left:`50%`,top:`50%`})])])]),cy=I({name:`BaseClear`,props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Kv(`-base-clear`,sy,P(e,`clsPrefix`)),{handleMouseDown(e){e.preventDefault()}}},render(){let{clsPrefix:e}=this;return R(`div`,{class:`${e}-base-clear`},R(Zv,null,{default:()=>{var t;return this.show?R(`div`,{key:`dismiss`,class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},hm(this.$slots.icon,()=>[R(Xv,{clsPrefix:e},{default:()=>R(ey,null)})])):R(`div`,{key:`icon`,class:`${e}-base-clear__placeholder`},(t=this.$slots).placeholder?.call(t))}}))}}),ly=I({name:`FadeInExpandTransition`,props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function o(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:s,width:c,appear:l,mode:u}=e,d=s?ks:jo,f={name:c?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:l,onEnter:a,onAfterEnter:o,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return s||(f.mode=u),R(d,f,t)}}}),uy=V([V(`@keyframes rotator`,`
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}`),H(`base-loading`,`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[U(`transition-wrapper`,`
position: absolute;
width: 100%;
height: 100%;
`,[oy()]),U(`placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[oy({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),U(`container`,`
animation: rotator 3s linear infinite both;
`,[U(`icon`,`
height: 1em;
width: 1em;
`)])])]),dy=`1.6s`,fy=I({name:`BaseLoading`,props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},{strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}}),setup(e){Kv(`-base-loading`,uy,P(e,`clsPrefix`))},render(){let{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:i}=this,a=t/i;return R(`div`,{class:`${e}-base-loading`,role:`img`,"aria-label":`loading`},R(Zv,null,{default:()=>this.show?R(`div`,{key:`icon`,class:`${e}-base-loading__transition-wrapper`},R(`div`,{class:`${e}-base-loading__container`},R(`svg`,{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r}},R(`g`,null,R(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};270 ${a} ${a}`,begin:`0s`,dur:dy,fill:`freeze`,repeatCount:`indefinite`}),R(`circle`,{class:`${e}-base-loading__icon`,fill:`none`,stroke:`currentColor`,"stroke-width":n,"stroke-linecap":`round`,cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},R(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:`0s`,dur:dy,fill:`freeze`,repeatCount:`indefinite`}),R(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*t};${1.42*t};${5.67*t}`,begin:`0s`,dur:dy,fill:`freeze`,repeatCount:`indefinite`})))))):R(`div`,{key:`placeholder`,class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:py}=Vv;function my({name:e=`fade-in`,enterDuration:t=`0.2s`,leaveDuration:n=`0.2s`,enterCubicBezier:r=py,leaveCubicBezier:i=py}={}){return[V(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),V(`&.${e}-transition-leave-active`,{transition:`all ${n} ${i}!important`}),V(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),V(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var Y={neutralBase:`#000`,neutralInvertBase:`#fff`,neutralTextBase:`#fff`,neutralPopover:`rgb(72, 72, 78)`,neutralCard:`rgb(24, 24, 28)`,neutralModal:`rgb(44, 44, 50)`,neutralBody:`rgb(16, 16, 20)`,alpha1:`0.9`,alpha2:`0.82`,alpha3:`0.52`,alpha4:`0.38`,alpha5:`0.28`,alphaClose:`0.52`,alphaDisabled:`0.38`,alphaDisabledInput:`0.06`,alphaPending:`0.09`,alphaTablePending:`0.06`,alphaTableStriped:`0.05`,alphaPressed:`0.05`,alphaAvatar:`0.18`,alphaRail:`0.2`,alphaProgressRail:`0.12`,alphaBorder:`0.24`,alphaDivider:`0.09`,alphaInput:`0.1`,alphaAction:`0.06`,alphaTab:`0.04`,alphaScrollbar:`0.2`,alphaScrollbarHover:`0.3`,alphaCode:`0.12`,alphaTag:`0.2`,primaryHover:`#7fe7c4`,primaryDefault:`#63e2b7`,primaryActive:`#5acea7`,primarySuppl:`rgb(42, 148, 125)`,infoHover:`#8acbec`,infoDefault:`#70c0e8`,infoActive:`#66afd3`,infoSuppl:`rgb(56, 137, 197)`,errorHover:`#e98b8b`,errorDefault:`#e88080`,errorActive:`#e57272`,errorSuppl:`rgb(208, 58, 82)`,warningHover:`#f5d599`,warningDefault:`#f2c97d`,warningActive:`#e6c260`,warningSuppl:`rgb(240, 138, 0)`,successHover:`#7fe7c4`,successDefault:`#63e2b7`,successActive:`#5acea7`,successSuppl:`rgb(42, 148, 125)`},hy=id(Y.neutralBase),gy=id(Y.neutralInvertBase),_y=`rgba(${gy.slice(0,3).join(`, `)}, `;function vy(e){return`${_y+String(e)})`}function yy(e){let t=Array.from(gy);return t[3]=Number(e),K(hy,t)}var X=Object.assign(Object.assign({name:`common`},Vv),{baseColor:Y.neutralBase,primaryColor:Y.primaryDefault,primaryColorHover:Y.primaryHover,primaryColorPressed:Y.primaryActive,primaryColorSuppl:Y.primarySuppl,infoColor:Y.infoDefault,infoColorHover:Y.infoHover,infoColorPressed:Y.infoActive,infoColorSuppl:Y.infoSuppl,successColor:Y.successDefault,successColorHover:Y.successHover,successColorPressed:Y.successActive,successColorSuppl:Y.successSuppl,warningColor:Y.warningDefault,warningColorHover:Y.warningHover,warningColorPressed:Y.warningActive,warningColorSuppl:Y.warningSuppl,errorColor:Y.errorDefault,errorColorHover:Y.errorHover,errorColorPressed:Y.errorActive,errorColorSuppl:Y.errorSuppl,textColorBase:Y.neutralTextBase,textColor1:vy(Y.alpha1),textColor2:vy(Y.alpha2),textColor3:vy(Y.alpha3),textColorDisabled:vy(Y.alpha4),placeholderColor:vy(Y.alpha4),placeholderColorDisabled:vy(Y.alpha5),iconColor:vy(Y.alpha4),iconColorDisabled:vy(Y.alpha5),iconColorHover:vy(Number(Y.alpha4)*1.25),iconColorPressed:vy(Number(Y.alpha4)*.8),opacity1:Y.alpha1,opacity2:Y.alpha2,opacity3:Y.alpha3,opacity4:Y.alpha4,opacity5:Y.alpha5,dividerColor:vy(Y.alphaDivider),borderColor:vy(Y.alphaBorder),closeIconColorHover:vy(Number(Y.alphaClose)),closeIconColor:vy(Number(Y.alphaClose)),closeIconColorPressed:vy(Number(Y.alphaClose)),closeColorHover:`rgba(255, 255, 255, .12)`,closeColorPressed:`rgba(255, 255, 255, .08)`,clearColor:vy(Y.alpha4),clearColorHover:cd(vy(Y.alpha4),{alpha:1.25}),clearColorPressed:cd(vy(Y.alpha4),{alpha:.8}),scrollbarColor:vy(Y.alphaScrollbar),scrollbarColorHover:vy(Y.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:vy(Y.alphaProgressRail),railColor:vy(Y.alphaRail),popoverColor:Y.neutralPopover,tableColor:Y.neutralCard,cardColor:Y.neutralCard,modalColor:Y.neutralModal,bodyColor:Y.neutralBody,tagColor:yy(Y.alphaTag),avatarColor:vy(Y.alphaAvatar),invertedColor:Y.neutralBase,inputColor:vy(Y.alphaInput),codeColor:vy(Y.alphaCode),tabColor:vy(Y.alphaTab),actionColor:vy(Y.alphaAction),tableHeaderColor:vy(Y.alphaAction),hoverColor:vy(Y.alphaPending),tableColorHover:vy(Y.alphaTablePending),tableColorStriped:vy(Y.alphaTableStriped),pressedColor:vy(Y.alphaPressed),opacityDisabled:Y.alphaDisabled,inputColorDisabled:vy(Y.alphaDisabledInput),buttonColor2:`rgba(255, 255, 255, .08)`,buttonColor2Hover:`rgba(255, 255, 255, .12)`,buttonColor2Pressed:`rgba(255, 255, 255, .08)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),Z={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},by=id(Z.neutralBase),xy=id(Z.neutralInvertBase),Sy=`rgba(${xy.slice(0,3).join(`, `)}, `;function Cy(e){return`${Sy+String(e)})`}function wy(e){let t=Array.from(xy);return t[3]=Number(e),K(by,t)}var Ty=Object.assign(Object.assign({name:`common`},Vv),{baseColor:Z.neutralBase,primaryColor:Z.primaryDefault,primaryColorHover:Z.primaryHover,primaryColorPressed:Z.primaryActive,primaryColorSuppl:Z.primarySuppl,infoColor:Z.infoDefault,infoColorHover:Z.infoHover,infoColorPressed:Z.infoActive,infoColorSuppl:Z.infoSuppl,successColor:Z.successDefault,successColorHover:Z.successHover,successColorPressed:Z.successActive,successColorSuppl:Z.successSuppl,warningColor:Z.warningDefault,warningColorHover:Z.warningHover,warningColorPressed:Z.warningActive,warningColorSuppl:Z.warningSuppl,errorColor:Z.errorDefault,errorColorHover:Z.errorHover,errorColorPressed:Z.errorActive,errorColorSuppl:Z.errorSuppl,textColorBase:Z.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:wy(Z.alpha4),placeholderColor:wy(Z.alpha4),placeholderColorDisabled:wy(Z.alpha5),iconColor:wy(Z.alpha4),iconColorHover:cd(wy(Z.alpha4),{lightness:.75}),iconColorPressed:cd(wy(Z.alpha4),{lightness:.9}),iconColorDisabled:wy(Z.alpha5),opacity1:Z.alpha1,opacity2:Z.alpha2,opacity3:Z.alpha3,opacity4:Z.alpha4,opacity5:Z.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:wy(Number(Z.alphaClose)),closeIconColorHover:wy(Number(Z.alphaClose)),closeIconColorPressed:wy(Number(Z.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:wy(Z.alpha4),clearColorHover:cd(wy(Z.alpha4),{lightness:.75}),clearColorPressed:cd(wy(Z.alpha4),{lightness:.9}),scrollbarColor:Cy(Z.alphaScrollbar),scrollbarColorHover:Cy(Z.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:wy(Z.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Z.neutralPopover,tableColor:Z.neutralCard,cardColor:Z.neutralCard,modalColor:Z.neutralModal,bodyColor:Z.neutralBody,tagColor:`#eee`,avatarColor:wy(Z.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:wy(Z.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:Z.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),Ey={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function Dy(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:i,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},Ey),{height:r,width:i,borderRadius:a,color:t,colorHover:n})}var Oy={name:`Scrollbar`,common:Ty,self:Dy},ky={name:`Scrollbar`,common:X,self:Dy},Ay=H(`scrollbar`,`
overflow: hidden;
position: relative;
z-index: auto;
height: 100%;
width: 100%;
`,[V(`>`,[H(`scrollbar-container`,`
width: 100%;
overflow: scroll;
height: 100%;
min-height: inherit;
max-height: inherit;
scrollbar-width: none;
`,[V(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
width: 0;
height: 0;
display: none;
`),V(`>`,[H(`scrollbar-content`,`
box-sizing: border-box;
min-width: 100%;
`)])])]),V(`>, +`,[H(`scrollbar-rail`,`
position: absolute;
pointer-events: none;
user-select: none;
background: var(--n-scrollbar-rail-color);
-webkit-user-select: none;
`,[W(`horizontal`,`
height: var(--n-scrollbar-height);
`,[V(`>`,[U(`scrollbar`,`
height: var(--n-scrollbar-height);
border-radius: var(--n-scrollbar-border-radius);
right: 0;
`)])]),W(`horizontal--top`,`
top: var(--n-scrollbar-rail-top-horizontal-top);
right: var(--n-scrollbar-rail-right-horizontal-top);
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
left: var(--n-scrollbar-rail-left-horizontal-top);
`),W(`horizontal--bottom`,`
top: var(--n-scrollbar-rail-top-horizontal-bottom);
right: var(--n-scrollbar-rail-right-horizontal-bottom);
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
left: var(--n-scrollbar-rail-left-horizontal-bottom);
`),W(`vertical`,`
width: var(--n-scrollbar-width);
`,[V(`>`,[U(`scrollbar`,`
width: var(--n-scrollbar-width);
border-radius: var(--n-scrollbar-border-radius);
bottom: 0;
`)])]),W(`vertical--left`,`
top: var(--n-scrollbar-rail-top-vertical-left);
right: var(--n-scrollbar-rail-right-vertical-left);
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
left: var(--n-scrollbar-rail-left-vertical-left);
`),W(`vertical--right`,`
top: var(--n-scrollbar-rail-top-vertical-right);
right: var(--n-scrollbar-rail-right-vertical-right);
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
left: var(--n-scrollbar-rail-left-vertical-right);
`),W(`disabled`,[V(`>`,[U(`scrollbar`,`pointer-events: none;`)])]),V(`>`,[U(`scrollbar`,`
z-index: 1;
position: absolute;
cursor: pointer;
pointer-events: all;
background-color: var(--n-scrollbar-color);
transition: background-color .2s var(--n-scrollbar-bezier);
`,[my(),V(`&:hover`,`background-color: var(--n-scrollbar-color-hover);`)])])])])]),jy=I({name:`Scrollbar`,props:Object.assign(Object.assign({},Jv.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:`hover`},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}}),inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=xm(e),i=Bv(`Scrollbar`,r,t),a=M(null),o=M(null),s=M(null),c=M(null),l=M(null),u=M(null),d=M(null),f=M(null),p=M(null),m=M(null),h=M(null),g=M(0),_=M(0),v=M(!1),y=M(!1),b=!1,x=!1,S,C,w=0,T=0,E=0,D=0,O=Nd(),k=Jv(`Scrollbar`,`-scrollbar`,Ay,Oy,e,t),ee=L(()=>{let{value:e}=f,{value:t}=u,{value:n}=m;return e===null||t===null||n===null?0:Math.min(e,n*e/t+Nu(k.value.self.width)*1.5)}),A=L(()=>`${ee.value}px`),te=L(()=>{let{value:e}=p,{value:t}=d,{value:n}=h;return e===null||t===null||n===null?0:n*e/t+Nu(k.value.self.height)*1.5}),ne=L(()=>`${te.value}px`),re=L(()=>{let{value:e}=f,{value:t}=g,{value:n}=u,{value:r}=m;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-ee.value):0}}),ie=L(()=>`${re.value}px`),ae=L(()=>{let{value:e}=p,{value:t}=_,{value:n}=d,{value:r}=h;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-te.value):0}}),oe=L(()=>`${ae.value}px`),se=L(()=>{let{value:e}=f,{value:t}=u;return e!==null&&t!==null&&t>e}),ce=L(()=>{let{value:e}=p,{value:t}=d;return e!==null&&t!==null&&t>e}),le=L(()=>{let{trigger:t}=e;return t===`none`||v.value}),ue=L(()=>{let{trigger:t}=e;return t===`none`||y.value}),de=L(()=>{let{container:t}=e;return t?t():o.value}),fe=L(()=>{let{content:t}=e;return t?t():s.value}),pe=(t,n)=>{if(!e.scrollable)return;if(typeof t==`number`){ve(t,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=t;(r!==void 0||i!==void 0)&&ve(r??0,i??0,0,!1,c),l===void 0?a!==void 0&&o!==void 0?ve(0,a*o,o,u,c):s===`bottom`?ve(0,2**53-1,0,!1,c):s===`top`&&ve(0,0,0,!1,c):ve(0,l.offsetTop,l.offsetHeight,u,c)},me=Hd(()=>{e.container||pe({top:g.value,left:_.value})}),he=()=>{me.isDeactivated||Ae()},ge=t=>{if(me.isDeactivated)return;let{onResize:n}=e;n&&n(t),Ae()},_e=(t,n)=>{if(!e.scrollable)return;let{value:r}=de;r&&(typeof t==`object`?r.scrollBy(t):r.scrollBy(t,n||0))};function ve(e,t,n,r,i){let{value:a}=de;if(a){if(r){let{scrollTop:r,offsetHeight:o}=a;if(t>r){t+n<=r+o||a.scrollTo({left:e,top:t+n-o,behavior:i});return}}a.scrollTo({left:e,top:t,behavior:i})}}function ye(){we(),Te(),Ae()}function be(){xe()}function xe(){Se(),Ce()}function Se(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{y.value=!1},e.duration)}function Ce(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{v.value=!1},e.duration)}function we(){S!==void 0&&window.clearTimeout(S),v.value=!0}function Te(){C!==void 0&&window.clearTimeout(C),y.value=!0}function Ee(t){let{onScroll:n}=e;n&&n(t),De()}function De(){let{value:e}=de;e&&(g.value=e.scrollTop,_.value=e.scrollLeft*(i?.value?-1:1))}function Oe(){let{value:e}=fe;e&&(u.value=e.offsetHeight,d.value=e.offsetWidth);let{value:t}=de;t&&(f.value=t.offsetHeight,p.value=t.offsetWidth);let{value:n}=l,{value:r}=c;n&&(h.value=n.offsetWidth),r&&(m.value=r.offsetHeight)}function ke(){let{value:e}=de;e&&(g.value=e.scrollTop,_.value=e.scrollLeft*(i?.value?-1:1),f.value=e.offsetHeight,p.value=e.offsetWidth,u.value=e.scrollHeight,d.value=e.scrollWidth);let{value:t}=l,{value:n}=c;t&&(h.value=t.offsetWidth),n&&(m.value=n.offsetHeight)}function Ae(){e.scrollable&&(e.useUnifiedContainer?ke():(Oe(),De()))}function je(e){return!a.value?.contains(Mu(e))}function Me(e){e.preventDefault(),e.stopPropagation(),x=!0,Cd(`mousemove`,window,Ne,!0),Cd(`mouseup`,window,Pe,!0),T=_.value,E=i?.value?window.innerWidth-e.clientX:e.clientX}function Ne(t){if(!x)return;S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C);let{value:n}=p,{value:r}=d,{value:a}=te;if(n===null||r===null)return;let o=(i?.value?window.innerWidth-t.clientX-E:t.clientX-E)*(r-n)/(n-a),s=r-n,c=T+o;c=Math.min(s,c),c=Math.max(c,0);let{value:l}=de;if(l){l.scrollLeft=c*(i?.value?-1:1);let{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function Pe(e){e.preventDefault(),e.stopPropagation(),wd(`mousemove`,window,Ne,!0),wd(`mouseup`,window,Pe,!0),x=!1,Ae(),je(e)&&xe()}function Fe(e){e.preventDefault(),e.stopPropagation(),b=!0,Cd(`mousemove`,window,Ie,!0),Cd(`mouseup`,window,Le,!0),w=g.value,D=e.clientY}function Ie(e){if(!b)return;S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C);let{value:t}=f,{value:n}=u,{value:r}=ee;if(t===null||n===null)return;let i=(e.clientY-D)*(n-t)/(t-r),a=n-t,o=w+i;o=Math.min(a,o),o=Math.max(o,0);let{value:s}=de;s&&(s.scrollTop=o)}function Le(e){e.preventDefault(),e.stopPropagation(),wd(`mousemove`,window,Ie,!0),wd(`mouseup`,window,Le,!0),b=!1,Ae(),je(e)&&xe()}tr(()=>{let{value:e}=ce,{value:n}=se,{value:r}=t,{value:i}=l,{value:a}=c;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(n?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),Yr(()=>{e.container||Ae()}),Qr(()=>{S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C),wd(`mousemove`,window,Ie,!0),wd(`mouseup`,window,Le,!0)});let Re=L(()=>{let{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:n,height:r,width:a,borderRadius:o,railInsetHorizontalTop:s,railInsetHorizontalBottom:c,railInsetVerticalRight:l,railInsetVerticalLeft:u,railColor:d}}=k.value,{top:f,right:p,bottom:m,left:h}=Fu(s),{top:g,right:_,bottom:v,left:y}=Fu(c),{top:b,right:x,bottom:S,left:C}=Fu(i?.value?lm(l):l),{top:w,right:T,bottom:E,left:D}=Fu(i?.value?lm(u):u);return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":n,"--n-scrollbar-border-radius":o,"--n-scrollbar-width":a,"--n-scrollbar-height":r,"--n-scrollbar-rail-top-horizontal-top":f,"--n-scrollbar-rail-right-horizontal-top":p,"--n-scrollbar-rail-bottom-horizontal-top":m,"--n-scrollbar-rail-left-horizontal-top":h,"--n-scrollbar-rail-top-horizontal-bottom":g,"--n-scrollbar-rail-right-horizontal-bottom":_,"--n-scrollbar-rail-bottom-horizontal-bottom":v,"--n-scrollbar-rail-left-horizontal-bottom":y,"--n-scrollbar-rail-top-vertical-right":b,"--n-scrollbar-rail-right-vertical-right":x,"--n-scrollbar-rail-bottom-vertical-right":S,"--n-scrollbar-rail-left-vertical-right":C,"--n-scrollbar-rail-top-vertical-left":w,"--n-scrollbar-rail-right-vertical-left":T,"--n-scrollbar-rail-bottom-vertical-left":E,"--n-scrollbar-rail-left-vertical-left":D,"--n-scrollbar-rail-color":d}}),ze=n?Sm(`scrollbar`,void 0,Re,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:_e,sync:Ae,syncUnifiedContainer:ke,handleMouseEnterWrapper:ye,handleMouseLeaveWrapper:be}),{mergedClsPrefix:t,rtlEnabled:i,containerScrollTop:g,wrapperRef:a,containerRef:o,contentRef:s,yRailRef:c,xRailRef:l,needYBar:se,needXBar:ce,yBarSizePx:A,xBarSizePx:ne,yBarTopPx:ie,xBarLeftPx:oe,isShowXBar:le,isShowYBar:ue,isIos:O,handleScroll:Ee,handleContentResize:he,handleContainerResize:ge,handleYScrollMouseDown:Fe,handleXScrollMouseDown:Me,cssVars:n?void 0:Re,themeClass:ze?.themeClass,onRender:ze?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:o,xScrollable:s}=this;if(!this.scrollable)return e.default?.call(e);let c=this.trigger===`none`,l=(e,n)=>R(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${a}`,e],"data-scrollbar-rail":!0,style:[n||``,this.verticalRailStyle],"aria-hidden":!0},R(c?ym:jo,c?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?R(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var a;return(a=this.onRender)==null||a.call(this),R(`div`,qa(this.$attrs,{role:`none`,ref:`wrapperRef`,class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.call(e):R(`div`,{role:`none`,ref:`containerRef`,class:[`${t}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},R(Qp,{onResize:this.handleContentResize},{default:()=>R(`div`,{ref:`contentRef`,role:`none`,style:[{width:this.xScrollable?`fit-content`:null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),i?null:l(void 0,void 0),s&&R(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${o}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},R(c?ym:jo,c?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?R(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},d=this.container?u():R(Qp,{onResize:this.handleContainerResize},{default:u});return i?R(ba,null,d,l(this.themeClass,this.cssVars)):d}}),My=jy;function Ny(e){return Array.isArray(e)?e:[e]}var Py={STOP:`STOP`};function Fy(e,t){let n=t(e);e.children!==void 0&&n!==Py.STOP&&e.children.forEach(e=>Fy(e,t))}function Iy(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function Ly(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function Ry(e){return e.children}function zy(e){return e.key}function By(){return!1}function Vy(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function Hy(e){return e.disabled===!0}function Uy(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Wy(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function Gy(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Ky(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function qy(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function Jy(e){return e?.type===`group`}function Yy(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var Xy=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Zy(e,t,n,r){return tb(t.concat(e),n,r,!1)}function Qy(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function $y(e,t,n,r){let i=tb(t,n,r,!1),a=tb(e,n,r,!0),o=Qy(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function eb(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:qy(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Ky(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?tb(n,t,l,!1):Zy(r,n,t,l):$y(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function tb(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&Fy(t,e=>{if(e.disabled)return Py.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Uy(e.rawNode,a))){if(r)return Py.STOP;if(!n)throw new Xy}})}),s}function nb(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function rb(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ib(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function ab(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?ob:ib,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=cb(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=sb(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function ob(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function sb(e){return e.parent}function cb(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=cb(n,t);if(e!==null)return e}else return n}}return null}var lb={getChild(){return this.ignored?null:cb(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return ab(this,`next`,e)},getPrev(e={}){return ab(this,`prev`,e)}};function ub(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function db(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function fb(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=fb(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function pb(e,t={}){let n=new Map,r=new Map,{getDisabled:i=Hy,getIgnored:a=By,getIsGroup:o=Jy,getKey:s=zy}=t,c=t.getChildren??Ry,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=fb(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return Ly(this.rawNode,l)},get shallowLoaded(){return Vy(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return db(this,e)}},lb),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return ub(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return rb(u)},getPath(e,t={}){return nb(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return eb({checkedKeys:Wy(e),indeterminateKeys:Gy(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return eb({checkedKeys:Wy(t),indeterminateKeys:Gy(t),keysToCheck:e==null?[]:Ny(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return eb({checkedKeys:Wy(t),indeterminateKeys:Gy(t),keysToUncheck:e==null?[]:Ny(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return Iy(u,e)}};return _}var mb={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function hb(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},mb),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var gb={name:`Empty`,common:Ty,self:hb},_b={name:`Empty`,common:X,self:hb},vb=H(`empty`,`
display: flex;
flex-direction: column;
align-items: center;
font-size: var(--n-font-size);
`,[U(`icon`,`
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
line-height: var(--n-icon-size);
color: var(--n-icon-color);
transition:
color .3s var(--n-bezier);
`,[V(`+`,[U(`description`,`
margin-top: 8px;
`)])]),U(`description`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),U(`extra`,`
text-align: center;
transition: color .3s var(--n-bezier);
margin-top: 12px;
color: var(--n-extra-text-color);
`)]),yb=I({name:`Empty`,props:Object.assign(Object.assign({},Jv.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:`medium`},renderIcon:Function}),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=xm(e),i=Jv(`Empty`,`-empty`,vb,gb,e,t),{localeRef:a}=Rv(`Empty`),o=L(()=>e.description??r?.value?.Empty?.description),s=L(()=>r?.value?.Empty?.renderIcon||(()=>R(ty,null))),c=L(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[G(`iconSize`,t)]:r,[G(`fontSize`,t)]:a,textColor:o,iconColor:s,extraTextColor:c}}=i.value;return{"--n-icon-size":r,"--n-font-size":a,"--n-bezier":n,"--n-text-color":o,"--n-icon-color":s,"--n-extra-text-color":c}}),l=n?Sm(`empty`,L(()=>{let t=``,{size:n}=e;return t+=n[0],t}),c,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:L(()=>o.value||a.value.description),cssVars:n?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender}},render(){let{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),R(`div`,{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?R(`div`,{class:`${t}-empty__icon`},e.icon?e.icon():R(Xv,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?R(`div`,{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?R(`div`,{class:`${t}-empty__extra`},e.extra()):null)}}),bb={height:`calc(var(--n-option-height) * 7.6)`,paddingTiny:`4px 0`,paddingSmall:`4px 0`,paddingMedium:`4px 0`,paddingLarge:`4px 0`,paddingHuge:`4px 0`,optionPaddingTiny:`0 12px`,optionPaddingSmall:`0 12px`,optionPaddingMedium:`0 12px`,optionPaddingLarge:`0 12px`,optionPaddingHuge:`0 12px`,loadingSize:`18px`};function xb(e){let{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:i,textColor2:a,primaryColorPressed:o,textColorDisabled:s,primaryColor:c,opacityDisabled:l,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,fontSizeHuge:h,heightTiny:g,heightSmall:_,heightMedium:v,heightLarge:y,heightHuge:b}=e;return Object.assign(Object.assign({},bb),{optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:p,optionFontSizeLarge:m,optionFontSizeHuge:h,optionHeightTiny:g,optionHeightSmall:_,optionHeightMedium:v,optionHeightLarge:y,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:i,optionTextColor:a,optionTextColorPressed:o,optionTextColorDisabled:s,optionTextColorActive:c,optionOpacityDisabled:l,optionCheckColor:c,optionColorPending:u,optionColorActive:`rgba(0, 0, 0, 0)`,optionColorActivePending:u,actionTextColor:a,loadingColor:c})}var Sb={name:`InternalSelectMenu`,common:X,peers:{Scrollbar:ky,Empty:_b},self:xb},{cubicBezierEaseIn:Cb,cubicBezierEaseOut:wb}=Vv;function Tb({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[V(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${Cb}, transform ${t} ${Cb} ${i&&`,${i}`}`}),V(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${wb}, transform ${t} ${wb} ${i&&`,${i}`}`}),V(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),V(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}var Eb={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Db(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Eb),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Ob={name:`Popover`,common:X,peers:{Scrollbar:ky},self:Db},kb={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`},Ab={name:`Tag`,common:X,self(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderRadiusSmall:v,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,heightMini:C,heightTiny:w,heightSmall:T,heightMedium:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return Object.assign(Object.assign({},kb),{closeBorderRadius:v,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:v,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:`#0000`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderPrimary:`1px solid ${q(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:q(i,{alpha:.16}),colorBorderedPrimary:`#0000`,closeIconColorPrimary:cd(i,{lightness:.7}),closeIconColorHoverPrimary:cd(i,{lightness:.7}),closeIconColorPressedPrimary:cd(i,{lightness:.7}),closeColorHoverPrimary:q(i,{alpha:.16}),closeColorPressedPrimary:q(i,{alpha:.12}),borderInfo:`1px solid ${q(a,{alpha:.3})}`,textColorInfo:a,colorInfo:q(a,{alpha:.16}),colorBorderedInfo:`#0000`,closeIconColorInfo:cd(a,{alpha:.7}),closeIconColorHoverInfo:cd(a,{alpha:.7}),closeIconColorPressedInfo:cd(a,{alpha:.7}),closeColorHoverInfo:q(a,{alpha:.16}),closeColorPressedInfo:q(a,{alpha:.12}),borderSuccess:`1px solid ${q(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:q(o,{alpha:.16}),colorBorderedSuccess:`#0000`,closeIconColorSuccess:cd(o,{alpha:.7}),closeIconColorHoverSuccess:cd(o,{alpha:.7}),closeIconColorPressedSuccess:cd(o,{alpha:.7}),closeColorHoverSuccess:q(o,{alpha:.16}),closeColorPressedSuccess:q(o,{alpha:.12}),borderWarning:`1px solid ${q(s,{alpha:.3})}`,textColorWarning:s,colorWarning:q(s,{alpha:.16}),colorBorderedWarning:`#0000`,closeIconColorWarning:cd(s,{alpha:.7}),closeIconColorHoverWarning:cd(s,{alpha:.7}),closeIconColorPressedWarning:cd(s,{alpha:.7}),closeColorHoverWarning:q(s,{alpha:.16}),closeColorPressedWarning:q(s,{alpha:.11}),borderError:`1px solid ${q(c,{alpha:.3})}`,textColorError:c,colorError:q(c,{alpha:.16}),colorBorderedError:`#0000`,closeIconColorError:cd(c,{alpha:.7}),closeIconColorHoverError:cd(c,{alpha:.7}),closeIconColorPressedError:cd(c,{alpha:.7}),closeColorHoverError:q(c,{alpha:.16}),closeColorPressedError:q(c,{alpha:.12})})}},jb=I({name:`InternalSelectionSuffix`,props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{let{clsPrefix:n}=e;return R(fy,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?R(cy,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>R(Xv,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>hm(t.default,()=>[R($v,null)])})}):null})}}}),Mb={paddingSingle:`0 26px 0 12px`,paddingMultiple:`3px 26px 0 12px`,clearSize:`16px`,arrowSize:`16px`},Nb={name:`InternalSelection`,common:X,peers:{Popover:Ob},self(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:m,clearColorHover:h,clearColorPressed:g,placeholderColor:_,placeholderColorDisabled:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,fontWeight:D}=e;return Object.assign(Object.assign({},Mb),{fontWeight:D,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:_,placeholderColorDisabled:v,color:i,colorDisabled:a,colorActive:q(o,{alpha:.1}),border:`1px solid #0000`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 8px 0 ${q(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${q(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:p,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 8px 0 ${q(c,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${q(c,{alpha:.4})}`,colorActiveWarning:q(c,{alpha:.1}),caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 8px 0 ${q(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${q(u,{alpha:.4})}`,colorActiveError:q(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:h,clearColorPressed:g})}},{cubicBezierEaseInOut:Pb}=Vv;function Fb({duration:e=`.2s`,delay:t=`.1s`}={}){return[V(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),V(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
opacity: 0!important;
margin-left: 0!important;
margin-right: 0!important;
`),V(`&.fade-in-width-expand-transition-leave-active`,`
overflow: hidden;
transition:
opacity ${e} ${Pb},
max-width ${e} ${Pb} ${t},
margin-left ${e} ${Pb} ${t},
margin-right ${e} ${Pb} ${t};
`),V(`&.fade-in-width-expand-transition-enter-active`,`
overflow: hidden;
transition:
opacity ${e} ${Pb} ${t},
max-width ${e} ${Pb},
margin-left ${e} ${Pb},
margin-right ${e} ${Pb};
`)]}var Ib=H(`base-wave`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
`),Lb=I({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(e){Kv(`-base-wave`,Ib,P(e,`clsPrefix`));let t=M(null),n=M(!1),r=null;return Qr(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Ln(()=>{var e;(e=t.value)==null||e.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){let{clsPrefix:e}=this;return R(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Rb={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},zb={name:`Alert`,common:X,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},Rb),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${q(p,{alpha:.35})}`,colorInfo:q(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${q(m,{alpha:.35})}`,colorSuccess:q(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${q(h,{alpha:.35})}`,colorWarning:q(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${q(g,{alpha:.35})}`,colorError:q(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:Bb,cubicBezierEaseOut:Vb,cubicBezierEaseIn:Hb}=Vv;function Ub({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[V(`&.fade-in-height-expand-transition-${l}-from,
&.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),V(`&.fade-in-height-expand-transition-${l}-to,
&.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),V(`&.fade-in-height-expand-transition-${l}-active`,`
overflow: ${e};
transition:
max-height ${t} ${Bb} ${r},
opacity ${t} ${Vb} ${r},
margin-top ${t} ${Bb} ${r},
margin-bottom ${t} ${Bb} ${r},
padding-top ${t} ${Bb} ${r},
padding-bottom ${t} ${Bb} ${r}
${n?`,${n}`:``}
`),V(`&.fade-in-height-expand-transition-${c}-active`,`
overflow: ${e};
transition:
max-height ${t} ${Bb},
opacity ${t} ${Hb},
margin-top ${t} ${Bb},
margin-bottom ${t} ${Bb},
padding-top ${t} ${Bb},
padding-bottom ${t} ${Bb}
${n?`,${n}`:``}
`)]}var Wb={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function Gb(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},Wb),{borderRadius:t,railColor:n,railColorActive:r,linkColor:q(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var Kb={name:`Anchor`,common:X,self:Gb},qb=Vd&&`chrome`in window;Vd&&navigator.userAgent.includes(`Firefox`);var Jb=Vd&&navigator.userAgent.includes(`Safari`)&&!qb,Yb={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function Xb(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,fontWeight:A}=e;return Object.assign(Object.assign({},Yb),{fontWeight:A,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:q(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${q(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:q(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${q(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:q(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${q(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,suffixTextColor:t})}var Zb=qv({name:`Input`,common:X,peers:{Scrollbar:ky},self:Xb});function Qb(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:C,clearColor:w,clearColorHover:T,clearColorPressed:E,placeholderColor:D,placeholderColorDisabled:O,iconColor:k,iconColorDisabled:ee,iconColorHover:A,iconColorPressed:te,fontWeight:ne}=e;return Object.assign(Object.assign({},Yb),{fontWeight:ne,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:D,placeholderColorDisabled:O,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${q(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${q(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${q(d,{alpha:.2})}`,caretColorError:d,clearColor:w,clearColorHover:T,clearColorPressed:E,iconColor:k,iconColorDisabled:ee,iconColorHover:A,iconColorPressed:te,suffixTextColor:t})}var $b=qv({name:`Input`,common:Ty,peers:{Scrollbar:Oy},self:Qb}),ex=Pd(`n-input`),tx=H(`input`,`
max-width: 100%;
cursor: text;
line-height: 1.5;
z-index: auto;
outline: none;
box-sizing: border-box;
position: relative;
display: inline-flex;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color .3s var(--n-bezier);
font-size: var(--n-font-size);
font-weight: var(--n-font-weight);
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
`,[U(`input, textarea`,`
overflow: hidden;
flex-grow: 1;
position: relative;
`),U(`input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder`,`
box-sizing: border-box;
font-size: inherit;
line-height: 1.5;
font-family: inherit;
border: none;
outline: none;
background-color: #0000;
text-align: inherit;
transition:
-webkit-text-fill-color .3s var(--n-bezier),
caret-color .3s var(--n-bezier),
color .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier);
`),U(`input-el, textarea-el`,`
-webkit-appearance: none;
scrollbar-width: none;
width: 100%;
min-width: 0;
text-decoration-color: var(--n-text-decoration-color);
color: var(--n-text-color);
caret-color: var(--n-caret-color);
background-color: transparent;
`,[V(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
width: 0;
height: 0;
display: none;
`),V(`&::placeholder`,`
color: #0000;
-webkit-text-fill-color: transparent !important;
`),V(`&:-webkit-autofill ~`,[U(`placeholder`,`display: none;`)])]),W(`round`,[wu(`textarea`,`border-radius: calc(var(--n-height) / 2);`)]),U(`placeholder`,`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
color: var(--n-placeholder-color);
`,[V(`span`,`
width: 100%;
display: inline-block;
`)]),W(`textarea`,[U(`placeholder`,`overflow: visible;`)]),wu(`autosize`,`width: 100%;`),W(`autosize`,[U(`textarea-el, input-el`,`
position: absolute;
top: 0;
left: 0;
height: 100%;
`)]),H(`input-wrapper`,`
overflow: hidden;
display: inline-flex;
flex-grow: 1;
position: relative;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
`),U(`input-mirror`,`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre;
pointer-events: none;
`),U(`input-el`,`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
`,[V(`&[type=password]::-ms-reveal`,`display: none;`),V(`+`,[U(`placeholder`,`
display: flex;
align-items: center;
`)])]),wu(`textarea`,[U(`placeholder`,`white-space: nowrap;`)]),U(`eye`,`
display: flex;
align-items: center;
justify-content: center;
transition: color .3s var(--n-bezier);
`),W(`textarea`,`width: 100%;`,[H(`input-word-count`,`
position: absolute;
right: var(--n-padding-right);
bottom: var(--n-padding-vertical);
`),W(`resizable`,[H(`input-wrapper`,`
resize: vertical;
min-height: var(--n-height);
`)]),U(`textarea-el, textarea-mirror, placeholder`,`
height: 100%;
padding-left: 0;
padding-right: 0;
padding-top: var(--n-padding-vertical);
padding-bottom: var(--n-padding-vertical);
word-break: break-word;
display: inline-block;
vertical-align: bottom;
box-sizing: border-box;
line-height: var(--n-line-height-textarea);
margin: 0;
resize: none;
white-space: pre-wrap;
scroll-padding-block-end: var(--n-padding-vertical);
`),U(`textarea-mirror`,`
width: 100%;
pointer-events: none;
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre-wrap;
overflow-wrap: break-word;
`)]),W(`pair`,[U(`input-el, placeholder`,`text-align: center;`),U(`separator`,`
display: flex;
align-items: center;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
white-space: nowrap;
`,[H(`icon`,`
color: var(--n-icon-color);
`),H(`base-icon`,`
color: var(--n-icon-color);
`)])]),W(`disabled`,`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[U(`border`,`border: var(--n-border-disabled);`),U(`input-el, textarea-el`,`
cursor: not-allowed;
color: var(--n-text-color-disabled);
text-decoration-color: var(--n-text-color-disabled);
`),U(`placeholder`,`color: var(--n-placeholder-color-disabled);`),U(`separator`,`color: var(--n-text-color-disabled);`,[H(`icon`,`
color: var(--n-icon-color-disabled);
`),H(`base-icon`,`
color: var(--n-icon-color-disabled);
`)]),H(`input-word-count`,`
color: var(--n-count-text-color-disabled);
`),U(`suffix, prefix`,`color: var(--n-text-color-disabled);`,[H(`icon`,`
color: var(--n-icon-color-disabled);
`),H(`internal-icon`,`
color: var(--n-icon-color-disabled);
`)])]),wu(`disabled`,[U(`eye`,`
color: var(--n-icon-color);
cursor: pointer;
`,[V(`&:hover`,`
color: var(--n-icon-color-hover);
`),V(`&:active`,`
color: var(--n-icon-color-pressed);
`)]),V(`&:hover`,[U(`state-border`,`border: var(--n-border-hover);`)]),W(`focus`,`background-color: var(--n-color-focus);`,[U(`state-border`,`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),U(`border, state-border`,`
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: inherit;
border: var(--n-border);
transition:
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`),U(`state-border`,`
border-color: #0000;
z-index: 1;
`),U(`prefix`,`margin-right: 4px;`),U(`suffix`,`
margin-left: 4px;
`),U(`suffix, prefix`,`
transition: color .3s var(--n-bezier);
flex-wrap: nowrap;
flex-shrink: 0;
line-height: var(--n-height);
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--n-suffix-text-color);
`,[H(`base-loading`,`
font-size: var(--n-icon-size);
margin: 0 2px;
color: var(--n-loading-color);
`),H(`base-clear`,`
font-size: var(--n-icon-size);
`,[U(`placeholder`,[H(`base-icon`,`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)])]),V(`>`,[H(`icon`,`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),H(`base-icon`,`
font-size: var(--n-icon-size);
`)]),H(`input-word-count`,`
pointer-events: none;
line-height: 1.5;
font-size: .85em;
color: var(--n-count-text-color);
transition: color .3s var(--n-bezier);
margin-left: 4px;
font-variant: tabular-nums;
`),[`warning`,`error`].map(e=>W(`${e}-status`,[wu(`disabled`,[H(`base-loading`,`
color: var(--n-loading-color-${e})
`),U(`input-el, textarea-el`,`
caret-color: var(--n-caret-color-${e});
`),U(`state-border`,`
border: var(--n-border-${e});
`),V(`&:hover`,[U(`state-border`,`
border: var(--n-border-hover-${e});
`)]),V(`&:focus`,`
background-color: var(--n-color-focus-${e});
`,[U(`state-border`,`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)]),W(`focus`,`
background-color: var(--n-color-focus-${e});
`,[U(`state-border`,`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)])])]))]),nx=H(`input`,[W(`disabled`,[U(`input-el, textarea-el`,`
-webkit-text-fill-color: var(--n-text-color-disabled);
`)])]);function rx(e){let t=0;for(let n of e)t++;return t}function ix(e){return e===``||e==null}function ax(e){let t=M(null);function n(){let{value:n}=e;if(!n?.focus){i();return}let{selectionStart:r,selectionEnd:a,value:o}=n;if(r==null||a==null){i();return}t.value={start:r,end:a,beforeText:o.slice(0,r),afterText:o.slice(a)}}function r(){var n;let{value:r}=t,{value:i}=e;if(!r||!i)return;let{value:a}=i,{start:o,beforeText:s,afterText:c}=r,l=a.length;if(a.endsWith(c))l=a.length-c.length;else if(a.startsWith(s))l=s.length;else{let e=s[o-1],t=a.indexOf(e,o-1);t!==-1&&(l=t+1)}(n=i.setSelectionRange)==null||n.call(i,l,l)}function i(){t.value=null}return nr(e,i),{recordCursor:n,restoreCursor:r}}var ox=I({name:`InputWordCount`,setup(e,{slots:t}){let{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:i,countGraphemesRef:a}=F(ex),o=L(()=>{let{value:e}=n;return e===null||Array.isArray(e)?0:(a.value||rx)(e)});return()=>{let{value:e}=r,{value:a}=n;return R(`span`,{class:`${i.value}-input-word-count`},gm(t.default,{value:a===null||Array.isArray(a)?``:a},()=>[e===void 0?o.value:`${o.value} / ${e}`]))}}}),sx=I({name:`Input`,props:Object.assign(Object.assign({},Jv.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:`text`},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=xm(e),a=Jv(`Input`,`-input`,tx,$b,e,t);Jb&&Kv(`-input-safari`,nx,t);let o=M(null),s=M(null),c=M(null),l=M(null),u=M(null),d=M(null),f=M(null),p=ax(f),m=M(null),{localeRef:h}=Rv(`Input`),g=M(e.defaultValue),_=Ad(P(e,`value`),g),v=wm(e),{mergedSizeRef:y,mergedDisabledRef:b,mergedStatusRef:x}=v,S=M(!1),C=M(!1),w=M(!1),T=M(!1),E=null,D=L(()=>{let{placeholder:t,pair:n}=e;return n?Array.isArray(t)?t:t===void 0?[``,``]:[t,t]:t===void 0?[h.value.placeholder]:[t]}),O=L(()=>{let{value:e}=w,{value:t}=_,{value:n}=D;return!e&&(ix(t)||Array.isArray(t)&&ix(t[0]))&&n[0]}),k=L(()=>{let{value:e}=w,{value:t}=_,{value:n}=D;return!e&&n[1]&&(ix(t)||Array.isArray(t)&&ix(t[1]))}),ee=Ed(()=>e.internalForceFocus||S.value),A=Ed(()=>{if(b.value||e.readonly||!e.clearable||!ee.value&&!C.value)return!1;let{value:t}=_,{value:n}=ee;return e.pair?!!(Array.isArray(t)&&(t[0]||t[1]))&&(C.value||n):!!t&&(C.value||n)}),te=L(()=>{let{showPasswordOn:t}=e;if(t)return t;if(e.showPasswordToggle)return`click`}),ne=M(!1),re=L(()=>{let{textDecoration:t}=e;return t?Array.isArray(t)?t.map(e=>({textDecoration:e})):[{textDecoration:t}]:[``,``]}),ie=M(void 0),ae=()=>{if(e.type===`textarea`){let{autosize:t}=e;if(t&&(ie.value=m.value?.$el?.offsetWidth),!s.value||typeof t==`boolean`)return;let{paddingTop:n,paddingBottom:r,lineHeight:i}=window.getComputedStyle(s.value),a=Number(n.slice(0,-2)),o=Number(r.slice(0,-2)),l=Number(i.slice(0,-2)),{value:u}=c;if(!u)return;if(t.minRows){let e=Math.max(t.minRows,1),n=`${a+o+l*e}px`;u.style.minHeight=n}if(t.maxRows){let e=`${a+o+l*t.maxRows}px`;u.style.maxHeight=e}}},oe=L(()=>{let{maxlength:t}=e;return t===void 0?void 0:Number(t)});Yr(()=>{let{value:e}=_;Array.isArray(e)||Je(e)});let se=$a().proxy;function ce(t,n){let{onUpdateValue:r,"onUpdate:value":i,onInput:a}=e,{nTriggerFormInput:o}=v;r&&J(r,t,n),i&&J(i,t,n),a&&J(a,t,n),g.value=t,o()}function le(t,n){let{onChange:r}=e,{nTriggerFormChange:i}=v;r&&J(r,t,n),g.value=t,i()}function ue(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=v;n&&J(n,t),r()}function de(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=v;n&&J(n,t),r()}function fe(t){let{onClear:n}=e;n&&J(n,t)}function pe(t){let{onInputBlur:n}=e;n&&J(n,t)}function me(t){let{onInputFocus:n}=e;n&&J(n,t)}function he(){let{onDeactivate:t}=e;t&&J(t)}function ge(){let{onActivate:t}=e;t&&J(t)}function _e(t){let{onClick:n}=e;n&&J(n,t)}function ve(t){let{onWrapperFocus:n}=e;n&&J(n,t)}function ye(t){let{onWrapperBlur:n}=e;n&&J(n,t)}function be(){w.value=!0}function xe(e){w.value=!1,e.target===d.value?Se(e,1):Se(e,0)}function Se(t,n=0,r=`input`){let i=t.target.value;if(Je(i),t instanceof InputEvent&&!t.isComposing&&(w.value=!1),e.type===`textarea`){let{value:e}=m;e&&e.syncUnifiedContainer()}if(E=i,w.value)return;p.recordCursor();let a=Ce(i);if(a)if(!e.pair)r===`input`?ce(i,{source:n}):le(i,{source:n});else{let{value:e}=_;e=Array.isArray(e)?[e[0],e[1]]:[``,``],e[n]=i,r===`input`?ce(e,{source:n}):le(e,{source:n})}se.$forceUpdate(),a||Ln(p.restoreCursor)}function Ce(t){let{countGraphemes:n,maxlength:r,minlength:i}=e;if(n){let e;if(r!==void 0&&(e===void 0&&(e=n(t)),e>Number(r))||i!==void 0&&(e===void 0&&(e=n(t)),e<Number(r)))return!1}let{allowInput:a}=e;return typeof a!=`function`||a(t)}function we(e){pe(e),e.relatedTarget===o.value&&he(),e.relatedTarget!==null&&(e.relatedTarget===u.value||e.relatedTarget===d.value||e.relatedTarget===s.value)||(T.value=!1),Oe(e,`blur`),f.value=null}function Te(e,t){me(e),S.value=!0,T.value=!0,ge(),Oe(e,`focus`),t===0?f.value=u.value:t===1?f.value=d.value:t===2&&(f.value=s.value)}function Ee(t){e.passivelyActivated&&(ye(t),Oe(t,`blur`))}function De(t){e.passivelyActivated&&(S.value=!0,ve(t),Oe(t,`focus`))}function Oe(e,t){e.relatedTarget!==null&&(e.relatedTarget===u.value||e.relatedTarget===d.value||e.relatedTarget===s.value||e.relatedTarget===o.value)||(t===`focus`?(de(e),S.value=!0):t===`blur`&&(ue(e),S.value=!1))}function ke(e,t){Se(e,t,`change`)}function Ae(e){_e(e)}function je(e){fe(e),Me()}function Me(){e.pair?(ce([``,``],{source:`clear`}),le([``,``],{source:`clear`})):(ce(``,{source:`clear`}),le(``,{source:`clear`}))}function Ne(t){let{onMousedown:n}=e;n&&n(t);let{tagName:r}=t.target;if(r!==`INPUT`&&r!==`TEXTAREA`){if(e.resizable){let{value:e}=o;if(e){let{left:n,top:r,width:i,height:a}=e.getBoundingClientRect();if(n+i-14<t.clientX&&t.clientX<n+i&&r+a-14<t.clientY&&t.clientY<r+a)return}}t.preventDefault(),S.value||He()}}function Pe(){var t;C.value=!0,e.type===`textarea`&&((t=m.value)==null||t.handleMouseEnterWrapper())}function Fe(){var t;C.value=!1,e.type===`textarea`&&((t=m.value)==null||t.handleMouseLeaveWrapper())}function Ie(){b.value||te.value===`click`&&(ne.value=!ne.value)}function Le(e){if(b.value)return;e.preventDefault();let t=e=>{e.preventDefault(),wd(`mouseup`,document,t)};if(Cd(`mouseup`,document,t),te.value!==`mousedown`)return;ne.value=!0;let n=()=>{ne.value=!1,wd(`mouseup`,document,n)};Cd(`mouseup`,document,n)}function Re(t){e.onKeyup&&J(e.onKeyup,t)}function ze(t){switch(e.onKeydown&&J(e.onKeydown,t),t.key){case`Escape`:Ve();break;case`Enter`:Be(t);break}}function Be(t){var n,r;if(e.passivelyActivated){let{value:i}=T;if(i){e.internalDeactivateOnEnter&&Ve();return}t.preventDefault(),e.type===`textarea`?(n=s.value)==null||n.focus():(r=u.value)==null||r.focus()}}function Ve(){e.passivelyActivated&&(T.value=!1,Ln(()=>{var e;(e=o.value)==null||e.focus()}))}function He(){var t,n,r;b.value||(e.passivelyActivated?(t=o.value)==null||t.focus():((n=s.value)==null||n.focus(),(r=u.value)==null||r.focus()))}function Ue(){o.value?.contains(document.activeElement)&&document.activeElement.blur()}function We(){var e,t;(e=s.value)==null||e.select(),(t=u.value)==null||t.select()}function Ge(){b.value||(s.value?s.value.focus():u.value&&u.value.focus())}function Ke(){let{value:e}=o;e?.contains(document.activeElement)&&e!==document.activeElement&&Ve()}function qe(t){if(e.type===`textarea`){let{value:e}=s;e?.scrollTo(t)}else{let{value:e}=u;e?.scrollTo(t)}}function Je(t){let{type:n,pair:r,autosize:i}=e;if(!r&&i)if(n===`textarea`){let{value:e}=c;e&&(e.textContent=`${t??``}\r\n`)}else{let{value:e}=l;e&&(t?e.textContent=t:e.innerHTML=`&nbsp;`)}}function Ye(){ae()}let Xe=M({top:`0`});function Ze(e){var t;let{scrollTop:n}=e.target;Xe.value.top=`${-n}px`,(t=m.value)==null||t.syncUnifiedContainer()}let Qe=null;tr(()=>{let{autosize:t,type:n}=e;t&&n===`textarea`?Qe=nr(_,e=>{!Array.isArray(e)&&e!==E&&Je(e)}):Qe?.()});let $e=null;tr(()=>{e.type===`textarea`?$e=nr(_,e=>{var t;!Array.isArray(e)&&e!==E&&((t=m.value)==null||t.syncUnifiedContainer())}):$e?.()}),Qn(ex,{mergedValueRef:_,maxlengthRef:oe,mergedClsPrefixRef:t,countGraphemesRef:P(e,`countGraphemes`)});let et={wrapperElRef:o,inputElRef:u,textareaElRef:s,isCompositing:w,clear:Me,focus:He,blur:Ue,select:We,deactivate:Ke,activate:Ge,scrollTo:qe},tt=Bv(`Input`,i,t),nt=L(()=>{let{value:e}=y,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:o,caretColorError:s,caretColorWarning:c,textDecorationColor:l,border:u,borderDisabled:d,borderHover:f,borderFocus:p,placeholderColor:m,placeholderColorDisabled:h,lineHeightTextarea:g,colorDisabled:_,colorFocus:v,textColorDisabled:b,boxShadowFocus:x,iconSize:S,colorFocusWarning:C,boxShadowFocusWarning:w,borderWarning:T,borderFocusWarning:E,borderHoverWarning:D,colorFocusError:O,boxShadowFocusError:k,borderError:ee,borderFocusError:A,borderHoverError:te,clearSize:ne,clearColor:re,clearColorHover:ie,clearColorPressed:ae,iconColor:oe,iconColorDisabled:se,suffixTextColor:ce,countTextColor:le,countTextColorDisabled:ue,iconColorHover:de,iconColorPressed:fe,loadingColor:pe,loadingColorError:me,loadingColorWarning:he,fontWeight:ge,[G(`padding`,e)]:_e,[G(`fontSize`,e)]:ve,[G(`height`,e)]:ye}}=a.value,{left:be,right:xe}=Fu(_e);return{"--n-bezier":t,"--n-count-text-color":le,"--n-count-text-color-disabled":ue,"--n-color":n,"--n-font-size":ve,"--n-font-weight":ge,"--n-border-radius":r,"--n-height":ye,"--n-padding-left":be,"--n-padding-right":xe,"--n-text-color":i,"--n-caret-color":o,"--n-text-decoration-color":l,"--n-border":u,"--n-border-disabled":d,"--n-border-hover":f,"--n-border-focus":p,"--n-placeholder-color":m,"--n-placeholder-color-disabled":h,"--n-icon-size":S,"--n-line-height-textarea":g,"--n-color-disabled":_,"--n-color-focus":v,"--n-text-color-disabled":b,"--n-box-shadow-focus":x,"--n-loading-color":pe,"--n-caret-color-warning":c,"--n-color-focus-warning":C,"--n-box-shadow-focus-warning":w,"--n-border-warning":T,"--n-border-focus-warning":E,"--n-border-hover-warning":D,"--n-loading-color-warning":he,"--n-caret-color-error":s,"--n-color-focus-error":O,"--n-box-shadow-focus-error":k,"--n-border-error":ee,"--n-border-focus-error":A,"--n-border-hover-error":te,"--n-loading-color-error":me,"--n-clear-color":re,"--n-clear-size":ne,"--n-clear-color-hover":ie,"--n-clear-color-pressed":ae,"--n-icon-color":oe,"--n-icon-color-hover":de,"--n-icon-color-pressed":fe,"--n-icon-color-disabled":se,"--n-suffix-text-color":ce}}),rt=r?Sm(`input`,L(()=>{let{value:e}=y;return e[0]}),nt,e):void 0;return Object.assign(Object.assign({},et),{wrapperElRef:o,inputElRef:u,inputMirrorElRef:l,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:c,textareaScrollbarInstRef:m,rtlEnabled:tt,uncontrolledValue:g,mergedValue:_,passwordVisible:ne,mergedPlaceholder:D,showPlaceholder1:O,showPlaceholder2:k,mergedFocus:ee,isComposing:w,activated:T,showClearButton:A,mergedSize:y,mergedDisabled:b,textDecorationStyle:re,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:te,placeholderStyle:Xe,mergedStatus:x,textAreaScrollContainerWidth:ie,handleTextAreaScroll:Ze,handleCompositionStart:be,handleCompositionEnd:xe,handleInput:Se,handleInputBlur:we,handleInputFocus:Te,handleWrapperBlur:Ee,handleWrapperFocus:De,handleMouseEnter:Pe,handleMouseLeave:Fe,handleMouseDown:Ne,handleChange:ke,handleClick:Ae,handleClear:je,handlePasswordToggleClick:Ie,handlePasswordToggleMousedown:Le,handleWrapperKeydown:ze,handleWrapperKeyup:Re,handleTextAreaMirrorResize:Ye,getTextareaScrollContainer:()=>s.value,mergedTheme:a,cssVars:r?void 0:nt,themeClass:rt?.themeClass,onRender:rt?.onRender})},render(){let{mergedClsPrefix:e,mergedStatus:t,themeClass:n,type:r,countGraphemes:i,onRender:a}=this,o=this.$slots;return a?.(),R(`div`,{ref:`wrapperElRef`,class:[`${e}-input`,n,t&&`${e}-input--${t}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:r===`textarea`,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&r!==`textarea`,[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},R(`div`,{class:`${e}-input-wrapper`},_m(o.prefix,t=>t&&R(`div`,{class:`${e}-input__prefix`},t)),r===`textarea`?R(jy,{ref:`textareaScrollbarInstRef`,class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{let{textAreaScrollContainerWidth:t}=this,n={width:this.autosize&&t&&`${t}px`};return R(ba,null,R(`textarea`,Object.assign({},this.inputProps,{ref:`textareaElRef`,class:[`${e}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,n],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?R(`div`,{class:`${e}-input__placeholder`,style:[this.placeholderStyle,n],key:`placeholder`},this.mergedPlaceholder[0]):null,this.autosize?R(Qp,{onResize:this.handleTextAreaMirrorResize},{default:()=>R(`div`,{ref:`textareaMirrorElRef`,class:`${e}-input__textarea-mirror`,key:`mirror`})}):null)}}):R(`div`,{class:`${e}-input__input`},R(`input`,Object.assign({type:r===`password`&&this.mergedShowPasswordOn&&this.passwordVisible?`text`:r},this.inputProps,{ref:`inputElRef`,class:[`${e}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?R(`div`,{class:`${e}-input__placeholder`},R(`span`,null,this.mergedPlaceholder[0])):null,this.autosize?R(`div`,{class:`${e}-input__input-mirror`,key:`mirror`,ref:`inputMirrorElRef`},`\xA0`):null),!this.pair&&_m(o.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?R(`div`,{class:`${e}-input__suffix`},[_m(o[`clear-icon-placeholder`],t=>(this.clearable||t)&&R(cy,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>t,icon:()=>{var e;return(e=this.$slots)[`clear-icon`]?.call(e)}})),this.internalLoadingBeforeSuffix?null:t,this.loading===void 0?null:R(jb,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}),this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!==`textarea`?R(ox,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null,this.mergedShowPasswordOn&&this.type===`password`?R(`div`,{class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?hm(o[`password-visible-icon`],()=>[R(Xv,{clsPrefix:e},{default:()=>R(ny,null)})]):hm(o[`password-invisible-icon`],()=>[R(Xv,{clsPrefix:e},{default:()=>R(ry,null)})])):null]):null)),this.pair?R(`span`,{class:`${e}-input__separator`},hm(o.separator,()=>[this.separator])):null,this.pair?R(`div`,{class:`${e}-input-wrapper`},R(`div`,{class:`${e}-input__input`},R(`input`,{ref:`inputEl2Ref`,type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?R(`div`,{class:`${e}-input__placeholder`},R(`span`,null,this.mergedPlaceholder[1])):null),_m(o.suffix,t=>(this.clearable||t)&&R(`div`,{class:`${e}-input__suffix`},[this.clearable&&R(cy,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{icon:()=>o[`clear-icon`]?.call(o),placeholder:()=>o[`clear-icon-placeholder`]?.call(o)}),t]))):null,this.mergedBordered?R(`div`,{class:`${e}-input__border`}):null,this.mergedBordered?R(`div`,{class:`${e}-input__state-border`}):null,this.showCount&&r===`textarea`?R(ox,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null)}});function cx(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var lx={name:`AutoComplete`,common:X,peers:{InternalSelectMenu:Sb,Input:Zb},self:cx};function ux(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:K(r,n),colorModal:K(u,n),colorPopover:K(d,n)}}var dx={name:`Avatar`,common:X,self:ux};function fx(){return{gap:`-12px`}}var px={name:`AvatarGroup`,common:X,peers:{Avatar:dx},self:fx},mx={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},hx={name:`BackTop`,common:X,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},mx),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},gx={name:`Badge`,common:X,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},_x={fontWeightActive:`400`};function vx(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},_x),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var yx={name:`Breadcrumb`,common:X,self:vx};function bx(e){return K(e,[255,255,255,.16])}function xx(e){return K(e,[0,0,0,.12])}var Sx=Pd(`n-button-group`),Cx={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function wx(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:k,fontWeight:ee,buttonColor2:A,buttonColor2Hover:te,buttonColor2Pressed:ne,fontWeightStrong:re}=e;return Object.assign(Object.assign({},Cx),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:A,colorSecondaryHover:te,colorSecondaryPressed:ne,colorTertiary:A,colorTertiaryHover:te,colorTertiaryPressed:ne,colorQuaternary:`#0000`,colorQuaternaryHover:te,colorQuaternaryPressed:ne,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:k,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:k,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:k,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${k}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:ee,fontWeightStrong:re})}var Tx={name:`Button`,common:Ty,self:wx},Ex={name:`Button`,common:X,self(e){let t=wx(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},Dx=V([H(`button`,`
margin: 0;
font-weight: var(--n-font-weight);
line-height: 1;
font-family: inherit;
padding: var(--n-padding);
height: var(--n-height);
font-size: var(--n-font-size);
border-radius: var(--n-border-radius);
color: var(--n-text-color);
background-color: var(--n-color);
width: var(--n-width);
white-space: nowrap;
outline: none;
position: relative;
z-index: auto;
border: none;
display: inline-flex;
flex-wrap: nowrap;
flex-shrink: 0;
align-items: center;
justify-content: center;
user-select: none;
-webkit-user-select: none;
text-align: center;
cursor: pointer;
text-decoration: none;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[W(`color`,[U(`border`,{borderColor:`var(--n-border-color)`}),W(`disabled`,[U(`border`,{borderColor:`var(--n-border-color-disabled)`})]),wu(`disabled`,[V(`&:focus`,[U(`state-border`,{borderColor:`var(--n-border-color-focus)`})]),V(`&:hover`,[U(`state-border`,{borderColor:`var(--n-border-color-hover)`})]),V(`&:active`,[U(`state-border`,{borderColor:`var(--n-border-color-pressed)`})]),W(`pressed`,[U(`state-border`,{borderColor:`var(--n-border-color-pressed)`})])])]),W(`disabled`,{backgroundColor:`var(--n-color-disabled)`,color:`var(--n-text-color-disabled)`},[U(`border`,{border:`var(--n-border-disabled)`})]),wu(`disabled`,[V(`&:focus`,{backgroundColor:`var(--n-color-focus)`,color:`var(--n-text-color-focus)`},[U(`state-border`,{border:`var(--n-border-focus)`})]),V(`&:hover`,{backgroundColor:`var(--n-color-hover)`,color:`var(--n-text-color-hover)`},[U(`state-border`,{border:`var(--n-border-hover)`})]),V(`&:active`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[U(`state-border`,{border:`var(--n-border-pressed)`})]),W(`pressed`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[U(`state-border`,{border:`var(--n-border-pressed)`})])]),W(`loading`,`cursor: wait;`),H(`base-wave`,`
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
animation-iteration-count: 1;
animation-duration: var(--n-ripple-duration);
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
`,[W(`active`,{zIndex:1,animationName:`button-wave-spread, button-wave-opacity`})]),Vd&&`MozBoxSizing`in document.createElement(`div`).style?V(`&::moz-focus-inner`,{border:0}):null,U(`border, state-border`,`
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border-radius: inherit;
transition: border-color .3s var(--n-bezier);
pointer-events: none;
`),U(`border`,`
border: var(--n-border);
`),U(`state-border`,`
border: var(--n-border);
border-color: #0000;
z-index: 1;
`),U(`icon`,`
margin: var(--n-icon-margin);
margin-left: 0;
height: var(--n-icon-size);
width: var(--n-icon-size);
max-width: var(--n-icon-size);
font-size: var(--n-icon-size);
position: relative;
flex-shrink: 0;
`,[H(`icon-slot`,`
height: var(--n-icon-size);
width: var(--n-icon-size);
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
`,[oy({top:`50%`,originalTransform:`translateY(-50%)`})]),Fb()]),U(`content`,`
display: flex;
align-items: center;
flex-wrap: nowrap;
min-width: 0;
`,[V(`~`,[U(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),W(`block`,`
display: flex;
width: 100%;
`),W(`dashed`,[U(`border, state-border`,{borderStyle:`dashed !important`})]),W(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),V(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),V(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),Ox=I({name:`Button`,props:Object.assign(Object.assign({},Jv.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Jb}}),slots:Object,setup(e){let t=M(null),n=M(null),r=M(!1),i=Ed(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=F(Sx,{}),{mergedSizeRef:o}=wm({},{defaultSize:`medium`,mergedSize:t=>{let{size:n}=e;if(n)return n;let{size:r}=a;if(r)return r;let{mergedSize:i}=t||{};return i?i.value:`medium`}}),s=L(()=>e.focusable&&!e.disabled),c=n=>{var r;s.value||n.preventDefault(),!e.nativeFocusBehavior&&(n.preventDefault(),!e.disabled&&s.value&&((r=t.value)==null||r.focus({preventScroll:!0})))},l=t=>{var r;if(!e.disabled&&!e.loading){let{onClick:i}=e;i&&J(i,t),e.text||(r=n.value)==null||r.play()}},u=t=>{switch(t.key){case`Enter`:if(!e.keyboard)return;r.value=!1}},d=t=>{switch(t.key){case`Enter`:if(!e.keyboard||e.loading){t.preventDefault();return}r.value=!0}},f=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:m,mergedRtlRef:h}=xm(e),g=Jv(`Button`,`-button`,Dx,Tx,e,m),_=Bv(`Button`,h,m),v=L(()=>{let{common:{cubicBezierEaseInOut:t,cubicBezierEaseOut:n},self:r}=g.value,{rippleDuration:i,opacityDisabled:a,fontWeight:s,fontWeightStrong:c}=r,l=o.value,{dashed:u,type:d,ghost:f,text:p,color:m,round:h,circle:_,textColor:v,secondary:y,tertiary:b,quaternary:x,strong:S}=e,C={"--n-font-weight":S?c:s},w={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},T=d===`tertiary`,E=d==="default",D=T?`default`:d;if(p){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":e||r[G(`textColorText`,D)],"--n-text-color-hover":e?bx(e):r[G(`textColorTextHover`,D)],"--n-text-color-pressed":e?xx(e):r[G(`textColorTextPressed`,D)],"--n-text-color-focus":e?bx(e):r[G(`textColorTextHover`,D)],"--n-text-color-disabled":e||r[G(`textColorTextDisabled`,D)]}}else if(f||u){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":m||r[G(`rippleColor`,D)],"--n-text-color":e||r[G(`textColorGhost`,D)],"--n-text-color-hover":e?bx(e):r[G(`textColorGhostHover`,D)],"--n-text-color-pressed":e?xx(e):r[G(`textColorGhostPressed`,D)],"--n-text-color-focus":e?bx(e):r[G(`textColorGhostHover`,D)],"--n-text-color-disabled":e||r[G(`textColorGhostDisabled`,D)]}}else if(y){let e=E?r.textColor:T?r.textColorTertiary:r[G(`color`,D)],t=m||e,n=d!=="default"&&d!==`tertiary`;w={"--n-color":n?q(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?q(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?q(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?q(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||x){let e=E?r.textColor:T?r.textColorTertiary:r[G(`color`,D)],t=m||e;b?(w[`--n-color`]=r.colorTertiary,w[`--n-color-hover`]=r.colorTertiaryHover,w[`--n-color-pressed`]=r.colorTertiaryPressed,w[`--n-color-focus`]=r.colorSecondaryHover,w[`--n-color-disabled`]=r.colorTertiary):(w[`--n-color`]=r.colorQuaternary,w[`--n-color-hover`]=r.colorQuaternaryHover,w[`--n-color-pressed`]=r.colorQuaternaryPressed,w[`--n-color-focus`]=r.colorQuaternaryHover,w[`--n-color-disabled`]=r.colorQuaternary),w[`--n-ripple-color`]=`#0000`,w[`--n-text-color`]=t,w[`--n-text-color-hover`]=t,w[`--n-text-color-pressed`]=t,w[`--n-text-color-focus`]=t,w[`--n-text-color-disabled`]=t}else w={"--n-color":m||r[G(`color`,D)],"--n-color-hover":m?bx(m):r[G(`colorHover`,D)],"--n-color-pressed":m?xx(m):r[G(`colorPressed`,D)],"--n-color-focus":m?bx(m):r[G(`colorFocus`,D)],"--n-color-disabled":m||r[G(`colorDisabled`,D)],"--n-ripple-color":m||r[G(`rippleColor`,D)],"--n-text-color":v||(m?r.textColorPrimary:T?r.textColorTertiary:r[G(`textColor`,D)]),"--n-text-color-hover":v||(m?r.textColorHoverPrimary:r[G(`textColorHover`,D)]),"--n-text-color-pressed":v||(m?r.textColorPressedPrimary:r[G(`textColorPressed`,D)]),"--n-text-color-focus":v||(m?r.textColorFocusPrimary:r[G(`textColorFocus`,D)]),"--n-text-color-disabled":v||(m?r.textColorDisabledPrimary:r[G(`textColorDisabled`,D)])};let O={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};O=p?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[G(`border`,D)],"--n-border-hover":r[G(`borderHover`,D)],"--n-border-pressed":r[G(`borderPressed`,D)],"--n-border-focus":r[G(`borderFocus`,D)],"--n-border-disabled":r[G(`borderDisabled`,D)]};let{[G(`height`,l)]:k,[G(`fontSize`,l)]:ee,[G(`padding`,l)]:A,[G(`paddingRound`,l)]:te,[G(`iconSize`,l)]:ne,[G(`borderRadius`,l)]:re,[G(`iconMargin`,l)]:ie,waveOpacity:ae}=r,oe={"--n-width":_&&!p?k:`initial`,"--n-height":p?`initial`:k,"--n-font-size":ee,"--n-padding":_||p?`initial`:h?te:A,"--n-icon-size":ne,"--n-icon-margin":ie,"--n-border-radius":p?`initial`:_||h?k:re};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":t,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":ae},C),w),O),oe)}),y=p?Sm(`button`,L(()=>{let t=``,{dashed:n,type:r,ghost:i,text:a,color:s,round:c,circle:l,textColor:u,secondary:d,tertiary:f,quaternary:p,strong:m}=e;n&&(t+=`a`),i&&(t+=`b`),a&&(t+=`c`),c&&(t+=`d`),l&&(t+=`e`),d&&(t+=`f`),f&&(t+=`g`),p&&(t+=`h`),m&&(t+=`i`),s&&(t+=`j${cm(s)}`),u&&(t+=`k${cm(u)}`);let{value:h}=o;return t+=`l${h[0]}`,t+=`m${r[0]}`,t}),v,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:m,mergedFocusable:s,mergedSize:o,showBorder:i,enterPressed:r,rtlEnabled:_,handleMousedown:c,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:l,customColorCssVars:L(()=>{let{color:t}=e;if(!t)return null;let n=bx(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":xx(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}}),cssVars:p?void 0:v,themeClass:y?.themeClass,onRender:y?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=_m(this.$slots.default,t=>t&&R(`span`,{class:`${e}-button__content`},t));return R(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&r,R(ly,{width:!0},{default:()=>_m(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&R(`span`,{class:`${e}-button__icon`,style:{margin:vm(this.$slots.default)?`0`:``}},R(Zv,null,{default:()=>this.loading?R(fy,{clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20}):R(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:R(Lb,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?R(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?R(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),kx={titleFontSize:`22px`};function Ax(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},kx),{borderRadius:t,borderColor:K(f,s),borderColorModal:K(p,s),borderColorPopover:K(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:K(f,d),cellColorHoverModal:K(p,d),cellColorHoverPopover:K(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}var jx={name:`Calendar`,common:X,peers:{Button:Ex},self:Ax},Mx={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function Nx(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return Object.assign(Object.assign({},Mx),{lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n})}var Px={name:`Card`,common:X,self(e){let t=Nx(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}};function Fx(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var Ix={name:`Carousel`,common:X,self:Fx},Lx={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function Rx(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},Lx),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${q(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var zx={name:`Checkbox`,common:Ty,self:Rx},Bx={name:`Checkbox`,common:X,self(e){let{cardColor:t}=e,n=Rx(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function Vx(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}var Hx={name:`Cascader`,common:X,peers:{InternalSelectMenu:Sb,InternalSelection:Nb,Scrollbar:ky,Checkbox:Bx,Empty:gb},self:Vx},Ux=Pd(`n-checkbox-group`),Wx=()=>R(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},R(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),Gx=()=>R(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},R(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),Kx=V([H(`checkbox`,`
font-size: var(--n-font-size);
outline: none;
cursor: pointer;
display: inline-flex;
flex-wrap: nowrap;
align-items: flex-start;
word-break: break-word;
line-height: var(--n-size);
--n-merged-color-table: var(--n-color-table);
`,[W(`show-label`,`line-height: var(--n-label-line-height);`),V(`&:hover`,[H(`checkbox-box`,[U(`border`,`border: var(--n-border-checked);`)])]),V(`&:focus:not(:active)`,[H(`checkbox-box`,[U(`border`,`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),W(`inside-table`,[H(`checkbox-box`,`
background-color: var(--n-merged-color-table);
`)]),W(`checked`,[H(`checkbox-box`,`
background-color: var(--n-color-checked);
`,[H(`checkbox-icon`,[V(`.check-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),W(`indeterminate`,[H(`checkbox-box`,[H(`checkbox-icon`,[V(`.check-icon`,`
opacity: 0;
transform: scale(.5);
`),V(`.line-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),W(`checked, indeterminate`,[V(`&:focus:not(:active)`,[H(`checkbox-box`,[U(`border`,`
border: var(--n-border-checked);
box-shadow: var(--n-box-shadow-focus);
`)])]),H(`checkbox-box`,`
background-color: var(--n-color-checked);
border-left: 0;
border-top: 0;
`,[U(`border`,{border:`var(--n-border-checked)`})])]),W(`disabled`,{cursor:`not-allowed`},[W(`checked`,[H(`checkbox-box`,`
background-color: var(--n-color-disabled-checked);
`,[U(`border`,{border:`var(--n-border-disabled-checked)`}),H(`checkbox-icon`,[V(`.check-icon, .line-icon`,{fill:`var(--n-check-mark-color-disabled-checked)`})])])]),H(`checkbox-box`,`
background-color: var(--n-color-disabled);
`,[U(`border`,`
border: var(--n-border-disabled);
`),H(`checkbox-icon`,[V(`.check-icon, .line-icon`,`
fill: var(--n-check-mark-color-disabled);
`)])]),U(`label`,`
color: var(--n-text-color-disabled);
`)]),H(`checkbox-box-wrapper`,`
position: relative;
width: var(--n-size);
flex-shrink: 0;
flex-grow: 0;
user-select: none;
-webkit-user-select: none;
`),H(`checkbox-box`,`
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
height: var(--n-size);
width: var(--n-size);
display: inline-block;
box-sizing: border-box;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color 0.3s var(--n-bezier);
`,[U(`border`,`
transition:
border-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border: var(--n-border);
`),H(`checkbox-icon`,`
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 1px;
right: 1px;
top: 1px;
bottom: 1px;
`,[V(`.check-icon, .line-icon`,`
width: 100%;
fill: var(--n-check-mark-color);
opacity: 0;
transform: scale(0.5);
transform-origin: center;
transition:
fill 0.3s var(--n-bezier),
transform 0.3s var(--n-bezier),
opacity 0.3s var(--n-bezier),
border-color 0.3s var(--n-bezier);
`),oy({left:`1px`,top:`1px`})])]),U(`label`,`
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
user-select: none;
-webkit-user-select: none;
padding: var(--n-label-padding);
font-weight: var(--n-label-font-weight);
`,[V(`&:empty`,{display:`none`})])]),Tu(H(`checkbox`,`
--n-merged-color-table: var(--n-color-table-modal);
`)),Eu(H(`checkbox`,`
--n-merged-color-table: var(--n-color-table-popover);
`))]),qx=I({name:`Checkbox`,props:Object.assign(Object.assign({},Jv.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){let t=F(Ux,null),n=M(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:a}=xm(e),o=M(e.defaultChecked),s=Ad(P(e,`checked`),o),c=Ed(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return s.value===e.checkedValue}),l=wm(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!c.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&c.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:u,mergedSizeRef:d}=l,f=Jv(`Checkbox`,`-checkbox`,Kx,zx,e,r);function p(n){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:s}=l,u=c.value?e.uncheckedValue:e.checkedValue;r&&J(r,u,n),i&&J(i,u,n),t&&J(t,u,n),a(),s(),o.value=u}}function m(e){u.value||p(e)}function h(e){if(!u.value)switch(e.key){case` `:case`Enter`:p(e)}}function g(e){switch(e.key){case` `:e.preventDefault()}}let _={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},v=Bv(`Checkbox`,a,r),y=L(()=>{let{value:e}=d,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:p,borderFocus:m,borderDisabled:h,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[G(`fontSize`,e)]:E,[G(`size`,e)]:D}}=f.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":D,"--n-bezier":t,"--n-border-radius":n,"--n-border":p,"--n-border-checked":g,"--n-border-focus":m,"--n-border-disabled":h,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),b=i?Sm(`checkbox`,L(()=>d.value[0]),y,e):void 0;return Object.assign(l,_,{rtlEnabled:v,selfRef:n,mergedClsPrefix:r,mergedDisabled:u,renderedChecked:c,mergedTheme:f,labelId:md(),handleClick:m,handleKeyUp:h,handleKeyDown:g,cssVars:i?void 0:y,themeClass:b?.themeClass,onRender:b?.onRender})},render(){var e;let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)==null||e.call(this);let m=_m(t.default,e=>c||e?R(`span`,{class:`${l}-checkbox__label`,id:s},c||e):null);return R(`div`,{ref:`selfRef`,class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:p,onMousedown:()=>{Cd(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},R(`div`,{class:`${l}-checkbox-box-wrapper`},`\xA0`,R(`div`,{class:`${l}-checkbox-box`},R(Zv,null,{default:()=>this.indeterminate?R(`div`,{key:`indeterminate`,class:`${l}-checkbox-icon`},Gx()):R(`div`,{key:`check`,class:`${l}-checkbox-icon`},Wx())}),R(`div`,{class:`${l}-checkbox-box__border`}))),m)}}),Jx={name:`Code`,common:X,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function Yx(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var Xx={name:`Collapse`,common:X,self:Yx};function Zx(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var Qx={name:`CollapseTransition`,common:X,self:Zx};function $x(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}var eS={name:`ColorPicker`,common:X,peers:{Input:Zb,Button:Ex},self:$x},tS=I({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(um(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=F(bm,null),n=L(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=L(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:Lv({},e,n)}}}),i=Ed(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=Ed(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=L(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),s=L(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),c=L(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),l=L(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=on(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=on(e))});return i}),u=L(()=>e.breakpoints||t?.mergedBreakpointsRef.value),d=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget;return Qn(bm,{mergedThemeHashRef:L(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${su(JSON.stringify(r.value))}`:a:i?su(JSON.stringify(r.value)):``}),mergedBreakpointsRef:u,mergedRtlRef:l,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:c,mergedLocaleRef:L(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:L(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:L(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:L(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:c,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):R(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),nS={name:`Popselect`,common:X,peers:{Popover:Ob,InternalSelectMenu:Sb}};function rS(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var iS={name:`Select`,common:X,peers:{InternalSelection:Nb,InternalSelectMenu:Sb},self:rS},aS={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function oS(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},aS),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var sS={name:`Pagination`,common:X,peers:{Select:iS,Input:Zb,Popselect:nS},self(e){let{primaryColor:t,opacity3:n}=e,r=q(t,{alpha:Number(n)}),i=oS(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},cS={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function lS(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return Object.assign(Object.assign({},cS),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:q(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_})}var uS={name:`Dropdown`,common:X,peers:{Popover:Ob},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=lS(e);return i.colorInverted=r,i.optionColorActive=q(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},dS={padding:`8px 14px`},fS={name:`Tooltip`,common:X,peers:{Popover:Ob},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},dS),{borderRadius:t,boxShadow:n,color:r,textColor:i})}},pS={name:`Ellipsis`,common:X,peers:{Tooltip:fS}},mS={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},hS={name:`Radio`,common:X,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},mS),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${q(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${q(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}},gS={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function _S(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},gS),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:K(t,g),tdColorHover:K(t,s),tdColorSorting:K(t,s),tdColorStriped:K(t,y),thColor:K(t,o),thColorHover:K(K(t,o),s),thColorSorting:K(K(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:K(n,g),tdColorHoverModal:K(n,s),tdColorSortingModal:K(n,s),tdColorStripedModal:K(n,y),thColorModal:K(n,o),thColorHoverModal:K(K(n,o),s),thColorSortingModal:K(K(n,o),s),tdColorModal:n,borderColorPopover:K(r,g),tdColorHoverPopover:K(r,s),tdColorSortingPopover:K(r,s),tdColorStripedPopover:K(r,y),thColorPopover:K(r,o),thColorHoverPopover:K(K(r,o),s),thColorSortingPopover:K(K(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}var vS={name:`DataTable`,common:X,peers:{Button:Ex,Checkbox:Bx,Radio:hS,Pagination:sS,Scrollbar:ky,Empty:_b,Popover:Ob,Ellipsis:pS,Dropdown:uS},self(e){let t=_S(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}};function yS(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var bS={name:`Icon`,common:X,self:yS},xS={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function SS(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},xS),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var CS={name:`TimePicker`,common:X,peers:{Scrollbar:ky,Button:Ex,Input:Zb},self:SS},wS={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function TS(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},wS),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:q(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}var ES={name:`DatePicker`,common:X,peers:{Input:Zb,Button:Ex,TimePicker:CS,Scrollbar:ky},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=TS(e);return i.itemColorDisabled=K(t,n),i.itemColorIncluded=q(r,{alpha:.15}),i.itemColorHover=K(t,n),i}},DS={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function OS(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},DS),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:K(i,t),thColorModal:K(a,t),thColorPopover:K(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:K(i,s),borderColorModal:K(a,s),borderColorPopover:K(o,s),borderRadius:c})}var kS={name:`Descriptions`,common:X,self:OS},AS={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function jS(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},AS),{fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g})}var MS={name:`Dialog`,common:X,peers:{Button:Ex},self:jS};function NS(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var PS={name:`Modal`,common:X,peers:{Scrollbar:ky,Dialog:MS,Card:Px},self:NS},FS={name:`LoadingBar`,common:X,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},IS={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function LS(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},IS),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var RS={name:`Message`,common:X,self:LS},zS={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function BS(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},zS),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var VS={name:`Notification`,common:X,peers:{Scrollbar:ky},self:BS};function HS(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var US={name:`Divider`,common:X,self:HS};function WS(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}var GS={name:`Drawer`,common:X,peers:{Scrollbar:ky},self:WS},KS={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},qS={name:`DynamicInput`,common:X,peers:{Input:Zb,Button:Ex},self(){return KS}},JS={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},YS={name:`Space`,self(){return JS}},XS={name:`DynamicTags`,common:X,peers:{Input:Zb,Button:Ex,Tag:Ab,Space:YS},self(){return{inputWidth:`64px`}}},ZS={name:`Element`,common:X},QS={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},$S={name:`Flex`,self(){return QS}},eC={name:`ButtonGroup`,common:X},tC={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function nC(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},tC),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var rC={name:`Form`,common:X,self:nC},iC={name:`GradientText`,common:X,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},aC={name:`InputNumber`,common:X,peers:{Button:Ex,Input:Zb},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function oC(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}var sC={name:`InputOtp`,common:X,peers:{Input:Zb},self:oC},cC={name:`Layout`,common:X,peers:{Scrollbar:ky},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:K(n,o),siderToggleBarColorHover:K(n,s),__invertScrollbar:`false`}}},lC={name:`Row`,common:X};function uC(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:K(r,c),colorPopover:i,colorHoverPopover:K(i,c),borderColor:a,borderColorModal:K(r,a),borderColorPopover:K(i,a),borderRadius:o,fontSize:s}}var dC={name:`List`,common:X,self:uC},fC={name:`Log`,common:X,peers:{Scrollbar:ky,Code:Jx},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},pC={name:`Mention`,common:X,peers:{InternalSelectMenu:Sb,Input:Zb},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function mC(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function hC(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:q(r,{alpha:.1}),itemColorActiveHover:q(r,{alpha:.1}),itemColorActiveCollapsed:q(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},mC(`#BBB`,r,`#FFF`,`#AAA`))}var gC={name:`Menu`,common:X,peers:{Tooltip:fS,Dropdown:uS},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=hC(e);return r.itemColorActive=q(t,{alpha:.15}),r.itemColorActiveHover=q(t,{alpha:.15}),r.itemColorActiveCollapsed=q(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},_C={titleFontSize:`18px`,backSize:`22px`};function vC(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},_C),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}var yC={name:`PageHeader`,common:X,self:vC},bC={iconSize:`22px`};function xC(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},bC),{fontSize:t,iconColor:n})}var SC={name:`Popconfirm`,common:X,peers:{Button:Ex,Popover:Ob},self:xC};function CC(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var wC={name:`Progress`,common:X,self(e){let t=CC(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},TC={name:`Rate`,common:X,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},EC={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function DC(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},EC),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var OC={name:`Result`,common:X,self:DC},kC={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},AC={name:`Slider`,common:X,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},kC),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function jC(e){let{railColor:t,primaryColor:n,baseColor:r,cardColor:i,modalColor:a,popoverColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},kC),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:n,fillColorHover:n,opacityDisabled:l,handleColor:`#FFF`,dotColor:i,dotColorModal:a,dotColorPopover:o,handleBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowHover:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowActive:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowFocus:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,indicatorColor:`rgba(0, 0, 0, .85)`,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:r,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:``})}var MC={name:`Slider`,common:Ty,self:jC};function NC(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var PC={name:`Spin`,common:X,self:NC};function FC(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var IC={name:`Statistic`,common:X,self:FC},LC={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function RC(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},LC),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var zC={name:`Steps`,common:X,self:RC},BC={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},VC={name:`Switch`,common:X,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},BC),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${q(i,{alpha:.3})}`})}},HC={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function UC(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},HC),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:K(n,t),borderColorModal:K(r,t),borderColorPopover:K(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:K(n,o),tdColorStripedModal:K(r,o),tdColorStripedPopover:K(i,o),thColor:K(n,a),thColorModal:K(r,a),thColorPopover:K(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var WC={name:`Table`,common:X,self:UC},GC={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function KC(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},GC),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var qC={name:`Tabs`,common:X,self(e){let t=KC(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function JC(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var YC={name:`Thing`,common:X,self:JC},XC={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},ZC={name:`Timeline`,common:X,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},XC),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},QC={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},$C={name:`Transfer`,common:X,peers:{Checkbox:Bx,Scrollbar:ky,Input:Zb,Empty:_b,Button:Ex},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},QC),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function ew(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:q(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}var tw=qv({name:`Tree`,common:Ty,peers:{Checkbox:zx,Scrollbar:Oy,Empty:gb},self:ew}),nw={name:`Tree`,common:X,peers:{Checkbox:Bx,Scrollbar:ky,Empty:_b},self(e){let{primaryColor:t}=e,n=ew(e);return n.nodeColorActive=q(t,{alpha:.15}),n}},rw={name:`TreeSelect`,common:X,peers:{Tree:nw,Empty:_b,InternalSelection:Nb}},iw={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function aw(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},iw),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var ow={name:`Typography`,common:X,self:aw};function sw(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:q(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var cw={name:`Upload`,common:X,peers:{Button:Ex,Progress:wC},self(e){let{errorColor:t}=e,n=sw(e);return n.itemColorHoverError=q(t,{alpha:.09}),n}},lw={name:`Watermark`,common:X,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},uw={name:`FloatButton`,common:X,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function dw(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}var fw={name:`Heatmap`,common:X,self(e){let t=dw(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function pw(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var mw={name:`IconWrapper`,common:X,self:pw},hw={name:`Image`,common:X,peers:{Tooltip:fS},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},gw={extraFontSize:`12px`,width:`440px`},_w={name:`Transfer`,common:X,peers:{Checkbox:Bx,Scrollbar:ky,Input:Zb,Empty:_b,Button:Ex},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},gw),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function vw(){return{}}var yw={name:`Marquee`,common:X,self:vw},bw={name:`QrCode`,common:X,self:e=>({borderRadius:e.borderRadius})},xw={name:`Skeleton`,common:X,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Sw=V([H(`slider`,`
display: block;
padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
position: relative;
z-index: 0;
width: 100%;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
`,[W(`reverse`,[H(`slider-handles`,[H(`slider-handle-wrapper`,`
transform: translate(50%, -50%);
`)]),H(`slider-dots`,[H(`slider-dot`,`
transform: translateX(50%, -50%);
`)]),W(`vertical`,[H(`slider-handles`,[H(`slider-handle-wrapper`,`
transform: translate(-50%, -50%);
`)]),H(`slider-marks`,[H(`slider-mark`,`
transform: translateY(calc(-50% + var(--n-dot-height) / 2));
`)]),H(`slider-dots`,[H(`slider-dot`,`
transform: translateX(-50%) translateY(0);
`)])])]),W(`vertical`,`
box-sizing: content-box;
padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
width: var(--n-rail-width-vertical);
height: 100%;
`,[H(`slider-handles`,`
top: calc(var(--n-handle-size) / 2);
right: 0;
bottom: calc(var(--n-handle-size) / 2);
left: 0;
`,[H(`slider-handle-wrapper`,`
top: unset;
left: 50%;
transform: translate(-50%, 50%);
`)]),H(`slider-rail`,`
height: 100%;
`,[U(`fill`,`
top: unset;
right: 0;
bottom: unset;
left: 0;
`)]),W(`with-mark`,`
width: var(--n-rail-width-vertical);
margin: 0 32px 0 8px;
`),H(`slider-marks`,`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 22px;
font-size: var(--n-mark-font-size);
`,[H(`slider-mark`,`
transform: translateY(50%);
white-space: nowrap;
`)]),H(`slider-dots`,`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 50%;
`,[H(`slider-dot`,`
transform: translateX(-50%) translateY(50%);
`)])]),W(`disabled`,`
cursor: not-allowed;
opacity: var(--n-opacity-disabled);
`,[H(`slider-handle`,`
cursor: not-allowed;
`)]),W(`with-mark`,`
width: 100%;
margin: 8px 0 32px 0;
`),V(`&:hover`,[H(`slider-rail`,{backgroundColor:`var(--n-rail-color-hover)`},[U(`fill`,{backgroundColor:`var(--n-fill-color-hover)`})]),H(`slider-handle`,{boxShadow:`var(--n-handle-box-shadow-hover)`})]),W(`active`,[H(`slider-rail`,{backgroundColor:`var(--n-rail-color-hover)`},[U(`fill`,{backgroundColor:`var(--n-fill-color-hover)`})]),H(`slider-handle`,{boxShadow:`var(--n-handle-box-shadow-hover)`})]),H(`slider-marks`,`
position: absolute;
top: 18px;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[H(`slider-mark`,`
position: absolute;
transform: translateX(-50%);
white-space: nowrap;
`)]),H(`slider-rail`,`
width: 100%;
position: relative;
height: var(--n-rail-height);
background-color: var(--n-rail-color);
transition: background-color .3s var(--n-bezier);
border-radius: calc(var(--n-rail-height) / 2);
`,[U(`fill`,`
position: absolute;
top: 0;
bottom: 0;
border-radius: calc(var(--n-rail-height) / 2);
transition: background-color .3s var(--n-bezier);
background-color: var(--n-fill-color);
`)]),H(`slider-handles`,`
position: absolute;
top: 0;
right: calc(var(--n-handle-size) / 2);
bottom: 0;
left: calc(var(--n-handle-size) / 2);
`,[H(`slider-handle-wrapper`,`
outline: none;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
display: flex;
`,[H(`slider-handle`,`
height: var(--n-handle-size);
width: var(--n-handle-size);
border-radius: 50%;
overflow: hidden;
transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
background-color: var(--n-handle-color);
box-shadow: var(--n-handle-box-shadow);
`,[V(`&:hover`,`
box-shadow: var(--n-handle-box-shadow-hover);
`)]),V(`&:focus`,[H(`slider-handle`,`
box-shadow: var(--n-handle-box-shadow-focus);
`,[V(`&:hover`,`
box-shadow: var(--n-handle-box-shadow-active);
`)])])])]),H(`slider-dots`,`
position: absolute;
top: 50%;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[W(`transition-disabled`,[H(`slider-dot`,`transition: none;`)]),H(`slider-dot`,`
transition:
border-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
transform: translate(-50%, -50%);
height: var(--n-dot-height);
width: var(--n-dot-width);
border-radius: var(--n-dot-border-radius);
overflow: hidden;
box-sizing: border-box;
border: var(--n-dot-border);
background-color: var(--n-dot-color);
`,[W(`active`,`border: var(--n-dot-border-active);`)])])]),H(`slider-handle-indicator`,`
font-size: var(--n-font-size);
padding: 6px 10px;
border-radius: var(--n-indicator-border-radius);
color: var(--n-indicator-text-color);
background-color: var(--n-indicator-color);
box-shadow: var(--n-indicator-box-shadow);
`,[Tb()]),H(`slider-handle-indicator`,`
font-size: var(--n-font-size);
padding: 6px 10px;
border-radius: var(--n-indicator-border-radius);
color: var(--n-indicator-text-color);
background-color: var(--n-indicator-color);
box-shadow: var(--n-indicator-box-shadow);
`,[W(`top`,`
margin-bottom: 12px;
`),W(`right`,`
margin-left: 12px;
`),W(`bottom`,`
margin-top: 12px;
`),W(`left`,`
margin-right: 12px;
`),Tb()]),Tu(H(`slider`,[H(`slider-dot`,`background-color: var(--n-dot-color-modal);`)])),Eu(H(`slider`,[H(`slider-dot`,`background-color: var(--n-dot-color-popover);`)]))]);function Cw(e){return window.TouchEvent&&e instanceof window.TouchEvent}function ww(){let e=new Map;return Xr(()=>{e.clear()}),[e,t=>n=>{e.set(t,n)}]}var Tw=0,Ew=I({name:`Slider`,props:Object.assign(Object.assign({},Jv.props),{to:Bd.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),slots:Object,setup(e){let{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=xm(e),i=Jv(`Slider`,`-slider`,Sw,MC,e,t),a=M(null),[o,s]=ww(),[c,l]=ww(),u=M(new Set),d=wm(e),{mergedDisabledRef:f}=d,p=L(()=>{let{step:t}=e;if(Number(t)<=0||t===`mark`)return 0;let n=t.toString(),r=0;return n.includes(`.`)&&(r=n.length-n.indexOf(`.`)-1),r}),m=M(e.defaultValue),h=Ad(P(e,`value`),m),g=L(()=>{let{value:t}=h;return(e.range?t:[t]).map(oe)}),_=L(()=>g.value.length>2),v=L(()=>e.placement===void 0?e.vertical?`right`:`top`:e.placement),y=L(()=>{let{marks:t}=e;return t?Object.keys(t).map(Number.parseFloat):null}),b=M(-1),x=M(-1),S=M(-1),C=M(!1),w=M(!1),T=L(()=>{let{vertical:t,reverse:n}=e;return t?n?`top`:`bottom`:n?`right`:`left`}),E=L(()=>{if(_.value)return;let t=g.value,n=se(e.range?Math.min(...t):e.min),r=se(e.range?Math.max(...t):t[0]),{value:i}=T;return e.vertical?{[i]:`${n}%`,height:`${r-n}%`}:{[i]:`${n}%`,width:`${r-n}%`}}),D=L(()=>{let t=[],{marks:n}=e;if(n){let r=g.value.slice();r.sort((e,t)=>e-t);let{value:i}=T,{value:a}=_,{range:o}=e,s=a?()=>!1:e=>o?e>=r[0]&&e<=r[r.length-1]:e<=r[0];for(let e of Object.keys(n)){let r=Number(e);t.push({active:s(r),key:r,label:n[e],style:{[i]:`${se(r)}%`}})}}return t});function O(e,t){let n=se(e),{value:r}=T;return{[r]:`${n}%`,zIndex:+(t===b.value)}}function k(t){return e.showTooltip||S.value===t||b.value===t&&C.value}function ee(e){return!C.value||!(b.value===e&&x.value===e)}function A(e){var t;~e&&(b.value=e,(t=o.get(e))==null||t.focus())}function te(){c.forEach((e,t)=>{k(t)&&e.syncPosition()})}function ne(t){let{"onUpdate:value":n,onUpdateValue:r}=e,{nTriggerFormInput:i,nTriggerFormChange:a}=d;r&&J(r,t),n&&J(n,t),m.value=t,i(),a()}function re(t){let{range:n}=e;if(n){if(Array.isArray(t)){let{value:e}=g;t.join()!==e.join()&&ne(t)}}else Array.isArray(t)||g.value[0]!==t&&ne(t)}function ie(t,n){if(e.range){let e=g.value.slice();e.splice(n,1,t),re(e)}else re(t)}function ae(t,n,r){let i=r!==void 0;r||=t-n>0?1:-1;let a=y.value||[],{step:o}=e;if(o===`mark`){let e=ue(t,a.concat(n),i?r:void 0);return e?e.value:n}if(o<=0)return n;let{value:s}=p,c;if(i){let e=Number((n/o).toFixed(s)),t=Math.floor(e),i=e>t?t:t-1,l=e<t?t:t+1;c=ue(n,[Number((i*o).toFixed(s)),Number((l*o).toFixed(s)),...a],r)}else{let e=le(t);c=ue(t,[...a,e])}return c?oe(c.value):n}function oe(t){return Math.min(e.max,Math.max(e.min,t))}function se(t){let{max:n,min:r}=e;return(t-r)/(n-r)*100}function ce(t){let{max:n,min:r}=e;return r+(n-r)*t}function le(t){let{step:n,min:r}=e;if(Number(n)<=0||n===`mark`)return t;let i=Math.round((t-r)/n)*n+r;return Number(i.toFixed(p.value))}function ue(e,t=y.value,n){if(!t?.length)return null;let r=null,i=-1;for(;++i<t.length;){let a=t[i]-e,o=Math.abs(a);(n===void 0||a*n>0)&&(r===null||o<r.distance)&&(r={index:i,distance:o,value:t[i]})}return r}function de(t){let n=a.value;if(!n)return;let r=Cw(t)?t.touches[0]:t,i=n.getBoundingClientRect(),o;return o=e.vertical?(i.bottom-r.clientY)/i.height:(r.clientX-i.left)/i.width,e.reverse&&(o=1-o),ce(o)}function fe(t){if(f.value||!e.keyboard)return;let{vertical:n,reverse:r}=e;switch(t.key){case`ArrowUp`:t.preventDefault(),pe(n&&r?-1:1);break;case`ArrowRight`:t.preventDefault(),pe(!n&&r?-1:1);break;case`ArrowDown`:t.preventDefault(),pe(n&&r?1:-1);break;case`ArrowLeft`:t.preventDefault(),pe(!n&&r?1:-1);break}}function pe(t){let n=b.value;if(n===-1)return;let{step:r}=e,i=g.value[n];ie(ae(Number(r)<=0||r===`mark`?i:i+r*t,i,t>0?1:-1),n)}function me(t){if(f.value||!Cw(t)&&t.button!==Tw)return;let n=de(t);if(n===void 0)return;let r=g.value.slice(),i=e.range?ue(n,r)?.index??-1:0;i!==-1&&(t.preventDefault(),A(i),he(),ie(ae(n,g.value[i]),i))}function he(){C.value||(C.value=!0,e.onDragstart&&J(e.onDragstart),Cd(`touchend`,document,ve),Cd(`mouseup`,document,ve),Cd(`touchmove`,document,_e),Cd(`mousemove`,document,_e))}function ge(){C.value&&(C.value=!1,e.onDragend&&J(e.onDragend),wd(`touchend`,document,ve),wd(`mouseup`,document,ve),wd(`touchmove`,document,_e),wd(`mousemove`,document,_e))}function _e(e){let{value:t}=b;if(!C.value||t===-1){ge();return}let n=de(e);n!==void 0&&ie(ae(n,g.value[t]),t)}function ve(){ge()}function ye(e){b.value=e,f.value||(S.value=e)}function be(e){b.value===e&&(b.value=-1,ge()),S.value===e&&(S.value=-1)}function xe(e){S.value=e}function Se(e){S.value===e&&(S.value=-1)}nr(b,(e,t)=>void Ln(()=>x.value=t)),nr(h,()=>{if(e.marks){if(w.value)return;w.value=!0,Ln(()=>{w.value=!1})}Ln(te)}),Qr(()=>{ge()});let Ce=L(()=>{let{self:{markFontSize:e,railColor:t,railColorHover:n,fillColor:r,fillColorHover:a,handleColor:o,opacityDisabled:s,dotColor:c,dotColorModal:l,handleBoxShadow:u,handleBoxShadowHover:d,handleBoxShadowActive:f,handleBoxShadowFocus:p,dotBorder:m,dotBoxShadow:h,railHeight:g,railWidthVertical:_,handleSize:v,dotHeight:y,dotWidth:b,dotBorderRadius:x,fontSize:S,dotBorderActive:C,dotColorPopover:w},common:{cubicBezierEaseInOut:T}}=i.value;return{"--n-bezier":T,"--n-dot-border":m,"--n-dot-border-active":C,"--n-dot-border-radius":x,"--n-dot-box-shadow":h,"--n-dot-color":c,"--n-dot-color-modal":l,"--n-dot-color-popover":w,"--n-dot-height":y,"--n-dot-width":b,"--n-fill-color":r,"--n-fill-color-hover":a,"--n-font-size":S,"--n-handle-box-shadow":u,"--n-handle-box-shadow-active":f,"--n-handle-box-shadow-focus":p,"--n-handle-box-shadow-hover":d,"--n-handle-color":o,"--n-handle-size":v,"--n-opacity-disabled":s,"--n-rail-color":t,"--n-rail-color-hover":n,"--n-rail-height":g,"--n-rail-width-vertical":_,"--n-mark-font-size":e}}),we=r?Sm(`slider`,void 0,Ce,e):void 0,Te=L(()=>{let{self:{fontSize:e,indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:r,indicatorBorderRadius:a}}=i.value;return{"--n-font-size":e,"--n-indicator-border-radius":a,"--n-indicator-box-shadow":n,"--n-indicator-color":t,"--n-indicator-text-color":r}}),Ee=r?Sm(`slider-indicator`,void 0,Te,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:m,mergedValue:h,mergedDisabled:f,mergedPlacement:v,isMounted:jd(),adjustedTo:Bd(e),dotTransitionDisabled:w,markInfos:D,isShowTooltip:k,shouldKeepTooltipTransition:ee,handleRailRef:a,setHandleRefs:s,setFollowerRefs:l,fillStyle:E,getHandleStyle:O,activeIndex:b,arrifiedValues:g,followerEnabledIndexSet:u,handleRailMouseDown:me,handleHandleFocus:ye,handleHandleBlur:be,handleHandleMouseEnter:xe,handleHandleMouseLeave:Se,handleRailKeyDown:fe,indicatorCssVars:r?void 0:Te,indicatorThemeClass:Ee?.themeClass,indicatorOnRender:Ee?.onRender,cssVars:r?void 0:Ce,themeClass:we?.themeClass,onRender:we?.onRender}},render(){var e;let{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)==null||e.call(this),R(`div`,{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},R(`div`,{class:`${t}-slider-rail`},R(`div`,{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?R(`div`,{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(e=>R(`div`,{key:e.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:e.active}],style:e.style}))):null,R(`div`,{ref:`handleRailRef`,class:`${t}-slider-handles`},this.arrifiedValues.map((e,n)=>{let i=this.isShowTooltip(n);return R(Qd,null,{default:()=>[R($d,null,{default:()=>R(`div`,{ref:this.setHandleRefs(n),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:`slider`,"aria-valuenow":e,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?`vertical`:`horizontal`,"aria-disabled":this.disabled,style:this.getHandleStyle(e,n),onFocus:()=>{this.handleHandleFocus(n)},onBlur:()=>{this.handleHandleBlur(n)},onMouseenter:()=>{this.handleHandleMouseEnter(n)},onMouseleave:()=>{this.handleHandleMouseLeave(n)}},hm(this.$slots.thumb,()=>[R(`div`,{class:`${t}-slider-handle`})]))}),this.tooltip&&R(tp,{ref:this.setFollowerRefs(n),show:i,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(n),teleportDisabled:this.adjustedTo===Bd.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>R(jo,{name:`fade-in-scale-up-transition`,appear:this.isMounted,css:this.shouldKeepTooltipTransition(n),onEnter:()=>{this.followerEnabledIndexSet.add(n)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(n)}},{default:()=>{var n;return i?((n=this.indicatorOnRender)==null||n.call(this),R(`div`,{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r==`function`?r(e):e)):null}})})]})})),this.marks?R(`div`,{class:`${t}-slider-marks`},this.markInfos.map(e=>R(`div`,{key:e.key,class:`${t}-slider-mark`,style:e.style},typeof e.label==`function`?e.label():e.label))):null))}}),Dw={name:`Split`,common:X},Ow=Pd(`n-tree-select`);function kw({position:e,offsetLevel:t,indent:n,el:r}){let i={position:`absolute`,boxSizing:`border-box`,right:0};if(e===`inside`)i.left=0,i.top=0,i.bottom=0,i.borderRadius=`inherit`,i.boxShadow=`inset 0 0 0 2px var(--n-drop-mark-color)`;else{let a=e===`before`?`top`:`bottom`;i[a]=0,i.left=`${r.offsetLeft+6-t*n}px`,i.height=`2px`,i.backgroundColor=`var(--n-drop-mark-color)`,i.transformOrigin=a,i.borderRadius=`1px`,i.transform=e===`before`?`translateY(-4px)`:`translateY(4px)`}return R(`div`,{style:i})}function Aw({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!==`inside`}var jw=Pd(`n-tree`);function Mw({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:i,handleCheck:a,handleSelect:o,handleSwitcherClick:s}){let{value:c}=r,l=F(Ow,null),u=l?l.pendingNodeKeyRef:M(c.length?c[c.length-1]:null);function d(r){if(!e.keyboard)return{enterBehavior:null};let{value:c}=u,l=null;if(c===null){if((r.key===`ArrowDown`||r.key===`ArrowUp`)&&r.preventDefault(),[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(r.key)&&c===null){let{value:e}=t,n=0;for(;n<e.length;){if(!e[n].disabled){u.value=e[n].key;break}n+=1}}}else{let{value:d}=t,f=d.findIndex(e=>e.key===c);if(!~f)return{enterBehavior:null};if(r.key===`Enter`){let t=d[f];switch(l=e.overrideDefaultNodeClickBehavior?.call(e,{option:t.rawNode})||null,l){case`toggleCheck`:a(t,!i.value.includes(t.key));break;case`toggleSelect`:o(t);break;case`toggleExpand`:s(t);break;case`none`:break;default:l=`default`,o(t)}}else if(r.key===`ArrowDown`)for(r.preventDefault(),f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}else if(r.key===`ArrowUp`)for(r.preventDefault(),--f;f>=0;){if(!d[f].disabled){u.value=d[f].key;break}--f}else if(r.key===`ArrowLeft`){let e=d[f];if(e.isLeaf||!n.value.includes(c)){let t=e.getParent();t&&(u.value=t.key)}else s(e)}else if(r.key===`ArrowRight`){let e=d[f];if(e.isLeaf)return{enterBehavior:null};if(!n.value.includes(c))s(e);else for(f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}}}return{enterBehavior:l}}return{pendingNodeKeyRef:u,handleKeydown:d}}var Nw=I({name:`NTreeNodeCheckbox`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){let t=F(jw);function n(t){let{onCheck:n}=e;n&&n(t)}function r(e){n(e)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){let{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:i,focusable:a,indent:o,handleUpdateValue:s}=this;return R(`span`,{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${o}px`},"data-checkbox":!0},R(qx,{focusable:a,disabled:i,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:s}))}}),Pw=I({name:`TreeNodeContent`,props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){let{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:i}=F(jw),a=M(null);function o(t){let{onClick:n}=e;n&&n(t)}function s(e){o(e)}return{selfRef:a,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:i,handleClick:s}},render(){let{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:i=!1,renderLabel:a,renderPrefix:o,renderSuffix:s,handleClick:c,onDragstart:l,tmNode:{rawNode:u,rawNode:{prefix:d,suffix:f,[t]:p}}}=this;return R(`span`,Object.assign({},n,{ref:`selfRef`,class:[`${e}-tree-node-content`,n?.class],onClick:c,draggable:l!==void 0||void 0,onDragstart:l}),o||d?R(`div`,{class:`${e}-tree-node-content__prefix`},o?o({option:u,selected:i,checked:r}):pm(d)):null,R(`div`,{class:`${e}-tree-node-content__text`},a?a({option:u,selected:i,checked:r}):pm(p)),s||f?R(`div`,{class:`${e}-tree-node-content__suffix`},s?s({option:u,selected:i,checked:r}):pm(f)):null)}}),Fw=I({name:`NTreeSwitcher`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(e){let{renderSwitcherIconRef:t}=F(jw,null);return()=>{let{clsPrefix:n,expanded:r,hide:i,indent:a,onClick:o}=e;return R(`span`,{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,i&&`${n}-tree-node-switcher--hide`],style:{width:`${a}px`},onClick:o},R(`div`,{class:`${n}-tree-node-switcher__icon`},R(Zv,null,{default:()=>{if(e.loading)return R(fy,{clsPrefix:n,key:`loading`,radius:85,strokeWidth:20});let{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):R(Xv,{clsPrefix:n,key:`switcher`},{default:()=>R(iy,null)})}})))}}});function Iw(e){return L(()=>e.leafOnly?`child`:e.checkStrategy)}function Lw(e,t){return!!e.rawNode[t]}function Rw(e,t,n,r){e?.forEach(e=>{n(e),Rw(e[t],t,n,r),r(e)})}function zw(e,t,n,r,i){let a=new Set,o=new Set,s=[];return Rw(e,r,e=>{if(s.push(e),i(t,e)){o.add(e[n]);for(let e=s.length-2;e>=0;--e)if(!a.has(s[e][n]))a.add(s[e][n]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(a),highlightKeySet:o}}if(Vd&&Image){let e=new Image;e.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`}function Bw(e,t,n,r,i){let a=new Set,o=new Set,s=new Set,c=[],l=[],u=[];function d(e){e.forEach(e=>{if(u.push(e),t(n,e)){a.add(e[r]),s.add(e[r]);for(let e=u.length-2;e>=0;--e){let t=u[e][r];if(!o.has(t))o.add(t),a.has(t)&&a.delete(t);else break}}let c=e[i];c&&d(c),u.pop()})}d(e);function f(e,t){e.forEach(e=>{let n=e[r],s=a.has(n),l=o.has(n);if(!s&&!l)return;let u=e[i];if(u)if(s)t.push(e);else{c.push(n);let r=Object.assign(Object.assign({},e),{[i]:[]});t.push(r),f(u,r[i])}else t.push(e)})}return f(e,l),{filteredTree:l,highlightKeySet:s,expandedKeys:c}}var Vw=I({name:`TreeNode`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){let t=F(jw),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:i,droppingPositionRef:a,droppingOffsetLevelRef:o,nodePropsRef:s,indentRef:c,blockLineRef:l,checkboxPlacementRef:u,checkOnClickRef:d,disabledFieldRef:f,showLineRef:p,renderSwitcherIconRef:m,overrideDefaultNodeClickBehaviorRef:h}=t,g=Ed(()=>!!e.tmNode.rawNode.checkboxDisabled),_=Ed(()=>Lw(e.tmNode,f.value)),v=Ed(()=>t.disabledRef.value||_.value),y=L(()=>{let{value:t}=s;if(t)return t({option:e.tmNode.rawNode})}),b=M(null),x={value:null};Yr(()=>{x.value=b.value.$el});function S(){let n=()=>{let{tmNode:n}=e;if(!n.isLeaf&&!n.shallowLoaded){if(!t.loadingKeysRef.value.has(n.key))t.loadingKeysRef.value.add(n.key);else return;let{onLoadRef:{value:e}}=t;e&&e(n.rawNode).then(e=>{e!==!1&&t.handleSwitcherClick(n)}).finally(()=>{t.loadingKeysRef.value.delete(n.key)})}else t.handleSwitcherClick(n)};m.value?setTimeout(n,0):n()}let C=Ed(()=>!_.value&&t.selectableRef.value&&(!t.internalTreeSelect||t.mergedCheckStrategyRef.value!==`child`||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf)),w=Ed(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!==`child`||e.tmNode.isLeaf)),T=Ed(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),E=Ed(()=>{let{value:t}=w;if(!t)return!1;let{value:n}=d,{tmNode:r}=e;return typeof n==`boolean`?!r.disabled&&n:n(e.tmNode.rawNode)});function D(n){let{value:r}=t.expandOnClickRef,{value:i}=C,{value:a}=E;if(!i&&!r&&!a||ju(n,`checkbox`)||ju(n,`switcher`))return;let{tmNode:o}=e;i&&t.handleSelect(o),r&&!o.isLeaf&&S(),a&&A(!T.value)}function O(n){var r,i;if(!(ju(n,`checkbox`)||ju(n,`switcher`))){if(!v.value){let r=h.value,i=!1;if(r)switch(r({option:e.tmNode.rawNode})){case`toggleCheck`:i=!0,A(!T.value);break;case`toggleSelect`:i=!0,t.handleSelect(e.tmNode);break;case`toggleExpand`:i=!0,S(),i=!0;break;case`none`:i=!0,i=!0;return;default:break}i||D(n)}(i=(r=y.value)?.onClick)==null||i.call(r,n)}}function k(e){l.value||O(e)}function ee(e){l.value&&O(e)}function A(n){t.handleCheck(e.tmNode,n)}function te(n){t.handleDragStart({event:n,node:e.tmNode})}function ne(n){n.currentTarget===n.target&&t.handleDragEnter({event:n,node:e.tmNode})}function re(n){n.preventDefault(),t.handleDragOver({event:n,node:e.tmNode})}function ie(n){t.handleDragEnd({event:n,node:e.tmNode})}function ae(n){n.currentTarget===n.target&&t.handleDragLeave({event:n,node:e.tmNode})}function oe(n){n.preventDefault(),a.value!==null&&t.handleDrop({event:n,node:e.tmNode,dropPosition:a.value})}let se=L(()=>{let{clsPrefix:t}=e,{value:n}=c;if(p.value){let r=[],i=e.tmNode.parent;for(;i;)i.isLastChild?r.push(R(`div`,{class:`${t}-tree-node-indent`},R(`div`,{style:{width:`${n}px`}}))):r.push(R(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`]},R(`div`,{style:{width:`${n}px`}}))),i=i.parent;return r.reverse()}else return hd(e.tmNode.level,R(`div`,{class:`${e.clsPrefix}-tree-node-indent`},R(`div`,{style:{width:`${n}px`}})))});return{showDropMark:Ed(()=>{let{value:t}=i;if(!t)return;let{value:n}=a;if(!n)return;let{value:o}=r;if(!o)return;let{tmNode:s}=e;return s.key===o.key}),showDropMarkAsParent:Ed(()=>{let{value:t}=n;if(!t)return!1;let{tmNode:r}=e,{value:i}=a;return i===`before`||i===`after`?t.key===r.key:!1}),pending:Ed(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Ed(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Ed(()=>t.highlightKeySetRef.value?.has(e.tmNode.key)),checked:T,indeterminate:Ed(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Ed(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Ed(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:v,checkable:w,mergedCheckOnClick:E,checkboxDisabled:g,selectable:C,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:l,nodeProps:y,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:a,droppingOffsetLevel:o,indent:c,checkboxPlacement:u,showLine:p,contentInstRef:b,contentElRef:x,indentNodes:se,handleCheck:A,handleDrop:oe,handleDragStart:te,handleDragEnter:ne,handleDragOver:re,handleDragEnd:ie,handleDragLeave:ae,handleLineClick:ee,handleContentClick:k,handleSwitcherClick:S}},render(){let{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:i,selected:a,checked:o,highlight:s,draggable:c,blockLine:l,indent:u,indentNodes:d,disabled:f,pending:p,internalScrollable:m,nodeProps:h,checkboxPlacement:g}=this,_=c&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,v=m?fm(e.key):void 0,y=g===`right`,b=n?R(Nw,{indent:u,right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return R(`div`,Object.assign({class:`${t}-tree-node-wrapper`},_),R(`div`,Object.assign({},l?h:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:a,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:i,[`${t}-tree-node--clickable`]:i||r||this.mergedCheckOnClick},h?.class],"data-key":v,draggable:c&&l,onClick:this.handleLineClick,onDragstart:c&&l&&!f?this.handleDragStart:void 0}),d,e.isLeaf&&this.showLine?R(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},R(`div`,{style:{width:`${u}px`}})):R(Fw,{clsPrefix:t,expanded:this.expanded,selected:a,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),y?null:b,R(Pw,{ref:`contentInstRef`,clsPrefix:t,checked:o,selected:a,onClick:this.handleContentClick,nodeProps:l?void 0:h,onDragstart:c&&!l&&!f?this.handleDragStart:void 0,tmNode:e}),c?this.showDropMark?kw({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?kw({el:this.contentElRef.value,position:`inside`,offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,y?b:null))}}),Hw=I({name:`TreeMotionWrapper`,props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){let{clsPrefix:e}=this;return R(ly,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode===`collapse`},{default:()=>R(`div`,{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Pu(this.height)}},this.nodes.map(t=>R(Vw,{clsPrefix:e,tmNode:t})))})}}),Uw=oy(),Ww=H(`tree`,`
font-size: var(--n-font-size);
outline: none;
`,[V(`ul, li`,`
margin: 0;
padding: 0;
list-style: none;
`),V(`>`,[H(`tree-node`,[V(`&:first-child`,`margin-top: 0;`)])]),H(`tree-motion-wrapper`,[W(`expand`,[Ub({duration:`0.2s`})]),W(`collapse`,[Ub({duration:`0.2s`,reverse:!0})])]),H(`tree-node-wrapper`,`
box-sizing: border-box;
padding: var(--n-node-wrapper-padding);
`),H(`tree-node`,`
position: relative;
display: flex;
border-radius: var(--n-node-border-radius);
transition: background-color .3s var(--n-bezier);
`,[W(`highlight`,[H(`tree-node-content`,[U(`text`,`border-bottom-color: var(--n-node-text-color-disabled);`)])]),W(`disabled`,[H(`tree-node-content`,`
color: var(--n-node-text-color-disabled);
cursor: not-allowed;
`)]),wu(`disabled`,[W(`clickable`,[H(`tree-node-content`,`
cursor: pointer;
`)])])]),W(`block-node`,[H(`tree-node-content`,`
flex: 1;
min-width: 0;
`)]),wu(`block-line`,[H(`tree-node`,[wu(`disabled`,[H(`tree-node-content`,[V(`&:hover`,`background: var(--n-node-color-hover);`)]),W(`selectable`,[H(`tree-node-content`,[V(`&:active`,`background: var(--n-node-color-pressed);`)])]),W(`pending`,[H(`tree-node-content`,`
background: var(--n-node-color-hover);
`)]),W(`selected`,[H(`tree-node-content`,`background: var(--n-node-color-active);`)])]),W(`selected`,[H(`tree-node-content`,`background: var(--n-node-color-active);`)])])]),W(`block-line`,[H(`tree-node`,[wu(`disabled`,[V(`&:hover`,`background: var(--n-node-color-hover);`),W(`pending`,`
background: var(--n-node-color-hover);
`),W(`selectable`,[wu(`selected`,[V(`&:active`,`background: var(--n-node-color-pressed);`)])]),W(`selected`,`background: var(--n-node-color-active);`)]),W(`selected`,`background: var(--n-node-color-active);`),W(`disabled`,`
cursor: not-allowed;
`)])]),W(`ellipsis`,[H(`tree-node`,[H(`tree-node-content`,`
overflow: hidden;
`,[U(`text`,`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
`)])])]),H(`tree-node-indent`,`
flex-grow: 0;
flex-shrink: 0;
`,[W(`show-line`,`position: relative`,[V(`&::before`,`
position: absolute;
left: 50%;
border-left: 1px solid var(--n-line-color);
transition: border-color .3s var(--n-bezier);
transform: translate(-50%);
content: "";
top: var(--n-line-offset-top);
bottom: var(--n-line-offset-bottom);
`),W(`last-child`,[V(`&::before`,`
bottom: 50%;
`)]),W(`is-leaf`,[V(`&::after`,`
position: absolute;
content: "";
left: calc(50% + 0.5px);
right: 0;
bottom: 50%;
transition: border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-line-color);
`)])]),wu(`show-line`,`height: 0;`)]),H(`tree-node-switcher`,`
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
height: var(--n-node-content-height);
align-items: center;
justify-content: center;
transition: transform .15s var(--n-bezier);
vertical-align: bottom;
`,[U(`icon`,`
position: relative;
height: 14px;
width: 14px;
display: flex;
color: var(--n-arrow-color);
transition: color .3s var(--n-bezier);
font-size: 14px;
`,[H(`icon`,[Uw]),H(`base-loading`,`
color: var(--n-loading-color);
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[Uw]),H(`base-icon`,[Uw])]),W(`hide`,`visibility: hidden;`),W(`expanded`,`transform: rotate(90deg);`)]),H(`tree-node-checkbox`,`
display: inline-flex;
height: var(--n-node-content-height);
vertical-align: bottom;
align-items: center;
justify-content: center;
`),H(`tree-node-content`,`
user-select: none;
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--n-node-content-height);
box-sizing: border-box;
line-height: var(--n-line-height);
vertical-align: bottom;
padding: 0 6px 0 4px;
cursor: default;
border-radius: var(--n-node-border-radius);
color: var(--n-node-text-color);
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[V(`&:last-child`,`margin-bottom: 0;`),U(`prefix`,`
display: inline-flex;
margin-right: 8px;
`),U(`text`,`
border-bottom: 1px solid #0000;
transition: border-color .3s var(--n-bezier);
flex-grow: 1;
max-width: 100%;
`),U(`suffix`,`
display: inline-flex;
`)]),U(`empty`,`margin: auto;`)]),Gw=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Kw(e,t,n,r){return{getIsGroup(){return!1},getKey(t){return t[e]},getChildren:r||(e=>e[t]),getDisabled(e){return!!(e[n]||e.checkboxDisabled)}}}var qw={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:`key`},labelField:{type:String,default:`label`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},Jw=I({name:`Tree`,props:Object.assign(Object.assign(Object.assign(Object.assign({},Jv.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:``},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:Aw},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:`left`},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),qw),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:`all`},leafOnly:Boolean}),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=xm(e),i=Bv(`Tree`,r,t),a=Jv(`Tree`,`-tree`,Ww,tw,e,t),o=M(null),s=M(null),c=M(null);function l(){return c.value?.listElRef}function u(){return c.value?.itemsElRef}let d=L(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t)=>{if(!e.length)return!0;let r=t[n];return typeof r==`string`&&r.toLowerCase().includes(e.toLowerCase())}}),f=L(()=>{let{pattern:t}=e;return!t||!t.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Bw(e.data,d.value,t,e.keyField,e.childrenField)}),p=L(()=>pb(e.showIrrelevantNodes?e.data:f.value.filteredTree,Kw(e.keyField,e.childrenField,e.disabledField,e.getChildren))),m=F(Ow,null),h=e.internalTreeSelect?m.dataTreeMate:L(()=>e.showIrrelevantNodes?p.value:pb(e.data,Kw(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:g}=e,_=M([]);g?.includes(`defaultCheckedKeys`)?tr(()=>{_.value=e.defaultCheckedKeys}):_.value=e.defaultCheckedKeys;let v=Ad(P(e,`checkedKeys`),_),y=L(()=>h.value.getCheckedKeys(v.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),b=Iw(e),x=L(()=>y.value.checkedKeys),S=L(()=>{let{indeterminateKeys:t}=e;return t===void 0?y.value.indeterminateKeys:t}),C=M([]);g?.includes(`defaultSelectedKeys`)?tr(()=>{C.value=e.defaultSelectedKeys}):C.value=e.defaultSelectedKeys;let w=Ad(P(e,`selectedKeys`),C),T=M([]),E=t=>{T.value=e.defaultExpandAll?h.value.getNonLeafKeys():t===void 0?e.defaultExpandedKeys:t};g?.includes(`defaultExpandedKeys`)?tr(()=>{E(void 0)}):tr(()=>{E(e.defaultExpandedKeys)});let D=Ad(P(e,`expandedKeys`),T),O=L(()=>p.value.getFlattenedNodes(D.value)),{pendingNodeKeyRef:k,handleKeydown:ee}=Mw({props:e,mergedCheckedKeysRef:v,mergedSelectedKeysRef:w,fNodesRef:O,mergedExpandedKeysRef:D,handleCheck:ze,handleSelect:He,handleSwitcherClick:Ve}),A=null,te=null,ne=M(new Set),re=Ad(L(()=>e.internalHighlightKeySet||f.value.highlightKeySet),ne),ie=M(new Set),ae=L(()=>D.value.filter(e=>!ie.value.has(e))),oe=0,se=M(null),ce=M(null),le=M(null),ue=M(null),de=M(0),fe=L(()=>{let{value:e}=ce;return e?e.parent:null}),pe=!1;nr(P(e,`data`),()=>{pe=!0,Ln(()=>{pe=!1}),ie.value.clear(),k.value=null,Fe()},{deep:!1});let me=!1,he=()=>{me=!0,Ln(()=>{me=!1})},ge;nr(P(e,`pattern`),(t,n)=>{if(e.showIrrelevantNodes)if(ge=void 0,t){let{expandedKeys:t,highlightKeySet:n}=zw(e.data,e.pattern,e.keyField,e.childrenField,d.value);ne.value=n,he(),Te(t,we(t),{node:null,action:`filter`})}else ne.value=new Set;else if(!t.length)ge!==void 0&&(he(),Te(ge,we(ge),{node:null,action:`filter`}));else{n.length||(ge=D.value);let{expandedKeys:e}=f.value;e!==void 0&&(he(),Te(e,we(e),{node:null,action:`filter`}))}});function _e(t){return Gw(this,void 0,void 0,function*(){let{onLoad:n}=e;if(!n){yield Promise.resolve();return}let{value:r}=ie;if(!r.has(t.key)){r.add(t.key);try{(yield n(t.rawNode))===!1&&Re()}catch(e){console.error(e),Re()}r.delete(t.key)}})}tr(()=>{var e;let{value:t}=p;if(!t)return;let{getNode:n}=t;(e=D.value)==null||e.forEach(e=>{let t=n(e);t&&!t.shallowLoaded&&_e(t)})});let ve=M(!1),ye=M([]);nr(ae,(t,n)=>{if(!e.animated||me){Ln(Se);return}if(pe)return;let r=Nu(a.value.self.nodeHeight),i=new Set(n),s=null,l=null;for(let e of t)if(!i.has(e)){if(s!==null)return;s=e}let u=new Set(t);for(let e of n)if(!u.has(e)){if(l!==null)return;l=e}if(s===null&&l===null)return;let{virtualScroll:d}=e,f=(d?c.value.listElRef:o.value).offsetHeight,m=Math.ceil(f/r)+1,h;if(s!==null&&(h=n),l!==null&&(h=h===void 0?t:h.filter(e=>e!==l)),ve.value=!0,ye.value=p.value.getFlattenedNodes(h),s!==null){let e=ye.value.findIndex(e=>e.key===s);if(~e){let n=ye.value[e].children;if(n){let i=ub(n,t);ye.value.splice(e+1,0,{__motion:!0,mode:`expand`,height:d?i.length*r:void 0,nodes:d?i.slice(0,m):i})}}}if(l!==null){let e=ye.value.findIndex(e=>e.key===l);if(~e){let n=ye.value[e].children;if(!n)return;ve.value=!0;let i=ub(n,t);ye.value.splice(e+1,0,{__motion:!0,mode:`collapse`,height:d?i.length*r:void 0,nodes:d?i.slice(0,m):i})}}});let be=L(()=>Yy(O.value)),xe=L(()=>ve.value?ye.value:O.value);function Se(){let{value:e}=s;e&&e.sync()}function Ce(){ve.value=!1,e.virtualScroll&&Ln(Se)}function we(e){let{getNode:t}=h.value;return e.map(e=>t(e)?.rawNode||null)}function Te(t,n,r){let{"onUpdate:expandedKeys":i,onUpdateExpandedKeys:a}=e;T.value=t,i&&J(i,t,n,r),a&&J(a,t,n,r)}function Ee(t,n,r){let{"onUpdate:checkedKeys":i,onUpdateCheckedKeys:a}=e;_.value=t,a&&J(a,t,n,r),i&&J(i,t,n,r)}function De(t,n){let{"onUpdate:indeterminateKeys":r,onUpdateIndeterminateKeys:i}=e;r&&J(r,t,n),i&&J(i,t,n)}function Oe(t,n,r){let{"onUpdate:selectedKeys":i,onUpdateSelectedKeys:a}=e;C.value=t,a&&J(a,t,n,r),i&&J(i,t,n,r)}function ke(t){let{onDragenter:n}=e;n&&J(n,t)}function Ae(t){let{onDragleave:n}=e;n&&J(n,t)}function je(t){let{onDragend:n}=e;n&&J(n,t)}function Me(t){let{onDragstart:n}=e;n&&J(n,t)}function Ne(t){let{onDragover:n}=e;n&&J(n,t)}function Pe(t){let{onDrop:n}=e;n&&J(n,t)}function Fe(){Ie(),Le()}function Ie(){se.value=null}function Le(){de.value=0,ce.value=null,le.value=null,ue.value=null,Re()}function Re(){A&&=(window.clearTimeout(A),null),te=null}function ze(t,n){if(e.disabled||Lw(t,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){He(t);return}let r=n?`check`:`uncheck`,{checkedKeys:i,indeterminateKeys:a}=h.value[r](t.key,x.value,{cascade:e.cascade,checkStrategy:b.value,allowNotLoaded:e.allowCheckingNotLoaded});Ee(i,we(i),{node:t.rawNode,action:r}),De(a,we(a))}function Be(t){if(e.disabled)return;let{key:n}=t,{value:r}=D,i=r.findIndex(e=>e===n);if(~i){let e=Array.from(r);e.splice(i,1),Te(e,we(e),{node:t.rawNode,action:`collapse`})}else{let i=p.value.getNode(n);if(!i||i.isLeaf)return;let a;if(e.accordion){let e=new Set(t.siblings.map(({key:e})=>e));a=r.filter(t=>!e.has(t)),a.push(n)}else a=r.concat(n);Te(a,we(a),{node:t.rawNode,action:`expand`})}}function Ve(t){e.disabled||ve.value||Be(t)}function He(t){if(!(e.disabled||!e.selectable)){if(k.value=t.key,e.internalUnifySelectCheck){let{value:{checkedKeys:n,indeterminateKeys:r}}=y;e.multiple?ze(t,!(n.includes(t.key)||r.includes(t.key))):Ee([t.key],we([t.key]),{node:t.rawNode,action:`check`})}if(e.multiple){let n=Array.from(w.value),r=n.findIndex(e=>e===t.key);~r?e.cancelable&&n.splice(r,1):~r||n.push(t.key),Oe(n,we(n),{node:t.rawNode,action:~r?`unselect`:`select`})}else w.value.includes(t.key)?e.cancelable&&Oe([],[],{node:t.rawNode,action:`unselect`}):Oe([t.key],we([t.key]),{node:t.rawNode,action:`select`})}}function Ue(e){if(A&&=(window.clearTimeout(A),null),e.isLeaf)return;te=e.key;let t=()=>{if(te!==e.key)return;let{value:t}=le;if(t&&t.key===e.key&&!D.value.includes(e.key)){let t=D.value.concat(e.key);Te(t,we(t),{node:e.rawNode,action:`expand`})}A=null,te=null};A=e.shallowLoaded?window.setTimeout(()=>{t()},1e3):window.setTimeout(()=>{_e(e).then(()=>{t()})},1e3)}function We({event:t,node:n}){!e.draggable||e.disabled||Lw(n,e.disabledField)||(Ye({event:t,node:n},!1),ke({event:t,node:n.rawNode}))}function Ge({event:t,node:n}){!e.draggable||e.disabled||Lw(n,e.disabledField)||Ae({event:t,node:n.rawNode})}function Ke(e){e.target===e.currentTarget&&Le()}function qe({event:t,node:n}){Fe(),!(!e.draggable||e.disabled||Lw(n,e.disabledField))&&je({event:t,node:n.rawNode})}function Je({event:t,node:n}){!e.draggable||e.disabled||Lw(n,e.disabledField)||(oe=t.clientX,se.value=n,Me({event:t,node:n.rawNode}))}function Ye({event:t,node:n},r=!0){if(!e.draggable||e.disabled||Lw(n,e.disabledField))return;let{value:i}=se;if(!i)return;let{allowDrop:a,indent:o}=e;r&&Ne({event:t,node:n.rawNode});let{height:s,top:c}=t.currentTarget.getBoundingClientRect(),l=t.clientY-c,u;u=a({node:n.rawNode,dropPosition:`inside`,phase:`drag`})?l<=8?`before`:l>=s-8?`after`:`inside`:l<=s/2?`before`:`after`;let{value:d}=be,f,p,m=d(n.key);if(m===null){Le();return}let h=!1;u===`inside`?(f=n,p=`inside`):u===`before`?n.isFirstChild?(f=n,p=`before`):(f=O.value[m-1],p=`after`):(f=n,p=`after`),!f.isLeaf&&D.value.includes(f.key)&&(h=!0,p===`after`&&(f=O.value[m+1],f?p=`before`:(f=n,p=`inside`)));let g=f;if(le.value=g,!h&&i.isLastChild&&i.key===f.key&&(p=`after`),p===`after`){let e=oe-t.clientX,n=0;for(;e>=o/2&&f.parent!==null&&f.isLastChild&&n<1;)e-=o,n+=1,f=f.parent;de.value=n}else de.value=0;if((i.contains(f)||p===`inside`&&i.parent?.key===f.key)&&!(i.key===g.key&&i.key===f.key)){Le();return}if(!a({node:f.rawNode,dropPosition:p,phase:`drag`})){Le();return}if(i.key===f.key)Re();else if(te!==f.key)if(p===`inside`){if(e.expandOnDragenter){if(Ue(f),!f.shallowLoaded&&te!==f.key){Fe();return}}else if(!f.shallowLoaded){Fe();return}}else Re();else p!==`inside`&&Re();ue.value=p,ce.value=f}function Xe({event:t,node:n,dropPosition:r}){if(!e.draggable||e.disabled||Lw(n,e.disabledField))return;let{value:i}=se,{value:a}=ce,{value:o}=ue;if(!(!i||!a||!o)&&e.allowDrop({node:a.rawNode,dropPosition:o,phase:`drag`})&&i.key!==a.key){if(o===`before`){let e=i.getNext({includeDisabled:!0});if(e&&e.key===a.key){Le();return}}if(o===`after`){let e=i.getPrev({includeDisabled:!0});if(e&&e.key===a.key){Le();return}}Pe({event:t,node:a.rawNode,dragNode:i.rawNode,dropPosition:r}),Fe()}}function Ze(){Se()}function Qe(){Se()}function $e(t){if(e.virtualScroll||e.internalScrollable){let{value:e}=s;if((e?.containerRef)?.contains(t.relatedTarget))return;k.value=null}else{let{value:e}=o;if(e?.contains(t.relatedTarget))return;k.value=null}}nr(k,t=>{var n;if(t!==null){if(e.virtualScroll)(n=c.value)==null||n.scrollTo({key:t});else if(e.internalScrollable){let{value:e}=s;if(e===null)return;let n=e.contentRef?.querySelector(`[data-key="${fm(t)}"]`);if(!n)return;e.scrollTo({el:n})}}}),Qn(jw,{loadingKeysRef:ie,highlightKeySetRef:re,displayedCheckedKeysRef:x,displayedIndeterminateKeysRef:S,mergedSelectedKeysRef:w,mergedExpandedKeysRef:D,mergedThemeRef:a,mergedCheckStrategyRef:b,nodePropsRef:P(e,`nodeProps`),disabledRef:P(e,`disabled`),checkableRef:P(e,`checkable`),selectableRef:P(e,`selectable`),expandOnClickRef:P(e,`expandOnClick`),onLoadRef:P(e,`onLoad`),draggableRef:P(e,`draggable`),blockLineRef:P(e,`blockLine`),indentRef:P(e,`indent`),cascadeRef:P(e,`cascade`),checkOnClickRef:P(e,`checkOnClick`),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:le,droppingNodeParentRef:fe,draggingNodeRef:se,droppingPositionRef:ue,droppingOffsetLevelRef:de,fNodesRef:O,pendingNodeKeyRef:k,showLineRef:P(e,`showLine`),disabledFieldRef:P(e,`disabledField`),internalScrollableRef:P(e,`internalScrollable`),internalCheckboxFocusableRef:P(e,`internalCheckboxFocusable`),internalTreeSelect:e.internalTreeSelect,renderLabelRef:P(e,`renderLabel`),renderPrefixRef:P(e,`renderPrefix`),renderSuffixRef:P(e,`renderSuffix`),renderSwitcherIconRef:P(e,`renderSwitcherIcon`),labelFieldRef:P(e,`labelField`),multipleRef:P(e,`multiple`),overrideDefaultNodeClickBehaviorRef:P(e,`overrideDefaultNodeClickBehavior`),handleSwitcherClick:Ve,handleDragEnd:qe,handleDragEnter:We,handleDragLeave:Ge,handleDragStart:Je,handleDrop:Xe,handleDragOver:Ye,handleSelect:He,handleCheck:ze});function et(e,t){var n,r;typeof e==`number`?(n=c.value)==null||n.scrollTo(e,t||0):(r=c.value)==null||r.scrollTo(e)}let tt={handleKeydown:ee,scrollTo:et,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};let{checkedKeys:t}=y.value;return{keys:t,options:we(t)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};let{indeterminateKeys:t}=y.value;return{keys:t,options:we(t)}}},nt=L(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,nodeBorderRadius:n,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:o,arrowColor:s,loadingColor:c,nodeTextColor:l,nodeTextColorDisabled:u,dropMarkColor:d,nodeWrapperPadding:f,nodeHeight:p,lineHeight:m,lineColor:h}}=a.value,g=Fu(f,`top`),_=Fu(f,`bottom`),v=Pu(Nu(p)-Nu(g)-Nu(_));return{"--n-arrow-color":s,"--n-loading-color":c,"--n-bezier":e,"--n-font-size":t,"--n-node-border-radius":n,"--n-node-color-active":o,"--n-node-color-hover":r,"--n-node-color-pressed":i,"--n-node-text-color":l,"--n-node-text-color-disabled":u,"--n-drop-mark-color":d,"--n-node-wrapper-padding":f,"--n-line-offset-top":`-${g}`,"--n-line-offset-bottom":`-${_}`,"--n-node-content-height":v,"--n-line-height":m,"--n-line-color":h}}),rt=n?Sm(`tree`,void 0,nt,e):void 0;return Object.assign(Object.assign({},tt),{mergedClsPrefix:t,mergedTheme:a,rtlEnabled:i,fNodes:xe,aip:ve,selfElRef:o,virtualListInstRef:c,scrollbarInstRef:s,handleFocusout:$e,handleDragLeaveTree:Ke,handleScroll:Ze,getScrollContainer:l,getScrollContent:u,handleAfterEnter:Ce,handleResize:Qe,cssVars:n?void 0:nt,themeClass:rt?.themeClass,onRender:rt?.onRender})},render(){var e;let{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();let{mergedClsPrefix:r,blockNode:i,blockLine:a,draggable:o,disabled:s,ellipsis:c,internalFocusable:l,checkable:u,handleKeydown:d,rtlEnabled:f,handleFocusout:p,scrollbarProps:m}=this,h=l&&!s,g=h?`0`:void 0,_=[`${r}-tree`,f&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(a||i)&&`${r}-tree--block-node`,a&&`${r}-tree--block-line`,c&&`${r}-tree--ellipsis`],v=e=>`__motion`in e?R(Hw,{height:e.height,nodes:e.nodes,clsPrefix:r,mode:e.mode,onAfterEnter:this.handleAfterEnter}):R(Vw,{key:e.key,tmNode:e,clsPrefix:r});if(this.virtualScroll){let{mergedTheme:e,internalScrollablePadding:n}=this,i=Fu(n||`0`);return R(My,Object.assign({},m,{ref:`scrollbarInstRef`,onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:_,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0}),{default:()=>{var n;return(n=this.onRender)==null||n.call(this),t.length?R(sm,{ref:`virtualListInstRef`,items:this.fNodes,itemSize:Nu(e.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:i.top,paddingBottom:i.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:i.left,paddingRight:i.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:e})=>v(e)}):hm(this.$slots.empty,()=>[R(yb,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}let{internalScrollable:y}=this;return _.push(this.themeClass),(e=this.onRender)==null||e.call(this),y?R(My,Object.assign({},m,{class:_,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>R(`div`,{onDragleave:o?this.handleDragLeaveTree:void 0,ref:`selfElRef`},this.fNodes.map(v))}):R(`div`,{class:_,tabindex:g,ref:`selfElRef`,style:this.cssVars,onKeydown:h?d:void 0,onFocusout:h?p:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},t.length?t.map(v):hm(this.$slots.empty,()=>[R(yb,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),Yw={name:`dark`,common:X,Alert:zb,Anchor:Kb,AutoComplete:lx,Avatar:dx,AvatarGroup:px,BackTop:hx,Badge:gx,Breadcrumb:yx,Button:Ex,ButtonGroup:eC,Calendar:jx,Card:Px,Carousel:Ix,Cascader:Hx,Checkbox:Bx,Code:Jx,Collapse:Xx,CollapseTransition:Qx,ColorPicker:eS,DataTable:vS,DatePicker:ES,Descriptions:kS,Dialog:MS,Divider:US,Drawer:GS,Dropdown:uS,DynamicInput:qS,DynamicTags:XS,Element:ZS,Empty:_b,Ellipsis:pS,Equation:{name:`Equation`,common:X,self:()=>({})},Flex:$S,Form:rC,GradientText:iC,Heatmap:fw,Icon:bS,IconWrapper:mw,Image:hw,Input:Zb,InputNumber:aC,InputOtp:sC,LegacyTransfer:_w,Layout:cC,List:dC,LoadingBar:FS,Log:fC,Menu:gC,Mention:pC,Message:RS,Modal:PS,Notification:VS,PageHeader:yC,Pagination:sS,Popconfirm:SC,Popover:Ob,Popselect:nS,Progress:wC,QrCode:bw,Radio:hS,Rate:TC,Result:OC,Row:lC,Scrollbar:ky,Select:iS,Skeleton:xw,Slider:AC,Space:YS,Spin:PC,Statistic:IC,Steps:zC,Switch:VC,Table:WC,Tabs:qC,Tag:Ab,Thing:YC,TimePicker:CS,Timeline:ZC,Tooltip:fS,Transfer:$C,Tree:nw,TreeSelect:rw,Typography:ow,Upload:cw,Watermark:lw,Split:Dw,FloatButton:uw,FloatButtonGroup:{name:`FloatButtonGroup`,common:X,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:yw};function Xw(e,t,n){Yr(()=>{N(e).addEventListener(t,n)}),Qr(()=>{N(e).removeEventListener(t,n)})}function Zw(e,t){Yr(()=>{ac.on(e,t)}),Qr(()=>{ac.off(e,t)})}var Qw=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},$w={},eT={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function tT(e,t){return Ea(),ja(`svg`,eT,[...t[0]||=[La(`path`,{d:`M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8s-8-3.59-8-8s3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 10V9c0-.55-.45-1-1-1s-1 .45-1 1v3H9.21c-.45 0-.67.54-.35.85l2.79 2.79c.2.2.51.2.71 0l2.79-2.79a.5.5 0 0 0-.35-.85H13z`,fill:`currentColor`},null,-1)]])}var nT=Qw($w,[[`render`,tT]]),rT={},iT={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function aT(e,t){return Ea(),ja(`svg`,iT,[...t[0]||=[La(`path`,{d:`M11.77 3c-2.65.07-5 1.28-6.6 3.16L3.85 4.85a.5.5 0 0 0-.85.36V9.5c0 .28.22.5.5.5h4.29c.45 0 .67-.54.35-.85L6.59 7.59C7.88 6.02 9.82 5 12 5c4.32 0 7.74 3.94 6.86 8.41c-.54 2.77-2.81 4.98-5.58 5.47c-3.8.68-7.18-1.74-8.05-5.16c-.12-.42-.52-.72-.96-.72c-.65 0-1.14.61-.98 1.23C4.28 18.12 7.8 21 12 21c5.06 0 9.14-4.17 9-9.26c-.14-4.88-4.35-8.86-9.23-8.74zM14 12c0-1.1-.9-2-2-2s-2 .9-2 2s.9 2 2 2s2-.9 2-2z`,fill:`currentColor`},null,-1)]])}var oT=Qw(rT,[[`render`,aT]]),sT={},cT={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function lT(e,t){return Ea(),ja(`svg`,cT,[...t[0]||=[La(`path`,{d:`M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z`,fill:`currentColor`},null,-1)]])}var uT=Qw(sT,[[`render`,lT]]),dT=[`innerHTML`],fT=I({__name:`LocalIcon`,props:{id:{type:String,default:`ghost`}},setup(e){let t=(0,l.getIcon)(e.id)?.outerHTML||(0,l.getIcon)(`ghost`)?.outerHTML;return(e,n)=>(Ea(),ja(`div`,{innerHTML:N(t)},null,8,dT))}});function pT(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var mT=/\s*,(?![^(]*\))\s*/g,hT=/\s+/g;function gT(e,t){let n=[];return t.split(mT).forEach(t=>{let r=pT(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function _T(e,t){let n=[];return t.split(mT).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function vT(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?gT(t,e):_T(t,e))}),t.join(`, `).replace(hT,` `)}var yT=/[A-Z]/g;function bT(e){return e.replace(yT,e=>`-`+e.toLowerCase())}function xT(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${bT(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function ST(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function CT(e,t,n,r){if(!t)return``;let i=ST(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=bT(e),t!=null&&o.push(` ${e}${xT(t)}`)}),e&&o.push(`}`),o.join(`
`)}function wT(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))wT(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?wT(r,t,n):r&&n(r)}else e&&n(e)})}function TT(e,t,n,r,i,a){let o=e.$;!o||typeof o==`string`?t.push(o):typeof o==`function`?t.push(o({context:r.context,props:i})):(o.before&&o.before(r.context),!o.$||typeof o.$==`string`?t.push(o.$):o.$&&t.push(o.$({context:r.context,props:i})));let s=vT(t),c=CT(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&wT(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=CT(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else TT(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function ET(e,t,n,r=!1){let i=[];return TT(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(`
`)}function DT(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function OT(e){return document.querySelector(`style[cssr-id="${e}"]`)}function kT(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function AT(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function jT(e,t){e.setAttribute(`mount-count`,String(t))}function MT(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(DT),t.els=[];else{let e=OT(n);if(e&&i.includes(e)){let a=AT(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(DT(e),t.els=i.filter(t=>t!==e)):jT(e,a-1):a===null?(DT(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function NT(e,t){e.push(t)}function PT(e,t,n,r,i,a,o,s,c){if(o&&!c){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,ET(t,e,r,o));return}let l,{els:u}=t,d;if(n===void 0&&(d=t.render(r),n=su(d)),c){c(n,d??t.render(r));return}let f=OT(n);if(s||f===null){if(l=f===null?kT(n):f,d===void 0&&(d=t.render(r)),l.textContent=d,f!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(l,e)}else document.head.appendChild(l);a&&jT(l,1),NT(u,l)}else{let e=AT(f);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):jT(f,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return f??l}function FT(e){return ET(this,this.instance,e)}function IT(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return PT(this.instance,this,n??t,i,o,a,s,c,r)}function LT(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?MT(this.instance,this,t??n,i):setTimeout(()=>MT(this.instance,this,t??n,i),r)}var RT=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:FT,mount:IT,unmount:LT}},zT=function(e,t,n,r){return Array.isArray(t)?RT(e,{$:null},null,t):Array.isArray(n)?RT(e,t,null,n):Array.isArray(r)?RT(e,t,n,r):RT(e,t,n,null)};function BT(e={}){let t=null,n={c:((...e)=>zT(n,...e)),use:(e,...t)=>e.install(n,...t),find:OT,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:VT}=BT(),HT=VT(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[VT(`svg`,{width:`1em`,height:`1em`}),VT(`svg:not([fill])`,{fill:`currentColor`})]),UT=()=>{HT.mount({id:`xicons-icon`})},WT={size:[String,Number],color:String,tag:String},GT=Symbol(`IconConfigInjection`),KT=`span`,qT=I({name:`Icon`,props:WT,setup(e,{slots:t}){let n=F(GT,null),r=L(()=>{let t=e.size??n?.size;if(t!==void 0)return typeof t==`number`||/^\d+$/.test(t)?`${t}px`:t}),i=L(()=>{let{color:t}=e;return t===void 0?n?n.color:void 0:t}),a=L(()=>{let{tag:t}=e;return t===void 0?n?.tag??KT:t});return Jr(()=>{UT()}),()=>R(a.value,{class:`xicon`,style:{color:i.value,fontSize:r.value}},[ai(t,`default`)])}}),JT=I({__name:`Button`,props:{iconStyle:{},onClick:{type:Function},label:{},svgIcon:{}},setup(e){return(t,n)=>(Ea(),Ma(N(Ox),{size:`small`,circle:``,onClick:e.onClick,"aria-label":e.label},{icon:Yn(()=>[Ra(N(qT),null,{default:Yn(()=>[Ra(N(e.svgIcon),{style:Se(e.iconStyle)},null,8,[`style`])]),_:1})]),_:1},8,[`onClick`,`aria-label`]))}});function YT(e,t){return`item-`+e+`-`+t}function XT(e){return parseInt(e.split(`-`)[2])}function ZT(e){return typeof e!=`string`&&(e=e.key),parseInt(e.split(`-`)[2])}function QT(e){return e===z.headers.length-1||z.headers[e+1].level<=z.headers[e].level}function $T(e){let t=[],n=z.headers[e].level+1;for(let r=e;r>=0;r--)z.headers[r].level<n&&(t.push(r),n=z.headers[r].level);return t.reverse()}function eE(e,t){try{return JSON.parse(e)}catch{return t}}function tE({plugin:e,container:t,expanded:n,modifyExpandKeys:r}){let i=L(()=>nE(z.headers)),a=M(0),o=M([]);Xw(window,`click`,()=>{o.value=[]});let s=(0,l.debounce)(n=>{if(!e.settings.auto_scroll_into_view)return;let r=t.querySelector(`#no-${n}`);r&&r.scrollIntoView({block:`center`,behavior:`smooth`,container:`nearest`})},100,!0);function c(e){let t=$T(e),r=t.find(e=>!n.value.contains(YT(z.headers[e].level,e)));r=r===void 0?t[t.length-1]:r,a.value=r,s(r)}return{data:i,nodeProps:L(()=>t=>{let s=parseInt(t.option.key.split(`-`)[1]),c=parseInt(t.option.key.split(`-`)[2]),u=t.option.label||``,d=a.value===c?`located`:``;function f(t){let n=t.key.split(`-`),r=parseInt(n[2]);e.navigator.jumpWhenClick(r)}return{class:`level-${s} ${d}`,id:`no-${c}`,"aria-label":z.ellipsis?t.option.label:``,"data-tooltip-position":z.labelDirection,raw:u,onClick:e=>{e.target,!e.target.matchParent(`.n-tree-node-switcher`)&&e.target.matchParent(`.n-tree-node`)&&f(t.option)},onContextmenu(a){o.value=[t.option.key];let{self:d,siblings:f,descendants:p}=iE(i,XT(t.option.key)),m=new l.Menu().setNoIcon(),h=[d,...p].filter(e=>e.children).map(e=>e.key),g=f.filter(e=>e.children).map(e=>e.key);Cc(m,[n.value.includes(t.option.key)?wc(B(`Collapse Recursively`),()=>r(h,`remove`)):wc(B(`Expand Recursively`),()=>r(h,`add`)),wc(B(`Collapse Sibling`),()=>r(g,`remove`)),wc(B(`Expand Sibling`),()=>r(g,`add`)),Dc()]),e.navigator.onRightClick(a,{node:t.option,no:c,level:s,raw:u},m,()=>{o.value=[]})}}}),locateIdx:a,resetLocated:c,selectedKeys:o}}function nE(e){return rE(e)}function rE(e){let t={children:[]},n=[{node:t,level:-1}];return e.forEach((e,t)=>{let r={label:e.title,key:YT(e.level,t),icon:e.icon,no:t};for(;e.level<=n.last().level;)n.pop();let i=n.last().node;i.children===void 0&&(i.children=[]),r.parent=i,i.children.push(r),n.push({node:r,level:e.level})}),t.children?.forEach(e=>e.parent=void 0),t.children}function iE(e,t){let n=[];function r(e){if(!e||e.length===0)return;let i=0;for(let r=e.length-1;r>=0;r--)if(XT(e[r].key)<=t){n.push(e[r]),i=r;break}r(e[i].children)}r(e.value);let i=n[n.length-1],a=n[n.length-2]?n[n.length-2].children||[]:e.value,o=[];function s(e){if(!(!e||e.length===0))for(let t=0;t<e.length;t++){let n=e[t];o.push(n),s(n.children)}}return s(i.children),{self:i,path:n,siblings:a,descendants:o}}function aE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var oE=aE();function sE(e){oE=e}var cE={exec:()=>null};function lE(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(dE.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var uE=(()=>{try{return!0}catch{return!1}})(),dE={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,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:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,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:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},fE=/^(?:[ \t]*(?:\n|$))+/,pE=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mE=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hE=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gE=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_E=/(?:[*+-]|\d{1,9}[.)])/,vE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yE=lE(vE).replace(/bull/g,_E).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),bE=lE(vE).replace(/bull/g,_E).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xE=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,SE=/^[^\n]+/,CE=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,wE=lE(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,CE).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),TE=lE(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_E).getRegex(),EE=`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`,DE=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,OE=lE(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,DE).replace(`tag`,EE).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kE=lE(xE).replace(`hr`,hE).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,EE).getRegex(),AE={blockquote:lE(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,kE).getRegex(),code:pE,def:wE,fences:mE,heading:gE,hr:hE,html:OE,lheading:yE,list:TE,newline:fE,paragraph:kE,table:cE,text:SE},jE=lE(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,hE).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,EE).getRegex(),ME={...AE,lheading:bE,table:jE,paragraph:lE(xE).replace(`hr`,hE).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,jE).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,EE).getRegex()},NE={...AE,html:lE(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,DE).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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cE,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lE(xE).replace(`hr`,hE).replace(`heading`,` *#{1,6} *[^
]`).replace(`lheading`,yE).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},PE=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,FE=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,IE=/^( {2,}|\\)\n(?!\s*$)/,LE=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,RE=/[\p{P}\p{S}]/u,zE=/[\s\p{P}\p{S}]/u,BE=/[^\s\p{P}\p{S}]/u,VE=lE(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,zE).getRegex(),HE=/(?!~)[\p{P}\p{S}]/u,UE=/(?!~)[\s\p{P}\p{S}]/u,WE=/(?:[^\s\p{P}\p{S}]|~)/u,GE=lE(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,uE?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),KE=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qE=lE(KE,`u`).replace(/punct/g,RE).getRegex(),JE=lE(KE,`u`).replace(/punct/g,HE).getRegex(),YE=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,XE=lE(YE,`gu`).replace(/notPunctSpace/g,BE).replace(/punctSpace/g,zE).replace(/punct/g,RE).getRegex(),ZE=lE(YE,`gu`).replace(/notPunctSpace/g,WE).replace(/punctSpace/g,UE).replace(/punct/g,HE).getRegex(),QE=lE(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,BE).replace(/punctSpace/g,zE).replace(/punct/g,RE).getRegex(),$E=lE(/\\(punct)/,`gu`).replace(/punct/g,RE).getRegex(),eD=lE(/^<(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(),tD=lE(DE).replace(`(?:-->|$)`,`-->`).getRegex(),nD=lE(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,tD).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rD=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,iD=lE(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,rD).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),aD=lE(/^!?\[(label)\]\[(ref)\]/).replace(`label`,rD).replace(`ref`,CE).getRegex(),oD=lE(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,CE).getRegex(),sD=lE(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,aD).replace(`nolink`,oD).getRegex(),cD=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,lD={_backpedal:cE,anyPunctuation:$E,autolink:eD,blockSkip:GE,br:IE,code:FE,del:cE,emStrongLDelim:qE,emStrongRDelimAst:XE,emStrongRDelimUnd:QE,escape:PE,link:iD,nolink:oD,punctuation:VE,reflink:aD,reflinkSearch:sD,tag:nD,text:LE,url:cE},uD={...lD,link:lE(/^!?\[(label)\]\((.*?)\)/).replace(`label`,rD).getRegex(),reflink:lE(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,rD).getRegex()},dD={...lD,emStrongRDelimAst:ZE,emStrongLDelim:JE,url:lE(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,cD).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:lE(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,cD).getRegex()},fD={...dD,br:lE(IE).replace(`{2,}`,`*`).getRegex(),text:lE(dD.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},pD={normal:AE,gfm:ME,pedantic:NE},mD={normal:lD,gfm:dD,breaks:fD,pedantic:uD},hD={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},gD=e=>hD[e];function _D(e,t){if(t){if(dE.escapeTest.test(e))return e.replace(dE.escapeReplace,gD)}else if(dE.escapeTestNoEncode.test(e))return e.replace(dE.escapeReplaceNoEncode,gD);return e}function vD(e){try{e=encodeURI(e).replace(dE.percentDecode,`%`)}catch{return null}return e}function yD(e,t){let n=e.replace(dE.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(dE.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<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(dE.slashPipe,`|`);return n}function bD(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function xD(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function SD(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 CD(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(`
`)}var wD=class{options;rules;lexer;constructor(e){this.options=e||oE}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=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:bD(e,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=CD(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=bD(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw: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:bD(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=bD(t[0],`
`).split(`
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
${s}`:s,r=r?`${r}
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,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=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.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=t[2].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);for(;e;){let f=e.split(`
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
`+p.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()&&(u=!0),r+=f+`
`,e=e.substring(f.length+1),c=p.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){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].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 t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.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=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}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)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}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: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=yD(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: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<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(yD(e,a.header.length).map((e,t)=>({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)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}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=bD(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=xD(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)),SD(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 SD(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,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){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}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}}}},TD=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||oE,this.options.tokenizer=this.options.tokenizer||new wD,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:dE,block:pD.normal,inline:mD.normal};this.options.pedantic?(t.block=pD.pedantic,t.inline=mD.pedantic):this.options.gfm&&(t.block=pD.gfm,this.options.breaks?t.inline=mD.breaks:t.inline=mD.gfm),this.tokenizer.rules=t}static get rules(){return{block:pD,inline:mD}}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(dE.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(dE.tabCharGlobal,` `).replace(dE.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=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&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
`)?``:`
`)+r.raw,a.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=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&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},ED=class{options;parser;constructor(e){this.options=e||oE}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(dE.notSpaceStart)?.[0],i=e.replace(dE.endingNewline,``)+`
`;return r?`<pre><code class="language-`+_D(r)+`">`+(n?i:_D(i,!0))+`</code></pre>
`:`<pre><code>`+(n?i:_D(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
`+r+`</`+i+`>
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${_D(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=vD(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+_D(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=vD(e);if(i===null)return _D(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${_D(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:_D(e.text)}},DD=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}},OD=class e{options;renderer;textRenderer;constructor(e){this.options=e||oE,this.options.renderer=this.options.renderer||new ED,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new DD}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},kD=class{options;block;constructor(e){this.options=e||oE}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?TD.lex:TD.lexInline}provideParser(){return this.block?OD.parse:OD.parseInline}},AD=new class{defaults=aE();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=OD;Renderer=ED;TextRenderer=DD;Lexer=TD;Tokenizer=wD;Hooks=kD;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{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 ED(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 wD(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 kD;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];kD.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&kD.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)}: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 TD.lex(e,t??this.defaults)}parser(e,t){return OD.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?TD.lex:TD.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?OD.parse:OD.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?TD.lex:TD.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?OD.parse:OD.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=`<p>An error occurred:</p><pre>`+_D(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function jD(e,t){return AD.parse(e,t)}jD.options=jD.setOptions=function(e){return AD.setOptions(e),jD.defaults=AD.defaults,sE(jD.defaults),jD},jD.getDefaults=aE,jD.defaults=oE,jD.use=function(...e){return AD.use(...e),jD.defaults=AD.defaults,sE(jD.defaults),jD},jD.walkTokens=function(e,t){return AD.walkTokens(e,t)},jD.parseInline=AD.parseInline,jD.Parser=OD,jD.parser=OD.parse,jD.Renderer=ED,jD.TextRenderer=DD,jD.Lexer=TD,jD.lexer=TD.lex,jD.Tokenizer=wD,jD.Hooks=kD,jD.parse=jD,jD.options,jD.setOptions,jD.use,jD.walkTokens,jD.parseInline,OD.parse,TD.lex;var MD={name:`formula`,level:`inline`,start(e){return e.match(/\$/)?.index||-1},tokenizer(e,t){let n=/^\$([^$]+)\$/.exec(e);if(n)return{type:`formula`,raw:n[0],formula:n[1].trim()}},renderer(e){try{let t=(0,l.renderMath)(e.formula,!1);return t.setAttr(`origin`,e.formula),(0,l.finishRenderMath)(),t.outerHTML}catch{return(0,l.loadMathJax)().then(()=>{z.refreshTree()}),!1}}},ND={name:`internal`,level:`inline`,start(e){let t=e.match(/!?\[\[/);return t?t.index:-1},tokenizer(e,t){let n=/^!?\[\[([^[\]]+?)\]\]/.exec(e);if(n){let e=/.*\|(.*)/.exec(n[1]);return{type:`internal`,raw:n[0],internal:e?e[1]:n[1]}}},renderer(e){return`<span class="internal-link">${e.internal}</span>`}},PD={name:`ref`,level:`inline`,start(e){let t=e.match(/\^|\[/);return t?t.index:-1},tokenizer(e,t){let n=/^(\^[A-Za-z0-9-]+)|^(\^\[[^\]]*\])|^(\[\^[^\]]*\])/.exec(e);if(n)return{type:`ref`,raw:n[0],ref:(n[1]||n[2]||n[3]).trim()}},renderer(){return``}},FD={name:`highlight`,level:`inline`,start(e){let t=e.match(/==/);return t?t.index:-1},tokenizer(e,t){let n=/^==([^=]+)==/.exec(e);if(n)return{type:`highlight`,raw:n[0],internal:n[1]}},renderer(e){return`<mark>${e.internal}</mark>`}},ID={name:`tag`,level:`inline`,start(e){let t=/(^|\s)#/.exec(e);return t?t.index+t[1].length:-1},tokenizer(e,t){let n=/^#([^[\]{}:;'"`~,.<>?|\\!@#$%^&*()=+\d\s][^[\]{}:;'"`~,.<>?|\\!@#$%^&*()=+\s]*)/.exec(e);if(n)return{type:`tag`,raw:n[0],internal:n[1]}},renderer(e){return`<a href="" class="tag" target="_blank" rel="noopener">#${e.internal}</a>`}},LD=e=>{e.type===`link`&&(e.href=`#`)},RD={list(){}};function zD(){jD.use({extensions:[MD,ND,FD,ID,PD]}),jD.use({walkTokens:LD}),jD.use({tokenizer:RD})}zD();function BD(e){let t=M();return{renderLabel:L(()=>{let n=z.markdown?HD:({option:e})=>R(`div`,e.label);return({option:r})=>r.key===z.currentEditingKey?(t.value===void 0&&(t.value=r.label),R(sx,{value:t.value,onUpdateValue:e=>{t.value=e},onClick(e){e.stopPropagation()},onKeydown(n){n.key===`Enter`?(e.navigator.changeHeadingContent(r.no,t.value||``),z.currentEditingKey=``,t.value=void 0):n.key===`Escape`&&(z.currentEditingKey=``,t.value=void 0)}})):n({option:r})}),renderSwitcherIcon:UD,editingHeadingText:t,renderPrefix:WD}}function VD(e){let t=jD.parse(e||``,{async:!1}).trim(),n=0,r=t.match(/<mjx-container.*?>.*?<\/mjx-container>/g)||[];return t=t.replace(/<mjx-container.*?>.*?<\/mjx-container>/g,()=>`<math></math>`),t=(0,l.sanitizeHTMLToDom)(`<div>${t}</div>`).children[0].innerHTML,t=t.replace(/<math.*?>.*?<\/math>/g,()=>r[n++]),t}function HD({option:e}){return R(`div`,{innerHTML:VD(e.label)})}function UD(){return R(qT,{size:`12px`},{default:()=>R(uT)})}function WD({option:e}){if(!e.icon)return null;let t=null;switch(e.icon){default:t=R(fT,{id:e.icon})}return R(qT,{size:`1.2em`},{default:()=>t})}function GD(e,t){let n,r,i=``;function a(e){let t=e.target.closest(`.n-tree-node`);t&&(n=t,r=e,addEventListener(`keydown`,l))}function o(e){removeEventListener(`keydown`,l)}let s=t=>e.settings.show_popover_key===`ctrlKey`&&t.ctrlKey||e.settings.show_popover_key===`altKey`&&t.altKey||e.settings.show_popover_key===`metaKey`&&t.metaKey;function c(t){s(t)&&e.app.workspace.trigger(`hover-link`,{event:r,source:`preview`,targetEl:n,hoverParent:{hoverPopover:null},linktext:`#`+n?.getAttribute(`raw`),sourcePath:e.navigator.getPath()})}let l=u(c,100);function u(e,t){let r=!0,a;return function(...o){let s=n?.getAttribute(`raw`)||``;if(s!==i||r){e(...o),r=!1,i=s;return}a&&activeWindow.clearTimeout(a),a=activeWindow.setTimeout(()=>{r=!0},t)}}Yr(()=>{t.addEventListener(`mouseover`,a),t.addEventListener(`mouseout`,o)}),$r(()=>{t.removeEventListener(`mouseover`,a),t.removeEventListener(`mouseout`,o),removeEventListener(`keydown`,l)})}function KD(){let e=L(()=>z.dark?Yw:null),t=L(()=>z.theme.patchColor?z.dark?z.theme.primaryColorDark:z.theme.primaryColorLight:(z.cssChange,qD())),n=L(()=>(z.dark,{color:`var(--icon-color)`})),r=L(()=>{let e=z.theme.patchColor?z.theme.primaryColorLight:t.value;return{common:{primaryColor:e,primaryColorHover:e},Slider:{handleSize:`10px`,fillColor:e,fillColorHover:e,dotBorderActive:`2px solid ${e}`},Tree:{nodeTextColor:`var(--nav-item-color)`,arrowColor:`var(--nav-collapse-icon-color)`}}}),i=L(()=>{let e=z.theme.patchColor?z.theme.primaryColorDark:t.value;return{common:{primaryColor:e,primaryColorHover:e},Slider:{handleSize:`10px`,fillColor:e,fillColorHover:e,dotBorderActive:`2px solid ${e}`},Tree:{nodeTextColor:`var(--nav-item-color)`,arrowColor:`var(--nav-collapse-icon-color)`}}});return{theme:e,themeOverrides:L(()=>e.value===null?r.value:i.value),iconColor:n,primaryColor:t,rainbowColors:L(()=>z.theme.rainbowLine?{h1:`rgba(${YD(z.theme.rainbowColor1)}, 0.6)`,h2:`rgba(${YD(z.theme.rainbowColor2)}, 0.6)`,h3:`rgba(${YD(z.theme.rainbowColor3)}, 0.6)`,h4:`rgba(${YD(z.theme.rainbowColor4)}, 0.6)`,h5:`rgba(${YD(z.theme.rainbowColor5)}, 0.6)`}:{h1:`var(--nav-indentation-guide-color)`,h2:`var(--nav-indentation-guide-color)`,h3:`var(--nav-indentation-guide-color)`,h4:`var(--nav-indentation-guide-color)`,h5:`var(--nav-indentation-guide-color)`}),containerStyle:L(()=>{let e={};if(e[`--custom-font-size`]=z.theme.fontSize,e[`--custom-font-family`]=z.theme.fontFamily,e[`--custom-font-weight`]=z.theme.fontWeight,e[`--custom-line-height`]=z.theme.lineHeight,e[`--custom-line-gap`]=z.theme.lineGap,z.theme.customFontColor){let t=z.dark?z.theme.h1ColorDark:z.theme.h1ColorLight,n=z.dark?z.theme.h2ColorDark:z.theme.h2ColorLight,r=z.dark?z.theme.h3ColorDark:z.theme.h3ColorLight,i=z.dark?z.theme.h4ColorDark:z.theme.h4ColorLight,a=z.dark?z.theme.h5ColorDark:z.theme.h5ColorLight,o=z.dark?z.theme.h6ColorDark:z.theme.h6ColorLight;e[`--h1-color`]=t,e[`--h2-color`]=n,e[`--h3-color`]=r,e[`--h4-color`]=i,e[`--h5-color`]=a,e[`--h6-color`]=o}return e}),biDi:L(()=>z.textDirectionDecideBy===`text`?`plaintext`:`isolate`)}}function qD(){let e=activeDocument.body.createDiv({attr:{style:`width: 0px; height: 0px; background-color: var(--interactive-accent);`}}),t=activeWindow.getComputedStyle(e,null).getPropertyValue(`background-color`);return e.remove(),JD(t)}function JD(e){if(!CSS.supports(`color`,e))return`rgba(0, 0, 0, 0)`;let t=activeDocument.createElement(`canvas`);t.width=t.height=1;let n=t.getContext(`2d`,{willReadFrequently:!0});n.clearRect(0,0,1,1),n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a,o]=n.getImageData(0,0,1,1).data;return`rgba(${r}, ${i}, ${a}, ${o/255})`}function YD(e){return`${parseInt(e.slice(1,3),16)},${parseInt(e.slice(3,5),16)},${parseInt(e.slice(5,7),16)}`}function XD(e,t){Yr(()=>{e.addEventListener(`dragstart`,e=>{if(!t.navigator.canDrop)return;let n=e.target;if(!n||!n.hasClass(`n-tree-node`))return;let r=parseInt(n.id.slice(3)),i=z.headers[r];e.dataTransfer?.setData(`text/plain`,i.title),t.app.dragManager.onDragStart(e,{source:`outline`,type:`heading`,icon:`heading-glyph`,title:i.title,heading:i,file:t.navigator.view.file})})});async function n({node:e,dragNode:n,dropPosition:r}){if(!t.navigator.canDrop)return;let i=ZT(n),a=ZT(e);await t.navigator.handleDrop(i,a,r)}return{onDrop:n}}var ZD;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(ZD||={});function QD(e){return e.type===ZD.Tag||e.type===ZD.Script||e.type===ZD.Style}var $D=ZD.Root,eO=ZD.Text,tO=ZD.Directive,nO=ZD.Comment,rO=ZD.Script,iO=ZD.Style,aO=ZD.Tag,oO=ZD.CDATA,sO=ZD.Doctype,cO=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return CO(this,e)}},lO=class extends cO{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uO=class extends lO{constructor(){super(...arguments),this.type=ZD.Text}get nodeType(){return 3}},dO=class extends lO{constructor(){super(...arguments),this.type=ZD.Comment}get nodeType(){return 8}},fO=class extends lO{constructor(e,t){super(t),this.name=e,this.type=ZD.Directive}get nodeType(){return 1}},pO=class extends cO{constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},mO=class extends pO{constructor(){super(...arguments),this.type=ZD.CDATA}get nodeType(){return 4}},hO=class extends pO{constructor(){super(...arguments),this.type=ZD.Root}get nodeType(){return 9}},gO=class extends pO{constructor(e,t,n=[],r=e===`script`?ZD.Script:e===`style`?ZD.Style:ZD.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}};function _O(e){return QD(e)}function vO(e){return e.type===ZD.CDATA}function yO(e){return e.type===ZD.Text}function bO(e){return e.type===ZD.Comment}function xO(e){return e.type===ZD.Directive}function SO(e){return e.type===ZD.Root}function CO(e,t=!1){let n;if(yO(e))n=new uO(e.data);else if(bO(e))n=new dO(e.data);else if(_O(e)){let r=t?wO(e.children):[],i=new gO(e.name,{...e.attribs},r);r.forEach(e=>e.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(vO(e)){let r=t?wO(e.children):[],i=new mO(r);r.forEach(e=>e.parent=i),n=i}else if(SO(e)){let r=t?wO(e.children):[],i=new hO(r);r.forEach(e=>e.parent=i),e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(xO(e)){let t=new fO(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function wO(e){let t=e.map(e=>CO(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var TO={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},EO=class{constructor(e,t,n){this.dom=[],this.root=new hO(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t==`function`&&(n=t,t=TO),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??TO,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new hO(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new gO(e,t,void 0,this.options.xmlMode?ZD.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===ZD.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let t=new uO(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===ZD.Comment){this.lastNode.data+=e;return}let t=new dO(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new uO(``),t=new mO([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new fO(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}},DO=/\n/g;function OO(e){let t=[...e.matchAll(DO)].map((e=>e.index||0));t.unshift(-1);let n=kO(t,0,t.length);return e=>AO(n,e)}function kO(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};let r=Math.ceil((t+n)/2),i=kO(e,t,r),a=kO(e,r,n);return{offset:i.offset,low:i,high:a}}function AO(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,`index`)}(e)?{line:e.index,column:t-e.offset}:AO(e.high.offset<t?e.high:e.low,t)}function jO(e,t=``,n={}){let r=typeof t==`string`?n:t,i=typeof t==`string`?t:``,a=e.map(MO),o=!!r.lineNumbers;return function(e,t=0){let n=o?OO(e):()=>({line:0,column:0}),r=t,s=[];e:for(;r<e.length;){let t=!1;for(let o of a){o.regex.lastIndex=r;let a=o.regex.exec(e);if(a&&a[0].length>0){if(!o.discard){let e=n(r),t=typeof o.replace==`string`?a[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):a[0];s.push({state:i,name:o.name,text:t,offset:r,len:a[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,r);s.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:r,complete:e.length<=r}}}function MO(e,t){return{...e,regex:NO(e,t)}}function NO(e,t){if(e.name.length===0)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,`regex`)}(e))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+`y`)}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,`str`)}(e)){if(e.str.length===0)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(PO(e.str),`y`)}return new RegExp(PO(e.name),`y`)}function PO(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,`\\$&`)}function FO(e,t){return(n,r)=>{let i=r,a;return r<n.tokens.length?(a=e(n.tokens[r],n,r),a!==void 0&&i++):t?.(n,r),a===void 0?{matched:!1}:{matched:!0,position:i,value:a}}}function IO(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function LO(e,t){return e.matched?t(e):e}function RO(e,t){return(n,r)=>IO(e(n,r),(e,i)=>t(e,n,r,i))}function zO(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:{matched:!0,position:r,value:t}}}function BO(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(e.matched)return e}return{matched:!1}}}function VO(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:t(n,r)}}function HO(e,t){return(n,r)=>{let i=[],a=!0;do{let o=e(n,r);o.matched&&t(o.value,i.length+1,n,r,o.position)?(i.push(o.value),r=o.position):a=!1}while(a);return{matched:!0,position:r,value:i}}}function UO(e){return HO(e,()=>!0)}function WO(e){return GO(e,UO(e),(e,t)=>[e,...t])}function GO(e,t,n){return(r,i)=>LO(e(r,i),e=>IO(t(r,e.position),(t,a)=>n(e.value,t,r,i,a)))}function KO(e,t){return GO(e,t,e=>e)}function qO(e,t){return GO(e,t,(e,t)=>t)}function JO(e,t,n,r){return(i,a)=>LO(e(i,a),e=>LO(t(i,e.position),t=>IO(n(i,t.position),(n,o)=>r(e.value,t.value,n,i,a,o))))}function YO(e,t,n){return JO(e,t,n,(e,t)=>t)}function XO(...e){return(t,n)=>{let r=[],i=n;for(let n of e){let e=n(t,i);if(e.matched)r.push(e.value),i=e.position;else return{matched:!1}}return{matched:!0,position:i,value:r}}}function ZO(...e){return QO(XO(...e))}function QO(e){return RO(e,e=>e.flatMap(e=>e))}function $O(e,t){return(n,r)=>{let i=!0,a=e,o=r;do{let e=t(a,n,o)(n,o);e.matched?(a=e.value,o=e.position):i=!1}while(i);return{matched:!0,position:o,value:a}}}function ek(e,t,n){return $O(e,e=>RO(t,(t,r,i,a)=>n(e,t,r,i,a)))}function tk(e,t,n){return nk(e,e=>ek(e,GO(t,n,(e,t)=>[e,t]),(e,[t,n])=>t(e,n)))}function nk(e,t){return(n,r)=>LO(e(n,r),e=>t(e.value,n,r,e.position)(n,e.position))}var rk=`(?:[ \\t\\r\\n\\f]*)`,ik=`(?:\\n|\\r\\n|\\r|\\f)`,ak=`[^\\x00-\\x7F]`,ok=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,sk=`(?:\\\\[^\\n\\r\\f0-9a-f])`,ck=`(?:[_a-z]|${ak}|${ok}|${sk})`,lk=`(?:[_a-z0-9-]|${ak}|${ok}|${sk})`,uk=`(?:${lk}+)`,dk=`(?:[-]?${ck}${lk}*)`,fk=`'([^\\n\\r\\f\\\\']|\\\\${ik}|${ak}|${ok}|${sk})*'`,pk=`"([^\\n\\r\\f\\\\"]|\\\\${ik}|${ak}|${ok}|${sk})*"`,mk=jO([{name:`ws`,regex:new RegExp(rk)},{name:`hash`,regex:RegExp(`#${uk}`,`i`)},{name:`ident`,regex:new RegExp(dk,`i`)},{name:`str1`,regex:new RegExp(fk,`i`)},{name:`str2`,regex:new RegExp(pk,`i`)},{name:`*`},{name:`.`},{name:`,`},{name:`[`},{name:`]`},{name:`=`},{name:`>`},{name:`|`},{name:`+`},{name:`~`},{name:`^`},{name:`$`}]),hk=jO([{name:`unicode`,regex:new RegExp(ok,`i`)},{name:`escape`,regex:new RegExp(sk,`i`)},{name:`any`,regex:RegExp(`[\\s\\S]`,`i`)}]);function gk([e,t,n],[r,i,a]){return[e+r,t+i,n+a]}function _k(e){return e.reduce(gk,[0,0,0])}var vk=RO(UO(BO(FO(e=>e.name===`unicode`?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),FO(e=>e.name===`escape`?e.text.slice(1):void 0),FO(e=>e.name===`any`?e.text:void 0))),e=>e.join(``));function yk(e){return vk({tokens:hk(e).tokens,options:void 0},0).value}function bk(e){return FO(t=>t.name===e||void 0)}var xk=FO(e=>e.name===`ws`?null:void 0),Sk=zO(xk,null);function Ck(e){return YO(Sk,e,Sk)}var wk=FO(e=>e.name===`ident`?yk(e.text):void 0),Tk=FO(e=>e.name===`hash`?yk(e.text.slice(1)):void 0),Ek=FO(e=>e.name.startsWith(`str`)?yk(e.text.slice(1,-1)):void 0),Dk=KO(zO(wk,``),bk(`|`)),Ok=VO(GO(Dk,wk,(e,t)=>({name:t,namespace:e})),RO(wk,e=>({name:e,namespace:null}))),kk=VO(GO(Dk,bk(`*`),e=>({type:`universal`,namespace:e,specificity:[0,0,0]})),RO(bk(`*`),()=>({type:`universal`,namespace:null,specificity:[0,0,0]}))),Ak=RO(Ok,({name:e,namespace:t})=>({type:`tag`,name:e,namespace:t,specificity:[0,0,1]})),jk=GO(bk(`.`),wk,(e,t)=>({type:`class`,name:t,specificity:[0,1,0]})),Mk=RO(Tk,e=>({type:`id`,name:e,specificity:[1,0,0]})),Nk=FO(e=>{if(e.name===`ident`){if(e.text===`i`||e.text===`I`)return`i`;if(e.text===`s`||e.text===`S`)return`s`}}),Pk=VO(GO(Ek,zO(qO(Sk,Nk),null),(e,t)=>({value:e,modifier:t})),GO(wk,zO(qO(xk,Nk),null),(e,t)=>({value:e,modifier:t}))),Fk=BO(RO(bk(`=`),()=>`=`),GO(bk(`~`),bk(`=`),()=>`~=`),GO(bk(`|`),bk(`=`),()=>`|=`),GO(bk(`^`),bk(`=`),()=>`^=`),GO(bk(`$`),bk(`=`),()=>`$=`),GO(bk(`*`),bk(`=`),()=>`*=`)),Ik=VO(JO(bk(`[`),Ck(Ok),bk(`]`),(e,{name:t,namespace:n})=>({type:`attrPresence`,name:t,namespace:n,specificity:[0,1,0]})),YO(bk(`[`),JO(Ck(Ok),Fk,Ck(Pk),({name:e,namespace:t},n,{value:r,modifier:i})=>({type:`attrValue`,name:e,namespace:t,matcher:n,value:r,modifier:i,specificity:[0,1,0]})),bk(`]`))),Lk=VO(kk,Ak),Rk=BO(Mk,jk,Ik),zk=RO(VO(ZO(Lk,UO(Rk)),WO(Rk)),e=>({type:`compound`,list:e,specificity:_k(e.map(e=>e.specificity))})),Bk=tk(zk,RO(VO(Ck(BO(RO(bk(`>`),()=>`>`),RO(bk(`+`),()=>`+`),RO(bk(`~`),()=>`~`),GO(bk(`|`),bk(`|`),()=>`||`))),RO(xk,()=>` `)),e=>(t,n)=>({type:`compound`,list:[...n.list,{type:`combinator`,combinator:e,left:t,specificity:t.specificity}],specificity:gk(t.specificity,n.specificity)})),zk);tk(RO(Bk,e=>({type:`list`,list:[e]})),RO(Ck(bk(`,`)),()=>(e,t)=>({type:`list`,list:[...e.list,t]})),Bk);function Vk(e,t){if(!(typeof t==`string`||t instanceof String))throw Error(`Expected a selector string. Actual input is not a string!`);let n=mk(t);if(!n.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+Hk(t,n.offset));let r=Ck(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){let e=n.tokens[r.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+Hk(t,e.offset,e.len))}return r.value}function Hk(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,n)=>t?``:n?``:``)}\n${``.padEnd(t)}${`^`.repeat(n)}`}function Uk(e){return Vk(Bk,e)}function Wk(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`universal`:return Gk(e.namespace)+`*`;case`tag`:return Gk(e.namespace)+qk(e.name);case`class`:return`.`+qk(e.name);case`id`:return`#`+qk(e.name);case`attrPresence`:return`[${Gk(e.namespace)}${qk(e.name)}]`;case`attrValue`:return`[${Gk(e.namespace)}${qk(e.name)}${e.matcher}"${Jk(e.value)}"${e.modifier?e.modifier:``}]`;case`combinator`:return Wk(e.left)+e.combinator;case`compound`:return e.list.reduce((e,t)=>t.type===`combinator`?Wk(t)+e:e+Wk(t),``);case`list`:return e.list.map(Wk).join(`,`)}}function Gk(e){return e||e===``?qk(e)+`|`:``}function Kk(e){return`\\${e.codePointAt(0).toString(16)} `}function qk(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,n,r,i,a,o,s)=>t?Kk(t):n?`-`+Kk(n.slice(1)):r?`\\-`:i||(a?``:o?Kk(o):`\\`+s))}function Jk(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,n,r,i)=>t?`\\"`:n?`\\\\`:r?``:Kk(i))}function Yk(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`compound`:e.list.forEach(Yk),e.list.sort((e,t)=>Qk(Xk(e),Xk(t)));break;case`combinator`:Yk(e.left);break;case`list`:e.list.forEach(Yk),e.list.sort((e,t)=>Wk(e)<Wk(t)?-1:1);break}return e}function Xk(e){switch(e.type){case`universal`:return[1];case`tag`:return[1];case`id`:return[2];case`class`:return[3,e.name];case`attrPresence`:return[4,Wk(e)];case`attrValue`:return[5,Wk(e)];case`combinator`:return[15,Wk(e)]}}function Zk(e,t){return Qk(e,t)}function Qk(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error(`Arguments must be arrays.`);let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}var $k=class{constructor(e){this.branches=rA(eA(e))}build(e){return e(this.branches)}};function eA(e){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let[t,i]=e[r],a=tA(Uk(t));n[r]={ast:a,terminal:{type:`terminal`,valueContainer:{index:r,value:i,specificity:a.specificity}}}}return n}function tA(e){return nA(e),Yk(e),e}function nA(e){let t=[];e.list.forEach(e=>{switch(e.type){case`class`:t.push({matcher:`~=`,modifier:null,name:`class`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`id`:t.push({matcher:`=`,modifier:null,name:`id`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`combinator`:nA(e.left),t.push(e);break;case`universal`:break;default:t.push(e);break}}),e.list=t}function rA(e){let t=[];for(;e.length;){let n=hA(e,e=>!0,oA),{matches:r,nonmatches:i,empty:a}=aA(e,n);e=i,r.length&&t.push(sA(n,r)),a.length&&t.push(...iA(a))}return t}function iA(e){let t=[];for(let n of e){let e=n.terminal;if(e.type===`terminal`)t.push(e);else{let{matches:n,rest:r}=gA(e.cont,e=>e.type===`terminal`);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}function aA(e,t){let n=[],r=[],i=[];for(let a of e){let e=a.ast.list;e.length?(e.some(e=>oA(e)===t)?n:r).push(a):i.push(a)}return{matches:n,nonmatches:r,empty:i}}function oA(e){switch(e.type){case`attrPresence`:return`attrPresence ${e.name}`;case`attrValue`:return`attrValue ${e.name}`;case`combinator`:return`combinator ${e.combinator}`;default:return e.type}}function sA(e,t){if(e===`tag`)return cA(t);if(e.startsWith(`attrValue `))return uA(e.substring(10),t);if(e.startsWith(`attrPresence `))return lA(e.substring(13),t);if(e===`combinator >`)return fA(`>`,t);if(e===`combinator +`)return fA(`+`,t);throw Error(`Unsupported selector kind: ${e}`)}function cA(e){let t=pA(e,e=>e.type===`tag`,e=>e.name);return{type:`tagName`,variants:Object.entries(t).map(([e,t])=>({type:`variant`,value:e,cont:rA(t.items)}))}}function lA(e,t){for(let n of t)mA(n,t=>t.type===`attrPresence`&&t.name===e);return{type:`attrPresence`,name:e,cont:rA(t)}}function uA(e,t){let n=pA(t,t=>t.type===`attrValue`&&t.name===e,e=>`${e.matcher} ${e.modifier||``} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=dA(t),i=rA(e.items);r.push({type:`matcher`,matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:`attrValue`,name:e,matchers:r}}function dA(e){if(e.modifier===`i`){let t=e.value.toLowerCase();switch(e.matcher){case`=`:return e=>t===e.toLowerCase();case`~=`:return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case`^=`:return e=>e.toLowerCase().startsWith(t);case`$=`:return e=>e.toLowerCase().endsWith(t);case`*=`:return e=>e.toLowerCase().includes(t);case`|=`:return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&n[t.length]===`-`}}}else{let t=e.value;switch(e.matcher){case`=`:return e=>t===e;case`~=`:return e=>e.split(/[ \t]+/).includes(t);case`^=`:return e=>e.startsWith(t);case`$=`:return e=>e.endsWith(t);case`*=`:return e=>e.includes(t);case`|=`:return e=>t===e||e.startsWith(t)&&e[t.length]===`-`}}}function fA(e,t){let n=pA(t,t=>t.type===`combinator`&&t.combinator===e,e=>Wk(e.left)),r=[];for(let e of Object.values(n)){let t=rA(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:`popElement`,cont:t}})}return{type:`pushElement`,combinator:e,cont:rA(r)}}function pA(e,t,n){let r={};for(;e.length;){let i=hA(e,t,n),a=e=>t(e)&&n(e)===i,{matches:o,rest:s}=_A(e,e=>e.ast.list.some(a)),c=null;for(let e of o){let t=mA(e,a);c||=t}if(c==null)throw Error(`No simple selector is found.`);r[i]={oneSimpleSelector:c,items:o},e=s}return r}function mA(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-->0;)t(n[e])&&(r[e]=!0,i=e);if(i==-1)throw Error(`Couldn't find the required simple selector.`);let a=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),a}function hA(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i=``,a=0;for(let e of Object.entries(r))e[1]>a&&(i=e[0],a=e[1]);return i}function gA(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}function _A(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}var vA=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(r===0)return null;if(r===1)return n[0].value;let i=t?yA:bA,a=n[0];for(let e=1;e<r;e++){let t=n[e];i(a,t)&&(a=t)}return a.value}};function yA(e,t){let n=Zk(t.specificity,e.specificity);return n>0||n===0&&t.index<e.index}function bA(e,t){let n=Zk(t.specificity,e.specificity);return n>0||n===0&&t.index>e.index}function xA(e){return new vA(SA(e))}function SA(e){let t=e.map(CA);return(e,...n)=>t.flatMap(t=>t(e,...n))}function CA(e){switch(e.type){case`terminal`:{let t=[e.valueContainer];return(e,...n)=>t}case`tagName`:return wA(e);case`attrValue`:return EA(e);case`attrPresence`:return TA(e);case`pushElement`:return DA(e);case`popElement`:return AA(e)}}function wA(e){let t={};for(let n of e.variants)t[n.value]=SA(n.cont);return(e,...n)=>{let r=t[e.name];return r?r(e,...n):[]}}function TA(e){let t=e.name,n=SA(e.cont);return(e,...r)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?n(e,...r):[]}function EA(e){let t=[];for(let n of e.matchers){let e=n.predicate,r=SA(n.cont);t.push((t,n,...i)=>e(t)?r(n,...i):[])}let n=e.name;return(e,...r)=>{let i=e.attribs[n];return i||i===``?t.flatMap(t=>t(i,e,...r)):[]}}function DA(e){let t=SA(e.cont),n=e.combinator===`+`?OA:kA;return(e,...r)=>{let i=n(e);return i===null?[]:t(i,e,...r)}}var OA=e=>{let t=e.prev;return t===null?null:_O(t)?t:OA(t)},kA=e=>{let t=e.parent;return t&&_O(t)?t:null};function AA(e){let t=SA(e.cont);return(e,n,...r)=>t(n,...r)}var jA=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0\0\0\0\0ᬡᬮ᭍᭒\0\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0\0ᾡᾧ\0\0ῆῌ\0\0ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0\0\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),MA=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),NA=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),PA=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function FA(e){return e>=55296&&e<=57343||e>1114111?65533:NA.get(e)??e}var IA;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(IA||={});var LA=32,RA;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(RA||={});function zA(e){return e>=IA.ZERO&&e<=IA.NINE}function BA(e){return e>=IA.UPPER_A&&e<=IA.UPPER_F||e>=IA.LOWER_A&&e<=IA.LOWER_F}function VA(e){return e>=IA.UPPER_A&&e<=IA.UPPER_Z||e>=IA.LOWER_A&&e<=IA.LOWER_Z||zA(e)}function HA(e){return e===IA.EQUALS||VA(e)}var UA;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(UA||={});var WA;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(WA||={});var GA=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=UA.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=WA.Strict}startEntity(e){this.decodeMode=e,this.state=UA.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case UA.EntityStart:return e.charCodeAt(t)===IA.NUM?(this.state=UA.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=UA.NamedEntity,this.stateNamedEntity(e,t));case UA.NumericStart:return this.stateNumericStart(e,t);case UA.NumericDecimal:return this.stateNumericDecimal(e,t);case UA.NumericHex:return this.stateNumericHex(e,t);case UA.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|LA)===IA.LOWER_X?(this.state=UA.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=UA.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(zA(r)||BA(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(zA(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===IA.SEMI)this.consumed+=1;else if(this.decodeMode===WA.Strict)return 0;return this.emitCodePoint(FA(this.result),this.consumed),this.errors&&(e!==IA.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&RA.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=qA(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===WA.Attribute&&(i===0||HA(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&RA.VALUE_LENGTH)>>14,i!==0){if(a===IA.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==WA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&RA.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~RA.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case UA.NamedEntity:return this.result!==0&&(this.decodeMode!==WA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case UA.NumericDecimal:return this.emitNumericEntity(0,2);case UA.NumericHex:return this.emitNumericEntity(0,3);case UA.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case UA.EntityStart:return 0}}};function KA(e){let t=``,n=new GA(e,e=>t+=PA(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function qA(e,t,n,r){let i=(t&RA.BRANCH_LENGTH)>>7,a=t&RA.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}KA(jA),KA(MA);var Q;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(Q||={});var $;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.InSpecialComment=20]=`InSpecialComment`,e[e.InCommentLike=21]=`InCommentLike`,e[e.BeforeSpecialS=22]=`BeforeSpecialS`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.BeforeEntity=25]=`BeforeEntity`,e[e.BeforeNumericEntity=26]=`BeforeNumericEntity`,e[e.InNamedEntity=27]=`InNamedEntity`,e[e.InNumericEntity=28]=`InNumericEntity`,e[e.InHexEntity=29]=`InHexEntity`})($||={});function JA(e){return e===Q.Space||e===Q.NewLine||e===Q.Tab||e===Q.FormFeed||e===Q.CarriageReturn}function YA(e){return e===Q.Slash||e===Q.Gt||JA(e)}function XA(e){return e>=Q.Zero&&e<=Q.Nine}function ZA(e){return e>=Q.LowerA&&e<=Q.LowerZ||e>=Q.UpperA&&e<=Q.UpperZ}function QA(e){return e>=Q.UpperA&&e<=Q.UpperF||e>=Q.LowerA&&e<=Q.LowerF}var $A;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})($A||={});var ej={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},tj=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=$.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=$.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?MA:jA}reset(){this.state=$.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=$.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===Q.Lt||!this.decodeEntities&&this.fastForwardTo(Q.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=$.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Q.Amp&&(this.state=$.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?YA(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=$.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Q.Gt||JA(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ej.TitleEnd?this.decodeEntities&&e===Q.Amp&&(this.state=$.BeforeEntity):this.fastForwardTo(Q.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Q.Lt)}stateCDATASequence(e){e===ej.Cdata[this.sequenceIndex]?++this.sequenceIndex===ej.Cdata.length&&(this.state=$.InCommentLike,this.currentSequence=ej.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=$.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ej.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=$.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!YA(e):ZA(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=$.SpecialStartSequence}stateBeforeTagName(e){if(e===Q.ExclamationMark)this.state=$.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Q.Questionmark)this.state=$.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===ej.TitleEnd[2]?this.startSpecial(ej.TitleEnd,3):this.state=!this.xmlMode&&t===ej.ScriptEnd[2]?$.BeforeSpecialS:$.InTagName}else e===Q.Slash?this.state=$.BeforeClosingTagName:(this.state=$.Text,this.stateText(e))}stateInTagName(e){YA(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){JA(e)||(e===Q.Gt?this.state=$.Text:(this.state=this.isTagStartChar(e)?$.InClosingTagName:$.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===Q.Gt||JA(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.state=$.Text,this.baseState=$.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Q.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=$.InSpecialTag,this.sequenceIndex=0):this.state=$.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===Q.Slash?this.state=$.InSelfClosingTag:JA(e)||(this.state=$.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Q.Gt?(this.cbs.onselfclosingtag(this.index),this.state=$.Text,this.baseState=$.Text,this.sectionStart=this.index+1,this.isSpecial=!1):JA(e)||(this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Q.Eq||YA(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Q.Eq?this.state=$.BeforeAttributeValue:e===Q.Slash||e===Q.Gt?(this.cbs.onattribend($A.NoValue,this.index),this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e)):JA(e)||(this.cbs.onattribend($A.NoValue,this.index),this.state=$.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Q.DoubleQuote?(this.state=$.InAttributeValueDq,this.sectionStart=this.index+1):e===Q.SingleQuote?(this.state=$.InAttributeValueSq,this.sectionStart=this.index+1):JA(e)||(this.sectionStart=this.index,this.state=$.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Q.DoubleQuote?$A.Double:$A.Single,this.index),this.state=$.BeforeAttributeName):this.decodeEntities&&e===Q.Amp&&(this.baseState=this.state,this.state=$.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Q.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Q.SingleQuote)}stateInAttributeValueNoQuotes(e){JA(e)||e===Q.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($A.Unquoted,this.index),this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Q.Amp&&(this.baseState=this.state,this.state=$.BeforeEntity)}stateBeforeDeclaration(e){e===Q.OpeningSquareBracket?(this.state=$.CDATASequence,this.sequenceIndex=0):this.state=e===Q.Dash?$.BeforeComment:$.InDeclaration}stateInDeclaration(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=$.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=$.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Q.Dash?(this.state=$.InCommentLike,this.currentSequence=ej.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=$.InDeclaration}stateInSpecialComment(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=$.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===ej.ScriptEnd[3]?this.startSpecial(ej.ScriptEnd,4):t===ej.StyleEnd[3]?this.startSpecial(ej.StyleEnd,4):(this.state=$.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===Q.Number?this.state=$.BeforeNumericEntity:e===Q.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=$.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=qA(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&RA.VALUE_LENGTH;if(t){let n=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==Q.Semi)this.trieIndex+=n;else{let e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult!==0)switch((this.entityTrie[this.entityResult]&RA.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~RA.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===Q.LowerX?(this.entityExcess++,this.state=$.InHexEntity):(this.state=$.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+Number(this.state===$.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(FA(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===Q.Semi?this.emitNumericEntity(!0):XA(e)?(this.entityResult=this.entityResult*10+(e-Q.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===Q.Semi?this.emitNumericEntity(!0):XA(e)?(this.entityResult=this.entityResult*16+(e-Q.Zero),this.entityExcess++):QA(e)?(this.entityResult=this.entityResult*16+((e|32)-Q.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===$.Text||this.baseState===$.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===$.Text||this.state===$.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===$.InAttributeValueDq||this.state===$.InAttributeValueSq||this.state===$.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case $.Text:this.stateText(e);break;case $.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case $.InSpecialTag:this.stateInSpecialTag(e);break;case $.CDATASequence:this.stateCDATASequence(e);break;case $.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case $.InAttributeName:this.stateInAttributeName(e);break;case $.InCommentLike:this.stateInCommentLike(e);break;case $.InSpecialComment:this.stateInSpecialComment(e);break;case $.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case $.InTagName:this.stateInTagName(e);break;case $.InClosingTagName:this.stateInClosingTagName(e);break;case $.BeforeTagName:this.stateBeforeTagName(e);break;case $.AfterAttributeName:this.stateAfterAttributeName(e);break;case $.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case $.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case $.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case $.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case $.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case $.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case $.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case $.InDeclaration:this.stateInDeclaration(e);break;case $.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case $.BeforeComment:this.stateBeforeComment(e);break;case $.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case $.InNamedEntity:this.stateInNamedEntity(e);break;case $.BeforeEntity:this.stateBeforeEntity(e);break;case $.InHexEntity:this.stateInHexEntity(e);break;case $.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===$.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===$.InCommentLike?this.currentSequence===ej.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===$.InNumericEntity&&this.allowLegacyEntity()||this.state===$.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===$.InTagName||this.state===$.BeforeAttributeName||this.state===$.BeforeAttributeValue||this.state===$.AfterAttributeName||this.state===$.InAttributeName||this.state===$.InAttributeValueSq||this.state===$.InAttributeValueDq||this.state===$.InAttributeValueNq||this.state===$.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==$.Text&&this.baseState!==$.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==$.Text&&this.baseState!==$.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}},nj=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),rj=new Set([`p`]),ij=new Set([`thead`,`tbody`]),aj=new Set([`dd`,`dt`]),oj=new Set([`rt`,`rp`]),sj=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`li`,new Set([`li`])],[`p`,rj],[`h1`,rj],[`h2`,rj],[`h3`,rj],[`h4`,rj],[`h5`,rj],[`h6`,rj],[`select`,nj],[`input`,nj],[`output`,nj],[`button`,nj],[`datalist`,nj],[`textarea`,nj],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,aj],[`dt`,aj],[`address`,rj],[`article`,rj],[`aside`,rj],[`blockquote`,rj],[`details`,rj],[`div`,rj],[`dl`,rj],[`fieldset`,rj],[`figcaption`,rj],[`figure`,rj],[`footer`,rj],[`form`,rj],[`header`,rj],[`hr`,rj],[`main`,rj],[`nav`,rj],[`ol`,rj],[`pre`,rj],[`section`,rj],[`table`,rj],[`ul`,rj],[`rt`,oj],[`rp`,oj],[`tbody`,ij],[`tfoot`,ij]]),cj=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),lj=new Set([`math`,`svg`]),uj=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignobject`,`desc`,`title`]),dj=/\s|\//,fj=class{constructor(e,t={}){var n,r;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=t.lowerCaseTags??!t.xmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??!t.xmlMode,this.tokenizer=new(t.Tokenizer??tj)(this.options,this),(r=(n=this.cbs).onparserinit)==null||r.call(n,this)}ontext(e,t){var n,r;let i=this.getSlice(e,t);this.endIndex=t-1,(r=(n=this.cbs).ontext)==null||r.call(n,i),this.startIndex=t}ontextentity(e){var t,n;let r=this.tokenizer.getSectionStart();this.endIndex=r-1,(n=(t=this.cbs).ontext)==null||n.call(t,PA(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&cj.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;let a=!this.options.xmlMode&&sj.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){let e=this.stack.pop();(n=(t=this.cbs).onclosetag)==null||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),lj.has(e)?this.foreignContext.push(!0):uj.has(e)&&this.foreignContext.push(!1)),(i=(r=this.cbs).onopentagname)==null||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&=((n=(t=this.cbs).onopentag)==null||n.call(t,this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,a,o,s;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(lj.has(c)||uj.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c===`br`&&((r=(n=this.cbs).onopentagname)==null||r.call(n,`br`),(a=(i=this.cbs).onopentag)==null||a.call(i,`br`,{},!0),(s=(o=this.cbs).onclosetag)==null||s.call(o,`br`,!1));else{let e=this.stack.lastIndexOf(c);if(e!==-1)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),t!==0)}else this.stack.length=e;else!this.options.xmlMode&&c===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;let r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((n=(t=this.cbs).onclosetag)==null||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=PA(e)}onattribend(e,t){var n,r;this.endIndex=t,(r=(n=this.cbs).onattribute)==null||r.call(n,this.attribname,this.attribvalue,e===$A.Double?`"`:e===$A.Single?`'`:e===$A.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(dj),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,a,o;this.endIndex=t,(i=(r=this.cbs).oncomment)==null||i.call(r,this.getSlice(e,t-n)),(o=(a=this.cbs).oncommentend)==null||o.call(a),this.startIndex=t+1}oncdata(e,t,n){var r,i,a,o,s,c,l,u,d,f;this.endIndex=t;let p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(r=this.cbs).oncdatastart)==null||i.call(r),(o=(a=this.cbs).ontext)==null||o.call(a,p),(c=(s=this.cbs).oncdataend)==null||c.call(s)):((u=(l=this.cbs).oncomment)==null||u.call(l,`[CDATA[${p}]]`),(f=(d=this.cbs).oncommentend)==null||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}(t=(e=this.cbs).onend)==null||t.call(e)}reset(){var e,t,n,r;(t=(e=this.cbs).onreset)==null||t.call(e),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(n=this.cbs).onparserinit)==null||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}},pj=/["&'<>$\x80-\uFFFF]/g,mj=new Map([[34,`&quot;`],[38,`&amp;`],[39,`&apos;`],[60,`&lt;`],[62,`&gt;`]]),hj=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);function gj(e){let t=``,n=0,r;for(;(r=pj.exec(e))!==null;){let i=r.index,a=e.charCodeAt(i),o=mj.get(a);o===void 0?(t+=`${e.substring(n,i)}&#x${hj(e,i).toString(16)};`,n=pj.lastIndex+=Number((a&64512)==55296)):(t+=e.substring(n,i)+o,n=i+1)}return t+e.substr(n)}function _j(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}var vj=_j(/["&\u00A0]/g,new Map([[34,`&quot;`],[38,`&amp;`],[160,`&nbsp;`]])),yj=_j(/[&<>\u00A0]/g,new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[160,`&nbsp;`]])),bj=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.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.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),xj=new Map(`definitionURL.attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),Sj=new Set([`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`]);function Cj(e){return e.replace(/"/g,`&quot;`)}function wj(e,t){if(!e)return;let n=(t.encodeEntities??t.decodeEntities)===!1?Cj:t.xmlMode||t.encodeEntities!==`utf8`?gj:vj;return Object.keys(e).map(r=>{let i=e[r]??``;return t.xmlMode===`foreign`&&(r=xj.get(r)??r),!t.emptyAttrs&&!t.xmlMode&&i===``?r:`${r}="${n(i)}"`}).join(` `)}var Tj=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function Ej(e,t={}){let n=`length`in e?e:[e],r=``;for(let e=0;e<n.length;e++)r+=Dj(n[e],t);return r}function Dj(e,t){switch(e.type){case $D:return Ej(e.children,t);case sO:case tO:return jj(e);case nO:return Pj(e);case oO:return Nj(e);case rO:case iO:case aO:return Aj(e,t);case eO:return Mj(e,t)}}var Oj=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),kj=new Set([`svg`,`math`]);function Aj(e,t){t.xmlMode===`foreign`&&(e.name=bj.get(e.name)??e.name,e.parent&&Oj.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&kj.has(e.name)&&(t={...t,xmlMode:`foreign`});let n=`<${e.name}`,r=wj(e.attribs,t);return r&&(n+=` ${r}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Tj.has(e.name))?(t.xmlMode||(n+=` `),n+=`/>`):(n+=`>`,e.children.length>0&&(n+=Ej(e.children,t)),(t.xmlMode||!Tj.has(e.name))&&(n+=`</${e.name}>`)),n}function jj(e){return`<${e.data}>`}function Mj(e,t){let n=e.data||``;return(t.encodeEntities??t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Sj.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!==`utf8`?gj(n):yj(n)),n}function Nj(e){return`<![CDATA[${e.children[0].data}]]>`}function Pj(e){return`<!--${e.data}-->`}function Fj(e,t){let n=new EO(void 0,t);return new fj(n,t).end(e),n.root}var Ij=c(o(((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)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=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}))(),1);function Lj(e,t,n=()=>void 0){if(e===void 0){let e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(Lj(e-1,t,n),...r)}:n}function Rj(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function zj(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}function Bj(e){return e.replace(/[\s\S]/g,e=>`\\u`+e.charCodeAt().toString(16).padStart(4,`0`))}function Vj(e,t){let n=new Map;for(let r=e.length;r-->0;){let i=e[r],a=t(i);n.set(a,n.has(a)?(0,Ij.default)(i,n.get(a),{arrayMerge:Hj}):i)}return[...n.values()].reverse()}var Hj=(e,t,n)=>[...t];function Uj(e,t){for(let n of t){if(!e)return;e=e[n]}return e}function Wj(e,t=`a`,n=26){let r=[];do--e,r.push(e%n),e=e/n>>0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join(``)}var Gj=[`I`,`X`,`C`,`M`],Kj=[`V`,`L`,`D`];function qj(e){return[...e+``].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?``:Kj[t])+Gj[t].repeat(e%5):Gj[t]+(e<5?Kj[t]:Gj[t+1])).reverse().join(``)}var Jj=class{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=Uj(e,[`longWordSplit`,`wrapCharacters`])||[],this.forceWrapOnLimit=Uj(e,[`longWordSplit`,`forceWrapOnLimit`])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let n=this.nextLineWords.length===0,r=e.length+ +!n;if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{let[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(let e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(e!==void 0){let t=this.nextLineWords.length===0,n=e.length+ +!t;this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(` `)).join(`
`)}splitLongWord(e){let t=[],n=0;for(;e.length>this.maxLineLength;){let r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),a=r.lastIndexOf(this.wrapCharacters[n]);if(a>-1)e=r.substring(a+1)+i,t.push(r.substring(0,a+1));else if(n++,n<this.wrapCharacters.length)e=r+i;else{if(this.forceWrapOnLimit){if(t.push(r),e=i,e.length>this.maxLineLength)continue}else e=r+i;break}}return t.push(e),t}},Yj=class{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}},Xj=class extends Yj{constructor(e,t=null,n=1,r=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new Jj(e,r),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},Zj=class extends Xj{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:r=2,maxLineLength:i=void 0,maxPrefixLength:a=0,prefixAlign:o=`left`}={}){super(e,t,r,i),this.maxPrefixLength=a,this.prefixAlign=o,this.interRowLineBreaks=n}},Qj=class extends Xj{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:r=void 0,prefix:i=``}={}){super(e,t,n,r),this.prefix=i}},$j=class extends Yj{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},eM=class extends Yj{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},tM=class extends Yj{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new Jj(e,n),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},nM=class extends Yj{constructor(e=null,t){super(e),this.transform=t}};function rM(e){return[...e].map(e=>`\\u`+e.charCodeAt(0).toString(16).padStart(4,`0`)).join(``)}var iM=class{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,``):e.whitespaceCharacters;let t=rM(this.whitespaceChars);if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,`g`),this.newlineOrNonNewlineStringRe=RegExp(`(\\n|[^\\n]+)`,`g`),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,`gm`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,s[0]===`
`?n.startNewLine():a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)s[0]===`
`?n.startNewLine():n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,`g`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;let r=t.stashedSpace,i=!1,a=this.newlineOrNonNewlineStringRe.exec(e);if(a)for(i=!0,a[0]===`
`?t.startNewLine():r?t.pushWord(a[0],n):t.concatWord(a[0],n);(a=this.newlineOrNonNewlineStringRe.exec(e))!==null;)a[0]===`
`?t.startNewLine():t.pushWord(a[0],n);t.stashedSpace=r&&!i}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t=0,n;for(;(n=this.newlineOrNonWhitespaceRe.exec(e))!==null;)if(n[0]===`
`)t++;else return 0;return t}},aM=class{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new iM(e),this._stackItem=new Xj(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new nM(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;let e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){let e=this._wordTransformer?(e=>cM(e,this._wordTransformer)):void 0,t=this.options.encodeCharacters;return e?t?n=>t(e(n)):e:t}_popStackItem(){let e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof Xj||this._stackItem instanceof Qj||this._stackItem instanceof tM)&&(this._stackItem.isPre?this._stackItem.rawText+=`
`:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof Xj||this._stackItem instanceof Qj||this._stackItem instanceof tM)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof Xj||this._stackItem instanceof Qj||this._stackItem instanceof tM){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(!(e.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){let t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0){this._stackItem.inlineTextBuilder.startNewLine(t);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(e){if((this._stackItem instanceof Xj||this._stackItem instanceof Qj||this._stackItem instanceof tM)&&e.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){let r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new Xj(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t=void 0}={}){let n=this._popStackItem(),r=t?t(oM(n)):oM(n);sM(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t=`left`,interRowLineBreaks:n=1,leadingLineBreaks:r=2}={}){this._stackItem=new Zj(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:r,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=``}={}){if(!(this._stackItem instanceof Zj))throw Error(`Can't add a list item to something that is not a list! Check the formatter.`);let t=this._stackItem,n=Math.max(e.length,t.maxPrefixLength),r=Math.max(20,t.inlineTextBuilder.maxLineLength-n);this._stackItem=new Qj(this.options,t,{prefix:e,maxLineLength:r,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){let e=this._popStackItem(),t=e.next,n=Math.max(e.prefix.length,t.maxPrefixLength),r=`
`+` `.repeat(n);sM(t,(t.prefixAlign===`right`?e.prefix.padStart(n):e.prefix.padEnd(n))+oM(e).replace(/\n/g,r),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){let t=this._popStackItem(),n=oM(t);n&&sM(this._stackItem,n,t.leadingLineBreaks,e)}openTable(){this._stackItem=new $j(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof $j))throw Error(`Can't add a table row to something that is not a table! Check the formatter.`);this._stackItem=new eM(this._stackItem)}openTableCell({maxColumnWidth:e=void 0}={}){if(!(this._stackItem instanceof eM))throw Error(`Can't add a table cell to something that is not a table row! Check the formatter.`);this._stackItem=new tM(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){let n=this._popStackItem(),r=Rj(oM(n),`
`);n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){let e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:n=2}){let r=e(this._popStackItem().rows);r&&sM(this._stackItem,r,t,n)}toString(){return oM(this._stackItem.getRoot())}};function oM(e){if(!(e instanceof Xj||e instanceof Qj||e instanceof tM))throw Error(`Only blocks, list items and table cells can be requested for text contents.`);return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function sM(e,t,n,r){if(!(e instanceof Xj||e instanceof Qj||e instanceof tM))throw Error(`Only blocks, list items and table cells can contain text.`);let i=oM(e),a=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),i?e.rawText=i+`
`.repeat(a)+t:(e.rawText=t,e.leadingLineBreaks=a),e.stashedLineBreaks=r}function cM(e,t){return t?cM(t.transform(e),t.next):e}function lM(e={}){let t=e.selectors.filter(e=>!e.format);if(t.length)throw Error(`Following selectors have no specified format: `+t.map(e=>`\`${e.selector}\``).join(`, `));let n=new $k(e.selectors.map(e=>[e.selector,e])).build(xA);typeof e.encodeCharacters!=`function`&&(e.encodeCharacters=pM(e.encodeCharacters));let r=new $k(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(xA);function i(t){return dM(t,e,r)}let a=Lj(e.limits.maxDepth,fM,function(t,n){n.addInline(e.limits.ellipsis||``)});return function(t,r=void 0){return uM(t,r,e,n,i,a)}}function uM(e,t,n,r,i,a){let o=n.limits.maxInputLength;o&&e&&e.length>o&&(console.warn(`Input length ${e.length} is above allowed limit of ${o}. Truncating without ellipsis.`),e=e.substring(0,o));let s=i(Fj(e,{decodeEntities:n.decodeEntities}).children),c=new aM(n,r,t);return a(s,c),c.toString()}function dM(e,t,n){let r=[];function i(e,i){i=i.slice(0,t.limits.maxChildNodes);for(let a of i){if(a.type!==`tag`)continue;let i=n.pick1(a);if(i>0?r.push({selectorIndex:i,element:a}):a.children&&e(a.children),r.length>=t.limits.maxBaseElements)return}}return Lj(t.limits.maxDepth,i)(e),t.baseElements.orderBy!==`occurrence`&&r.sort((e,t)=>e.selectorIndex-t.selectorIndex),t.baseElements.returnDomByDefault&&r.length===0?e:r.map(e=>e.element)}function fM(e,t,n){if(!t)return;let r=n.options;t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes),t.push({data:r.limits.ellipsis,type:`text`}));for(let i of t)switch(i.type){case`text`:n.addInline(i.data);break;case`tag`:{let t=n.picker.pick1(i),a=r.formatters[t.format];a(i,e,n,t.options||{});break}}}function pM(e){if(!e||Object.keys(e).length===0)return;let t=Object.entries(e).filter(([,e])=>e!==!1),n=new RegExp(t.map(([e])=>`(${Bj([...e][0])})`).join(`|`),`g`),r=t.map(([,e])=>e),i=(e,...t)=>r[t.findIndex(e=>e)];return e=>e.replace(n,i)}function mM(e,t,n,r){}function hM(e,t,n,r){n.addLiteral(r.string||``)}function gM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addLiteral(r.string||``),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function _M(e,t,n,r){t(e.children,n)}function vM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function yM(e){let t=e.attribs&&e.attribs.length?` `+Object.entries(e.attribs).map(([e,t])=>t===``?e:`${e}=${t.replace(/"/g,`&quot;`)}`).join(` `):``;return`<${e.name}${t}>`}function bM(e){return`</${e.name}>`}function xM(e,t,n,r){n.startNoWrap(),n.addLiteral(yM(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(bM(e)),n.stopNoWrap()}function SM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(yM(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(bM(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function CM(e,t,n,r){n.startNoWrap(),n.addLiteral(Ej(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap()}function wM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(Ej(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function TM(e,t,n,r){n.addLiteral(r.prefix||``),t(e.children,n),n.addLiteral(r.suffix||``)}var EM=Object.freeze({__proto__:null,block:vM,blockHtml:wM,blockString:gM,blockTag:SM,inline:_M,inlineHtml:CM,inlineString:hM,inlineSurround:TM,inlineTag:xM,skip:mM});function DM(e,t){return e[t]||(e[t]=[]),e[t]}function OM(e,t=0){for(;e[t];)t++;return t}function kM(e,t){for(let n=0;n<t;n++){let t=DM(e,n);for(let r=0;r<n;r++){let i=DM(e,r);if(t[r]||i[n]){let e=t[r];t[r]=i[n],i[n]=e}}}}function AM(e,t,n,r){for(let i=0;i<e.rowspan;i++){let a=DM(t,n+i);for(let t=0;t<e.colspan;t++)a[r+t]=e}}function jM(e,t){return e[t]===void 0&&(e[t]=t===0?0:1+jM(e,t-1)),e[t]}function MM(e,t,n,r){e[t+n]=Math.max(jM(e,t+n),jM(e,t)+r)}function NM(e,t,n){let r=[],i=0,a=e.length,o=[0];for(let n=0;n<a;n++){let a=DM(r,n),s=e[n],c=0;for(let e=0;e<s.length;e++){let i=s[e];c=OM(a,c),AM(i,r,n,c),c+=i.colspan,i.lines=i.text.split(`
`);let l=i.lines.length;MM(o,n,i.rowspan,l+t)}i=a.length>i?a.length:i}kM(r,a>i?a:i);let s=[],c=[0];for(let e=0;e<i;e++){let t=0,i,l=Math.min(a,r[e].length);for(;t<l;)if(i=r[e][t],i){if(!i.rendered){let r=0;for(let n=0;n<i.lines.length;n++){let a=i.lines[n],l=o[t]+n;s[l]=(s[l]||``).padEnd(c[e])+a,r=a.length>r?a.length:r}MM(c,e,i.colspan,r+n),i.rendered=!0}t+=i.rowspan}else{let e=o[t];s[e]=s[e]||``,t++}}return s.join(`
`)}function PM(e,t,n,r){n.addLineBreak()}function FM(e,t,n,r){n.addWordBreakOpportunity()}function IM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline(`-`.repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function LM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function RM(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function zM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),r.uppercase===!1?t(e.children,n):(n.pushWordTransform(e=>e.toUpperCase()),t(e.children,n),n.popWordTransform()),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function BM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(r.trimEmptyLines===!1?e:Rj(e,`
`)).split(`
`).map(e=>`> `+e).join(`
`)})}function VM(e,t){if(!t)return e;let n=typeof t[0]==`string`?t[0]:`[`,r=typeof t[1]==`string`?t[1]:`]`;return n+e+r}function HM(e,t,n,r,i){let a=typeof t==`function`?t(e,r,i):e;return a[0]===`/`&&n?zj(n,`/`)+a:a}function UM(e,t,n,r){let i=e.attribs||{},a=i.alt?i.alt:``,o=i.src?HM(i.src,r.pathRewrite,r.baseUrl,n.metadata,e):``,s=o?a?a+` `+VM(o,r.linkBrackets):VM(o,r.linkBrackets):a;n.addInline(s,{noWordTransform:!0})}function WM(e,t,n,r){function i(){if(r.ignoreHref||!e.attribs||!e.attribs.href)return``;let t=e.attribs.href.replace(/^mailto:/,``);return r.noAnchorUrl&&t[0]===`#`?``:(t=HM(t,r.pathRewrite,r.baseUrl,n.metadata,e),t)}let a=i();if(!a)t(e.children,n);else{let i=``;n.pushWordTransform(e=>(e&&(i+=e),e)),t(e.children,n),n.popWordTransform(),r.hideLinkHrefIfSameAsText&&a===i||n.addInline(i?` `+VM(a,r.linkBrackets):a,{noWordTransform:!0})}}function GM(e,t,n,r,i){let a=Uj(e,[`parent`,`name`])===`li`,o=0,s=(e.children||[]).filter(e=>e.type!==`text`||!/^\s*$/.test(e.data)).map(function(e){if(e.name!==`li`)return{node:e,prefix:``};let t=a?i().trimStart():i();return t.length>o&&(o=t.length),{node:e,prefix:t}});if(s.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:a?1:r.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:`left`});for(let{node:e,prefix:r}of s)n.openListItem({prefix:r}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:a?1:r.trailingLineBreaks||2})}}function KM(e,t,n,r){let i=r.itemPrefix||` * `;return GM(e,t,n,r,()=>i)}function qM(e,t,n,r){let i=Number(e.attribs.start||`1`),a=JM(e.attribs.type);return GM(e,t,n,r,()=>` `+a(i++)+`. `)}function JM(e=`1`){switch(e){case`a`:return e=>Wj(e,`a`);case`A`:return e=>Wj(e,`A`);case`i`:return e=>qj(e).toLowerCase();case`I`:return e=>qj(e);default:return e=>e.toString()}}function YM(e){let t=[],n=[];for(let r of e)r.startsWith(`.`)?t.push(r.substring(1)):r.startsWith(`#`)&&n.push(r.substring(1));return{classes:t,ids:n}}function XM(e,t){if(t===!0)return!0;if(!e)return!1;let{classes:n,ids:r}=YM(t),i=(e.class||``).split(` `),a=(e.id||``).split(` `);return i.some(e=>n.includes(e))||a.some(e=>r.includes(e))}function ZM(e,t,n,r){return XM(e.attribs,n.options.tables)?$M(e,t,n,r):QM(e,t,n,r)}function QM(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function $M(e,t,n,r){n.openTable(),e.children.forEach(a),n.closeTable({tableToString:e=>NM(e,r.rowSpacing??0,r.colSpacing??3),leadingLineBreaks:r.leadingLineBreaks,trailingLineBreaks:r.trailingLineBreaks});function i(e){let i=+Uj(e,[`attribs`,`colspan`])||1,a=+Uj(e,[`attribs`,`rowspan`])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:i,rowspan:a})}function a(e){if(e.type!==`tag`)return;let t=r.uppercaseHeaderCells===!1?i:e=>{n.pushWordTransform(e=>e.toUpperCase()),i(e),n.popWordTransform()};switch(e.name){case`thead`:case`tbody`:case`tfoot`:case`center`:e.children.forEach(a);return;case`tr`:n.openTableRow();for(let n of e.children)if(n.type===`tag`)switch(n.name){case`th`:t(n);break;case`td`:i(n);break}n.closeTableRow();break}}}var eN=Object.freeze({__proto__:null,anchor:WM,blockquote:BM,dataTable:$M,heading:zM,horizontalLine:IM,image:UM,lineBreak:PM,orderedList:qM,paragraph:LM,pre:RM,table:ZM,unorderedList:KM,wbr:FM}),tN={baseElements:{selectors:[`body`],orderBy:`selectors`,returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:`...`,maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:`*`,format:`inline`},{selector:`a`,format:`anchor`,options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:[`[`,`]`],noAnchorUrl:!0}},{selector:`article`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`aside`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`blockquote`,format:`blockquote`,options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:`br`,format:`lineBreak`},{selector:`div`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`footer`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`form`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`h1`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h2`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h3`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h4`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h5`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h6`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`header`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`hr`,format:`horizontalLine`,options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:`img`,format:`image`,options:{baseUrl:null,linkBrackets:[`[`,`]`]}},{selector:`main`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`nav`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`ol`,format:`orderedList`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`p`,format:`paragraph`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`pre`,format:`pre`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`section`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`table`,format:`table`,options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:`ul`,format:`unorderedList`,options:{itemPrefix:` * `,leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`wbr`,format:`wbr`}],tables:[],whitespaceCharacters:` \r
\f`,wordwrap:80},nN=(e,t,n)=>[...e,...t],rN=(e,t,n)=>[...t],iN=(e,t,n)=>e.some(e=>typeof e==`object`)?nN(e,t):rN(e,t);function aN(e={}){return e=(0,Ij.default)(tN,e,{arrayMerge:rN,customMerge:e=>e===`selectors`?iN:void 0}),e.formatters=Object.assign({},EM,eN,e.formatters),e.selectors=Vj(e.selectors,(e=>e.selector)),oN(e),lM(e)}function oN(e){if(e.tags){let t=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||`*`}));e.selectors.push(...t),e.selectors=Vj(e.selectors,(e=>e.selector))}function t(e,t,n){let r=t.pop();for(let n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}if(e.baseElement){let n=e.baseElement;t(e,[`baseElements`,`selectors`],Array.isArray(n)?n:[n])}e.returnDomByDefault!==void 0&&t(e,[`baseElements`,`returnDomByDefault`],e.returnDomByDefault);for(let n of e.selectors)n.format===`anchor`&&Uj(n,[`options`,`noLinkBrackets`])&&t(n,[`options`,`linkBrackets`],!1)}function sN(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var cN=aN({wordwrap:!1}),lN=aN({selectors:[{selector:`mjx-container`,format:`origin`}],formatters:{origin:(e,t,n)=>{n.openBlock(),n.addInline(e.attribs.origin),n.closeBlock()}}});function uN(){let e=M(``),t=L(()=>z.regexSearch?dN:fN);return{pattern:e,filter:t,matchCount:L(()=>z.headers.filter(n=>{let r={label:n.title};return t.value(e.value,r)}).length)}}function dN(e,t){let n=/.*/;try{n=RegExp(e,`i`)}catch{}return n.test(pN(t.label))}function fN(e,t){return pN(t.label).toLowerCase().contains(e.toLowerCase())}function pN(e){let t=jD.parse(e||``,{async:!1}).trim(),n=0,r=t.match(/<mjx-container.*?>.*?<\/mjx-container>/g)||[];return r=r.map(e=>sN(lN(e))),t=t.replace(/<mjx-container.*?>.*?<\/mjx-container>/g,()=>`<math></math>`),t=t.replace(/<math.*?>.*?<\/math>/g,()=>r[n++]),cN(t)}function mN(e){function t(){return e.navigator.getDefaultLevel()}let n=M(t());function r(e){n.value=e,o(gN(e))}Zw(`levelchange`,e=>{typeof e==`number`?r(e):e===`inc`?r(Math.clamp(n.value+1,0,5)):e===`dec`&&r(Math.clamp(n.value-1,0,5))});let i=M([]);function a(e){return e.filter(e=>{let t=XT(e);return t<z.headers.length-1&&z.headers[t].level<z.headers[t+1].level})}function o(e,t=`replace`){let n;n=t===`replace`?e:t===`remove`?i.value.filter(t=>!e.includes(t)):[...new Set([...i.value,...e])],i.value=a(n),s()}function s(){let t=e.navigator.getPath();if(!t)return;let n=j(i.value);e.navigator.onExpandKeysChange(t,n)}function c(r){if(e.settings.auto_expand_ext!==`disable`){let a=z.headers[r],s=r<z.headers.length-1&&z.headers[r].level<z.headers[r+1].level?[YT(a.level,r)]:[],c=a.level,l=r;for(;l-->0&&(z.headers[l].level<c&&(s.push(YT(z.headers[l].level,l)),c=z.headers[l].level),c!==1););if(e.settings.auto_expand_ext===`expand-and-collapse-rest-to-setting`)i.value=gN(n.value);else if(e.settings.auto_expand_ext===`expand-and-collapse-rest-to-default`){let e=t();i.value=gN(e)}o(s,`add`)}}return nr(()=>j(z.modifyKeys),({offsetModifies:e,removes:t,adds:n,modifies:r})=>{let a=i.value.filter(e=>{let n=XT(e),i=!t.some(e=>e.begin<=n&&n<e.begin+e.length),a=!r.some(e=>e.oldBegin===n&&e.levelChangeType===`parent2child`);return i&&a}).map(t=>{let n=XT(t),i=r.find(e=>e.oldBegin===n),a=e.findLastIndex(e=>e.begin<=n),o=a===-1?t:hN(t,e[a].offset),s=XT(o);return i?YT(z.headers[i.newBegin].level,s):o});r.filter(e=>e.levelChangeType===`child2parent`).forEach(e=>{a.push(YT(z.headers[e.newBegin].level,e.newBegin))}),n.forEach(e=>{let t=$T(e.begin);(e.begin>=z.headers.length-1||z.headers[e.begin].level>=z.headers[e.begin+1].level)&&t.pop(),t.forEach(e=>{a.push(YT(z.headers[e].level,e))})}),o([...new Set(a)])}),{getDefaultLevel:t,level:n,switchLevel:r,expanded:i,modifyExpandKeys:o,autoExpand:c}}function hN(e,t){let n=e.split(`-`);return YT(parseInt(n[1]),parseInt(n[2])+t)}function gN(e){return z.headers.map((e,t)=>({level:e.level,no:t})).filter((t,n,r)=>n===r.length-1||r[n].level>=r[n+1].level?!1:r[n].level<=e).map(e=>YT(e.level,e.no))}function _N({container:e,locateIdx:t,selectedKeys:n,expanded:r,modifyExpandKeys:i,pattern:a}){function o(){let e=$T(t.value),i=e.findIndex(e=>!r.value.contains(vN(e)));n.value=[vN(i===-1?t.value:e[i])]}function s(e){let t=n.value[0];!t||QT(ZT(t))||(e?i([t],`add`):i([t],`remove`))}function c(){let t=n.value[0];if(!t)return;let r=ZT(t);e.querySelector(`.n-tree .n-tree-node-wrapper:has(#no-${r})`)?.scrollIntoView({behavior:`smooth`,block:`center`})}function l(t){let r=n.value[0];if(!r)return;let i=ZT(r),a=e.querySelector(`.n-tree .n-tree-node-wrapper:has(#no-${i})`);if(!a){let t=e.querySelector(`.n-tree .n-tree-node-wrapper`)?.firstElementChild;if(!t)return;u(t);return}if(t===`up`){let e=a.previousSibling?.firstChild;e&&u(e)}else if(t===`down`){let e=a.nextSibling?.firstChild;e&&u(e)}else if(t===`bottom`){let e=a.parentElement?.lastElementChild?.firstElementChild;e&&u(e)}else if(t===`top`){let e=a.parentElement?.firstElementChild?.firstElementChild;e&&u(e)}}function u(e){let t=e.id.match(/no-(\d+)/);t&&(n.value=[vN(parseInt(t[1]))],e.scrollIntoView({behavior:`smooth`,block:`nearest`}))}function d(){a.value=``}function f(){let e=n.value[0];if(e)return ZT(e)}return{selectVisible:o,setExpand:s,center:c,move:l,resetPattern:d,currentSelected:f}}function vN(e){return YT(z.headers[e].level,e)}var yN={key:0,class:`function-bar`},bN={key:2},xN=I({__name:`Outline`,setup(e,{expose:t}){Xo(e=>({d98dd3a0:N(p),v159969f5:N(d).h1,v159969f6:N(d).h2,v159969f7:N(d).h3,v159969f8:N(d).h4,v159969f9:N(d).h5}));let n=F(`plugin`),r=F(`container`),i=M(),a={0:``,1:``,2:``,3:``,4:``,5:``};function o(e){let t=z.headers.filter(t=>t.level===e).length;return e>0?`H${e}: ${t}`:`No expand`}let{theme:s,themeOverrides:c,iconColor:l,primaryColor:u,rainbowColors:d,containerStyle:f,biDi:p}=KD(),{level:m,switchLevel:h,expanded:g,modifyExpandKeys:_,getDefaultLevel:v,autoExpand:y}=mN(n),{data:b,nodeProps:x,locateIdx:S,resetLocated:C,selectedKeys:w}=tE({plugin:n,container:r,level:m,expanded:g,modifyExpandKeys:_}),{pattern:T,filter:E,matchCount:D}=uN(),{onDrop:O}=XD(r,n),{renderLabel:k,renderPrefix:ee,renderSwitcherIcon:A,editingHeadingText:te}=BD(n);GD(n,r);async function ne(){n.navigator.toBottom()}function re(){T.value=``,h(v())}Zw(`reset-panel`,re);function ie(e){_(e)}let ae=M(0);function oe(){ae.value++}function se(e){y(e),C(e)}function ce(){i.value?.handleAfterEnter();let e=T.value;T.value=``,m.value=v();let t=n.data_manager.getData(Zc),r=n.navigator.getId()===`markdown`?t?.[n.navigator.getPath()]?.expandedKeys:null;n.settings.persist_md_states&&n.settings.persist_md_expanded_keys&&r?_(r):h(m.value),n.settings.keep_search_input&&Ln(()=>{T.value=e})}ce();let{selectVisible:le,setExpand:ue,center:de,move:fe,resetPattern:pe,currentSelected:me}=_N({container:r,locateIdx:S,selectedKeys:w,expanded:g,modifyExpandKeys:_,pattern:T});return t({setExpand:ue,center:de,move:fe,selectVisible:le,resetPattern:pe,currentSelected:me,onPosChange:se,onLeafChange:ce,forceRemakeTree:oe}),(e,t)=>(Ea(),Ma(N(tS),{theme:N(s),"theme-overrides":N(c),style:Se(N(f))},{default:Yn(()=>[N(z).searchSupport?(Ea(),ja(`div`,yN,[Ra(JT,{onClick:ne,"icon-style":N(l),"svg-icon":N(nT),label:N(B)(`To Bottom`)},null,8,[`icon-style`,`svg-icon`,`label`]),Ra(JT,{onClick:re,"icon-style":N(l),"svg-icon":N(oT),label:N(B)(`Reset`)},null,8,[`icon-style`,`svg-icon`,`label`]),Ra(N(sx),{value:N(T),"onUpdate:value":t[0]||=e=>ln(T)?T.value=e:null,placeholder:N(B)(`Input to search`),size:`small`,clearable:``},null,8,[`value`,`placeholder`])])):Ua(``,!0),N(z).levelSwitch?(Ea(),Ma(N(Ew),{key:1,value:N(m),"on-update:value":N(h),marks:a,step:`mark`,min:0,max:5,style:{margin:`4px 0`},"format-tooltip":o},null,8,[`value`,`on-update:value`])):Ua(``,!0),N(T)?(Ea(),ja(`code`,bN,Pe(N(D))+` `+Pe(N(B)(`result(s):`)),1)):Ua(``,!0),(Ea(),Ma(N(Jw),{ref_key:`tree`,ref:i,"block-line":``,indent:17,pattern:N(T),data:N(b),"selected-keys":N(w),"render-label":N(k),"render-prefix":N(ee),"node-props":N(x),keyboard:!1,"expanded-keys":N(g),"render-switcher-icon":N(A),"on-update:expanded-keys":ie,key:ae.value,filter:N(E),"show-irrelevant-nodes":!N(z).hideUnsearched,class:De({ellipsis:N(z).ellipsis}),draggable:N(z).dragModify&&!N(te),onDrop:N(O),"allow-drop":()=>N(n).navigator.canDrop},null,8,[`pattern`,`data`,`selected-keys`,`render-label`,`render-prefix`,`node-props`,`expanded-keys`,`render-switcher-icon`,`filter`,`show-irrelevant-nodes`,`class`,`draggable`,`onDrop`,`allow-drop`]))]),_:1},8,[`theme`,`theme-overrides`,`style`]))}}),SN=`quiet-outline`,CN=class extends l.ItemView{vueApp;vueInstance;plugin;scopes;pendingKey;constructor(e,t){super(e),this.plugin=t,this.setupScopes()}getViewType(){return SN}getDisplayText(){return`Quiet Outline`}getIcon(){return`lines-of-text`}async onOpen(){let e=this.containerEl.children[1];e.empty();let t=e.createDiv({cls:`quiet-outline`});this.vueApp=Rs(xN),this.vueApp.provide(`plugin`,this.plugin),this.vueApp.provide(`container`,t),this.vueInstance=this.vueApp.mount(t),this.plugin.outlineView=this}setupScopes(){let e=new l.Scope(this.app.scope);e.register([],`H`,()=>this.vueInstance.setExpand(!1)),e.register([],`J`,()=>this.vueInstance.move(`down`)),e.register([],`K`,()=>this.vueInstance.move(`up`)),e.register([],`L`,()=>this.vueInstance.setExpand(!0)),e.register([],`G`,()=>{if(this.pendingKey===`G`){this.vueInstance.move(`top`),this.pendingKey=void 0;return}this.pendingKey=`G`,activeWindow.setTimeout(()=>this.pendingKey=void 0,500)}),e.register([],`Z`,()=>{if(this.pendingKey===`Z`){this.vueInstance.center(),this.pendingKey=void 0;return}this.pendingKey=`Z`,activeWindow.setTimeout(()=>this.pendingKey=void 0,500)}),e.register([`Shift`],`G`,()=>this.vueInstance.move(`bottom`)),e.register([],`ArrowLeft`,()=>this.vueInstance.setExpand(!1)),e.register([],`ArrowDown`,()=>this.vueInstance.move(`down`)),e.register([],`ArrowUp`,()=>this.vueInstance.move(`up`)),e.register([],`ArrowRight`,()=>this.vueInstance.setExpand(!0)),e.register([],`/`,e=>{e.preventDefault(),this.focusOn(`search`)}),e.register([],` `,e=>{e.preventDefault();let t=this.vueInstance.currentSelected();t!==void 0&&this.plugin.navigator.jumpWithoutFocus(t)}),e.register([],`Enter`,()=>{let e=this.vueInstance.currentSelected();e!==void 0&&(this.plugin.navigator.jump(e),this.vueInstance.resetPattern())}),e.register(null,null,e=>{e.key===`Escape`&&activeWindow.setTimeout(()=>{this.plugin.app.workspace.activeLeaf?.setEphemeralState({focus:!0})})});let t=new l.Scope(this.app.scope);t.register([],`Escape`,()=>this.vueInstance.resetPattern()),t.register([],`Enter`,()=>this.focusOn(`tree`));let n=new l.Scope(this.app.scope);this.scopes={tree:e,search:t,switcher:n}}focusOn(e){switch(e){case`tree`:this.contentEl.querySelector(`.n-tree`).focus(),this.scope=this.scopes.tree,this.vueInstance.selectVisible();break;case`search`:this.contentEl.querySelector(`.n-input__input-el`).focus(),this.scope=this.scopes.search;break}}async onClose(){}onunload(){this.vueApp.unmount(),this.plugin.outlineView=null}};function wN(e,t,n){let r=-1;return()=>{e(),window.clearTimeout(r),r=window.setTimeout(n,t)}}var TN=.2,EN=TN*1e3;function DN(e){if(e===``||e==null)return TN;let t=Number(e);return Number.isFinite(t)?Math.max(0,t):TN}function ON(e){return Math.round(DN(e)*1e3)}function kN(e){return Number.isFinite(e)?Math.max(0,e):EN}var AN=class{app;pluginPath;saveDelayMs;cache={};writeQueue=Promise.resolve();saveFileDataDebounced;constructor(e,t,n=EN){this.app=e,this.pluginPath=t,this.saveDelayMs=n,this.saveDelayMs=kN(n),this.saveFileDataDebounced=this.createSaveFileDataDebouncer()}async checkPath(e){let t=e.split(`/`).slice(0,-1).join(`/`);await this.app.vault.adapter.exists(t)||await this.app.vault.createFolder(t)}async writeFileDirectly(e,t){await this.checkPath(e),await this.app.vault.adapter.write(e,t)}getData(e){if(this.cache[e])return this.cache[e]}async loadFileData(e,t){let n=[this.pluginPath,e].join(`/`);if(!await this.app.vault.adapter.exists(n))return await this.writeFileDirectly(n,JSON.stringify(t,null,2)),this.cache[e]=t,t;let r=await this.app.vault.adapter.read(n);return this.cache[e]=eE(r,t),this.cache[e]}createSaveFileDataDebouncer(){return(0,l.debounce)(this._saveFileData.bind(this),this.saveDelayMs,!0)}async setSaveDelayMs(e){await this.flush(),this.saveDelayMs=kN(e),this.saveFileDataDebounced=this.createSaveFileDataDebouncer()}cancelPendingSave(){this.saveFileDataDebounced.cancel()}saveFileData(e,t){if(this.saveDelayMs===0){this._saveFileData(e,t);return}this.saveFileDataDebounced(e,t)}async flush(){this.saveFileDataDebounced.run(),await this.writeQueue}_saveFileData(e,t){this.cache[e]=t;let n=[this.pluginPath,e].join(`/`);this.writeQueue=this.writeQueue.then(()=>this.app.vault.adapter.write(n,JSON.stringify(t,null,2))).catch(e=>console.error(`Failed to save data to ${n}: ${e}`))}},jN={search_support:!0,level_switch:!0,markdown:!0,expand_level:`0`,hide_unsearched:!0,auto_expand_ext:`only-expand`,regex_search:!1,ellipsis:!1,label_direction:`left`,drag_modify:!1,locate_by_cursor:!1,show_popover_key:`ctrlKey`,persist_md_states:!0,persist_md_cursor:!0,persist_md_scroll:!0,persist_md_expanded_keys:!0,md_states_save_delay:TN,keep_search_input:!1,export_format:`{title}`,lang_direction_decide_by:`system`,auto_scroll_into_view:!0,vimlize_canvas:!1,canvas_sort_by:`area`,shown_node_types:[`file`,`group`,`text`,`link`],heading_truncate_length:20,patch_color:!1,primary_color_light:`#18a058`,primary_color_dark:`#63e2b7`,rainbow_line:!1,rainbow_color_1:`#FD8B1F`,rainbow_color_2:`#FFDF00`,rainbow_color_3:`#07EB23`,rainbow_color_4:`#2D8FF0`,rainbow_color_5:`#BC01E2`,font_size:``,font_family:``,font_weight:``,line_height:``,line_gap:``,custom_font_color:!1,h1_color:`#000000`,h2_color:`#000000`,h3_color:`#000000`,h4_color:`#000000`,h5_color:`#000000`,h6_color:`#000000`,h1_color_dark:`#000000`,h2_color_dark:`#000000`,h3_color_dark:`#000000`,h4_color_dark:`#000000`,h5_color_dark:`#000000`,h6_color_dark:`#000000`},MN=class extends l.PluginSettingTab{plugin;activeTab=`general`;constructor(e,t){super(e,t),this.plugin=t}display(){let{containerEl:e}=this;e.empty(),new l.Setting(e).setName(B(`Settings for Quiet Outline.`)).setHeading();let t=e.createDiv({cls:`quiet-outline-tabs`}),n=t.createEl(`button`,{text:B(`General`),cls:this.activeTab===`general`?`active`:``}),r=t.createEl(`button`,{text:B(`Styles`),cls:this.activeTab===`styles`?`active`:``}),i=t.createEl(`button`,{text:B(`Canvas`),cls:this.activeTab===`canvas`?`active`:``});n.addEventListener(`click`,()=>{this.activeTab=`general`,this.display()}),r.addEventListener(`click`,()=>{this.activeTab=`styles`,this.display()}),i.addEventListener(`click`,()=>{this.activeTab=`canvas`,this.display()});let a=e.createDiv({cls:`quiet-outline-tab-content`});this.activeTab===`general`?this.renderGeneralSettings(a):this.activeTab===`styles`?this.renderStyleSettings(a):this.activeTab===`canvas`&&this.renderCanvasSettings(a)}renderGeneralSettings(e){e.empty(),new l.Setting(e).setName(B(`Search Support`)).setDesc(B(`Add a searching area on the top`)).addToggle(e=>e.setValue(this.plugin.settings.search_support).onChange(async e=>{this.plugin.settings.search_support=e,z.searchSupport=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Level Switch`)).setDesc(B(`Expand headings to certain level.`)).addToggle(e=>e.setValue(this.plugin.settings.level_switch).onChange(async e=>{this.plugin.settings.level_switch=e,z.levelSwitch=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Render Markdown`)).setDesc(B(`Render heading string as markdown format.`)).addToggle(e=>e.setValue(this.plugin.settings.markdown).onChange(async e=>{this.plugin.settings.markdown=e,z.markdown=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Default Level`)).setDesc(B(`Default expand level when opening a new note.`)).addDropdown(e=>e.addOption(`0`,B(`No expand`)).addOption(`1`,`H1`).addOption(`2`,`H2`).addOption(`3`,`H3`).addOption(`4`,`H4`).addOption(`5`,`H5`).setValue(this.plugin.settings.expand_level).onChange(async e=>{this.plugin.settings.expand_level=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Hide Unsearched`)).setDesc(B(`Hide irrelevant headings when searching`)).addToggle(e=>e.setValue(this.plugin.settings.hide_unsearched).onChange(async e=>{this.plugin.settings.hide_unsearched=e,z.hideUnsearched=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Regex Search`)).setDesc(B(`Search headings using regular expression`)).addToggle(e=>e.setValue(this.plugin.settings.regex_search).onChange(async e=>{this.plugin.settings.regex_search=e,z.regexSearch=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Auto Expand`)).setDesc(B(`Auto expand and collapse headings when scrolling and cursor position change`)).addDropdown(e=>e.addOption(`only-expand`,B(`Only Expand`)).addOption(`expand-and-collapse-rest-to-default`,B(`Expand and Collapse Rest to Default`)).addOption(`expand-and-collapse-rest-to-setting`,B(`Expand and Collapse Rest to Setting Level (Level Switch)`)).addOption(`disable`,B(`Disabled`)).setValue(this.plugin.settings.auto_expand_ext).onChange(async e=>{this.plugin.settings.auto_expand_ext=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Auto Scroll Into View`)).setDesc(B(`Auto scroll located heading into view`)).addToggle(e=>e.setValue(this.plugin.settings.auto_scroll_into_view).onChange(async e=>{this.plugin.settings.auto_scroll_into_view=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Locate By Cursor`)).setDesc(B(`Highlight and Auto expand postion will be determined by cursor position`)).addToggle(e=>e.setValue(this.plugin.settings.locate_by_cursor).onChange(async e=>{this.plugin.settings.locate_by_cursor=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Show Popover on hover`)).setDesc(B(`Press functional key and move cursor to heading`)).addDropdown(e=>e.addOption(`ctrlKey`,`Ctrl`).addOption(`altKey`,`Alt`).addOption(`metaKey`,`Meta`).addOption(`disable`,B(`Disable`)).setValue(this.plugin.settings.show_popover_key).onChange(async e=>{this.plugin.settings.show_popover_key=e,await this.plugin.saveSettings()}));let t=e.createDiv({cls:`quiet-outline-setting-group`});new l.Setting(t).setName(B(`Persist Markdown States`)).setDesc(B(`Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings`)).addToggle(e=>e.setValue(this.plugin.settings.persist_md_states).onChange(async e=>{this.plugin.settings.persist_md_states=e,e||this.plugin.data_manager.cancelPendingSave(),await this.plugin.saveSettings(),this.display()})),this.plugin.settings.persist_md_states&&(new l.Setting(t).setName(B(`Save Cursor Position`)).setDesc(B(`Save and restore cursor position of markdown note`)).addToggle(e=>e.setValue(this.plugin.settings.persist_md_cursor).onChange(async e=>{this.plugin.settings.persist_md_cursor=e,await this.plugin.saveSettings()})),new l.Setting(t).setName(B(`Save Scroll Position`)).setDesc(B(`Save and restore scroll position of markdown note`)).addToggle(e=>e.setValue(this.plugin.settings.persist_md_scroll).onChange(async e=>{this.plugin.settings.persist_md_scroll=e,await this.plugin.saveSettings()})),new l.Setting(t).setName(B(`Save Heading Expansion State`)).setDesc(B(`Save and restore expanded/collapsed state of headings`)).addToggle(e=>e.setValue(this.plugin.settings.persist_md_expanded_keys).onChange(async e=>{this.plugin.settings.persist_md_expanded_keys=e,await this.plugin.saveSettings()})),new l.Setting(t).setName(B(`Save Delay`)).setDesc(B(`Delay after the last change before saving markdown-states.json, in seconds. Set to 0 to save immediately.`)).addText(e=>{e.inputEl.type=`number`,e.inputEl.min=`0`,e.inputEl.step=`0.1`,e.setPlaceholder(String(TN)).setValue(String(this.plugin.settings.md_states_save_delay)).onChange(async e=>{let t=DN(e);this.plugin.settings.md_states_save_delay=t,await this.plugin.data_manager.setSaveDelayMs(ON(t)),await this.plugin.saveSettings()})})),new l.Setting(e).setName(B(`Keep Search Input`)).setDesc(B(`Keep search input when switching between notes`)).addToggle(e=>e.setValue(this.plugin.settings.keep_search_input).onChange(async e=>{this.plugin.settings.keep_search_input=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Drag headings to modify note`)).setDesc(B(`❗ This will modify note content, be careful.`)).addToggle(e=>e.setValue(this.plugin.settings.drag_modify).onChange(async e=>{this.plugin.settings.drag_modify=e,z.dragModify=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Ellipsis`)).setDesc(B(`Keep one line per heading`)).addToggle(e=>e.setValue(this.plugin.settings.ellipsis).onChange(async e=>{this.plugin.settings.ellipsis=e,z.ellipsis=e,await this.plugin.saveSettings(),z.refreshTree(),this.display()})),this.plugin.settings.ellipsis&&new l.Setting(e).setName(B(`Tooltip direction`)).addDropdown(e=>e.addOption(`left`,`Left`).addOption(`right`,`Right`).addOption(`top`,`Top`).addOption(`bottom`,`Bottom`).setValue(this.plugin.settings.label_direction).onChange(async e=>{this.plugin.settings.label_direction=e,z.labelDirection=e,await this.plugin.saveSettings(),z.refreshTree()})),new l.Setting(e).setName(B(`Text Direction`)).setDesc(B(`is decided by`)).addDropdown(e=>e.addOption(`system`,`Obsidian Language`).addOption(`text`,`Specific text of heading`).setValue(this.plugin.settings.lang_direction_decide_by).onChange(async e=>{this.plugin.settings.lang_direction_decide_by=e,z.textDirectionDecideBy=e,await this.plugin.saveSettings(),z.refreshTree()})),new l.Setting(e).setName(B(`Export Format`)).addText(e=>e.setValue(this.plugin.settings.export_format).onChange(async e=>{this.plugin.settings.export_format=e,await this.plugin.saveSettings()}).inputEl.addClass(`quiet-outline-export-format-input`)).addExtraButton(e=>e.setIcon(`help`).setTooltip(`release doc 0.3.32`).onClick(()=>activeWindow.open(`https://github.com/guopenghui/obsidian-quiet-outline/releases/tag/0.3.32`)))}renderStyleSettings(e){e.empty(),new l.Setting(e).setName(B(`Set Primary Color`)).addToggle(e=>e.setTooltip(B(`Patch default color`)).setValue(this.plugin.settings.patch_color).onChange(async e=>{this.plugin.settings.patch_color=e,z.theme.patchColor=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.primary_color_light).onChange(async e=>{this.plugin.settings.primary_color_light=e,z.theme.primaryColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.primary_color_dark).onChange(async e=>{this.plugin.settings.primary_color_dark=e,z.theme.primaryColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Set Rainbow Line Color`)).addToggle(e=>e.setTooltip(B(`Patch default color`)).setValue(this.plugin.settings.rainbow_line).onChange(async e=>{this.plugin.settings.rainbow_line=e,z.theme.rainbowLine=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_1).onChange(async e=>{this.plugin.settings.rainbow_color_1=e,z.theme.rainbowColor1=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_2).onChange(async e=>{this.plugin.settings.rainbow_color_2=e,z.theme.rainbowColor2=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_3).onChange(async e=>{this.plugin.settings.rainbow_color_3=e,z.theme.rainbowColor3=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_4).onChange(async e=>{this.plugin.settings.rainbow_color_4=e,z.theme.rainbowColor4=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_5).onChange(async e=>{this.plugin.settings.rainbow_color_5=e,z.theme.rainbowColor5=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Font Size`)).setDesc(B(`Custom font size for outline text (e.g., 14px, 1rem)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_size).onChange(async e=>{this.plugin.settings.font_size=e,z.theme.fontSize=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Font Family`)).setDesc(B(`Custom font family for outline text`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_family).onChange(async e=>{this.plugin.settings.font_family=e,z.theme.fontFamily=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Font Weight`)).setDesc(B(`Custom font weight for outline text (e.g., normal, bold, 400, 700)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_weight).onChange(async e=>{this.plugin.settings.font_weight=e,z.theme.fontWeight=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Line Height`)).setDesc(B(`Custom line height for outline text (e.g., 1.5, 2)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.line_height).onChange(async e=>{this.plugin.settings.line_height=e,z.theme.lineHeight=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Line Gap`)).setDesc(B(`Custom gap between lines (e.g., 4px, 0.5rem)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.line_gap).onChange(async e=>{this.plugin.settings.line_gap=e,z.theme.lineGap=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Custom Font Color`)).setDesc(B(`Enable custom font colors for different heading levels`)).addToggle(e=>e.setValue(this.plugin.settings.custom_font_color).onChange(async e=>{this.plugin.settings.custom_font_color=e,z.theme.customFontColor=e,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.custom_font_color&&(new l.Setting(e).setName(B(`H1 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h1_color).onChange(async e=>{this.plugin.settings.h1_color=e,z.theme.h1ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h1_color_dark).onChange(async e=>{this.plugin.settings.h1_color_dark=e,z.theme.h1ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`H2 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h2_color).onChange(async e=>{this.plugin.settings.h2_color=e,z.theme.h2ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h2_color_dark).onChange(async e=>{this.plugin.settings.h2_color_dark=e,z.theme.h2ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`H3 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h3_color).onChange(async e=>{this.plugin.settings.h3_color=e,z.theme.h3ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h3_color_dark).onChange(async e=>{this.plugin.settings.h3_color_dark=e,z.theme.h3ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`H4 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h4_color).onChange(async e=>{this.plugin.settings.h4_color=e,z.theme.h4ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h4_color_dark).onChange(async e=>{this.plugin.settings.h4_color_dark=e,z.theme.h4ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`H5 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h5_color).onChange(async e=>{this.plugin.settings.h5_color=e,z.theme.h5ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h5_color_dark).onChange(async e=>{this.plugin.settings.h5_color_dark=e,z.theme.h5ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`H6 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h6_color).onChange(async e=>{this.plugin.settings.h6_color=e,z.theme.h6ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h6_color_dark).onChange(async e=>{this.plugin.settings.h6_color_dark=e,z.theme.h6ColorDark=e,await this.plugin.saveSettings()})))}renderCanvasSettings(e){e.empty(),new l.Setting(e).setName(B(`Vimlize Canvas`)).setDesc(B(`Add vim-like keymap for canvas`)).addToggle(e=>e.setValue(this.plugin.settings.vimlize_canvas).onChange(async e=>{this.plugin.settings.vimlize_canvas=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(B(`Heading Truncate Length`)).addText(e=>e.setValue(this.plugin.settings.heading_truncate_length.toString()).onChange(async e=>{let t=parseInt(e);isNaN(t)||(this.plugin.settings.heading_truncate_length=t,await this.plugin.saveSettings())})),new l.Setting(e).setName(B(`Canvas Sort Order`)).setDesc(B(`Sort method for canvas nodes`)).addDropdown(e=>e.addOption(`area`,B(`Sort by Area`)).addOption(`name_asc`,B(`Sort by Name (A -> Z)`)).addOption(`name_desc`,B(`Sort by Name (Z -> A)`)).setValue(this.plugin.settings.canvas_sort_by).onChange(async e=>{this.plugin.settings.canvas_sort_by=e,await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(B(`Show group nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`group`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`group`):t.delete(`group`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(B(`Show file nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`file`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`file`):t.delete(`file`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(B(`Show text nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`text`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`text`):t.delete(`text`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(B(`Show link nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`link`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`link`):t.delete(`link`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()}))}};function NN(e){let t=[{id:`quiet-outline`,name:`Quiet Outline`,callback:()=>{e.activateView()}},{id:`focus-heading-tree`,name:`Focus Heading Tree`,callback:async()=>{let t=e.app.workspace.getLeavesOfType(SN)[0];if(!t)return;let n=t.view;await e.app.workspace.revealLeaf(t),n.focusOn(`tree`)}},{id:`quiet-outline-reset`,name:`Reset expanding level`,callback:()=>{ac.trigger(`reset-panel`)}},{id:`quiet-outline-focus-input`,name:`Focus on input`,callback:async()=>{let t=e.app.workspace.getLeavesOfType(SN)[0];if(!t)return;let n=t.view;await e.app.workspace.revealLeaf(t),n.focusOn(`search`)}},{id:`quiet-outline-copy-as-text`,name:`Copy Current Headings As Text`,callback:async()=>{let t=Yc(z.headers,e.settings.export_format);await navigator.clipboard.writeText(t.join(`
`)),new l.Notice(`Headings copied`)}},{id:`inc-level`,name:`Increase Level`,callback:()=>{ac.trigger(`levelchange`,`inc`)}},{id:`dec-level`,name:`Decrease Level`,callback:()=>{ac.trigger(`levelchange`,`dec`)}},{id:`prev-heading`,name:`To previous heading`,editorCallback:t=>{let n=t.getCursor().line,r=z.headers.findLastIndex(e=>e.line<n);r!==-1&&e.navigator.jump(r)}},{id:`next-heading`,name:`To next heading`,editorCallback:t=>{let n=t.getCursor().line,r=z.headers.findIndex(e=>e.line>n);r!==-1&&e.navigator.jump(r)}}];for(let n of t)e.addCommand(n)}var PN=class extends l.Plugin{settings;navigator=Vl(`dummy`,this,null);jumping=Gs.resolved();klasses={};data_manager;outlineView=null;allow_scroll=!0;block_scroll;allow_cursor_change=!0;block_cursor_change;prevActiveFile=null;prevActiveFileView=null;prevView=null;async startJumping(){let e=this.jumping=new Gs;await Promise.race([e.promise,sleep(1e3)]),e.resolve()}async onload(){await this.loadSettings(),this.data_manager=new AN(this.app,this.getPluginPath(),ON(this.settings.md_states_save_delay)),await this.data_manager.loadFileData(Zc,{}),z.init(this),this.registerView(SN,e=>new CN(e,this)),this.registerListener(),NN(this),this.addSettingTab(new MN(this.app,this)),await this.firstTimeInstall()&&this.app.workspace.onLayoutReady(()=>{this.activateView(),this.saveSettings()}),this.block_scroll=wN(()=>{this.allow_scroll=!1},300,()=>{this.allow_scroll=!0}),this.block_cursor_change=wN(()=>{this.allow_cursor_change=!1},300,()=>{this.allow_cursor_change=!0})}async firstTimeInstall(){return!await this.app.vault.adapter.exists(this.manifest.dir+`/data.json`)}registerListener(){this.registerEvent(this.app.workspace.on(`css-change`,()=>{z.dark=activeDocument.body.hasClass(`theme-dark`),z.cssChange=!z.cssChange})),this.registerEvent(this.app.metadataCache.on(`changed`,()=>{this.refresh(`file-modify`)})),this.registerEvent(this.app.workspace.on(`active-leaf-change`,async e=>{let t=this.prevView;if(this.prevView=e?.view||null,e){if(!this.app.workspace.getActiveFileView()){this.prevActiveFileView=null,this.prevActiveFile=null,ac.trigger(`active-fileview-change`,null);return}if(e.view instanceof l.FileView&&e.view.navigation&&e.view.file){let n=e.view.getViewType()===`canvas`&&this.prevActiveFileView===e.view&&e.view===t;(e.view!==this.prevActiveFileView||e.view.file!==this.prevActiveFile||n)&&(this.prevActiveFileView=e.view,this.prevActiveFile=e.view.file,ac.trigger(`active-fileview-change`,e.view))}}})),this.registerEvent(ac.on(`active-fileview-change`,async e=>{if(!this.outlineView?.leaf?.group){if(!e){await this.updateNavAndRefresh(`dummy`,null);return}this.block_cursor_change(),await this.updateNavAndRefresh(e.getViewType(),e)}}));let e=(e,t)=>{if(!this.settings.persist_md_states)return t;let n=this.data_manager.getData(Zc)[typeof e.state?.file==`string`?e.state.file:``];if(!n)return t;let r={...t},i=!1;return this.settings.persist_md_scroll&&n.scroll!==void 0&&(r.scroll=n.scroll,i=!0),this.settings.persist_md_cursor&&n.cursor&&(r.cursor=n.cursor,i=!0),i?r:t};this.register(d(l.WorkspaceLeaf.prototype,{setViewState(t){return async function(n,r){return n.type===`markdown`?t.apply(this,[n,e(n,r)]).catch(e=>{if(e instanceof RangeError){console.error(e);return}throw e}):t.apply(this,[n,r])}}}))}refresh_outline=async e=>{e===`file-modify`?await this.navigator.updateHeaders():await this.navigator.setHeaders()};refresh=(0,l.debounce)(this.refresh_outline,300,!0);async updateNav(e,t){try{await this.navigator.unload(),this.navigator=Vl(e,this,t),await this.navigator.load()}catch(t){console.error(`Failed to initialize ${e} navigator: `+t),this.navigator=Vl(`dummy`,this,null),await this.navigator.load()}}async updateNavAndRefresh(e,t){await this.updateNav(e,t),z.headers=await this.navigator.getHeaders(),this.outlineView?.vueInstance.onLeafChange()}onunload(){this.unloadPlugin()}async unloadPlugin(){try{await this.navigator.unload(),await this.data_manager?.flush()}finally{this.outlineView=null}}async loadSettings(){this.settings=Object.assign({},jN,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}getPluginPath(){return this.manifest.dir}async activateView(){this.app.workspace.getLeavesOfType(`quiet-outline`).length===0&&await this.app.workspace.getRightLeaf(!1)?.setViewState({type:SN,active:!0}),await this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(SN)[0])}};exports.default=PN;
/* nosourcemap */