You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1012 lines
474 KiB
JavaScript

var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=e=>__defProp(e,"__esModule",{value:!0}),__commonJS=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{__markAsModule(e);for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!=="default"&&__defProp(e,o,{get:()=>t[o],enumerable:!(r=__getOwnPropDesc(t,o))||r.enumerable});return e},__toModule=e=>__reExport(__markAsModule(__defProp(e!=null?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),__async=(e,t,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(d){n(d)}},a=s=>{try{l(r.throw(s))}catch(d){n(d)}},l=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,a);l((r=r.apply(e,t)).next())}),require_formatDistance=__commonJS({"node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={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"}},o=function(i,a,l){var s,d=r[i];return typeof d=="string"?s=d:a===1?s=d.one:s=d.other.replace("{{count}}",a.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+s:s+" ago":s},n=o;e.default=n,t.exports=e.default}}),require_buildFormatLongFn=__commonJS({"node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(o){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width?String(n.width):o.defaultWidth,a=o.formats[i]||o.formats[o.defaultWidth];return a}}t.exports=e.default}}),require_formatLong=__commonJS({"node_modules/date-fns/locale/en-US/_lib/formatLong/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_buildFormatLongFn());function o(d){return d&&d.__esModule?d:{default:d}}var n={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,r.default)({formats:n,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:a,defaultWidth:"full"})},s=l;e.default=s,t.exports=e.default}}),require_formatRelative=__commonJS({"node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=function(i,a,l,s){return r[i]},n=o;e.default=n,t.exports=e.default}}),require_buildLocalizeFn=__commonJS({"node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(o){return function(n,i){var a=i||{},l=a.context?String(a.context):"standalone",s;if(l==="formatting"&&o.formattingValues){var d=o.defaultFormattingWidth||o.defaultWidth,u=a.width?String(a.width):d;s=o.formattingValues[u]||o.formattingValues[d]}else{var f=o.defaultWidth,v=a.width?String(a.width):o.defaultWidth;s=o.values[v]||o.values[f]}var g=o.argumentCallback?o.argumentCallback(n):n;return s[g]}}t.exports=e.default}}),require_localize=__commonJS({"node_modules/date-fns/locale/en-US/_lib/localize/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_buildLocalizeFn());function o(g){return g&&g.__esModule?g:{default:g}}var n={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={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"]},l={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"]},s={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"}},d={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"}},u=function(g,m){var S=Number(g),y=S%100;if(y>20||y<10)switch(y%10){case 1:return S+"st";case 2:return S+"nd";case 3:return S+"rd"}return S+"th"},f={ordinalNumber:u,era:(0,r.default)({values:n,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(g){return g-1}}),month:(0,r.default)({values:a,defaultWidth:"wide"}),day:(0,r.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:s,defaultWidth:"wide",formattingValues:d,defaultFormattingWidth:"wide"})},v=f;e.default=v,t.exports=e.default}}),require_buildMatchFn=__commonJS({"node_modules/date-fns/locale/_lib/buildMatchFn/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,d=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],u=a.match(d);if(!u)return null;var f=u[0],v=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],g=Array.isArray(v)?n(v,function(y){return y.test(f)}):o(v,function(y){return y.test(f)}),m;m=i.valueCallback?i.valueCallback(g):g,m=l.valueCallback?l.valueCallback(m):m;var S=a.slice(f.length);return{value:m,rest:S}}}function o(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function n(i,a){for(var l=0;l<i.length;l++)if(a(i[l]))return l}t.exports=e.default}}),require_buildMatchPatternFn=__commonJS({"node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(o){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.match(o.matchPattern);if(!a)return null;var l=a[0],s=n.match(o.parsePattern);if(!s)return null;var d=o.valueCallback?o.valueCallback(s[0]):s[0];d=i.valueCallback?i.valueCallback(d):d;var u=n.slice(l.length);return{value:d,rest:u}}}t.exports=e.default}}),require_match=__commonJS({"node_modules/date-fns/locale/en-US/_lib/match/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(require_buildMatchFn()),o=n(require_buildMatchPatternFn());function n(H){return H&&H.__esModule?H:{default:H}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={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},s={any:[/^b/i,/^(a|c)/i]},d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u={any:[/1/i,/2/i,/3/i,/4/i]},f={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},v={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]},g={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},m={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]},S={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},y={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}},C={ordinalNumber:(0,o.default)({matchPattern:i,parsePattern:a,valueCallback:function(H){return parseInt(H,10)}}),era:(0,r.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any",valueCallback:function(H){return H+1}}),month:(0,r.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:S,defaultMatchWidth:"any",parsePatterns:y,defaultParseWidth:"any"})},R=C;e.default=R,t.exports=e.default}}),require_en_US=__commonJS({"node_modules/date-fns/locale/en-US/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(require_formatDistance()),o=l(require_formatLong()),n=l(require_formatRelative()),i=l(require_localize()),a=l(require_match());function l(u){return u&&u.__esModule?u:{default:u}}var s={code:"en-US",formatDistance:r.default,formatLong:o.default,formatRelative:n.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},d=s;e.default=d,t.exports=e.default}});__export(exports,{default:()=>main_default});var import_obsidian5=__toModule(require("obsidian")),import_obsidian3=__toModule(require("obsidian"));function makeMap(e,t){const r=Object.create(null),o=e.split(",");for(let n=0;n<o.length;n++)r[o[n]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}var PatchFlagNames={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},slotFlagsText={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs),isBooleanAttr=makeMap(specialBooleanAttrs+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function includeBooleanAttr(e){return!!e||e===""}function normalizeStyle(e){if(isArray(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],n=isString(o)?parseStringStyle(o):normalizeStyle(o);if(n)for(const i in n)t[i]=n[i]}return t}else{if(isString(e))return e;if(isObject(e))return e}}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:(.+)/;function parseStringStyle(e){const t={};return e.split(listDelimiterRE).forEach(r=>{if(r){const o=r.split(propertyDelimiterRE);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let r=0;r<e.length;r++){const o=normalizeClass(e[r]);o&&(t+=o+" ")}else if(isObject(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}var HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",SVG_TAGS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",isHTMLTag=makeMap(HTML_TAGS),isSVGTag=makeMap(SVG_TAGS),toDisplayString=e=>isString(e)?e:e==null?"":isArray(e)||isObject(e)&&(e.toString===objectToString||!isFunction(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>t&&t.__v_isRef?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,n])=>(r[`${o} =>`]=n,r),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()]}:isObject(t)&&!isArray(t)&&!isPlainObject(t)?String(t):t,EMPTY_OBJ=Object.freeze({}),EMPTY_ARR=Object.freeze([]),NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isFunction=e=>typeof e=="function",isString=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject=e=>e!==null&&typeof e=="object",isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),isBuiltInDirective=makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cacheStringFunction=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},def=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_globalThis,getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function warn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var activeEffectScope,EffectScope=class{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&activeEffectScope&&(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}run(e){if(this.active)try{return activeEffectScope=this,e()}finally{activeEffectScope=this.parent}else warn("cannot run an inactive effect scope.")}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(e){if(this.active){let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.active=!1}}};function recordEffectScope(e,t=activeEffectScope){t&&t.active&&t.effects.push(e)}var createDep=e=>{const t=new Set(e);return t.w=0,t.n=0,t},wasTracked=e=>(e.w&trackOpBit)>0,newTracked=e=>(e.n&trackOpBit)>0,initDepMarkers=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=trackOpBit},finalizeDepMarkers=e=>{const{deps:t}=e;if(t.length){let r=0;for(let o=0;o<t.length;o++){const n=t[o];wasTracked(n)&&!newTracked(n)?n.delete(e):t[r++]=n,n.w&=~trackOpBit,n.n&=~trackOpBit}t.length=r}},targetMap=new WeakMap,effectTrackDepth=0,trackOpBit=1,maxMarkerBits=30,activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate"),ReactiveEffect=class{constructor(e,t=null,r){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,r)}run(){if(!this.active)return this.fn();let e=activeEffect,t=shouldTrack;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=t,this.parent=void 0}}stop(){this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}};function cleanupEffect(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function track(e,t,r){if(shouldTrack&&activeEffect){let o=targetMap.get(e);o||targetMap.set(e,o=new Map);let n=o.get(r);n||o.set(r,n=createDep()),trackEffects(n,{effect:activeEffect,target:e,type:t,key:r})}}function trackEffects(e,t){let r=!1;effectTrackDepth<=maxMarkerBits?newTracked(e)||(e.n|=trackOpBit,r=!wasTracked(e)):r=!e.has(activeEffect),r&&(e.add(activeEffect),activeEffect.deps.push(e),activeEffect.onTrack&&activeEffect.onTrack(Object.assign({effect:activeEffect},t)))}function trigger(e,t,r,o,n,i){const a=targetMap.get(e);if(!a)return;let l=[];if(t==="clear")l=[...a.values()];else if(r==="length"&&isArray(e))a.forEach((d,u)=>{(u==="length"||u>=o)&&l.push(d)});else switch(r!==void 0&&l.push(a.get(r)),t){case"add":isArray(e)?isIntegerKey(r)&&l.push(a.get("length")):(l.push(a.get(ITERATE_KEY)),isMap(e)&&l.push(a.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(l.push(a.get(ITERATE_KEY)),isMap(e)&&l.push(a.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&l.push(a.get(ITERATE_KEY));break}const s={target:e,type:t,key:r,newValue:o,oldValue:n,oldTarget:i};if(l.length===1)l[0]&&triggerEffects(l[0],s);else{const d=[];for(const u of l)u&&d.push(...u);triggerEffects(createDep(d),s)}}function triggerEffects(e,t){for(const r of isArray(e)?e:[...e])(r!==activeEffect||r.allowRecurse)&&(r.onTrigger&&r.onTrigger(extend({effect:r},t)),r.scheduler?r.scheduler():r.run())}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(isSymbol)),get=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=toRaw(this);for(let i=0,a=this.length;i<a;i++)track(o,"get",i+"");const n=o[t](...r);return n===-1||n===!1?o[t](...r.map(toRaw)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){pauseTracking();const o=toRaw(this)[t].apply(this,r);return resetTracking(),o}}),e}function createGetter(e=!1,t=!1){return function(o,n,i){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_isShallow")return t;if(n==="__v_raw"&&i===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(o))return o;const a=isArray(o);if(!e&&a&&hasOwn(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,i);const l=Reflect.get(o,n,i);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(e||track(o,"get",n),t)?l:isRef(l)?!a||!isIntegerKey(n)?l.value:l:isObject(l)?e?readonly(l):reactive(l):l}}var set=createSetter(),shallowSet=createSetter(!0);function createSetter(e=!1){return function(r,o,n,i){let a=r[o];if(isReadonly(a)&&isRef(a)&&!isRef(n))return!1;if(!e&&!isReadonly(n)&&(isShallow(n)||(n=toRaw(n),a=toRaw(a)),!isArray(r)&&isRef(a)&&!isRef(n)))return a.value=n,!0;const l=isArray(r)&&isIntegerKey(o)?Number(o)<r.length:hasOwn(r,o),s=Reflect.set(r,o,n,i);return r===toRaw(i)&&(l?hasChanged(n,a)&&trigger(r,"set",o,n,a):trigger(r,"add",o,n)),s}}function deleteProperty(e,t){const r=hasOwn(e,t),o=e[t],n=Reflect.deleteProperty(e,t);return n&&r&&trigger(e,"delete",t,void 0,o),n}function has(e,t){const r=Reflect.has(e,t);return(!isSymbol(t)||!builtInSymbols.has(t))&&track(e,"has",t),r}function ownKeys(e){return track(e,"iterate",isArray(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get,set,deleteProperty,has,ownKeys},readonlyHandlers={get:readonlyGet,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},shallowReactiveHandlers=extend({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1(e,t,r=!1,o=!1){e=e.__v_raw;const n=toRaw(e),i=toRaw(t);t!==i&&!r&&track(n,"get",t),!r&&track(n,"get",i);const{has:a}=getProto(n),l=o?toShallow:r?toReadonly:toReactive;if(a.call(n,t))return l(e.get(t));if(a.call(n,i))return l(e.get(i));e!==n&&e.get(t)}function has$1(e,t=!1){const r=this.__v_raw,o=toRaw(r),n=toRaw(e);return e!==n&&!t&&track(o,"has",e),!t&&track(o,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const r=toRaw(this),{has:o,get:n}=getProto(r);let i=o.call(r,e);i?checkIdentityKeys(r,o,e):(e=toRaw(e),i=o.call(r,e));const a=n.call(r,e);return r.set(e,t),i?hasChanged(t,a)&&trigger(r,"set",e,t,a):trigger(r,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:r,get:o}=getProto(t);let n=r.call(t,e);n?checkIdentityKeys(t,r,e):(e=toRaw(e),n=r.call(t,e));const i=o?o.call(t,e):void 0,a=t.delete(e);return n&&trigger(t,"delete",e,void 0,i),a}function clear(){const e=toRaw(this),t=e.size!==0,r=isMap(e)?new Map(e):new Set(e),o=e.clear();return t&&trigger(e,"clear",void 0,void 0,r),o}function createForEach(e,t){return function(o,n){const i=this,a=i.__v_raw,l=toRaw(a),s=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),a.forEach((d,u)=>o.call(n,s(d),s(u),i))}}function createIterableMethod(e,t,r){return function(...o){const n=this.__v_raw,i=toRaw(n),a=isMap(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,d=n[e](...o),u=r?toShallow:t?toReadonly:toReactive;return!t&&track(i,"iterate",s?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:f,done:v}=d.next();return v?{value:f,done:v}:{value:l?[u(f[0]),u(f[1])]:u(f),done:v}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${capitalize(e)} operation ${r}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:this}}function createInstrumentations(){const e={get(i){return get$1(this,i)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(i){return get$1(this,i,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(i){return get$1(this,i,!0)},get size(){return size(this,!0)},has(i){return has$1.call(this,i,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},o={get(i){return get$1(this,i,!0,!0)},get size(){return size(this,!0)},has(i){return has$1.call(this,i,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=createIterableMethod(i,!1,!1),r[i]=createIterableMethod(i,!0,!1),t[i]=createIterableMethod(i,!1,!0),o[i]=createIterableMethod(i,!0,!0)}),[e,r,t,o]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const r=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(o,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?o:Reflect.get(hasOwn(r,n)&&n in o?r:o,n,i)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)};function checkIdentityKeys(e,t,r){const o=toRaw(r);if(o!==r&&t.call(e,o)){const n=toRawType(e);console.warn(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,r,o,n){if(!isObject(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=getTargetType(e);if(a===0)return e;const l=new Proxy(e,a===2?o:r);return n.set(e,l),l}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return def(e,"__v_skip",!0),e}var toReactive=e=>isObject(e)?reactive(e):e,toReadonly=e=>isObject(e)?readonly(e):e;function trackRefValue(e){shouldTrack&&activeEffect&&(e=toRaw(e),trackEffects(e.dep||(e.dep=createDep()),{target:e,type:"get",key:"value"}))}function triggerRefValue(e,t){e=toRaw(e),e.dep&&triggerEffects(e.dep,{target:e,type:"set",key:"value",newValue:t})}function isRef(e){return!!(e&&e.__v_isRef===!0)}function ref(e){return createRef(e,!1)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}var RefImpl=class{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:toRaw(e),this._value=t?e:toReactive(e)}get value(){return trackRefValue(this),this._value}set value(e){e=this.__v_isShallow?e:toRaw(e),hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:toReactive(e),triggerRefValue(this,e))}};function unref(e){return isRef(e)?e.value:e}var shallowUnwrapHandlers={get:(e,t,r)=>unref(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return isRef(n)&&!isRef(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}var ObjectRefImpl=class{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}};function toRef(e,t,r){const o=e[t];return isRef(o)?o:new ObjectRefImpl(e,t,r)}var ComputedRefImpl=class{constructor(e,t,r,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ReactiveEffect(e,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=toRaw(this);return trackRefValue(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}};function computed(e,t,r=!1){let o,n;const i=isFunction(e);i?(o=e,n=()=>{console.warn("Write operation failed: computed value is readonly")}):(o=e.get,n=e.set);const a=new ComputedRefImpl(o,n,i||!n,r);return t&&!r&&(a.effect.onTrack=t.onTrack,a.effect.onTrigger=t.onTrigger),a}var _a,tick=Promise.resolve();_a="__v_isReadonly";var stack=[];function pushWarningContext(e){stack.push(e)}function popWarningContext(){stack.pop()}function warn2(e,...t){pauseTracking();const r=stack.length?stack[stack.length-1].component:null,o=r&&r.appContext.config.warnHandler,n=getComponentTrace();if(o)callWithErrorHandling(o,r,11,[e+t.join(""),r&&r.proxy,n.map(({vnode:i})=>`at <${formatComponentName(r,i.type)}>`).join(`
`),n]);else{const i=[`[Vue warn]: ${e}`,...t];n.length&&i.push(`
`,...formatTrace(n)),console.warn(...i)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function formatTrace(e){const t=[];return e.forEach((r,o)=>{t.push(...o===0?[]:[`
`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,n=` at <${formatComponentName(e.component,e.type,o)}`,i=">"+r;return e.props?[n,...formatProps(e.props),i]:[n+i]}function formatProps(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(o=>{t.push(...formatProp(o,e[o]))}),r.length>3&&t.push(" ..."),t}function formatProp(e,t,r){return isString(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${e}=`,t])}var ErrorTypeStrings={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function callWithErrorHandling(e,t,r,o){let n;try{n=o?e(...o):e()}catch(i){handleError(i,t,r)}return n}function callWithAsyncErrorHandling(e,t,r,o){if(isFunction(e)){const i=callWithErrorHandling(e,t,r,o);return i&&isPromise(i)&&i.catch(a=>{handleError(a,t,r)}),i}const n=[];for(let i=0;i<e.length;i++)n.push(callWithAsyncErrorHandling(e[i],t,r,o));return n}function handleError(e,t,r,o=!0){const n=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,l=ErrorTypeStrings[r];for(;i;){const d=i.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,a,l)===!1)return}i=i.parent}const s=t.appContext.config.errorHandler;if(s){callWithErrorHandling(s,null,10,[e,a,l]);return}}logError(e,r,n,o)}function logError(e,t,r,o=!0){{const n=ErrorTypeStrings[t];if(r&&pushWarningContext(r),warn2(`Unhandled error${n?` during execution of ${n}`:""}`),r&&popWarningContext(),o)throw e;console.error(e)}}var isFlushing=!1,isFlushPending=!1,queue=[],flushIndex=0,pendingPreFlushCbs=[],activePreFlushCbs=null,preFlushIndex=0,pendingPostFlushCbs=[],activePostFlushCbs=null,postFlushIndex=0,resolvedPromise=Promise.resolve(),currentFlushPromise=null,currentPreFlushParentJob=null,RECURSION_LIMIT=100;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,r=queue.length;for(;t<r;){const o=t+r>>>1;getId(queue[o])<e?t=o+1:r=o}return t}function queueJob(e){(!queue.length||!queue.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex))&&e!==currentPreFlushParentJob&&(e.id==null?queue.push(e):queue.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue.indexOf(e);t>flushIndex&&queue.splice(t,1)}function queueCb(e,t,r,o){isArray(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&r.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,t=null){if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,e=e||new Map,preFlushIndex=0;preFlushIndex<activePreFlushCbs.length;preFlushIndex++)checkRecursiveUpdates(e,activePreFlushCbs[preFlushIndex])||activePreFlushCbs[preFlushIndex]();activePreFlushCbs=null,preFlushIndex=0,currentPreFlushParentJob=null,flushPreFlushCbs(e,t)}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,e=e||new Map,activePostFlushCbs.sort((r,o)=>getId(r)-getId(o)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)checkRecursiveUpdates(e,activePostFlushCbs[postFlushIndex])||activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}var getId=e=>e.id==null?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,e=e||new Map,flushPreFlushCbs(e),queue.sort((r,o)=>getId(r)-getId(o));const t=r=>checkRecursiveUpdates(e,r);try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const r=queue[flushIndex];if(r&&r.active!==!1){if(t(r))continue;callWithErrorHandling(r,null,14)}}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(e),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPreFlushCbs.length||pendingPostFlushCbs.length)&&flushJobs(e)}}function checkRecursiveUpdates(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>RECURSION_LIMIT){const o=t.ownerInstance,n=o&&getComponentName(o.type);return warn2(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,r+1)}}var isHmrUpdating=!1,hmrDirtyComponents=new Set;getGlobalThis().__VUE_HMR_RUNTIME__={createRecord:tryWrap(createRecord),rerender:tryWrap(rerender),reload:tryWrap(reload)};var map=new Map;function registerHMR(e){const t=e.type.__hmrId;let r=map.get(t);r||(createRecord(t,e.type),r=map.get(t)),r.instances.add(e)}function unregisterHMR(e){map.get(e.type.__hmrId).instances.delete(e)}function createRecord(e,t){return map.has(e)?!1:(map.set(e,{initialDef:normalizeClassComponent(t),instances:new Set}),!0)}function normalizeClassComponent(e){return isClassComponent(e)?e.__vccOpts:e}function rerender(e,t){const r=map.get(e);!r||(r.initialDef.render=t,[...r.instances].forEach(o=>{t&&(o.render=t,normalizeClassComponent(o.type).render=t),o.renderCache=[],isHmrUpdating=!0,o.update(),isHmrUpdating=!1}))}function reload(e,t){const r=map.get(e);if(!r)return;t=normalizeClassComponent(t),updateComponentDef(r.initialDef,t);const o=[...r.instances];for(const n of o){const i=normalizeClassComponent(n.type);hmrDirtyComponents.has(i)||(i!==r.initialDef&&updateComponentDef(i,t),hmrDirtyComponents.add(i)),n.appContext.optionsCache.delete(n.type),n.ceReload?(hmrDirtyComponents.add(i),n.ceReload(t.styles),hmrDirtyComponents.delete(i)):n.parent?(queueJob(n.parent.update),n.parent.type.__asyncLoader&&n.parent.ceReload&&n.parent.ceReload(t.styles)):n.appContext.reload?n.appContext.reload():typeof window!="undefined"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}queuePostFlushCb(()=>{for(const n of o)hmrDirtyComponents.delete(normalizeClassComponent(n.type))})}function updateComponentDef(e,t){extend(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function tryWrap(e){return(t,r)=>{try{return e(t,r)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}var devtools,buffer=[],devtoolsNotInstalled=!1;function emit(e,...t){devtools?devtools.emit(e,...t):devtoolsNotInstalled||buffer.push({event:e,args:t})}function setDevtoolsHook(e,t){var r,o;devtools=e,devtools?(devtools.enabled=!0,buffer.forEach(({event:n,args:i})=>devtools.emit(n,...i)),buffer=[]):typeof window!="undefined"&&window.HTMLElement&&!((o=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||o===void 0?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{setDevtoolsHook(i,t)}),setTimeout(()=>{devtools||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,devtoolsNotInstalled=!0,buffer=[])},3e3)):(devtoolsNotInstalled=!0,buffer=[])}function devtoolsInitApp(e,t){emit("app:init",e,t,{Fragment,Text,Comment,Static})}function devtoolsUnmountApp(e){emit("app:unmount",e)}var devtoolsComponentAdded=createDevtoolsComponentHook("component:added"),devtoolsComponentUpdated=createDevtoolsComponentHook("component:updated"),devtoolsComponentRemoved=createDevtoolsComponentHook("component:removed");function createDevtoolsComponentHook(e){return t=>{emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}var devtoolsPerfStart=createDevtoolsPerformanceHook("perf:start"),devtoolsPerfEnd=createDevtoolsPerformanceHook("perf:end");function createDevtoolsPerformanceHook(e){return(t,r,o)=>{emit(e,t.appContext.app,t.uid,t,r,o)}}function devtoolsComponentEmit(e,t,r){emit("component:emit",e.appContext.app,e,t,r)}function emit$1(e,t,...r){const o=e.vnode.props||EMPTY_OBJ;{const{emitsOptions:u,propsOptions:[f]}=e;if(u)if(!(t in u))(!f||!(toHandlerKey(t)in f))&&warn2(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${toHandlerKey(t)}" prop.`);else{const v=u[t];isFunction(v)&&(v(...r)||warn2(`Invalid event arguments: event validation failed for event "${t}".`))}}let n=r;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in o){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:v}=o[u]||EMPTY_OBJ;v?n=r.map(g=>g.trim()):f&&(n=r.map(toNumber))}devtoolsComponentEmit(e,t,n);{const u=t.toLowerCase();u!==t&&o[toHandlerKey(u)]&&warn2(`Event "${u}" is emitted in component ${formatComponentName(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate(t)}" instead of "${t}".`)}let l,s=o[l=toHandlerKey(t)]||o[l=toHandlerKey(camelize(t))];!s&&i&&(s=o[l=toHandlerKey(hyphenate(t))]),s&&callWithAsyncErrorHandling(s,e,6,n);const d=o[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,callWithAsyncErrorHandling(d,e,6,n)}}function normalizeEmitsOptions(e,t,r=!1){const o=t.emitsCache,n=o.get(e);if(n!==void 0)return n;const i=e.emits;let a={},l=!1;if(!isFunction(e)){const s=d=>{const u=normalizeEmitsOptions(d,t,!0);u&&(l=!0,extend(a,u))};!r&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(o.set(e,null),null):(isArray(i)?i.forEach(s=>a[s]=null):extend(a,i),o.set(e,a),a)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function withCtx(e,t=currentRenderingInstance,r){if(!t||e._n)return e;const o=(...n)=>{o._d&&setBlockTracking(-1);const i=setCurrentRenderingInstance(t),a=e(...n);return setCurrentRenderingInstance(i),o._d&&setBlockTracking(1),devtoolsComponentUpdated(t),a};return o._n=!0,o._c=!0,o._d=!0,o}var accessedAttrs=!1;function markAttrsAccessed(){accessedAttrs=!0}function renderComponentRoot(e){const{type:t,vnode:r,proxy:o,withProxy:n,props:i,propsOptions:[a],slots:l,attrs:s,emit:d,render:u,renderCache:f,data:v,setupState:g,ctx:m,inheritAttrs:S}=e;let y,C;const R=setCurrentRenderingInstance(e);accessedAttrs=!1;try{if(r.shapeFlag&4){const w=n||o;y=normalizeVNode(u.call(w,w,f,i,g,v,m)),C=s}else{const w=t;s===i&&markAttrsAccessed(),y=normalizeVNode(w.length>1?w(i,{get attrs(){return markAttrsAccessed(),s},slots:l,emit:d}):w(i,null)),C=t.props?s:getFunctionalFallthrough(s)}}catch(w){blockStack.length=0,handleError(w,e,1),y=createVNode(Comment)}let H=y,T;if(y.patchFlag>0&&y.patchFlag&2048&&([H,T]=getChildRoot(y)),C&&S!==!1){const w=Object.keys(C),{shapeFlag:$}=H;if(w.length){if($&(1|6))a&&w.some(isModelListener)&&(C=filterModelListeners(C,a)),H=cloneVNode(H,C);else if(!accessedAttrs&&H.type!==Comment){const x=Object.keys(s),P=[],I=[];for(let z=0,F=x.length;z<F;z++){const M=x[z];isOn(M)?isModelListener(M)||P.push(M[2].toLowerCase()+M.slice(3)):I.push(M)}I.length&&warn2(`Extraneous non-props attributes (${I.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),P.length&&warn2(`Extraneous non-emits event listeners (${P.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(isElementRoot(H)||warn2("Runtime directive used on component with non-element root node. The directives will not function as intended."),H.dirs=H.dirs?H.dirs.concat(r.dirs):r.dirs),r.transition&&(isElementRoot(H)||warn2("Component inside <Transition> renders non-element root node that cannot be animated."),H.transition=r.transition),T?T(H):y=H,setCurrentRenderingInstance(R),y}var getChildRoot=e=>{const t=e.children,r=e.dynamicChildren,o=filterSingleRoot(t);if(!o)return[e,void 0];const n=t.indexOf(o),i=r?r.indexOf(o):-1,a=l=>{t[n]=l,r&&(i>-1?r[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...r,l]))};return[normalizeVNode(o),a]};function filterSingleRoot(e){let t;for(let r=0;r<e.length;r++){const o=e[r];if(isVNode(o)){if(o.type!==Comment||o.children==="v-if"){if(t)return;t=o}}else return}return t}var getFunctionalFallthrough=e=>{let t;for(const r in e)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=e[r]);return t},filterModelListeners=(e,t)=>{const r={};for(const o in e)(!isModelListener(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r},isElementRoot=e=>e.shapeFlag&(6|1)||e.type===Comment;function shouldUpdateComponent(e,t,r){const{props:o,children:n,component:i}=e,{props:a,children:l,patchFlag:s}=t,d=i.emitsOptions;if((n||l)&&isHmrUpdating||t.dirs||t.transition)return!0;if(r&&s>=0){if(s&1024)return!0;if(s&16)return o?hasPropsChanged(o,a,d):!!a;if(s&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const v=u[f];if(a[v]!==o[v]&&!isEmitListener(d,v))return!0}}}else return(n||l)&&(!l||!l.$stable)?!0:o===a?!1:o?a?hasPropsChanged(o,a,d):!0:!!a;return!1}function hasPropsChanged(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let n=0;n<o.length;n++){const i=o[n];if(t[i]!==e[i]&&!isEmitListener(r,i))return!0}return!1}function updateHOCHostEl({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}var isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function provide(e,t){if(!currentInstance)warn2("provide() can only be used inside setup().");else{let r=currentInstance.provides;const o=currentInstance.parent&&currentInstance.parent.provides;o===r&&(r=currentInstance.provides=Object.create(o)),r[e]=t}}function inject(e,t,r=!1){const o=currentInstance||currentRenderingInstance;if(o){const n=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&isFunction(t)?t.call(o.proxy):t;warn2(`injection "${String(e)}" not found.`)}else warn2("inject() can only be used inside setup() or functional components.")}function watchEffect(e,t){return doWatch(e,null,t)}var INITIAL_WATCHER_VALUE={};function watch(e,t,r){return isFunction(t)||warn2("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),doWatch(e,t,r)}function doWatch(e,t,{immediate:r,deep:o,flush:n,onTrack:i,onTrigger:a}=EMPTY_OBJ){t||(r!==void 0&&warn2('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&warn2('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const l=R=>{warn2("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},s=currentInstance;let d,u=!1,f=!1;if(isRef(e)?(d=()=>e.value,u=isShallow(e)):isReactive(e)?(d=()=>e,o=!0):isArray(e)?(f=!0,u=e.some(isReactive),d=()=>e.map(R=>{if(isRef(R))return R.value;if(isReactive(R))return traverse(R);if(isFunction(R))return callWithErrorHandling(R,s,2);l(R)})):isFunction(e)?t?d=()=>callWithErrorHandling(e,s,2):d=()=>{if(!(s&&s.isUnmounted))return v&&v(),callWithAsyncErrorHandling(e,s,3,[g])}:(d=NOOP,l(e)),t&&o){const R=d;d=()=>traverse(R())}let v,g=R=>{v=C.onStop=()=>{callWithErrorHandling(R,s,4)}};if(isInSSRComponentSetup)return g=NOOP,t?r&&callWithAsyncErrorHandling(t,s,3,[d(),f?[]:void 0,g]):d(),NOOP;let m=f?[]:INITIAL_WATCHER_VALUE;const S=()=>{if(!!C.active)if(t){const R=C.run();(o||u||(f?R.some((H,T)=>hasChanged(H,m[T])):hasChanged(R,m)))&&(v&&v(),callWithAsyncErrorHandling(t,s,3,[R,m===INITIAL_WATCHER_VALUE?void 0:m,g]),m=R)}else C.run()};S.allowRecurse=!!t;let y;n==="sync"?y=S:n==="post"?y=()=>queuePostRenderEffect(S,s&&s.suspense):y=()=>{!s||s.isMounted?queuePreFlushCb(S):S()};const C=new ReactiveEffect(d,y);return C.onTrack=i,C.onTrigger=a,t?r?S():m=C.run():n==="post"?queuePostRenderEffect(C.run.bind(C),s&&s.suspense):C.run(),()=>{C.stop(),s&&s.scope&&remove(s.scope.effects,C)}}function instanceWatch(e,t,r){const o=this.proxy,n=isString(e)?e.includes(".")?createPathGetter(o,e):()=>o[e]:e.bind(o,o);let i;isFunction(t)?i=t:(i=t.handler,r=t);const a=currentInstance;setCurrentInstance(this);const l=doWatch(n,i.bind(o),r);return a?setCurrentInstance(a):unsetCurrentInstance(),l}function createPathGetter(e,t){const r=t.split(".");return()=>{let o=e;for(let n=0;n<r.length&&o;n++)o=o[r[n]];return o}}function traverse(e,t){if(!isObject(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),isRef(e))traverse(e.value,t);else if(isArray(e))for(let r=0;r<e.length;r++)traverse(e[r],t);else if(isSet(e)||isMap(e))e.forEach(r=>{traverse(r,t)});else if(isPlainObject(e))for(const r in e)traverse(e[r],t);return e}function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}var TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(e,{slots:t}){const r=getCurrentInstance(),o=useTransitionState();let n;return()=>{const i=t.default&&getTransitionRawChildren(t.default(),!0);if(!i||!i.length)return;i.length>1&&warn2("<transition> can only be used on a single element or component. Use <transition-group> for lists.");const a=toRaw(e),{mode:l}=a;l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&warn2(`invalid <transition> mode: ${l}`);const s=i[0];if(o.isLeaving)return emptyPlaceholder(s);const d=getKeepAliveChild(s);if(!d)return emptyPlaceholder(s);const u=resolveTransitionHooks(d,a,o,r);setTransitionHooks(d,u);const f=r.subTree,v=f&&getKeepAliveChild(f);let g=!1;const{getTransitionKey:m}=d.type;if(m){const S=m();n===void 0?n=S:S!==n&&(n=S,g=!0)}if(v&&v.type!==Comment&&(!isSameVNodeType(d,v)||g)){const S=resolveTransitionHooks(v,a,o,r);if(setTransitionHooks(v,S),l==="out-in")return o.isLeaving=!0,S.afterLeave=()=>{o.isLeaving=!1,r.update()},emptyPlaceholder(s);l==="in-out"&&d.type!==Comment&&(S.delayLeave=(y,C,R)=>{const H=getLeavingNodesForType(o,v);H[String(v.key)]=v,y._leaveCb=()=>{C(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=R})}return s}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function resolveTransitionHooks(e,t,r,o){const{appear:n,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:v,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:S,onAppear:y,onAfterAppear:C,onAppearCancelled:R}=t,H=String(e.key),T=getLeavingNodesForType(r,e),w=(x,P)=>{x&&callWithAsyncErrorHandling(x,o,9,P)},$={mode:i,persisted:a,beforeEnter(x){let P=l;if(!r.isMounted)if(n)P=S||l;else return;x._leaveCb&&x._leaveCb(!0);const I=T[H];I&&isSameVNodeType(e,I)&&I.el._leaveCb&&I.el._leaveCb(),w(P,[x])},enter(x){let P=s,I=d,z=u;if(!r.isMounted)if(n)P=y||s,I=C||d,z=R||u;else return;let F=!1;const M=x._enterCb=ne=>{F||(F=!0,ne?w(z,[x]):w(I,[x]),$.delayedLeave&&$.delayedLeave(),x._enterCb=void 0)};P?(P(x,M),P.length<=1&&M()):M()},leave(x,P){const I=String(e.key);if(x._enterCb&&x._enterCb(!0),r.isUnmounting)return P();w(f,[x]);let z=!1;const F=x._leaveCb=M=>{z||(z=!0,P(),M?w(m,[x]):w(g,[x]),x._leaveCb=void 0,T[I]===e&&delete T[I])};T[I]=e,v?(v(x,F),v.length<=1&&F()):F()},clone(x){return resolveTransitionHooks(x,t,r,o)}};return $}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?setTransitionHooks(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 getTransitionRawChildren(e,t=!1){let r=[],o=0;for(let n=0;n<e.length;n++){const i=e[n];i.type===Fragment?(i.patchFlag&128&&o++,r=r.concat(getTransitionRawChildren(i.children,t))):(t||i.type!==Comment)&&r.push(i)}if(o>1)for(let n=0;n<r.length;n++)r[n].patchFlag=-2;return r}function defineComponent(e){return isFunction(e)?{setup:e,name:e.name}:e}var isAsyncWrapper=e=>!!e.type.__asyncLoader,isKeepAlive=e=>e.type.__isKeepAlive;function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,r=currentInstance){const o=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(injectHook(t,o,r),r){let n=r.parent;for(;n&&n.parent;)isKeepAlive(n.parent.vnode)&&injectToKeepAliveRoot(o,t,r,n),n=n.parent}}function injectToKeepAliveRoot(e,t,r,o){const n=injectHook(t,e,o,!0);onUnmounted(()=>{remove(o[t],n)},r)}function injectHook(e,t,r=currentInstance,o=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;pauseTracking(),setCurrentInstance(r);const l=callWithAsyncErrorHandling(t,r,e,a);return unsetCurrentInstance(),resetTracking(),l});return o?n.unshift(i):n.push(i),i}else{const n=toHandlerKey(ErrorTypeStrings[e].replace(/ hook$/,""));warn2(`${n} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}var createHook=e=>(t,r=currentInstance)=>(!isInSSRComponentSetup||e==="sp")&&injectHook(e,t,r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}function createDuplicateChecker(){const e=Object.create(null);return(t,r)=>{e[r]?warn2(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}var shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),r=e.proxy,o=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:l,provide:s,inject:d,created:u,beforeMount:f,mounted:v,beforeUpdate:g,updated:m,activated:S,deactivated:y,beforeDestroy:C,beforeUnmount:R,destroyed:H,unmounted:T,render:w,renderTracked:$,renderTriggered:x,errorCaptured:P,serverPrefetch:I,expose:z,inheritAttrs:F,components:M,directives:ne,filters:Q}=t,ee=createDuplicateChecker();{const[Y]=e.propsOptions;if(Y)for(const re in Y)ee("Props",re)}if(d&&resolveInjections(d,o,ee,e.appContext.config.unwrapInjectedRef),a)for(const Y in a){const re=a[Y];isFunction(re)?(Object.defineProperty(o,Y,{value:re.bind(r),configurable:!0,enumerable:!0,writable:!0}),ee("Methods",Y)):warn2(`Method "${Y}" has type "${typeof re}" in the component definition. Did you reference the function correctly?`)}if(n){isFunction(n)||warn2("The data option must be a function. Plain object usage is no longer supported.");const Y=n.call(r,r);if(isPromise(Y)&&warn2("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!isObject(Y))warn2("data() should return an object.");else{e.data=reactive(Y);for(const re in Y)ee("Data",re),re[0]!=="$"&&re[0]!=="_"&&Object.defineProperty(o,re,{configurable:!0,enumerable:!0,get:()=>Y[re],set:NOOP})}}if(shouldCacheAccess=!0,i)for(const Y in i){const re=i[Y],de=isFunction(re)?re.bind(r,r):isFunction(re.get)?re.get.bind(r,r):NOOP;de===NOOP&&warn2(`Computed property "${Y}" has no getter.`);const pe=!isFunction(re)&&isFunction(re.set)?re.set.bind(r):()=>{warn2(`Write operation failed: computed property "${Y}" is readonly.`)},me=computed2({get:de,set:pe});Object.defineProperty(o,Y,{enumerable:!0,configurable:!0,get:()=>me.value,set:_e=>me.value=_e}),ee("Computed",Y)}if(l)for(const Y in l)createWatcher(l[Y],o,r,Y);if(s){const Y=isFunction(s)?s.call(r):s;Reflect.ownKeys(Y).forEach(re=>{provide(re,Y[re])})}u&&callHook(u,e,"c");function Z(Y,re){isArray(re)?re.forEach(de=>Y(de.bind(r))):re&&Y(re.bind(r))}if(Z(onBeforeMount,f),Z(onMounted,v),Z(onBeforeUpdate,g),Z(onUpdated,m),Z(onActivated,S),Z(onDeactivated,y),Z(onErrorCaptured,P),Z(onRenderTracked,$),Z(onRenderTriggered,x),Z(onBeforeUnmount,R),Z(onUnmounted,T),Z(onServerPrefetch,I),isArray(z))if(z.length){const Y=e.exposed||(e.exposed={});z.forEach(re=>{Object.defineProperty(Y,re,{get:()=>r[re],set:de=>r[re]=de})})}else e.exposed||(e.exposed={});w&&e.render===NOOP&&(e.render=w),F!=null&&(e.inheritAttrs=F),M&&(e.components=M),ne&&(e.directives=ne)}function resolveInjections(e,t,r=NOOP,o=!1){isArray(e)&&(e=normalizeInject(e));for(const n in e){const i=e[n];let a;isObject(i)?"default"in i?a=inject(i.from||n,i.default,!0):a=inject(i.from||n):a=inject(i),isRef(a)?o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):(warn2(`injected property "${n}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[n]=a):t[n]=a,r("Inject",n)}}function callHook(e,t,r){callWithAsyncErrorHandling(isArray(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function createWatcher(e,t,r,o){const n=o.includes(".")?createPathGetter(r,o):()=>r[o];if(isString(e)){const i=t[e];isFunction(i)?watch(n,i):warn2(`Invalid watch handler specified by key "${e}"`,i)}else if(isFunction(e))watch(n,e.bind(r));else if(isObject(e))if(isArray(e))e.forEach(i=>createWatcher(i,t,r,o));else{const i=isFunction(e.handler)?e.handler.bind(r):t[e.handler];isFunction(i)?watch(n,i,e):warn2(`Invalid watch handler specified by key "${e.handler}"`,i)}else warn2(`Invalid watch option: "${o}"`,e)}function resolveMergedOptions(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!n.length&&!r&&!o?s=t:(s={},n.length&&n.forEach(d=>mergeOptions(s,d,a,!0)),mergeOptions(s,t,a)),i.set(t,s),s}function mergeOptions(e,t,r,o=!1){const{mixins:n,extends:i}=t;i&&mergeOptions(e,i,r,!0),n&&n.forEach(a=>mergeOptions(e,a,r,!0));for(const a in t)if(o&&a==="expose")warn2('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=internalOptionMergeStrats[a]||r&&r[a];e[a]=l?l(e[a],t[a]):t[a]}return e}var internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(extend(Object.create(null),e),t):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const r=extend(Object.create(null),e);for(const o in t)r[o]=mergeAsArray(e[o],t[o]);return r}function initProps(e,t,r,o=!1){const n={},i={};def(i,InternalObjectKey,1),e.propsDefaults=Object.create(null),setFullProps(e,t,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);validateProps(t||{},n,e),r?e.props=o?n:shallowReactive(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function updateProps(e,t,r,o){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,l=toRaw(n),[s]=e.propsOptions;let d=!1;if(!(e.type.__hmrId||e.parent&&e.parent.type.__hmrId)&&(o||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let v=u[f];const g=t[v];if(s)if(hasOwn(i,v))g!==i[v]&&(i[v]=g,d=!0);else{const m=camelize(v);n[m]=resolvePropValue(s,l,m,g,e,!1)}else g!==i[v]&&(i[v]=g,d=!0)}}}else{setFullProps(e,t,n,i)&&(d=!0);let u;for(const f in l)(!t||!hasOwn(t,f)&&((u=hyphenate(f))===f||!hasOwn(t,u)))&&(s?r&&(r[f]!==void 0||r[u]!==void 0)&&(n[f]=resolvePropValue(s,l,f,void 0,e,!0)):delete n[f]);if(i!==l)for(const f in i)(!t||!hasOwn(t,f)&&!0)&&(delete i[f],d=!0)}d&&trigger(e,"set","$attrs"),validateProps(t||{},n,e)}function setFullProps(e,t,r,o){const[n,i]=e.propsOptions;let a=!1,l;if(t)for(let s in t){if(isReservedProp(s))continue;const d=t[s];let u;n&&hasOwn(n,u=camelize(s))?!i||!i.includes(u)?r[u]=d:(l||(l={}))[u]=d:isEmitListener(e.emitsOptions,s)||(!(s in o)||d!==o[s])&&(o[s]=d,a=!0)}if(i){const s=toRaw(r),d=l||EMPTY_OBJ;for(let u=0;u<i.length;u++){const f=i[u];r[f]=resolvePropValue(n,s,f,d[f],e,!hasOwn(d,f))}}return a}function resolvePropValue(e,t,r,o,n,i){const a=e[r];if(a!=null){const l=hasOwn(a,"default");if(l&&o===void 0){const s=a.default;if(a.type!==Function&&isFunction(s)){const{propsDefaults:d}=n;r in d?o=d[r]:(setCurrentInstance(n),o=d[r]=s.call(null,t),unsetCurrentInstance())}else o=s}a[0]&&(i&&!l?o=!1:a[1]&&(o===""||o===hyphenate(r))&&(o=!0))}return o}function normalizePropsOptions(e,t,r=!1){const o=t.propsCache,n=o.get(e);if(n)return n;const i=e.props,a={},l=[];let s=!1;if(!isFunction(e)){const u=f=>{s=!0;const[v,g]=normalizePropsOptions(f,t,!0);extend(a,v),g&&l.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return o.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(i))for(let u=0;u<i.length;u++){isString(i[u])||warn2("props must be strings when using array syntax.",i[u]);const f=camelize(i[u]);validatePropName(f)&&(a[f]=EMPTY_OBJ)}else if(i){isObject(i)||warn2("invalid props options",i);for(const u in i){const f=camelize(u);if(validatePropName(f)){const v=i[u],g=a[f]=isArray(v)||isFunction(v)?{type:v}:v;if(g){const m=getTypeIndex(Boolean,g.type),S=getTypeIndex(String,g.type);g[0]=m>-1,g[1]=S<0||m<S,(m>-1||hasOwn(g,"default"))&&l.push(f)}}}}const d=[a,l];return o.set(e,d),d}function validatePropName(e){return e[0]!=="$"?!0:(warn2(`Invalid prop name: "${e}" is a reserved property.`),!1)}function getType(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray(t)?t.findIndex(r=>isSameType(r,e)):isFunction(t)&&isSameType(t,e)?0:-1}function validateProps(e,t,r){const o=toRaw(t),n=r.propsOptions[0];for(const i in n){let a=n[i];a!=null&&validateProp(i,o[i],a,!hasOwn(e,i)&&!hasOwn(e,hyphenate(i)))}}function validateProp(e,t,r,o){const{type:n,required:i,validator:a}=r;if(i&&o){warn2('Missing required prop: "'+e+'"');return}if(!(t==null&&!r.required)){if(n!=null&&n!==!0){let l=!1;const s=isArray(n)?n:[n],d=[];for(let u=0;u<s.length&&!l;u++){const{valid:f,expectedType:v}=assertType(t,s[u]);d.push(v||""),l=f}if(!l){warn2(getInvalidTypeMessage(e,t,d));return}}a&&!a(t)&&warn2('Invalid prop: custom validator check failed for prop "'+e+'".')}}var isSimpleType=makeMap("String,Number,Boolean,Function,Symbol,BigInt");function assertType(e,t){let r;const o=getType(t);if(isSimpleType(o)){const n=typeof e;r=n===o.toLowerCase(),!r&&n==="object"&&(r=e instanceof t)}else o==="Object"?r=isObject(e):o==="Array"?r=isArray(e):o==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:o}}function getInvalidTypeMessage(e,t,r){let o=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(capitalize).join(" | ")}`;const n=r[0],i=toRawType(t),a=styleValue(t,n),l=styleValue(t,i);return r.length===1&&isExplicable(n)&&!isBoolean(n,i)&&(o+=` with value ${a}`),o+=`, got ${i} `,isExplicable(i)&&(o+=`with value ${l}.`),o}function styleValue(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function isExplicable(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function isBoolean(...e){return e.some(t=>t.toLowerCase()==="boolean")}var isInternalKey=e=>e[0]==="_"||e==="$stable",normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,r)=>{const o=withCtx((...n)=>(currentInstance&&warn2(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),normalizeSlotValue(t(...n))),r);return o._c=!1,o},normalizeObjectSlots=(e,t,r)=>{const o=e._ctx;for(const n in e){if(isInternalKey(n))continue;const i=e[n];if(isFunction(i))t[n]=normalizeSlot(n,i,o);else if(i!=null){warn2(`Non-function value encountered for slot "${n}". Prefer function slots for better performance.`);const a=normalizeSlotValue(i);t[n]=()=>a}}},normalizeVNodeSlots=(e,t)=>{isKeepAlive(e.vnode)||warn2("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=normalizeSlotValue(t);e.slots.default=()=>r},initSlots=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=toRaw(t),def(t,"_",r)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,r)=>{const{vnode:o,slots:n}=e;let i=!0,a=EMPTY_OBJ;if(o.shapeFlag&32){const l=t._;l?isHmrUpdating?extend(n,t):r&&l===1?i=!1:(extend(n,t),!r&&l===1&&delete n._):(i=!t.$stable,normalizeObjectSlots(t,n)),a=t}else t&&(normalizeVNodeSlots(e,t),a={default:1});if(i)for(const l in n)!isInternalKey(l)&&!(l in a)&&delete n[l]};function validateDirectiveName(e){isBuiltInDirective(e)&&warn2("Do not use built-in directive ids as custom directive id: "+e)}function withDirectives(e,t){const r=currentRenderingInstance;if(r===null)return warn2("withDirectives can only be used inside render functions."),e;const o=r.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,l,s,d=EMPTY_OBJ]=t[i];isFunction(a)&&(a={mounted:a,updated:a}),a.deep&&traverse(l),n.push({dir:a,instance:o,value:l,oldValue:void 0,arg:s,modifiers:d})}return e}function invokeDirectiveHook(e,t,r,o){const n=e.dirs,i=t&&t.dirs;for(let a=0;a<n.length;a++){const l=n[a];i&&(l.oldValue=i[a].value);let s=l.dir[o];s&&(pauseTracking(),callWithAsyncErrorHandling(s,r,8,[e.el,l,e,t]),resetTracking())}}function createAppContext(){return{app:null,config:{isNativeTag:NO,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 uid=0;function createAppAPI(e,t){return function(o,n=null){n!=null&&!isObject(n)&&(warn2("root props passed to app.mount() must be an object."),n=null);const i=createAppContext(),a=new Set;let l=!1;const s=i.app={_uid:uid++,_component:o,_props:n,_container:null,_context:i,_instance:null,version,get config(){return i.config},set config(d){warn2("app.config cannot be replaced. Modify individual options instead.")},use(d,...u){return a.has(d)?warn2("Plugin has already been applied to target app."):d&&isFunction(d.install)?(a.add(d),d.install(s,...u)):isFunction(d)?(a.add(d),d(s,...u)):warn2('A plugin must either be a function or an object with an "install" function.'),s},mixin(d){return i.mixins.includes(d)?warn2("Mixin has already been applied to target app"+(d.name?`: ${d.name}`:"")):i.mixins.push(d),s},component(d,u){return validateComponentName(d,i.config),u?(i.components[d]&&warn2(`Component "${d}" has already been registered in target app.`),i.components[d]=u,s):i.components[d]},directive(d,u){return validateDirectiveName(d),u?(i.directives[d]&&warn2(`Directive "${d}" has already been registered in target app.`),i.directives[d]=u,s):i.directives[d]},mount(d,u,f){if(l)warn2("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{const v=createVNode(o,n);return v.appContext=i,i.reload=()=>{e(cloneVNode(v),d,f)},u&&t?t(v,d):e(v,d,f),l=!0,s._container=d,d.__vue_app__=s,s._instance=v.component,devtoolsInitApp(s,version),getExposeProxy(v.component)||v.component.proxy}},unmount(){l?(e(null,s._container),s._instance=null,devtoolsUnmountApp(s),delete s._container.__vue_app__):warn2("Cannot unmount an app that is not mounted.")},provide(d,u){return d in i.provides&&warn2(`App already provides property with key "${String(d)}". It will be overwritten with the new value.`),i.provides[d]=u,s}};return s}}function setRef(e,t,r,o,n=!1){if(isArray(e)){e.forEach((v,g)=>setRef(v,t&&(isArray(t)?t[g]:t),r,o,n));return}if(isAsyncWrapper(o)&&!n)return;const i=o.shapeFlag&4?getExposeProxy(o.component)||o.component.proxy:o.el,a=n?null:i,{i:l,r:s}=e;if(!l){warn2("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const d=t&&t.r,u=l.refs===EMPTY_OBJ?l.refs={}:l.refs,f=l.setupState;if(d!=null&&d!==s&&(isString(d)?(u[d]=null,hasOwn(f,d)&&(f[d]=null)):isRef(d)&&(d.value=null)),isFunction(s))callWithErrorHandling(s,l,12,[a,u]);else{const v=isString(s),g=isRef(s);if(v||g){const m=()=>{if(e.f){const S=v?u[s]:s.value;n?isArray(S)&&remove(S,i):isArray(S)?S.includes(i)||S.push(i):v?u[s]=[i]:(s.value=[i],e.k&&(u[e.k]=s.value))}else v?(u[s]=a,hasOwn(f,s)&&(f[s]=a)):isRef(s)?(s.value=a,e.k&&(u[e.k]=a)):warn2("Invalid template ref type:",s,`(${typeof s})`)};a?(m.id=-1,queuePostRenderEffect(m,r)):m()}else warn2("Invalid template ref type:",s,`(${typeof s})`)}}var supported,perf;function startMeasure(e,t){e.appContext.config.performance&&isSupported()&&perf.mark(`vue-${t}-${e.uid}`),devtoolsPerfStart(e,t,supported?perf.now():Date.now())}function endMeasure(e,t){if(e.appContext.config.performance&&isSupported()){const r=`vue-${t}-${e.uid}`,o=r+":end";perf.mark(o),perf.measure(`<${formatComponentName(e,e.type)}> ${t}`,r,o),perf.clearMarks(r),perf.clearMarks(o)}devtoolsPerfEnd(e,t,supported?perf.now():Date.now())}function isSupported(){return supported!==void 0||(typeof window!="undefined"&&window.performance?(supported=!0,perf=window.performance):supported=!1),supported}function initFeatureFlags(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){initFeatureFlags();const r=getGlobalThis();r.__VUE__=!0,setDevtoolsHook(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:o,remove:n,patchProp:i,createElement:a,createText:l,createComment:s,setText:d,setElementText:u,parentNode:f,nextSibling:v,setScopeId:g=NOOP,cloneNode:m,insertStaticContent:S}=e,y=(b,k,O,W=null,K=null,V=null,U=!1,N=null,q=isHmrUpdating?!1:!!k.dynamicChildren)=>{if(b===k)return;b&&!isSameVNodeType(b,k)&&(W=ue(b),we(b,K,V,!0),b=null),k.patchFlag===-2&&(q=!1,k.dynamicChildren=null);const{type:_,ref:D,shapeFlag:B}=k;switch(_){case Text:C(b,k,O,W);break;case Comment:R(b,k,O,W);break;case Static:b==null?H(k,O,W,U):T(b,k,O,U);break;case Fragment:Q(b,k,O,W,K,V,U,N,q);break;default:B&1?x(b,k,O,W,K,V,U,N,q):B&6?ee(b,k,O,W,K,V,U,N,q):B&64||B&128?_.process(b,k,O,W,K,V,U,N,q,$e):warn2("Invalid VNode type:",_,`(${typeof _})`)}D!=null&&K&&setRef(D,b&&b.ref,V,k||b,!k)},C=(b,k,O,W)=>{if(b==null)o(k.el=l(k.children),O,W);else{const K=k.el=b.el;k.children!==b.children&&d(K,k.children)}},R=(b,k,O,W)=>{b==null?o(k.el=s(k.children||""),O,W):k.el=b.el},H=(b,k,O,W)=>{[b.el,b.anchor]=S(b.children,k,O,W,b.el,b.anchor)},T=(b,k,O,W)=>{if(k.children!==b.children){const K=v(b.anchor);$(b),[k.el,k.anchor]=S(k.children,O,K,W)}else k.el=b.el,k.anchor=b.anchor},w=({el:b,anchor:k},O,W)=>{let K;for(;b&&b!==k;)K=v(b),o(b,O,W),b=K;o(k,O,W)},$=({el:b,anchor:k})=>{let O;for(;b&&b!==k;)O=v(b),n(b),b=O;n(k)},x=(b,k,O,W,K,V,U,N,q)=>{U=U||k.type==="svg",b==null?P(k,O,W,K,V,U,N,q):F(b,k,K,V,U,N,q)},P=(b,k,O,W,K,V,U,N)=>{let q,_;const{type:D,props:B,shapeFlag:G,transition:te,patchFlag:le,dirs:fe}=b;if(q=b.el=a(b.type,V,B&&B.is,B),G&8?u(q,b.children):G&16&&z(b.children,q,null,W,K,V&&D!=="foreignObject",U,N),fe&&invokeDirectiveHook(b,null,W,"created"),B){for(const L in B)L!=="value"&&!isReservedProp(L)&&i(q,L,null,B[L],V,b.children,W,K,Pe);"value"in B&&i(q,"value",null,B.value),(_=B.onVnodeBeforeMount)&&invokeVNodeHook(_,W,b)}I(q,b,b.scopeId,U,W),Object.defineProperty(q,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(q,"__vueParentComponent",{value:W,enumerable:!1}),fe&&invokeDirectiveHook(b,null,W,"beforeMount");const se=(!K||K&&!K.pendingBranch)&&te&&!te.persisted;se&&te.beforeEnter(q),o(q,k,O),((_=B&&B.onVnodeMounted)||se||fe)&&queuePostRenderEffect(()=>{_&&invokeVNodeHook(_,W,b),se&&te.enter(q),fe&&invokeDirectiveHook(b,null,W,"mounted")},K)},I=(b,k,O,W,K)=>{if(O&&g(b,O),W)for(let V=0;V<W.length;V++)g(b,W[V]);if(K){let V=K.subTree;if(V.patchFlag>0&&V.patchFlag&2048&&(V=filterSingleRoot(V.children)||V),k===V){const U=K.vnode;I(b,U,U.scopeId,U.slotScopeIds,K.parent)}}},z=(b,k,O,W,K,V,U,N,q=0)=>{for(let _=q;_<b.length;_++){const D=b[_]=N?cloneIfMounted(b[_]):normalizeVNode(b[_]);y(null,D,k,O,W,K,V,U,N)}},F=(b,k,O,W,K,V,U)=>{const N=k.el=b.el;let{patchFlag:q,dynamicChildren:_,dirs:D}=k;q|=b.patchFlag&16;const B=b.props||EMPTY_OBJ,G=k.props||EMPTY_OBJ;let te;O&&toggleRecurse(O,!1),(te=G.onVnodeBeforeUpdate)&&invokeVNodeHook(te,O,k,b),D&&invokeDirectiveHook(k,b,O,"beforeUpdate"),O&&toggleRecurse(O,!0),isHmrUpdating&&(q=0,U=!1,_=null);const le=K&&k.type!=="foreignObject";if(_?(M(b.dynamicChildren,_,N,O,W,le,V),O&&O.type.__hmrId&&traverseStaticChildren(b,k)):U||pe(b,k,N,null,O,W,le,V,!1),q>0){if(q&16)ne(N,k,B,G,O,W,K);else if(q&2&&B.class!==G.class&&i(N,"class",null,G.class,K),q&4&&i(N,"style",B.style,G.style,K),q&8){const fe=k.dynamicProps;for(let se=0;se<fe.length;se++){const L=fe[se],J=B[L],ae=G[L];(ae!==J||L==="value")&&i(N,L,J,ae,K,b.children,O,W,Pe)}}q&1&&b.children!==k.children&&u(N,k.children)}else!U&&_==null&&ne(N,k,B,G,O,W,K);((te=G.onVnodeUpdated)||D)&&queuePostRenderEffect(()=>{te&&invokeVNodeHook(te,O,k,b),D&&invokeDirectiveHook(k,b,O,"updated")},W)},M=(b,k,O,W,K,V,U)=>{for(let N=0;N<k.length;N++){const q=b[N],_=k[N],D=q.el&&(q.type===Fragment||!isSameVNodeType(q,_)||q.shapeFlag&(6|64))?f(q.el):O;y(q,_,D,null,W,K,V,U,!0)}},ne=(b,k,O,W,K,V,U)=>{if(O!==W){for(const N in W){if(isReservedProp(N))continue;const q=W[N],_=O[N];q!==_&&N!=="value"&&i(b,N,_,q,U,k.children,K,V,Pe)}if(O!==EMPTY_OBJ)for(const N in O)!isReservedProp(N)&&!(N in W)&&i(b,N,O[N],null,U,k.children,K,V,Pe);"value"in W&&i(b,"value",O.value,W.value)}},Q=(b,k,O,W,K,V,U,N,q)=>{const _=k.el=b?b.el:l(""),D=k.anchor=b?b.anchor:l("");let{patchFlag:B,dynamicChildren:G,slotScopeIds:te}=k;isHmrUpdating&&(B=0,q=!1,G=null),te&&(N=N?N.concat(te):te),b==null?(o(_,O,W),o(D,O,W),z(k.children,O,D,K,V,U,N,q)):B>0&&B&64&&G&&b.dynamicChildren?(M(b.dynamicChildren,G,O,K,V,U,N),K&&K.type.__hmrId?traverseStaticChildren(b,k):(k.key!=null||K&&k===K.subTree)&&traverseStaticChildren(b,k,!0)):pe(b,k,O,D,K,V,U,N,q)},ee=(b,k,O,W,K,V,U,N,q)=>{k.slotScopeIds=N,b==null?k.shapeFlag&512?K.ctx.activate(k,O,W,U,q):Z(k,O,W,K,V,U,q):Y(b,k,q)},Z=(b,k,O,W,K,V,U)=>{const N=b.component=createComponentInstance(b,W,K);if(N.type.__hmrId&&registerHMR(N),pushWarningContext(b),startMeasure(N,"mount"),isKeepAlive(b)&&(N.ctx.renderer=$e),startMeasure(N,"init"),setupComponent(N),endMeasure(N,"init"),N.asyncDep){if(K&&K.registerDep(N,re),!b.el){const q=N.subTree=createVNode(Comment);R(null,q,k,O)}return}re(N,b,k,O,K,V,U),popWarningContext(),endMeasure(N,"mount")},Y=(b,k,O)=>{const W=k.component=b.component;if(shouldUpdateComponent(b,k,O))if(W.asyncDep&&!W.asyncResolved){pushWarningContext(k),de(W,k,O),popWarningContext();return}else W.next=k,invalidateJob(W.update),W.update();else k.component=b.component,k.el=b.el,W.vnode=k},re=(b,k,O,W,K,V,U)=>{const N=()=>{if(b.isMounted){let{next:D,bu:B,u:G,parent:te,vnode:le}=b,fe=D,se;pushWarningContext(D||b.vnode),toggleRecurse(b,!1),D?(D.el=le.el,de(b,D,U)):D=le,B&&invokeArrayFns(B),(se=D.props&&D.props.onVnodeBeforeUpdate)&&invokeVNodeHook(se,te,D,le),toggleRecurse(b,!0),startMeasure(b,"render");const L=renderComponentRoot(b);endMeasure(b,"render");const J=b.subTree;b.subTree=L,startMeasure(b,"patch"),y(J,L,f(J.el),ue(J),b,K,V),endMeasure(b,"patch"),D.el=L.el,fe===null&&updateHOCHostEl(b,L.el),G&&queuePostRenderEffect(G,K),(se=D.props&&D.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(se,te,D,le),K),devtoolsComponentUpdated(b),popWarningContext()}else{let D;const{el:B,props:G}=k,{bm:te,m:le,parent:fe}=b,se=isAsyncWrapper(k);if(toggleRecurse(b,!1),te&&invokeArrayFns(te),!se&&(D=G&&G.onVnodeBeforeMount)&&invokeVNodeHook(D,fe,k),toggleRecurse(b,!0),B&&Re){const L=()=>{startMeasure(b,"render"),b.subTree=renderComponentRoot(b),endMeasure(b,"render"),startMeasure(b,"hydrate"),Re(B,b.subTree,b,K,null),endMeasure(b,"hydrate")};se?k.type.__asyncLoader().then(()=>!b.isUnmounted&&L()):L()}else{startMeasure(b,"render");const L=b.subTree=renderComponentRoot(b);endMeasure(b,"render"),startMeasure(b,"patch"),y(null,L,O,W,b,K,V),endMeasure(b,"patch"),k.el=L.el}if(le&&queuePostRenderEffect(le,K),!se&&(D=G&&G.onVnodeMounted)){const L=k;queuePostRenderEffect(()=>invokeVNodeHook(D,fe,L),K)}k.shapeFlag&256&&b.a&&queuePostRenderEffect(b.a,K),b.isMounted=!0,devtoolsComponentAdded(b),k=O=W=null}},q=b.effect=new ReactiveEffect(N,()=>queueJob(b.update),b.scope),_=b.update=q.run.bind(q);_.id=b.uid,toggleRecurse(b,!0),q.onTrack=b.rtc?D=>invokeArrayFns(b.rtc,D):void 0,q.onTrigger=b.rtg?D=>invokeArrayFns(b.rtg,D):void 0,_.ownerInstance=b,_()},de=(b,k,O)=>{k.component=b;const W=b.vnode.props;b.vnode=k,b.next=null,updateProps(b,k.props,W,O),updateSlots(b,k.children,O),pauseTracking(),flushPreFlushCbs(void 0,b.update),resetTracking()},pe=(b,k,O,W,K,V,U,N,q=!1)=>{const _=b&&b.children,D=b?b.shapeFlag:0,B=k.children,{patchFlag:G,shapeFlag:te}=k;if(G>0){if(G&128){_e(_,B,O,W,K,V,U,N,q);return}else if(G&256){me(_,B,O,W,K,V,U,N,q);return}}te&8?(D&16&&Pe(_,K,V),B!==_&&u(O,B)):D&16?te&16?_e(_,B,O,W,K,V,U,N,q):Pe(_,K,V,!0):(D&8&&u(O,""),te&16&&z(B,O,W,K,V,U,N,q))},me=(b,k,O,W,K,V,U,N,q)=>{b=b||EMPTY_ARR,k=k||EMPTY_ARR;const _=b.length,D=k.length,B=Math.min(_,D);let G;for(G=0;G<B;G++){const te=k[G]=q?cloneIfMounted(k[G]):normalizeVNode(k[G]);y(b[G],te,O,null,K,V,U,N,q)}_>D?Pe(b,K,V,!0,!1,B):z(k,O,W,K,V,U,N,q,B)},_e=(b,k,O,W,K,V,U,N,q)=>{let _=0;const D=k.length;let B=b.length-1,G=D-1;for(;_<=B&&_<=G;){const te=b[_],le=k[_]=q?cloneIfMounted(k[_]):normalizeVNode(k[_]);if(isSameVNodeType(te,le))y(te,le,O,null,K,V,U,N,q);else break;_++}for(;_<=B&&_<=G;){const te=b[B],le=k[G]=q?cloneIfMounted(k[G]):normalizeVNode(k[G]);if(isSameVNodeType(te,le))y(te,le,O,null,K,V,U,N,q);else break;B--,G--}if(_>B){if(_<=G){const te=G+1,le=te<D?k[te].el:W;for(;_<=G;)y(null,k[_]=q?cloneIfMounted(k[_]):normalizeVNode(k[_]),O,le,K,V,U,N,q),_++}}else if(_>G)for(;_<=B;)we(b[_],K,V,!0),_++;else{const te=_,le=_,fe=new Map;for(_=le;_<=G;_++){const xe=k[_]=q?cloneIfMounted(k[_]):normalizeVNode(k[_]);xe.key!=null&&(fe.has(xe.key)&&warn2("Duplicate keys found during update:",JSON.stringify(xe.key),"Make sure keys are unique."),fe.set(xe.key,_))}let se,L=0;const J=G-le+1;let ae=!1,be=0;const Ce=new Array(J);for(_=0;_<J;_++)Ce[_]=0;for(_=te;_<=B;_++){const xe=b[_];if(L>=J){we(xe,K,V,!0);continue}let ve;if(xe.key!=null)ve=fe.get(xe.key);else for(se=le;se<=G;se++)if(Ce[se-le]===0&&isSameVNodeType(xe,k[se])){ve=se;break}ve===void 0?we(xe,K,V,!0):(Ce[ve-le]=_+1,ve>=be?be=ve:ae=!0,y(xe,k[ve],O,null,K,V,U,N,q),L++)}const ze=ae?getSequence(Ce):EMPTY_ARR;for(se=ze.length-1,_=J-1;_>=0;_--){const xe=le+_,ve=k[xe],Me=xe+1<D?k[xe+1].el:W;Ce[_]===0?y(null,ve,O,Me,K,V,U,N,q):ae&&(se<0||_!==ze[se]?ye(ve,O,Me,2):se--)}}},ye=(b,k,O,W,K=null)=>{const{el:V,type:U,transition:N,children:q,shapeFlag:_}=b;if(_&6){ye(b.component.subTree,k,O,W);return}if(_&128){b.suspense.move(k,O,W);return}if(_&64){U.move(b,k,O,$e);return}if(U===Fragment){o(V,k,O);for(let B=0;B<q.length;B++)ye(q[B],k,O,W);o(b.anchor,k,O);return}if(U===Static){w(b,k,O);return}if(W!==2&&_&1&&N)if(W===0)N.beforeEnter(V),o(V,k,O),queuePostRenderEffect(()=>N.enter(V),K);else{const{leave:B,delayLeave:G,afterLeave:te}=N,le=()=>o(V,k,O),fe=()=>{B(V,()=>{le(),te&&te()})};G?G(V,le,fe):fe()}else o(V,k,O)},we=(b,k,O,W=!1,K=!1)=>{const{type:V,props:U,ref:N,children:q,dynamicChildren:_,shapeFlag:D,patchFlag:B,dirs:G}=b;if(N!=null&&setRef(N,null,O,b,!0),D&256){k.ctx.deactivate(b);return}const te=D&1&&G,le=!isAsyncWrapper(b);let fe;if(le&&(fe=U&&U.onVnodeBeforeUnmount)&&invokeVNodeHook(fe,k,b),D&6)Te(b.component,O,W);else{if(D&128){b.suspense.unmount(O,W);return}te&&invokeDirectiveHook(b,null,k,"beforeUnmount"),D&64?b.type.remove(b,k,O,K,$e,W):_&&(V!==Fragment||B>0&&B&64)?Pe(_,k,O,!1,!0):(V===Fragment&&B&(128|256)||!K&&D&16)&&Pe(q,k,O),W&&Oe(b)}(le&&(fe=U&&U.onVnodeUnmounted)||te)&&queuePostRenderEffect(()=>{fe&&invokeVNodeHook(fe,k,b),te&&invokeDirectiveHook(b,null,k,"unmounted")},O)},Oe=b=>{const{type:k,el:O,anchor:W,transition:K}=b;if(k===Fragment){ge(O,W);return}if(k===Static){$(b);return}const V=()=>{n(O),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(b.shapeFlag&1&&K&&!K.persisted){const{leave:U,delayLeave:N}=K,q=()=>U(O,V);N?N(b.el,V,q):q()}else V()},ge=(b,k)=>{let O;for(;b!==k;)O=v(b),n(b),b=O;n(k)},Te=(b,k,O)=>{b.type.__hmrId&&unregisterHMR(b);const{bum:W,scope:K,update:V,subTree:U,um:N}=b;W&&invokeArrayFns(W),K.stop(),V&&(V.active=!1,we(U,b,k,O)),N&&queuePostRenderEffect(N,k),queuePostRenderEffect(()=>{b.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve()),devtoolsComponentRemoved(b)},Pe=(b,k,O,W=!1,K=!1,V=0)=>{for(let U=V;U<b.length;U++)we(b[U],k,O,W,K)},ue=b=>b.shapeFlag&6?ue(b.component.subTree):b.shapeFlag&128?b.suspense.next():v(b.anchor||b.el),Ae=(b,k,O)=>{b==null?k._vnode&&we(k._vnode,null,null,!0):y(k._vnode||null,b,k,null,null,null,O),flushPostFlushCbs(),k._vnode=b},$e={p:y,um:we,m:ye,r:Oe,mt:Z,mc:z,pc:pe,pbc:M,n:ue,o:e};let Be,Re;return t&&([Be,Re]=t($e)),{render:Ae,hydrate:Be,createApp:createAppAPI(Ae,Be)}}function toggleRecurse({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function traverseStaticChildren(e,t,r=!1){const o=e.children,n=t.children;if(isArray(o)&&isArray(n))for(let i=0;i<o.length;i++){const a=o[i];let l=n[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=n[i]=cloneIfMounted(n[i]),l.el=a.el),r||traverseStaticChildren(a,l)),l.type===Comment&&!l.el&&(l.el=a.el)}}function getSequence(e){const t=e.slice(),r=[0];let o,n,i,a,l;const s=e.length;for(o=0;o<s;o++){const d=e[o];if(d!==0){if(n=r[r.length-1],e[n]<d){t[o]=n,r.push(o);continue}for(i=0,a=r.length-1;i<a;)l=i+a>>1,e[r[l]]<d?i=l+1:a=l;d<e[r[i]]&&(i>0&&(t[o]=r[i-1]),r[i]=o)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}var isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===""),isTargetSVG=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,resolveTarget=(e,t)=>{const r=e&&e.to;if(isString(r))if(t){const o=t(r);return o||warn2(`Failed to locate Teleport target with selector "${r}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),o}else return warn2("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!r&&!isTeleportDisabled(e)&&warn2(`Invalid Teleport target: ${r}`),r},TeleportImpl={__isTeleport:!0,process(e,t,r,o,n,i,a,l,s,d){const{mc:u,pc:f,pbc:v,o:{insert:g,querySelector:m,createText:S,createComment:y}}=d,C=isTeleportDisabled(t.props);let{shapeFlag:R,children:H,dynamicChildren:T}=t;if(isHmrUpdating&&(s=!1,T=null),e==null){const w=t.el=y("teleport start"),$=t.anchor=y("teleport end");g(w,r,o),g($,r,o);const x=t.target=resolveTarget(t.props,m),P=t.targetAnchor=S("");x?(g(P,x),a=a||isTargetSVG(x)):C||warn2("Invalid Teleport target on mount:",x,`(${typeof x})`);const I=(z,F)=>{R&16&&u(H,z,F,n,i,a,l,s)};C?I(r,$):x&&I(x,P)}else{t.el=e.el;const w=t.anchor=e.anchor,$=t.target=e.target,x=t.targetAnchor=e.targetAnchor,P=isTeleportDisabled(e.props),I=P?r:$,z=P?w:x;if(a=a||isTargetSVG($),T?(v(e.dynamicChildren,T,I,n,i,a,l),traverseStaticChildren(e,t,!0)):s||f(e,t,I,z,n,i,a,l,!1),C)P||moveTeleport(t,r,w,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=resolveTarget(t.props,m);F?moveTeleport(t,F,null,d,0):warn2("Invalid Teleport target on update:",$,`(${typeof $})`)}else P&&moveTeleport(t,$,x,d,1)}},remove(e,t,r,o,{um:n,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:d,targetAnchor:u,target:f,props:v}=e;if(f&&i(u),(a||!isTeleportDisabled(v))&&(i(d),l&16))for(let g=0;g<s.length;g++){const m=s[g];n(m,t,r,!0,!!m.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(e,t,r,{o:{insert:o},m:n},i=2){i===0&&o(e.targetAnchor,t,r);const{el:a,anchor:l,shapeFlag:s,children:d,props:u}=e,f=i===2;if(f&&o(a,t,r),(!f||isTeleportDisabled(u))&&s&16)for(let v=0;v<d.length;v++)n(d[v],t,r,2);f&&o(l,t,r)}function hydrateTeleport(e,t,r,o,n,i,{o:{nextSibling:a,parentNode:l,querySelector:s}},d){const u=t.target=resolveTarget(t.props,s);if(u){const f=u._lpa||u.firstChild;t.shapeFlag&16&&(isTeleportDisabled(t.props)?(t.anchor=d(a(e),t,l(e),r,o,n,i),t.targetAnchor=f):(t.anchor=a(e),t.targetAnchor=d(f,t,u,r,o,n,i)),u._lpa=t.targetAnchor&&a(t.targetAnchor))}return t.anchor&&a(t.anchor)}var Teleport=TeleportImpl,NULL_DYNAMIC_COMPONENT=Symbol(),Fragment=Symbol("Fragment"),Text=Symbol("Text"),Comment=Symbol("Comment"),Static=Symbol("Static"),blockStack=[],currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,r,o,n,i){return setupBlock(createBaseVNode(e,t,r,o,n,i,!0))}function createBlock(e,t,r,o,n){return setupBlock(createVNode(e,t,r,o,n,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return t.shapeFlag&6&&hmrDirtyComponents.has(t.type)?!1:e.type===t.type&&e.key===t.key}var vnodeArgsTransformer,createVNodeWithArgsTransform=(...e)=>_createVNode(...vnodeArgsTransformer?vnodeArgsTransformer(e,currentRenderingInstance):e),InternalObjectKey="__vInternal",normalizeKey=({key:e})=>e!=null?e:null,normalizeRef=({ref:e,ref_key:t,ref_for:r})=>e!=null?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!r}:e:null;function createBaseVNode(e,t=null,r=null,o=0,n=null,i=e===Fragment?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null};return l?(normalizeChildren(s,r),i&128&&e.normalize(s)):r&&(s.shapeFlag|=isString(r)?8:16),s.key!==s.key&&warn2("VNode created with invalid key (NaN). VNode type:",s.type),isBlockTreeEnabled>0&&!a&&currentBlock&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&currentBlock.push(s),s}var createVNode=createVNodeWithArgsTransform;function _createVNode(e,t=null,r=null,o=0,n=null,i=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e||warn2(`Invalid vnode type when creating vnode: ${e}.`),e=Comment),isVNode(e)){const l=cloneVNode(e,t,!0);return r&&normalizeChildren(l,r),l}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:l,style:s}=t;l&&!isString(l)&&(t.class=normalizeClass(l)),isObject(s)&&(isProxy(s)&&!isArray(s)&&(s=extend({},s)),t.style=normalizeStyle(s))}const a=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject(e)?4:isFunction(e)?2:0;return a&4&&isProxy(e)&&(e=toRaw(e),warn2("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),createBaseVNode(e,t,r,o,n,a,i,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend({},e):e:null}function cloneVNode(e,t,r=!1){const{props:o,ref:n,patchFlag:i,children:a}=e,l=t?mergeProps(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&normalizeKey(l),ref:t&&t.ref?r&&n?isArray(n)?n.concat(normalizeRef(t)):[n,normalizeRef(t)]:normalizeRef(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&isArray(a)?a.map(deepCloneVNode):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function deepCloneVNode(e){const t=cloneVNode(e);return isArray(e.children)&&(t.children=e.children.map(deepCloneVNode)),t}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const r=createVNode(Static,null,e);return r.staticCount=t,r}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):typeof e=="object"?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(isArray(t))r=16;else if(typeof t=="object")if(o&(1|64)){const n=t.default;n&&(n._c&&(n._d=!1),normalizeChildren(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!(InternalObjectKey in t)?t._ctx=currentRenderingInstance:n===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),o&64?(r=16,t=[createTextVNode(t)]):r=8);e.children=t,e.shapeFlag|=r}function mergeProps(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const n in o)if(n==="class")t.class!==o.class&&(t.class=normalizeClass([t.class,o.class]));else if(n==="style")t.style=normalizeStyle([t.style,o.style]);else if(isOn(n)){const i=t[n],a=o[n];a&&i!==a&&!(isArray(i)&&i.includes(a))&&(t[n]=i?[].concat(i,a):a)}else n!==""&&(t[n]=o[n])}return t}function invokeVNodeHook(e,t,r,o=null){callWithAsyncErrorHandling(e,t,7,[r,o])}function renderSlot(e,t,r={},o,n){if(currentRenderingInstance.isCE)return createVNode("slot",t==="default"?null:{name:t},o&&o());let i=e[t];i&&i.length>1&&(warn2("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),openBlock();const a=i&&ensureValidVNode(i(r)),l=createBlock(Fragment,{key:r.key||`_${t}`},a||(o?o():[]),a&&e._===1?64:-2);return!n&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function ensureValidVNode(e){return e.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?e:null}var getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>shallowReadonly(e.props),$attrs:e=>shallowReadonly(e.attrs),$slots:e=>shallowReadonly(e.slots),$refs:e=>shallowReadonly(e.refs),$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>()=>queueJob(e.update),$nextTick:e=>nextTick.bind(e.proxy),$watch:e=>instanceWatch.bind(e)}),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:r,setupState:o,data:n,props:i,accessCache:a,type:l,appContext:s}=e;if(t==="__isVue")return!0;if(o!==EMPTY_OBJ&&o.__isScriptSetup&&hasOwn(o,t))return o[t];let d;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return n[t];case 4:return r[t];case 3:return i[t]}else{if(o!==EMPTY_OBJ&&hasOwn(o,t))return a[t]=1,o[t];if(n!==EMPTY_OBJ&&hasOwn(n,t))return a[t]=2,n[t];if((d=e.propsOptions[0])&&hasOwn(d,t))return a[t]=3,i[t];if(r!==EMPTY_OBJ&&hasOwn(r,t))return a[t]=4,r[t];shouldCacheAccess&&(a[t]=0)}}const u=publicPropertiesMap[t];let f,v;if(u)return t==="$attrs"&&(track(e,"get",t),markAttrsAccessed()),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(r!==EMPTY_OBJ&&hasOwn(r,t))return a[t]=4,r[t];if(v=s.config.globalProperties,hasOwn(v,t))return v[t];currentRenderingInstance&&(!isString(t)||t.indexOf("__v")!==0)&&(n!==EMPTY_OBJ&&(t[0]==="$"||t[0]==="_")&&hasOwn(n,t)?warn2(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===currentRenderingInstance&&warn2(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:o,setupState:n,ctx:i}=e;return n!==EMPTY_OBJ&&hasOwn(n,t)?(n[t]=r,!0):o!==EMPTY_OBJ&&hasOwn(o,t)?(o[t]=r,!0):hasOwn(e.props,t)?(warn2(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1):t[0]==="$"&&t.slice(1)in e?(warn2(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:r}):i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:n,propsOptions:i}},a){let l;return!!r[a]||e!==EMPTY_OBJ&&hasOwn(e,a)||t!==EMPTY_OBJ&&hasOwn(t,a)||(l=i[0])&&hasOwn(l,a)||hasOwn(o,a)||hasOwn(publicPropertiesMap,a)||hasOwn(n.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?this.set(e,t,r.get(),null):r.value!=null&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};PublicInstanceProxyHandlers.ownKeys=e=>(warn2("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));function createDevRenderContext(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(publicPropertiesMap).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>publicPropertiesMap[r](e),set:NOOP})}),t}function exposePropsOnRenderContext(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:NOOP})})}function exposeSetupStateOnRenderContext(e){const{ctx:t,setupState:r}=e;Object.keys(toRaw(r)).forEach(o=>{if(!r.__isScriptSetup){if(o[0]==="$"||o[0]==="_"){warn2(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r[o],set:NOOP})}})}var emptyAppContext=createAppContext(),uid$1=0;function createComponentInstance(e,t,r){const o=e.type,n=(t?t.appContext:e.appContext)||emptyAppContext,i={uid:uid$1++,vnode:e,type:o,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(o,n),emitsOptions:normalizeEmitsOptions(o,n),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:r,suspenseId:r?r.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 i.ctx=createDevRenderContext(i),i.root=t?t.root:i,i.emit=emit$1.bind(null,i),e.ce&&e.ce(i),i}var currentInstance=null,getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e,e.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),currentInstance=null},isBuiltInTag=makeMap("slot,component");function validateComponentName(e,t){const r=t.isNativeTag||NO;(isBuiltInTag(e)||r(e))&&warn2("Do not use built-in or reserved HTML elements as component id: "+e)}function isStatefulComponent(e){return e.vnode.shapeFlag&4}var isInSSRComponentSetup=!1;function setupComponent(e,t=!1){isInSSRComponentSetup=t;const{props:r,children:o}=e.vnode,n=isStatefulComponent(e);initProps(e,r,n,t),initSlots(e,o);const i=n?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,i}function setupStatefulComponent(e,t){const r=e.type;if(r.name&&validateComponentName(r.name,e.appContext.config),r.components){const n=Object.keys(r.components);for(let i=0;i<n.length;i++)validateComponentName(n[i],e.appContext.config)}if(r.directives){const n=Object.keys(r.directives);for(let i=0;i<n.length;i++)validateDirectiveName(n[i])}r.compilerOptions&&isRuntimeOnly()&&warn2('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.'),e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers)),exposePropsOnRenderContext(e);const{setup:o}=r;if(o){const n=e.setupContext=o.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const i=callWithErrorHandling(o,e,0,[shallowReadonly(e.props),n]);if(resetTracking(),unsetCurrentInstance(),isPromise(i)){if(i.then(unsetCurrentInstance,unsetCurrentInstance),t)return i.then(a=>{handleSetupResult(e,a,t)}).catch(a=>{handleError(a,e,0)});e.asyncDep=i}else handleSetupResult(e,i,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,r){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject(t)?(isVNode(t)&&warn2("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=proxyRefs(t),exposeSetupStateOnRenderContext(e)):t!==void 0&&warn2(`setup() should return an object. Received: ${t===null?"null":typeof t}`),finishComponentSetup(e,r)}var compile,installWithProxy,isRuntimeOnly=()=>!compile;function finishComponentSetup(e,t,r){const o=e.type;if(!e.render){if(!t&&compile&&!o.render){const n=o.template;if(n){startMeasure(e,"compile");const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=o,d=extend(extend({isCustomElement:i,delimiters:l},a),s);o.render=compile(n,d),endMeasure(e,"compile")}}e.render=o.render||NOOP,installWithProxy&&installWithProxy(e)}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance(),!o.render&&e.render===NOOP&&!t&&(!compile&&o.template?warn2('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):warn2("Component is missing template or render function."))}function createAttrsProxy(e){return new Proxy(e.attrs,{get(t,r){return markAttrsAccessed(),track(e,"get","$attrs"),t[r]},set(){return warn2("setupContext.attrs is readonly."),!1},deleteProperty(){return warn2("setupContext.attrs is readonly."),!1}})}function createSetupContext(e){const t=o=>{e.exposed&&warn2("expose() should be called only once per setup()."),e.exposed=o||{}};let r;return Object.freeze({get attrs(){return r||(r=createAttrsProxy(e))},get slots(){return shallowReadonly(e.slots)},get emit(){return(o,...n)=>e.emit(o,...n)},expose:t})}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](e)}}))}var classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e){return isFunction(e)&&e.displayName||e.name}function formatComponentName(e,t,r=!1){let o=getComponentName(t);if(!o&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(o=n[1])}if(!o&&e&&e.parent){const n=i=>{for(const a in i)if(i[a]===t)return a};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?classify(o):r?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}var computed2=(e,t)=>computed(e,t,isInSSRComponentSetup);function h(e,t,r){const o=arguments.length;return o===2?isObject(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&isVNode(r)&&(r=[r]),createVNode(e,t,r))}var ssrContextKey=Symbol("ssrContext");function isShallow2(e){return!!(e&&e.__v_isShallow)}function initCustomFormatter(){if(typeof window=="undefined")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},r={style:"color:#b62e24"},o={style:"color:#9d288c"},n={header(f){return isObject(f)?f.__isVue?["div",e,"VueInstance"]:isRef(f)?["div",{},["span",e,u(f)],"<",l(f.value),">"]:isReactive(f)?["div",{},["span",e,isShallow2(f)?"ShallowReactive":"Reactive"],"<",l(f),`>${isReadonly(f)?" (readonly)":""}`]:isReadonly(f)?["div",{},["span",e,isShallow2(f)?"ShallowReadonly":"Readonly"],"<",l(f),">"]:null:null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...i(f.$)]}};function i(f){const v=[];f.type.props&&f.props&&v.push(a("props",toRaw(f.props))),f.setupState!==EMPTY_OBJ&&v.push(a("setup",f.setupState)),f.data!==EMPTY_OBJ&&v.push(a("data",toRaw(f.data)));const g=s(f,"computed");g&&v.push(a("computed",g));const m=s(f,"inject");return m&&v.push(a("injected",m)),v.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),v}function a(f,v){return v=extend({},v),Object.keys(v).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(v).map(g=>["div",{},["span",o,g+": "],l(v[g],!1)])]]:["span",{}]}function l(f,v=!0){return typeof f=="number"?["span",t,f]:typeof f=="string"?["span",r,JSON.stringify(f)]:typeof f=="boolean"?["span",o,f]:isObject(f)?["object",{object:v?toRaw(f):f}]:["span",r,String(f)]}function s(f,v){const g=f.type;if(isFunction(g))return;const m={};for(const S in f.ctx)d(g,S,v)&&(m[S]=f.ctx[S]);return m}function d(f,v,g){const m=f[g];if(isArray(m)&&m.includes(v)||isObject(m)&&v in m||f.extends&&d(f.extends,v,g)||f.mixins&&f.mixins.some(S=>d(S,v,g)))return!0}function u(f){return isShallow2(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(n):window.devtoolsFormatters=[n]}var version="3.2.31",svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n=t?doc.createElementNS(svgNS,e):doc.createElement(e,r?{is:r}:void 0);return e==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,o,n,i){const a=r?r.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===i||!(n=n.nextSibling)););else{templateContainer.innerHTML=o?`<svg>${e}</svg>`:e;const l=templateContainer.content;if(o){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function patchClass(e,t,r){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,r){const o=e.style,n=isString(r);if(r&&!n){for(const i in r)setStyle(o,i,r[i]);if(t&&!isString(t))for(const i in t)r[i]==null&&setStyle(o,i,"")}else{const i=o.display;n?t!==r&&(o.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}var importantRE=/\s*!important$/;function setStyle(e,t,r){if(isArray(r))r.forEach(o=>setStyle(e,t,o));else if(t.startsWith("--"))e.setProperty(t,r);else{const o=autoPrefix(e,t);importantRE.test(r)?e.setProperty(hyphenate(o),r.replace(importantRE,""),"important"):e[o]=r}}var prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const r=prefixCache[t];if(r)return r;let o=camelize(t);if(o!=="filter"&&o in e)return prefixCache[t]=o;o=capitalize(o);for(let n=0;n<prefixes.length;n++){const i=prefixes[n]+o;if(i in e)return prefixCache[t]=i}return t}var xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,r,o,n){if(o&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,r);else{const i=isSpecialBooleanAttr(t);r==null||i&&!includeBooleanAttr(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function patchDOMProp(e,t,r,o,n,i,a){if(t==="innerHTML"||t==="textContent"){o&&a(o,n,i),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r==null?"":r;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}if(r===""||r==null){const l=typeof e[t];if(l==="boolean"){e[t]=includeBooleanAttr(r);return}else if(r==null&&l==="string"){e[t]="",e.removeAttribute(t);return}else if(l==="number"){try{e[t]=0}catch(s){}e.removeAttribute(t);return}}try{e[t]=r}catch(l){warn2(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${r} is invalid.`,l)}}var _getNow=Date.now,skipTimestampCheck=!1;if(typeof window!="undefined"){_getNow()>document.createEvent("Event").timeStamp&&(_getNow=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);skipTimestampCheck=!!(e&&Number(e[1])<=53)}var cachedNow=0,p=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p.then(reset),cachedNow=_getNow());function addEventListener(e,t,r,o){e.addEventListener(t,r,o)}function removeEventListener(e,t,r,o){e.removeEventListener(t,r,o)}function patchEvent(e,t,r,o,n=null){const i=e._vei||(e._vei={}),a=i[t];if(o&&a)a.value=o;else{const[l,s]=parseName(t);if(o){const d=i[t]=createInvoker(o,n);addEventListener(e,l,d,s)}else a&&(removeEventListener(e,l,a,s),i[t]=void 0)}}var optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){t={};let r;for(;r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),t]}function createInvoker(e,t){const r=o=>{const n=o.timeStamp||_getNow();(skipTimestampCheck||n>=r.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(o,r.value),t,5,[o])};return r.value=e,r.attached=getNow(),r}function patchStopImmediatePropagation(e,t){if(isArray(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>n=>!n._stopped&&o&&o(n))}else return t}var nativeOnRE=/^on[a-z]/,patchProp=(e,t,r,o,n=!1,i,a,l,s)=>{t==="class"?patchClass(e,o,n):t==="style"?patchStyle(e,r,o):isOn(t)?isModelListener(t)||patchEvent(e,t,r,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(e,t,o,n))?patchDOMProp(e,t,o,i,a,l,s):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),patchAttr(e,t,o,n))};function shouldSetAsProp(e,t,r,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&nativeOnRE.test(t)&&isFunction(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nativeOnRE.test(t)&&isString(r)?!1:t in e}var TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";var DOMTransitionPropsValidators={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},TransitionPropsValidators=Transition.props=extend({},BaseTransition.props,DOMTransitionPropsValidators),callHook2=(e,t=[])=>{isArray(e)?e.forEach(r=>r(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const M in e)M in DOMTransitionPropsValidators||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:o,duration:n,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:s=i,appearActiveClass:d=a,appearToClass:u=l,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:v=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,m=normalizeDuration(n),S=m&&m[0],y=m&&m[1],{onBeforeEnter:C,onEnter:R,onEnterCancelled:H,onLeave:T,onLeaveCancelled:w,onBeforeAppear:$=C,onAppear:x=R,onAppearCancelled:P=H}=t,I=(M,ne,Q)=>{removeTransitionClass(M,ne?u:l),removeTransitionClass(M,ne?d:a),Q&&Q()},z=(M,ne)=>{removeTransitionClass(M,g),removeTransitionClass(M,v),ne&&ne()},F=M=>(ne,Q)=>{const ee=M?x:R,Z=()=>I(ne,M,Q);callHook2(ee,[ne,Z]),nextFrame(()=>{removeTransitionClass(ne,M?s:i),addTransitionClass(ne,M?u:l),hasExplicitCallback(ee)||whenTransitionEnds(ne,o,S,Z)})};return extend(t,{onBeforeEnter(M){callHook2(C,[M]),addTransitionClass(M,i),addTransitionClass(M,a)},onBeforeAppear(M){callHook2($,[M]),addTransitionClass(M,s),addTransitionClass(M,d)},onEnter:F(!1),onAppear:F(!0),onLeave(M,ne){const Q=()=>z(M,ne);addTransitionClass(M,f),forceReflow(),addTransitionClass(M,v),nextFrame(()=>{removeTransitionClass(M,f),addTransitionClass(M,g),hasExplicitCallback(T)||whenTransitionEnds(M,o,y,Q)}),callHook2(T,[M,Q])},onEnterCancelled(M){I(M,!1),callHook2(H,[M])},onAppearCancelled(M){I(M,!0),callHook2(P,[M])},onLeaveCancelled(M){z(M),callHook2(w,[M])}})}function normalizeDuration(e){if(e==null)return null;if(isObject(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){const t=toNumber(e);return validateDuration(t),t}function validateDuration(e){typeof e!="number"?warn2(`<transition> explicit duration is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&warn2("<transition> explicit duration is NaN - the duration expression might be incorrect.")}function addTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var endId=0;function whenTransitionEnds(e,t,r,o){const n=e._endId=++endId,i=()=>{n===e._endId&&o()};if(r)return setTimeout(i,r);const{type:a,timeout:l,propCount:s}=getTransitionInfo(e,t);if(!a)return o();const d=a+"end";let u=0;const f=()=>{e.removeEventListener(d,v),i()},v=g=>{g.target===e&&++u>=s&&f()};setTimeout(()=>{u<s&&f()},l+1),e.addEventListener(d,v)}function getTransitionInfo(e,t){const r=window.getComputedStyle(e),o=m=>(r[m]||"").split(", "),n=o(TRANSITION+"Delay"),i=o(TRANSITION+"Duration"),a=getTimeout(n,i),l=o(ANIMATION+"Delay"),s=o(ANIMATION+"Duration"),d=getTimeout(l,s);let u=null,f=0,v=0;t===TRANSITION?a>0&&(u=TRANSITION,f=a,v=i.length):t===ANIMATION?d>0&&(u=ANIMATION,f=d,v=s.length):(f=Math.max(a,d),u=f>0?a>d?TRANSITION:ANIMATION:null,v=u?u===TRANSITION?i.length:s.length:0);const g=u===TRANSITION&&/\b(transform|all)(,|$)/.test(r[TRANSITION+"Property"]);return{type:u,timeout:f,propCount:v,hasTransform:g}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>toMs(r)+toMs(e[o])))}function toMs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}var positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=getCurrentInstance(),o=useTransitionState();let n,i;return onUpdated(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!hasCSSTransform(n[0].el,r.vnode.el,a))return;n.forEach(callPendingCbs),n.forEach(recordPosition);const l=n.filter(applyTranslation);forceReflow(),l.forEach(s=>{const d=s.el,u=d.style;addTransitionClass(d,a),u.transform=u.webkitTransform=u.transitionDuration="";const f=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",f),d._moveCb=null,removeTransitionClass(d,a))};d.addEventListener("transitionend",f)})}),()=>{const a=toRaw(e),l=resolveTransitionProps(a);let s=a.tag||Fragment;n=i,i=t.default?getTransitionRawChildren(t.default()):[];for(let d=0;d<i.length;d++){const u=i[d];u.key!=null?setTransitionHooks(u,resolveTransitionHooks(u,l,o,r)):warn2("<TransitionGroup> children must be keyed.")}if(n)for(let d=0;d<n.length;d++){const u=n[d];setTransitionHooks(u,resolveTransitionHooks(u,l,o,r)),positionMap.set(u,u.el.getBoundingClientRect())}return createVNode(s,null,i)}}},TransitionGroup=TransitionGroupImpl;function callPendingCbs(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function recordPosition(e){newPositionMap.set(e,e.el.getBoundingClientRect())}function applyTranslation(e){const t=positionMap.get(e),r=newPositionMap.get(e),o=t.left-r.left,n=t.top-r.top;if(o||n){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${n}px)`,i.transitionDuration="0s",e}}function hasCSSTransform(e,t,r){const o=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(o);const{hasTransform:i}=getTransitionInfo(o);return n.removeChild(o),i}var rendererOptions=extend({patchProp},nodeOps),renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}var createApp=(...e)=>{const t=ensureRenderer().createApp(...e);injectNativeTagCheck(t),injectCompilerOptionsCheck(t);const{mount:r}=t;return t.mount=o=>{const n=normalizeContainer(o);if(!n)return;const i=t._component;!isFunction(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.innerHTML="";const a=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t};function injectNativeTagCheck(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>isHTMLTag(t)||isSVGTag(t),writable:!1})}function injectCompilerOptionsCheck(e){if(isRuntimeOnly()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){warn2("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const r=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get(){return warn2(o),r},set(){warn2(o)}})}}function normalizeContainer(e){if(isString(e)){const t=document.querySelector(e);return t||warn2(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&warn2('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function initDev(){initCustomFormatter()}initDev();var import_obsidian2=__toModule(require("obsidian")),onceCbs=[],paramsMap=new WeakMap;function flushOnceCallbacks(){onceCbs.forEach(e=>e(...paramsMap.get(e))),onceCbs=[]}function beforeNextFrameOnce(e,...t){paramsMap.set(e,t),!onceCbs.includes(e)&&onceCbs.push(e)===1&&requestAnimationFrame(flushOnceCallbacks)}function happensIn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function depx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function pxfy(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function getMargin(e,t){const r=e.trim().split(/\s+/g),o={top:r[0]};switch(r.length){case 1:o.right=r[0],o.bottom=r[0],o.left=r[0];break;case 2:o.right=r[1],o.left=r[1],o.bottom=r[0];break;case 3:o.right=r[1],o.bottom=r[2],o.left=r[1];break;case 4:o.right=r[1],o.bottom=r[2],o.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}var colors_default={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},prefix="^\\s*",suffix="\\s*$",percent="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",float="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",hex="([0-9A-Fa-f])",dhex="([0-9A-Fa-f]{2})",hslRegex=new RegExp(`${prefix}hsl\\s*\\(${float},${percent},${percent}\\)${suffix}`),hsvRegex=new RegExp(`${prefix}hsv\\s*\\(${float},${percent},${percent}\\)${suffix}`),hslaRegex=new RegExp(`${prefix}hsla\\s*\\(${float},${percent},${percent},${float}\\)${suffix}`),hsvaRegex=new RegExp(`${prefix}hsva\\s*\\(${float},${percent},${percent},${float}\\)${suffix}`),rgbRegex=new RegExp(`${prefix}rgb\\s*\\(${float},${float},${float}\\)${suffix}`),rgbaRegex=new RegExp(`${prefix}rgba\\s*\\(${float},${float},${float},${float}\\)${suffix}`),sHexRegex=new RegExp(`${prefix}#${hex}${hex}${hex}${suffix}`),hexRegex=new RegExp(`${prefix}#${dhex}${dhex}${dhex}${suffix}`),sHexaRegex=new RegExp(`${prefix}#${hex}${hex}${hex}${hex}${suffix}`),hexaRegex=new RegExp(`${prefix}#${dhex}${dhex}${dhex}${dhex}${suffix}`);function parseHex(e){return parseInt(e,16)}function rgba(e){try{let t;if(t=hexRegex.exec(e))return[parseHex(t[1]),parseHex(t[2]),parseHex(t[3]),1];if(t=rgbRegex.exec(e))return[roundChannel(t[1]),roundChannel(t[5]),roundChannel(t[9]),1];if(t=rgbaRegex.exec(e))return[roundChannel(t[1]),roundChannel(t[5]),roundChannel(t[9]),roundAlpha(t[13])];if(t=sHexRegex.exec(e))return[parseHex(t[1]+t[1]),parseHex(t[2]+t[2]),parseHex(t[3]+t[3]),1];if(t=hexaRegex.exec(e))return[parseHex(t[1]),parseHex(t[2]),parseHex(t[3]),roundAlpha(parseHex(t[4])/255)];if(t=sHexaRegex.exec(e))return[parseHex(t[1]+t[1]),parseHex(t[2]+t[2]),parseHex(t[3]+t[3]),roundAlpha(parseHex(t[4]+t[4])/255)];if(e in colors_default)return rgba(colors_default[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function normalizeAlpha(e){return e>1?1:e<0?0:e}function stringifyRgba(e,t,r,o){return`rgba(${roundChannel(e)}, ${roundChannel(t)}, ${roundChannel(r)}, ${normalizeAlpha(o)})`}function compositeChannel(e,t,r,o,n){return roundChannel((e*t*(1-o)+r*o)/n)}function composite(e,t){Array.isArray(e)||(e=rgba(e)),Array.isArray(t)||(t=rgba(t));const r=e[3],o=t[3],n=roundAlpha(r+o-r*o);return stringifyRgba(compositeChannel(e[0],r,t[0],o,n),compositeChannel(e[1],r,t[1],o,n),compositeChannel(e[2],r,t[2],o,n),n)}function changeColor(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:rgba(e);return t.alpha?stringifyRgba(r,o,n,t.alpha):stringifyRgba(r,o,n,i)}function scaleColor(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:rgba(e),{lightness:a=1,alpha:l=1}=t;return toRgbaString([r*a,o*a,n*a,i*l])}function roundAlpha(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function roundChannel(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function toRgbaString(e){const[t,r,o]=e;return 3 in e?`rgba(${roundChannel(t)}, ${roundChannel(r)}, ${roundChannel(o)}, ${roundAlpha(e[3])})`:`rgba(${roundChannel(t)}, ${roundChannel(r)}, ${roundChannel(o)}, 1)`}function createId(e=8){return Math.random().toString(16).slice(2,2+e)}function repeat(e,t){const r=[];for(let o=0;o<e;++o)r.push(t);return r}function call(e,...t){if(Array.isArray(e))e.forEach(r=>call(r,...t));else return e(...t)}var render=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?createTextVNode(e):typeof e=="number"?createTextVNode(String(e)):null,warnedMessages=new Set;function warnOnce(e,t){const r=`[naive/${e}]: ${t}`;warnedMessages.has(r)||(warnedMessages.add(r),console.error(r))}function warn3(e,t){console.error(`[naive/${e}]: ${t}`)}function throwError(e,t){throw new Error(`[naive/${e}]: ${t}`)}function createDataKey(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function createInjectionKey(e){return e}function ensureValidVNode2(e){return e.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode2(t.children)):!0)?e:null}function resolveSlot(e,t){return e&&ensureValidVNode2(e())||t()}function resolveSlotWithProps(e,t,r){return e&&ensureValidVNode2(e(t))||r(t)}function resolveWrappedSlot(e,t){const r=e&&ensureValidVNode2(e());return t(r||null)}function isSlotEmpty(e){return!(e&&ensureValidVNode2(e()))}function color2Class(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}var separatorRegex=/\s*,(?![^(]*\))\s*/g,extraSpaceRegex=/\s+/g;function resolveSelectorWithAmp(e,t){const r=[];return t.split(separatorRegex).forEach(o=>{let n=ampCount(o);if(n){if(n===1){e.forEach(a=>{r.push(o.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+o)});return}let i=[o];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>r.push(a))}),r}function resolveSelector(e,t){const r=[];return t.split(separatorRegex).forEach(o=>{e.forEach(n=>{r.push((n&&n+" ")+o)})}),r}function parseSelectorPath(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),!!r&&(r.includes("&")?t=resolveSelectorWithAmp(t,r):t=resolveSelector(t,r))}),t.join(", ").replace(extraSpaceRegex," ")}function removeElement(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function queryElement(e){return document.querySelector(`style[cssr-id="${e}"]`)}function createElement(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function isMediaOrSupports(e){return e?/^\s*@(s|m)/.test(e):!1}var kebabRegex=/[A-Z]/g;function kebabCase(e){return e.replace(kebabRegex,t=>"-"+t.toLowerCase())}function unwrapProperty(e,t=" "){return typeof e=="object"&&e!==null?` {
`+Object.entries(e).map(r=>t+` ${kebabCase(r[0])}: ${r[1]};`).join(`
`)+`
`+t+"}":`: ${e};`}function unwrapProperties(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function createStyle(e,t,r,o){if(!t)return"";const n=unwrapProperties(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} {
${n}
}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` {
}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=n[l];if(l==="raw"){a.push(`
`+s+`
`);return}l=kebabCase(l),s!=null&&a.push(` ${l}${unwrapProperty(s)}`)}),e&&a.push("}"),a.join(`
`)}function loopCNodeListWithCallback(e,t,r){!e||e.forEach(o=>{if(Array.isArray(o))loopCNodeListWithCallback(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?loopCNodeListWithCallback(n,t,r):n&&r(n)}else o&&r(o)})}function traverseCNode(e,t,r,o,n,i){const a=e.$;let l="";if(!a||typeof a=="string")isMediaOrSupports(a)?l=a:t.push(a);else if(typeof a=="function"){const u=a({context:o.context,props:n});isMediaOrSupports(u)?l=u:t.push(u)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")isMediaOrSupports(a.$)?l=a.$:t.push(a.$);else if(a.$){const u=a.$({context:o.context,props:n});isMediaOrSupports(u)?l=u:t.push(u)}const s=parseSelectorPath(t),d=createStyle(s,e.props,o,n);l?(r.push(`${l} {`),i&&d&&i.insertRule(`${l} {
${d}
}
`)):(i&&d&&i.insertRule(d),!i&&d.length&&r.push(d)),e.children&&loopCNodeListWithCallback(e.children,{context:o.context,props:n},u=>{if(typeof u=="string"){const f=createStyle(s,{raw:u},o,n);i?i.insertRule(f):r.push(f)}else traverseCNode(u,t,r,o,n,i)}),t.pop(),l&&r.push("}"),a&&a.after&&a.after(o.context)}function render2(e,t,r,o=!1){const n=[];return traverseCNode(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(`
`)}function murmur2(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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)}var hash_browser_esm_default=murmur2;typeof window!="undefined"&&(window.__cssrContext={});function unmount(e,t,r){const{els:o}=t;if(r===void 0)o.forEach(removeElement),t.els=[];else{const n=queryElement(r);n&&o.includes(n)&&(removeElement(n),t.els=o.filter(i=>i!==n))}}function addElementToList(e,t){e.push(t)}function mount(e,t,r,o,n,i,a,l,s){if(i&&!s){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const v=window.__cssrContext;v[r]||(v[r]=!0,render2(t,e,o,i));return}let d;if(r===void 0&&(d=t.render(o),r=hash_browser_esm_default(d)),s){s.adapter(r,d!=null?d:t.render(o));return}const u=queryElement(r);if(u!==null&&!a)return u;const f=u!=null?u:createElement(r);if(d===void 0&&(d=t.render(o)),f.textContent=d,u!==null)return u;if(l){const v=document.head.querySelector(`meta[name="${l}"]`);if(v)return document.head.insertBefore(f,v),addElementToList(t.els,f),f}return n?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),addElementToList(t.els,f),f}function wrappedRender(e){return render2(this,this.instance,e)}function wrappedMount(e={}){const{id:t,ssr:r,props:o,head:n=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return mount(this.instance,this,t,o,n,i,a,l,r)}function wrappedUnmount(e={}){const{id:t}=e;unmount(this.instance,this,t)}var createCNode=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c=function(e,t,r,o){return Array.isArray(t)?createCNode(e,{$:null},null,t):Array.isArray(r)?createCNode(e,t,null,r):Array.isArray(o)?createCNode(e,t,r,o):createCNode(e,t,r,null)};function CssRender(e={}){let t=null;const r={c:(...o)=>c(r,...o),use:(o,...n)=>o.install(r,...n),find:queryElement,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function exists(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return queryElement(e)!==null}var esm_default=CssRender;function plugin(e){let t=".",r="__",o="--",n;if(e){let m=e.blockPrefix;m&&(t=m),m=e.elementPrefix,m&&(r=m),m=e.modifierPrefix,m&&(o=m)}const i={install(m){n=m.c;const S=m.context;S.bem={},S.bem.b=null,S.bem.els=null}};function a(m){let S,y;return{before(C){S=C.bem.b,y=C.bem.els,C.bem.els=null},after(C){C.bem.b=S,C.bem.els=y},$({context:C,props:R}){return m=typeof m=="string"?m:m({context:C,props:R}),C.bem.b=m,`${(R==null?void 0:R.bPrefix)||t}${C.bem.b}`}}}function l(m){let S;return{before(y){S=y.bem.els},after(y){y.bem.els=S},$({context:y,props:C}){return m=typeof m=="string"?m:m({context:y,props:C}),y.bem.els=m.split(",").map(R=>R.trim()),y.bem.els.map(R=>`${(C==null?void 0:C.bPrefix)||t}${y.bem.b}${r}${R}`).join(", ")}}}function s(m){return{$({context:S,props:y}){m=typeof m=="string"?m:m({context:S,props:y});const C=m.split(",").map(T=>T.trim());function R(T){return C.map(w=>`&${(y==null?void 0:y.bPrefix)||t}${S.bem.b}${T!==void 0?`${r}${T}`:""}${o}${w}`).join(", ")}const H=S.bem.els;if(H!==null){if(H.length>=2)throw Error(`[css-render/plugin-bem]: m(${m}) is invalid, using modifier inside multiple elements is not allowed`);return R(H[0])}else return R()}}}function d(m){return{$({context:S,props:y}){m=typeof m=="string"?m:m({context:S,props:y});const C=S.bem.els;if(C!==null&&C.length>=2)throw Error(`[css-render/plugin-bem]: notM(${m}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(y==null?void 0:y.bPrefix)||t}${S.bem.b}${C!==null&&C.length>0?`${r}${C[0]}`:""}${o}${m})`}}}return Object.assign(i,{cB:(...m)=>n(a(m[0]),m[1],m[2]),cE:(...m)=>n(l(m[0]),m[1],m[2]),cM:(...m)=>n(s(m[0]),m[1],m[2]),cNotM:(...m)=>n(d(m[0]),m[1],m[2])}),i}var esm_default2=plugin;function createKey(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}createKey("abc","def");var namespace="n",prefix2=`.${namespace}-`,elementPrefix="__",modifierPrefix="--",cssr=esm_default(),plugin2=esm_default2({blockPrefix:prefix2,elementPrefix,modifierPrefix});cssr.use(plugin2);var{c:c2,find}=cssr,{cB,cE,cM,cNotM}=plugin2;function insideModal(e){return c2(({props:{bPrefix:t}})=>`${t||prefix2}modal, ${t||prefix2}drawer`,[e])}function insidePopover(e){return c2(({props:{bPrefix:t}})=>`${t||prefix2}popover:not(${t||prefix2}tooltip)`,[e])}function useFalseUntilTruthy(e){const t=ref(!!e.value);if(t.value)return readonly(t);const r=watch(e,o=>{o&&(t.value=!0,r())});return readonly(t)}function useMemo(e){const t=computed2(e),r=ref(t.value);return watch(t,o=>{r.value=o}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(o){e.set(o)}}}var use_memo_default=useMemo,isBrowser=typeof window!="undefined",fontsReady,isFontReady,init=()=>{var e,t;fontsReady=isBrowser?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init();function onFontsReady(e){if(isFontReady)return;let t=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{t||e()})}),onBeforeUnmount(()=>{t=!0})}var traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(e,t,r){if(e==="mousemoveoutside"){const o=n=>{t.contains(n.target)||r(n)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const n=a=>{o=!t.contains(a.target)},i=a=>{!o||t.contains(a.target)||r(a)};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function ensureTrapHandlers(e,t,r){const o=traps[e];let n=o.get(t);n===void 0&&o.set(t,n=new WeakMap);let i=n.get(r);return i===void 0&&n.set(r,i=createTrapHandler(e,t,r)),i}function trapOn(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=ensureTrapHandlers(e,t,r);return Object.keys(n).forEach(i=>{on(i,document,n[i],o)}),!0}return!1}function trapOff(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=ensureTrapHandlers(e,t,r);return Object.keys(n).forEach(i=>{off(i,document,n[i],o)}),!0}return!1}function createDelegate(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function n(x,P,I){const z=x[P];return x[P]=function(){return I.apply(x,arguments),z.apply(x,arguments)},x}function i(x,P){x[P]=Event.prototype[P]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var x;return(x=a.get(this))!==null&&x!==void 0?x:null}function d(x,P){l!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:P!=null?P:l.get})}const u={bubble:{},capture:{}},f={};function v(){const x=function(P){const{type:I,eventPhase:z,target:F,bubbles:M}=P;if(z===2)return;const ne=z===1?"capture":"bubble";let Q=F;const ee=[];for(;Q===null&&(Q=window),ee.push(Q),Q!==window;)Q=Q.parentNode||null;const Z=u.capture[I],Y=u.bubble[I];if(n(P,"stopPropagation",r),n(P,"stopImmediatePropagation",o),d(P,s),ne==="capture"){if(Z===void 0)return;for(let re=ee.length-1;re>=0&&!e.has(P);--re){const de=ee[re],pe=Z.get(de);if(pe!==void 0){a.set(P,de);for(const me of pe){if(t.has(P))break;me(P)}}if(re===0&&!M&&Y!==void 0){const me=Y.get(de);if(me!==void 0)for(const _e of me){if(t.has(P))break;_e(P)}}}}else if(ne==="bubble"){if(Y===void 0)return;for(let re=0;re<ee.length&&!e.has(P);++re){const de=ee[re],pe=Y.get(de);if(pe!==void 0){a.set(P,de);for(const me of pe){if(t.has(P))break;me(P)}}}}i(P,"stopPropagation"),i(P,"stopImmediatePropagation"),d(P)};return x.displayName="evtdUnifiedHandler",x}function g(){const x=function(P){const{type:I,eventPhase:z}=P;if(z!==2)return;const F=f[I];F!==void 0&&F.forEach(M=>M(P))};return x.displayName="evtdUnifiedWindowEventHandler",x}const m=v(),S=g();function y(x,P){const I=u[x];return I[P]===void 0&&(I[P]=new Map,window.addEventListener(P,m,x==="capture")),I[P]}function C(x){return f[x]===void 0&&(f[x]=new Set,window.addEventListener(x,S)),f[x]}function R(x,P){let I=x.get(P);return I===void 0&&x.set(P,I=new Set),I}function H(x,P,I,z){const F=u[P][I];if(F!==void 0){const M=F.get(x);if(M!==void 0&&M.has(z))return!0}return!1}function T(x,P){const I=f[x];return!!(I!==void 0&&I.has(P))}function w(x,P,I,z){let F;if(typeof z=="object"&&z.once===!0?F=Z=>{$(x,P,F,z),I(Z)}:F=I,trapOn(x,P,F,z))return;const ne=z===!0||typeof z=="object"&&z.capture===!0?"capture":"bubble",Q=y(ne,x),ee=R(Q,P);if(ee.has(F)||ee.add(F),P===window){const Z=C(x);Z.has(F)||Z.add(F)}}function $(x,P,I,z){if(trapOff(x,P,I,z))return;const M=z===!0||typeof z=="object"&&z.capture===!0,ne=M?"capture":"bubble",Q=y(ne,x),ee=R(Q,P);if(P===window&&!H(P,M?"bubble":"capture",x,I)&&T(x,I)){const Y=f[x];Y.delete(I),Y.size===0&&(window.removeEventListener(x,S),f[x]=void 0)}ee.has(I)&&ee.delete(I),ee.size===0&&Q.delete(P),Q.size===0&&(window.removeEventListener(x,m,ne==="capture"),u[ne][x]=void 0)}return{on:w,off:$}}var{on,off}=createDelegate();function useMergedState(e,t){return watch(e,r=>{r!==void 0&&(t.value=r)}),computed2(()=>e.value===void 0?t.value:e.value)}function isMounted(){const e=ref(!1);return onMounted(()=>{e.value=!0}),readonly(e)}var isIos=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function useIsIos(){return isIos}var internalSelectionMenuInjectionKey=createInjectionKey("n-internal-select-menu"),internalSelectionMenuBodyInjectionKey=createInjectionKey("n-internal-select-menu-body"),modalBodyInjectionKey=createInjectionKey("n-modal-body"),modalInjectionKey=createInjectionKey("n-modal"),drawerBodyInjectionKey=createInjectionKey("n-drawer-body"),drawerInjectionKey=createInjectionKey("n-drawer"),popoverBodyInjectionKey=createInjectionKey("n-popover-body"),teleportDisabled="__disabled__";function useAdjustedTo(e){const t=inject(modalBodyInjectionKey,null),r=inject(drawerBodyInjectionKey,null),o=inject(popoverBodyInjectionKey,null),n=inject(internalSelectionMenuBodyInjectionKey,null),i=ref();if(typeof document!="undefined"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,a)}),onBeforeUnmount(()=>{off("fullscreenchange",document,a)})}return use_memo_default(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?teleportDisabled:l===!0?i.value||"body":l:(t==null?void 0:t.value)?(a=t.value.$el)!==null&&a!==void 0?a:t.value:(r==null?void 0:r.value)?r.value:(o==null?void 0:o.value)?o.value:(n==null?void 0:n.value)?n.value:l!=null?l:i.value||"body"})}useAdjustedTo.tdkey=teleportDisabled,useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return o()}function flatten(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(createTextVNode(String(o)));return}if(Array.isArray(o)){flatten(o,t,r);return}if(o.type===Fragment){if(o.children===null)return;Array.isArray(o.children)&&flatten(o.children,t,r)}else o.type!==Comment&&r.push(o)}}),r}function getFirstVNode(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const n=flatten(o());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}var viewMeasurer=null;function ensureViewBoundingRect(){if(viewMeasurer===null&&(viewMeasurer=document.getElementById("v-binder-view-measurer"),viewMeasurer===null)){viewMeasurer=document.createElement("div"),viewMeasurer.id="v-binder-view-measurer";const{style:e}=viewMeasurer;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(viewMeasurer)}return viewMeasurer.getBoundingClientRect()}function getPointRect(e,t){const r=ensureViewBoundingRect();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function getRect(e){const t=e.getBoundingClientRect(),r=ensureViewBoundingRect();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function getParentNode(e){return e.nodeType===9?null:e.parentNode}function getScrollParent(e){if(e===null)return null;const t=getParentNode(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return getScrollParent(t)}var Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;provide("VBinder",(t=getCurrentInstance())===null||t===void 0?void 0:t.proxy);const r=inject("VBinder",null),o=ref(null),n=C=>{o.value=C,r&&e.syncTargetWithParent&&r.setTargetRef(C)};let i=[];const a=()=>{let C=o.value;for(;C=getScrollParent(C),C!==null;)i.push(C);for(const R of i)on("scroll",R,f,!0)},l=()=>{for(const C of i)off("scroll",C,f,!0);i=[]},s=new Set,d=C=>{s.size===0&&a(),s.has(C)||s.add(C)},u=C=>{s.has(C)&&s.delete(C),s.size===0&&l()},f=()=>{beforeNextFrameOnce(v)},v=()=>{s.forEach(C=>C())},g=new Set,m=C=>{g.size===0&&on("resize",window,y),g.has(C)||g.add(C)},S=C=>{g.has(C)&&g.delete(C),g.size===0&&off("resize",window,y)},y=()=>{g.forEach(C=>C())};return onBeforeUnmount(()=>{off("resize",window,y),l()}),{targetRef:o,setTargetRef:n,addScrollListener:d,removeScrollListener:u,addResizeListener:m,removeResizeListener:S}},render(){return getSlot("binder",this.$slots)}}),Binder_default=Binder,Target_default=defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?withDirectives(getFirstVNode("follower",this.$slots),[[t]]):getFirstVNode("follower",this.$slots)}}),warnedMessages2=new Set;function warn4(e,t){console.error(`[vdirs/${e}]: ${t}`)}var ZIndexManager=class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:r}=this;if(t!==void 0){e.style.zIndex=`${t}`,r.delete(e);return}const{nextZIndex:o}=this;r.has(e)&&r.get(e)+1===this.nextZIndex||(e.style.zIndex=`${o}`,r.set(e,o),this.nextZIndex=o+1,this.squashState())}unregister(e,t){const{elementZIndex:r}=this;r.has(e)?r.delete(e):t===void 0&&warn4("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((t,r)=>t[1]-r[1]),this.nextZIndex=2e3,e.forEach(t=>{const r=t[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}},z_index_manager_default=new ZIndexManager,ctx="@@ziContext",zindexable={mounted(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r;e[ctx]={enabled:!!n,initialized:!1},n&&(z_index_manager_default.ensureZIndex(e,o),e[ctx].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r,i=e[ctx].enabled;n&&!i&&(z_index_manager_default.ensureZIndex(e,o),e[ctx].initialized=!0),e[ctx].enabled=!!n},unmounted(e,t){if(!e[ctx].initialized)return;const{value:r={}}=t,{zIndex:o}=r;z_index_manager_default.unregister(e,o)}},zindexable_default=zindexable,ssrContextKey2=Symbol("@css-render/vue3-ssr");function createStyleString(e,t){return`<style cssr-id="${e}">
${t}
</style>`}function ssrAdapter(e,t){const r=inject(ssrContextKey2,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(createStyleString(e,t)))}function useSsrAdapter(){const e=inject(ssrContextKey2,null);if(e!==null)return{adapter:ssrAdapter,context:e}}function warn5(e,t){console.error(`[vueuc/${e}]: ${t}`)}var{c:c3}=CssRender(),cssrAnchorMetaName="vueuc-style";function lowBit(e){return e&-e}var FinweckTree=class{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;o<e+1;++o)r[o]=0;this.ft=r}add(e,t){if(t===0)return;const{l:r,ft:o}=this;for(e+=1;e<=r;)o[e]+=t,e+=lowBit(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===0)return 0;const{ft:t,min:r,l:o}=this;if(e===void 0&&(e=o),e>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let n=e*r;for(;e>0;)n+=t[e],e-=lowBit(e);return n}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),n=this.sum(o);if(n>e){r=o;continue}else if(n<e){if(t===o)return this.sum(t+1)<=e?t+1:o;t=o}else return o}return t}},src_default=defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:useFalseUntilTruthy(toRef(e,"show")),mergedTo:computed2(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?getSlot("lazy-teleport",this.$slots):h(Teleport,{disabled:this.disabled,to:this.mergedTo},getSlot("lazy-teleport",this.$slots)):null}}),oppositionPositions={top:"bottom",bottom:"top",left:"right",right:"left"},oppositeAligns={start:"end",center:"center",end:"start"},propToCompare={top:"height",bottom:"height",left:"width",right:"width"},transformOrigins={"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"},overlapTransformOrigin={"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"},oppositeAlignCssPositionProps={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},keepOffsetDirection={top:!0,bottom:!1,left:!0,right:!1},cssPositionToOppositeAlign={top:"end",bottom:"start",left:"end",right:"start"};function getPlacementAndOffsetOfFollower(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",d={top:0,left:0};const u=(g,m,S)=>{let y=0,C=0;const R=r[g]-t[m]-t[g];return R>0&&o&&(S?C=keepOffsetDirection[m]?R:-R:y=keepOffsetDirection[m]?R:-R),{left:y,top:C}},f=a==="left"||a==="right";if(s!=="center"){const g=oppositeAlignCssPositionProps[e],m=oppositionPositions[g],S=propToCompare[g];if(r[S]>t[S]){if(t[g]+t[S]<r[S]){const y=(r[S]-t[S])/2;t[g]<y||t[m]<y?t[g]<t[m]?(s=oppositeAligns[l],d=u(S,m,f)):d=u(S,g,f):s="center"}}else r[S]<t[S]&&t[m]<0&&t[g]>t[m]&&(s=oppositeAligns[l])}else{const g=a==="bottom"||a==="top"?"left":"top",m=oppositionPositions[g],S=propToCompare[g],y=(r[S]-t[S])/2;(t[g]<y||t[m]<y)&&(t[g]>t[m]?(s=cssPositionToOppositeAlign[g],d=u(S,g,f)):(s=cssPositionToOppositeAlign[m],d=u(S,m,f)))}let v=a;return t[a]<r[propToCompare[a]]&&t[a]<t[oppositionPositions[a]]&&(v=oppositionPositions[a]),{placement:s!=="center"?`${v}-${s}`:v,left:d.left,top:d.top}}function getProperTransformOrigin(e,t){return t?overlapTransformOrigin[e]:transformOrigins[e]}function getOffset(e,t,r,o,n,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height+o)}px`,left:`${Math.round(r.left-t.left+n)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height+o)}px`,left:`${Math.round(r.left-t.left+r.width+n)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top+o)}px`,left:`${Math.round(r.left-t.left+n)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top+o)}px`,left:`${Math.round(r.left-t.left+r.width+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top+o)}px`,left:`${Math.round(r.left-t.left+r.width+n)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height+o)}px`,left:`${Math.round(r.left-t.left+r.width+n)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top+o)}px`,left:`${Math.round(r.left-t.left+n)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height+o)}px`,left:`${Math.round(r.left-t.left+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top+o)}px`,left:`${Math.round(r.left-t.left+r.width/2+n)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2+o)}px`,left:`${Math.round(r.left-t.left+r.width+n)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2+o)}px`,left:`${Math.round(r.left-t.left+n)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height+o)}px`,left:`${Math.round(r.left-t.left+r.width/2+n)}px`,transform:"translateX(-50%)"}}}var style=c3([c3(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),c3(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[c3("> *",{pointerEvents:"all"})])]),Follower_default=defineComponent({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){const t=inject("VBinder"),r=use_memo_default(()=>e.enabled!==void 0?e.enabled:e.show),o=ref(null),n=ref(null),i=()=>{const{syncTrigger:v}=e;v.includes("scroll")&&t.addScrollListener(s),v.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};onMounted(()=>{r.value&&(s(),i())});const l=useSsrAdapter();style.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:l}),onBeforeUnmount(()=>{a()}),onFontsReady(()=>{r.value&&s()});const s=()=>{if(!r.value)return;const v=o.value;if(v===null)return;const g=t.targetRef,{x:m,y:S,overlap:y}=e,C=m!==void 0&&S!==void 0?getPointRect(m,S):getRect(g);v.style.setProperty("--v-target-width",`${Math.round(C.width)}px`),v.style.setProperty("--v-target-height",`${Math.round(C.height)}px`);const{width:R,minWidth:H,placement:T,internalShift:w,flip:$}=e;v.setAttribute("v-placement",T),y?v.setAttribute("v-overlap",""):v.removeAttribute("v-overlap");const{style:x}=v;R==="target"?x.width=`${C.width}px`:R!==void 0?x.width=R:x.width="",H==="target"?x.minWidth=`${C.width}px`:H!==void 0?x.minWidth=H:x.minWidth="";const P=getRect(v),I=getRect(n.value),{left:z,top:F,placement:M}=getPlacementAndOffsetOfFollower(T,C,P,w,$,y),ne=getProperTransformOrigin(M,y),{left:Q,top:ee,transform:Z}=getOffset(M,I,C,F,z,y);v.setAttribute("v-placement",M),v.style.setProperty("--v-offset-left",`${Math.round(z)}px`),v.style.setProperty("--v-offset-top",`${Math.round(F)}px`),v.style.transform=`translateX(${Q}) translateY(${ee}) ${Z}`,v.style.transformOrigin=ne};watch(r,v=>{v?(i(),d()):a()});const d=()=>{nextTick().then(s).catch(v=>console.error(v))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(v=>{watch(toRef(e,v),s)}),["teleportDisabled"].forEach(v=>{watch(toRef(e,v),d)}),watch(toRef(e,"syncTrigger"),v=>{v.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),v.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const u=isMounted(),f=use_memo_default(()=>{const{to:v}=e;if(v!==void 0)return v;!u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:f,syncPosition:s}},render(){return h(src_default,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?withDirectives(r,[[zindexable_default,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}}),resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(e){return e.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(e){return e.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:msg}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=msg),window.dispatchEvent(e)},ResizeObserverBoxOptions;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(e){return Object.freeze(e)},ResizeObserverSize=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,freeze(this)}return e}(),DOMRectReadOnly=function(){function e(t,r,o,n){return this.x=t,this.y=r,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,o=t.y,n=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,d=t.height;return{x:r,y:o,top:n,right:i,bottom:a,left:l,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),isSVG=function(e){return e instanceof SVGElement&&"getBBox"in e},isHidden=function(e){if(isSVG(e)){var t=e.getBBox(),r=t.width,o=t.height;return!r&&!o}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},isElement=function(e){var t,r;if(e instanceof Element)return!0;var o=(r=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(o&&e instanceof o.Element)},isReplacedElement=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},global2=typeof window!="undefined"?window:{},cache=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global2.navigator&&global2.navigator.userAgent),parseDimension=function(e){return parseFloat(e||"0")},size2=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ResizeObserverSize((r?t:e)||0,(r?e:t)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size2(),borderBoxSize:size2(),contentBoxSize:size2(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(e,t){if(t===void 0&&(t=!1),cache.has(e)&&!t)return cache.get(e);if(isHidden(e))return cache.set(e,zeroBoxes),zeroBoxes;var r=getComputedStyle(e),o=isSVG(e)&&e.ownerSVGElement&&e.getBBox(),n=!IE&&r.boxSizing==="border-box",i=verticalRegexp.test(r.writingMode||""),a=!o&&scrollRegexp.test(r.overflowY||""),l=!o&&scrollRegexp.test(r.overflowX||""),s=o?0:parseDimension(r.paddingTop),d=o?0:parseDimension(r.paddingRight),u=o?0:parseDimension(r.paddingBottom),f=o?0:parseDimension(r.paddingLeft),v=o?0:parseDimension(r.borderTopWidth),g=o?0:parseDimension(r.borderRightWidth),m=o?0:parseDimension(r.borderBottomWidth),S=o?0:parseDimension(r.borderLeftWidth),y=f+d,C=s+u,R=S+g,H=v+m,T=l?e.offsetHeight-H-e.clientHeight:0,w=a?e.offsetWidth-R-e.clientWidth:0,$=n?y+R:0,x=n?C+H:0,P=o?o.width:parseDimension(r.width)-$-w,I=o?o.height:parseDimension(r.height)-x-T,z=P+y+w+R,F=I+C+T+H,M=freeze({devicePixelContentBoxSize:size2(Math.round(P*devicePixelRatio),Math.round(I*devicePixelRatio),i),borderBoxSize:size2(z,F,i),contentBoxSize:size2(P,I,i),contentRect:new DOMRectReadOnly(f,s,P,I)});return cache.set(e,M),M},calculateBoxSize=function(e,t,r){var o=calculateBoxSizes(e,r),n=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return a;case ResizeObserverBoxOptions.BORDER_BOX:return n;default:return i}},ResizeObserverEntry=function(){function e(t){var r=calculateBoxSizes(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=freeze([r.borderBoxSize]),this.contentBoxSize=freeze([r.contentBoxSize]),this.devicePixelContentBoxSize=freeze([r.devicePixelContentBoxSize])}return e}(),calculateDepthForNode=function(e){if(isHidden(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},broadcastActiveObservations=function(){var e=1/0,t=[];resizeObservers.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(d){var u=new ResizeObserverEntry(d.target),f=calculateDepthForNode(d.target);l.push(u),d.lastReportedSize=calculateBoxSize(d.target,d.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,o=t;r<o.length;r++){var n=o[r];n()}return e},gatherActiveObservationsAtDepth=function(e){resizeObservers.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(calculateDepthForNode(n.target)>e?r.activeTargets.push(n):r.skippedTargets.push(n))})})},process2=function(){var e=0;for(gatherActiveObservationsAtDepth(e);hasActiveObservations();)e=broadcastActiveObservations(),gatherActiveObservationsAtDepth(e);return hasSkippedObservations()&&deliverResizeLoopError(),e>0},trigger2,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(e){return e()})},queueMicroTask=function(e){if(!trigger2){var t=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return notify()}).observe(r,o),trigger2=function(){r.textContent=""+(t?t--:t++)}}callbacks.push(e),trigger2()},queueResizeObserver=function(e){queueMicroTask(function(){requestAnimationFrame(e)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time=function(e){return e===void 0&&(e=0),Date.now()+e},scheduled=!1,Scheduler=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=CATCH_PERIOD),!scheduled){scheduled=!0;var o=time(t);queueResizeObserver(function(){var n=!1;try{n=process2()}finally{if(scheduled=!1,t=o-time(),!isWatching())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,observerConfig)};document.body?r():global2.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(r){return global2.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(r){return global2.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),scheduler=new Scheduler,updateCount=function(e){!watching&&e>0&&scheduler.start(),watching+=e,!watching&&scheduler.stop()},skipNotifyOnElement=function(e){return!isSVG(e)&&!isReplacedElement(e)&&getComputedStyle(e).display==="inline"},ResizeObservation=function(){function e(t,r){this.target=t,this.observedBox=r||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ResizeObserverDetail=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),observerMap=new WeakMap,getObservationIndex=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},ResizeObserverController=function(){function e(){}return e.connect=function(t,r){var o=new ResizeObserverDetail(t,r);observerMap.set(t,o)},e.observe=function(t,r,o){var n=observerMap.get(t),i=n.observationTargets.length===0;getObservationIndex(n.observationTargets,r)<0&&(i&&resizeObservers.push(n),n.observationTargets.push(new ResizeObservation(r,o&&o.box)),updateCount(1),scheduler.schedule())},e.unobserve=function(t,r){var o=observerMap.get(t),n=getObservationIndex(o.observationTargets,r),i=o.observationTargets.length===1;n>=0&&(i&&resizeObservers.splice(resizeObservers.indexOf(o),1),o.observationTargets.splice(n,1),updateCount(-1))},e.disconnect=function(t){var r=this,o=observerMap.get(t);o.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),ResizeObserver=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,t)},e.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),ResizeObserverDelegate=class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new ResizeObserver(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(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))}},delegate_default=new ResizeObserverDelegate,VResizeObserver_default=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){return{registered:!1,handleResize(t){const{onResize:r}=e;r!==void 0&&r(t)}}},mounted(){const e=this.$el;if(e===void 0){warn5("resize-observer","$el does not exist.");return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==""){warn5("resize-observer","$el can not be observed (it may be a text node).");return}e.nextElementSibling!==null&&(delegate_default.registerHandler(e.nextElementSibling,this.handleResize),this.registered=!0)},beforeUnmount(){this.registered&&delegate_default.unregisterHandler(this.$el.nextElementSibling)},render(){return renderSlot(this.$slots,"default")}}),styles=c3(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[c3("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[c3("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),VirtualList_default=defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},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){const t=useSsrAdapter();styles.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:t}),onMounted(()=>{const{defaultScrollIndex:w,defaultScrollKey:$}=e;w!=null?f({index:w}):$!=null&&f({key:$})}),onActivated(()=>{f({top:s.value})});const r=computed2(()=>{const w=new Map,{keyField:$}=e;return e.items.forEach((x,P)=>{w.set(x[$],P)}),w}),o=ref(null),n=ref(void 0),i=new Map,a=computed2(()=>{const{items:w,itemSize:$,keyField:x}=e,P=new FinweckTree(w.length,$);return w.forEach((I,z)=>{const F=I[x],M=i.get(F);M!==void 0&&P.add(z,M)}),P}),l=ref(0),s=ref(0),d=use_memo_default(()=>Math.max(a.value.getBound(s.value-depx(e.paddingTop))-1,0)),u=computed2(()=>{const{value:w}=n;if(w===void 0)return[];const{items:$,itemSize:x}=e,P=d.value,I=Math.min(P+Math.ceil(w/x+1),$.length-1),z=[];for(let F=P;F<=I;++F)z.push($[F]);return z}),f=w=>{const{left:$,top:x,index:P,key:I,position:z,behavior:F,debounce:M=!0}=w;if($!==void 0||x!==void 0)g($,x,F);else if(P!==void 0)v(P,F,M);else if(I!==void 0){const ne=r.value.get(I);ne!==void 0&&v(ne,F,M)}else z==="bottom"?g(0,Number.MAX_SAFE_INTEGER,F):z==="top"&&g(0,0,F)};function v(w,$,x){const{value:P}=a,I=P.sum(w)+depx(e.paddingTop);if(!x)o.value.scrollTo({left:0,top:I,behavior:$});else{const{scrollTop:z,offsetHeight:F}=o.value;if(I>z){const M=P.get(w);I+M<=z+F||o.value.scrollTo({left:0,top:I+M-F,behavior:$})}else o.value.scrollTo({left:0,top:I,behavior:$})}C=w}function g(w,$,x){o.value.scrollTo({left:w,top:$,behavior:x})}function m(w,$){var x,P,I,z;if(e.ignoreItemResize||T($.target))return;const{value:F}=a,M=r.value.get(w),ne=F.get(M),Q=(I=(P=(x=$.borderBoxSize)===null||x===void 0?void 0:x[0])===null||P===void 0?void 0:P.blockSize)!==null&&I!==void 0?I:$.contentRect.height;if(Q===ne)return;Q-e.itemSize===0?i.delete(w):i.set(w,Q-e.itemSize);const Z=Q-ne;Z!==0&&(R!==void 0&&M<=R&&((z=o.value)===null||z===void 0||z.scrollBy(0,Z)),F.add(M,Z),l.value++)}function S(w){beforeNextFrameOnce(H);const{onScroll:$}=e;$!==void 0&&$(w)}function y(w){if(T(w.target)||w.contentRect.height===n.value)return;n.value=w.contentRect.height;const{onResize:$}=e;$!==void 0&&$(w)}let C,R;function H(){const{value:w}=o;w!=null&&(R=C!=null?C:d.value,C=void 0,s.value=o.value.scrollTop)}function T(w){let $=w;for(;$!==null;){if($.style.display==="none")return!0;$=$.parentElement}return!1}return{listHeight:n,listStyle:{overflow:"auto"},keyToIndex:r,itemsStyle:computed2(()=>{const{itemResizable:w}=e,$=pxfy(a.value.sum());return l.value,[e.itemsStyle,{boxSizing:"content-box",height:w?"":$,minHeight:w?$:"",paddingTop:pxfy(e.paddingTop),paddingBottom:pxfy(e.paddingBottom)}]}),visibleItemsStyle:computed2(()=>(l.value,{transform:`translateY(${pxfy(a.value.sum(d.value))})`})),viewportItems:u,listElRef:o,itemsElRef:ref(null),scrollTo:f,handleListResize:y,handleListScroll:S,handleItemResize:m}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:o}=this;return h(VResizeObserver_default,{onResize:this.handleListResize},{default:()=>{var n,i;return h("div",mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.onWheel,ref:"listElRef"}),[this.items.length!==0?h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=r.get(l),d=this.$slots.default({item:a,index:s})[0];return e?h(VResizeObserver_default,{key:l,onResize:u=>this.handleItemResize(l,u)},{default:()=>d}):(d.key=l,d)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),formItemInjectionKey=createInjectionKey("n-form-item");function useFormItem(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:o}={}){const n=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const i=computed2(r?()=>r(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:d}=n;if(d.value!==void 0)return d.value}return t}),a=computed2(o?()=>o(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),l=computed2(()=>{const{status:s}=e;return s||(n==null?void 0:n.mergedValidationStatus.value)});return onBeforeUnmount(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal_default||freeSelf||Function("return this")(),root_default=root,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty2=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty2.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var o=!0}catch(i){}var n=nativeObjectToString.call(e);return o&&(t?e[symToStringTag]=r:delete e[symToStringTag]),n}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString2(e){return nativeObjectToString2.call(e)}var objectToString_default=objectToString2,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(e)?getRawTag_default(e):objectToString_default(e)}var baseGetTag_default=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol2(e){return typeof e=="symbol"||isObjectLike_default(e)&&baseGetTag_default(e)==symbolTag}var isSymbol_default=isSymbol2;function arrayMap(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n}var arrayMap_default=arrayMap,isArray2=Array.isArray,isArray_default=isArray2,INFINITY=1/0,symbolProto=Symbol_default?Symbol_default.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if(typeof e=="string")return e;if(isArray_default(e))return arrayMap_default(e,baseToString)+"";if(isSymbol_default(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return t=="0"&&1/e==-INFINITY?"-0":t}var baseToString_default=baseToString;function isObject2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var isObject_default=isObject2;function identity(e){return e}var identity_default=identity,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction2(e){if(!isObject_default(e))return!1;var t=baseGetTag_default(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}var isFunction_default=isFunction2,coreJsData=root_default["__core-js_shared__"],coreJsData_default=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var isMasked_default=isMasked,funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(e){if(e!=null){try{return funcToString.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var toSource_default=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty3=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty3).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_default(e)||isMasked_default(e))return!1;var t=isFunction_default(e)?reIsNative:reIsHostCtor;return t.test(toSource_default(e))}var baseIsNative_default=baseIsNative;function getValue(e,t){return e==null?void 0:e[t]}var getValue_default=getValue;function getNative(e,t){var r=getValue_default(e,t);return baseIsNative_default(r)?r:void 0}var getNative_default=getNative,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject_default(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),baseCreate_default=baseCreate;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var apply_default=apply;function copyArray(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var copyArray_default=copyArray,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(e){var t=0,r=0;return function(){var o=nativeNow(),n=HOT_SPAN-(o-r);if(r=o,n>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var shortOut_default=shortOut;function constant(e){return function(){return e}}var constant_default=constant,defineProperty=function(){try{var e=getNative_default(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty_default=defineProperty,baseSetToString=defineProperty_default?function(e,t){return defineProperty_default(e,"toString",{configurable:!0,enumerable:!1,value:constant_default(t),writable:!0})}:identity_default,baseSetToString_default=baseSetToString,setToString=shortOut_default(baseSetToString_default),setToString_default=setToString,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t=t==null?MAX_SAFE_INTEGER:t,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var isIndex_default=isIndex;function baseAssignValue(e,t,r){t=="__proto__"&&defineProperty_default?defineProperty_default(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var baseAssignValue_default=baseAssignValue;function eq(e,t){return e===t||e!==e&&t!==t}var eq_default=eq,objectProto4=Object.prototype,hasOwnProperty4=objectProto4.hasOwnProperty;function assignValue(e,t,r){var o=e[t];(!(hasOwnProperty4.call(e,t)&&eq_default(o,r))||r===void 0&&!(t in e))&&baseAssignValue_default(e,t,r)}var assignValue_default=assignValue;function copyObject(e,t,r,o){var n=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=o?o(r[l],e[l],l,r,e):void 0;s===void 0&&(s=e[l]),n?baseAssignValue_default(r,l,s):assignValue_default(r,l,s)}return r}var copyObject_default=copyObject,nativeMax=Math.max;function overRest(e,t,r){return t=nativeMax(t===void 0?e.length-1:t,0),function(){for(var o=arguments,n=-1,i=nativeMax(o.length-t,0),a=Array(i);++n<i;)a[n]=o[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=o[n];return l[t]=r(a),apply_default(e,this,l)}}var overRest_default=overRest;function baseRest(e,t){return setToString_default(overRest_default(e,t,identity_default),e+"")}var baseRest_default=baseRest,MAX_SAFE_INTEGER2=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER2}var isLength_default=isLength;function isArrayLike(e){return e!=null&&isLength_default(e.length)&&!isFunction_default(e)}var isArrayLike_default=isArrayLike;function isIterateeCall(e,t,r){if(!isObject_default(r))return!1;var o=typeof t;return(o=="number"?isArrayLike_default(r)&&isIndex_default(t,r.length):o=="string"&&t in r)?eq_default(r[t],e):!1}var isIterateeCall_default=isIterateeCall;function createAssigner(e){return baseRest_default(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&isIterateeCall_default(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o<n;){var l=r[o];l&&e(t,l,o,i)}return t})}var createAssigner_default=createAssigner,objectProto5=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto5;return e===r}var isPrototype_default=isPrototype;function baseTimes(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var baseTimes_default=baseTimes,argsTag="[object Arguments]";function baseIsArguments(e){return isObjectLike_default(e)&&baseGetTag_default(e)==argsTag}var baseIsArguments_default=baseIsArguments,objectProto6=Object.prototype,hasOwnProperty5=objectProto6.hasOwnProperty,propertyIsEnumerable=objectProto6.propertyIsEnumerable,isArguments=baseIsArguments_default(function(){return arguments}())?baseIsArguments_default:function(e){return isObjectLike_default(e)&&hasOwnProperty5.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_default=isArguments;function stubFalse(){return!1}var stubFalse_default=stubFalse,freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer2=moduleExports?root_default.Buffer:void 0,nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse_default,isBuffer_default=isBuffer,argsTag2="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag2="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag2]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag2]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(e){return isObjectLike_default(e)&&isLength_default(e.length)&&!!typedArrayTags[baseGetTag_default(e)]}var baseIsTypedArray_default=baseIsTypedArray;function baseUnary(e){return function(t){return e(t)}}var baseUnary_default=baseUnary,freeExports2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule2=freeExports2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports2=freeModule2&&freeModule2.exports===freeExports2,freeProcess=moduleExports2&&freeGlobal_default.process,nodeUtil=function(){try{var e=freeModule2&&freeModule2.require&&freeModule2.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(t){}}(),nodeUtil_default=nodeUtil,nodeIsTypedArray=nodeUtil_default&&nodeUtil_default.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary_default(nodeIsTypedArray):baseIsTypedArray_default,isTypedArray_default=isTypedArray,objectProto7=Object.prototype,hasOwnProperty6=objectProto7.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray_default(e),o=!r&&isArguments_default(e),n=!r&&!o&&isBuffer_default(e),i=!r&&!o&&!n&&isTypedArray_default(e),a=r||o||n||i,l=a?baseTimes_default(e.length,String):[],s=l.length;for(var d in e)(t||hasOwnProperty6.call(e,d))&&!(a&&(d=="length"||n&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex_default(d,s)))&&l.push(d);return l}var arrayLikeKeys_default=arrayLikeKeys;function overArg(e,t){return function(r){return e(t(r))}}var overArg_default=overArg;function nativeKeysIn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var nativeKeysIn_default=nativeKeysIn,objectProto8=Object.prototype,hasOwnProperty7=objectProto8.hasOwnProperty;function baseKeysIn(e){if(!isObject_default(e))return nativeKeysIn_default(e);var t=isPrototype_default(e),r=[];for(var o in e)o=="constructor"&&(t||!hasOwnProperty7.call(e,o))||r.push(o);return r}var baseKeysIn_default=baseKeysIn;function keysIn(e){return isArrayLike_default(e)?arrayLikeKeys_default(e,!0):baseKeysIn_default(e)}var keysIn_default=keysIn,nativeCreate=getNative_default(Object,"create"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0}var hashClear_default=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hashDelete_default=hashDelete,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto9=Object.prototype,hasOwnProperty8=objectProto9.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate_default){var r=t[e];return r===HASH_UNDEFINED?void 0:r}return hasOwnProperty8.call(t,e)?t[e]:void 0}var hashGet_default=hashGet,objectProto10=Object.prototype,hasOwnProperty9=objectProto10.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate_default?t[e]!==void 0:hasOwnProperty9.call(t,e)}var hashHas_default=hashHas,HASH_UNDEFINED2="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate_default&&t===void 0?HASH_UNDEFINED2:t,this}var hashSet_default=hashSet;function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Hash.prototype.clear=hashClear_default,Hash.prototype.delete=hashDelete_default,Hash.prototype.get=hashGet_default,Hash.prototype.has=hashHas_default,Hash.prototype.set=hashSet_default;var Hash_default=Hash;function listCacheClear(){this.__data__=[],this.size=0}var listCacheClear_default=listCacheClear;function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq_default(e[r][0],t))return r;return-1}var assocIndexOf_default=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf_default(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():splice.call(t,r,1),--this.size,!0}var listCacheDelete_default=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=assocIndexOf_default(t,e);return r<0?void 0:t[r][1]}var listCacheGet_default=listCacheGet;function listCacheHas(e){return assocIndexOf_default(this.__data__,e)>-1}var listCacheHas_default=listCacheHas;function listCacheSet(e,t){var r=this.__data__,o=assocIndexOf_default(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var listCacheSet_default=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ListCache.prototype.clear=listCacheClear_default,ListCache.prototype.delete=listCacheDelete_default,ListCache.prototype.get=listCacheGet_default,ListCache.prototype.has=listCacheHas_default,ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache,Map2=getNative_default(root_default,"Map"),Map_default=Map2;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default}}var mapCacheClear_default=mapCacheClear;function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var isKeyable_default=isKeyable;function getMapData(e,t){var r=e.__data__;return isKeyable_default(t)?r[typeof t=="string"?"string":"hash"]:r.map}var getMapData_default=getMapData;function mapCacheDelete(e){var t=getMapData_default(this,e).delete(e);return this.size-=t?1:0,t}var mapCacheDelete_default=mapCacheDelete;function mapCacheGet(e){return getMapData_default(this,e).get(e)}var mapCacheGet_default=mapCacheGet;function mapCacheHas(e){return getMapData_default(this,e).has(e)}var mapCacheHas_default=mapCacheHas;function mapCacheSet(e,t){var r=getMapData_default(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var mapCacheSet_default=mapCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}MapCache.prototype.clear=mapCacheClear_default,MapCache.prototype.delete=mapCacheDelete_default,MapCache.prototype.get=mapCacheGet_default,MapCache.prototype.has=mapCacheHas_default,MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache;function toString(e){return e==null?"":baseToString_default(e)}var toString_default=toString,getPrototype=overArg_default(Object.getPrototypeOf,Object),getPrototype_default=getPrototype,objectTag2="[object Object]",funcProto3=Function.prototype,objectProto11=Object.prototype,funcToString3=funcProto3.toString,hasOwnProperty10=objectProto11.hasOwnProperty,objectCtorString=funcToString3.call(Object);function isPlainObject2(e){if(!isObjectLike_default(e)||baseGetTag_default(e)!=objectTag2)return!1;var t=getPrototype_default(e);if(t===null)return!0;var r=hasOwnProperty10.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&funcToString3.call(r)==objectCtorString}var isPlainObject_default=isPlainObject2;function baseSlice(e,t,r){var o=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o<n;)i[o]=e[o+t];return i}var baseSlice_default=baseSlice;function castSlice(e,t,r){var o=e.length;return r=r===void 0?o:r,!t&&r>=o?e:baseSlice_default(e,t,r)}var castSlice_default=castSlice,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsZWJ="\\u200d",reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]");function hasUnicode(e){return reHasUnicode.test(e)}var hasUnicode_default=hasUnicode;function asciiToArray(e){return e.split("")}var asciiToArray_default=asciiToArray,rsAstralRange2="\\ud800-\\udfff",rsComboMarksRange2="\\u0300-\\u036f",reComboHalfMarksRange2="\\ufe20-\\ufe2f",rsComboSymbolsRange2="\\u20d0-\\u20ff",rsComboRange2=rsComboMarksRange2+reComboHalfMarksRange2+rsComboSymbolsRange2,rsVarRange2="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange2+"]",rsCombo="["+rsComboRange2+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange2+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ2="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange2+"]?",rsOptJoin="(?:"+rsZWJ2+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray(e){return e.match(reUnicode)||[]}var unicodeToArray_default=unicodeToArray;function stringToArray(e){return hasUnicode_default(e)?unicodeToArray_default(e):asciiToArray_default(e)}var stringToArray_default=stringToArray;function createCaseFirst(e){return function(t){t=toString_default(t);var r=hasUnicode_default(t)?stringToArray_default(t):void 0,o=r?r[0]:t.charAt(0),n=r?castSlice_default(r,1).join(""):t.slice(1);return o[e]()+n}}var createCaseFirst_default=createCaseFirst,upperFirst=createCaseFirst_default("toUpperCase"),upperFirst_default=upperFirst;function stackClear(){this.__data__=new ListCache_default,this.size=0}var stackClear_default=stackClear;function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var stackDelete_default=stackDelete;function stackGet(e){return this.__data__.get(e)}var stackGet_default=stackGet;function stackHas(e){return this.__data__.has(e)}var stackHas_default=stackHas,LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache_default){var o=r.__data__;if(!Map_default||o.length<LARGE_ARRAY_SIZE-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache_default(o)}return r.set(e,t),this.size=r.size,this}var stackSet_default=stackSet;function Stack(e){var t=this.__data__=new ListCache_default(e);this.size=t.size}Stack.prototype.clear=stackClear_default,Stack.prototype.delete=stackDelete_default,Stack.prototype.get=stackGet_default,Stack.prototype.has=stackHas_default,Stack.prototype.set=stackSet_default;var Stack_default=Stack,freeExports3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule3=freeExports3&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports3=freeModule3&&freeModule3.exports===freeExports3,Buffer3=moduleExports3?root_default.Buffer:void 0,allocUnsafe=Buffer3?Buffer3.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,o=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(o),o}var cloneBuffer_default=cloneBuffer,Uint8Array2=root_default.Uint8Array,Uint8Array_default=Uint8Array2;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array_default(t).set(new Uint8Array_default(e)),t}var cloneArrayBuffer_default=cloneArrayBuffer;function cloneTypedArray(e,t){var r=t?cloneArrayBuffer_default(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var cloneTypedArray_default=cloneTypedArray;function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype_default(e)?baseCreate_default(getPrototype_default(e)):{}}var initCloneObject_default=initCloneObject;function createBaseFor(e){return function(t,r,o){for(var n=-1,i=Object(t),a=o(t),l=a.length;l--;){var s=a[e?l:++n];if(r(i[s],s,i)===!1)break}return t}}var createBaseFor_default=createBaseFor,baseFor=createBaseFor_default(),baseFor_default=baseFor;function assignMergeValue(e,t,r){(r!==void 0&&!eq_default(e[t],r)||r===void 0&&!(t in e))&&baseAssignValue_default(e,t,r)}var assignMergeValue_default=assignMergeValue;function isArrayLikeObject(e){return isObjectLike_default(e)&&isArrayLike_default(e)}var isArrayLikeObject_default=isArrayLikeObject;function safeGet(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var safeGet_default=safeGet;function toPlainObject(e){return copyObject_default(e,keysIn_default(e))}var toPlainObject_default=toPlainObject;function baseMergeDeep(e,t,r,o,n,i,a){var l=safeGet_default(e,r),s=safeGet_default(t,r),d=a.get(s);if(d){assignMergeValue_default(e,r,d);return}var u=i?i(l,s,r+"",e,t,a):void 0,f=u===void 0;if(f){var v=isArray_default(s),g=!v&&isBuffer_default(s),m=!v&&!g&&isTypedArray_default(s);u=s,v||g||m?isArray_default(l)?u=l:isArrayLikeObject_default(l)?u=copyArray_default(l):g?(f=!1,u=cloneBuffer_default(s,!0)):m?(f=!1,u=cloneTypedArray_default(s,!0)):u=[]:isPlainObject_default(s)||isArguments_default(s)?(u=l,isArguments_default(l)?u=toPlainObject_default(l):(!isObject_default(l)||isFunction_default(l))&&(u=initCloneObject_default(s))):f=!1}f&&(a.set(s,u),n(u,s,o,i,a),a.delete(s)),assignMergeValue_default(e,r,u)}var baseMergeDeep_default=baseMergeDeep;function baseMerge(e,t,r,o,n){e!==t&&baseFor_default(t,function(i,a){if(n||(n=new Stack_default),isObject_default(i))baseMergeDeep_default(e,t,a,r,baseMerge,o,n);else{var l=o?o(safeGet_default(e,a),i,a+"",e,t,n):void 0;l===void 0&&(l=i),assignMergeValue_default(e,a,l)}},keysIn_default)}var baseMerge_default=baseMerge,merge=createAssigner_default(function(e,t,r){baseMerge_default(e,t,r)}),merge_default=merge,common_default={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",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize,fontFamily,lineHeight}=common_default,index_cssr_default=c2("body",`
margin: 0;
font-size: ${fontSize};
font-family: ${fontFamily};
line-height: ${lineHeight};
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`,[c2("input",`
font-family: inherit;
font-size: inherit;
`)]),configProviderInjectionKey=createInjectionKey("n-config-provider"),cssrAnchorMetaName2="naive-ui-style";function createTheme(e){return e}function useTheme(e,t,r,o,n,i){const a=useSsrAdapter();if(r){const d=()=>{const u=i==null?void 0:i.value;r.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:cssrAnchorMetaName2,ssr:a}),index_cssr_default.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName2,ssr:a})};a?d():onBeforeMount(d)}const l=inject(configProviderInjectionKey,null);return computed2(()=>{var d;const{theme:{common:u,self:f,peers:v={}}={},themeOverrides:g={},builtinThemeOverrides:m={}}=n,{common:S,peers:y}=g,{common:C=void 0,[e]:{common:R=void 0,self:H=void 0,peers:T={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:$={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:x,peers:P={}}=$,I=merge_default({},u||R||C||o.common,w,x,S),z=merge_default((d=f||H||o.self)===null||d===void 0?void 0:d(I),m,$,g);return{common:I,self:z,peers:merge_default({},o.peers,T,v),peerOverrides:merge_default({},P,y)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var use_theme_default=useTheme,defaultClsPrefix="n";function useConfig(e={},t={defaultBordered:!0}){const r=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:computed2(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:computed2(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed2(()=>r==null?void 0:r.mergedNamespaceRef.value)}}var enUS={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm"},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",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",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},Transfer:{sourceTitle:"Source",targetTitle:"Target"},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},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 (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)"}},enUS_default=enUS,import_en_US=__toModule(require_en_US()),dateEnUs={name:"en-US",locale:import_en_US.default},enUS_default2=dateEnUs;function useLocale(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=inject(configProviderInjectionKey,null)||{},o=computed2(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:enUS_default[e]});return{dateLocaleRef:computed2(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:enUS_default2}),localeRef:o}}function useStyle(e,t,r){if(!t){throwError("use-style","No style is specified.");return}const o=useSsrAdapter(),n=()=>{const i=r==null?void 0:r.value;t.mount({id:i===void 0?e:i+e,head:!0,anchorMetaName:cssrAnchorMetaName2,props:{bPrefix:i?`.${i}-`:void 0},ssr:o}),index_cssr_default.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName2,ssr:o})};o?n():onBeforeMount(n)}function useThemeClass(e,t,r,o){var n;r||throwError("useThemeClass","cssVarsRef is not passed");const i=(n=inject(configProviderInjectionKey,null))===null||n===void 0?void 0:n.mergedThemeHashRef,a=ref(""),l=useSsrAdapter();let s;const d=`__${e}`,u=()=>{let f=d;const v=t?t.value:void 0,g=i==null?void 0:i.value;g&&(f+="-"+g),v&&(f+="-"+v);const{themeOverrides:m,builtinThemeOverrides:S}=o;m&&(f+="-"+hash_browser_esm_default(JSON.stringify(m))),S&&(f+="-"+hash_browser_esm_default(JSON.stringify(S))),a.value=f,s=()=>{const y=r.value;let C="";for(const R in y)C+=`${R}: ${y[R]};`;c2(`.${f}`,C).mount({id:f,ssr:l}),s=void 0}};return watchEffect(()=>{u()}),{themeClass:a,onRender:()=>{s==null||s()}}}function replaceable(e,t){return defineComponent({name:upperFirst_default(e),setup(){var r;const o=(r=inject(configProviderInjectionKey,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var n;const i=(n=o==null?void 0:o.value)===null||n===void 0?void 0:n[e];return i?i():t}}})}var Eye_default=defineComponent({name:"Eye",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),EyeOff_default=defineComponent({name:"EyeOff",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("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"}),h("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"}),h("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"}),h("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"}))}}),Empty_default=defineComponent({name:"Empty",render(){return h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))}}),Switcher_default=defineComponent({name:"Switcher",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},h("path",{d:"M12 8l10 8l-10 8z"}))}}),ChevronDown_default=defineComponent({name:"ChevronDown",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),Clear_default=replaceable("clear",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),IconSwitchTransition_default=defineComponent({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=isMounted();return()=>h(Transition,{name:"icon-switch-transition",appear:r.value},t)}}),FadeInExpandTransition_default=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function o(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?TransitionGroup:Transition;return h(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:o,onAfterLeave:n},t)}}}),index_cssr_default2=cB("base-icon",`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
transform: translateZ(0);
`,[c2("svg",{height:"1em",width:"1em"})]),Icon_default=defineComponent({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){useStyle("-base-icon",index_cssr_default2,toRef(e,"clsPrefix"))},render(){return h("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)}}),{cubicBezierEaseInOut}=common_default;function icon_switch_cssr_default({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${cubicBezierEaseInOut} !important`}={}){return[c2("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),c2("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),c2("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}var index_cssr_default3=c2([c2("@keyframes loading-container-rotate",`
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
`),c2("@keyframes loading-layer-rotate",`
12.5% {
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
25% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
37.5% {
-webkit-transform: rotate(405deg);
transform: rotate(405deg);
}
50% {
-webkit-transform: rotate(540deg);
transform: rotate(540deg);
}
62.5% {
-webkit-transform: rotate(675deg);
transform: rotate(675deg);
}
75% {
-webkit-transform: rotate(810deg);
transform: rotate(810deg);
}
87.5% {
-webkit-transform: rotate(945deg);
transform: rotate(945deg);
}
100% {
-webkit-transform: rotate(1080deg);
transform: rotate(1080deg);
}
`),c2("@keyframes loading-left-spin",`
from {
-webkit-transform: rotate(265deg);
transform: rotate(265deg);
}
50% {
-webkit-transform: rotate(130deg);
transform: rotate(130deg);
}
to {
-webkit-transform: rotate(265deg);
transform: rotate(265deg);
}
`),c2("@keyframes loading-right-spin",`
from {
-webkit-transform: rotate(-265deg);
transform: rotate(-265deg);
}
50% {
-webkit-transform: rotate(-130deg);
transform: rotate(-130deg);
}
to {
-webkit-transform: rotate(-265deg);
transform: rotate(-265deg);
}
`),cB("base-loading",`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[cE("transition-wrapper",`
position: absolute;
width: 100%;
height: 100%;
`,[icon_switch_cssr_default()]),cE("container",`
display: inline-flex;
position: relative;
direction: ltr;
line-height: 0;
animation: loading-container-rotate 1568.2352941176ms linear infinite;
font-size: 0;
letter-spacing: 0;
white-space: nowrap;
opacity: 1;
width: 100%;
height: 100%;
`,[cE("svg",`
stroke: var(--n-text-color);
fill: transparent;
position: absolute;
height: 100%;
overflow: hidden;
`),cE("container-layer",`
position: absolute;
width: 100%;
height: 100%;
animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
`,[cE("container-layer-left",`
display: inline-flex;
position: relative;
width: 50%;
height: 100%;
overflow: hidden;
`,[cE("svg",`
animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
width: 200%;
`)]),cE("container-layer-patch",`
position: absolute;
top: 0;
left: 47.5%;
box-sizing: border-box;
width: 5%;
height: 100%;
overflow: hidden;
`,[cE("svg",`
left: -900%;
width: 2000%;
transform: rotate(180deg);
`)]),cE("container-layer-right",`
display: inline-flex;
position: relative;
width: 50%;
height: 100%;
overflow: hidden;
`,[cE("svg",`
animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
left: -100%;
width: 200%;
`)])])]),cE("placeholder",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[icon_switch_cssr_default({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),Loading_default=defineComponent({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){useStyle("-base-loading",index_cssr_default3,toRef(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return h("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},h(IconSwitchTransition_default,null,{default:()=>this.show?h("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},h("div",{class:`${e}-base-loading__container`},h("div",{class:`${e}-base-loading__container-layer`},h("div",{class:`${e}-base-loading__container-layer-left`},h("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),h("div",{class:`${e}-base-loading__container-layer-patch`},h("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),h("div",{class:`${e}-base-loading__container-layer-right`},h("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):h("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function toArray(e){return Array.isArray(e)?e:[e]}var TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(e,t){const r=t(e);e.children!==void 0&&r!==TRAVERSE_COMMAND.STOP&&e.children.forEach(o=>traverseWithCb(o,t))}function getNonLeafKeys(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(n)}return i(e),o}function isLeaf(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function defaultGetChildren(e){return e.children}function defaultGetKey(e){return e.key}function isIgnored(){return!1}function isShallowLoaded(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function isDisabled(e){return e.disabled===!0}function isExpilicitlyNotLoaded(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function isNodeInvalid(e,t){if(e.isLeaf===!0){const r=t(e);if(Array.isArray(r)&&r.length>0)return!0}return!1}function unwrapCheckedKeys(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function unwrapIndeterminateKeys(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function merge2(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function minus(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function isGroup(e){return(e==null?void 0:e.type)==="group"}function createIndexGetter(e){const t=new Map;return e.forEach((r,o)=>{t.set(r.key,o)}),r=>{var o;return(o=t.get(r))!==null&&o!==void 0?o:null}}var SubtreeNotLoadedError=class extends Error{constructor(){super();this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}};function getExtendedCheckedKeySetAfterCheck(e,t,r,o){return getExtendedCheckedKeySet(t.concat(e),r,o,!1)}function getAvailableAscendantNodeSet(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function getExtendedCheckedKeySetAfterUncheck(e,t,r,o){const n=getExtendedCheckedKeySet(t,r,o,!1),i=getExtendedCheckedKeySet(e,r,o,!0),a=getAvailableAscendantNodeSet(e,r),l=[];return n.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>n.delete(s)),n}function getCheckedKeys(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:d}=e;if(!a)return o!==void 0?{checkedKeys:merge2(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:minus(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;n!==void 0?f=getExtendedCheckedKeySetAfterUncheck(n,r,t,d):o!==void 0?f=getExtendedCheckedKeySetAfterCheck(o,r,t,d):f=getExtendedCheckedKeySet(r,t,d,!1);const v=s==="parent",g=s==="child"||l,m=f,S=new Set,y=Math.max.apply(null,Array.from(u.keys()));for(let C=y;C>=0;C-=1){const R=C===0,H=u.get(C);for(const T of H){if(T.isLeaf)continue;const{key:w,shallowLoaded:$}=T;if(g&&$&&T.children.forEach(z=>{!z.disabled&&!z.isLeaf&&z.shallowLoaded&&m.has(z.key)&&m.delete(z.key)}),T.disabled||!$)continue;let x=!0,P=!1,I=!0;for(const z of T.children){const F=z.key;if(!z.disabled){if(I&&(I=!1),m.has(F))P=!0;else if(S.has(F)){P=!0,x=!1;break}else if(x=!1,P)break}}x&&!I?(v&&T.children.forEach(z=>{!z.disabled&&m.has(z.key)&&m.delete(z.key)}),m.add(w)):P&&S.add(w),R&&g&&m.has(w)&&m.delete(w)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(S)}}function getExtendedCheckedKeySet(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const d=n.get(s);d!==void 0&&traverseWithCb(d,u=>{if(u.disabled)return TRAVERSE_COMMAND.STOP;const{key:f}=u;if(!a.has(f)&&(a.add(f),l.add(f),isExpilicitlyNotLoaded(u.rawNode,i))){if(o)return TRAVERSE_COMMAND.STOP;if(!r)throw new SubtreeNotLoadedError}})}),l}function getPath(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let a=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a==null?void 0:a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),r||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function getFirstAvailableNode(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function rawGetNext(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function move(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?rawGetPrev:rawGetNext,i={reverse:t==="prev"};let a=!1,l=null;function s(d){if(d!==null){if(d===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!d.disabled||o)&&!d.ignored&&!d.isGroup){l=d;return}if(d.isGroup){const u=getChild(d,i);u!==null?l=u:s(n(d,r))}else{const u=n(d,!1);if(u!==null)s(u);else{const f=rawGetParent(d);(f==null?void 0:f.isGroup)?s(n(f,r)):r&&s(n(d,!0))}}}}return s(e),l}function rawGetPrev(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function rawGetParent(e){return e.parent}function getChild(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,a=r?-1:n,l=r?-1:1;for(let s=i;s!==a;s+=l){const d=o[s];if(!d.disabled&&!d.ignored)if(d.isGroup){const u=getChild(d,t);if(u!==null)return u}else return d}}return null}var moveMethods={getChild(){return this.ignored?null:getChild(this)},getParent(){const{parent:e}=this;return(e==null?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return move(this,"next",e)},getPrev(e={}){return move(this,"prev",e)}};function flatten3(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||r===void 0||r.has(a.key))&&n(a.children)})}return n(e),o}function contains(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function createTreeNodes(e,t,r,o,n,i=null,a=0){const l=[];return e.forEach((s,d)=>{var u;isNodeInvalid(s,n)&&console.error("[treemate]: node",s,"is invalid");const f=Object.create(o);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const v=n(s);Array.isArray(v)&&(f.children=createTreeNodes(v,t,r,o,n,f,a+1))}l.push(f),t.set(f.key,f),r.has(a)||r.set(a,[]),(u=r.get(a))===null||u===void 0||u.push(f)}),l}function createTreeMate(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=isDisabled,getIgnored:a=isIgnored,getIsGroup:l=isGroup,getKey:s=defaultGetKey}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:defaultGetChildren,u=t.ignoreEmptyChildren?T=>{const w=d(T);return Array.isArray(w)?w.length?w:null:w}:d,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,u)},get shallowLoaded(){return isShallowLoaded(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(T){return contains(this,T)}},moveMethods),v=createTreeNodes(e,o,n,f,u);function g(T){if(T==null)return null;const w=o.get(T);return w&&!w.isGroup&&!w.ignored?w:null}function m(T){if(T==null)return null;const w=o.get(T);return w&&!w.ignored?w:null}function S(T,w){const $=m(T);return $?$.getPrev(w):null}function y(T,w){const $=m(T);return $?$.getNext(w):null}function C(T){const w=m(T);return w?w.getParent():null}function R(T){const w=m(T);return w?w.getChild():null}const H={treeNodes:v,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:u,getFlattenedNodes(T){return flatten3(v,T)},getNode:g,getPrev:S,getNext:y,getParent:C,getChild:R,getFirstAvailableNode(){return getFirstAvailableNode(v)},getPath(T,w={}){return getPath(T,w,H)},getCheckedKeys(T,w={}){const{cascade:$=!0,leafOnly:x=!1,checkStrategy:P="all",allowNotLoaded:I=!1}=w;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(T),indeterminateKeys:unwrapIndeterminateKeys(T),cascade:$,leafOnly:x,checkStrategy:P,allowNotLoaded:I},H)},check(T,w,$={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:I="all",allowNotLoaded:z=!1}=$;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(w),indeterminateKeys:unwrapIndeterminateKeys(w),keysToCheck:T==null?[]:toArray(T),cascade:x,leafOnly:P,checkStrategy:I,allowNotLoaded:z},H)},uncheck(T,w,$={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:I="all",allowNotLoaded:z=!1}=$;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(w),indeterminateKeys:unwrapIndeterminateKeys(w),keysToUncheck:T==null?[]:toArray(T),cascade:x,leafOnly:P,checkStrategy:I,allowNotLoaded:z},H)},getNonLeafKeys(T={}){return getNonLeafKeys(v,T)}};return H}var base={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",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)"},baseBackgroundRgb=rgba(base.neutralBase),baseInvertBackgroundRgb=rgba(base.neutralInvertBase),overlayPrefix="rgba("+baseInvertBackgroundRgb.slice(0,3).join(", ")+", ";function overlay(e){return overlayPrefix+String(e)+")"}function neutral(e){const t=Array.from(baseInvertBackgroundRgb);return t[3]=Number(e),composite(baseBackgroundRgb,t)}var derived=Object.assign(Object.assign({name:"common"},common_default),{baseColor:base.neutralBase,primaryColor:base.primaryDefault,primaryColorHover:base.primaryHover,primaryColorPressed:base.primaryActive,primaryColorSuppl:base.primarySuppl,infoColor:base.infoDefault,infoColorHover:base.infoHover,infoColorPressed:base.infoActive,infoColorSuppl:base.infoSuppl,successColor:base.successDefault,successColorHover:base.successHover,successColorPressed:base.successActive,successColorSuppl:base.successSuppl,warningColor:base.warningDefault,warningColorHover:base.warningHover,warningColorPressed:base.warningActive,warningColorSuppl:base.warningSuppl,errorColor:base.errorDefault,errorColorHover:base.errorHover,errorColorPressed:base.errorActive,errorColorSuppl:base.errorSuppl,textColorBase:base.neutralTextBase,textColor1:overlay(base.alpha1),textColor2:overlay(base.alpha2),textColor3:overlay(base.alpha3),textColorDisabled:overlay(base.alpha4),placeholderColor:overlay(base.alpha4),placeholderColorDisabled:overlay(base.alpha5),iconColor:overlay(base.alpha4),iconColorDisabled:overlay(base.alpha5),iconColorHover:overlay(Number(base.alpha4)*1.25),iconColorPressed:overlay(Number(base.alpha4)*.8),opacity1:base.alpha1,opacity2:base.alpha2,opacity3:base.alpha3,opacity4:base.alpha4,opacity5:base.alpha5,dividerColor:overlay(base.alphaDivider),borderColor:overlay(base.alphaBorder),closeColorHover:overlay(Number(base.alphaClose)*1.25),closeColor:overlay(Number(base.alphaClose)),closeColorPressed:overlay(Number(base.alphaClose)*.8),closeColorDisabled:overlay(base.alpha4),clearColor:overlay(base.alpha4),clearColorHover:scaleColor(overlay(base.alpha4),{alpha:1.25}),clearColorPressed:scaleColor(overlay(base.alpha4),{alpha:.8}),scrollbarColor:overlay(base.alphaScrollbar),scrollbarColorHover:overlay(base.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:overlay(base.alphaProgressRail),railColor:overlay(base.alphaRail),popoverColor:base.neutralPopover,tableColor:base.neutralCard,cardColor:base.neutralCard,modalColor:base.neutralModal,bodyColor:base.neutralBody,tagColor:neutral(base.alphaTag),avatarColor:overlay(base.alphaAvatar),invertedColor:base.neutralBase,inputColor:overlay(base.alphaInput),codeColor:overlay(base.alphaCode),tabColor:overlay(base.alphaTab),actionColor:overlay(base.alphaAction),tableHeaderColor:overlay(base.alphaAction),hoverColor:overlay(base.alphaPending),tableColorHover:overlay(base.alphaTablePending),tableColorStriped:overlay(base.alphaTableStriped),pressedColor:overlay(base.alphaPressed),opacityDisabled:base.alphaDisabled,inputColorDisabled:overlay(base.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .06)",buttonColor2Hover:"rgba(255, 255, 255, .09)",buttonColor2Pressed:"rgba(255, 255, 255, .05)",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)"}),dark_default=derived,base2={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.52",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"},baseBackgroundRgb2=rgba(base2.neutralBase),baseInvertBackgroundRgb2=rgba(base2.neutralInvertBase),overlayPrefix2="rgba("+baseInvertBackgroundRgb2.slice(0,3).join(", ")+", ";function overlay2(e){return overlayPrefix2+String(e)+")"}function neutral2(e){const t=Array.from(baseInvertBackgroundRgb2);return t[3]=Number(e),composite(baseBackgroundRgb2,t)}var derived2=Object.assign(Object.assign({name:"common"},common_default),{baseColor:base2.neutralBase,primaryColor:base2.primaryDefault,primaryColorHover:base2.primaryHover,primaryColorPressed:base2.primaryActive,primaryColorSuppl:base2.primarySuppl,infoColor:base2.infoDefault,infoColorHover:base2.infoHover,infoColorPressed:base2.infoActive,infoColorSuppl:base2.infoSuppl,successColor:base2.successDefault,successColorHover:base2.successHover,successColorPressed:base2.successActive,successColorSuppl:base2.successSuppl,warningColor:base2.warningDefault,warningColorHover:base2.warningHover,warningColorPressed:base2.warningActive,warningColorSuppl:base2.warningSuppl,errorColor:base2.errorDefault,errorColorHover:base2.errorHover,errorColorPressed:base2.errorActive,errorColorSuppl:base2.errorSuppl,textColorBase:base2.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:neutral2(base2.alpha4),placeholderColor:neutral2(base2.alpha4),placeholderColorDisabled:neutral2(base2.alpha5),iconColor:neutral2(base2.alpha4),iconColorHover:scaleColor(neutral2(base2.alpha4),{lightness:.75}),iconColorPressed:scaleColor(neutral2(base2.alpha4),{lightness:.9}),iconColorDisabled:neutral2(base2.alpha5),opacity1:base2.alpha1,opacity2:base2.alpha2,opacity3:base2.alpha3,opacity4:base2.alpha4,opacity5:base2.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeColor:neutral2(Number(base2.alphaClose)),closeColorHover:neutral2(Number(base2.alphaClose)*1.25),closeColorPressed:neutral2(Number(base2.alphaClose)*.8),closeColorDisabled:neutral2(base2.alpha4),clearColor:neutral2(base2.alpha4),clearColorHover:scaleColor(neutral2(base2.alpha4),{lightness:.75}),clearColorPressed:scaleColor(neutral2(base2.alpha4),{lightness:.9}),scrollbarColor:overlay2(base2.alphaScrollbar),scrollbarColorHover:overlay2(base2.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:neutral2(base2.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:base2.neutralPopover,tableColor:base2.neutralCard,cardColor:base2.neutralCard,modalColor:base2.neutralModal,bodyColor:base2.neutralBody,tagColor:"rgb(250, 250, 252)",avatarColor:neutral2(base2.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:neutral2(base2.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:base2.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)"}),light_default=derived2,common_default2={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},self2=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},common_default2),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:r,extraTextColor:o})},emptyLight={name:"Empty",common:light_default,self:self2},light_default2=emptyLight,emptyDark={name:"Empty",common:dark_default,self:self2},dark_default2=emptyDark,index_cssr_default4=cB("empty",`
display: flex;
flex-direction: column;
align-items: center;
font-size: var(--n-font-size);
`,[cE("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);
`,[c2("+",[cE("description",`
margin-top: 8px;
`)])]),cE("description",`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),cE("extra",`
text-align: center;
transition: color .3s var(--n-bezier);
margin-top: 12px;
color: var(--n-extra-text-color);
`)]),emptyProps=Object.assign(Object.assign({},use_theme_default.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Empty_default2=defineComponent({name:"Empty",props:emptyProps,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=useConfig(e),o=use_theme_default("Empty","-empty",index_cssr_default4,light_default2,e,t),{localeRef:n}=useLocale("Empty"),i=inject(configProviderInjectionKey,null),a=computed2(()=>{var u,f,v;return(u=e.description)!==null&&u!==void 0?u:(v=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||v===void 0?void 0:v.description}),l=computed2(()=>{var u,f;return((f=(u=i==null?void 0:i.mergedComponentPropsRef.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>h(Empty_default,null))}),s=computed2(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:f},self:{[createKey("iconSize",u)]:v,[createKey("fontSize",u)]:g,textColor:m,iconColor:S,extraTextColor:y}}=o.value;return{"--n-icon-size":v,"--n-font-size":g,"--n-bezier":f,"--n-text-color":m,"--n-icon-color":S,"--n-extra-text-color":y}}),d=r?useThemeClass("empty",computed2(()=>{let u="";const{size:f}=e;return u+=f[0],u}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:computed2(()=>a.value||n.value.description),cssVars:r?void 0:s,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),h("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?h("div",{class:`${t}-empty__icon`},e.icon?e.icon():h(Icon_default,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?h("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?h("div",{class:`${t}-empty__extra`},e.extra()):null)}}),self3=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},scrollbarLight={name:"Scrollbar",common:light_default,self:self3},light_default3=scrollbarLight,scrollbarDark={name:"Scrollbar",common:dark_default,self:self3},dark_default3=scrollbarDark,{cubicBezierEaseInOut:cubicBezierEaseInOut2}=common_default;function fade_in_cssr_default({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:o=cubicBezierEaseInOut2,leaveCubicBezier:n=cubicBezierEaseInOut2}={}){return[c2(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),c2(`&.${e}-transition-leave-active`,{transition:`all ${r} ${n}!important`}),c2(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),c2(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var index_cssr_default5=cB("scrollbar",`
overflow: hidden;
position: relative;
z-index: auto;
height: 100%;
width: 100%;
`,[c2(">",[cB("scrollbar-container",`
width: 100%;
overflow: scroll;
height: 100%;
max-height: inherit;
scrollbar-width: none;
`,[c2("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
width: 0;
height: 0;
display: none;
`),c2(">",[cB("scrollbar-content",`
box-sizing: border-box;
min-width: 100%;
`)])]),cB("scrollbar-rail",`
position: absolute;
pointer-events: none;
user-select: none;
`,[cM("horizontal",`
left: 2px;
right: 2px;
bottom: 4px;
height: var(--n-scrollbar-height);
`,[c2(">",[cE("scrollbar",`
height: var(--n-scrollbar-height);
border-radius: var(--n-scrollbar-border-radius);
right: 0;
`)])]),cM("vertical",`
right: 4px;
top: 2px;
bottom: 2px;
width: var(--n-scrollbar-width);
`,[c2(">",[cE("scrollbar",`
width: var(--n-scrollbar-width);
border-radius: var(--n-scrollbar-border-radius);
bottom: 0;
`)])]),cM("disabled",[c2(">",[cE("scrollbar",{pointerEvents:"none"})])]),c2(">",[cE("scrollbar",`
position: absolute;
cursor: pointer;
pointer-events: all;
background-color: var(--n-scrollbar-color);
transition: background-color .2s var(--n-scrollbar-bezier);
`,[fade_in_cssr_default(),c2("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),scrollbarProps=Object.assign(Object.assign({},use_theme_default.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function}),Scrollbar=defineComponent({name:"Scrollbar",props:scrollbarProps,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=useConfig(e),o=ref(null),n=ref(null),i=ref(null),a=ref(null),l=ref(null),s=ref(null),d=ref(null),u=ref(null),f=ref(null),v=ref(null),g=ref(null),m=ref(0),S=ref(0),y=ref(!1),C=ref(!1);let R=!1,H=!1,T,w,$=0,x=0,P=0,I=0;const z=useIsIos(),F=computed2(()=>{const{value:L}=u,{value:J}=s,{value:ae}=v;return L===null||J===null||ae===null?0:Math.min(L,ae*L/J+e.size*1.5)}),M=computed2(()=>`${F.value}px`),ne=computed2(()=>{const{value:L}=f,{value:J}=d,{value:ae}=g;return L===null||J===null||ae===null?0:ae*L/J+e.size*1.5}),Q=computed2(()=>`${ne.value}px`),ee=computed2(()=>{const{value:L}=u,{value:J}=m,{value:ae}=s,{value:be}=v;if(L===null||ae===null||be===null)return 0;{const Ce=ae-L;return Ce?J/Ce*(be-F.value):0}}),Z=computed2(()=>`${ee.value}px`),Y=computed2(()=>{const{value:L}=f,{value:J}=S,{value:ae}=d,{value:be}=g;if(L===null||ae===null||be===null)return 0;{const Ce=ae-L;return Ce?J/Ce*(be-ne.value):0}}),re=computed2(()=>`${Y.value}px`),de=computed2(()=>{const{value:L}=u,{value:J}=s;return L!==null&&J!==null&&J>L}),pe=computed2(()=>{const{value:L}=f,{value:J}=d;return L!==null&&J!==null&&J>L}),me=computed2(()=>{const{container:L}=e;return L?L():n.value}),_e=computed2(()=>{const{content:L}=e;return L?L():i.value}),ye=V,we=L=>{const{onResize:J}=e;J&&J(L),V()},Oe=(L,J)=>{if(!e.scrollable)return;if(typeof L=="number"){Te(L,J!=null?J:0,0,!1,"auto");return}const{left:ae,top:be,index:Ce,elSize:ze,position:xe,behavior:ve,el:Me,debounce:Ne=!0}=L;(ae!==void 0||be!==void 0)&&Te(ae!=null?ae:0,be!=null?be:0,0,!1,ve),Me!==void 0?Te(0,Me.offsetTop,Me.offsetHeight,Ne,ve):Ce!==void 0&&ze!==void 0?Te(0,Ce*ze,ze,Ne,ve):xe==="bottom"?Te(0,Number.MAX_SAFE_INTEGER,0,!1,ve):xe==="top"&&Te(0,0,0,!1,ve)},ge=(L,J)=>{if(!e.scrollable)return;const{value:ae}=me;!ae||(typeof L=="object"?ae.scrollBy(L):ae.scrollBy(L,J||0))};function Te(L,J,ae,be,Ce){const{value:ze}=me;if(!!ze){if(be){const{scrollTop:xe,offsetHeight:ve}=ze;if(J>xe){J+ae<=xe+ve||ze.scrollTo({left:L,top:J+ae-ve,behavior:Ce});return}}ze.scrollTo({left:L,top:J,behavior:Ce})}}function Pe(){Re(),b(),V()}function ue(){Ae()}function Ae(){$e(),Be()}function $e(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{C.value=!1},e.duration)}function Be(){T!==void 0&&window.clearTimeout(T),T=window.setTimeout(()=>{y.value=!1},e.duration)}function Re(){T!==void 0&&window.clearTimeout(T),y.value=!0}function b(){w!==void 0&&window.clearTimeout(w),C.value=!0}function k(L){const{onScroll:J}=e;J&&J(L),O()}function O(){const{value:L}=me;L&&(m.value=L.scrollTop,S.value=L.scrollLeft)}function W(){const{value:L}=_e;L&&(s.value=L.offsetHeight,d.value=L.offsetWidth);const{value:J}=me;J&&(u.value=J.offsetHeight,f.value=J.offsetWidth);const{value:ae}=l,{value:be}=a;ae&&(g.value=ae.offsetWidth),be&&(v.value=be.offsetHeight)}function K(){const{value:L}=me;L&&(m.value=L.scrollTop,S.value=L.scrollLeft,u.value=L.offsetHeight,f.value=L.offsetWidth,s.value=L.scrollHeight,d.value=L.scrollWidth);const{value:J}=l,{value:ae}=a;J&&(g.value=J.offsetWidth),ae&&(v.value=ae.offsetHeight)}function V(){!e.scrollable||(e.useUnifiedContainer?K():(W(),O()))}function U(L){var J;return!((J=o.value)===null||J===void 0?void 0:J.contains(L.target))}function N(L){L.preventDefault(),L.stopPropagation(),H=!0,on("mousemove",window,q,!0),on("mouseup",window,_,!0),x=S.value,P=L.clientX}function q(L){if(!H)return;T!==void 0&&window.clearTimeout(T),w!==void 0&&window.clearTimeout(w);const{value:J}=f,{value:ae}=d,{value:be}=ne;if(J===null||ae===null)return;const ze=(L.clientX-P)*(ae-J)/(J-be),xe=ae-J;let ve=x+ze;ve=Math.min(xe,ve),ve=Math.max(ve,0);const{value:Me}=me;if(Me){Me.scrollLeft=ve;const{internalOnUpdateScrollLeft:Ne}=e;Ne&&Ne(ve)}}function _(L){L.preventDefault(),L.stopPropagation(),off("mousemove",window,q,!0),off("mouseup",window,_,!0),H=!1,V(),U(L)&&Ae()}function D(L){L.preventDefault(),L.stopPropagation(),R=!0,on("mousemove",window,B,!0),on("mouseup",window,G,!0),$=m.value,I=L.clientY}function B(L){if(!R)return;T!==void 0&&window.clearTimeout(T),w!==void 0&&window.clearTimeout(w);const{value:J}=u,{value:ae}=s,{value:be}=F;if(J===null||ae===null)return;const ze=(L.clientY-I)*(ae-J)/(J-be),xe=ae-J;let ve=$+ze;ve=Math.min(xe,ve),ve=Math.max(ve,0);const{value:Me}=me;Me&&(Me.scrollTop=ve)}function G(L){L.preventDefault(),L.stopPropagation(),off("mousemove",window,B,!0),off("mouseup",window,G,!0),R=!1,V(),U(L)&&Ae()}watchEffect(()=>{const{value:L}=pe,{value:J}=de,{value:ae}=t,{value:be}=l,{value:Ce}=a;be&&(L?be.classList.remove(`${ae}-scrollbar-rail--disabled`):be.classList.add(`${ae}-scrollbar-rail--disabled`)),Ce&&(J?Ce.classList.remove(`${ae}-scrollbar-rail--disabled`):Ce.classList.add(`${ae}-scrollbar-rail--disabled`))}),onMounted(()=>{e.container||V()}),onBeforeUnmount(()=>{T!==void 0&&window.clearTimeout(T),w!==void 0&&window.clearTimeout(w),off("mousemove",window,B,!0),off("mouseup",window,G,!0)});const te=use_theme_default("Scrollbar","-scrollbar",index_cssr_default5,light_default3,e,t),le=computed2(()=>{const{common:{cubicBezierEaseInOut:L,scrollbarBorderRadius:J,scrollbarHeight:ae,scrollbarWidth:be},self:{color:Ce,colorHover:ze}}=te.value;return{"--n-scrollbar-bezier":L,"--n-scrollbar-color":Ce,"--n-scrollbar-color-hover":ze,"--n-scrollbar-border-radius":J,"--n-scrollbar-width":be,"--n-scrollbar-height":ae}}),fe=r?useThemeClass("scrollbar",void 0,le,e):void 0;return Object.assign(Object.assign({},{scrollTo:Oe,scrollBy:ge,sync:V,syncUnifiedContainer:K,handleMouseEnterWrapper:Pe,handleMouseLeaveWrapper:ue}),{mergedClsPrefix:t,containerScrollTop:m,wrapperRef:o,containerRef:n,contentRef:i,yRailRef:a,xRailRef:l,needYBar:de,needXBar:pe,yBarSizePx:M,xBarSizePx:Q,yBarTopPx:Z,xBarLeftPx:re,isShowXBar:y,isShowYBar:C,isIos:z,handleScroll:k,handleContentResize:ye,handleContainerResize:we,handleYScrollMouseDown:D,handleXScrollMouseDown:N,cssVars:r?void 0:le,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:o}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const n=()=>{var i,a;return(i=this.onRender)===null||i===void 0||i.call(this),h("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(a=t.default)===null||a===void 0?void 0:a.call(t):h("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h(VResizeObserver_default,{onResize:this.handleContentResize},{default:()=>h("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),h("div",{ref:"yRailRef",class:`${r}-scrollbar-rail ${r}-scrollbar-rail--vertical`,style:this.horizontalRailStyle,"aria-hidden":!0},h(Transition,{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),h("div",{ref:"xRailRef",class:`${r}-scrollbar-rail ${r}-scrollbar-rail--horizontal`,style:this.verticalRailStyle,"aria-hidden":!0},h(Transition,{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,left:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])};return this.container?n():h(VResizeObserver_default,{onResize:this.handleContainerResize},{default:n})}}),ScrollBar_default=Scrollbar,XScrollbar=Scrollbar,common_default3={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},self4=e=>{const{borderRadius:t,popoverColor:r,textColor3:o,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:d,hoverColor:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:g,fontSizeHuge:m,heightSmall:S,heightMedium:y,heightLarge:C,heightHuge:R}=e;return Object.assign(Object.assign({},common_default3),{optionFontSizeSmall:f,optionFontSizeMedium:v,optionFontSizeLarge:g,optionFontSizeHuge:m,optionHeightSmall:S,optionHeightMedium:y,optionHeightLarge:C,optionHeightHuge:R,borderRadius:t,color:r,groupHeaderTextColor:o,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:d,optionCheckColor:s,optionColorPending:u,optionColorActive:u,actionTextColor:i,loadingColor:s})},internalSelectMenuLight=createTheme({name:"InternalSelectMenu",common:light_default,peers:{Scrollbar:light_default3,Empty:light_default2},self:self4}),light_default4=internalSelectMenuLight,internalSelectMenuDark={name:"InternalSelectMenu",common:dark_default,peers:{Scrollbar:dark_default3,Empty:dark_default2},self:self4},dark_default4=internalSelectMenuDark,{cubicBezierEaseIn,cubicBezierEaseOut}=common_default;function fade_in_scale_up_cssr_default({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:o="",originalTransition:n=""}={}){return[c2("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${cubicBezierEaseIn}, transform ${t} ${cubicBezierEaseIn} ${n&&","+n}`}),c2("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${cubicBezierEaseOut}, transform ${t} ${cubicBezierEaseOut} ${n&&","+n}`}),c2("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${r})`}),c2("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}var index_cssr_default6=cB("base-wave",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
`),Wave_default=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){useStyle("-base-wave",index_cssr_default6,toRef(e,"clsPrefix"));const t=ref(null),r=ref(!1);let o=null;return onBeforeUnmount(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),nextTick(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return h("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),common_default4={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self5=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},common_default4),{fontSize:i,borderRadius:n,color:r,dividerColor:a,textColor:o,boxShadow:t})},popoverLight={name:"Popover",common:light_default,self:self5},light_default5=popoverLight,popoverDark={name:"Popover",common:dark_default,self:self5},dark_default5=popoverDark,common_default5={closeSizeSmall:"14px",closeSizeMedium:"14px",closeSizeLarge:"14px",padding:"0 7px",closeMargin:"0 0 0 3px",closeMarginRtl:"0 3px 0 0"},tagDark={name:"Tag",common:dark_default,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:d,borderColor:u,opacityDisabled:f,closeColor:v,closeColorHover:g,closeColorPressed:m,borderRadiusSmall:S,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:R,heightTiny:H,heightSmall:T,heightMedium:w}=e;return Object.assign(Object.assign({},common_default5),{heightSmall:H,heightMedium:T,heightLarge:w,borderRadius:S,opacityDisabled:f,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:R,textColorCheckable:t,textColorHoverCheckable:r,textColorPressedCheckable:o,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:"#0000",colorPressedCheckable:"#0000",colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:"#0000",closeColor:v,closeColorHover:g,closeColorPressed:m,borderPrimary:`1px solid ${changeColor(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:"#0000",closeColorPrimary:changeColor(n,{alpha:.7}),closeColorHoverPrimary:changeColor(n,{alpha:.85}),closeColorPressedPrimary:changeColor(n,{alpha:.57}),borderInfo:`1px solid ${changeColor(i,{alpha:.3})}`,textColorInfo:i,colorInfo:"#0000",closeColorInfo:changeColor(i,{alpha:.7}),closeColorHoverInfo:changeColor(i,{alpha:.85}),closeColorPressedInfo:changeColor(i,{alpha:.57}),borderSuccess:`1px solid ${changeColor(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:"#0000",closeColorSuccess:changeColor(a,{alpha:.7}),closeColorHoverSuccess:changeColor(a,{alpha:.85}),closeColorPressedSuccess:changeColor(a,{alpha:.57}),borderWarning:`1px solid ${changeColor(l,{alpha:.3})}`,textColorWarning:l,colorWarning:"#0000",closeColorWarning:changeColor(l,{alpha:.7}),closeColorHoverWarning:changeColor(l,{alpha:.85}),closeColorPressedWarning:changeColor(l,{alpha:.57}),borderError:`1px solid ${changeColor(s,{alpha:.3})}`,textColorError:s,colorError:"#0000",closeColorError:changeColor(s,{alpha:.7}),closeColorHoverError:changeColor(s,{alpha:.85}),closeColorPressedError:changeColor(s,{alpha:.57})})}},dark_default6=tagDark;function useRtl(e,t,r){if(!t)return;const o=useSsrAdapter(),n=computed2(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{watchEffect(()=>{const{value:a}=r,l=`${a}${e}Rtl`;if(exists(l,o))return;const{value:s}=n;!s||s.style.mount({id:l,head:!0,anchorMetaName:cssrAnchorMetaName2,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():onBeforeMount(i),n}var index_cssr_default7=cB("base-clear",`
flex-shrink: 0;
height: 1em;
width: 1em;
position: relative;
`,[c2(">",[cE("clear",`
font-size: var(--n-clear-size);
cursor: pointer;
color: var(--n-clear-color);
transition: color .3s var(--n-bezier);
`,[c2("&:hover",`
color: var(--n-clear-color-hover)!important;
`),c2("&:active",`
color: var(--n-clear-color-pressed)!important;
`)]),cE("placeholder",`
display: flex;
`),cE("clear, placeholder",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[icon_switch_cssr_default({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Clear_default2=defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return useStyle("-base-clear",index_cssr_default7,toRef(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return h("div",{class:`${e}-base-clear`},h(IconSwitchTransition_default,null,{default:()=>{var t,r;return this.show?h(Icon_default,{clsPrefix:e,key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},{default:()=>h(Clear_default,null)}):h("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t))}}))}}),Suffix_default=defineComponent({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()=>{const{clsPrefix:r}=e;return h(Loading_default,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?h(Clear_default2,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{default:()=>h(Icon_default,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>resolveSlot(t.default,()=>[h(ChevronDown_default,null)])})}):null})}}}),common_default6={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},self6=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:d,errorColor:u,errorColorHover:f,borderColor:v,iconColor:g,iconColorDisabled:m,clearColor:S,clearColorHover:y,clearColorPressed:C,placeholderColor:R,placeholderColorDisabled:H,fontSizeTiny:T,fontSizeSmall:w,fontSizeMedium:$,fontSizeLarge:x,heightTiny:P,heightSmall:I,heightMedium:z,heightLarge:F}=e;return Object.assign(Object.assign({},common_default6),{fontSizeTiny:T,fontSizeSmall:w,fontSizeMedium:$,fontSizeLarge:x,heightTiny:P,heightSmall:I,heightMedium:z,heightLarge:F,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:R,placeholderColorDisabled:H,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${v}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${changeColor(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${changeColor(a,{alpha:.2})}`,caretColor:a,arrowColor:g,arrowColorDisabled:m,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${changeColor(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${changeColor(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${changeColor(u,{alpha:.2})}`,colorActiveError:n,caretColorError:u,clearColor:S,clearColorHover:y,clearColorPressed:C})},internalSelectionLight=createTheme({name:"InternalSelection",common:light_default,peers:{Popover:light_default5},self:self6}),light_default6=internalSelectionLight,internalSelectionDark={name:"InternalSelection",common:dark_default,peers:{Popover:dark_default5},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:d,errorColor:u,errorColorHover:f,iconColor:v,iconColorDisabled:g,clearColor:m,clearColorHover:S,clearColorPressed:y,placeholderColor:C,placeholderColorDisabled:R,fontSizeTiny:H,fontSizeSmall:T,fontSizeMedium:w,fontSizeLarge:$,heightTiny:x,heightSmall:P,heightMedium:I,heightLarge:z}=e;return Object.assign(Object.assign({},common_default6),{fontSizeTiny:H,fontSizeSmall:T,fontSizeMedium:w,fontSizeLarge:$,heightTiny:x,heightSmall:P,heightMedium:I,heightLarge:z,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:C,placeholderColorDisabled:R,color:n,colorDisabled:i,colorActive:changeColor(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${changeColor(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${changeColor(a,{alpha:.4})}`,caretColor:a,arrowColor:v,arrowColorDisabled:g,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${changeColor(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(s,{alpha:.4})}`,colorActiveWarning:changeColor(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${changeColor(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${changeColor(u,{alpha:.4})}`,colorActiveError:changeColor(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:S,clearColorPressed:y})}},dark_default7=internalSelectionDark,{cubicBezierEaseInOut:cubicBezierEaseInOut3}=common_default;function fade_in_width_expand_cssr_default({duration:e=".2s",delay:t=".1s"}={}){return[c2("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),c2("&.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;
`),c2("&.fade-in-width-expand-transition-leave-active",`
overflow: hidden;
transition:
opacity ${e} ${cubicBezierEaseInOut3},
max-width ${e} ${cubicBezierEaseInOut3} ${t},
margin-left ${e} ${cubicBezierEaseInOut3} ${t},
margin-right ${e} ${cubicBezierEaseInOut3} ${t};
`),c2("&.fade-in-width-expand-transition-enter-active",`
overflow: hidden;
transition:
opacity ${e} ${cubicBezierEaseInOut3} ${t},
max-width ${e} ${cubicBezierEaseInOut3},
margin-left ${e} ${cubicBezierEaseInOut3},
margin-right ${e} ${cubicBezierEaseInOut3};
`)]}var common_default7={iconMargin:"12px 8px 0 12px",iconMarginRtl:"12px 12px 0 8px",iconSize:"26px",closeSize:"16px",closeMargin:"14px 16px 0 0",closeMarginRtl:"14px 0 0 16px",padding:"15px"},alertDark={name:"Alert",common:dark_default,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:o,dividerColor:n,inputColor:i,textColor1:a,textColor2:l,closeColor:s,closeColorHover:d,closeColorPressed:u,infoColorSuppl:f,successColorSuppl:v,warningColorSuppl:g,errorColorSuppl:m,fontSize:S}=e;return Object.assign(Object.assign({},common_default7),{fontSize:S,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${n}`,color:i,titleTextColor:a,iconColor:l,contentTextColor:l,closeColor:s,closeColorHover:d,closeColorPressed:u,borderInfo:`1px solid ${changeColor(f,{alpha:.35})}`,colorInfo:changeColor(f,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:f,contentTextColorInfo:l,closeColorInfo:s,closeColorHoverInfo:d,closeColorPressedInfo:u,borderSuccess:`1px solid ${changeColor(v,{alpha:.35})}`,colorSuccess:changeColor(v,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:v,contentTextColorSuccess:l,closeColorSuccess:s,closeColorHoverSuccess:d,closeColorPressedSuccess:u,borderWarning:`1px solid ${changeColor(g,{alpha:.35})}`,colorWarning:changeColor(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:l,closeColorWarning:s,closeColorHoverWarning:d,closeColorPressedWarning:u,borderError:`1px solid ${changeColor(m,{alpha:.35})}`,colorError:changeColor(m,{alpha:.25}),titleTextColorError:a,iconColorError:m,contentTextColorError:l,closeColorError:s,closeColorHoverError:d,closeColorPressedError:u})}},dark_default8=alertDark,{cubicBezierEaseInOut:cubicBezierEaseInOut4,cubicBezierEaseOut:cubicBezierEaseOut2,cubicBezierEaseIn:cubicBezierEaseIn2}=common_default;function fade_in_height_expand_cssr_default({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",d=l?"enter":"leave";return[c2(`&.fade-in-height-expand-transition-${d}-from,
&.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),c2(`&.fade-in-height-expand-transition-${d}-to,
&.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),c2(`&.fade-in-height-expand-transition-${d}-active`,`
overflow: ${e};
transition:
max-height ${t} ${cubicBezierEaseInOut4} ${o},
opacity ${t} ${cubicBezierEaseOut2} ${o},
margin-top ${t} ${cubicBezierEaseInOut4} ${o},
margin-bottom ${t} ${cubicBezierEaseInOut4} ${o},
padding-top ${t} ${cubicBezierEaseInOut4} ${o},
padding-bottom ${t} ${cubicBezierEaseInOut4} ${o}
${r?","+r:""}
`),c2(`&.fade-in-height-expand-transition-${s}-active`,`
overflow: ${e};
transition:
max-height ${t} ${cubicBezierEaseInOut4},
opacity ${t} ${cubicBezierEaseIn2},
margin-top ${t} ${cubicBezierEaseInOut4},
margin-bottom ${t} ${cubicBezierEaseInOut4},
padding-top ${t} ${cubicBezierEaseInOut4},
padding-bottom ${t} ${cubicBezierEaseInOut4}
${r?","+r:""}
`)]}var common_default8={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},self7=e=>{const{borderRadius:t,railColor:r,primaryColor:o,primaryColorHover:n,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},common_default8),{borderRadius:t,railColor:r,railColorActive:o,linkColor:changeColor(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:o})},anchorDark={name:"Anchor",common:dark_default,self:self7},dark_default9=anchorDark,common_default9={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},inputDark={name:"Input",common:dark_default,self(e){const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:v,lineHeight:g,fontSizeTiny:m,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:C,heightTiny:R,heightSmall:H,heightMedium:T,heightLarge:w,clearColor:$,clearColorHover:x,clearColorPressed:P,placeholderColor:I,placeholderColorDisabled:z,iconColor:F,iconColorDisabled:M,iconColorHover:ne,iconColorPressed:Q}=e;return Object.assign(Object.assign({},common_default9),{countTextColor:r,heightTiny:R,heightSmall:H,heightMedium:T,heightLarge:w,fontSizeTiny:m,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:C,lineHeight:g,lineHeightTextarea:g,borderRadius:v,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:changeColor(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${changeColor(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:changeColor(s,{alpha:.1}),borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:changeColor(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${changeColor(u,{alpha:.3})}`,caretColorError:u,clearColor:$,clearColorHover:x,clearColorPressed:P,iconColor:F,iconColorDisabled:M,iconColorHover:ne,iconColorPressed:Q,suffixTextColor:t})}},dark_default10=inputDark,self8=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:d,warningColorHover:u,errorColor:f,errorColorHover:v,borderRadius:g,lineHeight:m,fontSizeTiny:S,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:R,heightTiny:H,heightSmall:T,heightMedium:w,heightLarge:$,actionColor:x,clearColor:P,clearColorHover:I,clearColorPressed:z,placeholderColor:F,placeholderColorDisabled:M,iconColor:ne,iconColorDisabled:Q,iconColorHover:ee,iconColorPressed:Z}=e;return Object.assign(Object.assign({},common_default9),{countTextColor:r,heightTiny:H,heightSmall:T,heightMedium:w,heightLarge:$,fontSizeTiny:S,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:R,lineHeight:m,lineHeightTextarea:m,borderRadius:g,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:F,placeholderColorDisabled:M,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${changeColor(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${v}`,colorFocusError:a,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${changeColor(f,{alpha:.2})}`,caretColorError:f,clearColor:P,clearColorHover:I,clearColorPressed:z,iconColor:ne,iconColorDisabled:Q,iconColorHover:ee,iconColorPressed:Z,suffixTextColor:t})},inputLight={name:"Input",common:light_default,self:self8},light_default7=inputLight,inputInjectionKey=createInjectionKey("n-input");function len(e){let t=0;for(const r of e)t++;return t}function isEmptyValue(e){return["",void 0,null].includes(e)}var WordCount_default=defineComponent({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:o,mergedClsPrefixRef:n}=inject(inputInjectionKey),i=computed2(()=>{const{value:a}=r;return a===null||Array.isArray(a)?0:len(a)});return()=>{const{value:a}=o,{value:l}=r;return h("span",{class:`${n.value}-input-word-count`},resolveSlotWithProps(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[a===void 0?i.value:`${i.value} / ${a}`]))}}}),input_cssr_default=cB("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);
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
`,[cE("input, textarea",`
overflow: hidden;
flex-grow: 1;
position: relative;
`),cE("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:
caret-color .3s var(--n-bezier),
color .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier);
`),cE("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;
`,[c2("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
width: 0;
height: 0;
display: none;
`),c2("&::placeholder","color: #0000;"),c2("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
color: var(--n-placeholder-color);
`,[c2("span",`
width: 100%;
display: inline-block;
`)]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el",`
position: absolute;
top: 0;
left: 0;
height: 100%;
`)]),cB("input-wrapper",`
overflow: hidden;
display: inline-flex;
flex-grow: 1;
position: relative;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
`),cE("input-mirror",`
padding: 0;
height: var(--n-height);
overflow: hidden;
visibility: hidden;
position: static;
white-space: nowrap;
pointer-events: none;
`),cE("input-el",`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
`,[c2("+",[cE("placeholder",`
display: flex;
align-items: center;
`)])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye",`
transition: color .3s var(--n-bezier);
`),cM("textarea","width: 100%;",[cB("input-word-count",`
position: absolute;
right: var(--n-padding-right);
bottom: var(--n-padding-vertical);
`),cM("resizable",[cB("input-wrapper",`
resize: vertical;
min-height: var(--n-height);
`)]),cE("textarea",`
position: static;
`),cE("textarea-el, textarea-mirror, placeholder",`
height: 100%;
left: var(--n-padding-left);
right: var(--n-padding-right);
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;
`),cE("textarea-mirror",`
width: 100%;
pointer-events: none;
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre-wrap;
overflow-wrap: break-word;
`)]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator",`
display: flex;
align-items: center;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`,[cB("icon",`
color: var(--n-icon-color);
`),cB("base-icon",`
color: var(--n-icon-color);
`)])]),cM("disabled",`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el",`
cursor: not-allowed;
color: var(--n-text-color-disabled);
text-decoration-color: var(--n-text-color-disabled);
`),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon",`
color: var(--n-icon-color-disabled);
`),cB("base-icon",`
color: var(--n-icon-color-disabled);
`)]),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon",`
color: var(--n-icon-color-disabled);
`),cB("internal-icon",`
color: var(--n-icon-color-disabled);
`)])]),cNotM("disabled",[cE("eye",`
display: flex;
align-items: center;
justify-content: center;
color: var(--n-icon-color);
cursor: pointer;
`,[c2("&:hover",`
color: var(--n-icon-color-hover);
`),c2("&:active",`
color: var(--n-icon-color-pressed);
`),cB("icon",[c2("&:hover",`
color: var(--n-icon-color-hover);
`),c2("&:active",`
color: var(--n-icon-color-pressed);
`)])]),c2("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border",`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),cE("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);
`),cE("state-border",`
border-color: #0000;
z-index: 1;
`),cE("prefix","margin-right: 4px;"),cE("suffix",`
margin-left: 4px;
`),cE("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);
`,[cB("base-loading",`
font-size: var(--n-icon-size);
margin: 0 2px;
color: var(--n-loading-color);
`),cB("base-clear",`
font-size: var(--n-icon-size);
`,[cE("placeholder",[cB("base-icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)])]),c2(">",[cB("icon",`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),cB("base-icon",`
font-size: var(--n-icon-size);
`)]),cB("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=>cM(`${e}-status`,[cNotM("disabled",[cB("base-loading",`
color: var(--n-loading-color-${e})
`),cE("input-el, textarea-el",`
caret-color: var(--n-caret-color-${e});
`),cE("state-border",`
border: var(--n-border-${e});
`),c2("&:hover",[cE("state-border",`
border: var(--n-border-hover-${e});
`)]),c2("&:focus",`
background-color: var(--n-color-focus-${e});
`,[cE("state-border",`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)]),cM("focus",`
background-color: var(--n-color-focus-${e});
`,[cE("state-border",`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)])])]))]),inputProps=Object.assign(Object.assign({},use_theme_default.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},onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],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:Boolean,showPasswordToggle:Boolean}),Input_default=defineComponent({name:"Input",props:inputProps,setup(e){watchEffect(()=>{e.showPasswordToggle&&warnOnce("input",'`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead')});const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=useConfig(e),i=use_theme_default("Input","-input",input_cssr_default,light_default7,e,t),a=ref(null),l=ref(null),s=ref(null),d=ref(null),u=ref(null),f=ref(null),v=ref(null),{localeRef:g}=useLocale("Input"),m=ref(e.defaultValue),S=toRef(e,"value"),y=useMergedState(S,m),C=useFormItem(e),{mergedSizeRef:R,mergedDisabledRef:H,mergedStatusRef:T}=C,w=ref(!1),$=ref(!1),x=ref(!1),P=ref(!1);let I=null;const z=computed2(()=>{const{placeholder:E,pair:X}=e;return X?Array.isArray(E)?E:E===void 0?["",""]:[E,E]:E===void 0?[g.value.placeholder]:[E]}),F=computed2(()=>{const{value:E}=x,{value:X}=y,{value:ce}=z;return!E&&(isEmptyValue(X)||Array.isArray(X)&&isEmptyValue(X[0]))&&ce[0]}),M=computed2(()=>{const{value:E}=x,{value:X}=y,{value:ce}=z;return!E&&ce[1]&&(isEmptyValue(X)||Array.isArray(X)&&isEmptyValue(X[1]))}),ne=use_memo_default(()=>e.internalForceFocus||w.value),Q=use_memo_default(()=>{if(H.value||e.readonly||!e.clearable||!ne.value&&!$.value)return!1;const{value:E}=y,{value:X}=ne;return e.pair?!!(Array.isArray(E)&&(E[0]||E[1]))&&($.value||X):!!E&&($.value||X)}),ee=computed2(()=>{const{showPasswordOn:E}=e;if(E)return E;if(e.showPasswordToggle)return"click"}),Z=ref(!1),Y=computed2(()=>{const{textDecoration:E}=e;return E?Array.isArray(E)?E.map(X=>({textDecoration:X})):[{textDecoration:E}]:["",""]}),re=ref(void 0),de=()=>{var E,X;if(e.type==="textarea"){const{autosize:ce}=e;if(ce&&(re.value=(X=(E=v.value)===null||E===void 0?void 0:E.$el)===null||X===void 0?void 0:X.offsetWidth),!l.value||typeof ce=="boolean")return;const{paddingTop:ke,paddingBottom:A,lineHeight:j}=window.getComputedStyle(l.value),oe=Number(ke.slice(0,-2)),ie=Number(A.slice(0,-2)),he=Number(j.slice(0,-2)),{value:He}=s;if(!He)return;if(ce.minRows){const Ee=Math.max(ce.minRows,1),je=`${oe+ie+he*Ee}px`;He.style.minHeight=je}if(ce.maxRows){const Ee=`${oe+ie+he*ce.maxRows}px`;He.style.maxHeight=Ee}}},pe=computed2(()=>{const{maxlength:E}=e;return E===void 0?void 0:Number(E)});onMounted(()=>{const{value:E}=y;Array.isArray(E)||ve(E)});const me=getCurrentInstance().proxy;function _e(E){const{onUpdateValue:X,"onUpdate:value":ce,onInput:ke}=e,{nTriggerFormInput:A}=C;X&&call(X,E),ce&&call(ce,E),ke&&call(ke,E),m.value=E,A()}function ye(E){const{onChange:X}=e,{nTriggerFormChange:ce}=C;X&&call(X,E),m.value=E,ce()}function we(E){const{onBlur:X}=e,{nTriggerFormBlur:ce}=C;X&&call(X,E),ce()}function Oe(E){const{onFocus:X}=e,{nTriggerFormFocus:ce}=C;X&&call(X,E),ce()}function ge(E){const{onClear:X}=e;X&&call(X,E)}function Te(E){const{onInputBlur:X}=e;X&&call(X,E)}function Pe(E){const{onInputFocus:X}=e;X&&call(X,E)}function ue(){const{onDeactivate:E}=e;E&&call(E)}function Ae(){const{onActivate:E}=e;E&&call(E)}function $e(E){const{onClick:X}=e;X&&call(X,E)}function Be(E){const{onWrapperFocus:X}=e;X&&call(X,E)}function Re(E){const{onWrapperBlur:X}=e;X&&call(X,E)}function b(){x.value=!0}function k(E){x.value=!1,E.target===f.value?O(E,1):O(E,0)}function O(E,X=0,ce="input"){const ke=E.target.value;if(ve(ke),e.type==="textarea"){const{value:j}=v;j&&j.syncUnifiedContainer()}if(I=ke,x.value)return;const A=ke;if(!e.pair)ce==="input"?_e(A):ye(A);else{let{value:j}=y;Array.isArray(j)?j=[...j]:j=["",""],j[X]=A,ce==="input"?_e(j):ye(j)}me.$forceUpdate()}function W(E){Te(E),E.relatedTarget===a.value&&ue(),E.relatedTarget!==null&&(E.relatedTarget===u.value||E.relatedTarget===f.value||E.relatedTarget===l.value)||(P.value=!1),N(E,"blur")}function K(E){Pe(E),w.value=!0,P.value=!0,Ae(),N(E,"focus")}function V(E){e.passivelyActivated&&(Re(E),N(E,"blur"))}function U(E){e.passivelyActivated&&(w.value=!0,Be(E),N(E,"focus"))}function N(E,X){E.relatedTarget!==null&&(E.relatedTarget===u.value||E.relatedTarget===f.value||E.relatedTarget===l.value||E.relatedTarget===a.value)||(X==="focus"?(Oe(E),w.value=!0):X==="blur"&&(we(E),w.value=!1))}function q(E,X){O(E,X,"change")}function _(E){$e(E)}function D(E){ge(E),e.pair?(_e(["",""]),ye(["",""])):(_e(""),ye(""))}function B(E){const{onMousedown:X}=e;X&&X(E);const{tagName:ce}=E.target;if(ce!=="INPUT"&&ce!=="TEXTAREA"){if(e.resizable){const{value:ke}=a;if(ke){const{left:A,top:j,width:oe,height:ie}=ke.getBoundingClientRect(),he=14;if(A+oe-he<E.clientX&&E.clientY<A+oe&&j+ie-he<E.clientY&&E.clientY<j+ie)return}}E.preventDefault(),w.value||ae()}}function G(){var E;$.value=!0,e.type==="textarea"&&((E=v.value)===null||E===void 0||E.handleMouseEnterWrapper())}function te(){var E;$.value=!1,e.type==="textarea"&&((E=v.value)===null||E===void 0||E.handleMouseLeaveWrapper())}function le(){H.value||ee.value==="click"&&(Z.value=!Z.value)}function fe(E){if(H.value)return;E.preventDefault();const X=ke=>{ke.preventDefault(),off("mouseup",document,X)};if(on("mouseup",document,X),ee.value!=="mousedown")return;Z.value=!0;const ce=()=>{Z.value=!1,off("mouseup",document,ce)};on("mouseup",document,ce)}function se(E){var X;switch((X=e.onKeydown)===null||X===void 0||X.call(e,E),E.code){case"Escape":J();break;case"Enter":case"NumpadEnter":L(E);break}}function L(E){var X,ce;if(e.passivelyActivated){const{value:ke}=P;if(ke){e.internalDeactivateOnEnter&&J();return}E.preventDefault(),e.type==="textarea"?(X=l.value)===null||X===void 0||X.focus():(ce=u.value)===null||ce===void 0||ce.focus()}}function J(){e.passivelyActivated&&(P.value=!1,nextTick(()=>{var E;(E=a.value)===null||E===void 0||E.focus()}))}function ae(){var E,X,ce;H.value||(e.passivelyActivated?(E=a.value)===null||E===void 0||E.focus():((X=l.value)===null||X===void 0||X.focus(),(ce=u.value)===null||ce===void 0||ce.focus()))}function be(){var E;((E=a.value)===null||E===void 0?void 0:E.contains(document.activeElement))&&document.activeElement.blur()}function Ce(){var E,X;(E=l.value)===null||E===void 0||E.select(),(X=u.value)===null||X===void 0||X.select()}function ze(){H.value||(l.value?l.value.focus():u.value&&u.value.focus())}function xe(){const{value:E}=a;(E==null?void 0:E.contains(document.activeElement))&&E!==document.activeElement&&J()}function ve(E){const{type:X,pair:ce,autosize:ke}=e;if(!ce&&ke)if(X==="textarea"){const{value:A}=s;A&&(A.textContent=(E!=null?E:"")+`\r
`)}else{const{value:A}=d;A&&(E?A.textContent=E:A.innerHTML="&nbsp;")}}function Me(){de()}const Ne=ref({top:"0"});function Ye(E){var X;const{scrollTop:ce}=E.target;Ne.value.top=`${-ce}px`,(X=v.value)===null||X===void 0||X.syncUnifiedContainer()}let Ke=null;watchEffect(()=>{const{autosize:E,type:X}=e;E&&X==="textarea"?Ke=watch(y,ce=>{!Array.isArray(ce)&&ce!==I&&ve(ce)}):Ke==null||Ke()});let Ve=null;watchEffect(()=>{e.type==="textarea"?Ve=watch(y,E=>{var X;!Array.isArray(E)&&E!==I&&((X=v.value)===null||X===void 0||X.syncUnifiedContainer())}):Ve==null||Ve()}),provide(inputInjectionKey,{mergedValueRef:y,maxlengthRef:pe,mergedClsPrefixRef:t});const qe={wrapperElRef:a,inputElRef:u,textareaElRef:l,isCompositing:x,focus:ae,blur:be,select:Ce,deactivate:xe,activate:ze},Xe=useRtl("Input",n,t),Ge=computed2(()=>{const{value:E}=R,{common:{cubicBezierEaseInOut:X},self:{color:ce,borderRadius:ke,textColor:A,caretColor:j,caretColorError:oe,caretColorWarning:ie,textDecorationColor:he,border:He,borderDisabled:Ee,borderHover:je,borderFocus:We,placeholderColor:Ie,placeholderColorDisabled:De,lineHeightTextarea:Le,colorDisabled:ot,colorFocus:rt,textColorDisabled:Se,boxShadowFocus:Fe,iconSize:Ze,colorFocusWarning:Qe,boxShadowFocusWarning:et,borderWarning:tt,borderFocusWarning:Je,borderHoverWarning:nt,colorFocusError:it,boxShadowFocusError:at,borderError:lt,borderFocusError:st,borderHoverError:dt,clearSize:ct,clearColor:ut,clearColorHover:ft,clearColorPressed:ht,iconColor:pt,iconColorDisabled:vt,suffixTextColor:gt,countTextColor:mt,iconColorHover:bt,iconColorPressed:xt,loadingColor:Ct,loadingColorError:yt,loadingColorWarning:wt,[createKey("padding",E)]:St,[createKey("fontSize",E)]:_t,[createKey("height",E)]:kt}}=i.value,{left:Tt,right:Pt}=getMargin(St);return{"--n-bezier":X,"--n-count-text-color":mt,"--n-color":ce,"--n-font-size":_t,"--n-border-radius":ke,"--n-height":kt,"--n-padding-left":Tt,"--n-padding-right":Pt,"--n-text-color":A,"--n-caret-color":j,"--n-text-decoration-color":he,"--n-border":He,"--n-border-disabled":Ee,"--n-border-hover":je,"--n-border-focus":We,"--n-placeholder-color":Ie,"--n-placeholder-color-disabled":De,"--n-icon-size":Ze,"--n-line-height-textarea":Le,"--n-color-disabled":ot,"--n-color-focus":rt,"--n-text-color-disabled":Se,"--n-box-shadow-focus":Fe,"--n-loading-color":Ct,"--n-caret-color-warning":ie,"--n-color-focus-warning":Qe,"--n-box-shadow-focus-warning":et,"--n-border-warning":tt,"--n-border-focus-warning":Je,"--n-border-hover-warning":nt,"--n-loading-color-warning":wt,"--n-caret-color-error":oe,"--n-color-focus-error":it,"--n-box-shadow-focus-error":at,"--n-border-error":lt,"--n-border-focus-error":st,"--n-border-hover-error":dt,"--n-loading-color-error":yt,"--n-clear-color":ut,"--n-clear-size":ct,"--n-clear-color-hover":ft,"--n-clear-color-pressed":ht,"--n-icon-color":pt,"--n-icon-color-hover":bt,"--n-icon-color-pressed":xt,"--n-icon-color-disabled":vt,"--n-suffix-text-color":gt}}),Ue=o?useThemeClass("input",computed2(()=>{const{value:E}=R;return E[0]}),Ge,e):void 0;return Object.assign(Object.assign({},qe),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:d,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:v,rtlEnabled:Xe,uncontrolledValue:m,mergedValue:y,passwordVisible:Z,mergedPlaceholder:z,showPlaceholder1:F,showPlaceholder2:M,mergedFocus:ne,isComposing:x,activated:P,showClearButton:Q,mergedSize:R,mergedDisabled:H,textDecorationStyle:Y,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:ee,placeholderStyle:Ne,mergedStatus:T,textAreaScrollContainerWidth:re,handleTextAreaScroll:Ye,handleCompositionStart:b,handleCompositionEnd:k,handleInput:O,handleInputBlur:W,handleInputFocus:K,handleWrapperBlur:V,handleWrapperFocus:U,handleMouseEnter:G,handleMouseLeave:te,handleMouseDown:B,handleChange:q,handleClick:_,handleClear:D,handlePasswordToggleClick:le,handlePasswordToggleMousedown:fe,handleWrapperKeyDown:se,handleTextAreaMirrorResize:Me,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:o?void 0:Ge,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){const{mergedClsPrefix:e,mergedStatus:t,themeClass:r,onRender:o,$slots:n}=this;return o==null||o(),h("div",{ref:"wrapperElRef",class:[`${e}-input`,r,t&&`${e}-input--${t}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:this.type==="textarea",[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&this.type!=="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.onKeyup,onKeydown:this.handleWrapperKeyDown},h("div",{class:`${e}-input-wrapper`},resolveWrappedSlot(n.prefix,i=>i&&h("div",{class:`${e}-input__prefix`},i)),this.type==="textarea"?h(ScrollBar_default,{ref:"textareaScrollbarInstRef",class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0},{default:()=>{const{textAreaScrollContainerWidth:i}=this,a={width:this.autosize&&i&&`${i}px`};return h(Fragment,null,h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:`${e}-input__textarea-el`,autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],a],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h("div",{class:`${e}-input__placeholder`,style:[this.placeholderStyle,a],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h(VResizeObserver_default,{onResize:this.handleTextAreaMirrorResize},{default:()=>h("div",{ref:"textareaMirrorElRef",class:`${e}-input__textarea-mirror`,key:"mirror"})}):null)}}):h("div",{class:`${e}-input__input`},h("input",Object.assign({type:this.type==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":this.type},this.inputProps,{ref:"inputElRef",class:`${e}-input__input-el`,style:this.textDecorationStyle[0],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength: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:this.handleInputFocus,onInput:i=>this.handleInput(i,0),onChange:i=>this.handleChange(i,0)})),this.showPlaceholder1?h("div",{class:`${e}-input__placeholder`},h("span",null,this.mergedPlaceholder[0])):null,this.autosize?h("div",{class:`${e}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&resolveWrappedSlot(n.suffix,i=>i||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h("div",{class:`${e}-input__suffix`},[resolveWrappedSlot(n.clear,a=>(this.clearable||a)&&h(Clear_default2,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>a})),this.internalLoadingBeforeSuffix?null:i,this.loading!==void 0?h(Suffix_default,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?i:null,this.showCount&&this.type!=="textarea"?h(WordCount_default,null,{default:a=>{var l;return(l=n.count)===null||l===void 0?void 0:l.call(n,a)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h(Icon_default,{clsPrefix:e,class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},{default:()=>this.passwordVisible?resolveSlot(n["password-visible-icon"],()=>[h(Eye_default,null)]):resolveSlot(n["password-invisible-icon"],()=>[h(EyeOff_default,null)])}):null]):null)),this.pair?h("span",{class:`${e}-input__separator`},resolveSlot(n.separator,()=>[this.separator])):null,this.pair?h("div",{class:`${e}-input-wrapper`},h("div",{class:`${e}-input__input`},h("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:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:i=>this.handleInput(i,1),onChange:i=>this.handleChange(i,1)}),this.showPlaceholder2?h("div",{class:`${e}-input__placeholder`},h("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(n.suffix,i=>(this.clearable||i)&&h("div",{class:`${e}-input__suffix`},[this.clearable&&h(Clear_default2,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>{var a;return(a=n.clear)===null||a===void 0?void 0:a.call(n)}}),i]))):null,this.mergedBordered?h("div",{class:`${e}-input__border`}):null,this.mergedBordered?h("div",{class:`${e}-input__state-border`}):null,this.showCount&&this.type==="textarea"?h(WordCount_default,null,{default:i=>{var a;return(a=n.count)===null||a===void 0?void 0:a.call(n,i)}}):null)}});function self9(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}var autoCompleteLight=createTheme({name:"AutoComplete",common:light_default,peers:{InternalSelectMenu:light_default4,Input:light_default7},self:self9}),autoCompleteDark={name:"AutoComplete",common:dark_default,peers:{InternalSelectMenu:dark_default4,Input:dark_default10},self:self9},dark_default11=autoCompleteDark,self10=e=>{const{borderRadius:t,avatarColor:r,cardColor:o,fontSize:n,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:d,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:d,color:composite(o,r),colorModal:composite(u,r),colorPopover:composite(f,r)}},avatarDark={name:"Avatar",common:dark_default,self:self10},dark_default12=avatarDark,avatarGroupDark={name:"AvatarGroup",common:dark_default,peers:{Avatar:dark_default12}},dark_default13=avatarGroupDark,common_default10={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},backTopDark={name:"BackTop",common:dark_default,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:o,primaryColorPressed:n}=e;return Object.assign(Object.assign({},common_default10),{color:t,textColor:r,iconColor:r,iconColorHover:o,iconColorPressed: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)"})}},dark_default14=backTopDark,badgeDark={name:"Badge",common:dark_default,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:o,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:o,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},dark_default15=badgeDark,common_default11={fontWeightActive:"400"},self11=e=>{const{fontSize:t,textColor3:r,primaryColorHover:o,primaryColorPressed:n,textColor2:i}=e;return Object.assign(Object.assign({},common_default11),{fontSize:t,itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:i,separatorColor:r})},breadcrumbDark={name:"Breadcrumb",common:dark_default,self:self11},dark_default16=breadcrumbDark;function createHoverColor(e){return composite(e,[255,255,255,.16])}function createPressedColor(e){return composite(e,[0,0,0,.12])}var common_default12={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"},self12=e=>{const{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:u,textColor2:f,textColor3:v,primaryColorHover:g,primaryColorPressed:m,borderColor:S,primaryColor:y,baseColor:C,infoColor:R,infoColorHover:H,infoColorPressed:T,successColor:w,successColorHover:$,successColorPressed:x,warningColor:P,warningColorHover:I,warningColorPressed:z,errorColor:F,errorColorHover:M,errorColorPressed:ne,fontWeight:Q,buttonColor2:ee,buttonColor2Hover:Z,buttonColor2Pressed:Y,fontWeightStrong:re}=e;return Object.assign(Object.assign({},common_default12),{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ee,colorSecondaryHover:Z,colorSecondaryPressed:Y,colorTertiary:ee,colorTertiaryHover:Z,colorTertiaryPressed:Y,colorQuaternary:"#0000",colorQuaternaryHover:Z,colorQuaternaryPressed:Y,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:v,textColorHover:g,textColorPressed:m,textColorFocus:g,textColorDisabled:f,textColorText:f,textColorTextHover:g,textColorTextPressed:m,textColorTextFocus:g,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:g,textColorGhostPressed:m,textColorGhostFocus:g,textColorGhostDisabled:f,border:`1px solid ${S}`,borderHover:`1px solid ${g}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${g}`,borderDisabled:`1px solid ${S}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:g,colorPressedPrimary:m,colorFocusPrimary:g,colorDisabledPrimary:y,textColorPrimary:C,textColorHoverPrimary:C,textColorPressedPrimary:C,textColorFocusPrimary:C,textColorDisabledPrimary:C,textColorTextPrimary:y,textColorTextHoverPrimary:g,textColorTextPressedPrimary:m,textColorTextFocusPrimary:g,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:g,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:g,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${g}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${g}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:R,colorHoverInfo:H,colorPressedInfo:T,colorFocusInfo:H,colorDisabledInfo:R,textColorInfo:C,textColorHoverInfo:C,textColorPressedInfo:C,textColorFocusInfo:C,textColorDisabledInfo:C,textColorTextInfo:R,textColorTextHoverInfo:H,textColorTextPressedInfo:T,textColorTextFocusInfo:H,textColorTextDisabledInfo:f,textColorGhostInfo:R,textColorGhostHoverInfo:H,textColorGhostPressedInfo:T,textColorGhostFocusInfo:H,textColorGhostDisabledInfo:R,borderInfo:`1px solid ${R}`,borderHoverInfo:`1px solid ${H}`,borderPressedInfo:`1px solid ${T}`,borderFocusInfo:`1px solid ${H}`,borderDisabledInfo:`1px solid ${R}`,rippleColorInfo:R,colorSuccess:w,colorHoverSuccess:$,colorPressedSuccess:x,colorFocusSuccess:$,colorDisabledSuccess:w,textColorSuccess:C,textColorHoverSuccess:C,textColorPressedSuccess:C,textColorFocusSuccess:C,textColorDisabledSuccess:C,textColorTextSuccess:w,textColorTextHoverSuccess:$,textColorTextPressedSuccess:x,textColorTextFocusSuccess:$,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:$,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:$,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${$}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${$}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:P,colorHoverWarning:I,colorPressedWarning:z,colorFocusWarning:I,colorDisabledWarning:P,textColorWarning:C,textColorHoverWarning:C,textColorPressedWarning:C,textColorFocusWarning:C,textColorDisabledWarning:C,textColorTextWarning:P,textColorTextHoverWarning:I,textColorTextPressedWarning:z,textColorTextFocusWarning:I,textColorTextDisabledWarning:f,textColorGhostWarning:P,textColorGhostHoverWarning:I,textColorGhostPressedWarning:z,textColorGhostFocusWarning:I,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${I}`,borderPressedWarning:`1px solid ${z}`,borderFocusWarning:`1px solid ${I}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:F,colorHoverError:M,colorPressedError:ne,colorFocusError:M,colorDisabledError:F,textColorError:C,textColorHoverError:C,textColorPressedError:C,textColorFocusError:C,textColorDisabledError:C,textColorTextError:F,textColorTextHoverError:M,textColorTextPressedError:ne,textColorTextFocusError:M,textColorTextDisabledError:f,textColorGhostError:F,textColorGhostHoverError:M,textColorGhostPressedError:ne,textColorGhostFocusError:M,textColorGhostDisabledError:F,borderError:`1px solid ${F}`,borderHoverError:`1px solid ${M}`,borderPressedError:`1px solid ${ne}`,borderFocusError:`1px solid ${M}`,borderDisabledError:`1px solid ${F}`,rippleColorError:F,waveOpacity:"0.6",fontWeight:Q,fontWeightStrong:re})},buttonLight={name:"Button",common:light_default,self:self12},light_default8=buttonLight,buttonDark={name:"Button",common:dark_default,self(e){const t=self12(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},dark_default17=buttonDark,buttonGroupInjectionKey=createInjectionKey("n-button-group"),index_cssr_default8=c2([cB("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;
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);
`,[cM("color",[cE("border",{borderColor:"var(--n-border-color)"}),cM("disabled",[cE("border",{borderColor:"var(--n-border-color-disabled)"})]),cNotM("disabled",[c2("&:focus",[cE("state-border",{borderColor:"var(--n-border-color-focus)"})]),c2("&:hover",[cE("state-border",{borderColor:"var(--n-border-color-hover)"})]),c2("&:active",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})]),cM("pressed",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),cM("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[cE("border",{border:"var(--n-border-disabled)"})]),cNotM("disabled",[c2("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[cE("state-border",{border:"var(--n-border-focus)"})]),c2("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[cE("state-border",{border:"var(--n-border-hover)"})]),c2("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})]),cM("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})])]),cM("loading",{"pointer-events":"none"}),cB("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);
`,[cM("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),typeof window!="undefined"&&"MozBoxSizing"in document.createElement("div").style?c2("&::moz-focus-inner",{border:0}):null,cE("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;
`),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("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;
`,[cB("icon-slot",`
height: var(--n-icon-size);
width: var(--n-icon-size);
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
`,[icon_switch_cssr_default({top:"50%",originalTransform:"translateY(-50%)"})]),fade_in_width_expand_cssr_default()]),cE("content",`
display: flex;
align-items: center;
flex-wrap: nowrap;
`,[c2("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block",`
display: flex;
width: 100%;
`),cM("dashed",[cE("border, state-border",{borderStyle:"dashed !important"})]),cM("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),c2("@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)"}}),c2("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),buttonProps=Object.assign(Object.assign({},use_theme_default.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,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],internalAutoFocus:Boolean}),Button=defineComponent({name:"Button",props:buttonProps,setup(e){watchEffect(()=>{const{dashed:T,ghost:w,text:$,secondary:x,tertiary:P,quaternary:I}=e;(T||w||$)&&(x||P||I)&&warnOnce("button","`dashed`, `ghost` and `text` props can't be used along with `secondary`, `tertiary` and `quaterary` props.")});const t=ref(null),r=ref(null),o=ref(!1);onMounted(()=>{const{value:T}=t;T&&!e.disabled&&e.focusable&&e.internalAutoFocus&&T.focus({preventScroll:!0})});const n=use_memo_default(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:a}=useFormItem({},{defaultSize:"medium",mergedSize:T=>{const{size:w}=e;if(w)return w;const{size:$}=i;if($)return $;const{mergedSize:x}=T||{};return x?x.value:"medium"}}),l=computed2(()=>e.focusable&&!e.disabled),s=T=>{var w;T.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0}))},d=T=>{var w;if(!e.disabled&&!e.loading){const{onClick:$}=e;$&&call($,T),e.text||(w=r.value)===null||w===void 0||w.play()}},u=T=>{switch(T.code){case"Enter":case"NumpadEnter":if(!e.keyboard)return;o.value=!1}},f=T=>{switch(T.code){case"Enter":case"NumpadEnter":if(!e.keyboard||e.loading){T.preventDefault();return}o.value=!0}},v=()=>{o.value=!1},{inlineThemeDisabled:g,mergedClsPrefixRef:m,mergedRtlRef:S}=useConfig(e),y=use_theme_default("Button","-button",index_cssr_default8,light_default8,e,m),C=useRtl("Button",S,m),R=computed2(()=>{const T=y.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:$},self:x}=T,{rippleDuration:P,opacityDisabled:I,fontWeight:z,fontWeightStrong:F}=x,M=a.value,{dashed:ne,type:Q,ghost:ee,text:Z,color:Y,round:re,circle:de,textColor:pe,secondary:me,tertiary:_e,quaternary:ye,strong:we}=e,Oe={"font-weight":we?F:z};let ge={"--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"};const Te=Q==="tertiary",Pe=Q==="default",ue=Te?"default":Q;if(Z){const U=pe||Y,N=U||x[createKey("textColorText",ue)];ge={"--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":N,"--n-text-color-hover":U?createHoverColor(U):x[createKey("textColorTextHover",ue)],"--n-text-color-pressed":U?createPressedColor(U):x[createKey("textColorTextPressed",ue)],"--n-text-color-focus":U?createHoverColor(U):x[createKey("textColorTextHover",ue)],"--n-text-color-disabled":U||x[createKey("textColorTextDisabled",ue)]}}else if(ee||ne){const U=pe||Y;ge={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":Y||x[createKey("rippleColor",ue)],"--n-text-color":U||x[createKey("textColorGhost",ue)],"--n-text-color-hover":U?createHoverColor(U):x[createKey("textColorGhostHover",ue)],"--n-text-color-pressed":U?createPressedColor(U):x[createKey("textColorGhostPressed",ue)],"--n-text-color-focus":U?createHoverColor(U):x[createKey("textColorGhostHover",ue)],"--n-text-color-disabled":U||x[createKey("textColorGhostDisabled",ue)]}}else if(me){const U=Pe?x.textColor:Te?x.textColorTertiary:x[createKey("color",ue)],N=Y||U,q=Q!=="default"&&Q!=="tertiary";ge={"--n-color":q?changeColor(N,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":q?changeColor(N,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":q?changeColor(N,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":q?changeColor(N,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":N,"--n-text-color-hover":N,"--n-text-color-pressed":N,"--n-text-color-focus":N,"--n-text-color-disabled":N}}else if(_e||ye){const U=Pe?x.textColor:Te?x.textColorTertiary:x[createKey("color",ue)],N=Y||U;_e?(ge["--n-color"]=x.colorTertiary,ge["--n-color-hover"]=x.colorTertiaryHover,ge["--n-color-pressed"]=x.colorTertiaryPressed,ge["--n-color-focus"]=x.colorSecondaryHover,ge["--n-color-disabled"]=x.colorTertiary):(ge["--n-color"]=x.colorQuaternary,ge["--n-color-hover"]=x.colorQuaternaryHover,ge["--n-color-pressed"]=x.colorQuaternaryPressed,ge["--n-color-focus"]=x.colorQuaternaryHover,ge["--n-color-disabled"]=x.colorQuaternary),ge["--n-ripple-color"]="#0000",ge["--n-text-color"]=N,ge["--n-text-color-hover"]=N,ge["--n-text-color-pressed"]=N,ge["--n-text-color-focus"]=N,ge["--n-text-color-disabled"]=N}else ge={"--n-color":Y||x[createKey("color",ue)],"--n-color-hover":Y?createHoverColor(Y):x[createKey("colorHover",ue)],"--n-color-pressed":Y?createPressedColor(Y):x[createKey("colorPressed",ue)],"--n-color-focus":Y?createHoverColor(Y):x[createKey("colorFocus",ue)],"--n-color-disabled":Y||x[createKey("colorDisabled",ue)],"--n-ripple-color":Y||x[createKey("rippleColor",ue)],"--n-text-color":pe||(Y?x.textColorPrimary:Te?x.textColorTertiary:x[createKey("textColor",ue)]),"--n-text-color-hover":pe||(Y?x.textColorHoverPrimary:x[createKey("textColorHover",ue)]),"--n-text-color-pressed":pe||(Y?x.textColorPressedPrimary:x[createKey("textColorPressed",ue)]),"--n-text-color-focus":pe||(Y?x.textColorFocusPrimary:x[createKey("textColorFocus",ue)]),"--n-text-color-disabled":pe||(Y?x.textColorDisabledPrimary:x[createKey("textColorDisabled",ue)])};let Ae={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};Z?Ae={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Ae={"--n-border":x[createKey("border",ue)],"--n-border-hover":x[createKey("borderHover",ue)],"--n-border-pressed":x[createKey("borderPressed",ue)],"--n-border-focus":x[createKey("borderFocus",ue)],"--n-border-disabled":x[createKey("borderDisabled",ue)]};const{[createKey("height",M)]:$e,[createKey("fontSize",M)]:Be,[createKey("padding",M)]:Re,[createKey("paddingRound",M)]:b,[createKey("iconSize",M)]:k,[createKey("borderRadius",M)]:O,[createKey("iconMargin",M)]:W,waveOpacity:K}=x,V={"--n-width":de&&!Z?$e:"initial","--n-height":Z?"initial":$e,"--n-font-size":Be,"--n-padding":de||Z?"initial":re?b:Re,"--n-icon-size":k,"--n-icon-margin":W,"--n-border-radius":Z?"initial":de||re?$e:O};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":$,"--n-ripple-duration":P,"--n-opacity-disabled":I,"--n-wave-opacity":K},Oe),ge),Ae),V)}),H=g?useThemeClass("button",computed2(()=>{let T="";const{dashed:w,type:$,ghost:x,text:P,color:I,round:z,circle:F,textColor:M,secondary:ne,tertiary:Q,quaternary:ee,strong:Z}=e;w&&(T+="a"),x&&(T+="b"),P&&(T+="c"),z&&(T+="d"),F&&(T+="e"),ne&&(T+="f"),Q&&(T+="g"),ee&&(T+="h"),Z&&(T+="i"),I&&(T+="j"+color2Class(I)),M&&(T+="k"+color2Class(M));const{value:Y}=a;return T+="l"+Y[0],T+="m"+$[0],T}),R,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:m,mergedFocusable:l,mergedSize:a,showBorder:n,enterPressed:o,rtlEnabled:C,handleMousedown:s,handleKeydown:f,handleBlur:v,handleKeyup:u,handleClick:d,customColorCssVars:computed2(()=>{const{color:T}=e;if(!T)return null;const w=createHoverColor(T);return{"--n-border-color":T,"--n-border-color-hover":w,"--n-border-color-pressed":createPressedColor(T),"--n-border-color-focus":w,"--n-border-color-disabled":T}}),cssVars:g?void 0:R,themeClass:H==null?void 0:H.themeClass,onRender:H==null?void 0:H.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const o=resolveWrappedSlot(this.$slots.default,n=>n&&h("span",{class:`${e}-button__content`},n));return h(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"&&o,h(FadeInExpandTransition_default,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,n=>(this.loading||n)&&h("span",{class:`${e}-button__icon`,style:{margin:isSlotEmpty(this.$slots.default)?"0":""}},h(IconSwitchTransition_default,null,{default:()=>this.loading?h(Loading_default,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):h("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},n)})))}),this.iconPlacement==="left"&&o,this.text?null:h(Wave_default,{ref:"waveElRef",clsPrefix:e}),this.showBorder?h("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?h("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Button_default=Button,common_default13={titleFontSize:"22px"},self13=e=>{const{borderRadius:t,fontSize:r,lineHeight:o,textColor2:n,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:d,baseColor:u,hoverColor:f,cardColor:v,modalColor:g,popoverColor:m}=e;return Object.assign(Object.assign({},common_default13),{borderRadius:t,borderColor:composite(v,l),borderColorModal:composite(g,l),borderColorPopover:composite(m,l),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:o,dateColorCurrent:d,dateTextColorCurrent:u,cellColorHover:composite(v,f),cellColorHoverModal:composite(g,f),cellColorHoverPopover:composite(m,f),cellColor:v,cellColorModal:g,cellColorPopover:m,barColor:d})},calendarLight=createTheme({name:"Calendar",common:light_default,peers:{Button:light_default8},self:self13}),calendarDark={name:"Calendar",common:dark_default,peers:{Button:dark_default17},self:self13},dark_default18=calendarDark,self14=e=>{const{fontSize:t,boxShadow2:r,popoverColor:o,textColor2:n,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:g}=e;return{panelFontSize:t,boxShadow:r,color:o,textColor:n,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:g}},colorPickerLight=createTheme({name:"ColorPicker",common:light_default,peers:{Input:light_default7,Button:light_default8},self:self14}),colorPickerDark={name:"ColorPicker",common:dark_default,peers:{Input:dark_default10,Button:dark_default17},self:self14},dark_default19=colorPickerDark,common_default14={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeSize:"18px"},self15=e=>{const{primaryColor:t,borderRadius:r,lineHeight:o,fontSize:n,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:d,closeColor:u,closeColorHover:f,closeColorPressed:v,modalColor:g,boxShadow1:m,popoverColor:S,actionColor:y}=e;return Object.assign(Object.assign({},common_default14),{lineHeight:o,color:i,colorModal:g,colorPopover:S,colorTarget:t,colorEmbedded:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:d,closeColor:u,closeColorHover:f,closeColorPressed:v,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:m,borderRadius:r})},cardLight={name:"Card",common:light_default,self:self15},light_default9=cardLight,cardDark={name:"Card",common:dark_default,self(e){const t=self15(e),{cardColor:r}=e;return t.colorEmbedded=r,t}},dark_default20=cardDark,self16=e=>({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"}),carouselDark={name:"Carousel",common:dark_default,self:self16},dark_default21=carouselDark,common_default15={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"},self17=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadiusSmall:g,lineHeight:m}=e;return Object.assign(Object.assign({},common_default15),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadius:g,color:t,colorChecked:s,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:o,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${changeColor(s,{alpha:.3})}`,textColor:d,textColorDisabled:a})},checkboxLight={name:"Checkbox",common:light_default,self:self17},light_default10=checkboxLight,checkboxDark={name:"Checkbox",common:dark_default,self(e){const{cardColor:t}=e,r=self17(e);return r.color="#0000",r.checkMarkColor=t,r}},dark_default22=checkboxDark,self18=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:d,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:r,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:d,optionTextColor:n,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},cascaderLight=createTheme({name:"Cascader",common:light_default,peers:{InternalSelectMenu:light_default4,InternalSelection:light_default6,Scrollbar:light_default3,Checkbox:light_default10,Empty:light_default2},self:self18}),cascaderDark={name:"Cascader",common:dark_default,peers:{InternalSelectMenu:dark_default4,InternalSelection:dark_default7,Scrollbar:dark_default3,Checkbox:dark_default22,Empty:light_default2},self:self18},dark_default23=cascaderDark,CheckMark_default=h("svg",{viewBox:"0 0 64 64",class:"check-icon"},h("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"})),LineMark_default=h("svg",{viewBox:"0 0 100 100",class:"line-icon"},h("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"})),checkboxGroupInjectionKey=createInjectionKey("n-checkbox-group"),checkboxGroupProps={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:{type:[Function,Array],validator:()=>(warn3("checkbox-group","`on-change` is deprecated, please use `on-update:value` instead."),!0),default:void 0}},CheckboxGroup_default=defineComponent({name:"CheckboxGroup",props:checkboxGroupProps,setup(e){const{mergedClsPrefixRef:t}=useConfig(e),r=useFormItem(e),{mergedSizeRef:o,mergedDisabledRef:n}=r,i=ref(e.defaultValue),a=computed2(()=>e.value),l=useMergedState(a,i),s=computed2(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),d=computed2(()=>Array.isArray(l.value)?new Set(l.value):new Set);function u(f,v){const{nTriggerFormInput:g,nTriggerFormChange:m}=r,{onChange:S,"onUpdate:value":y,onUpdateValue:C}=e;if(Array.isArray(l.value)){const R=Array.from(l.value),H=R.findIndex(T=>T===v);f?~H||(R.push(v),C&&call(C,R),y&&call(y,R),g(),m(),i.value=R,S&&call(S,R)):~H&&(R.splice(H,1),C&&call(C,R),y&&call(y,R),S&&call(S,R),i.value=R,g(),m())}else f?(C&&call(C,[v]),y&&call(y,[v]),S&&call(S,[v]),i.value=[v],g(),m()):(C&&call(C,[]),y&&call(y,[]),S&&call(S,[]),i.value=[],g(),m())}return provide(checkboxGroupInjectionKey,{checkedCountRef:s,maxRef:toRef(e,"max"),minRef:toRef(e,"min"),valueSetRef:d,disabledRef:n,mergedSizeRef:o,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return h("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),index_cssr_default9=c2([cB("checkbox",`
line-height: var(--n-label-line-height);
font-size: var(--n-font-size);
outline: none;
cursor: pointer;
display: inline-flex;
flex-wrap: nowrap;
align-items: flex-start;
word-break: break-word;
--n-merged-color-table: var(--n-color-table);
`,[c2("&:hover",[cB("checkbox-box",[cE("border",{border:"var(--n-border-checked)"})])]),c2("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),cM("inside-table",[cB("checkbox-box",`
background-color: var(--n-merged-color-table);
`)]),cM("checked",[cB("checkbox-box",`
background-color: var(--n-color-checked);
`,[cB("checkbox-icon",[c2(".check-icon",`
opacity: 1;
transform: scale(1);
`)])])]),cM("indeterminate",[cB("checkbox-box",[cB("checkbox-icon",[c2(".check-icon",`
opacity: 0;
transform: scale(.5);
`),c2(".line-icon",`
opacity: 1;
transform: scale(1);
`)])])]),cM("checked, indeterminate",[c2("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
border: var(--n-border-checked);
box-shadow: var(--n-box-shadow-focus);
`)])]),cB("checkbox-box",`
background-color: var(--n-color-checked);
border-left: 0;
border-top: 0;
`,[cE("border",{border:"var(--n-border-checked)"})])]),cM("disabled",{cursor:"not-allowed"},[cM("checked",[cB("checkbox-box",`
background-color: var(--n-color-disabled-checked);
`,[cE("border",{border:"var(--n-border-disabled-checked)"}),cB("checkbox-icon",[c2(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),cB("checkbox-box",`
background-color: var(--n-color-disabled);
`,[cE("border",{border:"var(--n-border-disabled)"}),cB("checkbox-icon",[c2(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),cE("label",{color:"var(--n-text-color-disabled)"})]),cB("checkbox-box-wrapper",`
position: relative;
width: var(--n-size);
flex-shrink: 0;
flex-grow: 0;
`),cB("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);
`,[cE("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);
`),cB("checkbox-icon",`
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 1px;
right: 1px;
top: 1px;
bottom: 1px;
`,[c2(".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);
`),icon_switch_cssr_default({left:"1px",top:"1px"})])]),cE("label",`
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
user-select: none;
padding: var(--n-label-padding);
`,[c2("&:empty",{display:"none"})])]),insideModal(cB("checkbox",`
--n-merged-color-table: var(--n-color-table-modal);
`)),insidePopover(cB("checkbox",`
--n-merged-color-table: var(--n-color-table-popover);
`))]),checkboxProps=Object.assign(Object.assign({},use_theme_default.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]}),Checkbox_default=defineComponent({name:"Checkbox",props:checkboxProps,setup(e){watchEffect(()=>{e.onChange&&warnOnce("checkbox","`on-change` is deprecated, please use `on-update:checked` instead.")});const t=ref(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=useConfig(e),i=useFormItem(e,{mergedSize($){const{size:x}=e;if(x!==void 0)return x;if(s){const{value:P}=s.mergedSizeRef;if(P!==void 0)return P}if($){const{mergedSize:P}=$;if(P!==void 0)return P.value}return"medium"},mergedDisabled($){const{disabled:x}=e;if(x!==void 0)return x;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:P},checkedCountRef:I}=s;if(P!==void 0&&I.value>=P&&!v.value)return!0;const{minRef:{value:z}}=s;if(z!==void 0&&I.value<=z&&v.value)return!0}return $?$.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=inject(checkboxGroupInjectionKey,null),d=ref(e.defaultChecked),u=toRef(e,"checked"),f=useMergedState(u,d),v=use_memo_default(()=>{if(s){const $=s.valueSetRef.value;return $&&e.value!==void 0?$.has(e.value):!1}else return f.value===e.checkedValue}),g=use_theme_default("Checkbox","-checkbox",index_cssr_default9,light_default10,e,r);function m($){if(s&&e.value!==void 0)s.toggleCheckbox(!v.value,e.value);else{const{onChange:x,"onUpdate:checked":P,onUpdateChecked:I}=e,{nTriggerFormInput:z,nTriggerFormChange:F}=i,M=v.value?e.uncheckedValue:e.checkedValue;P&&call(P,M,$),I&&call(I,M,$),x&&call(x,M,$),z(),F(),d.value=M}}function S($){a.value||m($)}function y($){if(!a.value)switch($.code){case"Space":case"Enter":case"NumpadEnter":m($)}}function C($){switch($.code){case"Space":$.preventDefault()}}const R={focus:()=>{var $;($=t.value)===null||$===void 0||$.focus()},blur:()=>{var $;($=t.value)===null||$===void 0||$.blur()}},H=useRtl("Checkbox",n,r),T=computed2(()=>{const{value:$}=l,{common:{cubicBezierEaseInOut:x},self:{borderRadius:P,color:I,colorChecked:z,colorDisabled:F,colorTableHeader:M,colorTableHeaderModal:ne,colorTableHeaderPopover:Q,checkMarkColor:ee,checkMarkColorDisabled:Z,border:Y,borderFocus:re,borderDisabled:de,borderChecked:pe,boxShadowFocus:me,textColor:_e,textColorDisabled:ye,checkMarkColorDisabledChecked:we,colorDisabledChecked:Oe,borderDisabledChecked:ge,labelPadding:Te,labelLineHeight:Pe,[createKey("fontSize",$)]:ue,[createKey("size",$)]:Ae}}=g.value;return{"--n-label-line-height":Pe,"--n-size":Ae,"--n-bezier":x,"--n-border-radius":P,"--n-border":Y,"--n-border-checked":pe,"--n-border-focus":re,"--n-border-disabled":de,"--n-border-disabled-checked":ge,"--n-box-shadow-focus":me,"--n-color":I,"--n-color-checked":z,"--n-color-table":M,"--n-color-table-modal":ne,"--n-color-table-popover":Q,"--n-color-disabled":F,"--n-color-disabled-checked":Oe,"--n-text-color":_e,"--n-text-color-disabled":ye,"--n-check-mark-color":ee,"--n-check-mark-color-disabled":Z,"--n-check-mark-color-disabled-checked":we,"--n-font-size":ue,"--n-label-padding":Te}}),w=o?useThemeClass("checkbox",computed2(()=>l.value[0]),T,e):void 0;return Object.assign(i,R,{rtlEnabled:H,selfRef:t,mergedClsPrefix:r,mergedDisabled:a,renderedChecked:v,mergedTheme:g,labelId:createId(),handleClick:S,handleKeyUp:y,handleKeyDown:C,cssVars:o?void 0:T,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:r,mergedDisabled:o,indeterminate:n,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:d,focusable:u,handleKeyUp:f,handleKeyDown:v,handleClick:g}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h("div",{ref:"selfRef",class:[`${d}-checkbox`,this.themeClass,this.rtlEnabled&&`${d}-checkbox--rtl`,r&&`${d}-checkbox--checked`,o&&`${d}-checkbox--disabled`,n&&`${d}-checkbox--indeterminate`,i&&`${d}-checkbox--inside-table`],tabindex:o||!u?void 0:0,role:"checkbox","aria-checked":n?"mixed":r,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:v,onClick:g,onMousedown:()=>{on("selectstart",window,m=>{m.preventDefault()},{once:!0})}},h("div",{class:`${d}-checkbox-box-wrapper`},"\xA0",h("div",{class:`${d}-checkbox-box`},h(IconSwitchTransition_default,null,{default:()=>this.indeterminate?h("div",{key:"indeterminate",class:`${d}-checkbox-icon`},LineMark_default):h("div",{key:"check",class:`${d}-checkbox-icon`},CheckMark_default)}),h("div",{class:`${d}-checkbox-box__border`}))),s!==null||t.default?h("span",{class:`${d}-checkbox__label`,id:l},t.default?t.default():s):null)}}),codeDark={name:"Code",common:dark_default,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"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"}}},dark_default24=codeDark,self19=e=>{const{fontWeight:t,textColor1:r,textColor2:o,dividerColor:n,fontSize:i}=e;return{titleFontSize:i,titleFontWeight:t,dividerColor:n,titleTextColor:r,fontSize:i,textColor:o,arrowColor:o}},collapseDark={name:"Collapse",common:dark_default,self:self19},dark_default25=collapseDark,self20=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},collapseTransitionDark={name:"CollapseTransition",common:dark_default,self:self20},dark_default26=collapseTransitionDark,configProviderProps={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,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(warn3("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ConfigProvider_default=defineComponent({name:"ConfigProvider",alias:["App"],props:configProviderProps,setup(e){const t=inject(configProviderInjectionKey,null),r=computed2(()=>{const{theme:g}=e;if(g===null)return;const m=t==null?void 0:t.mergedThemeRef.value;return g===void 0?m:m===void 0?g:Object.assign({},m,g)}),o=computed2(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const m=t==null?void 0:t.mergedThemeOverridesRef.value;return m===void 0?g:merge_default({},m,g)}}}),n=use_memo_default(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=use_memo_default(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=computed2(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=computed2(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=computed2(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t==null?void 0:t.mergedClsPrefixRef.value}),d=computed2(()=>{var g;const{rtl:m}=e;if(m===void 0)return t==null?void 0:t.mergedRtlRef.value;const S={};for(const y of m)S[y.name]=markRaw(y),(g=y.peers)===null||g===void 0||g.forEach(C=>{C.name in S||(S[C.name]=markRaw(C))});return S}),u=computed2(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),v=computed2(()=>{const{value:g}=r,{value:m}=o,S=m&&Object.keys(m).length!==0,y=g==null?void 0:g.name;return y?S?`${y}-${hash_browser_esm_default(JSON.stringify(o.value))}`:y:S?hash_browser_esm_default(JSON.stringify(o.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:d,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:computed2(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:computed2(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:computed2(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedThemeRef:r,mergedThemeOverridesRef:o,inlineThemeDisabled:f||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:r,mergedThemeOverrides:o}},render(){var e,t,r,o;return this.abstract?(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r):h(this.as||this.tag,{class:`${this.mergedClsPrefix||defaultClsPrefix}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function self21(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}var selectLight=createTheme({name:"Select",common:light_default,peers:{InternalSelection:light_default6,InternalSelectMenu:light_default4},self:self21}),light_default11=selectLight,selectDark={name:"Select",common:dark_default,peers:{InternalSelection:dark_default7,InternalSelectMenu:dark_default4},self:self21},dark_default27=selectDark,common_default16={itemSize:"28px",itemPadding:"0 4px",itemMargin:"0 0 0 8px",itemMarginRtl:"0 8px 0 0",buttonIconSize:"16px",inputWidth:"60px",selectWidth:"unset",inputMargin:"0 0 0 8px",inputMarginRtl:"0 8px 0 0",selectMargin:"0 0 0 8px",prefixMargin:"0 8px 0 0",suffixMargin:"0 0 0 8px",jumperFontSize:"14px"},self22=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:o,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSize:d}=e;return Object.assign(Object.assign({},common_default16),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemFontSize:d,jumperTextColor:t,jumperTextColorDisabled:a})},paginationLight=createTheme({name:"Pagination",common:light_default,peers:{Select:light_default11,Input:light_default7},self:self22}),light_default12=paginationLight,paginationDark={name:"Pagination",common:dark_default,peers:{Select:dark_default27,Input:dark_default10},self(e){const{primaryColor:t,opacity3:r}=e,o=changeColor(t,{alpha:Number(r)}),n=self22(e);return n.itemBorderActive=`1px solid ${o}`,n.itemBorderDisabled="1px solid #0000",n}},dark_default28=paginationDark,common_default17={padding:"8px 14px"},tooltipDark={name:"Tooltip",common:dark_default,peers:{Popover:dark_default5},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n}=e;return Object.assign(Object.assign({},common_default17),{borderRadius:t,boxShadow:r,color:o,textColor:n})}},dark_default29=tooltipDark,self23=e=>{const{borderRadius:t,boxShadow2:r,baseColor:o}=e;return Object.assign(Object.assign({},common_default17),{borderRadius:t,boxShadow:r,color:composite(o,"rgba(0, 0, 0, .85)"),textColor:o})},tooltipLight=createTheme({name:"Tooltip",common:light_default,peers:{Popover:light_default5},self:self23}),light_default13=tooltipLight,ellipsisDark={name:"Ellipsis",common:dark_default,peers:{Tooltip:dark_default29}},dark_default30=ellipsisDark,ellipsisLight=createTheme({name:"Ellipsis",common:light_default,peers:{Tooltip:light_default13}}),light_default14=ellipsisLight,common_default18={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px"},radioDark={name:"Radio",common:dark_default,self(e){const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:g,heightLarge:m,lineHeight:S}=e;return Object.assign(Object.assign({},common_default18),{labelLineHeight:S,buttonHeightSmall:v,buttonHeightMedium:g,buttonHeightLarge:m,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${changeColor(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:r,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${changeColor(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},dark_default31=radioDark,self24=e=>{const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:g,heightLarge:m,lineHeight:S}=e;return Object.assign(Object.assign({},common_default18),{labelLineHeight:S,buttonHeightSmall:v,buttonHeightMedium:g,buttonHeightLarge:m,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${changeColor(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${changeColor(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},radioLight={name:"Radio",common:light_default,self:self24},light_default15=radioLight,common_default19={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},self25=e=>{const{cardColor:t,modalColor:r,popoverColor:o,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:d,fontWeightStrong:u,borderRadius:f,lineHeight:v,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:S,dividerColor:y,heightSmall:C,opacityDisabled:R,tableColorStriped:H}=e;return Object.assign(Object.assign({},common_default19),{actionDividerColor:y,lineHeight:v,borderRadius:f,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:S,borderColor:composite(t,y),tdColorHover:composite(t,l),tdColorStriped:composite(t,H),thColor:composite(t,a),thColorHover:composite(composite(t,a),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:u,thButtonColorHover:l,thIconColor:s,thIconColorActive:d,borderColorModal:composite(r,y),tdColorHoverModal:composite(r,l),tdColorStripedModal:composite(r,H),thColorModal:composite(r,a),thColorHoverModal:composite(composite(r,a),l),tdColorModal:r,borderColorPopover:composite(o,y),tdColorHoverPopover:composite(o,l),tdColorStripedPopover:composite(o,H),thColorPopover:composite(o,a),thColorHoverPopover:composite(composite(o,a),l),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:d,loadingSize:C,opacityLoading:R})},dataTableLight=createTheme({name:"DataTable",common:light_default,peers:{Button:light_default8,Checkbox:light_default10,Radio:light_default15,Pagination:light_default12,Scrollbar:light_default3,Empty:light_default2,Popover:light_default5,Ellipsis:light_default14},self:self25}),dataTableDark={name:"DataTable",common:dark_default,peers:{Button:dark_default17,Checkbox:dark_default22,Radio:dark_default31,Pagination:dark_default28,Scrollbar:dark_default3,Empty:dark_default2,Popover:dark_default5,Ellipsis:dark_default30},self(e){const t=self25(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}},dark_default32=dataTableDark,common_default20={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"},self26=e=>{const{primaryColor:t,textColor2:r,dividerColor:o,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:u,fontSizeHuge:f,heightSmall:v,heightMedium:g,heightLarge:m,heightHuge:S,textColor3:y,opacityDisabled:C}=e;return Object.assign(Object.assign({},common_default20),{optionHeightSmall:v,optionHeightMedium:g,optionHeightLarge:m,optionHeightHuge:S,borderRadius:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:r,prefixColor:r,optionColorHover:n,optionColorActive:changeColor(t,{alpha:.1}),groupHeaderTextColor:y,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:C})},dropdownLight=createTheme({name:"Dropdown",common:light_default,peers:{Popover:light_default5},self:self26}),light_default16=dropdownLight,dropdownDark={name:"Dropdown",common:dark_default,peers:{Popover:dark_default5},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:o}=e,n=self26(e);return n.colorInverted=o,n.optionColorActive=changeColor(r,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},dark_default33=dropdownDark,self27=e=>{const{textColorBase:t,opacity1:r,opacity2:o,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:o,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}},iconDark={name:"Icon",common:dark_default,self:self27},dark_default34=iconDark,common_default21={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},self28=e=>{const{popoverColor:t,textColor2:r,primaryColor:o,hoverColor:n,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:d,iconColorDisabled:u}=e;return Object.assign(Object.assign({},common_default21),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:r,itemTextColorActive:o,itemColorHover:n,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:d,iconColorDisabled:u})},timePickerLight=createTheme({name:"TimePicker",common:light_default,peers:{Scrollbar:light_default3,Button:light_default8,Input:light_default7},self:self28}),light_default17=timePickerLight,timePickerDark={name:"TimePicker",common:dark_default,peers:{Scrollbar:dark_default3,Button:dark_default17,Input:dark_default10},self:self28},dark_default35=timePickerDark,common_default22={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",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0"},self29=e=>{const{hoverColor:t,fontSize:r,textColor2:o,textColorDisabled:n,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:d,textColor1:u,dividerColor:f,boxShadow2:v,borderRadius:g,fontWeightStrong:m}=e;return Object.assign(Object.assign({},common_default22),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:o,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:changeColor(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:o,arrowColor:s,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:v,panelBorderRadius:g,calendarTitleFontWeight:m,scrollItemBorderRadius:g,iconColor:s,iconColorDisabled:d})},datePickerLight=createTheme({name:"DatePicker",common:light_default,peers:{Input:light_default7,Button:light_default8,TimePicker:light_default17,Scrollbar:light_default3},self:self29}),datePickerDark={name:"DatePicker",common:dark_default,peers:{Input:dark_default10,Button:dark_default17,TimePicker:dark_default35,Scrollbar:dark_default3},self(e){const{popoverColor:t,hoverColor:r,primaryColor:o}=e,n=self29(e);return n.itemColorDisabled=composite(t,r),n.itemColorIncluded=changeColor(o,{alpha:.15}),n.itemColorHover=composite(t,r),n}},dark_default36=datePickerDark,common_default23={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"},self30=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:o,cardColor:n,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:g}=e;return Object.assign(Object.assign({},common_default23),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:g,titleTextColor:o,thColor:composite(n,t),thColorModal:composite(i,t),thColorPopover:composite(a,t),thTextColor:o,thFontWeight:d,tdTextColor:r,tdColor:n,tdColorModal:i,tdColorPopover:a,borderColor:composite(n,l),borderColorModal:composite(i,l),borderColorPopover:composite(a,l),borderRadius:s})},descriptionsDark={name:"Descriptions",common:dark_default,self:self30},dark_default37=descriptionsDark,common_default24={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:"18px",closeMargin:"22px 28px 0 0",closeMarginIconTop:"12px 18px 0 0"},self31=e=>{const{textColor1:t,textColor2:r,modalColor:o,closeColor:n,closeColorHover:i,closeColorPressed:a,infoColor:l,successColor:s,warningColor:d,errorColor:u,primaryColor:f,dividerColor:v,borderRadius:g,fontWeightStrong:m,lineHeight:S,fontSize:y}=e;return Object.assign(Object.assign({},common_default24),{fontSize:y,lineHeight:S,border:`1px solid ${v}`,titleTextColor:t,textColor:r,color:o,closeColor:n,closeColorHover:i,closeColorPressed:a,iconColor:f,iconColorInfo:l,iconColorSuccess:s,iconColorWarning:d,iconColorError:u,borderRadius:g,titleFontWeight:m})},dialogLight=createTheme({name:"Dialog",common:light_default,peers:{Button:light_default8},self:self31}),light_default18=dialogLight,dialogDark={name:"Dialog",common:dark_default,peers:{Button:dark_default17},self:self31},dark_default38=dialogDark,self32=e=>{const{modalColor:t,textColor2:r,boxShadow3:o}=e;return{color:t,textColor:r,boxShadow:o}},modalLight=createTheme({name:"Modal",common:light_default,peers:{Scrollbar:light_default3,Dialog:light_default18,Card:light_default9},self:self32}),modalDark={name:"Modal",common:dark_default,peers:{Scrollbar:dark_default3,Dialog:dark_default38,Card:dark_default20},self:self32},dark_default39=modalDark,self33=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:o}=e;return{textColor:t,color:r,fontWeight:o}},dividerDark={name:"Divider",common:dark_default,self:self33},dark_default40=dividerDark,self34=e=>{const{modalColor:t,textColor1:r,textColor2:o,boxShadow3:n,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColor:s,closeColorHover:d,closeColorPressed:u}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeColor:s,closeColorHover:d,closeColorPressed:u,closeSize:"18px"}},drawerLight=createTheme({name:"Drawer",common:light_default,peers:{Scrollbar:light_default3},self:self34}),drawerDark={name:"Drawer",common:dark_default,peers:{Scrollbar:dark_default3},self:self34},dark_default41=drawerDark,common_default25={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},dynamicInputDark={name:"DynamicInput",common:dark_default,peers:{Input:dark_default10,Button:dark_default17},self(){return common_default25}},dark_default42=dynamicInputDark,common_default26={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},spaceDark={name:"Space",self(){return common_default26}},dark_default43=spaceDark,dynamicTagsDark={name:"DynamicTags",common:dark_default,peers:{Input:dark_default10,Button:dark_default17,Tag:dark_default6,Space:dark_default43},self(){return{inputWidth:"64px"}}},dark_default44=dynamicTagsDark,elementDark={name:"Element",common:dark_default},dark_default45=elementDark,common_default27={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 8px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right"},self35=e=>{const{heightSmall:t,heightMedium:r,heightLarge:o,textColor1:n,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},common_default27),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:o,lineHeight:l,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},formItemDark={name:"Form",common:dark_default,self:self35},dark_default46=formItemDark,gradientTextDark={name:"GradientText",common:dark_default,self(e){const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:o,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:r,colorEndSuccess:l}}},dark_default47=gradientTextDark,self36=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},iconDark2={name:"IconWrapper",common:dark_default,self:self36},dark_default48=iconDark2,buttonGroupDark={name:"ButtonGroup",common:dark_default},dark_default49=buttonGroupDark,inputNumberDark={name:"InputNumber",common:dark_default,peers:{Button:dark_default17,Input:dark_default10},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},dark_default50=inputNumberDark,layoutDark={name:"Layout",common:dark_default,peers:{Scrollbar:dark_default3},self(e){const{textColor2:t,bodyColor:r,popoverColor:o,cardColor:n,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:composite(r,a),siderToggleBarColorHover:composite(r,l),__invertScrollbar:"false"}}},dark_default51=layoutDark,self37=e=>{const{textColor2:t,cardColor:r,modalColor:o,popoverColor:n,dividerColor:i,borderRadius:a,fontSize:l}=e;return{textColor:t,color:r,colorModal:o,colorPopover:n,borderColor:i,borderColorModal:composite(o,i),borderColorPopover:composite(n,i),borderRadius:a,fontSize:l}},listDark={name:"List",common:dark_default,self:self37},dark_default52=listDark,loadingBarDark={name:"LoadingBar",common:dark_default,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},dark_default53=loadingBarDark,logDark={name:"Log",common:dark_default,peers:{Scrollbar:dark_default3,Code:dark_default24},self(e){const{textColor2:t,inputColor:r,fontSize:o,primaryColor:n}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:n}}},dark_default54=logDark,listDark2={name:"Mention",common:dark_default,peers:{InternalSelectMenu:dark_default4,Input:dark_default10},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},dark_default55=listDark2;function createPartialInvertedVars(e,t,r,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,groupTextColorInverted:o}}var self38=e=>{const{borderRadius:t,textColor3:r,primaryColor:o,textColor2:n,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:d}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:s,itemColorActive:changeColor(o,{alpha:.1}),itemColorActiveHover:changeColor(o,{alpha:.1}),itemColorActiveCollapsed:changeColor(o,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},createPartialInvertedVars("#BBB",o,"#FFF","#AAA"))},menuLight=createTheme({name:"Menu",common:light_default,peers:{Tooltip:light_default13,Dropdown:light_default16},self:self38}),menuDark={name:"Menu",common:dark_default,peers:{Tooltip:dark_default29,Dropdown:dark_default33},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,o=self38(e);return o.itemColorActive=changeColor(t,{alpha:.15}),o.itemColorActiveHover=changeColor(t,{alpha:.15}),o.itemColorActiveCollapsed=changeColor(t,{alpha:.15}),o.itemColorActiveInverted=r,o.itemColorActiveHoverInverted=r,o.itemColorActiveCollapsedInverted=r,o}},dark_default56=menuDark,common_default28={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 12px",closeSize:"16px",iconSize:"20px",fontSize:"14px"},self39=e=>{const{textColor2:t,closeColor:r,closeColorHover:o,closeColorPressed:n,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:d,boxShadow2:u,primaryColor:f,lineHeight:v,borderRadius:g}=e;return Object.assign(Object.assign({},common_default28),{textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:d,colorInfo:d,colorSuccess:d,colorError:d,colorWarning:d,colorLoading:d,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColor:r,closeColorHover:o,closeColorPressed:n,closeColorInfo:r,closeColorHoverInfo:o,closeColorPressedInfo:n,closeColorSuccess:r,closeColorHoverSuccess:o,closeColorPressedSuccess:n,closeColorError:r,closeColorHoverError:o,closeColorPressedError:n,closeColorWarning:r,closeColorHoverWarning:o,closeColorPressedWarning:n,closeColorLoading:r,closeColorHoverLoading:o,closeColorPressedLoading:n,loadingColor:f,lineHeight:v,borderRadius:g})},messageDark={name:"Message",common:dark_default,self:self39},dark_default57=messageDark,common_default29={closeMargin:"18px 14px",closeSize:"16px",width:"365px",padding:"16px"},self40=e=>{const{textColor2:t,successColor:r,infoColor:o,warningColor:n,errorColor:i,popoverColor:a,closeColor:l,closeColorHover:s,textColor1:d,textColor3:u,borderRadius:f,fontWeightStrong:v,boxShadow2:g,lineHeight:m,fontSize:S}=e;return Object.assign(Object.assign({},common_default29),{borderRadius:f,lineHeight:m,fontSize:S,headerFontWeight:v,iconColor:t,iconColorSuccess:r,iconColorInfo:o,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeColor:l,closeColorHover:s,closeColorPressed:l,headerTextColor:d,descriptionTextColor:u,actionTextColor:t,boxShadow:g})},notificationLight=createTheme({name:"Notification",common:light_default,peers:{Scrollbar:light_default3},self:self40}),notificationDark={name:"Notification",common:dark_default,peers:{Scrollbar:dark_default3},self:self40},dark_default58=notificationDark,common_default30={titleFontSize:"18px",backSize:"22px"};function self41(e){const{textColor1:t,textColor2:r,textColor3:o,fontSize:n,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},common_default30),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:l,subtitleTextColor:o})}var pageHeaderLight=createTheme({name:"PageHeader",common:light_default,self:self41}),pageHeaderDark={name:"PageHeader",common:dark_default,self:self41},common_default31={iconSize:"22px"},self42=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},common_default31),{fontSize:t,iconColor:r})},popconfirmLight=createTheme({name:"Popconfirm",common:light_default,peers:{Button:light_default8,Popover:light_default5},self:self42}),popconfirmDark={name:"Popconfirm",common:dark_default,peers:{Button:dark_default17,Popover:dark_default5},self:self42},dark_default59=popconfirmDark,popselect={name:"Popselect",common:dark_default,peers:{Popover:dark_default5,InternalSelectMenu:dark_default4}},dark_default60=popselect,self43=e=>{const{infoColor:t,successColor:r,warningColor:o,errorColor:n,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:o,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:o,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressLight={name:"Progress",common:light_default,self:self43},light_default19=progressLight,progressDark={name:"Progress",common:dark_default,self(e){const t=self43(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}},dark_default61=progressDark,rateDark={name:"Rate",common:dark_default,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},dark_default62=rateDark,common_default32={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},self44=e=>{const{textColor2:t,textColor1:r,errorColor:o,successColor:n,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},common_default32),{lineHeight:l,titleFontWeight:s,titleTextColor:r,textColor:t,iconColorError:o,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:a})},resultDark={name:"Result",common:dark_default,self:self44},dark_default63=resultDark,common_default33={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},sliderDark={name:"Slider",common:dark_default,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:o,primaryColorSuppl:n,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:d,opacityDisabled:u}=e;return Object.assign(Object.assign({},common_default33),{fontSize:d,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:o,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:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},dark_default64=sliderDark,self45=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,primaryColor:n,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:d,fontSize:u,opacityDisabled:f}=e;return Object.assign(Object.assign({},common_default33),{fontSize:u,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,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:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:d,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:light_default,self:self45},light_default20=sliderLight,self46=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:o,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:r,sizeSmall:o,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},spinDark={name:"Spin",common:dark_default,self:self46},dark_default65=spinDark,self47=e=>{const{textColor2:t,textColor3:r,fontSize:o,fontWeight:n}=e;return{labelFontSize:o,labelFontWeight:n,valueFontWeight:n,labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},statisticDark={name:"Statistic",common:dark_default,self:self47},dark_default66=statisticDark,common_default34={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},self48=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:o,primaryColor:n,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},common_default34),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:o,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:o,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:n,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})},stepsDark={name:"Steps",common:dark_default,self:self48},dark_default67=stepsDark,common_default35={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"},switchDark={name:"Switch",common:dark_default,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:o,primaryColor:n,textColor2:i,baseColor:a}=e,l="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},common_default35),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:l,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${changeColor(n,{alpha:.3})}`})}},dark_default68=switchDark,common_default36={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},self49=e=>{const{dividerColor:t,cardColor:r,modalColor:o,popoverColor:n,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:d,fontWeightStrong:u,lineHeight:f,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m}=e;return Object.assign(Object.assign({},common_default36),{fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m,lineHeight:f,borderRadius:d,borderColor:composite(r,t),borderColorModal:composite(o,t),borderColorPopover:composite(n,t),tdColor:r,tdColorModal:o,tdColorPopover:n,tdColorStriped:composite(r,a),tdColorStripedModal:composite(o,a),tdColorStripedPopover:composite(n,a),thColor:composite(r,i),thColorModal:composite(o,i),thColorPopover:composite(n,i),thTextColor:l,tdTextColor:s,thFontWeight:u})},tableDark={name:"Table",common:dark_default,self:self49},dark_default69=tableDark,common_default37={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0"},self50=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:o,closeColor:n,closeColorHover:i,closeColorPressed:a,tabColor:l,baseColor:s,dividerColor:d,fontWeight:u,textColor1:f,borderRadius:v,fontSize:g,fontWeightStrong:m}=e;return Object.assign(Object.assign({},common_default37),{colorSegment:l,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:o,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:f,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:o,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:r,tabTextColorDisabledCard:o,barColor:r,closeColor:n,closeColorHover:i,closeColorPressed:a,tabColor:l,tabColorSegment:s,tabBorderColor:d,tabFontWeightActive:u,tabFontWeight:u,tabBorderRadius:v,paneTextColor:t,fontWeightStrong:m})},tabsDark={name:"Tabs",common:dark_default,self(e){const t=self50(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},dark_default70=tabsDark,self51=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:o,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:r,titleFontWeight:o}},thingDark={name:"Thing",common:dark_default,self:self51},dark_default71=thingDark,common_default38={titleMarginMedium:"0",titleMarginLarge:"-2px 0 0 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},timelineDark={name:"Timeline",common:dark_default,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:o,successColorSuppl:n,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:d,fontSize:u}=e;return Object.assign(Object.assign({},common_default38),{contentFontSize:u,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:o,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},dark_default72=timelineDark,common_default39={extraFontSize:"12px",width:"440px"},transferDark={name:"Transfer",common:dark_default,peers:{Checkbox:dark_default22,Scrollbar:dark_default3,Input:dark_default10,Empty:dark_default2,Button:dark_default17},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:o,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:d,borderRadius:u,inputColor:f,tableHeaderColor:v,textColor1:g,textColorDisabled:m,textColor2:S,hoverColor:y}=e;return Object.assign(Object.assign({},common_default39),{itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:v,titleTextColor:g,titleTextColorDisabled:m,extraTextColor:S,filterDividerColor:"#0000",itemTextColor:S,itemTextColorDisabled:m,itemColorPending:y,titleFontWeight:o,iconColor:r,iconColorDisabled:t})}},dark_default73=transferDark,self52=e=>{const{borderRadiusSmall:t,hoverColor:r,pressedColor:o,primaryColor:n,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:o,nodeColorActive:changeColor(n,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:n,dropMarkColor:n}},treeLight=createTheme({name:"Tree",common:light_default,peers:{Checkbox:light_default10,Scrollbar:light_default3,Empty:light_default2},self:self52}),light_default21=treeLight,treeDark={name:"Tree",common:dark_default,peers:{Checkbox:dark_default22,Scrollbar:dark_default3,Empty:dark_default2},self(e){const{primaryColor:t}=e,r=self52(e);return r.nodeColorActive=changeColor(t,{alpha:.15}),r}},dark_default74=treeDark,treeSelectDark={name:"TreeSelect",common:dark_default,peers:{Tree:dark_default74,Empty:dark_default2,InternalSelection:dark_default7}},dark_default75=treeSelectDark,common_default40={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"},self53=e=>{const{primaryColor:t,textColor2:r,borderColor:o,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:d,textColor3:u,infoColor:f,warningColor:v,errorColor:g,successColor:m,codeColor:S}=e;return Object.assign(Object.assign({},common_default40),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:o,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:d,pTextColor:r,pTextColor1Depth:d,pTextColor2Depth:r,pTextColor3Depth:u,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:g,headerBarColorWarning:v,headerBarColorSuccess:m,textColor:r,textColor1Depth:d,textColor2Depth:r,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:m,textColorWarning:v,textColorError:g,codeTextColor:r,codeColor:S,codeBorder:"1px solid #0000"})},typographyDark={name:"Typography",common:dark_default,self:self53},dark_default76=typographyDark,self54=e=>{const{iconColor:t,primaryColor:r,errorColor:o,textColor2:n,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:d,lineHeight:u,borderRadius:f,fontSize:v}=e;return{fontSize:v,lineHeight:u,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:d,itemColorHoverError:changeColor(o,{alpha:.06}),itemTextColor:n,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${s}`}},uploadLight=createTheme({name:"Upload",common:light_default,peers:{Button:light_default8,Progress:light_default19},self:self54}),uploadDark={name:"Upload",common:dark_default,peers:{Button:dark_default17,Progress:dark_default61},self(e){const{errorColor:t}=e,r=self54(e);return r.itemColorHoverError=changeColor(t,{alpha:.09}),r}},dark_default77=uploadDark,watermarkDark={name:"Watermark",common:dark_default,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},dark_default78=watermarkDark,imageDark={name:"Image",common:dark_default,peers:{Tooltip:dark_default29},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},skeletonDark={name:"Skeleton",common:dark_default,self(e){const{heightSmall:t,heightMedium:r,heightLarge:o,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:r,heightLarge:o}}};function isTouchEvent(e){return window.TouchEvent&&e instanceof window.TouchEvent}function useRefs(){const e=ref(new Map),t=r=>o=>{e.value.set(r,o)};return onBeforeUpdate(()=>e.value.clear()),[e,t]}var index_cssr_default10=c2([cB("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;
`,[cM("reverse",[cB("slider-handles",[cB("slider-handle",`
transform: translate(50%, -50%);
`)]),cB("slider-dots",[cB("slider-dot",`
transform: translateX(50%, -50%);
`)]),cM("vertical",[cB("slider-handles",[cB("slider-handle",`
transform: translate(-50%, -50%);
`)]),cB("slider-marks",[cB("slider-mark",`
transform: translateY(calc(-50% + var(--n-dot-height) / 2));
`)]),cB("slider-dots",[cB("slider-dot",`
transform: translateX(-50%) translateY(0);
`)])])]),cM("vertical",`
padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
width: var(--n-rail-width-vertical);
height: 100%;
`,[cB("slider-handles",`
top: calc(var(--n-handle-size) / 2);
right: 0;
bottom: calc(var(--n-handle-size) / 2);
left: 0;
`,[cB("slider-handle",`
top: unset;
left: 50%;
transform: translate(-50%, 50%);
`)]),cB("slider-rail",`
height: 100%;
`,[cE("fill",`
top: unset;
right: 0;
bottom: unset;
left: 0;
`)]),cM("with-mark",`
width: var(--n-rail-width-vertical);
margin: 0 32px 0 8px;
`),cB("slider-marks",`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 22px;
`,[cB("slider-mark",`
transform: translateY(50%);
white-space: nowrap;
`)]),cB("slider-dots",`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 50%;
`,[cB("slider-dot",`
transform: translateX(-50%) translateY(50%);
`)])]),cM("disabled",`
cursor: not-allowed;
opacity: var(--n-opacity-disabled);
`,[cB("slider-handle",`
cursor: not-allowed;
`)]),cM("with-mark",`
width: 100%;
margin: 8px 0 32px 0;
`),c2("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
position: absolute;
top: 18px;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[cB("slider-mark",{position:"absolute",transform:"translateX(-50%)"})]),cB("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);
`,[cE("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);
`)]),cB("slider-handles",`
position: absolute;
top: 0;
right: calc(var(--n-handle-size) / 2);
bottom: 0;
left: calc(var(--n-handle-size) / 2);
`,[cB("slider-handle",`
outline: none;
height: var(--n-handle-size);
width: var(--n-handle-size);
border-radius: 50%;
transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
overflow: hidden;
cursor: pointer;
background-color: var(--n-handle-color);
box-shadow: var(--n-handle-box-shadow);
`,[c2("&:hover",{boxShadow:"var(--n-handle-box-shadow-hover)"}),c2("&:hover:focus",{boxShadow:"var(--n-handle-box-shadow-active)"}),c2("&:focus",{boxShadow:"var(--n-handle-box-shadow-focus)"})])]),cB("slider-dots",`
position: absolute;
top: 50%;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[cM("transition-disabled",[cB("slider-dot",{transition:"none"})]),cB("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);
`,[cM("active",{border:"var(--n-dot-border-active)"})])])]),cB("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);
`,[fade_in_scale_up_cssr_default()]),cB("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);
`,[cM("top",`
margin-bottom: 12px;
`),cM("right",`
margin-left: 12px;
`),cM("bottom",`
margin-top: 12px;
`),cM("left",`
margin-right: 12px;
`),fade_in_scale_up_cssr_default()]),insideModal(cB("slider",[cB("slider-dot",{backgroundColor:"var(--n-dot-color-modal)"})])),insidePopover(cB("slider",[cB("slider-dot",{backgroundColor:"var(--n-dot-color-popover)"})]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},use_theme_default.props),{to:useAdjustedTo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,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]}),Slider_default=defineComponent({name:"Slider",props:sliderProps,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:o}=useConfig(e),n=use_theme_default("Slider","-slider",index_cssr_default10,light_default20,e,t),i=ref(null),[a,l]=useRefs(),[s,d]=useRefs(),u=ref(new Set),f=useFormItem(e),{mergedDisabledRef:v}=f,g=computed2(()=>{const{step:_}=e;if(_<=0||_==="mark")return 0;const D=_.toString();let B=0;return D.includes(".")&&(B=D.length-D.indexOf(".")-1),B}),m=ref(e.defaultValue),S=toRef(e,"value"),y=useMergedState(S,m),C=computed2(()=>{const{value:_}=y;return(e.range?_:[_]).map(_e)}),R=computed2(()=>C.value.length>2),H=computed2(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),T=computed2(()=>{const{marks:_}=e;return _?Object.keys(_).map(parseFloat):null}),w=ref(-1),$=ref(-1),x=ref(-1),P=ref(!1),I=ref(!1),z=computed2(()=>{const{vertical:_,reverse:D}=e;return _?D?"top":"bottom":D?"right":"left"}),F=computed2(()=>{if(R.value)return;const _=C.value,D=ye(e.range?Math.min(..._):e.min),B=ye(e.range?Math.max(..._):_[0]),{value:G}=z;return e.vertical?{[G]:`${D}%`,height:`${B-D}%`}:{[G]:`${D}%`,width:`${B-D}%`}}),M=computed2(()=>{const _=[],{marks:D}=e;if(D){const B=C.value.slice();B.sort((se,L)=>se-L);const{value:G}=z,{value:te}=R,{range:le}=e,fe=te?()=>!1:se=>le?se>=B[0]&&se<=B[B.length-1]:se<=B[0];for(const se of Object.keys(D)){const L=Number(se);_.push({active:fe(L),label:D[se],style:{[G]:`${ye(L)}%`}})}}return _});function ne(_,D){const B=ye(_),{value:G}=z;return{[G]:`${B}%`,zIndex:D===w.value?1:0}}function Q(_){return e.showTooltip||x.value===_||w.value===_&&P.value}function ee(_){return!(w.value===_&&$.value===_)}function Z(_){var D;~_&&(w.value=_,(D=a.value.get(_))===null||D===void 0||D.focus())}function Y(){s.value.forEach((_,D)=>{Q(D)&&_.syncPosition()})}function re(_){const{"onUpdate:value":D,onUpdateValue:B}=e,{nTriggerFormInput:G,nTriggerFormChange:te}=f;B&&call(B,_),D&&call(D,_),m.value=_,G(),te()}function de(_){const{range:D}=e;if(D){if(Array.isArray(_)){const{value:B}=C;_.join()!==B.join()&&re(_)}}else Array.isArray(_)||C.value[0]!==_&&re(_)}function pe(_,D){if(e.range){const B=C.value.slice();B.splice(D,1,_),de(B)}else de(_)}function me(_,D,B){const G=B!==void 0;B||(B=_-D>0?1:-1);const te=T.value||[],{step:le}=e;if(le==="mark"){const L=ge(_,te.concat(D),G?B:void 0);return L?L.value:D}if(le<=0)return D;const{value:fe}=g;let se;if(G){const L=Number((D/le).toFixed(fe)),J=Math.floor(L),ae=L>J?J:J-1,be=L<J?J:J+1;se=ge(D,[Number((ae*le).toFixed(fe)),Number((be*le).toFixed(fe)),...te],B)}else{const L=Oe(_);se=ge(_,[...te,L])}return se?_e(se.value):D}function _e(_){return Math.min(e.max,Math.max(e.min,_))}function ye(_){const{max:D,min:B}=e;return(_-B)/(D-B)*100}function we(_){const{max:D,min:B}=e;return B+(D-B)*_}function Oe(_){const{step:D,min:B}=e;if(D<=0||D==="mark")return _;const G=Math.round((_-B)/D)*D+B;return Number(G.toFixed(g.value))}function ge(_,D=T.value,B){if(!D||!D.length)return null;let G=null,te=-1;for(;++te<D.length;){const le=D[te]-_,fe=Math.abs(le);(B===void 0||le*B>0)&&(G===null||fe<G.distance)&&(G={index:te,distance:fe,value:D[te]})}return G}function Te(_){const D=i.value;if(!D)return;const B=isTouchEvent(_)?_.touches[0]:_,G=D.getBoundingClientRect();let te;return e.vertical?te=(G.bottom-B.clientY)/G.height:te=(B.clientX-G.left)/G.width,e.reverse&&(te=1-te),we(te)}function Pe(_){if(v.value)return;const{vertical:D,reverse:B}=e;switch(_.code){case"ArrowUp":_.preventDefault(),ue(D&&B?-1:1);break;case"ArrowRight":_.preventDefault(),ue(!D&&B?-1:1);break;case"ArrowDown":_.preventDefault(),ue(D&&B?1:-1);break;case"ArrowLeft":_.preventDefault(),ue(!D&&B?1:-1);break}}function ue(_){const D=w.value;if(D===-1)return;const{step:B}=e,G=C.value[D],te=B<=0||B==="mark"?G:G+B*_;pe(me(te,G,_>0?1:-1),D)}function Ae(_){var D,B;if(v.value||!isTouchEvent(_)&&_.button!==eventButtonLeft)return;const G=Te(_);if(G===void 0)return;const te=C.value.slice(),le=e.range?(B=(D=ge(G,te))===null||D===void 0?void 0:D.index)!==null&&B!==void 0?B:-1:0;le!==-1&&(_.preventDefault(),Z(le),$e(),pe(me(G,C.value[le]),le))}function $e(){P.value||(P.value=!0,on("touchend",document,b),on("mouseup",document,b),on("touchmove",document,Re),on("mousemove",document,Re))}function Be(){P.value&&(P.value=!1,off("touchend",document,b),off("mouseup",document,b),off("touchmove",document,Re),off("mousemove",document,Re))}function Re(_){const{value:D}=w;if(!P.value||D===-1){Be();return}const B=Te(_);pe(me(B,C.value[D]),D)}function b(){Be()}function k(_){w.value=_,v.value||(x.value=_)}function O(_){w.value===_&&(w.value=-1,Be()),x.value===_&&(x.value=-1)}function W(_){x.value=_}function K(_){x.value===_&&(x.value=-1)}watch(w,(_,D)=>void nextTick(()=>$.value=D)),watch(y,()=>{if(e.marks){if(I.value)return;I.value=!0,nextTick(()=>{I.value=!1})}nextTick(Y)});const V=computed2(()=>{const{self:{railColor:_,railColorHover:D,fillColor:B,fillColorHover:G,handleColor:te,opacityDisabled:le,dotColor:fe,dotColorModal:se,handleBoxShadow:L,handleBoxShadowHover:J,handleBoxShadowActive:ae,handleBoxShadowFocus:be,dotBorder:Ce,dotBoxShadow:ze,railHeight:xe,railWidthVertical:ve,handleSize:Me,dotHeight:Ne,dotWidth:Ye,dotBorderRadius:Ke,fontSize:Ve,dotBorderActive:qe,dotColorPopover:Xe},common:{cubicBezierEaseInOut:Ge}}=n.value;return{"--n-bezier":Ge,"--n-dot-border":Ce,"--n-dot-border-active":qe,"--n-dot-border-radius":Ke,"--n-dot-box-shadow":ze,"--n-dot-color":fe,"--n-dot-color-modal":se,"--n-dot-color-popover":Xe,"--n-dot-height":Ne,"--n-dot-width":Ye,"--n-fill-color":B,"--n-fill-color-hover":G,"--n-font-size":Ve,"--n-handle-box-shadow":L,"--n-handle-box-shadow-active":ae,"--n-handle-box-shadow-focus":be,"--n-handle-box-shadow-hover":J,"--n-handle-color":te,"--n-handle-size":Me,"--n-opacity-disabled":le,"--n-rail-color":_,"--n-rail-color-hover":D,"--n-rail-height":xe,"--n-rail-width-vertical":ve}}),U=o?useThemeClass("slider",void 0,V,e):void 0,N=computed2(()=>{const{self:{fontSize:_,indicatorColor:D,indicatorBoxShadow:B,indicatorTextColor:G,indicatorBorderRadius:te}}=n.value;return{"--n-font-size":_,"--n-indicator-border-radius":te,"--n-indicator-box-shadow":B,"--n-indicator-color":D,"--n-indicator-text-color":G}}),q=o?useThemeClass("slider-indicator",void 0,N,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:m,mergedValue:y,mergedDisabled:v,mergedPlacement:H,isMounted:isMounted(),adjustedTo:useAdjustedTo(e),dotTransitionDisabled:I,markInfos:M,isShowTooltip:Q,isSkipCSSDetection:ee,handleRailRef:i,setHandleRefs:l,setFollowerRefs:d,fillStyle:F,getHandleStyle:ne,activeIndex:w,arrifiedValues:C,followerEnabledIndexSet:u,handleRailMouseDown:Ae,handleHandleFocus:k,handleHandleBlur:O,handleHandleMouseEnter:W,handleHandleMouseLeave:K,handleRailKeyDown:Pe,indicatorCssVars:o?void 0:N,indicatorThemeClass:q==null?void 0:q.themeClass,indicatorOnRender:q==null?void 0:q.onRender,cssVars:o?void 0:V,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h("div",{class:[`${t}-slider`,r,{[`${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},h("div",{class:`${t}-slider-rail`},h("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(n=>h("div",{key:n.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:n.active}],style:n.style}))):null,h("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((n,i)=>{const a=this.isShowTooltip(i);return h(Binder_default,null,{default:()=>[h(Target_default,null,{default:()=>h("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(n,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)})}),this.tooltip&&h(Follower_default,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.isSkipCSSDetection(i),onEnter:()=>this.followerEnabledIndexSet.add(i),onAfterLeave:()=>this.followerEnabledIndexSet.delete(i)},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),h("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof o=="function"?o(n):n)):null}})})]})})),this.marks?h("div",{class:`${t}-slider-marks`},this.markInfos.map(n=>h("div",{key:n.label,class:`${t}-slider-mark`,style:n.style},n.label))):null))}}),treeSelectInjectionKey=createInjectionKey("n-tree-select"),treeInjectionKey=createInjectionKey("n-tree"),TreeNodeSwitcher_default=defineComponent({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=inject(treeInjectionKey,null);return()=>{const{clsPrefix:r}=e;return h("span",{"data-switcher":!0,class:[`${r}-tree-node-switcher`,{[`${r}-tree-node-switcher--expanded`]:e.expanded,[`${r}-tree-node-switcher--hide`]:e.hide}],onClick:e.onClick},h("div",{class:`${r}-tree-node-switcher__icon`},h(IconSwitchTransition_default,null,{default:()=>{if(e.loading)return h(Loading_default,{clsPrefix:r,key:"loading",radius:85,strokeWidth:20});const{value:o}=t;return o?o():h(Icon_default,{clsPrefix:r,key:"switcher"},{default:()=>h(Switcher_default,null)})}})))}}}),TreeNodeCheckbox_default=defineComponent({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=inject(treeInjectionKey);function r(n){const{onCheck:i}=e;if(i)return i(n)}function o(n){e.indeterminate?r(!1):r(n)}return{handleUpdateValue:o,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:r,indeterminate:o,disabled:n,focusable:i,handleUpdateValue:a}=this;return h("span",{class:`${e}-tree-node-checkbox`,"data-checkbox":!0},h(Checkbox_default,{focusable:i,disabled:n,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:r,indeterminate:o,onUpdateChecked:a}))}}),TreeNodeContent_default=defineComponent({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){const{renderLabelRef:t,renderPrefixRef:r,renderSuffixRef:o,labelFieldRef:n}=inject(treeInjectionKey),i=ref(null);function a(s){const{onClick:d}=e;d&&d(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:r,renderSuffix:o,labelField:n,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:r,checked:o=!1,selected:n=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:d,tmNode:{rawNode:u,rawNode:{prefix:f,suffix:v,[t]:g}}}=this;return h("span",Object.assign({},r,{ref:"selfRef",class:[`${e}-tree-node-content`,r==null?void 0:r.class],onClick:s,draggable:d===void 0?void 0:!0,onDragstart:d}),a||f?h("div",{class:`${e}-tree-node-content__prefix`},a?a({option:u,selected:n,checked:o}):render(f)):null,h("div",{class:`${e}-tree-node-content__text`},i?i({option:u,selected:n,checked:o}):render(g)),l||v?h("div",{class:`${e}-tree-node-content__suffix`},l?l({option:u,selected:n,checked:o}):render(v)):null)}});function renderDropMark({position:e,offsetLevel:t,indent:r,el:o}){const n={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")n.left=0,n.top=0,n.bottom=0,n.borderRadius="inherit",n.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";n[i]=0,n.left=`${o.offsetLeft+6-t*r}px`,n.height="2px",n.backgroundColor="var(--n-drop-mark-color)",n.transformOrigin=i,n.borderRadius="1px",n.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return h("div",{style:n})}function defaultAllowDrop({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}var TreeNode=defineComponent({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=inject(treeInjectionKey),{droppingNodeParentRef:r,droppingMouseNodeRef:o,draggingNodeRef:n,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:d}=t,u=computed2(()=>t.disabledRef.value||e.tmNode.disabled),f=computed2(()=>{const{value:z}=l;if(!!z)return z({option:e.tmNode.rawNode})}),v=ref(null),g={value:null};onMounted(()=>{g.value=v.value.$el});function m(){const{tmNode:z}=e;if(!z.isLeaf&&!z.shallowLoaded){t.loadingKeysRef.value.has(z.key)||t.loadingKeysRef.value.add(z.key);const{onLoadRef:{value:F}}=t;F&&F(z.rawNode).then(()=>{t.handleSwitcherClick(z)}).finally(()=>{t.loadingKeysRef.value.delete(z.key)})}else t.handleSwitcherClick(z)}const S=use_memo_default(()=>!e.tmNode.disabled&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0));function y(z){!S.value||happensIn(z,"checkbox")||happensIn(z,"switcher")||t.handleSelect(e.tmNode)}function C(z){var F,M;d.value||(u.value||y(z),(M=(F=f.value)===null||F===void 0?void 0:F.onClick)===null||M===void 0||M.call(F,z))}function R(z){var F,M;!d.value||(u.value||y(z),(M=(F=f.value)===null||F===void 0?void 0:F.onClick)===null||M===void 0||M.call(F,z))}function H(z){t.handleCheck(e.tmNode,z)}function T(z){t.handleDragStart({event:z,node:e.tmNode})}function w(z){z.currentTarget===z.target&&t.handleDragEnter({event:z,node:e.tmNode})}function $(z){z.preventDefault(),t.handleDragOver({event:z,node:e.tmNode})}function x(z){t.handleDragEnd({event:z,node:e.tmNode})}function P(z){z.currentTarget===z.target&&t.handleDragLeave({event:z,node:e.tmNode})}function I(z){z.preventDefault(),i.value!==null&&t.handleDrop({event:z,node:e.tmNode,dropPosition:i.value})}return{showDropMark:use_memo_default(()=>{const{value:z}=n;if(!z)return;const{value:F}=i;if(!F)return;const{value:M}=o;if(!M)return;const{tmNode:ne}=e;return ne.key===M.key}),showDropMarkAsParent:use_memo_default(()=>{const{value:z}=r;if(!z)return!1;const{tmNode:F}=e,{value:M}=i;return M==="before"||M==="after"?z.key===F.key:!1}),pending:use_memo_default(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:use_memo_default(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:use_memo_default(()=>{var z;return(z=t.highlightKeySetRef.value)===null||z===void 0?void 0:z.has(e.tmNode.key)}),checked:use_memo_default(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),indeterminate:use_memo_default(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:use_memo_default(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:use_memo_default(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:u,checkable:computed2(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),checkboxDisabled:computed2(()=>!!e.tmNode.rawNode.checkboxDisabled),selectable:S,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:d,nodeProps:f,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,contentInstRef:v,contentElRef:g,handleCheck:H,handleDrop:I,handleDragStart:T,handleDragEnter:w,handleDragOver:$,handleDragEnd:x,handleDragLeave:P,handleLineClick:R,handleContentClick:C,handleSwitcherClick:m}},render(){const{tmNode:e,clsPrefix:t,checkable:r,selectable:o,selected:n,checked:i,highlight:a,draggable:l,blockLine:s,indent:d,disabled:u,pending:f,internalScrollable:v,nodeProps:g}=this,m=l&&!u?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,S=v?createDataKey(e.key):void 0;return h("div",Object.assign({class:`${t}-tree-node-wrapper`},m),h("div",Object.assign({},s?g:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:n,[`${t}-tree-node--checkable`]:r,[`${t}-tree-node--highlight`]:a,[`${t}-tree-node--pending`]:f,[`${t}-tree-node--disabled`]:u,[`${t}-tree-node--selectable`]:o},g==null?void 0:g.class],"data-key":S,draggable:l&&s,onClick:this.handleLineClick,onDragstart:l&&s&&!u?this.handleDragStart:void 0}),repeat(e.level,h("div",{class:`${t}-tree-node-indent`,style:{flex:`0 0 ${d}px`}})),h(TreeNodeSwitcher_default,{clsPrefix:t,expanded:this.expanded,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),r?h(TreeNodeCheckbox_default,{focusable:this.checkboxFocusable,disabled:u||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null,h(TreeNodeContent_default,{ref:"contentInstRef",clsPrefix:t,checked:i,selected:n,onClick:this.handleContentClick,nodeProps:s?void 0:g,onDragstart:l&&!s&&!u?this.handleDragStart:void 0,tmNode:e}),l?this.showDropMark?renderDropMark({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?renderDropMark({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null))}}),TreeNode_default=TreeNode;function traverse2(e,t,r,o){e==null||e.forEach(n=>{r(n),traverse2(n[t],t,r,o),o(n)})}function keysWithFilter(e,t,r,o,n){const i=new Set,a=new Set,l=[];return traverse2(e,o,s=>{if(l.push(s),n(t,s)){a.add(s[r]);for(let d=l.length-2;d>=0;--d)if(!i.has(l[d][r]))i.add(l[d][r]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}var emptyImage=null;if(typeof window!="undefined"&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function filterTree(e,t,r,o,n){const i=new Set,a=new Set,l=new Set,s=[],d=[],u=[];function f(g){g.forEach(m=>{if(u.push(m),t(r,m)){i.add(m[o]),l.add(m[o]);for(let y=u.length-2;y>=0;--y){const C=u[y][o];if(!a.has(C))a.add(C),i.has(C)&&i.delete(C);else break}}const S=m[n];S&&f(S),u.pop()})}f(e);function v(g,m){g.forEach(S=>{const y=S[o],C=i.has(y),R=a.has(y);if(!C&&!R)return;const H=S[n];if(H)if(C)m.push(S);else{s.push(y);const T=Object.assign(Object.assign({},S),{[n]:[]});m.push(T),v(H,T[n])}else m.push(S)})}return v(e,d),{filteredTree:d,highlightKeySet:l,expandedKeys:s}}function useKeyboard({fNodesRef:e,mergedExpandedKeysRef:t,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:n}){const{value:i}=r,a=inject(treeSelectInjectionKey,null),l=a?a.pendingNodeKeyRef:ref(i.length?i[i.length-1]:null);function s(u){const{value:f}=l;if(f===null){if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(u.code)&&f===null){const{value:v}=e;let g=0;for(;g<v.length;){if(!v[g].disabled){l.value=v[g].key;break}g+=1}}}else{const{value:v}=e;let g=v.findIndex(m=>m.key===f);if(!~g)return;if(u.code==="Enter"||u.code==="NumpadEnter")o(v[g]);else if(u.code==="ArrowDown")for(g+=1;g<v.length;){if(!v[g].disabled){l.value=v[g].key;break}g+=1}else if(u.code==="ArrowUp")for(g-=1;g>=0;){if(!v[g].disabled){l.value=v[g].key;break}g-=1}else if(u.code==="ArrowLeft"){const m=v[g];if(m.isLeaf||!t.value.includes(f)){const S=m.getParent();S&&(l.value=S.key)}else n(m)}else if(u.code==="ArrowRight"){const m=v[g];if(m.isLeaf)return;if(!t.value.includes(f))n(m);else for(g+=1;g<v.length;){if(!v[g].disabled){l.value=v[g].key;break}g+=1}}}}function d(u){switch(u.code){case"ArrowUp":case"ArrowDown":u.preventDefault()}}return{pendingNodeKeyRef:l,handleKeyup:s,handleKeydown:d}}var MotionWrapper_default=defineComponent({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(){const{clsPrefix:e}=this;return h(FadeInExpandTransition_default,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>h("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:pxfy(this.height)}},this.nodes.map(t=>h(TreeNode_default,{clsPrefix:e,tmNode:t})))})}}),index_cssr_default11=cB("tree",`
font-size: var(--n-font-size);
outline: none;
`,[c2("ul, li",`
margin: 0;
padding: 0;
list-style: none;
`),c2(">",[cB("tree-node",[c2("&:first-child",{marginTop:0})])]),cB("tree-node-indent",`
height: 0;
`),cB("tree-motion-wrapper",[cM("expand",[fade_in_height_expand_cssr_default({duration:"0.2s"})]),cM("collapse",[fade_in_height_expand_cssr_default({duration:"0.2s",reverse:!0})])]),cB("tree-node-wrapper",`
box-sizing: border-box;
padding: 3px 0;
`),cB("tree-node",`
position: relative;
display: flex;
border-radius: var(--n-node-border-radius);
transition: background-color .3s var(--n-bezier);
`,[cM("highlight",[cB("tree-node-content",[cE("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),cM("disabled",[cB("tree-node-content",`
color: var(--n-node-text-color-disabled);
cursor: not-allowed;
`)]),cNotM("disabled",[cM("selectable",[cB("tree-node-content",`
cursor: pointer;
`)])])]),cM("block-node",[cB("tree-node-content",`
width: 100%;
`)]),cNotM("block-line",[cB("tree-node",[cNotM("disabled",[cB("tree-node-content",[c2("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),cM("selectable",[cB("tree-node-content",[c2("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),cM("pending",[cB("tree-node-content",`
background-color: var(--n-node-color-hover);
`)]),cM("selected",[cB("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),cM("block-line",[cB("tree-node",[cNotM("disabled",[c2("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),cM("selectable",[c2("&:active",{backgroundColor:"var(--n-node-color-pressed)"})]),cM("pending",`
background-color: var(--n-node-color-hover);
`),cM("selected",{backgroundColor:"var(--n-node-color-active)"})]),cM("disabled",`
cursor: not-allowed;
`)])]),cB("tree-node-switcher",`
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
height: 24px;
width: 24px;
align-items: center;
justify-content: center;
transition: transform .15s var(--n-bezier);
vertical-align: bottom;
`,[cE("icon",`
position: relative;
height: 14px;
width: 14px;
display: flex;
color: var(--n-arrow-color);
transition: color .3s var(--n-bezier);
font-size: 14px;
`,[cB("icon",[icon_switch_cssr_default()]),cB("base-loading",`
color: var(--n-loading-color);
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[icon_switch_cssr_default()]),cB("base-icon",[icon_switch_cssr_default()])]),cM("hide",{visibility:"hidden"}),cM("expanded",{transform:"rotate(90deg)"})]),cB("tree-node-checkbox",`
display: inline-flex;
height: 24px;
width: 16px;
vertical-align: bottom;
align-items: center;
justify-content: center;
margin-right: 4px;
`),cM("checkable",[cB("tree-node-content",`
padding: 0 6px;
`)]),cB("tree-node-content",`
position: relative;
display: inline-flex;
align-items: center;
min-height: 24px;
box-sizing: border-box;
line-height: 1.5;
vertical-align: bottom;
padding: 0 6px 0 4px;
cursor: default;
border-radius: var(--n-node-border-radius);
text-decoration-color: #0000;
text-decoration-line: underline;
color: var(--n-node-text-color);
transition:
color .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[c2("&:last-child",{marginBottom:0}),cE("prefix",`
display: inline-flex;
margin-right: 8px;
`),cE("text",`
border-bottom: 1px solid #0000;
transition: border-color .3s var(--n-bezier);
flex-grow:1;
`),cE("suffix",`
display: inline-flex;
`)]),cE("empty","margin: auto;")]),__awaiter=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function s(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?i(u.value):n(u.value).then(l,s)}d((o=o.apply(e,t||[])).next())})},ITEM_SIZE=30;function createTreeMateOptions(e,t){return{getKey(r){return r[e]},getChildren(r){return r[t]},getDisabled(r){return!!(r.disabled||r.checkboxDisabled)}}}var treeSharedProps={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},treeProps=Object.assign(Object.assign(Object.assign(Object.assign({},use_theme_default.props),{showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine: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},indent:{type:Number,default:16},allowDrop:{type:Function,default:defaultAllowDrop},animated:{type:Boolean,default:!0},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,renderSwitcherIcon:Function,nodeProps: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]}),treeSharedProps),{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}),Tree_default=defineComponent({name:"Tree",props:treeProps,setup(e){watchEffect(()=>{e.leafOnly&&warnOnce("tree",'`leaf-only` is deprecated, please use `check-strategy="child"` instead')});const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=useConfig(e),o=use_theme_default("Tree","-tree",index_cssr_default11,light_default21,e,t),n=ref(null),i=ref(null),a=ref(null);function l(){var A;return(A=a.value)===null||A===void 0?void 0:A.listElRef}function s(){var A;return(A=a.value)===null||A===void 0?void 0:A.itemsElRef}const d=computed2(()=>{const{pattern:A}=e;return A?!A.length||!Ae.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:filterTree(e.data,Ae.value,A,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),u=computed2(()=>createTreeMate(e.showIrrelevantNodes?e.data:d.value.filteredTree,createTreeMateOptions(e.keyField,e.childrenField))),f=inject(treeSelectInjectionKey,null),v=e.internalTreeSelect?f.dataTreeMate:u,{watchProps:g}=e,m=ref([]);(g==null?void 0:g.includes("defaultCheckedKeys"))?watchEffect(()=>{m.value=e.defaultCheckedKeys}):m.value=e.defaultCheckedKeys;const S=toRef(e,"checkedKeys"),y=useMergedState(S,m),C=computed2(()=>v.value.getCheckedKeys(y.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),R=computed2(()=>e.leafOnly?"child":e.checkStrategy),H=computed2(()=>C.value.checkedKeys),T=computed2(()=>{const{indeterminateKeys:A}=e;return A!==void 0?A:C.value.indeterminateKeys}),w=ref([]);(g==null?void 0:g.includes("defaultSelectedKeys"))?watchEffect(()=>{w.value=e.defaultSelectedKeys}):w.value=e.defaultSelectedKeys;const $=toRef(e,"selectedKeys"),x=useMergedState($,w),P=ref([]),I=A=>{P.value=e.defaultExpandAll?v.value.getNonLeafKeys():A===void 0?e.defaultExpandedKeys:A};(g==null?void 0:g.includes("defaultExpandedKeys"))?watchEffect(()=>I(void 0)):watchEffect(()=>I(e.defaultExpandedKeys));const z=toRef(e,"expandedKeys"),F=useMergedState(z,P),M=computed2(()=>u.value.getFlattenedNodes(F.value)),{pendingNodeKeyRef:ne,handleKeyup:Q,handleKeydown:ee}=useKeyboard({mergedSelectedKeysRef:x,fNodesRef:M,mergedExpandedKeysRef:F,handleSelect:xe,handleSwitcherClick:ze});let Z=null,Y=null;const re=ref(new Set),de=computed2(()=>e.internalHighlightKeySet||d.value.highlightKeySet),pe=useMergedState(de,re),me=ref(new Set),_e=computed2(()=>F.value.filter(A=>!me.value.has(A)));let ye=0;const we=ref(null),Oe=ref(null),ge=ref(null),Te=ref(null),Pe=ref(0),ue=computed2(()=>{const{value:A}=Oe;return A?A.parent:null}),Ae=computed2(()=>{const{filter:A}=e;if(A)return A;const{labelField:j}=e;return(oe,ie)=>oe.length?ie[j].toLowerCase().includes(oe.toLowerCase()):!0});watch(toRef(e,"data"),()=>{me.value.clear(),ne.value=null,se()},{deep:!1});let $e;watch(toRef(e,"pattern"),(A,j)=>{if(e.showIrrelevantNodes)if($e=void 0,A){const{expandedKeys:oe,highlightKeySet:ie}=keysWithFilter(e.data,e.pattern,e.keyField,e.childrenField,Ae.value);re.value=ie,U(oe,V(oe))}else re.value=new Set;else if(!A.length)$e!==void 0&&U($e,V($e));else{j.length||($e=F.value);const{expandedKeys:oe}=d.value;oe!==void 0&&U(oe,V(oe))}});function Be(A){return __awaiter(this,void 0,void 0,function*(){const{onLoad:j}=e;if(!j)return warn3("tree","There is unloaded node in data but props.onLoad is not specified."),yield Promise.resolve();const{value:oe}=me;return yield new Promise(ie=>{oe.has(A.key)||(oe.add(A.key),j(A.rawNode).then(()=>{oe.delete(A.key),ie()}).catch(he=>{console.error(he),ae()}))})})}watchEffect(()=>{var A;const{value:j}=u;if(!j)return;const{getNode:oe}=j;(A=F.value)===null||A===void 0||A.forEach(ie=>{const he=oe(ie);he&&!he.shallowLoaded&&Be(he)})});const Re=ref(!1),b=ref([]);watch(_e,(A,j)=>{if(!e.animated){nextTick(W);return}const oe=new Set(j);let ie=null,he=null;for(const Ie of A)if(!oe.has(Ie)){if(ie!==null)return;ie=Ie}const He=new Set(A);for(const Ie of j)if(!He.has(Ie)){if(he!==null)return;he=Ie}if(ie!==null&&he!==null||ie===null&&he===null)return;const{virtualScroll:Ee}=e,je=(Ee?a.value.listElRef:n.value).offsetHeight,We=Math.ceil(je/ITEM_SIZE)+1;if(ie!==null){Re.value=!0,b.value=u.value.getFlattenedNodes(j);const Ie=b.value.findIndex(De=>De.key===ie);if(~Ie){const De=flatten3(b.value[Ie].children,A);b.value.splice(Ie+1,0,{__motion:!0,mode:"expand",height:Ee?De.length*ITEM_SIZE:void 0,nodes:Ee?De.slice(0,We):De})}}if(he!==null){b.value=u.value.getFlattenedNodes(A);const Ie=b.value.findIndex(De=>De.key===he);if(~Ie){const De=b.value[Ie].children;if(!De)return;Re.value=!0;const Le=flatten3(De,A);b.value.splice(Ie+1,0,{__motion:!0,mode:"collapse",height:Ee?Le.length*ITEM_SIZE:void 0,nodes:Ee?Le.slice(0,We):Le})}}});const k=computed2(()=>createIndexGetter(M.value)),O=computed2(()=>Re.value?b.value:M.value);function W(){const{value:A}=i;A&&A.sync()}function K(){Re.value=!1,e.virtualScroll&&nextTick(W)}function V(A){const{getNode:j}=v.value;return A.map(oe=>{var ie;return((ie=j(oe))===null||ie===void 0?void 0:ie.rawNode)||null})}function U(A,j){const{"onUpdate:expandedKeys":oe,onUpdateExpandedKeys:ie}=e;P.value=A,oe&&call(oe,A,j),ie&&call(ie,A,j)}function N(A,j){const{"onUpdate:checkedKeys":oe,onUpdateCheckedKeys:ie}=e;m.value=A,ie&&call(ie,A,j),oe&&call(oe,A,j)}function q(A,j){const{"onUpdate:indeterminateKeys":oe,onUpdateIndeterminateKeys:ie}=e;oe&&call(oe,A,j),ie&&call(ie,A,j)}function _(A,j){const{"onUpdate:selectedKeys":oe,onUpdateSelectedKeys:ie}=e;w.value=A,ie&&call(ie,A,j),oe&&call(oe,A,j)}function D(A){const{onDragenter:j}=e;j&&call(j,A)}function B(A){const{onDragleave:j}=e;j&&call(j,A)}function G(A){const{onDragend:j}=e;j&&call(j,A)}function te(A){const{onDragstart:j}=e;j&&call(j,A)}function le(A){const{onDragover:j}=e;j&&call(j,A)}function fe(A){const{onDrop:j}=e;j&&call(j,A)}function se(){L(),J()}function L(){we.value=null}function J(){Pe.value=0,Oe.value=null,ge.value=null,Te.value=null,ae()}function ae(){Z&&(window.clearTimeout(Z),Z=null),Y=null}function be(A,j){if(e.disabled||A.disabled)return;if(e.internalUnifySelectCheck&&!e.multiple){xe(A);return}const{checkedKeys:oe,indeterminateKeys:ie}=v.value[j?"check":"uncheck"](A.key,H.value,{cascade:e.cascade,checkStrategy:R.value,allowNotLoaded:e.allowCheckingNotLoaded});N(oe,V(oe)),q(ie,V(ie))}function Ce(A){if(e.disabled)return;const{value:j}=F,oe=j.findIndex(ie=>ie===A);if(~oe){const ie=Array.from(j);ie.splice(oe,1),U(ie,V(ie))}else{const ie=u.value.getNode(A);if(!ie||ie.isLeaf)return;const he=j.concat(A);U(he,V(he))}}function ze(A){e.disabled||Re.value||Ce(A.key)}function xe(A){if(!(e.disabled||!e.selectable)){if(ne.value=A.key,e.internalUnifySelectCheck){const{value:{checkedKeys:j,indeterminateKeys:oe}}=C;e.multiple?be(A,!(j.includes(A.key)||oe.includes(A.key))):N([A.key],V([A.key]))}if(e.multiple){const j=Array.from(x.value),oe=j.findIndex(ie=>ie===A.key);~oe?e.cancelable&&j.splice(oe,1):~oe||j.push(A.key),_(j,V(j))}else x.value.includes(A.key)?e.cancelable&&_([],[]):_([A.key],V([A.key]))}}function ve(A){if(Z&&(window.clearTimeout(Z),Z=null),A.isLeaf)return;Y=A.key;const j=()=>{if(Y!==A.key)return;const{value:oe}=ge;if(oe&&oe.key===A.key&&!F.value.includes(A.key)){const ie=F.value.concat(A.key);U(ie,V(ie))}Z=null,Y=null};A.shallowLoaded?Z=window.setTimeout(()=>{j()},1e3):Z=window.setTimeout(()=>{Be(A).then(()=>{j()})},1e3)}function Me({event:A,node:j}){!e.draggable||e.disabled||j.disabled||(qe({event:A,node:j},!1),D({event:A,node:j.rawNode}))}function Ne({event:A,node:j}){!e.draggable||e.disabled||j.disabled||B({event:A,node:j.rawNode})}function Ye(A){A.target===A.currentTarget&&J()}function Ke({event:A,node:j}){se(),!(!e.draggable||e.disabled||j.disabled)&&G({event:A,node:j.rawNode})}function Ve({event:A,node:j}){var oe;!e.draggable||e.disabled||j.disabled||(emptyImage&&((oe=A.dataTransfer)===null||oe===void 0||oe.setDragImage(emptyImage,0,0)),ye=A.clientX,we.value=j,te({event:A,node:j.rawNode}))}function qe({event:A,node:j},oe=!0){var ie;if(!e.draggable||e.disabled||j.disabled)return;const{value:he}=we;if(!he)return;const{allowDrop:He,indent:Ee}=e;oe&&le({event:A,node:j.rawNode});const je=A.currentTarget,{height:We,top:Ie}=je.getBoundingClientRect(),De=A.clientY-Ie;let Le;He({node:j.rawNode,dropPosition:"inside",phase:"drag"})?De<=8?Le="before":De>=We-8?Le="after":Le="inside":De<=We/2?Le="before":Le="after";const{value:rt}=k;let Se,Fe;const Ze=rt(j.key);if(Ze===null){J();return}let Qe=!1;Le==="inside"?(Se=j,Fe="inside"):Le==="before"?j.isFirstChild?(Se=j,Fe="before"):(Se=M.value[Ze-1],Fe="after"):(Se=j,Fe="after"),!Se.isLeaf&&F.value.includes(Se.key)&&(Qe=!0,Fe==="after"&&(Se=M.value[Ze+1],Se?Fe="before":(Se=j,Fe="inside")));const et=Se;if(ge.value=et,!Qe&&he.isLastChild&&he.key===Se.key&&(Fe="after"),Fe==="after"){let tt=ye-A.clientX,Je=0;for(;tt>=Ee/2&&Se.parent!==null&&Se.isLastChild&&Je<1;)tt-=Ee,Je+=1,Se=Se.parent;Pe.value=Je}else Pe.value=0;if((he.contains(Se)||Fe==="inside"&&((ie=he.parent)===null||ie===void 0?void 0:ie.key)===Se.key)&&!(he.key===et.key&&he.key===Se.key)){J();return}if(!He({node:Se.rawNode,dropPosition:Fe,phase:"drag"})){J();return}if(he.key===Se.key)ae();else if(Y!==Se.key)if(Fe==="inside"){if(e.expandOnDragenter){if(ve(Se),!Se.shallowLoaded&&Y!==Se.key){se();return}}else if(!Se.shallowLoaded){se();return}}else ae();else Fe!=="inside"&&ae();Te.value=Fe,Oe.value=Se}function Xe({event:A,node:j,dropPosition:oe}){if(!e.draggable||e.disabled||j.disabled)return;const{value:ie}=we,{value:he}=Oe,{value:He}=Te;if(!(!ie||!he||!He)&&!!e.allowDrop({node:he.rawNode,dropPosition:He,phase:"drag"})&&ie.key!==he.key){if(He==="before"){const Ee=ie.getNext({includeDisabled:!0});if(Ee&&Ee.key===he.key){J();return}}if(He==="after"){const Ee=ie.getPrev({includeDisabled:!0});if(Ee&&Ee.key===he.key){J();return}}fe({event:A,node:he.rawNode,dragNode:ie.rawNode,dropPosition:oe}),se()}}function Ge(){W()}function Ue(){W()}function E(A){var j;if(e.virtualScroll||e.internalScrollable){const{value:oe}=i;if((j=oe==null?void 0:oe.containerRef)===null||j===void 0?void 0:j.contains(A.relatedTarget))return;ne.value=null}else{const{value:oe}=n;if(oe==null?void 0:oe.contains(A.relatedTarget))return;ne.value=null}}watch(ne,A=>{var j,oe;if(A!==null){if(e.virtualScroll)(j=a.value)===null||j===void 0||j.scrollTo({key:A});else if(e.internalScrollable){const{value:ie}=i;if(ie===null)return;const he=(oe=ie.contentRef)===null||oe===void 0?void 0:oe.querySelector(`[data-key="${createDataKey(A)}"]`);if(!he)return;ie.scrollTo({el:he})}}}),provide(treeInjectionKey,{loadingKeysRef:me,highlightKeySetRef:pe,displayedCheckedKeysRef:H,displayedIndeterminateKeysRef:T,mergedSelectedKeysRef:x,mergedExpandedKeysRef:F,mergedThemeRef:o,mergedCheckStrategyRef:R,nodePropsRef:toRef(e,"nodeProps"),disabledRef:toRef(e,"disabled"),checkableRef:toRef(e,"checkable"),selectableRef:toRef(e,"selectable"),onLoadRef:toRef(e,"onLoad"),draggableRef:toRef(e,"draggable"),blockLineRef:toRef(e,"blockLine"),indentRef:toRef(e,"indent"),cascadeRef:toRef(e,"cascade"),droppingMouseNodeRef:ge,droppingNodeParentRef:ue,draggingNodeRef:we,droppingPositionRef:Te,droppingOffsetLevelRef:Pe,fNodesRef:M,pendingNodeKeyRef:ne,internalScrollableRef:toRef(e,"internalScrollable"),internalCheckboxFocusableRef:toRef(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:toRef(e,"renderLabel"),renderPrefixRef:toRef(e,"renderPrefix"),renderSuffixRef:toRef(e,"renderSuffix"),renderSwitcherIconRef:toRef(e,"renderSwitcherIcon"),labelFieldRef:toRef(e,"labelField"),multipleRef:toRef(e,"multiple"),handleSwitcherClick:ze,handleDragEnd:Ke,handleDragEnter:Me,handleDragLeave:Ne,handleDragStart:Ve,handleDrop:Xe,handleDragOver:qe,handleSelect:xe,handleCheck:be});const X={handleKeydown:ee,handleKeyup:Q},ce=computed2(()=>{const{common:{cubicBezierEaseInOut:A},self:{fontSize:j,nodeBorderRadius:oe,nodeColorHover:ie,nodeColorPressed:he,nodeColorActive:He,arrowColor:Ee,loadingColor:je,nodeTextColor:We,nodeTextColorDisabled:Ie,dropMarkColor:De}}=o.value;return{"--n-arrow-color":Ee,"--n-loading-color":je,"--n-bezier":A,"--n-font-size":j,"--n-node-border-radius":oe,"--n-node-color-active":He,"--n-node-color-hover":ie,"--n-node-color-pressed":he,"--n-node-text-color":We,"--n-node-text-color-disabled":Ie,"--n-drop-mark-color":De}}),ke=r?useThemeClass("tree",void 0,ce,e):void 0;return{mergedClsPrefix:t,mergedTheme:o,fNodes:O,aip:Re,selfElRef:n,virtualListInstRef:a,scrollbarInstRef:i,handleFocusout:E,handleDragLeaveTree:Ye,handleScroll:Ge,getScrollContainer:l,getScrollContent:s,handleAfterEnter:K,handleResize:Ue,handleKeydown:X.handleKeydown,handleKeyup:X.handleKeyup,cssVars:r?void 0:ce,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){var e;const{fNodes:t,internalRenderEmpty:r}=this;if(!t.length&&r)return r();const{mergedClsPrefix:o,blockNode:n,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:d,handleKeyup:u,handleKeydown:f,handleFocusout:v}=this,g=s&&!l,m=g?"0":void 0,S=[`${o}-tree`,d&&`${o}-tree--checkable`,(i||n)&&`${o}-tree--block-node`,i&&`${o}-tree--block-line`],y=R=>"__motion"in R?h(MotionWrapper_default,{height:R.height,nodes:R.nodes,clsPrefix:o,mode:R.mode,onAfterEnter:this.handleAfterEnter}):h(TreeNode_default,{key:R.key,tmNode:R,clsPrefix:o});if(this.virtualScroll){const{mergedTheme:R,internalScrollablePadding:H}=this,T=getMargin(H||"0");return h(XScrollbar,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:S,theme:R.peers.Scrollbar,themeOverrides:R.peerOverrides.Scrollbar,tabindex:m,onKeyup:g?u:void 0,onKeydown:g?f:void 0,onFocusout:g?v:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),h(VirtualList_default,{ref:"virtualListInstRef",items:this.fNodes,itemSize:ITEM_SIZE,ignoreItemResize:this.aip,paddingTop:T.top,paddingBottom:T.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:T.left,paddingRight:T.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:$})=>y($)})}})}const{internalScrollable:C}=this;return S.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),C?h(XScrollbar,{class:S,tabindex:m,onKeyup:g?u:void 0,onKeydown:g?f:void 0,onFocusout:g?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>h("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):h("div",{class:S,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeyup:g?u:void 0,onKeydown:g?f:void 0,onFocusout:g?v:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(y):resolveSlot(this.$slots.empty,()=>{var R,H,T,w;return[h(Empty_default2,{class:`${o}-tree__empty`,theme:(H=(R=this.theme)===null||R===void 0?void 0:R.peers)===null||H===void 0?void 0:H.Empty,themeOverrides:(w=(T=this.themeOverrides)===null||T===void 0?void 0:T.peers)===null||w===void 0?void 0:w.Empty})]}))}}),darkTheme={name:"dark",common:dark_default,Alert:dark_default8,Anchor:dark_default9,AutoComplete:dark_default11,Avatar:dark_default12,AvatarGroup:dark_default13,BackTop:dark_default14,Badge:dark_default15,Breadcrumb:dark_default16,Button:dark_default17,ButtonGroup:dark_default49,Calendar:dark_default18,Card:dark_default20,Carousel:dark_default21,Cascader:dark_default23,Checkbox:dark_default22,Code:dark_default24,Collapse:dark_default25,CollapseTransition:dark_default26,ColorPicker:dark_default19,DataTable:dark_default32,DatePicker:dark_default36,Descriptions:dark_default37,Dialog:dark_default38,Divider:dark_default40,Drawer:dark_default41,Dropdown:dark_default33,DynamicInput:dark_default42,DynamicTags:dark_default44,Element:dark_default45,Empty:dark_default2,Ellipsis:dark_default30,Form:dark_default46,GradientText:dark_default47,Icon:dark_default34,IconWrapper:dark_default48,Image:imageDark,Input:dark_default10,InputNumber:dark_default50,Layout:dark_default51,List:dark_default52,LoadingBar:dark_default53,Log:dark_default54,Menu:dark_default56,Mention:dark_default55,Message:dark_default57,Modal:dark_default39,Notification:dark_default58,PageHeader:pageHeaderDark,Pagination:dark_default28,Popconfirm:dark_default59,Popover:dark_default5,Popselect:dark_default60,Progress:dark_default61,Radio:dark_default31,Rate:dark_default62,Result:dark_default63,Scrollbar:dark_default3,Select:dark_default27,Skeleton:skeletonDark,Slider:dark_default64,Space:dark_default43,Spin:dark_default65,Statistic:dark_default66,Steps:dark_default67,Switch:dark_default68,Table:dark_default69,Tabs:dark_default70,Tag:dark_default6,Thing:dark_default71,TimePicker:dark_default35,Timeline:dark_default72,Tooltip:dark_default29,Transfer:dark_default73,Tree:dark_default74,TreeSelect:dark_default75,Typography:dark_default76,Upload:dark_default77,Watermark:dark_default78};function ampCount2(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}var seperatorRegex=/\s*,(?![^(]*\))\s*/g,extraSpaceRegex2=/\s+/g;function resolveSelectorWithAmp2(e,t){const r=[];return t.split(seperatorRegex).forEach(o=>{let n=ampCount2(o);if(n){if(n===1){e.forEach(a=>{r.push(o.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+o)});return}let i=[o];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>r.push(a))}),r}function resolveSelector2(e,t){const r=[];return t.split(seperatorRegex).forEach(o=>{e.forEach(n=>{r.push((n&&n+" ")+o)})}),r}function parseSelectorPath2(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),!!r&&(r.includes("&")?t=resolveSelectorWithAmp2(t,r):t=resolveSelector2(t,r))}),t.join(", ").replace(extraSpaceRegex2," ")}var kebabRegex2=/[A-Z]/g;function kebabCase2(e){return e.replace(kebabRegex2,t=>"-"+t.toLowerCase())}function upwrapProperty(e,t=" "){return typeof e=="object"&&e!==null?` {
`+Object.entries(e).map(r=>t+` ${kebabCase2(r[0])}: ${r[1]};`).join(`
`)+`
`+t+"}":`: ${e};`}function upwrapProperties(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function createStyle2(e,t,r,o){if(!t)return"";const n=upwrapProperties(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} {
${n}
}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` {
}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=n[l];if(l==="raw"){a.push(`
`+s+`
`);return}l=kebabCase2(l),s!=null&&a.push(` ${l}${upwrapProperty(s)}`)}),e&&a.push("}"),a.join(`
`)}function loopCNodeListWithCallback2(e,t,r){!e||e.forEach(o=>{if(Array.isArray(o))loopCNodeListWithCallback2(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?loopCNodeListWithCallback2(n,t,r):n&&r(n)}else o&&r(o)})}function traverseCNode2(e,t,r,o,n,i){const a=e.$;!a||typeof a=="string"?t.push(a):typeof a=="function"?t.push(a({context:o.context,props:n})):(a.before&&a.before(o.context),!a.$||typeof a.$=="string"?t.push(a.$):a.$&&t.push(a.$({context:o.context,props:n})));const l=parseSelectorPath2(t),s=createStyle2(l,e.props,o,n);i&&s&&i.insertRule(s),!i&&s.length&&r.push(s),e.children&&loopCNodeListWithCallback2(e.children,{context:o.context,props:n},d=>{if(typeof d=="string"){const u=createStyle2(l,{raw:d},o,n);i?i.insertRule(u):r.push(u)}else traverseCNode2(d,t,r,o,n,i)}),t.pop(),a&&a.after&&a.after(o.context)}function render3(e,t,r,o=!1){const n=[];return traverseCNode2(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(`
`)}function removeElement2(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function queryElement2(e){return document.querySelector(`style[cssr-id="${e}"]`)}function createElement2(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}window&&(window.__cssrContext={});function getCount(e){const t=e.getAttribute("mount-count");return t===null?null:Number(t)}function setCount(e,t){e.setAttribute("mount-count",String(t))}function unmount2(e,t,r,o){const{els:n}=t;if(r===void 0)n.forEach(removeElement2),t.els=[];else{const i=queryElement2(r);if(i&&n.includes(i)){const a=getCount(i);o?a===null?console.error(`[css-render/unmount]: The style with target='${r}' is mounted in count mode.`):a<=1?(removeElement2(i),t.els=n.filter(l=>l!==i)):setCount(i,a-1):a!==null?console.error(`[css-render/unmount]: The style with target='${r}' is mounted in no-count mode.`):(removeElement2(i),t.els=n.filter(l=>l!==i))}}}function addElementToList2(e,t){e.push(t)}function mount2(e,t,r,o,n,i,a,l,s){if(a&&!s){if(r===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}const g=window.__cssrContext;g[r]||(g[r]=!0,render3(t,e,o,a));return}let d;const{els:u}=t;let f;if(r===void 0&&(f=t.render(o),r=hash_browser_esm_default(f)),s){s(r,f!=null?f:t.render(o));return}const v=queryElement2(r);if(l||v===null){if(d=v===null?createElement2(r):v,f===void 0&&(f=t.render(o)),d.textContent=f,v!==null)return;if(n){const g=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(d,g)}else document.head.appendChild(d);i&&setCount(d,1),addElementToList2(u,d)}else{const g=getCount(v);i?g===null?console.error(`[css-render/mount]: The style with id='${r}' has been mounted in no-count mode.`):setCount(v,g+1):g!==null&&console.error(`[css-render/mount]: The style with id='${r}' has been mounted in count mode.`)}return v!=null?v:d}function wrappedRender2(e){return render3(this,this.instance,e)}function wrappedMount2(e={}){const{target:t,id:r,ssr:o,props:n,count:i=!1,head:a=!1,boost:l=!1,force:s=!1}=e;return mount2(this.instance,this,r!=null?r:t,n,a,i,l,s,o)}function wrappedUnmount2(e={}){const{id:t,target:r,delay:o=0,count:n=!1}=e;o===0?unmount2(this.instance,this,t!=null?t:r,n):setTimeout(()=>unmount2(this.instance,this,t!=null?t:r,n),o)}var createCNode2=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:wrappedRender2,mount:wrappedMount2,unmount:wrappedUnmount2}},c4=function(e,t,r,o){return Array.isArray(t)?createCNode2(e,{$:null},null,t):Array.isArray(r)?createCNode2(e,t,null,r):Array.isArray(o)?createCNode2(e,t,r,o):createCNode2(e,t,r,null)};function CssRender2(e={}){let t=null;const r={c:(...o)=>c4(r,...o),use:(o,...n)=>o.install(r,...n),find:queryElement2,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}var{c:c5}=CssRender2(),style2=c5(".xicon",{width:"1em",height:"1em",display:"inline-flex"},[c5("svg",{width:"1em",height:"1em"}),c5("svg:not([fill])",{fill:"currentColor"})]),mountStyle=()=>{style2.mount({id:"xicons-icon"})},iconConfigProviderProps={size:[String,Number],color:String,tag:String},iconConfigInjectionKey=Symbol("IconConfigInjection"),IconConfigProvider=defineComponent({name:"IconConfigProvider",props:iconConfigProviderProps,setup(e,{slots:t}){return provide(iconConfigInjectionKey,e),()=>renderSlot(t,"default")}}),defaultTag="span",Icon=defineComponent({name:"Icon",props:iconConfigProviderProps,setup(e,{slots:t}){const r=inject(iconConfigInjectionKey,null),o=computed2(()=>{var a;const l=(a=e.size)!==null&&a!==void 0?a:r==null?void 0:r.size;if(l!==void 0)return typeof l=="number"||/^\d+$/.test(l)?`${l}px`:l}),n=computed2(()=>{const{color:a}=e;return a===void 0?r?r.color:void 0:a}),i=computed2(()=>{var a;const{tag:l}=e;return l===void 0?(a=r==null?void 0:r.tag)!==null&&a!==void 0?a:defaultTag:l});return onBeforeMount(()=>{mountStyle()}),()=>h(i.value,{class:"xicon",style:{color:n.value,fontSize:o.value}},[renderSlot(t,"default")])}}),_hoisted_1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_hoisted_2=createBaseVNode("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),_hoisted_3=[_hoisted_2],SettingsBackupRestoreRound_default=defineComponent({name:"SettingsBackupRestoreRound",render:function(t,r){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});function getDefaults(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var defaults=getDefaults();function changeDefaults(e){defaults=e}var escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=e=>escapeReplacements[e];function escape(e,t){if(t){if(escapeTest.test(e))return e.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(e))return e.replace(escapeReplaceNoEncode,getEscapeReplacement);return e}var unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape(e){return e.replace(unescapeTest,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var caret=/(^|[^\[])\^/g;function edit(e,t){e=e.source||e,t=t||"";const r={replace:(o,n)=>(n=n.source||n,n=n.replace(caret,"$1"),e=e.replace(o,n),r),getRegex:()=>new RegExp(e,t)};return r}var nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(e,t,r){if(e){let o;try{o=decodeURIComponent(unescape(r)).replace(nonWordAndColonTest,"").toLowerCase()}catch(n){return null}if(o.indexOf("javascript:")===0||o.indexOf("vbscript:")===0||o.indexOf("data:")===0)return null}t&&!originIndependentUrl.test(r)&&(r=resolveUrl(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(o){return null}return r}var baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(e,t){baseUrls[" "+e]||(justDomain.test(e)?baseUrls[" "+e]=e+"/":baseUrls[" "+e]=rtrim(e,"/",!0)),e=baseUrls[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(protocol,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(domain,"$1")+t:e+t}var noopTest={exec:function(){}};function merge3(e){let t=1,r,o;for(;t<arguments.length;t++){r=arguments[t];for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}function splitCells(e,t){const r=e.replace(/\|/g,(i,a,l)=>{let s=!1,d=a;for(;--d>=0&&l[d]==="\\";)s=!s;return s?"|":" |"}),o=r.split(/ \|/);let n=0;if(o[0].trim()||o.shift(),o.length>0&&!o[o.length-1].trim()&&o.pop(),o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;n<o.length;n++)o[n]=o[n].trim().replace(/\\\|/g,"|");return o}function rtrim(e,t,r){const o=e.length;if(o===0)return"";let n=0;for(;n<o;){const i=e.charAt(o-n-1);if(i===t&&!r)n++;else if(i!==t&&r)n++;else break}return e.substr(0,o-n)}function findClosingBracket(e,t){if(e.indexOf(t[1])===-1)return-1;const r=e.length;let o=0,n=0;for(;n<r;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])o++;else if(e[n]===t[1]&&(o--,o<0))return n;return-1}function checkSanitizeDeprecation(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(e,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function outputLink(e,t,r,o){const n=t.href,i=t.title?escape(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){o.state.inLink=!0;const l={type:"link",raw:r,href:n,title:i,text:a,tokens:o.inlineTokens(a,[])};return o.state.inLink=!1,l}else return{type:"image",raw:r,href:n,title:i,text:escape(a)}}function indentCodeCompensation(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const o=r[1];return t.split(`
`).map(n=>{const i=n.match(/^\s+/);if(i===null)return n;const[a]=i;return a.length>=o.length?n.slice(o.length):n}).join(`
`)}var Tokenizer=class{constructor(e){this.options=e||defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:rtrim(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],o=indentCodeCompensation(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:o}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=rtrim(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}const o={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,o,n,i,a,l,s,d,u,f,v,g,m=t[1].trim();const S=m.length>1,y={type:"list",raw:"",ordered:S,start:S?+m.slice(0,-1):"",loose:!1,items:[]};m=S?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=S?m:"[*+-]");const C=new RegExp(`^( {0,3}${m})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(g=!1,!(!(t=C.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),d=t[2].split(`
`,1)[0],u=e.split(`
`,1)[0],this.options.pedantic?(i=2,v=d.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,v=d.slice(i),i+=t[1].length),l=!1,!d&&/^ *$/.test(u)&&(r+=u+`
`,e=e.substring(u.length+1),g=!0),!g){const H=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(f=e.split(`
`,1)[0],d=f,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!H.test(d));){if(d.search(/[^ ]/)>=i||!d.trim())v+=`
`+d.slice(i);else if(!l)v+=`
`+d;else break;!l&&!d.trim()&&(l=!0),r+=f+`
`,e=e.substring(f.length+1)}}y.loose||(s?y.loose=!0:/\n *\n *$/.test(r)&&(s=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(v),o&&(n=o[0]!=="[ ] ",v=v.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:r,task:!!o,checked:n,loose:!1,text:v}),y.raw+=r}y.items[y.items.length-1].raw=r.trimRight(),y.items[y.items.length-1].text=v.trimRight(),y.raw=y.raw.trimRight();const R=y.items.length;for(a=0;a<R;a++){this.lexer.state.top=!1,y.items[a].tokens=this.lexer.blockTokens(y.items[a].text,[]);const H=y.items[a].tokens.filter(w=>w.type==="space"),T=H.every(w=>{const $=w.raw.split("");let x=0;for(const P of $)if(P===`
`&&(x+=1),x>1)return!0;return!1});!y.loose&&H.length&&T&&(y.loose=!0,y.items[a].loose=!0)}return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):escape(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));const r=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:r,raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:splitCells(t[1]).map(o=>({text:o})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(r.header.length===r.align.length){r.raw=t[0];let o=r.align.length,n,i,a,l;for(n=0;n<o;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(o=r.rows.length,n=0;n<o;n++)r.rows[n]=splitCells(r.rows[n],r.header.length).map(s=>({text:s}));for(o=r.header.length,i=0;i<o;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(o=r.rows.length,i=0;i<o;i++)for(l=r.rows[i],a=0;a<l.length;a++)l[a].tokens=[],this.lexer.inlineTokens(l[a].text,l[a].tokens);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const r={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}text(e){const t=this.rules.block.text.exec(e);if(t){const r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:escape(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):escape(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const i=rtrim(r.slice(0,-1),"\\");if((r.length-i.length)%2==0)return}else{const i=findClosingBracket(t[2],"()");if(i>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let o=t[2],n="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);i&&(o=i[1],n=i[3])}else n=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),outputLink(t,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:n&&n.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=t[o.toLowerCase()],!o||!o.href){const n=r[0].charAt(0);return{type:"text",raw:n,text:n}}return outputLink(r,o,r[0],this.lexer)}}emStrong(e,t,r=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const n=o[1]||o[2]||"";if(!n||n&&(r===""||this.rules.inline.punctuation.exec(r))){const i=o[0].length-1;let a,l,s=i,d=0;const u=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(o=u.exec(t))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=a.length,o[3]||o[4]){s+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){d+=l;continue}if(s-=l,s>0)continue;if(l=Math.min(l,l+s+d),Math.min(i,l)%2){const v=e.slice(1,i+o.index+l);return{type:"em",raw:e.slice(0,i+o.index+l+1),text:v,tokens:this.lexer.inlineTokens(v,[])}}const f=e.slice(2,i+o.index+l-1);return{type:"strong",raw:e.slice(0,i+o.index+l+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const o=/[^ ]/.test(r),n=/^ /.test(r)&&/ $/.test(r);return o&&n&&(r=r.substring(1,r.length-1)),r=escape(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const 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,t){const r=this.rules.inline.autolink.exec(e);if(r){let o,n;return r[2]==="@"?(o=escape(this.options.mangle?t(r[1]):r[1]),n="mailto:"+o):(o=escape(r[1]),n=o),{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let o,n;if(r[2]==="@")o=escape(this.options.mangle?t(r[0]):r[0]),n="mailto:"+o;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(i!==r[0]);o=escape(r[0]),r[1]==="www."?n="http://"+o:n=o}return{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):escape(r[0]):r[0]:o=escape(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}},block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex(),block.bullet=/(?:[*+-]|\d{1,9}[.)])/,block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex(),block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex(),block._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").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",block._tag).getRegex(),block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex(),block.normal=merge3({},block),block.gfm=merge3({},block.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",block._tag).getRegex(),block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.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",block._tag).getRegex(),block.pedantic=merge3({},block.normal,{html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).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:noopTest,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex(),inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,inline.escapedEmSt=/\\\*|\\_/g,inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex(),inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex(),inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex(),inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex(),inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,inline._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])?)+(?![-_])/,inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex(),inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex(),inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex(),inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex(),inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex(),inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex(),inline.normal=merge3({},inline),inline.pedantic=merge3({},inline.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()}),inline.gfm=merge3({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex(),inline.breaks=merge3({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function smartypants(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function mangle(e){let t="",r,o;const n=e.length;for(r=0;r<n;r++)o=e.charCodeAt(r),Math.random()>.5&&(o="x"+o.toString(16)),t+="&#"+o+";";return t}var Lexer=class{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||defaults,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:block.normal,inline:inline.normal};this.options.pedantic?(t.block=block.pedantic,t.inline=inline.pedantic):this.options.gfm&&(t.block=block.gfm,this.options.breaks?t.inline=inline.breaks:t.inline=inline.gfm),this.tokenizer.rules=t}static get rules(){return{block,inline}}static lex(e,t){return new Lexer(t).lex(e)}static lexInline(e,t){return new Lexer(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic&&(e=e.replace(/^ +$/gm,""));let r,o,n,i;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),o=t[t.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+r.raw,o.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.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),o=t[t.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+r.raw,o.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});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}if(n=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=e.slice(1);let s;this.options.extensions.startBlock.forEach(function(d){s=d.call({lexer:this},l),typeof s=="number"&&s>=0&&(a=Math.min(a,s))}),a<1/0&&a>=0&&(n=e.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(n))){o=t[t.length-1],i&&o.type==="paragraph"?(o.raw+=`
`+r.raw,o.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(r),i=n.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),o=t[t.length-1],o&&o.type==="text"?(o.raw+=`
`+r.raw,o.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(r);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let r,o,n,i=e,a,l,s;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+repeatString("a",a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+repeatString("a",a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(r=d.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){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),o=t[t.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):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),o=t[t.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,i,s)){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,mangle)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,mangle))){e=e.substring(r.raw.length),t.push(r);continue}if(n=e,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const u=e.slice(1);let f;this.options.extensions.startInline.forEach(function(v){f=v.call({lexer:this},u),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(n=e.substring(0,d+1))}if(r=this.tokenizer.inlineText(n,smartypants)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(s=r.raw.slice(-1)),l=!0,o=t[t.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):t.push(r);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return t}},Renderer=class{constructor(e){this.options=e||defaults}code(e,t,r){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const n=this.options.highlight(e,o);n!=null&&n!==e&&(r=!0,e=n)}return e=e.replace(/\n$/,"")+`
`,o?'<pre><code class="'+this.options.langPrefix+escape(o,!0)+'">'+(r?e:escape(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:escape(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
`+e+`</blockquote>
`}html(e){return e}heading(e,t,r,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(r)+'">'+e+"</h"+t+`>
`:"<h"+t+">"+e+"</h"+t+`>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,r){const o=t?"ol":"ul",n=t&&r!==1?' start="'+r+'"':"";return"<"+o+n+`>
`+e+"</"+o+`>
`}listitem(e){return"<li>"+e+`</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+`</p>
`}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
`+e+`</tr>
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+`>
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,r){if(e=cleanUrl(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o='<a href="'+escape(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+r+"</a>",o}image(e,t,r){if(e=cleanUrl(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o='<img src="'+e+'" alt="'+r+'"';return t&&(o+=' title="'+t+'"'),o+=this.options.xhtml?"/>":">",o}text(e){return e}},TextRenderer=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}},Slugger=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[e];do o++,r=e+"-"+o;while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=o,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}},Parser=class{constructor(e){this.options=e||defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse(e,t){return new Parser(t).parse(e)}static parseInline(e,t){return new Parser(t).parseInline(e)}parse(e,t=!0){let r="",o,n,i,a,l,s,d,u,f,v,g,m,S,y,C,R,H,T,w;const $=e.length;for(o=0;o<$;o++){if(v=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[v.type]&&(w=this.options.extensions.renderers[v.type].call({parser:this},v),w!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(v.type))){r+=w||"";continue}switch(v.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(v.tokens),v.depth,unescape(this.parseInline(v.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(v.text,v.lang,v.escaped);continue}case"table":{for(u="",d="",a=v.header.length,n=0;n<a;n++)d+=this.renderer.tablecell(this.parseInline(v.header[n].tokens),{header:!0,align:v.align[n]});for(u+=this.renderer.tablerow(d),f="",a=v.rows.length,n=0;n<a;n++){for(s=v.rows[n],d="",l=s.length,i=0;i<l;i++)d+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:v.align[i]});f+=this.renderer.tablerow(d)}r+=this.renderer.table(u,f);continue}case"blockquote":{f=this.parse(v.tokens),r+=this.renderer.blockquote(f);continue}case"list":{for(g=v.ordered,m=v.start,S=v.loose,a=v.items.length,f="",n=0;n<a;n++)C=v.items[n],R=C.checked,H=C.task,y="",C.task&&(T=this.renderer.checkbox(R),S?C.tokens.length>0&&C.tokens[0].type==="paragraph"?(C.tokens[0].text=T+" "+C.tokens[0].text,C.tokens[0].tokens&&C.tokens[0].tokens.length>0&&C.tokens[0].tokens[0].type==="text"&&(C.tokens[0].tokens[0].text=T+" "+C.tokens[0].tokens[0].text)):C.tokens.unshift({type:"text",text:T}):y+=T),y+=this.parse(C.tokens,S),f+=this.renderer.listitem(y,H,R);r+=this.renderer.list(f,g,m);continue}case"html":{r+=this.renderer.html(v.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(v.tokens));continue}case"text":{for(f=v.tokens?this.parseInline(v.tokens):v.text;o+1<$&&e[o+1].type==="text";)v=e[++o],f+=`
`+(v.tokens?this.parseInline(v.tokens):v.text);r+=t?this.renderer.paragraph(f):f;continue}default:{const x='Token with "'+v.type+'" type was not found.';if(this.options.silent){console.error(x);return}else throw new Error(x)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",o,n,i;const a=e.length;for(o=0;o<a;o++){if(n=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(i=this.options.extensions.renderers[n.type].call({parser:this},n),i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))){r+=i||"";continue}switch(n.type){case"escape":{r+=t.text(n.text);break}case"html":{r+=t.html(n.text);break}case"link":{r+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break}case"image":{r+=t.image(n.href,n.title,n.text);break}case"strong":{r+=t.strong(this.parseInline(n.tokens,t));break}case"em":{r+=t.em(this.parseInline(n.tokens,t));break}case"codespan":{r+=t.codespan(n.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(n.tokens,t));break}case"text":{r+=t.text(n.text);break}default:{const l='Token with "'+n.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return r}};function marked(e,t,r){if(typeof e=="undefined"||e===null)throw new Error("marked(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(typeof t=="function"&&(r=t,t=null),t=merge3({},marked.defaults,t||{}),checkSanitizeDeprecation(t),r){const o=t.highlight;let n;try{n=Lexer.lex(e,t)}catch(l){return r(l)}const i=function(l){let s;if(!l)try{t.walkTokens&&marked.walkTokens(n,t.walkTokens),s=Parser.parse(n,t)}catch(d){l=d}return t.highlight=o,l?r(l):r(null,s)};if(!o||o.length<3||(delete t.highlight,!n.length))return i();let a=0;marked.walkTokens(n,function(l){l.type==="code"&&(a++,setTimeout(()=>{o(l.text,l.lang,function(s,d){if(s)return i(s);d!=null&&d!==l.text&&(l.text=d,l.escaped=!0),a--,a===0&&i()})},0))}),a===0&&i();return}try{const o=Lexer.lex(e,t);return t.walkTokens&&marked.walkTokens(o,t.walkTokens),Parser.parse(o,t)}catch(o){if(o.message+=`
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+escape(o.message+"",!0)+"</pre>";throw o}}marked.options=marked.setOptions=function(e){return merge3(marked.defaults,e),changeDefaults(marked.defaults),marked},marked.getDefaults=getDefaults,marked.defaults=defaults,marked.use=function(...e){const t=merge3({},...e),r=marked.defaults.extensions||{renderers:{},childTokens:{}};let o;e.forEach(n=>{if(n.extensions&&(o=!0,n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const a=r.renderers?r.renderers[i.name]:null;a?r.renderers[i.name]=function(...l){let s=i.renderer.apply(this,l);return s===!1&&(s=a.apply(this,l)),s}:r.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");r[i.level]?r[i.level].unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}i.childTokens&&(r.childTokens[i.name]=i.childTokens)})),n.renderer){const i=marked.defaults.renderer||new Renderer;for(const a in n.renderer){const l=i[a];i[a]=(...s)=>{let d=n.renderer[a].apply(i,s);return d===!1&&(d=l.apply(i,s)),d}}t.renderer=i}if(n.tokenizer){const i=marked.defaults.tokenizer||new Tokenizer;for(const a in n.tokenizer){const l=i[a];i[a]=(...s)=>{let d=n.tokenizer[a].apply(i,s);return d===!1&&(d=l.apply(i,s)),d}}t.tokenizer=i}if(n.walkTokens){const i=marked.defaults.walkTokens;t.walkTokens=function(a){n.walkTokens.call(this,a),i&&i.call(this,a)}}o&&(t.extensions=r),marked.setOptions(t)})},marked.walkTokens=function(e,t){for(const r of e)switch(t.call(marked,r),r.type){case"table":{for(const o of r.header)marked.walkTokens(o.tokens,t);for(const o of r.rows)for(const n of o)marked.walkTokens(n.tokens,t);break}case"list":{marked.walkTokens(r.items,t);break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[r.type]?marked.defaults.extensions.childTokens[r.type].forEach(function(o){marked.walkTokens(r[o],t)}):r.tokens&&marked.walkTokens(r.tokens,t)}},marked.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=merge3({},marked.defaults,t||{}),checkSanitizeDeprecation(t);try{const r=Lexer.lexInline(e,t);return t.walkTokens&&marked.walkTokens(r,t.walkTokens),Parser.parseInline(r,t)}catch(r){if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+escape(r.message+"",!0)+"</pre>";throw r}},marked.Parser=Parser,marked.parser=Parser.parse,marked.Renderer=Renderer,marked.TextRenderer=TextRenderer,marked.Lexer=Lexer,marked.lexer=Lexer.lex,marked.Tokenizer=Tokenizer,marked.Slugger=Slugger,marked.parse=marked;var options=marked.options,setOptions=marked.setOptions,use=marked.use,walkTokens=marked.walkTokens,parseInline=marked.parseInline,parser=Parser.parse,lexer=Lexer.lex,import_obsidian=__toModule(require("obsidian")),store=reactive({plugin:void 0,activeView(){this.plugin.activateView(),this.refreshTree()},headers:[],dark:!1,leaf_change:!1,refreshTree(){this.leaf_change=!this.leaf_change}}),formula={name:"formula",level:"inline",start(e){var t;return(t=e.match(/\$/))==null?void 0:t.index},tokenizer(e,t){const o=/^\$([^\$]+)\$/.exec(e);if(o)return{type:"formula",raw:o[0],formula:o[1].trim()}},renderer(e){try{const t=(0,import_obsidian.renderMath)(e.formula,!1).outerHTML;return(0,import_obsidian.finishRenderMath)(),t}catch(t){return(0,import_obsidian.loadMathJax)().then(()=>{store.refreshTree()}),!1}}},internal_link={name:"internal",level:"inline",start(e){var t;return(t=e.match(/\[\[/))==null?void 0:t.index},tokenizer(e,t){const o=/^\[\[([^\[\]]+?)\]\]/.exec(e);if(o){const n=/.*\|(.*)/.exec(o[1]);return{type:"internal",raw:o[0],internal:n?n[1]:o[1]}}},renderer(e){return`<span class="internal-link">${e.internal}</span>`}},remove_href=e=>{e.type==="link"&&(e.href="javascript:void(0);")},renderer2={list(e,t,r){return t?`<p>${r}. ${e}</p>`:`<p>${e}</p>`},listitem(e,t,r){return`${e}`}},Outline_default=defineComponent({setup(e,{expose:t}){t();let r=getCurrentInstance(),o=r.appContext.config.globalProperties.plugin,n=r.appContext.config.globalProperties.container;onMounted(()=>{document.addEventListener("scroll",a,!0)}),onUnmounted(()=>{document.removeEventListener("scroll",a,!0)});let i=(Q,ee)=>"item-"+Q.level+"-"+ee,a=(0,import_obsidian2.debounce)(l,100);function l(Q){let ee=Q.target;if(!ee.classList.contains("markdown-preview-view")&&!ee.classList.contains("cm-scroller"))return;let Y=o.app.workspace.getActiveViewOfType(import_obsidian2.MarkdownView).currentMode.getScroll()+8,re=null,de=store.headers.length;for(;--de>=0;)if(store.headers[de].position.start.line<=Y){re=store.headers[de];break}if(!re)return;let pe=de;if(store.plugin.settings.auto_expand){let ye=pe<store.headers.length-1&&store.headers[pe].level<store.headers[pe+1].level?[i(re,pe)]:[],we=re.level;for(;de-- >0&&(store.headers[de].level<we&&(ye.push(i(store.headers[de],de)),we=store.headers[de].level),we!==1););u.value=ye}let me=n.querySelector(".n-tree-node.located");me&&me.removeClass("located");let _e=n.querySelector(`#no-${pe}`);_e?(_e.addClass("located"),_e.scrollIntoView({block:"center",behavior:"smooth"})):setTimeout(()=>{let ye=n.querySelector(`#no-${pe}`);ye&&(ye.addClass("located"),ye.scrollIntoView({block:"center",behavior:"smooth"}))},0)}function s(Q){let ee=parseInt(Q.option.key.split("-")[1]),Z=parseInt(Q.option.key.split("-")[2]);return{class:`level-${ee}`,id:`no-${Z}`}}let d=ref(parseInt(store.plugin.settings.expand_level)),u=ref([]);function f(Q,ee){u.value=Q}function v(Q){u.value=store.headers.map((ee,Z)=>"item-"+ee.level+"-"+Z).filter((ee,Z,Y)=>{const re=de=>parseInt(de.split("-")[1]);return Z===Y.length-1||re(Y[Z])>=re(Y[Z+1])?!1:re(ee)<=Q})}watch(d,(Q,ee)=>{v(Q)});let g=ref(0);watch(()=>store.leaf_change,()=>{const Q=d.value,ee=C.value;C.value="",d.value=parseInt(store.plugin.settings.expand_level),Q===d.value&&v(d.value),nextTick(()=>{C.value=ee})});const m={0:"",1:"",2:"",3:"",4:"",5:""};function S(Q){let ee=store.headers.filter(Z=>Z.level===Q).length;return Q>0?`H${Q}: ${ee}`:"No expand"}let y=computed2(()=>store.plugin.settings.markdown?F:null),C=ref("");function R(Q,ee){return RegExp(Q,"i").test(ee.label)}function H(Q,ee){return ee.label.toLowerCase().contains(Q.toLowerCase())}let T=computed2(()=>store.plugin.settings.regex_search?R:H),w=computed2(()=>store.headers.filter(Q=>{let ee={label:Q.heading};return T.value(C.value,ee)}).length),$=computed2(()=>store.dark?darkTheme:null);function x(Q,ee){return __async(this,null,function*(){if(ee[0]===void 0)return;const Z=ee[0].key.split("-"),Y=parseInt(Z[2]);let re=store.headers[Y].position.start.line;const de=store.plugin.app.workspace.getActiveViewOfType(import_obsidian2.MarkdownView);de&&(de.setEphemeralState({line:re}),setTimeout(()=>{de.setEphemeralState({line:re})},100))})}let P=computed2(()=>I(store.headers));function I(Q){return z(Q)}function z(Q){const ee={children:[]},Z=[{node:ee,level:-1}];return Q.forEach((Y,re)=>{let de={label:Y.heading,key:"item-"+Y.level+"-"+re,line:Y.position.start.line};for(;Y.level<=Z.last().level;)Z.pop();let pe=Z.last().node;pe.children===void 0&&(pe.children=[]),pe.children.push(de),Z.push({node:de,level:Y.level})}),ee.children}marked.use({extensions:[formula,internal_link]}),marked.use({walkTokens:remove_href}),marked.use({renderer:renderer2});function F({option:Q}){let ee=marked.parse(Q.label).trim(),Z=0,Y=ee.match(/<mjx-container.*?>.*?<\/mjx-container>/g);return ee=(0,import_obsidian2.sanitizeHTMLToDom)(`<div>${ee}</div>`).children[0].innerHTML,ee=ee.replace(/<math.*?>.*?<\/math>/g,()=>Y[Z++]),ee=`<div>${ee}</div>`,createStaticVNode(ee,1)}function M(){store.dark=document.querySelector("body").classList.contains("theme-dark"),C.value="",d.value=parseInt(store.plugin.settings.expand_level),v(d.value)}const ne={compomentSelf:r,plugin:o,container:n,toKey:i,handleScroll:a,_handleScroll:l,setAttrs:s,level:d,expanded:u,expand:f,switchLevel:v,update_tree:g,marks:m,formatTooltip:S,renderMethod:y,pattern:C,regexFilter:R,simpleFilter:H,filter:T,matchCount:w,theme:$,jump:x,data2:P,makeTree:I,arrToTree:z,renderLabel:F,reset:M,NTree:Tree_default,NButton:Button_default,NInput:Input_default,NSlider:Slider_default,NConfigProvider:ConfigProvider_default,Icon,SettingsBackupRestoreRound:SettingsBackupRestoreRound_default,store};return Object.defineProperty(ne,"__isScriptSetup",{enumerable:!1,value:!0}),ne}}),_hoisted_12={id:"container"},_hoisted_22={class:"function-bar"},_hoisted_32={key:1};function render5(e,t,r,o,n,i){return openBlock(),createElementBlock("div",_hoisted_12,[createVNode(o.NConfigProvider,{theme:o.theme},{default:withCtx(()=>[createBaseVNode("div",_hoisted_22,[createVNode(o.NButton,{size:"small",circle:"",type:"success",onClick:o.reset},{icon:withCtx(()=>[createVNode(o.Icon,null,{default:withCtx(()=>[createVNode(o.SettingsBackupRestoreRound)]),_:1})]),_:1}),createVNode(o.NInput,{value:o.pattern,"onUpdate:value":t[0]||(t[0]=a=>o.pattern=a),placeholder:"Input to search",clearable:""},null,8,["value"])]),o.store.plugin.settings.level_switch?(openBlock(),createBlock(o.NSlider,{key:0,value:o.level,"onUpdate:value":t[1]||(t[1]=a=>o.level=a),marks:o.marks,step:"mark",min:0,max:5,style:{"margin-bottom":"8px"},"format-tooltip":o.formatTooltip},null,8,["value"])):createCommentVNode("v-if",!0),o.pattern?(openBlock(),createElementBlock("code",_hoisted_32,toDisplayString(o.matchCount)+" result(s): ",1)):createCommentVNode("v-if",!0),(openBlock(),createBlock(o.NTree,{"block-line":"",pattern:o.pattern,data:o.data2,"on-update:selected-keys":o.jump,"render-label":o.renderMethod,"node-props":o.setAttrs,"expanded-keys":o.expanded,"on-update:expanded-keys":o.expand,key:o.update_tree,filter:o.filter,"show-irrelevant-nodes":!o.store.plugin.settings.hide_unsearched},null,8,["pattern","data","render-label","expanded-keys","filter","show-irrelevant-nodes"]))]),_:1},8,["theme"])])}Outline_default.render=render5,Outline_default.__file="src\\Outline.vue";var Outline_default2=Outline_default,VIEW_TYPE="quiet-outline",OutlineView=class extends import_obsidian3.ItemView{constructor(e,t){super(e);this.plugin=t}getViewType(){return VIEW_TYPE}getDisplayText(){return"Quiet Outline"}getIcon(){return"lines-of-text"}onOpen(){return __async(this,null,function*(){const e=this.containerEl.children[1];e.empty();const t=e.createEl("div",{cls:"quiet-outline"});this.vueApp=createApp(Outline_default2),this.vueApp.config.globalProperties.plugin=this.plugin,this.vueApp.config.globalProperties.container=t,this.vueApp.mount(t)})}onClose(){return __async(this,null,function*(){})}onunload(){this.vueApp.unmount()}},import_obsidian4=__toModule(require("obsidian")),DEFAULT_SETTINGS={level_switch:!0,markdown:!0,expand_level:"0",hide_unsearched:!0,auto_expand:!0,regex_search:!1},SettingTab=class extends import_obsidian4.PluginSettingTab{constructor(e,t){super(e,t);this.plugin=t}display(){const{containerEl:e}=this;e.empty(),e.createEl("h2",{text:"Settings for Quiet Outline."}),new import_obsidian4.Setting(e).setName("Render Markdown").setDesc("Render heading string as markdown format.").addToggle(t=>t.setValue(this.plugin.settings.markdown).onChange(r=>__async(this,null,function*(){store.plugin.settings.markdown=r,yield this.plugin.saveSettings()}))),new import_obsidian4.Setting(e).setName("Level Switch").setDesc("Expand headings to certain level.").addToggle(t=>t.setValue(this.plugin.settings.level_switch).onChange(r=>__async(this,null,function*(){store.plugin.settings.level_switch=r,yield this.plugin.saveSettings()}))),new import_obsidian4.Setting(e).setName("Default Level").setDesc("Default expand level when opening a new note.").addDropdown(t=>t.addOption("0","No expand").addOption("1","H1").addOption("2","H2").addOption("3","H3").addOption("4","H4").addOption("5","H5").setValue(this.plugin.settings.expand_level).onChange(r=>__async(this,null,function*(){store.plugin.settings.expand_level=r,yield this.plugin.saveSettings()}))),new import_obsidian4.Setting(e).setName("Hide Unsearched").setDesc("Hide irrelevant headings when searching").addToggle(t=>t.setValue(this.plugin.settings.hide_unsearched).onChange(r=>__async(this,null,function*(){store.plugin.settings.hide_unsearched=r,yield this.plugin.saveSettings()}))),new import_obsidian4.Setting(e).setName("Regex Search").setDesc("Search headings using regular expression").addToggle(t=>t.setValue(this.plugin.settings.regex_search).onChange(r=>__async(this,null,function*(){store.plugin.settings.regex_search=r,yield this.plugin.saveSettings()}))),new import_obsidian4.Setting(e).setName("Auto Expand").setDesc("Auto expand and collapse headings when scrolling").addToggle(t=>t.setValue(this.plugin.settings.auto_expand).onChange(r=>__async(this,null,function*(){store.plugin.settings.auto_expand=r,yield this.plugin.saveSettings()})))}},QuietOutline=class extends import_obsidian5.Plugin{onload(){return __async(this,null,function*(){yield this.loadSettings(),store.plugin=this,store.dark=document.querySelector("body").classList.contains("theme-dark"),this.registerView(VIEW_TYPE,r=>new OutlineView(r,this)),this.addCommand({id:"quiet-outline",name:"Quiet Outline",callback:()=>{this.activateView()}}),this.addSettingTab(new SettingTab(this.app,this));const e=()=>{const r=this.app.workspace.getActiveFile();if(r){const o=this.app.metadataCache.getFileCache(r).headings;if(o){store.headers=o;return}}store.headers=[]},t=(0,import_obsidian5.debounce)(e,300,!0);this.registerEvent(this.app.metadataCache.on("changed",()=>{t()})),this.registerEvent(this.app.workspace.on("active-leaf-change",()=>__async(this,null,function*(){store.leaf_change=!store.leaf_change,e()})))})}onunload(){this.app.workspace.detachLeavesOfType(VIEW_TYPE)}loadSettings(){return __async(this,null,function*(){this.settings=Object.assign({},DEFAULT_SETTINGS,yield this.loadData())})}saveSettings(){return __async(this,null,function*(){yield this.saveData(this.settings)})}activateView(){return __async(this,null,function*(){this.app.workspace.getLeavesOfType(VIEW_TYPE).length===0&&(yield this.app.workspace.getRightLeaf(!1).setViewState({type:VIEW_TYPE,active:!0})),this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(VIEW_TYPE)[0])})}},main_default=QuietOutline;/**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/