const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataTable-hdfF2k3k.js","assets/RunDataTable-n918b-Qv.css","assets/RunDataJson-C3t3ZjPB.js","assets/RunDataJson-BH9HLoGC.css","assets/RunDataParsedAiContent-C9jVQbY-.js","assets/core-CZWe7osv.js","assets/RunDataParsedAiContent-wfIiKsq7.css","assets/RunDataSearch-BOte45cu.js","assets/RunDataSearch-2eEalFoi.css","assets/useImportCurlCommand-Dl6INy3z.js","assets/_commonjs-dynamic-modules-TGKdzP3c.js","assets/MainSidebar-8V8yR1hZ.js","assets/Logo-NH0xUQnC.js","assets/Logo-DaegEk2m.css","assets/MainSidebar-D74VZmM5.css","assets/DataStoreView-pwOfUlSA.js","assets/ResourcesListLayout-CHxMfd0o.js","assets/TableBase-DmNxoh-V.js","assets/TableBase-Bf42_9Yp.css","assets/useProjectPages-xv6Eq2Y5.js","assets/ResourcesListLayout-C1JgyGhX.css","assets/ProjectHeader-BGjOBBZs.js","assets/ProjectHeader-B5uv4DKo.css","assets/InsightsSummary-Bypgyn1_.js","assets/InsightsSummary-DTFIhBF3.css","assets/DataStoreActions.vue_vue_type_script_setup_true_lang-DLTdZ7Ze.js","assets/dataStore.store-XMarLJy8.js","assets/DataStoreView-bZrewhaR.css","assets/DataStoreDetailsView-BzaPADj6.js","assets/ProjectBreadcrumb-CcYMzyYS.js","assets/ProjectBreadcrumb-B1Hnf5da.css","assets/DataStoreDetailsView-BxDmY87S.css","assets/AddDataStoreModal-uXL5uFdf.js","assets/AddDataStoreModal-D3j8deoq.css","assets/InsightsDashboard-BFYQJXlU.js","assets/InsightsDashboard-C27Avzrv.css","assets/WorkflowsView-QnB5kP-h.js","assets/EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-CHWBnByP.js","assets/WorkflowActivator-BxX80zGr.js","assets/useWorkflowActivate-CuNKq-WZ.js","assets/WorkflowActivator-jI4sUqXL.css","assets/Tags-DxSdhB5Q.js","assets/Tag-ZyDcgFEj.js","assets/Tag-Cg-Hqs2H.css","assets/Tags-CCemj7t9.css","assets/readyToRunWorkflows.store-DGBtTmGX.js","assets/WorkflowsView-BuvoAeDm.css","assets/CredentialsView-CCg2_s6G.js","assets/pickBy-DpEqvEPR.js","assets/CredentialsView-BAqjGrNq.css","assets/ProjectSettings-D8_RWwH6.js","assets/ProjectSettings-CCVXNK3G.css","assets/ExecutionsView-COI1S8Yf.js","assets/ExecutionsTime.vue_vue_type_script_setup_true_lang-Ke2qqrxm.js","assets/AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-Dwq22y10.js","assets/ExecutionsTime-etWexlXm.css","assets/AnimatedSpinner-Boagztc5.js","assets/AnimatedSpinner-ChSRgyeI.css","assets/ExecutionsView-BHBePl1_.css","assets/ChangePasswordView-CBkVzb39.js","assets/AuthView-CQFbJe0h.js","assets/AuthView-CWVio_MZ.css","assets/ErrorView-C27mVZu1.js","assets/ErrorView-DPS9icAS.css","assets/EntityNotFound-usJAYj1D.js","assets/EntityNotFound-DvXhVSfv.css","assets/EntityUnAuthorised-yPCryEik.js","assets/EntityUnAuthorised-BwDthxJU.css","assets/ForgotMyPasswordView-DAd6lpBF.js","assets/MainHeader-BgYgvS2s.js","assets/useBeforeUnload-DGets1eb.js","assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-CX6d3I0M.js","assets/usePushConnection-Brn1MCOr.js","assets/global-link-actions-C5l8bN84.js","assets/MainHeader-BofAi8wS.css","assets/LogsPanel-ICU1Y6Hy.js","assets/ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-DfVZTSuh.js","assets/canvas-X-1icOh2.js","assets/LogsPanel-BinqqXXh.css","assets/DemoFooter-BGbvJOnc.js","assets/NodeView-75dKKlK2.js","assets/useExecutionDebugging-DDy8bilm.js","assets/NodeView-CiaJbQtZ.css","assets/WorkflowExecutionsView-B7x5IRu_.js","assets/WorkflowExecutionsInfoAccordion-BZHHQFcf.js","assets/InfoAccordion-BHvbx6nt.js","assets/InfoAccordion-dxudNqVC.css","assets/WorkflowExecutionsInfoAccordion-53bC-IXN.css","assets/WorkflowExecutionsView-C_xuUSa8.css","assets/WorkflowExecutionsLandingPage-zeaUSp7T.js","assets/WorkflowExecutionsLandingPage-Bm_hJMl4.css","assets/WorkflowExecutionsPreview-CPQUCKk6.js","assets/WorkflowPreview-BZs8Di_n.js","assets/WorkflowPreview-CIOAVgxK.css","assets/WorkflowExecutionsPreview-Bk3NJMZf.css","assets/SettingsView-CN8rNrUi.js","assets/SettingsView-4yzof_Pb.css","assets/SettingsLdapView-BPUQw21m.js","assets/SettingsLdapView-D0SUO3ai.css","assets/SettingsPersonalView-CkOwN5kp.js","assets/SettingsPersonalView-Bt8bL5tJ.css","assets/SettingsUsersView-C-W3bAek.js","assets/SettingsUsersView-BG7JdfYz.css","assets/SettingsCommunityNodesView-DHJIRIQE.js","assets/SettingsCommunityNodesView-CAggjsaT.css","assets/SettingsApiView-DkWdzJZU.js","assets/SettingsApiView-k1hALKCX.css","assets/SettingsLogStreamingView-CXFUdTy7.js","assets/SettingsLogStreamingView-CflEMmu9.css","assets/SetupView-DTCdkpy-.js","assets/SigninView-XbODXHI6.js","assets/SigninView-D57wRRHz.css","assets/SignupView-B88aZsHB.js","assets/TemplatesCollectionView-p1JacG9j.js","assets/TemplateDetails-CFhSg1pL.js","assets/TemplateDetails-DyUqVhf2.css","assets/TemplateList-DgekHTSl.js","assets/TemplateList-XNW-2Ugr.css","assets/TemplatesView-kwADW1e_.js","assets/TemplatesView-Cyu28Dlo.css","assets/templateActions-D45UELiN.js","assets/TemplatesCollectionView-2q1rzsOG.css","assets/TemplatesWorkflowView-BVzxbwUl.js","assets/TemplatesWorkflowView-DpIiJjJp.css","assets/SetupWorkflowFromTemplateView-C5u6X-e-.js","assets/SetupWorkflowFromTemplateView-ZPJL_m2F.css","assets/TemplatesSearchView-DkEwSWgX.js","assets/TemplatesSearchView-DETaMpDt.css","assets/VariablesView-Ad8vS5nb.js","assets/VariablesView-Bh0OeH4s.css","assets/SettingsUsageAndPlan-CpAkwOo_.js","assets/SettingsUsageAndPlan-_VxSs28G.css","assets/SettingsSso-CzgNGbQk.js","assets/SettingsSso-D4HKPLvV.css","assets/SamlOnboarding-Ba_I74m9.js","assets/SettingsSourceControl-Chxs8lyZ.js","assets/SettingsSourceControl-BBxJXbFC.css","assets/SettingsExternalSecrets-L_l-1Oj-.js","assets/SettingsExternalSecrets-BAX9ENm9.css","assets/WorkerView-CbfVnz4y.js","assets/index-CaZY86md.js","assets/WorkerView-BrSoYcbf.css","assets/WorkflowHistory-DoFfKRnt.js","assets/WorkflowHistory-7Ad0Va7M.css","assets/EvaluationsView-Z8XLaPWl.js","assets/EvaluationsView-BTyYfInB.css","assets/EvaluationsRootView-BwLSDGVp.js","assets/EvaluationsRootView-B5AhHo41.css","assets/FixedCollectionParameter-B_SGODND.js","assets/FixedCollectionParameter-DTkvAml6.css"])))=>i.map(i=>d[i]); (function polyfill() { const relList = document.createElement("link").relList; if (relList && relList.supports && relList.supports("modulepreload")) { return; } for (const link2 of document.querySelectorAll('link[rel="modulepreload"]')) { processPreload(link2); } new MutationObserver((mutations) => { for (const mutation of mutations) { if (mutation.type !== "childList") { continue; } for (const node2 of mutation.addedNodes) { if (node2.tagName === "LINK" && node2.rel === "modulepreload") processPreload(node2); } } }).observe(document, { childList: true, subtree: true }); function getFetchOpts(link2) { const fetchOpts = {}; if (link2.integrity) fetchOpts.integrity = link2.integrity; if (link2.referrerPolicy) fetchOpts.referrerPolicy = link2.referrerPolicy; if (link2.crossOrigin === "use-credentials") fetchOpts.credentials = "include"; else if (link2.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; else fetchOpts.credentials = "same-origin"; return fetchOpts; } function processPreload(link2) { if (link2.ep) return; link2.ep = true; const fetchOpts = getFetchOpts(link2); fetch(link2.href, fetchOpts); } })(); const scriptRel = "modulepreload"; const assetsURL = function(dep) { return "/n8n/" + dep; }; const seen$2 = {}; const __vitePreload = function preload(baseModule, deps, importerUrl) { let promise = Promise.resolve(); if (deps && deps.length > 0) { let allSettled2 = function(promises) { return Promise.all( promises.map( (p2) => Promise.resolve(p2).then( (value2) => ({ status: "fulfilled", value: value2 }), (reason) => ({ status: "rejected", reason }) ) ) ); }; document.getElementsByTagName("link"); const cspNonceMeta = document.querySelector( "meta[property=csp-nonce]" ); const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce"); promise = allSettled2( deps.map((dep) => { dep = assetsURL(dep); if (dep in seen$2) return; seen$2[dep] = true; const isCss = dep.endsWith(".css"); const cssSelector = isCss ? '[rel="stylesheet"]' : ""; if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) { return; } const link2 = document.createElement("link"); link2.rel = isCss ? "stylesheet" : scriptRel; if (!isCss) { link2.as = "script"; } link2.crossOrigin = ""; link2.href = dep; if (cspNonce) { link2.setAttribute("nonce", cspNonce); } document.head.appendChild(link2); if (isCss) { return new Promise((res, rej) => { link2.addEventListener("load", res); link2.addEventListener( "error", () => rej(new Error(`Unable to preload CSS for ${dep}`)) ); }); } }) ); } function handlePreloadError(err) { const e2 = new Event("vite:preloadError", { cancelable: true }); e2.payload = err; window.dispatchEvent(e2); if (!e2.defaultPrevented) { throw err; } } return promise.then((res) => { for (const item2 of res || []) { if (item2.status !== "rejected") continue; handlePreloadError(item2.reason); } return baseModule().catch(handlePreloadError); }); }; const global$1 = globalThis || void 0 || self; /** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function makeMap(str) { const map2 = /* @__PURE__ */ Object.create(null); for (const key2 of str.split(",")) map2[key2] = 1; return (val) => val in map2; } const EMPTY_OBJ = {}; const EMPTY_ARR = []; const NOOP$1 = () => { }; const NO = () => false; const isOn = (key2) => key2.charCodeAt(0) === 111 && key2.charCodeAt(1) === 110 && // uppercase letter (key2.charCodeAt(2) > 122 || key2.charCodeAt(2) < 97); const isModelListener = (key2) => key2.startsWith("onUpdate:"); const extend$7 = Object.assign; const remove$5 = (arr, el2) => { const i = arr.indexOf(el2); if (i > -1) { arr.splice(i, 1); } }; const hasOwnProperty$j = Object.prototype.hasOwnProperty; const hasOwn$2 = (val, key2) => hasOwnProperty$j.call(val, key2); const isArray$5 = Array.isArray; const isMap$1 = (val) => toTypeString$1(val) === "[object Map]"; const isSet$1 = (val) => toTypeString$1(val) === "[object Set]"; const isDate$4 = (val) => toTypeString$1(val) === "[object Date]"; const isRegExp$3 = (val) => toTypeString$1(val) === "[object RegExp]"; const isFunction$6 = (val) => typeof val === "function"; const isString$6 = (val) => typeof val === "string"; const isSymbol$2 = (val) => typeof val === "symbol"; const isObject$b = (val) => val !== null && typeof val === "object"; const isPromise$2 = (val) => { return (isObject$b(val) || isFunction$6(val)) && isFunction$6(val.then) && isFunction$6(val.catch); }; const objectToString$3 = Object.prototype.toString; const toTypeString$1 = (value2) => objectToString$3.call(value2); const toRawType = (value2) => { return toTypeString$1(value2).slice(8, -1); }; const isPlainObject$7 = (val) => toTypeString$1(val) === "[object Object]"; const isIntegerKey = (key2) => isString$6(key2) && key2 !== "NaN" && key2[0] !== "-" && "" + parseInt(key2, 10) === key2; const isReservedProp = /* @__PURE__ */ makeMap( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ); const isBuiltInDirective = /* @__PURE__ */ makeMap( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ); const cacheStringFunction = (fn2) => { const cache2 = /* @__PURE__ */ Object.create(null); return (str) => { const hit = cache2[str]; return hit || (cache2[str] = fn2(str)); }; }; const camelizeRE = /-(\w)/g; const camelize = cacheStringFunction( (str) => { return str.replace(camelizeRE, (_2, c2) => c2 ? c2.toUpperCase() : ""); } ); const hyphenateRE = /\B([A-Z])/g; const hyphenate = cacheStringFunction( (str) => str.replace(hyphenateRE, "-$1").toLowerCase() ); const capitalize$2 = cacheStringFunction((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }); const toHandlerKey = cacheStringFunction( (str) => { const s2 = str ? `on${capitalize$2(str)}` : ``; return s2; } ); const hasChanged = (value2, oldValue) => !Object.is(value2, oldValue); const invokeArrayFns = (fns, ...arg) => { for (let i = 0; i < fns.length; i++) { fns[i](...arg); } }; const def = (obj, key2, value2, writable = false) => { Object.defineProperty(obj, key2, { configurable: true, enumerable: false, writable, value: value2 }); }; const looseToNumber = (val) => { const n2 = parseFloat(val); return isNaN(n2) ? val : n2; }; const toNumber$3 = (val) => { const n2 = isString$6(val) ? Number(val) : NaN; return isNaN(n2) ? val : n2; }; let _globalThis$2; const getGlobalThis$1 = () => { return _globalThis$2 || (_globalThis$2 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global$1 !== "undefined" ? global$1 : {}); }; const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; function genPropsAccessExp(name2) { return identRE.test(name2) ? `__props.${name2}` : `__props[${JSON.stringify(name2)}]`; } function genCacheKey(source, options2) { return source + JSON.stringify( options2, (_2, val) => typeof val === "function" ? val.toString() : val ); } const PatchFlags$1 = { "TEXT": 1, "1": "TEXT", "CLASS": 2, "2": "CLASS", "STYLE": 4, "4": "STYLE", "PROPS": 8, "8": "PROPS", "FULL_PROPS": 16, "16": "FULL_PROPS", "NEED_HYDRATION": 32, "32": "NEED_HYDRATION", "STABLE_FRAGMENT": 64, "64": "STABLE_FRAGMENT", "KEYED_FRAGMENT": 128, "128": "KEYED_FRAGMENT", "UNKEYED_FRAGMENT": 256, "256": "UNKEYED_FRAGMENT", "NEED_PATCH": 512, "512": "NEED_PATCH", "DYNAMIC_SLOTS": 1024, "1024": "DYNAMIC_SLOTS", "DEV_ROOT_FRAGMENT": 2048, "2048": "DEV_ROOT_FRAGMENT", "CACHED": -1, "-1": "CACHED", "BAIL": -2, "-2": "BAIL" }; const PatchFlagNames = { [1]: `TEXT`, [2]: `CLASS`, [4]: `STYLE`, [8]: `PROPS`, [16]: `FULL_PROPS`, [32]: `NEED_HYDRATION`, [64]: `STABLE_FRAGMENT`, [128]: `KEYED_FRAGMENT`, [256]: `UNKEYED_FRAGMENT`, [512]: `NEED_PATCH`, [1024]: `DYNAMIC_SLOTS`, [2048]: `DEV_ROOT_FRAGMENT`, [-1]: `HOISTED`, [-2]: `BAIL` }; const ShapeFlags = { "ELEMENT": 1, "1": "ELEMENT", "FUNCTIONAL_COMPONENT": 2, "2": "FUNCTIONAL_COMPONENT", "STATEFUL_COMPONENT": 4, "4": "STATEFUL_COMPONENT", "TEXT_CHILDREN": 8, "8": "TEXT_CHILDREN", "ARRAY_CHILDREN": 16, "16": "ARRAY_CHILDREN", "SLOTS_CHILDREN": 32, "32": "SLOTS_CHILDREN", "TELEPORT": 64, "64": "TELEPORT", "SUSPENSE": 128, "128": "SUSPENSE", "COMPONENT_SHOULD_KEEP_ALIVE": 256, "256": "COMPONENT_SHOULD_KEEP_ALIVE", "COMPONENT_KEPT_ALIVE": 512, "512": "COMPONENT_KEPT_ALIVE", "COMPONENT": 6, "6": "COMPONENT" }; const SlotFlags = { "STABLE": 1, "1": "STABLE", "DYNAMIC": 2, "2": "DYNAMIC", "FORWARDED": 3, "3": "FORWARDED" }; const slotFlagsText = { [1]: "STABLE", [2]: "DYNAMIC", [3]: "FORWARDED" }; const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); const isGloballyWhitelisted = isGloballyAllowed; const range$4 = 2; function generateCodeFrame(source, start2 = 0, end2 = source.length) { start2 = Math.max(0, Math.min(start2, source.length)); end2 = Math.max(0, Math.min(end2, source.length)); if (start2 > end2) return ""; let lines2 = source.split(/(\r?\n)/); const newlineSequences = lines2.filter((_2, idx) => idx % 2 === 1); lines2 = lines2.filter((_2, idx) => idx % 2 === 0); let count2 = 0; const res = []; for (let i = 0; i < lines2.length; i++) { count2 += lines2[i].length + (newlineSequences[i] && newlineSequences[i].length || 0); if (count2 >= start2) { for (let j2 = i - range$4; j2 <= i + range$4 || end2 > count2; j2++) { if (j2 < 0 || j2 >= lines2.length) continue; const line2 = j2 + 1; res.push( `${line2}${" ".repeat(Math.max(3 - String(line2).length, 0))}| ${lines2[j2]}` ); const lineLength = lines2[j2].length; const newLineSeqLength = newlineSequences[j2] && newlineSequences[j2].length || 0; if (j2 === i) { const pad = start2 - (count2 - (lineLength + newLineSeqLength)); const length2 = Math.max( 1, end2 > count2 ? lineLength - pad : end2 - start2 ); res.push(` | ` + " ".repeat(pad) + "^".repeat(length2)); } else if (j2 > i) { if (end2 > count2) { const length2 = Math.max(Math.min(end2 - count2, lineLength), 1); res.push(` | ` + "^".repeat(length2)); } count2 += lineLength + newLineSeqLength; } } break; } } return res.join("\n"); } function normalizeStyle(value2) { if (isArray$5(value2)) { const res = {}; for (let i = 0; i < value2.length; i++) { const item2 = value2[i]; const normalized = isString$6(item2) ? parseStringStyle(item2) : normalizeStyle(item2); if (normalized) { for (const key2 in normalized) { res[key2] = normalized[key2]; } } } return res; } else if (isString$6(value2) || isObject$b(value2)) { return value2; } } const listDelimiterRE = /;(?![^(]*\))/g; const propertyDelimiterRE = /:([^]+)/; const styleCommentRE = /\/\*[^]*?\*\//g; function parseStringStyle(cssText) { const ret = {}; cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item2) => { if (item2) { const tmp = item2.split(propertyDelimiterRE); tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); } }); return ret; } function stringifyStyle(styles2) { if (!styles2) return ""; if (isString$6(styles2)) return styles2; let ret = ""; for (const key2 in styles2) { const value2 = styles2[key2]; if (isString$6(value2) || typeof value2 === "number") { const normalizedKey = key2.startsWith(`--`) ? key2 : hyphenate(key2); ret += `${normalizedKey}:${value2};`; } } return ret; } function normalizeClass(value2) { let res = ""; if (isString$6(value2)) { res = value2; } else if (isArray$5(value2)) { for (let i = 0; i < value2.length; i++) { const normalized = normalizeClass(value2[i]); if (normalized) { res += normalized + " "; } } } else if (isObject$b(value2)) { for (const name2 in value2) { if (value2[name2]) { res += name2 + " "; } } } return res.trim(); } function normalizeProps(props2) { if (!props2) return null; let { class: klass, style: style3 } = props2; if (klass && !isString$6(klass)) { props2.class = normalizeClass(klass); } if (style3) { props2.style = normalizeStyle(style3); } return props2; } const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,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"; const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,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"; const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS); const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS); const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS); const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS); const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); const isBooleanAttr = /* @__PURE__ */ makeMap( specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected` ); function includeBooleanAttr(value2) { return !!value2 || value2 === ""; } const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/; const attrValidationCache = {}; function isSSRSafeAttrName(name2) { if (attrValidationCache.hasOwnProperty(name2)) { return attrValidationCache[name2]; } const isUnsafe = unsafeAttrCharRE.test(name2); if (isUnsafe) { console.error(`unsafe attribute name: ${name2}`); } return attrValidationCache[name2] = !isUnsafe; } const propsToAttrMap = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv" }; const isKnownHtmlAttr = /* @__PURE__ */ makeMap( `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` ); const isKnownSvgAttr = /* @__PURE__ */ makeMap( `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` ); const isKnownMathMLAttr = /* @__PURE__ */ makeMap( `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns` ); function isRenderableAttrValue(value2) { if (value2 == null) { return false; } const type4 = typeof value2; return type4 === "string" || type4 === "number" || type4 === "boolean"; } const escapeRE = /["'&<>]/; function escapeHtml$2(string3) { const str = "" + string3; const match2 = escapeRE.exec(str); if (!match2) { return str; } let html2 = ""; let escaped; let index2; let lastIndex = 0; for (index2 = match2.index; index2 < str.length; index2++) { switch (str.charCodeAt(index2)) { case 34: escaped = """; break; case 38: escaped = "&"; break; case 39: escaped = "'"; break; case 60: escaped = "<"; break; case 62: escaped = ">"; break; default: continue; } if (lastIndex !== index2) { html2 += str.slice(lastIndex, index2); } lastIndex = index2 + 1; html2 += escaped; } return lastIndex !== index2 ? html2 + str.slice(lastIndex, index2) : html2; } const commentStripRE = /^-?>||--!>|?@[\\\]^`{|}~]/g; function getEscapedCssVarName(key2, doubleEscape) { return key2.replace( cssVarNameEscapeSymbolsRE, (s2) => doubleEscape ? s2 === '"' ? '\\\\\\"' : `\\\\${s2}` : `\\${s2}` ); } function looseCompareArrays(a2, b2) { if (a2.length !== b2.length) return false; let equal2 = true; for (let i = 0; equal2 && i < a2.length; i++) { equal2 = looseEqual(a2[i], b2[i]); } return equal2; } function looseEqual(a2, b2) { if (a2 === b2) return true; let aValidType = isDate$4(a2); let bValidType = isDate$4(b2); if (aValidType || bValidType) { return aValidType && bValidType ? a2.getTime() === b2.getTime() : false; } aValidType = isSymbol$2(a2); bValidType = isSymbol$2(b2); if (aValidType || bValidType) { return a2 === b2; } aValidType = isArray$5(a2); bValidType = isArray$5(b2); if (aValidType || bValidType) { return aValidType && bValidType ? looseCompareArrays(a2, b2) : false; } aValidType = isObject$b(a2); bValidType = isObject$b(b2); if (aValidType || bValidType) { if (!aValidType || !bValidType) { return false; } const aKeysCount = Object.keys(a2).length; const bKeysCount = Object.keys(b2).length; if (aKeysCount !== bKeysCount) { return false; } for (const key2 in a2) { const aHasKey = a2.hasOwnProperty(key2); const bHasKey = b2.hasOwnProperty(key2); if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a2[key2], b2[key2])) { return false; } } } return String(a2) === String(b2); } function looseIndexOf(arr, val) { return arr.findIndex((item2) => looseEqual(item2, val)); } const isRef$1 = (val) => { return !!(val && val["__v_isRef"] === true); }; const toDisplayString$1 = (val) => { return isString$6(val) ? val : val == null ? "" : isArray$5(val) || isObject$b(val) && (val.toString === objectToString$3 || !isFunction$6(val.toString)) ? isRef$1(val) ? toDisplayString$1(val.value) : JSON.stringify(val, replacer, 2) : String(val); }; const replacer = (_key, val) => { if (isRef$1(val)) { return replacer(_key, val.value); } else if (isMap$1(val)) { return { [`Map(${val.size})`]: [...val.entries()].reduce( (entries, [key2, val2], i) => { entries[stringifySymbol(key2, i) + " =>"] = val2; return entries; }, {} ) }; } else if (isSet$1(val)) { return { [`Set(${val.size})`]: [...val.values()].map((v2) => stringifySymbol(v2)) }; } else if (isSymbol$2(val)) { return stringifySymbol(val); } else if (isObject$b(val) && !isArray$5(val) && !isPlainObject$7(val)) { return String(val); } return val; }; const stringifySymbol = (v2, i = "") => { var _a2; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check isSymbol$2(v2) ? `Symbol(${(_a2 = v2.description) != null ? _a2 : i})` : v2 ); }; const shared_esmBundler = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, EMPTY_ARR, EMPTY_OBJ, NO, NOOP: NOOP$1, PatchFlagNames, PatchFlags: PatchFlags$1, ShapeFlags, SlotFlags, camelize, capitalize: capitalize$2, cssVarNameEscapeSymbolsRE, def, escapeHtml: escapeHtml$2, escapeHtmlComment, extend: extend$7, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis: getGlobalThis$1, hasChanged, hasOwn: hasOwn$2, hyphenate, includeBooleanAttr, invokeArrayFns, isArray: isArray$5, isBooleanAttr, isBuiltInDirective, isDate: isDate$4, isFunction: isFunction$6, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap: isMap$1, isMathMLTag, isModelListener, isObject: isObject$b, isOn, isPlainObject: isPlainObject$7, isPromise: isPromise$2, isRegExp: isRegExp$3, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet: isSet$1, isSpecialBooleanAttr, isString: isString$6, isSymbol: isSymbol$2, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString: objectToString$3, parseStringStyle, propsToAttrMap, remove: remove$5, slotFlagsText, stringifyStyle, toDisplayString: toDisplayString$1, toHandlerKey, toNumber: toNumber$3, toRawType, toTypeString: toTypeString$1 }, Symbol.toStringTag, { value: "Module" })); /** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ let activeEffectScope; class EffectScope { constructor(detached = false) { this.detached = detached; this._active = true; this.effects = []; this.cleanups = []; this._isPaused = false; this.parent = activeEffectScope; if (!detached && activeEffectScope) { this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( this ) - 1; } } get active() { return this._active; } pause() { if (this._active) { this._isPaused = true; let i, l2; if (this.scopes) { for (i = 0, l2 = this.scopes.length; i < l2; i++) { this.scopes[i].pause(); } } for (i = 0, l2 = this.effects.length; i < l2; i++) { this.effects[i].pause(); } } } /** * Resumes the effect scope, including all child scopes and effects. */ resume() { if (this._active) { if (this._isPaused) { this._isPaused = false; let i, l2; if (this.scopes) { for (i = 0, l2 = this.scopes.length; i < l2; i++) { this.scopes[i].resume(); } } for (i = 0, l2 = this.effects.length; i < l2; i++) { this.effects[i].resume(); } } } } run(fn2) { if (this._active) { const currentEffectScope = activeEffectScope; try { activeEffectScope = this; return fn2(); } finally { activeEffectScope = currentEffectScope; } } } /** * This should only be called on non-detached scopes * @internal */ on() { activeEffectScope = this; } /** * This should only be called on non-detached scopes * @internal */ off() { activeEffectScope = this.parent; } stop(fromParent) { if (this._active) { this._active = false; let i, l2; for (i = 0, l2 = this.effects.length; i < l2; i++) { this.effects[i].stop(); } this.effects.length = 0; for (i = 0, l2 = this.cleanups.length; i < l2; i++) { this.cleanups[i](); } this.cleanups.length = 0; if (this.scopes) { for (i = 0, l2 = this.scopes.length; i < l2; i++) { this.scopes[i].stop(true); } this.scopes.length = 0; } if (!this.detached && this.parent && !fromParent) { const last2 = this.parent.scopes.pop(); if (last2 && last2 !== this) { this.parent.scopes[this.index] = last2; last2.index = this.index; } } this.parent = void 0; } } } function effectScope(detached) { return new EffectScope(detached); } function getCurrentScope$1() { return activeEffectScope; } function onScopeDispose(fn2, failSilently = false) { if (activeEffectScope) { activeEffectScope.cleanups.push(fn2); } } let activeSub; const pausedQueueEffects = /* @__PURE__ */ new WeakSet(); class ReactiveEffect { constructor(fn2) { this.fn = fn2; this.deps = void 0; this.depsTail = void 0; this.flags = 1 | 4; this.next = void 0; this.cleanup = void 0; this.scheduler = void 0; if (activeEffectScope && activeEffectScope.active) { activeEffectScope.effects.push(this); } } pause() { this.flags |= 64; } resume() { if (this.flags & 64) { this.flags &= -65; if (pausedQueueEffects.has(this)) { pausedQueueEffects.delete(this); this.trigger(); } } } /** * @internal */ notify() { if (this.flags & 2 && !(this.flags & 32)) { return; } if (!(this.flags & 8)) { batch(this); } } run() { if (!(this.flags & 1)) { return this.fn(); } this.flags |= 2; cleanupEffect(this); prepareDeps(this); const prevEffect = activeSub; const prevShouldTrack = shouldTrack; activeSub = this; shouldTrack = true; try { return this.fn(); } finally { cleanupDeps(this); activeSub = prevEffect; shouldTrack = prevShouldTrack; this.flags &= -3; } } stop() { if (this.flags & 1) { for (let link2 = this.deps; link2; link2 = link2.nextDep) { removeSub(link2); } this.deps = this.depsTail = void 0; cleanupEffect(this); this.onStop && this.onStop(); this.flags &= -2; } } trigger() { if (this.flags & 64) { pausedQueueEffects.add(this); } else if (this.scheduler) { this.scheduler(); } else { this.runIfDirty(); } } /** * @internal */ runIfDirty() { if (isDirty$1(this)) { this.run(); } } get dirty() { return isDirty$1(this); } } let batchDepth = 0; let batchedSub; let batchedComputed; function batch(sub2, isComputed2 = false) { sub2.flags |= 8; if (isComputed2) { sub2.next = batchedComputed; batchedComputed = sub2; return; } sub2.next = batchedSub; batchedSub = sub2; } function startBatch() { batchDepth++; } function endBatch() { if (--batchDepth > 0) { return; } if (batchedComputed) { let e2 = batchedComputed; batchedComputed = void 0; while (e2) { const next2 = e2.next; e2.next = void 0; e2.flags &= -9; e2 = next2; } } let error2; while (batchedSub) { let e2 = batchedSub; batchedSub = void 0; while (e2) { const next2 = e2.next; e2.next = void 0; e2.flags &= -9; if (e2.flags & 1) { try { ; e2.trigger(); } catch (err) { if (!error2) error2 = err; } } e2 = next2; } } if (error2) throw error2; } function prepareDeps(sub2) { for (let link2 = sub2.deps; link2; link2 = link2.nextDep) { link2.version = -1; link2.prevActiveLink = link2.dep.activeLink; link2.dep.activeLink = link2; } } function cleanupDeps(sub2) { let head; let tail = sub2.depsTail; let link2 = tail; while (link2) { const prev = link2.prevDep; if (link2.version === -1) { if (link2 === tail) tail = prev; removeSub(link2); removeDep(link2); } else { head = link2; } link2.dep.activeLink = link2.prevActiveLink; link2.prevActiveLink = void 0; link2 = prev; } sub2.deps = head; sub2.depsTail = tail; } function isDirty$1(sub2) { for (let link2 = sub2.deps; link2; link2 = link2.nextDep) { if (link2.dep.version !== link2.version || link2.dep.computed && (refreshComputed(link2.dep.computed) || link2.dep.version !== link2.version)) { return true; } } if (sub2._dirty) { return true; } return false; } function refreshComputed(computed2) { if (computed2.flags & 4 && !(computed2.flags & 16)) { return; } computed2.flags &= -17; if (computed2.globalVersion === globalVersion) { return; } computed2.globalVersion = globalVersion; const dep = computed2.dep; computed2.flags |= 2; if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty$1(computed2)) { computed2.flags &= -3; return; } const prevSub = activeSub; const prevShouldTrack = shouldTrack; activeSub = computed2; shouldTrack = true; try { prepareDeps(computed2); const value2 = computed2.fn(computed2._value); if (dep.version === 0 || hasChanged(value2, computed2._value)) { computed2._value = value2; dep.version++; } } catch (err) { dep.version++; throw err; } finally { activeSub = prevSub; shouldTrack = prevShouldTrack; cleanupDeps(computed2); computed2.flags &= -3; } } function removeSub(link2, soft = false) { const { dep, prevSub, nextSub } = link2; if (prevSub) { prevSub.nextSub = nextSub; link2.prevSub = void 0; } if (nextSub) { nextSub.prevSub = prevSub; link2.nextSub = void 0; } if (dep.subs === link2) { dep.subs = prevSub; if (!prevSub && dep.computed) { dep.computed.flags &= -5; for (let l2 = dep.computed.deps; l2; l2 = l2.nextDep) { removeSub(l2, true); } } } if (!soft && !--dep.sc && dep.map) { dep.map.delete(dep.key); } } function removeDep(link2) { const { prevDep, nextDep } = link2; if (prevDep) { prevDep.nextDep = nextDep; link2.prevDep = void 0; } if (nextDep) { nextDep.prevDep = prevDep; link2.nextDep = void 0; } } function effect(fn2, options2) { if (fn2.effect instanceof ReactiveEffect) { fn2 = fn2.effect.fn; } const e2 = new ReactiveEffect(fn2); if (options2) { extend$7(e2, options2); } try { e2.run(); } catch (err) { e2.stop(); throw err; } const runner2 = e2.run.bind(e2); runner2.effect = e2; return runner2; } function stop(runner2) { runner2.effect.stop(); } let shouldTrack = true; const trackStack = []; function pauseTracking() { trackStack.push(shouldTrack); shouldTrack = false; } function resetTracking() { const last2 = trackStack.pop(); shouldTrack = last2 === void 0 ? true : last2; } function cleanupEffect(e2) { const { cleanup } = e2; e2.cleanup = void 0; if (cleanup) { const prevSub = activeSub; activeSub = void 0; try { cleanup(); } finally { activeSub = prevSub; } } } let globalVersion = 0; let Link$1 = class Link { constructor(sub2, dep) { this.sub = sub2; this.dep = dep; this.version = dep.version; this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; } }; class Dep { constructor(computed2) { this.computed = computed2; this.version = 0; this.activeLink = void 0; this.subs = void 0; this.map = void 0; this.key = void 0; this.sc = 0; } track(debugInfo) { if (!activeSub || !shouldTrack || activeSub === this.computed) { return; } let link2 = this.activeLink; if (link2 === void 0 || link2.sub !== activeSub) { link2 = this.activeLink = new Link$1(activeSub, this); if (!activeSub.deps) { activeSub.deps = activeSub.depsTail = link2; } else { link2.prevDep = activeSub.depsTail; activeSub.depsTail.nextDep = link2; activeSub.depsTail = link2; } addSub(link2); } else if (link2.version === -1) { link2.version = this.version; if (link2.nextDep) { const next2 = link2.nextDep; next2.prevDep = link2.prevDep; if (link2.prevDep) { link2.prevDep.nextDep = next2; } link2.prevDep = activeSub.depsTail; link2.nextDep = void 0; activeSub.depsTail.nextDep = link2; activeSub.depsTail = link2; if (activeSub.deps === link2) { activeSub.deps = next2; } } } return link2; } trigger(debugInfo) { this.version++; globalVersion++; this.notify(debugInfo); } notify(debugInfo) { startBatch(); try { if (false) ; for (let link2 = this.subs; link2; link2 = link2.prevSub) { if (link2.sub.notify()) { ; link2.sub.dep.notify(); } } } finally { endBatch(); } } } function addSub(link2) { link2.dep.sc++; if (link2.sub.flags & 4) { const computed2 = link2.dep.computed; if (computed2 && !link2.dep.subs) { computed2.flags |= 4 | 16; for (let l2 = computed2.deps; l2; l2 = l2.nextDep) { addSub(l2); } } const currentTail = link2.dep.subs; if (currentTail !== link2) { link2.prevSub = currentTail; if (currentTail) currentTail.nextSub = link2; } link2.dep.subs = link2; } } const targetMap = /* @__PURE__ */ new WeakMap(); const ITERATE_KEY = Symbol( "" ); const MAP_KEY_ITERATE_KEY = Symbol( "" ); const ARRAY_ITERATE_KEY = Symbol( "" ); function track(target2, type4, key2) { if (shouldTrack && activeSub) { let depsMap = targetMap.get(target2); if (!depsMap) { targetMap.set(target2, depsMap = /* @__PURE__ */ new Map()); } let dep = depsMap.get(key2); if (!dep) { depsMap.set(key2, dep = new Dep()); dep.map = depsMap; dep.key = key2; } { dep.track(); } } } function trigger$2(target2, type4, key2, newValue, oldValue, oldTarget) { const depsMap = targetMap.get(target2); if (!depsMap) { globalVersion++; return; } const run = (dep) => { if (dep) { { dep.trigger(); } } }; startBatch(); if (type4 === "clear") { depsMap.forEach(run); } else { const targetIsArray = isArray$5(target2); const isArrayIndex = targetIsArray && isIntegerKey(key2); if (targetIsArray && key2 === "length") { const newLength = Number(newValue); depsMap.forEach((dep, key22) => { if (key22 === "length" || key22 === ARRAY_ITERATE_KEY || !isSymbol$2(key22) && key22 >= newLength) { run(dep); } }); } else { if (key2 !== void 0 || depsMap.has(void 0)) { run(depsMap.get(key2)); } if (isArrayIndex) { run(depsMap.get(ARRAY_ITERATE_KEY)); } switch (type4) { case "add": if (!targetIsArray) { run(depsMap.get(ITERATE_KEY)); if (isMap$1(target2)) { run(depsMap.get(MAP_KEY_ITERATE_KEY)); } } else if (isArrayIndex) { run(depsMap.get("length")); } break; case "delete": if (!targetIsArray) { run(depsMap.get(ITERATE_KEY)); if (isMap$1(target2)) { run(depsMap.get(MAP_KEY_ITERATE_KEY)); } } break; case "set": if (isMap$1(target2)) { run(depsMap.get(ITERATE_KEY)); } break; } } } endBatch(); } function getDepFromReactive(object5, key2) { const depMap = targetMap.get(object5); return depMap && depMap.get(key2); } function reactiveReadArray(array5) { const raw = toRaw(array5); if (raw === array5) return raw; track(raw, "iterate", ARRAY_ITERATE_KEY); return isShallow(array5) ? raw : raw.map(toReactive$1); } function shallowReadArray(arr) { track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY); return arr; } const arrayInstrumentations = { __proto__: null, [Symbol.iterator]() { return iterator(this, Symbol.iterator, toReactive$1); }, concat(...args) { return reactiveReadArray(this).concat( ...args.map((x2) => isArray$5(x2) ? reactiveReadArray(x2) : x2) ); }, entries() { return iterator(this, "entries", (value2) => { value2[1] = toReactive$1(value2[1]); return value2; }); }, every(fn2, thisArg) { return apply$2(this, "every", fn2, thisArg, void 0, arguments); }, filter(fn2, thisArg) { return apply$2(this, "filter", fn2, thisArg, (v2) => v2.map(toReactive$1), arguments); }, find(fn2, thisArg) { return apply$2(this, "find", fn2, thisArg, toReactive$1, arguments); }, findIndex(fn2, thisArg) { return apply$2(this, "findIndex", fn2, thisArg, void 0, arguments); }, findLast(fn2, thisArg) { return apply$2(this, "findLast", fn2, thisArg, toReactive$1, arguments); }, findLastIndex(fn2, thisArg) { return apply$2(this, "findLastIndex", fn2, thisArg, void 0, arguments); }, // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement forEach(fn2, thisArg) { return apply$2(this, "forEach", fn2, thisArg, void 0, arguments); }, includes(...args) { return searchProxy(this, "includes", args); }, indexOf(...args) { return searchProxy(this, "indexOf", args); }, join(separator2) { return reactiveReadArray(this).join(separator2); }, // keys() iterator only reads `length`, no optimisation required lastIndexOf(...args) { return searchProxy(this, "lastIndexOf", args); }, map(fn2, thisArg) { return apply$2(this, "map", fn2, thisArg, void 0, arguments); }, pop() { return noTracking(this, "pop"); }, push(...args) { return noTracking(this, "push", args); }, reduce(fn2, ...args) { return reduce$1(this, "reduce", fn2, args); }, reduceRight(fn2, ...args) { return reduce$1(this, "reduceRight", fn2, args); }, shift() { return noTracking(this, "shift"); }, // slice could use ARRAY_ITERATE but also seems to beg for range tracking some(fn2, thisArg) { return apply$2(this, "some", fn2, thisArg, void 0, arguments); }, splice(...args) { return noTracking(this, "splice", args); }, toReversed() { return reactiveReadArray(this).toReversed(); }, toSorted(comparer) { return reactiveReadArray(this).toSorted(comparer); }, toSpliced(...args) { return reactiveReadArray(this).toSpliced(...args); }, unshift(...args) { return noTracking(this, "unshift", args); }, values() { return iterator(this, "values", toReactive$1); } }; function iterator(self2, method4, wrapValue) { const arr = shallowReadArray(self2); const iter = arr[method4](); if (arr !== self2 && !isShallow(self2)) { iter._next = iter.next; iter.next = () => { const result2 = iter._next(); if (result2.value) { result2.value = wrapValue(result2.value); } return result2; }; } return iter; } const arrayProto$1 = Array.prototype; function apply$2(self2, method4, fn2, thisArg, wrappedRetFn, args) { const arr = shallowReadArray(self2); const needsWrap = arr !== self2 && !isShallow(self2); const methodFn = arr[method4]; if (methodFn !== arrayProto$1[method4]) { const result22 = methodFn.apply(self2, args); return needsWrap ? toReactive$1(result22) : result22; } let wrappedFn = fn2; if (arr !== self2) { if (needsWrap) { wrappedFn = function(item2, index2) { return fn2.call(this, toReactive$1(item2), index2, self2); }; } else if (fn2.length > 2) { wrappedFn = function(item2, index2) { return fn2.call(this, item2, index2, self2); }; } } const result2 = methodFn.call(arr, wrappedFn, thisArg); return needsWrap && wrappedRetFn ? wrappedRetFn(result2) : result2; } function reduce$1(self2, method4, fn2, args) { const arr = shallowReadArray(self2); let wrappedFn = fn2; if (arr !== self2) { if (!isShallow(self2)) { wrappedFn = function(acc, item2, index2) { return fn2.call(this, acc, toReactive$1(item2), index2, self2); }; } else if (fn2.length > 3) { wrappedFn = function(acc, item2, index2) { return fn2.call(this, acc, item2, index2, self2); }; } } return arr[method4](wrappedFn, ...args); } function searchProxy(self2, method4, args) { const arr = toRaw(self2); track(arr, "iterate", ARRAY_ITERATE_KEY); const res = arr[method4](...args); if ((res === -1 || res === false) && isProxy(args[0])) { args[0] = toRaw(args[0]); return arr[method4](...args); } return res; } function noTracking(self2, method4, args = []) { pauseTracking(); startBatch(); const res = toRaw(self2)[method4].apply(self2, args); endBatch(); resetTracking(); return res; } const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); const builtInSymbols = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key2) => key2 !== "arguments" && key2 !== "caller").map((key2) => Symbol[key2]).filter(isSymbol$2) ); function hasOwnProperty$i(key2) { if (!isSymbol$2(key2)) key2 = String(key2); const obj = toRaw(this); track(obj, "has", key2); return obj.hasOwnProperty(key2); } class BaseReactiveHandler { constructor(_isReadonly = false, _isShallow = false) { this._isReadonly = _isReadonly; this._isShallow = _isShallow; } get(target2, key2, receiver) { if (key2 === "__v_skip") return target2["__v_skip"]; const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; if (key2 === "__v_isReactive") { return !isReadonly2; } else if (key2 === "__v_isReadonly") { return isReadonly2; } else if (key2 === "__v_isShallow") { return isShallow2; } else if (key2 === "__v_raw") { if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target2) || // receiver is not the reactive proxy, but has the same prototype // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(target2) === Object.getPrototypeOf(receiver)) { return target2; } return; } const targetIsArray = isArray$5(target2); if (!isReadonly2) { let fn2; if (targetIsArray && (fn2 = arrayInstrumentations[key2])) { return fn2; } if (key2 === "hasOwnProperty") { return hasOwnProperty$i; } } const res = Reflect.get( target2, key2, // if this is a proxy wrapping a ref, return methods using the raw ref // as receiver so that we don't have to call `toRaw` on the ref in all // its class methods isRef(target2) ? target2 : receiver ); if (isSymbol$2(key2) ? builtInSymbols.has(key2) : isNonTrackableKeys(key2)) { return res; } if (!isReadonly2) { track(target2, "get", key2); } if (isShallow2) { return res; } if (isRef(res)) { return targetIsArray && isIntegerKey(key2) ? res : res.value; } if (isObject$b(res)) { return isReadonly2 ? readonly(res) : reactive(res); } return res; } } class MutableReactiveHandler extends BaseReactiveHandler { constructor(isShallow2 = false) { super(false, isShallow2); } set(target2, key2, value2, receiver) { let oldValue = target2[key2]; if (!this._isShallow) { const isOldValueReadonly = isReadonly(oldValue); if (!isShallow(value2) && !isReadonly(value2)) { oldValue = toRaw(oldValue); value2 = toRaw(value2); } if (!isArray$5(target2) && isRef(oldValue) && !isRef(value2)) { if (isOldValueReadonly) { return false; } else { oldValue.value = value2; return true; } } } const hadKey = isArray$5(target2) && isIntegerKey(key2) ? Number(key2) < target2.length : hasOwn$2(target2, key2); const result2 = Reflect.set( target2, key2, value2, isRef(target2) ? target2 : receiver ); if (target2 === toRaw(receiver)) { if (!hadKey) { trigger$2(target2, "add", key2, value2); } else if (hasChanged(value2, oldValue)) { trigger$2(target2, "set", key2, value2); } } return result2; } deleteProperty(target2, key2) { const hadKey = hasOwn$2(target2, key2); target2[key2]; const result2 = Reflect.deleteProperty(target2, key2); if (result2 && hadKey) { trigger$2(target2, "delete", key2, void 0); } return result2; } has(target2, key2) { const result2 = Reflect.has(target2, key2); if (!isSymbol$2(key2) || !builtInSymbols.has(key2)) { track(target2, "has", key2); } return result2; } ownKeys(target2) { track( target2, "iterate", isArray$5(target2) ? "length" : ITERATE_KEY ); return Reflect.ownKeys(target2); } } class ReadonlyReactiveHandler extends BaseReactiveHandler { constructor(isShallow2 = false) { super(true, isShallow2); } set(target2, key2) { return true; } deleteProperty(target2, key2) { return true; } } const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true); const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true); const toShallow = (value2) => value2; const getProto$1 = (v2) => Reflect.getPrototypeOf(v2); function createIterableMethod(method4, isReadonly2, isShallow2) { return function(...args) { const target2 = this["__v_raw"]; const rawTarget = toRaw(target2); const targetIsMap = isMap$1(rawTarget); const isPair = method4 === "entries" || method4 === Symbol.iterator && targetIsMap; const isKeyOnly = method4 === "keys" && targetIsMap; const innerIterator = target2[method4](...args); const wrap2 = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive$1; !isReadonly2 && track( rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY ); return { // iterator protocol next() { const { value: value2, done } = innerIterator.next(); return done ? { value: value2, done } : { value: isPair ? [wrap2(value2[0]), wrap2(value2[1])] : wrap2(value2), done }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function createReadonlyMethod(type4) { return function(...args) { return type4 === "delete" ? false : type4 === "clear" ? void 0 : this; }; } function createInstrumentations(readonly2, shallow) { const instrumentations = { get(key2) { const target2 = this["__v_raw"]; const rawTarget = toRaw(target2); const rawKey = toRaw(key2); if (!readonly2) { if (hasChanged(key2, rawKey)) { track(rawTarget, "get", key2); } track(rawTarget, "get", rawKey); } const { has } = getProto$1(rawTarget); const wrap2 = shallow ? toShallow : readonly2 ? toReadonly : toReactive$1; if (has.call(rawTarget, key2)) { return wrap2(target2.get(key2)); } else if (has.call(rawTarget, rawKey)) { return wrap2(target2.get(rawKey)); } else if (target2 !== rawTarget) { target2.get(key2); } }, get size() { const target2 = this["__v_raw"]; !readonly2 && track(toRaw(target2), "iterate", ITERATE_KEY); return Reflect.get(target2, "size", target2); }, has(key2) { const target2 = this["__v_raw"]; const rawTarget = toRaw(target2); const rawKey = toRaw(key2); if (!readonly2) { if (hasChanged(key2, rawKey)) { track(rawTarget, "has", key2); } track(rawTarget, "has", rawKey); } return key2 === rawKey ? target2.has(key2) : target2.has(key2) || target2.has(rawKey); }, forEach(callback2, thisArg) { const observed = this; const target2 = observed["__v_raw"]; const rawTarget = toRaw(target2); const wrap2 = shallow ? toShallow : readonly2 ? toReadonly : toReactive$1; !readonly2 && track(rawTarget, "iterate", ITERATE_KEY); return target2.forEach((value2, key2) => { return callback2.call(thisArg, wrap2(value2), wrap2(key2), observed); }); } }; extend$7( instrumentations, readonly2 ? { add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear") } : { add(value2) { if (!shallow && !isShallow(value2) && !isReadonly(value2)) { value2 = toRaw(value2); } const target2 = toRaw(this); const proto2 = getProto$1(target2); const hadKey = proto2.has.call(target2, value2); if (!hadKey) { target2.add(value2); trigger$2(target2, "add", value2, value2); } return this; }, set(key2, value2) { if (!shallow && !isShallow(value2) && !isReadonly(value2)) { value2 = toRaw(value2); } const target2 = toRaw(this); const { has, get: get2 } = getProto$1(target2); let hadKey = has.call(target2, key2); if (!hadKey) { key2 = toRaw(key2); hadKey = has.call(target2, key2); } const oldValue = get2.call(target2, key2); target2.set(key2, value2); if (!hadKey) { trigger$2(target2, "add", key2, value2); } else if (hasChanged(value2, oldValue)) { trigger$2(target2, "set", key2, value2); } return this; }, delete(key2) { const target2 = toRaw(this); const { has, get: get2 } = getProto$1(target2); let hadKey = has.call(target2, key2); if (!hadKey) { key2 = toRaw(key2); hadKey = has.call(target2, key2); } get2 ? get2.call(target2, key2) : void 0; const result2 = target2.delete(key2); if (hadKey) { trigger$2(target2, "delete", key2, void 0); } return result2; }, clear() { const target2 = toRaw(this); const hadItems = target2.size !== 0; const result2 = target2.clear(); if (hadItems) { trigger$2( target2, "clear", void 0, void 0 ); } return result2; } } ); const iteratorMethods = [ "keys", "values", "entries", Symbol.iterator ]; iteratorMethods.forEach((method4) => { instrumentations[method4] = createIterableMethod(method4, readonly2, shallow); }); return instrumentations; } function createInstrumentationGetter(isReadonly2, shallow) { const instrumentations = createInstrumentations(isReadonly2, shallow); return (target2, key2, receiver) => { if (key2 === "__v_isReactive") { return !isReadonly2; } else if (key2 === "__v_isReadonly") { return isReadonly2; } else if (key2 === "__v_raw") { return target2; } return Reflect.get( hasOwn$2(instrumentations, key2) && key2 in target2 ? instrumentations : target2, key2, receiver ); }; } const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) }; const shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) }; const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) }; const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) }; const reactiveMap = /* @__PURE__ */ new WeakMap(); const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); const readonlyMap = /* @__PURE__ */ new WeakMap(); const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); function targetTypeMap(rawType) { switch (rawType) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0; } } function getTargetType$1(value2) { return value2["__v_skip"] || !Object.isExtensible(value2) ? 0 : targetTypeMap(toRawType(value2)); } function reactive(target2) { if (isReadonly(target2)) { return target2; } return createReactiveObject( target2, false, mutableHandlers, mutableCollectionHandlers, reactiveMap ); } function shallowReactive(target2) { return createReactiveObject( target2, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap ); } function readonly(target2) { return createReactiveObject( target2, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap ); } function shallowReadonly(target2) { return createReactiveObject( target2, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap ); } function createReactiveObject(target2, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { if (!isObject$b(target2)) { return target2; } if (target2["__v_raw"] && !(isReadonly2 && target2["__v_isReactive"])) { return target2; } const existingProxy = proxyMap.get(target2); if (existingProxy) { return existingProxy; } const targetType = getTargetType$1(target2); if (targetType === 0) { return target2; } const proxy2 = new Proxy( target2, targetType === 2 ? collectionHandlers : baseHandlers ); proxyMap.set(target2, proxy2); return proxy2; } function isReactive(value2) { if (isReadonly(value2)) { return isReactive(value2["__v_raw"]); } return !!(value2 && value2["__v_isReactive"]); } function isReadonly(value2) { return !!(value2 && value2["__v_isReadonly"]); } function isShallow(value2) { return !!(value2 && value2["__v_isShallow"]); } function isProxy(value2) { return value2 ? !!value2["__v_raw"] : false; } function toRaw(observed) { const raw = observed && observed["__v_raw"]; return raw ? toRaw(raw) : observed; } function markRaw(value2) { if (!hasOwn$2(value2, "__v_skip") && Object.isExtensible(value2)) { def(value2, "__v_skip", true); } return value2; } const toReactive$1 = (value2) => isObject$b(value2) ? reactive(value2) : value2; const toReadonly = (value2) => isObject$b(value2) ? readonly(value2) : value2; function isRef(r2) { return r2 ? r2["__v_isRef"] === true : false; } function ref$1(value2) { return createRef(value2, false); } function shallowRef(value2) { return createRef(value2, true); } function createRef(rawValue, shallow) { if (isRef(rawValue)) { return rawValue; } return new RefImpl(rawValue, shallow); } class RefImpl { constructor(value2, isShallow2) { this.dep = new Dep(); this["__v_isRef"] = true; this["__v_isShallow"] = false; this._rawValue = isShallow2 ? value2 : toRaw(value2); this._value = isShallow2 ? value2 : toReactive$1(value2); this["__v_isShallow"] = isShallow2; } get value() { { this.dep.track(); } return this._value; } set value(newValue) { const oldValue = this._rawValue; const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue); newValue = useDirectValue ? newValue : toRaw(newValue); if (hasChanged(newValue, oldValue)) { this._rawValue = newValue; this._value = useDirectValue ? newValue : toReactive$1(newValue); { this.dep.trigger(); } } } } function triggerRef(ref2) { if (ref2.dep) { { ref2.dep.trigger(); } } } function unref(ref2) { return isRef(ref2) ? ref2.value : ref2; } function toValue$4(source) { return isFunction$6(source) ? source() : unref(source); } const shallowUnwrapHandlers = { get: (target2, key2, receiver) => key2 === "__v_raw" ? target2 : unref(Reflect.get(target2, key2, receiver)), set: (target2, key2, value2, receiver) => { const oldValue = target2[key2]; if (isRef(oldValue) && !isRef(value2)) { oldValue.value = value2; return true; } else { return Reflect.set(target2, key2, value2, receiver); } } }; function proxyRefs(objectWithRefs) { return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); } class CustomRefImpl { constructor(factory2) { this["__v_isRef"] = true; this._value = void 0; const dep = this.dep = new Dep(); const { get: get2, set: set2 } = factory2(dep.track.bind(dep), dep.trigger.bind(dep)); this._get = get2; this._set = set2; } get value() { return this._value = this._get(); } set value(newVal) { this._set(newVal); } } function customRef(factory2) { return new CustomRefImpl(factory2); } function toRefs$2(object5) { const ret = isArray$5(object5) ? new Array(object5.length) : {}; for (const key2 in object5) { ret[key2] = propertyToRef(object5, key2); } return ret; } class ObjectRefImpl { constructor(_object, _key, _defaultValue) { this._object = _object; this._key = _key; this._defaultValue = _defaultValue; this["__v_isRef"] = true; this._value = void 0; } get value() { const val = this._object[this._key]; return this._value = val === void 0 ? this._defaultValue : val; } set value(newVal) { this._object[this._key] = newVal; } get dep() { return getDepFromReactive(toRaw(this._object), this._key); } } class GetterRefImpl { constructor(_getter) { this._getter = _getter; this["__v_isRef"] = true; this["__v_isReadonly"] = true; this._value = void 0; } get value() { return this._value = this._getter(); } } function toRef$1(source, key2, defaultValue) { if (isRef(source)) { return source; } else if (isFunction$6(source)) { return new GetterRefImpl(source); } else if (isObject$b(source) && arguments.length > 1) { return propertyToRef(source, key2, defaultValue); } else { return ref$1(source); } } function propertyToRef(source, key2, defaultValue) { const val = source[key2]; return isRef(val) ? val : new ObjectRefImpl(source, key2, defaultValue); } class ComputedRefImpl { constructor(fn2, setter, isSSR) { this.fn = fn2; this.setter = setter; this._value = void 0; this.dep = new Dep(this); this.__v_isRef = true; this.deps = void 0; this.depsTail = void 0; this.flags = 16; this.globalVersion = globalVersion - 1; this.next = void 0; this.effect = this; this["__v_isReadonly"] = !setter; this.isSSR = isSSR; } /** * @internal */ notify() { this.flags |= 16; if (!(this.flags & 8) && // avoid infinite self recursion activeSub !== this) { batch(this, true); return true; } } get value() { const link2 = this.dep.track(); refreshComputed(this); if (link2) { link2.version = this.dep.version; } return this._value; } set value(newValue) { if (this.setter) { this.setter(newValue); } } } function computed$1(getterOrOptions, debugOptions, isSSR = false) { let getter; let setter; if (isFunction$6(getterOrOptions)) { getter = getterOrOptions; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; } const cRef = new ComputedRefImpl(getter, setter, isSSR); return cRef; } const TrackOpTypes = { "GET": "get", "HAS": "has", "ITERATE": "iterate" }; const TriggerOpTypes = { "SET": "set", "ADD": "add", "DELETE": "delete", "CLEAR": "clear" }; const INITIAL_WATCHER_VALUE = {}; const cleanupMap = /* @__PURE__ */ new WeakMap(); let activeWatcher = void 0; function getCurrentWatcher() { return activeWatcher; } function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) { if (owner) { let cleanups = cleanupMap.get(owner); if (!cleanups) cleanupMap.set(owner, cleanups = []); cleanups.push(cleanupFn); } } function watch$2(source, cb, options2 = EMPTY_OBJ) { const { immediate, deep, once, scheduler, augmentJob, call } = options2; const reactiveGetter = (source2) => { if (deep) return source2; if (isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1); return traverse(source2); }; let effect2; let getter; let cleanup; let boundCleanup; let forceTrigger = false; let isMultiSource = false; if (isRef(source)) { getter = () => source.value; forceTrigger = isShallow(source); } else if (isReactive(source)) { getter = () => reactiveGetter(source); forceTrigger = true; } else if (isArray$5(source)) { isMultiSource = true; forceTrigger = source.some((s2) => isReactive(s2) || isShallow(s2)); getter = () => source.map((s2) => { if (isRef(s2)) { return s2.value; } else if (isReactive(s2)) { return reactiveGetter(s2); } else if (isFunction$6(s2)) { return call ? call(s2, 2) : s2(); } else ; }); } else if (isFunction$6(source)) { if (cb) { getter = call ? () => call(source, 2) : source; } else { getter = () => { if (cleanup) { pauseTracking(); try { cleanup(); } finally { resetTracking(); } } const currentEffect = activeWatcher; activeWatcher = effect2; try { return call ? call(source, 3, [boundCleanup]) : source(boundCleanup); } finally { activeWatcher = currentEffect; } }; } } else { getter = NOOP$1; } if (cb && deep) { const baseGetter = getter; const depth = deep === true ? Infinity : deep; getter = () => traverse(baseGetter(), depth); } const scope2 = getCurrentScope$1(); const watchHandle = () => { effect2.stop(); if (scope2 && scope2.active) { remove$5(scope2.effects, effect2); } }; if (once && cb) { const _cb = cb; cb = (...args) => { _cb(...args); watchHandle(); }; } let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; const job = (immediateFirstRun) => { if (!(effect2.flags & 1) || !effect2.dirty && !immediateFirstRun) { return; } if (cb) { const newValue = effect2.run(); if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i) => hasChanged(v2, oldValue[i])) : hasChanged(newValue, oldValue))) { if (cleanup) { cleanup(); } const currentWatcher = activeWatcher; activeWatcher = effect2; try { const args = [ newValue, // pass undefined as the old value when it's changed for the first time oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, boundCleanup ]; call ? call(cb, 3, args) : ( // @ts-expect-error cb(...args) ); oldValue = newValue; } finally { activeWatcher = currentWatcher; } } } else { effect2.run(); } }; if (augmentJob) { augmentJob(job); } effect2 = new ReactiveEffect(getter); effect2.scheduler = scheduler ? () => scheduler(job, false) : job; boundCleanup = (fn2) => onWatcherCleanup(fn2, false, effect2); cleanup = effect2.onStop = () => { const cleanups = cleanupMap.get(effect2); if (cleanups) { if (call) { call(cleanups, 4); } else { for (const cleanup2 of cleanups) cleanup2(); } cleanupMap.delete(effect2); } }; if (cb) { if (immediate) { job(true); } else { oldValue = effect2.run(); } } else if (scheduler) { scheduler(job.bind(null, true), true); } else { effect2.run(); } watchHandle.pause = effect2.pause.bind(effect2); watchHandle.resume = effect2.resume.bind(effect2); watchHandle.stop = watchHandle; return watchHandle; } function traverse(value2, depth = Infinity, seen2) { if (depth <= 0 || !isObject$b(value2) || value2["__v_skip"]) { return value2; } seen2 = seen2 || /* @__PURE__ */ new Set(); if (seen2.has(value2)) { return value2; } seen2.add(value2); depth--; if (isRef(value2)) { traverse(value2.value, depth, seen2); } else if (isArray$5(value2)) { for (let i = 0; i < value2.length; i++) { traverse(value2[i], depth, seen2); } } else if (isSet$1(value2) || isMap$1(value2)) { value2.forEach((v2) => { traverse(v2, depth, seen2); }); } else if (isPlainObject$7(value2)) { for (const key2 in value2) { traverse(value2[key2], depth, seen2); } for (const key2 of Object.getOwnPropertySymbols(value2)) { if (Object.prototype.propertyIsEnumerable.call(value2, key2)) { traverse(value2[key2], depth, seen2); } } } return value2; } /** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ const stack$1 = []; function pushWarningContext(vnode) { stack$1.push(vnode); } function popWarningContext() { stack$1.pop(); } let isWarning = false; function warn$1$1(msg, ...args) { if (isWarning) return; isWarning = true; pauseTracking(); const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null; const appWarnHandler = instance && instance.appContext.config.warnHandler; const trace = getComponentTrace(); if (appWarnHandler) { callWithErrorHandling( appWarnHandler, instance, 11, [ // eslint-disable-next-line no-restricted-syntax msg + args.map((a2) => { var _a2, _b; return (_b = (_a2 = a2.toString) == null ? void 0 : _a2.call(a2)) != null ? _b : JSON.stringify(a2); }).join(""), instance && instance.proxy, trace.map( ({ vnode }) => `at <${formatComponentName$1(instance, vnode.type)}>` ).join("\n"), trace ] ); } else { const warnArgs = [`[Vue warn]: ${msg}`, ...args]; if (trace.length && // avoid spamming console during tests true) { warnArgs.push(` `, ...formatTrace(trace)); } console.warn(...warnArgs); } resetTracking(); isWarning = false; } function getComponentTrace() { let currentVNode = stack$1[stack$1.length - 1]; if (!currentVNode) { return []; } const normalizedStack = []; while (currentVNode) { const last2 = normalizedStack[0]; if (last2 && last2.vnode === currentVNode) { last2.recurseCount++; } else { normalizedStack.push({ vnode: currentVNode, recurseCount: 0 }); } const parentInstance = currentVNode.component && currentVNode.component.parent; currentVNode = parentInstance && parentInstance.vnode; } return normalizedStack; } function formatTrace(trace) { const logs = []; trace.forEach((entry, i) => { logs.push(...i === 0 ? [] : [` `], ...formatTraceEntry(entry)); }); return logs; } function formatTraceEntry({ vnode, recurseCount }) { const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; const isRoot = vnode.component ? vnode.component.parent == null : false; const open2 = ` at <${formatComponentName$1( vnode.component, vnode.type, isRoot )}`; const close2 = `>` + postfix; return vnode.props ? [open2, ...formatProps(vnode.props), close2] : [open2 + close2]; } function formatProps(props2) { const res = []; const keys2 = Object.keys(props2); keys2.slice(0, 3).forEach((key2) => { res.push(...formatProp(key2, props2[key2])); }); if (keys2.length > 3) { res.push(` ...`); } return res; } function formatProp(key2, value2, raw) { if (isString$6(value2)) { value2 = JSON.stringify(value2); return raw ? value2 : [`${key2}=${value2}`]; } else if (typeof value2 === "number" || typeof value2 === "boolean" || value2 == null) { return raw ? value2 : [`${key2}=${value2}`]; } else if (isRef(value2)) { value2 = formatProp(key2, toRaw(value2.value), true); return raw ? value2 : [`${key2}=Ref<`, value2, `>`]; } else if (isFunction$6(value2)) { return [`${key2}=fn${value2.name ? `<${value2.name}>` : ``}`]; } else { value2 = toRaw(value2); return raw ? value2 : [`${key2}=`, value2]; } } function assertNumber(val, type4) { return; } const ErrorCodes$1 = { "SETUP_FUNCTION": 0, "0": "SETUP_FUNCTION", "RENDER_FUNCTION": 1, "1": "RENDER_FUNCTION", "NATIVE_EVENT_HANDLER": 5, "5": "NATIVE_EVENT_HANDLER", "COMPONENT_EVENT_HANDLER": 6, "6": "COMPONENT_EVENT_HANDLER", "VNODE_HOOK": 7, "7": "VNODE_HOOK", "DIRECTIVE_HOOK": 8, "8": "DIRECTIVE_HOOK", "TRANSITION_HOOK": 9, "9": "TRANSITION_HOOK", "APP_ERROR_HANDLER": 10, "10": "APP_ERROR_HANDLER", "APP_WARN_HANDLER": 11, "11": "APP_WARN_HANDLER", "FUNCTION_REF": 12, "12": "FUNCTION_REF", "ASYNC_COMPONENT_LOADER": 13, "13": "ASYNC_COMPONENT_LOADER", "SCHEDULER": 14, "14": "SCHEDULER", "COMPONENT_UPDATE": 15, "15": "COMPONENT_UPDATE", "APP_UNMOUNT_CLEANUP": 16, "16": "APP_UNMOUNT_CLEANUP" }; const ErrorTypeStrings$1 = { ["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", [15]: "component update", [16]: "app unmount cleanup function" }; function callWithErrorHandling(fn2, instance, type4, args) { try { return args ? fn2(...args) : fn2(); } catch (err) { handleError(err, instance, type4); } } function callWithAsyncErrorHandling(fn2, instance, type4, args) { if (isFunction$6(fn2)) { const res = callWithErrorHandling(fn2, instance, type4, args); if (res && isPromise$2(res)) { res.catch((err) => { handleError(err, instance, type4); }); } return res; } if (isArray$5(fn2)) { const values2 = []; for (let i = 0; i < fn2.length; i++) { values2.push(callWithAsyncErrorHandling(fn2[i], instance, type4, args)); } return values2; } } function handleError(err, instance, type4, throwInDev = true) { const contextVNode = instance ? instance.vnode : null; const { errorHandler: errorHandler2, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ; if (instance) { let cur2 = instance.parent; const exposedInstance = instance.proxy; const errorInfo = `https://vuejs.org/error-reference/#runtime-${type4}`; while (cur2) { const errorCapturedHooks = cur2.ec; if (errorCapturedHooks) { for (let i = 0; i < errorCapturedHooks.length; i++) { if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { return; } } } cur2 = cur2.parent; } if (errorHandler2) { pauseTracking(); callWithErrorHandling(errorHandler2, null, 10, [ err, exposedInstance, errorInfo ]); resetTracking(); return; } } logError(err, type4, contextVNode, throwInDev, throwUnhandledErrorInProduction); } function logError(err, type4, contextVNode, throwInDev = true, throwInProd = false) { if (throwInProd) { throw err; } else { console.error(err); } } const queue$1 = []; let flushIndex = -1; const pendingPostFlushCbs = []; let activePostFlushCbs = null; let postFlushIndex = 0; const resolvedPromise = /* @__PURE__ */ Promise.resolve(); let currentFlushPromise = null; function nextTick(fn2) { const p2 = currentFlushPromise || resolvedPromise; return fn2 ? p2.then(this ? fn2.bind(this) : fn2) : p2; } function findInsertionIndex$1(id2) { let start2 = flushIndex + 1; let end2 = queue$1.length; while (start2 < end2) { const middle2 = start2 + end2 >>> 1; const middleJob = queue$1[middle2]; const middleJobId = getId(middleJob); if (middleJobId < id2 || middleJobId === id2 && middleJob.flags & 2) { start2 = middle2 + 1; } else { end2 = middle2; } } return start2; } function queueJob(job) { if (!(job.flags & 1)) { const jobId = getId(job); const lastJob = queue$1[queue$1.length - 1]; if (!lastJob || // fast path when the job id is larger than the tail !(job.flags & 2) && jobId >= getId(lastJob)) { queue$1.push(job); } else { queue$1.splice(findInsertionIndex$1(jobId), 0, job); } job.flags |= 1; queueFlush(); } } function queueFlush() { if (!currentFlushPromise) { currentFlushPromise = resolvedPromise.then(flushJobs); } } function queuePostFlushCb(cb) { if (!isArray$5(cb)) { if (activePostFlushCbs && cb.id === -1) { activePostFlushCbs.splice(postFlushIndex + 1, 0, cb); } else if (!(cb.flags & 1)) { pendingPostFlushCbs.push(cb); cb.flags |= 1; } } else { pendingPostFlushCbs.push(...cb); } queueFlush(); } function flushPreFlushCbs(instance, seen2, i = flushIndex + 1) { for (; i < queue$1.length; i++) { const cb = queue$1[i]; if (cb && cb.flags & 2) { if (instance && cb.id !== instance.uid) { continue; } queue$1.splice(i, 1); i--; if (cb.flags & 4) { cb.flags &= -2; } cb(); if (!(cb.flags & 4)) { cb.flags &= -2; } } } } function flushPostFlushCbs(seen2) { if (pendingPostFlushCbs.length) { const deduped = [...new Set(pendingPostFlushCbs)].sort( (a2, b2) => getId(a2) - getId(b2) ); pendingPostFlushCbs.length = 0; if (activePostFlushCbs) { activePostFlushCbs.push(...deduped); return; } activePostFlushCbs = deduped; for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { const cb = activePostFlushCbs[postFlushIndex]; if (cb.flags & 4) { cb.flags &= -2; } if (!(cb.flags & 8)) cb(); cb.flags &= -2; } activePostFlushCbs = null; postFlushIndex = 0; } } const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id; function flushJobs(seen2) { try { for (flushIndex = 0; flushIndex < queue$1.length; flushIndex++) { const job = queue$1[flushIndex]; if (job && !(job.flags & 8)) { if (false) ; if (job.flags & 4) { job.flags &= ~1; } callWithErrorHandling( job, job.i, job.i ? 15 : 14 ); if (!(job.flags & 4)) { job.flags &= ~1; } } } } finally { for (; flushIndex < queue$1.length; flushIndex++) { const job = queue$1[flushIndex]; if (job) { job.flags &= -2; } } flushIndex = -1; queue$1.length = 0; flushPostFlushCbs(); currentFlushPromise = null; if (queue$1.length || pendingPostFlushCbs.length) { flushJobs(); } } } let devtools$1; let buffer$2 = []; function setDevtoolsHook$1(hook2, target2) { var _a2, _b; devtools$1 = hook2; if (devtools$1) { devtools$1.enabled = true; buffer$2.forEach(({ event, args }) => devtools$1.emit(event, ...args)); buffer$2 = []; } else if ( // handle late devtools injection - only do this if we are in an actual // browser environment to avoid the timer handle stalling test runner exit // (#4815) typeof window !== "undefined" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((_b = (_a2 = window.navigator) == null ? void 0 : _a2.userAgent) == null ? void 0 : _b.includes("jsdom")) ) { const replay = target2.__VUE_DEVTOOLS_HOOK_REPLAY__ = target2.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; replay.push((newHook) => { setDevtoolsHook$1(newHook, target2); }); setTimeout(() => { if (!devtools$1) { target2.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; buffer$2 = []; } }, 3e3); } else { buffer$2 = []; } } let currentRenderingInstance = null; let currentScopeId = null; function setCurrentRenderingInstance(instance) { const prev = currentRenderingInstance; currentRenderingInstance = instance; currentScopeId = instance && instance.type.__scopeId || null; return prev; } function pushScopeId(id2) { currentScopeId = id2; } function popScopeId() { currentScopeId = null; } const withScopeId = (_id) => withCtx; function withCtx(fn2, ctx = currentRenderingInstance, isNonScopedSlot) { if (!ctx) return fn2; if (fn2._n) { return fn2; } const renderFnWithContext = (...args) => { if (renderFnWithContext._d) { setBlockTracking(-1); } const prevInstance = setCurrentRenderingInstance(ctx); let res; try { res = fn2(...args); } finally { setCurrentRenderingInstance(prevInstance); if (renderFnWithContext._d) { setBlockTracking(1); } } return res; }; renderFnWithContext._n = true; renderFnWithContext._c = true; renderFnWithContext._d = true; return renderFnWithContext; } function withDirectives(vnode, directives2) { if (currentRenderingInstance === null) { return vnode; } const instance = getComponentPublicInstance(currentRenderingInstance); const bindings = vnode.dirs || (vnode.dirs = []); for (let i = 0; i < directives2.length; i++) { let [dir, value2, arg, modifiers2 = EMPTY_OBJ] = directives2[i]; if (dir) { if (isFunction$6(dir)) { dir = { mounted: dir, updated: dir }; } if (dir.deep) { traverse(value2); } bindings.push({ dir, instance, value: value2, oldValue: void 0, arg, modifiers: modifiers2 }); } } return vnode; } function invokeDirectiveHook(vnode, prevVNode, instance, name2) { const bindings = vnode.dirs; const oldBindings = prevVNode && prevVNode.dirs; for (let i = 0; i < bindings.length; i++) { const binding = bindings[i]; if (oldBindings) { binding.oldValue = oldBindings[i].value; } let hook2 = binding.dir[name2]; if (hook2) { pauseTracking(); callWithAsyncErrorHandling(hook2, instance, 8, [ vnode.el, binding, vnode, prevVNode ]); resetTracking(); } } } const TeleportEndKey = Symbol("_vte"); const isTeleport = (type4) => type4.__isTeleport; const isTeleportDisabled = (props2) => props2 && (props2.disabled || props2.disabled === ""); const isTeleportDeferred = (props2) => props2 && (props2.defer || props2.defer === ""); const isTargetSVG = (target2) => typeof SVGElement !== "undefined" && target2 instanceof SVGElement; const isTargetMathML = (target2) => typeof MathMLElement === "function" && target2 instanceof MathMLElement; const resolveTarget = (props2, select2) => { const targetSelector = props2 && props2.to; if (isString$6(targetSelector)) { if (!select2) { return null; } else { const target2 = select2(targetSelector); return target2; } } else { return targetSelector; } }; const TeleportImpl = { name: "Teleport", __isTeleport: true, process(n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized, internals) { const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert: insert2, querySelector, createText, createComment } } = internals; const disabled2 = isTeleportDisabled(n2.props); let { shapeFlag, children: children2, dynamicChildren } = n2; if (n1 == null) { const placeholder2 = n2.el = createText(""); const mainAnchor = n2.anchor = createText(""); insert2(placeholder2, container2, anchor2); insert2(mainAnchor, container2, anchor2); const mount2 = (container22, anchor22) => { if (shapeFlag & 16) { if (parentComponent && parentComponent.isCE) { parentComponent.ce._teleportTarget = container22; } mountChildren( children2, container22, anchor22, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } }; const mountToTarget = () => { const target2 = n2.target = resolveTarget(n2.props, querySelector); const targetAnchor = prepareAnchor(target2, n2, createText, insert2); if (target2) { if (namespace2 !== "svg" && isTargetSVG(target2)) { namespace2 = "svg"; } else if (namespace2 !== "mathml" && isTargetMathML(target2)) { namespace2 = "mathml"; } if (!disabled2) { mount2(target2, targetAnchor); updateCssVars(n2, false); } } }; if (disabled2) { mount2(container2, mainAnchor); updateCssVars(n2, true); } if (isTeleportDeferred(n2.props)) { queuePostRenderEffect(() => { mountToTarget(); n2.el.__isMounted = true; }, parentSuspense); } else { mountToTarget(); } } else { if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) { queuePostRenderEffect(() => { TeleportImpl.process( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized, internals ); delete n1.el.__isMounted; }, parentSuspense); return; } n2.el = n1.el; n2.targetStart = n1.targetStart; const mainAnchor = n2.anchor = n1.anchor; const target2 = n2.target = n1.target; const targetAnchor = n2.targetAnchor = n1.targetAnchor; const wasDisabled = isTeleportDisabled(n1.props); const currentContainer = wasDisabled ? container2 : target2; const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; if (namespace2 === "svg" || isTargetSVG(target2)) { namespace2 = "svg"; } else if (namespace2 === "mathml" || isTargetMathML(target2)) { namespace2 = "mathml"; } if (dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, namespace2, slotScopeIds ); traverseStaticChildren(n1, n2, true); } else if (!optimized) { patchChildren( n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, namespace2, slotScopeIds, false ); } if (disabled2) { if (!wasDisabled) { moveTeleport( n2, container2, mainAnchor, internals, 1 ); } else { if (n2.props && n1.props && n2.props.to !== n1.props.to) { n2.props.to = n1.props.to; } } } else { if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { const nextTarget = n2.target = resolveTarget( n2.props, querySelector ); if (nextTarget) { moveTeleport( n2, nextTarget, null, internals, 0 ); } } else if (wasDisabled) { moveTeleport( n2, target2, targetAnchor, internals, 1 ); } } updateCssVars(n2, disabled2); } }, remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { const { shapeFlag, children: children2, anchor: anchor2, targetStart, targetAnchor, target: target2, props: props2 } = vnode; if (target2) { hostRemove(targetStart); hostRemove(targetAnchor); } doRemove && hostRemove(anchor2); if (shapeFlag & 16) { const shouldRemove = doRemove || !isTeleportDisabled(props2); for (let i = 0; i < children2.length; i++) { const child2 = children2[i]; unmount( child2, parentComponent, parentSuspense, shouldRemove, !!child2.dynamicChildren ); } } }, move: moveTeleport, hydrate: hydrateTeleport }; function moveTeleport(vnode, container2, parentAnchor, { o: { insert: insert2 }, m: move }, moveType = 2) { if (moveType === 0) { insert2(vnode.targetAnchor, container2, parentAnchor); } const { el: el2, anchor: anchor2, shapeFlag, children: children2, props: props2 } = vnode; const isReorder = moveType === 2; if (isReorder) { insert2(el2, container2, parentAnchor); } if (!isReorder || isTeleportDisabled(props2)) { if (shapeFlag & 16) { for (let i = 0; i < children2.length; i++) { move( children2[i], container2, parentAnchor, 2 ); } } } if (isReorder) { insert2(anchor2, container2, parentAnchor); } } function hydrateTeleport(node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector, insert: insert2, createText } }, hydrateChildren) { const target2 = vnode.target = resolveTarget( vnode.props, querySelector ); if (target2) { const disabled2 = isTeleportDisabled(vnode.props); const targetNode = target2._lpa || target2.firstChild; if (vnode.shapeFlag & 16) { if (disabled2) { vnode.anchor = hydrateChildren( nextSibling(node2), vnode, parentNode(node2), parentComponent, parentSuspense, slotScopeIds, optimized ); vnode.targetStart = targetNode; vnode.targetAnchor = targetNode && nextSibling(targetNode); } else { vnode.anchor = nextSibling(node2); let targetAnchor = targetNode; while (targetAnchor) { if (targetAnchor && targetAnchor.nodeType === 8) { if (targetAnchor.data === "teleport start anchor") { vnode.targetStart = targetAnchor; } else if (targetAnchor.data === "teleport anchor") { vnode.targetAnchor = targetAnchor; target2._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); break; } } targetAnchor = nextSibling(targetAnchor); } if (!vnode.targetAnchor) { prepareAnchor(target2, vnode, createText, insert2); } hydrateChildren( targetNode && nextSibling(targetNode), vnode, target2, parentComponent, parentSuspense, slotScopeIds, optimized ); } } updateCssVars(vnode, disabled2); } return vnode.anchor && nextSibling(vnode.anchor); } const Teleport = TeleportImpl; function updateCssVars(vnode, isDisabled) { const ctx = vnode.ctx; if (ctx && ctx.ut) { let node2, anchor2; if (isDisabled) { node2 = vnode.el; anchor2 = vnode.anchor; } else { node2 = vnode.targetStart; anchor2 = vnode.targetAnchor; } while (node2 && node2 !== anchor2) { if (node2.nodeType === 1) node2.setAttribute("data-v-owner", ctx.uid); node2 = node2.nextSibling; } ctx.ut(); } } function prepareAnchor(target2, vnode, createText, insert2) { const targetStart = vnode.targetStart = createText(""); const targetAnchor = vnode.targetAnchor = createText(""); targetStart[TeleportEndKey] = targetAnchor; if (target2) { insert2(targetStart, target2); insert2(targetAnchor, target2); } return targetAnchor; } const leaveCbKey = Symbol("_leaveCb"); const enterCbKey$1 = Symbol("_enterCb"); function useTransitionState() { const state2 = { isMounted: false, isLeaving: false, isUnmounting: false, leavingVNodes: /* @__PURE__ */ new Map() }; onMounted(() => { state2.isMounted = true; }); onBeforeUnmount(() => { state2.isUnmounting = true; }); return state2; } const TransitionHookValidator = [Function, Array]; const BaseTransitionPropsValidators = { mode: String, appear: Boolean, persisted: Boolean, // enter onBeforeEnter: TransitionHookValidator, onEnter: TransitionHookValidator, onAfterEnter: TransitionHookValidator, onEnterCancelled: TransitionHookValidator, // leave onBeforeLeave: TransitionHookValidator, onLeave: TransitionHookValidator, onAfterLeave: TransitionHookValidator, onLeaveCancelled: TransitionHookValidator, // appear onBeforeAppear: TransitionHookValidator, onAppear: TransitionHookValidator, onAfterAppear: TransitionHookValidator, onAppearCancelled: TransitionHookValidator }; const recursiveGetSubtree = (instance) => { const subTree = instance.subTree; return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; }; const BaseTransitionImpl = { name: `BaseTransition`, props: BaseTransitionPropsValidators, setup(props2, { slots }) { const instance = getCurrentInstance(); const state2 = useTransitionState(); return () => { const children2 = slots.default && getTransitionRawChildren(slots.default(), true); if (!children2 || !children2.length) { return; } const child2 = findNonCommentChild(children2); const rawProps = toRaw(props2); const { mode: mode2 } = rawProps; if (state2.isLeaving) { return emptyPlaceholder(child2); } const innerChild = getInnerChild$1(child2); if (!innerChild) { return emptyPlaceholder(child2); } let enterHooks = resolveTransitionHooks( innerChild, rawProps, state2, instance, // #11061, ensure enterHooks is fresh after clone (hooks) => enterHooks = hooks ); if (innerChild.type !== Comment) { setTransitionHooks(innerChild, enterHooks); } let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree); if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) { let leavingHooks = resolveTransitionHooks( oldInnerChild, rawProps, state2, instance ); setTransitionHooks(oldInnerChild, leavingHooks); if (mode2 === "out-in" && innerChild.type !== Comment) { state2.isLeaving = true; leavingHooks.afterLeave = () => { state2.isLeaving = false; if (!(instance.job.flags & 8)) { instance.update(); } delete leavingHooks.afterLeave; oldInnerChild = void 0; }; return emptyPlaceholder(child2); } else if (mode2 === "in-out" && innerChild.type !== Comment) { leavingHooks.delayLeave = (el2, earlyRemove, delayedLeave) => { const leavingVNodesCache = getLeavingNodesForType( state2, oldInnerChild ); leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; el2[leaveCbKey] = () => { earlyRemove(); el2[leaveCbKey] = void 0; delete enterHooks.delayedLeave; oldInnerChild = void 0; }; enterHooks.delayedLeave = () => { delayedLeave(); delete enterHooks.delayedLeave; oldInnerChild = void 0; }; }; } else { oldInnerChild = void 0; } } else if (oldInnerChild) { oldInnerChild = void 0; } return child2; }; } }; function findNonCommentChild(children2) { let child2 = children2[0]; if (children2.length > 1) { for (const c2 of children2) { if (c2.type !== Comment) { child2 = c2; break; } } } return child2; } const BaseTransition = BaseTransitionImpl; function getLeavingNodesForType(state2, vnode) { const { leavingVNodes } = state2; let leavingVNodesCache = leavingVNodes.get(vnode.type); if (!leavingVNodesCache) { leavingVNodesCache = /* @__PURE__ */ Object.create(null); leavingVNodes.set(vnode.type, leavingVNodesCache); } return leavingVNodesCache; } function resolveTransitionHooks(vnode, props2, state2, instance, postClone) { const { appear, mode: mode2, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props2; const key2 = String(vnode.key); const leavingVNodesCache = getLeavingNodesForType(state2, vnode); const callHook2 = (hook2, args) => { hook2 && callWithAsyncErrorHandling( hook2, instance, 9, args ); }; const callAsyncHook = (hook2, args) => { const done = args[1]; callHook2(hook2, args); if (isArray$5(hook2)) { if (hook2.every((hook22) => hook22.length <= 1)) done(); } else if (hook2.length <= 1) { done(); } }; const hooks = { mode: mode2, persisted, beforeEnter(el2) { let hook2 = onBeforeEnter; if (!state2.isMounted) { if (appear) { hook2 = onBeforeAppear || onBeforeEnter; } else { return; } } if (el2[leaveCbKey]) { el2[leaveCbKey]( true /* cancelled */ ); } const leavingVNode = leavingVNodesCache[key2]; if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { leavingVNode.el[leaveCbKey](); } callHook2(hook2, [el2]); }, enter(el2) { let hook2 = onEnter; let afterHook = onAfterEnter; let cancelHook = onEnterCancelled; if (!state2.isMounted) { if (appear) { hook2 = onAppear || onEnter; afterHook = onAfterAppear || onAfterEnter; cancelHook = onAppearCancelled || onEnterCancelled; } else { return; } } let called = false; const done = el2[enterCbKey$1] = (cancelled) => { if (called) return; called = true; if (cancelled) { callHook2(cancelHook, [el2]); } else { callHook2(afterHook, [el2]); } if (hooks.delayedLeave) { hooks.delayedLeave(); } el2[enterCbKey$1] = void 0; }; if (hook2) { callAsyncHook(hook2, [el2, done]); } else { done(); } }, leave(el2, remove2) { const key22 = String(vnode.key); if (el2[enterCbKey$1]) { el2[enterCbKey$1]( true /* cancelled */ ); } if (state2.isUnmounting) { return remove2(); } callHook2(onBeforeLeave, [el2]); let called = false; const done = el2[leaveCbKey] = (cancelled) => { if (called) return; called = true; remove2(); if (cancelled) { callHook2(onLeaveCancelled, [el2]); } else { callHook2(onAfterLeave, [el2]); } el2[leaveCbKey] = void 0; if (leavingVNodesCache[key22] === vnode) { delete leavingVNodesCache[key22]; } }; leavingVNodesCache[key22] = vnode; if (onLeave) { callAsyncHook(onLeave, [el2, done]); } else { done(); } }, clone(vnode2) { const hooks2 = resolveTransitionHooks( vnode2, props2, state2, instance, postClone ); if (postClone) postClone(hooks2); return hooks2; } }; return hooks; } function emptyPlaceholder(vnode) { if (isKeepAlive(vnode)) { vnode = cloneVNode(vnode); vnode.children = null; return vnode; } } function getInnerChild$1(vnode) { if (!isKeepAlive(vnode)) { if (isTeleport(vnode.type) && vnode.children) { return findNonCommentChild(vnode.children); } return vnode; } const { shapeFlag, children: children2 } = vnode; if (children2) { if (shapeFlag & 16) { return children2[0]; } if (shapeFlag & 32 && isFunction$6(children2.default)) { return children2.default(); } } } function setTransitionHooks(vnode, hooks) { if (vnode.shapeFlag & 6 && vnode.component) { vnode.transition = hooks; setTransitionHooks(vnode.component.subTree, hooks); } else if (vnode.shapeFlag & 128) { vnode.ssContent.transition = hooks.clone(vnode.ssContent); vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); } else { vnode.transition = hooks; } } function getTransitionRawChildren(children2, keepComment = false, parentKey) { let ret = []; let keyedFragmentCount = 0; for (let i = 0; i < children2.length; i++) { let child2 = children2[i]; const key2 = parentKey == null ? child2.key : String(parentKey) + String(child2.key != null ? child2.key : i); if (child2.type === Fragment) { if (child2.patchFlag & 128) keyedFragmentCount++; ret = ret.concat( getTransitionRawChildren(child2.children, keepComment, key2) ); } else if (keepComment || child2.type !== Comment) { ret.push(key2 != null ? cloneVNode(child2, { key: key2 }) : child2); } } if (keyedFragmentCount > 1) { for (let i = 0; i < ret.length; i++) { ret[i].patchFlag = -2; } } return ret; } /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineComponent(options2, extraOptions) { return isFunction$6(options2) ? ( // #8236: extend call and options.name access are considered side-effects // by Rollup, so we have to wrap it in a pure-annotated IIFE. /* @__PURE__ */ (() => extend$7({ name: options2.name }, extraOptions, { setup: options2 }))() ) : options2; } function useId$2() { const i = getCurrentInstance(); if (i) { return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++; } return ""; } function markAsyncBoundary(instance) { instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0]; } function useTemplateRef(key2) { const i = getCurrentInstance(); const r2 = shallowRef(null); if (i) { const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs; { Object.defineProperty(refs, key2, { enumerable: true, get: () => r2.value, set: (val) => r2.value = val }); } } const ret = r2; return ret; } function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { if (isArray$5(rawRef)) { rawRef.forEach( (r2, i) => setRef( r2, oldRawRef && (isArray$5(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount ) ); return; } if (isAsyncWrapper(vnode) && !isUnmount) { if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) { setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree); } return; } const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; const value2 = isUnmount ? null : refValue; const { i: owner, r: ref3 } = rawRef; const oldRef = oldRawRef && oldRawRef.r; const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; const setupState = owner.setupState; const rawSetupState = toRaw(setupState); const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key2) => { return hasOwn$2(rawSetupState, key2); }; if (oldRef != null && oldRef !== ref3) { if (isString$6(oldRef)) { refs[oldRef] = null; if (canSetSetupRef(oldRef)) { setupState[oldRef] = null; } } else if (isRef(oldRef)) { oldRef.value = null; } } if (isFunction$6(ref3)) { callWithErrorHandling(ref3, owner, 12, [value2, refs]); } else { const _isString = isString$6(ref3); const _isRef = isRef(ref3); if (_isString || _isRef) { const doSet = () => { if (rawRef.f) { const existing = _isString ? canSetSetupRef(ref3) ? setupState[ref3] : refs[ref3] : ref3.value; if (isUnmount) { isArray$5(existing) && remove$5(existing, refValue); } else { if (!isArray$5(existing)) { if (_isString) { refs[ref3] = [refValue]; if (canSetSetupRef(ref3)) { setupState[ref3] = refs[ref3]; } } else { ref3.value = [refValue]; if (rawRef.k) refs[rawRef.k] = ref3.value; } } else if (!existing.includes(refValue)) { existing.push(refValue); } } } else if (_isString) { refs[ref3] = value2; if (canSetSetupRef(ref3)) { setupState[ref3] = value2; } } else if (_isRef) { ref3.value = value2; if (rawRef.k) refs[rawRef.k] = value2; } else ; }; if (value2) { doSet.id = -1; queuePostRenderEffect(doSet, parentSuspense); } else { doSet(); } } } } let hasLoggedMismatchError = false; const logMismatchError = () => { if (hasLoggedMismatchError) { return; } console.error("Hydration completed but contains mismatches."); hasLoggedMismatchError = true; }; const isSVGContainer = (container2) => container2.namespaceURI.includes("svg") && container2.tagName !== "foreignObject"; const isMathMLContainer = (container2) => container2.namespaceURI.includes("MathML"); const getContainerType = (container2) => { if (container2.nodeType !== 1) return void 0; if (isSVGContainer(container2)) return "svg"; if (isMathMLContainer(container2)) return "mathml"; return void 0; }; const isComment$1 = (node2) => node2.nodeType === 8; function createHydrationFunctions(rendererInternals) { const { mt: mountComponent, p: patch, o: { patchProp: patchProp2, createText, nextSibling, parentNode, remove: remove2, insert: insert2, createComment } } = rendererInternals; const hydrate2 = (vnode, container2) => { if (!container2.hasChildNodes()) { patch(null, vnode, container2); flushPostFlushCbs(); container2._vnode = vnode; return; } hydrateNode(container2.firstChild, vnode, null, null, null); flushPostFlushCbs(); container2._vnode = vnode; }; const hydrateNode = (node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { optimized = optimized || !!vnode.dynamicChildren; const isFragmentStart = isComment$1(node2) && node2.data === "["; const onMismatch = () => handleMismatch( node2, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart ); const { type: type4, ref: ref3, shapeFlag, patchFlag } = vnode; let domType = node2.nodeType; vnode.el = node2; if (patchFlag === -2) { optimized = false; vnode.dynamicChildren = null; } let nextNode = null; switch (type4) { case Text$4: if (domType !== 3) { if (vnode.children === "") { insert2(vnode.el = createText(""), parentNode(node2), node2); nextNode = node2; } else { nextNode = onMismatch(); } } else { if (node2.data !== vnode.children) { logMismatchError(); node2.data = vnode.children; } nextNode = nextSibling(node2); } break; case Comment: if (isTemplateNode2(node2)) { nextNode = nextSibling(node2); replaceNode( vnode.el = node2.content.firstChild, node2, parentComponent ); } else if (domType !== 8 || isFragmentStart) { nextNode = onMismatch(); } else { nextNode = nextSibling(node2); } break; case Static: if (isFragmentStart) { node2 = nextSibling(node2); domType = node2.nodeType; } if (domType === 1 || domType === 3) { nextNode = node2; const needToAdoptContent = !vnode.children.length; for (let i = 0; i < vnode.staticCount; i++) { if (needToAdoptContent) vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data; if (i === vnode.staticCount - 1) { vnode.anchor = nextNode; } nextNode = nextSibling(nextNode); } return isFragmentStart ? nextSibling(nextNode) : nextNode; } else { onMismatch(); } break; case Fragment: if (!isFragmentStart) { nextNode = onMismatch(); } else { nextNode = hydrateFragment( node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } break; default: if (shapeFlag & 1) { if ((domType !== 1 || vnode.type.toLowerCase() !== node2.tagName.toLowerCase()) && !isTemplateNode2(node2)) { nextNode = onMismatch(); } else { nextNode = hydrateElement( node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } } else if (shapeFlag & 6) { vnode.slotScopeIds = slotScopeIds; const container2 = parentNode(node2); if (isFragmentStart) { nextNode = locateClosingAnchor(node2); } else if (isComment$1(node2) && node2.data === "teleport start") { nextNode = locateClosingAnchor(node2, node2.data, "teleport end"); } else { nextNode = nextSibling(node2); } mountComponent( vnode, container2, null, parentComponent, parentSuspense, getContainerType(container2), optimized ); if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) { let subTree; if (isFragmentStart) { subTree = createVNode(Fragment); subTree.anchor = nextNode ? nextNode.previousSibling : container2.lastChild; } else { subTree = node2.nodeType === 3 ? createTextVNode("") : createVNode("div"); } subTree.el = node2; vnode.component.subTree = subTree; } } else if (shapeFlag & 64) { if (domType !== 8) { nextNode = onMismatch(); } else { nextNode = vnode.type.hydrate( node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren ); } } else if (shapeFlag & 128) { nextNode = vnode.type.hydrate( node2, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node2)), slotScopeIds, optimized, rendererInternals, hydrateNode ); } else ; } if (ref3 != null) { setRef(ref3, null, parentSuspense, vnode); } return nextNode; }; const hydrateElement = (el2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { optimized = optimized || !!vnode.dynamicChildren; const { type: type4, props: props2, patchFlag, shapeFlag, dirs, transition: transition2 } = vnode; const forcePatch = type4 === "input" || type4 === "option"; if (forcePatch || patchFlag !== -1) { if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "created"); } let needCallTransitionHooks = false; if (isTemplateNode2(el2)) { needCallTransitionHooks = needTransition( null, // no need check parentSuspense in hydration transition2 ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear; const content2 = el2.content.firstChild; if (needCallTransitionHooks) { transition2.beforeEnter(content2); } replaceNode(content2, el2, parentComponent); vnode.el = el2 = content2; } if (shapeFlag & 16 && // skip if element has innerHTML / textContent !(props2 && (props2.innerHTML || props2.textContent))) { let next2 = hydrateChildren( el2.firstChild, vnode, el2, parentComponent, parentSuspense, slotScopeIds, optimized ); while (next2) { if (!isMismatchAllowed( el2, 1 /* CHILDREN */ )) { logMismatchError(); } const cur2 = next2; next2 = next2.nextSibling; remove2(cur2); } } else if (shapeFlag & 8) { let clientText = vnode.children; if (clientText[0] === "\n" && (el2.tagName === "PRE" || el2.tagName === "TEXTAREA")) { clientText = clientText.slice(1); } if (el2.textContent !== clientText) { if (!isMismatchAllowed( el2, 0 /* TEXT */ )) { logMismatchError(); } el2.textContent = vnode.children; } } if (props2) { if (forcePatch || !optimized || patchFlag & (16 | 32)) { const isCustomElement = el2.tagName.includes("-"); for (const key2 in props2) { if (forcePatch && (key2.endsWith("value") || key2 === "indeterminate") || isOn(key2) && !isReservedProp(key2) || // force hydrate v-bind with .prop modifiers key2[0] === "." || isCustomElement) { patchProp2(el2, key2, null, props2[key2], void 0, parentComponent); } } } else if (props2.onClick) { patchProp2( el2, "onClick", null, props2.onClick, void 0, parentComponent ); } else if (patchFlag & 4 && isReactive(props2.style)) { for (const key2 in props2.style) props2.style[key2]; } } let vnodeHooks; if (vnodeHooks = props2 && props2.onVnodeBeforeMount) { invokeVNodeHook(vnodeHooks, parentComponent, vnode); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); } if ((vnodeHooks = props2 && props2.onVnodeMounted) || dirs || needCallTransitionHooks) { queueEffectWithSuspense(() => { vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); needCallTransitionHooks && transition2.enter(el2); dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); }, parentSuspense); } } return el2.nextSibling; }; const hydrateChildren = (node2, parentVNode, container2, parentComponent, parentSuspense, slotScopeIds, optimized) => { optimized = optimized || !!parentVNode.dynamicChildren; const children2 = parentVNode.children; const l2 = children2.length; for (let i = 0; i < l2; i++) { const vnode = optimized ? children2[i] : children2[i] = normalizeVNode(children2[i]); const isText = vnode.type === Text$4; if (node2) { if (isText && !optimized) { if (i + 1 < l2 && normalizeVNode(children2[i + 1]).type === Text$4) { insert2( createText( node2.data.slice(vnode.children.length) ), container2, nextSibling(node2) ); node2.data = vnode.children; } } node2 = hydrateNode( node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized ); } else if (isText && !vnode.children) { insert2(vnode.el = createText(""), container2); } else { if (!isMismatchAllowed( container2, 1 /* CHILDREN */ )) { logMismatchError(); } patch( null, vnode, container2, null, parentComponent, parentSuspense, getContainerType(container2), slotScopeIds ); } } return node2; }; const hydrateFragment = (node2, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { const { slotScopeIds: fragmentSlotScopeIds } = vnode; if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } const container2 = parentNode(node2); const next2 = hydrateChildren( nextSibling(node2), vnode, container2, parentComponent, parentSuspense, slotScopeIds, optimized ); if (next2 && isComment$1(next2) && next2.data === "]") { return nextSibling(vnode.anchor = next2); } else { logMismatchError(); insert2(vnode.anchor = createComment(`]`), container2, next2); return next2; } }; const handleMismatch = (node2, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment2) => { if (!isMismatchAllowed( node2.parentElement, 1 /* CHILDREN */ )) { logMismatchError(); } vnode.el = null; if (isFragment2) { const end2 = locateClosingAnchor(node2); while (true) { const next22 = nextSibling(node2); if (next22 && next22 !== end2) { remove2(next22); } else { break; } } } const next2 = nextSibling(node2); const container2 = parentNode(node2); remove2(node2); patch( null, vnode, container2, next2, parentComponent, parentSuspense, getContainerType(container2), slotScopeIds ); if (parentComponent) { parentComponent.vnode.el = vnode.el; updateHOCHostEl(parentComponent, vnode.el); } return next2; }; const locateClosingAnchor = (node2, open2 = "[", close2 = "]") => { let match2 = 0; while (node2) { node2 = nextSibling(node2); if (node2 && isComment$1(node2)) { if (node2.data === open2) match2++; if (node2.data === close2) { if (match2 === 0) { return nextSibling(node2); } else { match2--; } } } } return node2; }; const replaceNode = (newNode, oldNode, parentComponent) => { const parentNode2 = oldNode.parentNode; if (parentNode2) { parentNode2.replaceChild(newNode, oldNode); } let parent = parentComponent; while (parent) { if (parent.vnode.el === oldNode) { parent.vnode.el = parent.subTree.el = newNode; } parent = parent.parent; } }; const isTemplateNode2 = (node2) => { return node2.nodeType === 1 && node2.tagName === "TEMPLATE"; }; return [hydrate2, hydrateNode]; } const allowMismatchAttr = "data-allow-mismatch"; const MismatchTypeString = { [ 0 /* TEXT */ ]: "text", [ 1 /* CHILDREN */ ]: "children", [ 2 /* CLASS */ ]: "class", [ 3 /* STYLE */ ]: "style", [ 4 /* ATTRIBUTE */ ]: "attribute" }; function isMismatchAllowed(el2, allowedType) { if (allowedType === 0 || allowedType === 1) { while (el2 && !el2.hasAttribute(allowMismatchAttr)) { el2 = el2.parentElement; } } const allowedAttr = el2 && el2.getAttribute(allowMismatchAttr); if (allowedAttr == null) { return false; } else if (allowedAttr === "") { return true; } else { const list2 = allowedAttr.split(","); if (allowedType === 0 && list2.includes("children")) { return true; } return allowedAttr.split(",").includes(MismatchTypeString[allowedType]); } } const requestIdleCallback$1 = getGlobalThis$1().requestIdleCallback || ((cb) => setTimeout(cb, 1)); const cancelIdleCallback$1 = getGlobalThis$1().cancelIdleCallback || ((id2) => clearTimeout(id2)); const hydrateOnIdle = (timeout2 = 1e4) => (hydrate2) => { const id2 = requestIdleCallback$1(hydrate2, { timeout: timeout2 }); return () => cancelIdleCallback$1(id2); }; function elementIsVisibleInViewport(el2) { const { top: top2, left: left2, bottom: bottom2, right: right2 } = el2.getBoundingClientRect(); const { innerHeight: innerHeight2, innerWidth } = window; return (top2 > 0 && top2 < innerHeight2 || bottom2 > 0 && bottom2 < innerHeight2) && (left2 > 0 && left2 < innerWidth || right2 > 0 && right2 < innerWidth); } const hydrateOnVisible = (opts) => (hydrate2, forEach2) => { const ob = new IntersectionObserver((entries) => { for (const e2 of entries) { if (!e2.isIntersecting) continue; ob.disconnect(); hydrate2(); break; } }, opts); forEach2((el2) => { if (!(el2 instanceof Element)) return; if (elementIsVisibleInViewport(el2)) { hydrate2(); ob.disconnect(); return false; } ob.observe(el2); }); return () => ob.disconnect(); }; const hydrateOnMediaQuery = (query) => (hydrate2) => { if (query) { const mql = matchMedia(query); if (mql.matches) { hydrate2(); } else { mql.addEventListener("change", hydrate2, { once: true }); return () => mql.removeEventListener("change", hydrate2); } } }; const hydrateOnInteraction = (interactions = []) => (hydrate2, forEach2) => { if (isString$6(interactions)) interactions = [interactions]; let hasHydrated = false; const doHydrate = (e2) => { if (!hasHydrated) { hasHydrated = true; teardown(); hydrate2(); e2.target.dispatchEvent(new e2.constructor(e2.type, e2)); } }; const teardown = () => { forEach2((el2) => { for (const i of interactions) { el2.removeEventListener(i, doHydrate); } }); }; forEach2((el2) => { for (const i of interactions) { el2.addEventListener(i, doHydrate, { once: true }); } }); return teardown; }; function forEachElement(node2, cb) { if (isComment$1(node2) && node2.data === "[") { let depth = 1; let next2 = node2.nextSibling; while (next2) { if (next2.nodeType === 1) { const result2 = cb(next2); if (result2 === false) { break; } } else if (isComment$1(next2)) { if (next2.data === "]") { if (--depth === 0) break; } else if (next2.data === "[") { depth++; } } next2 = next2.nextSibling; } } else { cb(node2); } } const isAsyncWrapper = (i) => !!i.type.__asyncLoader; /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineAsyncComponent(source) { if (isFunction$6(source)) { source = { loader: source }; } const { loader: loader2, loadingComponent, errorComponent, delay = 200, hydrate: hydrateStrategy, timeout: timeout2, // undefined = never times out suspensible = true, onError: userOnError } = source; let pendingRequest = null; let resolvedComp; let retries = 0; const retry2 = () => { retries++; pendingRequest = null; return load(); }; const load = () => { let thisRequest; return pendingRequest || (thisRequest = pendingRequest = loader2().catch((err) => { err = err instanceof Error ? err : new Error(String(err)); if (userOnError) { return new Promise((resolve2, reject2) => { const userRetry = () => resolve2(retry2()); const userFail = () => reject2(err); userOnError(err, userRetry, userFail, retries + 1); }); } else { throw err; } }).then((comp2) => { if (thisRequest !== pendingRequest && pendingRequest) { return pendingRequest; } if (comp2 && (comp2.__esModule || comp2[Symbol.toStringTag] === "Module")) { comp2 = comp2.default; } resolvedComp = comp2; return comp2; })); }; return /* @__PURE__ */ defineComponent({ name: "AsyncComponentWrapper", __asyncLoader: load, __asyncHydrate(el2, instance, hydrate2) { const doHydrate = hydrateStrategy ? () => { const teardown = hydrateStrategy( hydrate2, (cb) => forEachElement(el2, cb) ); if (teardown) { (instance.bum || (instance.bum = [])).push(teardown); } } : hydrate2; if (resolvedComp) { doHydrate(); } else { load().then(() => !instance.isUnmounted && doHydrate()); } }, get __asyncResolved() { return resolvedComp; }, setup() { const instance = currentInstance; markAsyncBoundary(instance); if (resolvedComp) { return () => createInnerComp(resolvedComp, instance); } const onError = (err) => { pendingRequest = null; handleError( err, instance, 13, !errorComponent ); }; if (suspensible && instance.suspense || isInSSRComponentSetup) { return load().then((comp2) => { return () => createInnerComp(comp2, instance); }).catch((err) => { onError(err); return () => errorComponent ? createVNode(errorComponent, { error: err }) : null; }); } const loaded2 = ref$1(false); const error2 = ref$1(); const delayed = ref$1(!!delay); if (delay) { setTimeout(() => { delayed.value = false; }, delay); } if (timeout2 != null) { setTimeout(() => { if (!loaded2.value && !error2.value) { const err = new Error( `Async component timed out after ${timeout2}ms.` ); onError(err); error2.value = err; } }, timeout2); } load().then(() => { loaded2.value = true; if (instance.parent && isKeepAlive(instance.parent.vnode)) { instance.parent.update(); } }).catch((err) => { onError(err); error2.value = err; }); return () => { if (loaded2.value && resolvedComp) { return createInnerComp(resolvedComp, instance); } else if (error2.value && errorComponent) { return createVNode(errorComponent, { error: error2.value }); } else if (loadingComponent && !delayed.value) { return createVNode(loadingComponent); } }; } }); } function createInnerComp(comp2, parent) { const { ref: ref22, props: props2, children: children2, ce: ce2 } = parent.vnode; const vnode = createVNode(comp2, props2, children2); vnode.ref = ref22; vnode.ce = ce2; delete parent.vnode.ce; return vnode; } const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; const KeepAliveImpl = { name: `KeepAlive`, // Marker for special handling inside the renderer. We are not using a === // check directly on KeepAlive in the renderer, because importing it directly // would prevent it from being tree-shaken. __isKeepAlive: true, props: { include: [String, RegExp, Array], exclude: [String, RegExp, Array], max: [String, Number] }, setup(props2, { slots }) { const instance = getCurrentInstance(); const sharedContext = instance.ctx; if (!sharedContext.renderer) { return () => { const children2 = slots.default && slots.default(); return children2 && children2.length === 1 ? children2[0] : children2; }; } const cache2 = /* @__PURE__ */ new Map(); const keys2 = /* @__PURE__ */ new Set(); let current2 = null; const parentSuspense = instance.suspense; const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext; const storageContainer = createElement("div"); sharedContext.activate = (vnode, container2, anchor2, namespace2, optimized) => { const instance2 = vnode.component; move(vnode, container2, anchor2, 0, parentSuspense); patch( instance2.vnode, vnode, container2, anchor2, instance2, parentSuspense, namespace2, vnode.slotScopeIds, optimized ); queuePostRenderEffect(() => { instance2.isDeactivated = false; if (instance2.a) { invokeArrayFns(instance2.a); } const vnodeHook = vnode.props && vnode.props.onVnodeMounted; if (vnodeHook) { invokeVNodeHook(vnodeHook, instance2.parent, vnode); } }, parentSuspense); }; sharedContext.deactivate = (vnode) => { const instance2 = vnode.component; invalidateMount(instance2.m); invalidateMount(instance2.a); move(vnode, storageContainer, null, 1, parentSuspense); queuePostRenderEffect(() => { if (instance2.da) { invokeArrayFns(instance2.da); } const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; if (vnodeHook) { invokeVNodeHook(vnodeHook, instance2.parent, vnode); } instance2.isDeactivated = true; }, parentSuspense); }; function unmount(vnode) { resetShapeFlag(vnode); _unmount(vnode, instance, parentSuspense, true); } function pruneCache(filter3) { cache2.forEach((vnode, key2) => { const name2 = getComponentName$1(vnode.type); if (name2 && !filter3(name2)) { pruneCacheEntry(key2); } }); } function pruneCacheEntry(key2) { const cached = cache2.get(key2); if (cached && (!current2 || !isSameVNodeType(cached, current2))) { unmount(cached); } else if (current2) { resetShapeFlag(current2); } cache2.delete(key2); keys2.delete(key2); } watch$1( () => [props2.include, props2.exclude], ([include, exclude]) => { include && pruneCache((name2) => matches$1(include, name2)); exclude && pruneCache((name2) => !matches$1(exclude, name2)); }, // prune post-render after `current` has been updated { flush: "post", deep: true } ); let pendingCacheKey = null; const cacheSubtree = () => { if (pendingCacheKey != null) { if (isSuspense(instance.subTree.type)) { queuePostRenderEffect(() => { cache2.set(pendingCacheKey, getInnerChild(instance.subTree)); }, instance.subTree.suspense); } else { cache2.set(pendingCacheKey, getInnerChild(instance.subTree)); } } }; onMounted(cacheSubtree); onUpdated(cacheSubtree); onBeforeUnmount(() => { cache2.forEach((cached) => { const { subTree, suspense } = instance; const vnode = getInnerChild(subTree); if (cached.type === vnode.type && cached.key === vnode.key) { resetShapeFlag(vnode); const da2 = vnode.component.da; da2 && queuePostRenderEffect(da2, suspense); return; } unmount(cached); }); }); return () => { pendingCacheKey = null; if (!slots.default) { return current2 = null; } const children2 = slots.default(); const rawVNode = children2[0]; if (children2.length > 1) { current2 = null; return children2; } else if (!isVNode$1(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { current2 = null; return rawVNode; } let vnode = getInnerChild(rawVNode); if (vnode.type === Comment) { current2 = null; return vnode; } const comp2 = vnode.type; const name2 = getComponentName$1( isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp2 ); const { include, exclude, max: max2 } = props2; if (include && (!name2 || !matches$1(include, name2)) || exclude && name2 && matches$1(exclude, name2)) { vnode.shapeFlag &= -257; current2 = vnode; return rawVNode; } const key2 = vnode.key == null ? comp2 : vnode.key; const cachedVNode = cache2.get(key2); if (vnode.el) { vnode = cloneVNode(vnode); if (rawVNode.shapeFlag & 128) { rawVNode.ssContent = vnode; } } pendingCacheKey = key2; if (cachedVNode) { vnode.el = cachedVNode.el; vnode.component = cachedVNode.component; if (vnode.transition) { setTransitionHooks(vnode, vnode.transition); } vnode.shapeFlag |= 512; keys2.delete(key2); keys2.add(key2); } else { keys2.add(key2); if (max2 && keys2.size > parseInt(max2, 10)) { pruneCacheEntry(keys2.values().next().value); } } vnode.shapeFlag |= 256; current2 = vnode; return isSuspense(rawVNode.type) ? rawVNode : vnode; }; } }; const KeepAlive = KeepAliveImpl; function matches$1(pattern4, name2) { if (isArray$5(pattern4)) { return pattern4.some((p2) => matches$1(p2, name2)); } else if (isString$6(pattern4)) { return pattern4.split(",").includes(name2); } else if (isRegExp$3(pattern4)) { pattern4.lastIndex = 0; return pattern4.test(name2); } return false; } function onActivated(hook2, target2) { registerKeepAliveHook(hook2, "a", target2); } function onDeactivated(hook2, target2) { registerKeepAliveHook(hook2, "da", target2); } function registerKeepAliveHook(hook2, type4, target2 = currentInstance) { const wrappedHook = hook2.__wdc || (hook2.__wdc = () => { let current2 = target2; while (current2) { if (current2.isDeactivated) { return; } current2 = current2.parent; } return hook2(); }); injectHook(type4, wrappedHook, target2); if (target2) { let current2 = target2.parent; while (current2 && current2.parent) { if (isKeepAlive(current2.parent.vnode)) { injectToKeepAliveRoot(wrappedHook, type4, target2, current2); } current2 = current2.parent; } } } function injectToKeepAliveRoot(hook2, type4, target2, keepAliveRoot) { const injected = injectHook( type4, hook2, keepAliveRoot, true /* prepend */ ); onUnmounted(() => { remove$5(keepAliveRoot[type4], injected); }, target2); } function resetShapeFlag(vnode) { vnode.shapeFlag &= -257; vnode.shapeFlag &= -513; } function getInnerChild(vnode) { return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; } function injectHook(type4, hook2, target2 = currentInstance, prepend2 = false) { if (target2) { const hooks = target2[type4] || (target2[type4] = []); const wrappedHook = hook2.__weh || (hook2.__weh = (...args) => { pauseTracking(); const reset2 = setCurrentInstance(target2); const res = callWithAsyncErrorHandling(hook2, target2, type4, args); reset2(); resetTracking(); return res; }); if (prepend2) { hooks.unshift(wrappedHook); } else { hooks.push(wrappedHook); } return wrappedHook; } } const createHook = (lifecycle) => (hook2, target2 = currentInstance) => { if (!isInSSRComponentSetup || lifecycle === "sp") { injectHook(lifecycle, (...args) => hook2(...args), target2); } }; const onBeforeMount = createHook("bm"); const onMounted = createHook("m"); const onBeforeUpdate = createHook( "bu" ); const onUpdated = createHook("u"); const onBeforeUnmount = createHook( "bum" ); const onUnmounted = createHook("um"); const onServerPrefetch = createHook( "sp" ); const onRenderTriggered = createHook("rtg"); const onRenderTracked = createHook("rtc"); function onErrorCaptured(hook2, target2 = currentInstance) { injectHook("ec", hook2, target2); } const COMPONENTS = "components"; const DIRECTIVES = "directives"; function resolveComponent(name2, maybeSelfReference) { return resolveAsset(COMPONENTS, name2, true, maybeSelfReference) || name2; } const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); function resolveDynamicComponent(component2) { if (isString$6(component2)) { return resolveAsset(COMPONENTS, component2, false) || component2; } else { return component2 || NULL_DYNAMIC_COMPONENT; } } function resolveDirective(name2) { return resolveAsset(DIRECTIVES, name2); } function resolveAsset(type4, name2, warnMissing = true, maybeSelfReference = false) { const instance = currentRenderingInstance || currentInstance; if (instance) { const Component = instance.type; if (type4 === COMPONENTS) { const selfName = getComponentName$1( Component, false ); if (selfName && (selfName === name2 || selfName === camelize(name2) || selfName === capitalize$2(camelize(name2)))) { return Component; } } const res = ( // local registration // check instance[type] first which is resolved for options API resolve$4(instance[type4] || Component[type4], name2) || // global registration resolve$4(instance.appContext[type4], name2) ); if (!res && maybeSelfReference) { return Component; } return res; } } function resolve$4(registry2, name2) { return registry2 && (registry2[name2] || registry2[camelize(name2)] || registry2[capitalize$2(camelize(name2))]); } function renderList(source, renderItem, cache2, index2) { let ret; const cached = cache2 && cache2[index2]; const sourceIsArray = isArray$5(source); if (sourceIsArray || isString$6(source)) { const sourceIsReactiveArray = sourceIsArray && isReactive(source); let needsWrap = false; if (sourceIsReactiveArray) { needsWrap = !isShallow(source); source = shallowReadArray(source); } ret = new Array(source.length); for (let i = 0, l2 = source.length; i < l2; i++) { ret[i] = renderItem( needsWrap ? toReactive$1(source[i]) : source[i], i, void 0, cached && cached[i] ); } } else if (typeof source === "number") { ret = new Array(source); for (let i = 0; i < source; i++) { ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]); } } else if (isObject$b(source)) { if (source[Symbol.iterator]) { ret = Array.from( source, (item2, i) => renderItem(item2, i, void 0, cached && cached[i]) ); } else { const keys2 = Object.keys(source); ret = new Array(keys2.length); for (let i = 0, l2 = keys2.length; i < l2; i++) { const key2 = keys2[i]; ret[i] = renderItem(source[key2], key2, i, cached && cached[i]); } } } else { ret = []; } if (cache2) { cache2[index2] = ret; } return ret; } function createSlots(slots, dynamicSlots) { for (let i = 0; i < dynamicSlots.length; i++) { const slot = dynamicSlots[i]; if (isArray$5(slot)) { for (let j2 = 0; j2 < slot.length; j2++) { slots[slot[j2].name] = slot[j2].fn; } } else if (slot) { slots[slot.name] = slot.key ? (...args) => { const res = slot.fn(...args); if (res) res.key = slot.key; return res; } : slot.fn; } } return slots; } function renderSlot(slots, name2, props2 = {}, fallback, noSlotted) { if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) { if (name2 !== "default") props2.name = name2; return openBlock(), createBlock( Fragment, null, [createVNode("slot", props2, fallback && fallback())], 64 ); } let slot = slots[name2]; if (slot && slot._c) { slot._d = false; } openBlock(); const validSlotContent = slot && ensureValidVNode(slot(props2)); const slotKey = props2.key || // slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that validSlotContent && validSlotContent.key; const rendered = createBlock( Fragment, { key: (slotKey && !isSymbol$2(slotKey) ? slotKey : `_${name2}`) + // #7256 force differentiate fallback content from actual content (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2 ); if (!noSlotted && rendered.scopeId) { rendered.slotScopeIds = [rendered.scopeId + "-s"]; } if (slot && slot._c) { slot._d = true; } return rendered; } function ensureValidVNode(vnodes) { return vnodes.some((child2) => { if (!isVNode$1(child2)) return true; if (child2.type === Comment) return false; if (child2.type === Fragment && !ensureValidVNode(child2.children)) return false; return true; }) ? vnodes : null; } function toHandlers(obj, preserveCaseIfNecessary) { const ret = {}; for (const key2 in obj) { ret[preserveCaseIfNecessary && /[A-Z]/.test(key2) ? `on:${key2}` : toHandlerKey(key2)] = obj[key2]; } return ret; } const getPublicInstance = (i) => { if (!i) return null; if (isStatefulComponent(i)) return getComponentPublicInstance(i); return getPublicInstance(i.parent); }; const publicPropertiesMap = ( // Move PURE marker to new line to workaround compiler discarding it // due to type annotation /* @__PURE__ */ extend$7(/* @__PURE__ */ Object.create(null), { $: (i) => i, $el: (i) => i.vnode.el, $data: (i) => i.data, $props: (i) => i.props, $attrs: (i) => i.attrs, $slots: (i) => i.slots, $refs: (i) => i.refs, $parent: (i) => getPublicInstance(i.parent), $root: (i) => getPublicInstance(i.root), $host: (i) => i.ce, $emit: (i) => i.emit, $options: (i) => resolveMergedOptions(i), $forceUpdate: (i) => i.f || (i.f = () => { queueJob(i.update); }), $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), $watch: (i) => instanceWatch.bind(i) }) ); const hasSetupBinding = (state2, key2) => state2 !== EMPTY_OBJ && !state2.__isScriptSetup && hasOwn$2(state2, key2); const PublicInstanceProxyHandlers = { get({ _: instance }, key2) { if (key2 === "__v_skip") { return true; } const { ctx, setupState, data, props: props2, accessCache, type: type4, appContext } = instance; let normalizedProps; if (key2[0] !== "$") { const n2 = accessCache[key2]; if (n2 !== void 0) { switch (n2) { case 1: return setupState[key2]; case 2: return data[key2]; case 4: return ctx[key2]; case 3: return props2[key2]; } } else if (hasSetupBinding(setupState, key2)) { accessCache[key2] = 1; return setupState[key2]; } else if (data !== EMPTY_OBJ && hasOwn$2(data, key2)) { accessCache[key2] = 2; return data[key2]; } else if ( // only cache other properties when instance has declared (thus stable) // props (normalizedProps = instance.propsOptions[0]) && hasOwn$2(normalizedProps, key2) ) { accessCache[key2] = 3; return props2[key2]; } else if (ctx !== EMPTY_OBJ && hasOwn$2(ctx, key2)) { accessCache[key2] = 4; return ctx[key2]; } else if (shouldCacheAccess) { accessCache[key2] = 0; } } const publicGetter = publicPropertiesMap[key2]; let cssModule, globalProperties; if (publicGetter) { if (key2 === "$attrs") { track(instance.attrs, "get", ""); } return publicGetter(instance); } else if ( // css module (injected by vue-loader) (cssModule = type4.__cssModules) && (cssModule = cssModule[key2]) ) { return cssModule; } else if (ctx !== EMPTY_OBJ && hasOwn$2(ctx, key2)) { accessCache[key2] = 4; return ctx[key2]; } else if ( // global properties globalProperties = appContext.config.globalProperties, hasOwn$2(globalProperties, key2) ) { { return globalProperties[key2]; } } else ; }, set({ _: instance }, key2, value2) { const { data, setupState, ctx } = instance; if (hasSetupBinding(setupState, key2)) { setupState[key2] = value2; return true; } else if (data !== EMPTY_OBJ && hasOwn$2(data, key2)) { data[key2] = value2; return true; } else if (hasOwn$2(instance.props, key2)) { return false; } if (key2[0] === "$" && key2.slice(1) in instance) { return false; } else { { ctx[key2] = value2; } } return true; }, has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key2) { let normalizedProps; return !!accessCache[key2] || data !== EMPTY_OBJ && hasOwn$2(data, key2) || hasSetupBinding(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn$2(normalizedProps, key2) || hasOwn$2(ctx, key2) || hasOwn$2(publicPropertiesMap, key2) || hasOwn$2(appContext.config.globalProperties, key2); }, defineProperty(target2, key2, descriptor) { if (descriptor.get != null) { target2._.accessCache[key2] = 0; } else if (hasOwn$2(descriptor, "value")) { this.set(target2, key2, descriptor.value, null); } return Reflect.defineProperty(target2, key2, descriptor); } }; const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend$7({}, PublicInstanceProxyHandlers, { get(target2, key2) { if (key2 === Symbol.unscopables) { return; } return PublicInstanceProxyHandlers.get(target2, key2, target2); }, has(_2, key2) { const has = key2[0] !== "_" && !isGloballyAllowed(key2); return has; } }); function defineProps() { return null; } function defineEmits() { return null; } function defineExpose(exposed) { } function defineOptions(options2) { } function defineSlots() { return null; } function defineModel() { } function withDefaults(props2, defaults2) { return null; } function useSlots() { return getContext$1().slots; } function useAttrs$1() { return getContext$1().attrs; } function getContext$1() { const i = getCurrentInstance(); return i.setupContext || (i.setupContext = createSetupContext(i)); } function normalizePropsOrEmits(props2) { return isArray$5(props2) ? props2.reduce( (normalized, p2) => (normalized[p2] = null, normalized), {} ) : props2; } function mergeDefaults(raw, defaults2) { const props2 = normalizePropsOrEmits(raw); for (const key2 in defaults2) { if (key2.startsWith("__skip")) continue; let opt = props2[key2]; if (opt) { if (isArray$5(opt) || isFunction$6(opt)) { opt = props2[key2] = { type: opt, default: defaults2[key2] }; } else { opt.default = defaults2[key2]; } } else if (opt === null) { opt = props2[key2] = { default: defaults2[key2] }; } else ; if (opt && defaults2[`__skip_${key2}`]) { opt.skipFactory = true; } } return props2; } function mergeModels(a2, b2) { if (!a2 || !b2) return a2 || b2; if (isArray$5(a2) && isArray$5(b2)) return a2.concat(b2); return extend$7({}, normalizePropsOrEmits(a2), normalizePropsOrEmits(b2)); } function createPropsRestProxy(props2, excludedKeys) { const ret = {}; for (const key2 in props2) { if (!excludedKeys.includes(key2)) { Object.defineProperty(ret, key2, { enumerable: true, get: () => props2[key2] }); } } return ret; } function withAsyncContext(getAwaitable) { const ctx = getCurrentInstance(); let awaitable = getAwaitable(); unsetCurrentInstance(); if (isPromise$2(awaitable)) { awaitable = awaitable.catch((e2) => { setCurrentInstance(ctx); throw e2; }); } return [awaitable, () => setCurrentInstance(ctx)]; } let shouldCacheAccess = true; function applyOptions(instance) { const options2 = resolveMergedOptions(instance); const publicThis = instance.proxy; const ctx = instance.ctx; shouldCacheAccess = false; if (options2.beforeCreate) { callHook$1(options2.beforeCreate, instance, "bc"); } const { // state data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, // lifecycle created, beforeMount: beforeMount2, mounted, beforeUpdate, updated: updated2, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted: unmounted2, render: render2, renderTracked, renderTriggered, errorCaptured, serverPrefetch, // public API expose: expose2, inheritAttrs, // assets components, directives: directives2, filters: filters2 } = options2; const checkDuplicateProperties = null; if (injectOptions) { resolveInjections(injectOptions, ctx, checkDuplicateProperties); } if (methods) { for (const key2 in methods) { const methodHandler = methods[key2]; if (isFunction$6(methodHandler)) { { ctx[key2] = methodHandler.bind(publicThis); } } } } if (dataOptions) { const data = dataOptions.call(publicThis, publicThis); if (!isObject$b(data)) ; else { instance.data = reactive(data); } } shouldCacheAccess = true; if (computedOptions) { for (const key2 in computedOptions) { const opt = computedOptions[key2]; const get2 = isFunction$6(opt) ? opt.bind(publicThis, publicThis) : isFunction$6(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP$1; const set2 = !isFunction$6(opt) && isFunction$6(opt.set) ? opt.set.bind(publicThis) : NOOP$1; const c2 = computed({ get: get2, set: set2 }); Object.defineProperty(ctx, key2, { enumerable: true, configurable: true, get: () => c2.value, set: (v2) => c2.value = v2 }); } } if (watchOptions) { for (const key2 in watchOptions) { createWatcher(watchOptions[key2], ctx, publicThis, key2); } } if (provideOptions) { const provides = isFunction$6(provideOptions) ? provideOptions.call(publicThis) : provideOptions; Reflect.ownKeys(provides).forEach((key2) => { provide(key2, provides[key2]); }); } if (created) { callHook$1(created, instance, "c"); } function registerLifecycleHook(register3, hook2) { if (isArray$5(hook2)) { hook2.forEach((_hook) => register3(_hook.bind(publicThis))); } else if (hook2) { register3(hook2.bind(publicThis)); } } registerLifecycleHook(onBeforeMount, beforeMount2); registerLifecycleHook(onMounted, mounted); registerLifecycleHook(onBeforeUpdate, beforeUpdate); registerLifecycleHook(onUpdated, updated2); registerLifecycleHook(onActivated, activated); registerLifecycleHook(onDeactivated, deactivated); registerLifecycleHook(onErrorCaptured, errorCaptured); registerLifecycleHook(onRenderTracked, renderTracked); registerLifecycleHook(onRenderTriggered, renderTriggered); registerLifecycleHook(onBeforeUnmount, beforeUnmount); registerLifecycleHook(onUnmounted, unmounted2); registerLifecycleHook(onServerPrefetch, serverPrefetch); if (isArray$5(expose2)) { if (expose2.length) { const exposed = instance.exposed || (instance.exposed = {}); expose2.forEach((key2) => { Object.defineProperty(exposed, key2, { get: () => publicThis[key2], set: (val) => publicThis[key2] = val }); }); } else if (!instance.exposed) { instance.exposed = {}; } } if (render2 && instance.render === NOOP$1) { instance.render = render2; } if (inheritAttrs != null) { instance.inheritAttrs = inheritAttrs; } if (components) instance.components = components; if (directives2) instance.directives = directives2; if (serverPrefetch) { markAsyncBoundary(instance); } } function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP$1) { if (isArray$5(injectOptions)) { injectOptions = normalizeInject(injectOptions); } for (const key2 in injectOptions) { const opt = injectOptions[key2]; let injected; if (isObject$b(opt)) { if ("default" in opt) { injected = inject( opt.from || key2, opt.default, true ); } else { injected = inject(opt.from || key2); } } else { injected = inject(opt); } if (isRef(injected)) { Object.defineProperty(ctx, key2, { enumerable: true, configurable: true, get: () => injected.value, set: (v2) => injected.value = v2 }); } else { ctx[key2] = injected; } } } function callHook$1(hook2, instance, type4) { callWithAsyncErrorHandling( isArray$5(hook2) ? hook2.map((h22) => h22.bind(instance.proxy)) : hook2.bind(instance.proxy), instance, type4 ); } function createWatcher(raw, ctx, publicThis, key2) { let getter = key2.includes(".") ? createPathGetter(publicThis, key2) : () => publicThis[key2]; if (isString$6(raw)) { const handler = ctx[raw]; if (isFunction$6(handler)) { { watch$1(getter, handler); } } } else if (isFunction$6(raw)) { { watch$1(getter, raw.bind(publicThis)); } } else if (isObject$b(raw)) { if (isArray$5(raw)) { raw.forEach((r2) => createWatcher(r2, ctx, publicThis, key2)); } else { const handler = isFunction$6(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler]; if (isFunction$6(handler)) { watch$1(getter, handler, raw); } } } else ; } function resolveMergedOptions(instance) { const base2 = instance.type; const { mixins, extends: extendsOptions } = base2; const { mixins: globalMixins, optionsCache: cache2, config: { optionMergeStrategies } } = instance.appContext; const cached = cache2.get(base2); let resolved; if (cached) { resolved = cached; } else if (!globalMixins.length && !mixins && !extendsOptions) { { resolved = base2; } } else { resolved = {}; if (globalMixins.length) { globalMixins.forEach( (m2) => mergeOptions$2(resolved, m2, optionMergeStrategies, true) ); } mergeOptions$2(resolved, base2, optionMergeStrategies); } if (isObject$b(base2)) { cache2.set(base2, resolved); } return resolved; } function mergeOptions$2(to2, from2, strats, asMixin = false) { const { mixins, extends: extendsOptions } = from2; if (extendsOptions) { mergeOptions$2(to2, extendsOptions, strats, true); } if (mixins) { mixins.forEach( (m2) => mergeOptions$2(to2, m2, strats, true) ); } for (const key2 in from2) { if (asMixin && key2 === "expose") ; else { const strat = internalOptionMergeStrats[key2] || strats && strats[key2]; to2[key2] = strat ? strat(to2[key2], from2[key2]) : from2[key2]; } } return to2; } const internalOptionMergeStrats = { data: mergeDataFn, props: mergeEmitsOrPropsOptions, emits: mergeEmitsOrPropsOptions, // objects methods: mergeObjectOptions, computed: mergeObjectOptions, // lifecycle beforeCreate: mergeAsArray$1, created: mergeAsArray$1, beforeMount: mergeAsArray$1, mounted: mergeAsArray$1, beforeUpdate: mergeAsArray$1, updated: mergeAsArray$1, beforeDestroy: mergeAsArray$1, beforeUnmount: mergeAsArray$1, destroyed: mergeAsArray$1, unmounted: mergeAsArray$1, activated: mergeAsArray$1, deactivated: mergeAsArray$1, errorCaptured: mergeAsArray$1, serverPrefetch: mergeAsArray$1, // assets components: mergeObjectOptions, directives: mergeObjectOptions, // watch watch: mergeWatchOptions, // provide / inject provide: mergeDataFn, inject: mergeInject }; function mergeDataFn(to2, from2) { if (!from2) { return to2; } if (!to2) { return from2; } return function mergedDataFn() { return extend$7( isFunction$6(to2) ? to2.call(this, this) : to2, isFunction$6(from2) ? from2.call(this, this) : from2 ); }; } function mergeInject(to2, from2) { return mergeObjectOptions(normalizeInject(to2), normalizeInject(from2)); } function normalizeInject(raw) { if (isArray$5(raw)) { const res = {}; for (let i = 0; i < raw.length; i++) { res[raw[i]] = raw[i]; } return res; } return raw; } function mergeAsArray$1(to2, from2) { return to2 ? [...new Set([].concat(to2, from2))] : from2; } function mergeObjectOptions(to2, from2) { return to2 ? extend$7(/* @__PURE__ */ Object.create(null), to2, from2) : from2; } function mergeEmitsOrPropsOptions(to2, from2) { if (to2) { if (isArray$5(to2) && isArray$5(from2)) { return [.../* @__PURE__ */ new Set([...to2, ...from2])]; } return extend$7( /* @__PURE__ */ Object.create(null), normalizePropsOrEmits(to2), normalizePropsOrEmits(from2 != null ? from2 : {}) ); } else { return from2; } } function mergeWatchOptions(to2, from2) { if (!to2) return from2; if (!from2) return to2; const merged = extend$7(/* @__PURE__ */ Object.create(null), to2); for (const key2 in from2) { merged[key2] = mergeAsArray$1(to2[key2], from2[key2]); } return merged; } function createAppContext() { return { app: null, config: { isNativeTag: NO, performance: false, globalProperties: {}, optionMergeStrategies: {}, errorHandler: void 0, warnHandler: void 0, compilerOptions: {} }, mixins: [], components: {}, directives: {}, provides: /* @__PURE__ */ Object.create(null), optionsCache: /* @__PURE__ */ new WeakMap(), propsCache: /* @__PURE__ */ new WeakMap(), emitsCache: /* @__PURE__ */ new WeakMap() }; } let uid$1$1 = 0; function createAppAPI(render2, hydrate2) { return function createApp2(rootComponent, rootProps = null) { if (!isFunction$6(rootComponent)) { rootComponent = extend$7({}, rootComponent); } if (rootProps != null && !isObject$b(rootProps)) { rootProps = null; } const context2 = createAppContext(); const installedPlugins = /* @__PURE__ */ new WeakSet(); const pluginCleanupFns = []; let isMounted = false; const app2 = context2.app = { _uid: uid$1$1++, _component: rootComponent, _props: rootProps, _container: null, _context: context2, _instance: null, version: version$5, get config() { return context2.config; }, set config(v2) { }, use(plugin, ...options2) { if (installedPlugins.has(plugin)) ; else if (plugin && isFunction$6(plugin.install)) { installedPlugins.add(plugin); plugin.install(app2, ...options2); } else if (isFunction$6(plugin)) { installedPlugins.add(plugin); plugin(app2, ...options2); } else ; return app2; }, mixin(mixin) { { if (!context2.mixins.includes(mixin)) { context2.mixins.push(mixin); } } return app2; }, component(name2, component2) { if (!component2) { return context2.components[name2]; } context2.components[name2] = component2; return app2; }, directive(name2, directive) { if (!directive) { return context2.directives[name2]; } context2.directives[name2] = directive; return app2; }, mount(rootContainer, isHydrate, namespace2) { if (!isMounted) { const vnode = app2._ceVNode || createVNode(rootComponent, rootProps); vnode.appContext = context2; if (namespace2 === true) { namespace2 = "svg"; } else if (namespace2 === false) { namespace2 = void 0; } if (isHydrate && hydrate2) { hydrate2(vnode, rootContainer); } else { render2(vnode, rootContainer, namespace2); } isMounted = true; app2._container = rootContainer; rootContainer.__vue_app__ = app2; return getComponentPublicInstance(vnode.component); } }, onUnmount(cleanupFn) { pluginCleanupFns.push(cleanupFn); }, unmount() { if (isMounted) { callWithAsyncErrorHandling( pluginCleanupFns, app2._instance, 16 ); render2(null, app2._container); delete app2._container.__vue_app__; } }, provide(key2, value2) { context2.provides[key2] = value2; return app2; }, runWithContext(fn2) { const lastApp = currentApp; currentApp = app2; try { return fn2(); } finally { currentApp = lastApp; } } }; return app2; }; } let currentApp = null; function provide(key2, value2) { if (!currentInstance) ; else { let provides = currentInstance.provides; const parentProvides = currentInstance.parent && currentInstance.parent.provides; if (parentProvides === provides) { provides = currentInstance.provides = Object.create(parentProvides); } provides[key2] = value2; } } function inject(key2, defaultValue, treatDefaultAsFactory = false) { const instance = currentInstance || currentRenderingInstance; if (instance || currentApp) { const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; if (provides && key2 in provides) { return provides[key2]; } else if (arguments.length > 1) { return treatDefaultAsFactory && isFunction$6(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; } else ; } } function hasInjectionContext() { return !!(currentInstance || currentRenderingInstance || currentApp); } const internalObjectProto = {}; const createInternalObject = () => Object.create(internalObjectProto); const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto; function initProps(instance, rawProps, isStateful, isSSR = false) { const props2 = {}; const attrs = createInternalObject(); instance.propsDefaults = /* @__PURE__ */ Object.create(null); setFullProps(instance, rawProps, props2, attrs); for (const key2 in instance.propsOptions[0]) { if (!(key2 in props2)) { props2[key2] = void 0; } } if (isStateful) { instance.props = isSSR ? props2 : shallowReactive(props2); } else { if (!instance.type.props) { instance.props = attrs; } else { instance.props = props2; } } instance.attrs = attrs; } function updateProps(instance, rawProps, rawPrevProps, optimized) { const { props: props2, attrs, vnode: { patchFlag } } = instance; const rawCurrentProps = toRaw(props2); const [options2] = instance.propsOptions; let hasAttrsChanged = false; if ( // always force full diff in dev // - #1942 if hmr is enabled with sfc component // - vite#872 non-sfc component used by sfc component (optimized || patchFlag > 0) && !(patchFlag & 16) ) { if (patchFlag & 8) { const propsToUpdate = instance.vnode.dynamicProps; for (let i = 0; i < propsToUpdate.length; i++) { let key2 = propsToUpdate[i]; if (isEmitListener(instance.emitsOptions, key2)) { continue; } const value2 = rawProps[key2]; if (options2) { if (hasOwn$2(attrs, key2)) { if (value2 !== attrs[key2]) { attrs[key2] = value2; hasAttrsChanged = true; } } else { const camelizedKey = camelize(key2); props2[camelizedKey] = resolvePropValue( options2, rawCurrentProps, camelizedKey, value2, instance, false ); } } else { if (value2 !== attrs[key2]) { attrs[key2] = value2; hasAttrsChanged = true; } } } } } else { if (setFullProps(instance, rawProps, props2, attrs)) { hasAttrsChanged = true; } let kebabKey; for (const key2 in rawCurrentProps) { if (!rawProps || // for camelCase !hasOwn$2(rawProps, key2) && // it's possible the original props was passed in as kebab-case // and converted to camelCase (#955) ((kebabKey = hyphenate(key2)) === key2 || !hasOwn$2(rawProps, kebabKey))) { if (options2) { if (rawPrevProps && // for camelCase (rawPrevProps[key2] !== void 0 || // for kebab-case rawPrevProps[kebabKey] !== void 0)) { props2[key2] = resolvePropValue( options2, rawCurrentProps, key2, void 0, instance, true ); } } else { delete props2[key2]; } } } if (attrs !== rawCurrentProps) { for (const key2 in attrs) { if (!rawProps || !hasOwn$2(rawProps, key2) && true) { delete attrs[key2]; hasAttrsChanged = true; } } } } if (hasAttrsChanged) { trigger$2(instance.attrs, "set", ""); } } function setFullProps(instance, rawProps, props2, attrs) { const [options2, needCastKeys] = instance.propsOptions; let hasAttrsChanged = false; let rawCastValues; if (rawProps) { for (let key2 in rawProps) { if (isReservedProp(key2)) { continue; } const value2 = rawProps[key2]; let camelKey; if (options2 && hasOwn$2(options2, camelKey = camelize(key2))) { if (!needCastKeys || !needCastKeys.includes(camelKey)) { props2[camelKey] = value2; } else { (rawCastValues || (rawCastValues = {}))[camelKey] = value2; } } else if (!isEmitListener(instance.emitsOptions, key2)) { if (!(key2 in attrs) || value2 !== attrs[key2]) { attrs[key2] = value2; hasAttrsChanged = true; } } } } if (needCastKeys) { const rawCurrentProps = toRaw(props2); const castValues = rawCastValues || EMPTY_OBJ; for (let i = 0; i < needCastKeys.length; i++) { const key2 = needCastKeys[i]; props2[key2] = resolvePropValue( options2, rawCurrentProps, key2, castValues[key2], instance, !hasOwn$2(castValues, key2) ); } } return hasAttrsChanged; } function resolvePropValue(options2, props2, key2, value2, instance, isAbsent2) { const opt = options2[key2]; if (opt != null) { const hasDefault = hasOwn$2(opt, "default"); if (hasDefault && value2 === void 0) { const defaultValue = opt.default; if (opt.type !== Function && !opt.skipFactory && isFunction$6(defaultValue)) { const { propsDefaults } = instance; if (key2 in propsDefaults) { value2 = propsDefaults[key2]; } else { const reset2 = setCurrentInstance(instance); value2 = propsDefaults[key2] = defaultValue.call( null, props2 ); reset2(); } } else { value2 = defaultValue; } if (instance.ce) { instance.ce._setProp(key2, value2); } } if (opt[ 0 /* shouldCast */ ]) { if (isAbsent2 && !hasDefault) { value2 = false; } else if (opt[ 1 /* shouldCastTrue */ ] && (value2 === "" || value2 === hyphenate(key2))) { value2 = true; } } } return value2; } const mixinPropsCache = /* @__PURE__ */ new WeakMap(); function normalizePropsOptions(comp2, appContext, asMixin = false) { const cache2 = asMixin ? mixinPropsCache : appContext.propsCache; const cached = cache2.get(comp2); if (cached) { return cached; } const raw = comp2.props; const normalized = {}; const needCastKeys = []; let hasExtends = false; if (!isFunction$6(comp2)) { const extendProps = (raw2) => { hasExtends = true; const [props2, keys2] = normalizePropsOptions(raw2, appContext, true); extend$7(normalized, props2); if (keys2) needCastKeys.push(...keys2); }; if (!asMixin && appContext.mixins.length) { appContext.mixins.forEach(extendProps); } if (comp2.extends) { extendProps(comp2.extends); } if (comp2.mixins) { comp2.mixins.forEach(extendProps); } } if (!raw && !hasExtends) { if (isObject$b(comp2)) { cache2.set(comp2, EMPTY_ARR); } return EMPTY_ARR; } if (isArray$5(raw)) { for (let i = 0; i < raw.length; i++) { const normalizedKey = camelize(raw[i]); if (validatePropName(normalizedKey)) { normalized[normalizedKey] = EMPTY_OBJ; } } } else if (raw) { for (const key2 in raw) { const normalizedKey = camelize(key2); if (validatePropName(normalizedKey)) { const opt = raw[key2]; const prop2 = normalized[normalizedKey] = isArray$5(opt) || isFunction$6(opt) ? { type: opt } : extend$7({}, opt); const propType = prop2.type; let shouldCast = false; let shouldCastTrue = true; if (isArray$5(propType)) { for (let index2 = 0; index2 < propType.length; ++index2) { const type4 = propType[index2]; const typeName2 = isFunction$6(type4) && type4.name; if (typeName2 === "Boolean") { shouldCast = true; break; } else if (typeName2 === "String") { shouldCastTrue = false; } } } else { shouldCast = isFunction$6(propType) && propType.name === "Boolean"; } prop2[ 0 /* shouldCast */ ] = shouldCast; prop2[ 1 /* shouldCastTrue */ ] = shouldCastTrue; if (shouldCast || hasOwn$2(prop2, "default")) { needCastKeys.push(normalizedKey); } } } } const res = [normalized, needCastKeys]; if (isObject$b(comp2)) { cache2.set(comp2, res); } return res; } function validatePropName(key2) { if (key2[0] !== "$" && !isReservedProp(key2)) { return true; } return false; } const isInternalKey = (key2) => key2[0] === "_" || key2 === "$stable"; const normalizeSlotValue = (value2) => isArray$5(value2) ? value2.map(normalizeVNode) : [normalizeVNode(value2)]; const normalizeSlot$1 = (key2, rawSlot, ctx) => { if (rawSlot._n) { return rawSlot; } const normalized = withCtx((...args) => { if (false) ; return normalizeSlotValue(rawSlot(...args)); }, ctx); normalized._c = false; return normalized; }; const normalizeObjectSlots = (rawSlots, slots, instance) => { const ctx = rawSlots._ctx; for (const key2 in rawSlots) { if (isInternalKey(key2)) continue; const value2 = rawSlots[key2]; if (isFunction$6(value2)) { slots[key2] = normalizeSlot$1(key2, value2, ctx); } else if (value2 != null) { const normalized = normalizeSlotValue(value2); slots[key2] = () => normalized; } } }; const normalizeVNodeSlots = (instance, children2) => { const normalized = normalizeSlotValue(children2); instance.slots.default = () => normalized; }; const assignSlots = (slots, children2, optimized) => { for (const key2 in children2) { if (optimized || key2 !== "_") { slots[key2] = children2[key2]; } } }; const initSlots = (instance, children2, optimized) => { const slots = instance.slots = createInternalObject(); if (instance.vnode.shapeFlag & 32) { const type4 = children2._; if (type4) { assignSlots(slots, children2, optimized); if (optimized) { def(slots, "_", type4, true); } } else { normalizeObjectSlots(children2, slots); } } else if (children2) { normalizeVNodeSlots(instance, children2); } }; const updateSlots = (instance, children2, optimized) => { const { vnode, slots } = instance; let needDeletionCheck = true; let deletionComparisonTarget = EMPTY_OBJ; if (vnode.shapeFlag & 32) { const type4 = children2._; if (type4) { if (optimized && type4 === 1) { needDeletionCheck = false; } else { assignSlots(slots, children2, optimized); } } else { needDeletionCheck = !children2.$stable; normalizeObjectSlots(children2, slots); } deletionComparisonTarget = children2; } else if (children2) { normalizeVNodeSlots(instance, children2); deletionComparisonTarget = { default: 1 }; } if (needDeletionCheck) { for (const key2 in slots) { if (!isInternalKey(key2) && deletionComparisonTarget[key2] == null) { delete slots[key2]; } } } }; const queuePostRenderEffect = queueEffectWithSuspense; function createRenderer(options2) { return baseCreateRenderer(options2); } function createHydrationRenderer(options2) { return baseCreateRenderer(options2, createHydrationFunctions); } function baseCreateRenderer(options2, createHydrationFns) { const target2 = getGlobalThis$1(); target2.__VUE__ = true; const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP$1, insertStaticContent: hostInsertStaticContent } = options2; const patch = (n1, n2, container2, anchor2 = null, parentComponent = null, parentSuspense = null, namespace2 = void 0, slotScopeIds = null, optimized = !!n2.dynamicChildren) => { if (n1 === n2) { return; } if (n1 && !isSameVNodeType(n1, n2)) { anchor2 = getNextHostNode(n1); unmount(n1, parentComponent, parentSuspense, true); n1 = null; } if (n2.patchFlag === -2) { optimized = false; n2.dynamicChildren = null; } const { type: type4, ref: ref3, shapeFlag } = n2; switch (type4) { case Text$4: processText(n1, n2, container2, anchor2); break; case Comment: processCommentNode(n1, n2, container2, anchor2); break; case Static: if (n1 == null) { mountStaticNode(n2, container2, anchor2, namespace2); } break; case Fragment: processFragment( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); break; default: if (shapeFlag & 1) { processElement( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } else if (shapeFlag & 6) { processComponent( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } else if (shapeFlag & 64) { type4.process( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized, internals ); } else if (shapeFlag & 128) { type4.process( n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized, internals ); } else ; } if (ref3 != null && parentComponent) { setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2); } }; const processText = (n1, n2, container2, anchor2) => { if (n1 == null) { hostInsert( n2.el = hostCreateText(n2.children), container2, anchor2 ); } else { const el2 = n2.el = n1.el; if (n2.children !== n1.children) { hostSetText(el2, n2.children); } } }; const processCommentNode = (n1, n2, container2, anchor2) => { if (n1 == null) { hostInsert( n2.el = hostCreateComment(n2.children || ""), container2, anchor2 ); } else { n2.el = n1.el; } }; const mountStaticNode = (n2, container2, anchor2, namespace2) => { [n2.el, n2.anchor] = hostInsertStaticContent( n2.children, container2, anchor2, namespace2, n2.el, n2.anchor ); }; const moveStaticNode = ({ el: el2, anchor: anchor2 }, container2, nextSibling) => { let next2; while (el2 && el2 !== anchor2) { next2 = hostNextSibling(el2); hostInsert(el2, container2, nextSibling); el2 = next2; } hostInsert(anchor2, container2, nextSibling); }; const removeStaticNode = ({ el: el2, anchor: anchor2 }) => { let next2; while (el2 && el2 !== anchor2) { next2 = hostNextSibling(el2); hostRemove(el2); el2 = next2; } hostRemove(anchor2); }; const processElement = (n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized) => { if (n2.type === "svg") { namespace2 = "svg"; } else if (n2.type === "math") { namespace2 = "mathml"; } if (n1 == null) { mountElement( n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } else { patchElement( n1, n2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } }; const mountElement = (vnode, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized) => { let el2; let vnodeHook; const { props: props2, shapeFlag, transition: transition2, dirs } = vnode; el2 = vnode.el = hostCreateElement( vnode.type, namespace2, props2 && props2.is, props2 ); if (shapeFlag & 8) { hostSetElementText(el2, vnode.children); } else if (shapeFlag & 16) { mountChildren( vnode.children, el2, null, parentComponent, parentSuspense, resolveChildrenNamespace(vnode, namespace2), slotScopeIds, optimized ); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "created"); } setScopeId(el2, vnode, vnode.scopeId, slotScopeIds, parentComponent); if (props2) { for (const key2 in props2) { if (key2 !== "value" && !isReservedProp(key2)) { hostPatchProp(el2, key2, null, props2[key2], namespace2, parentComponent); } } if ("value" in props2) { hostPatchProp(el2, "value", null, props2.value, namespace2); } if (vnodeHook = props2.onVnodeBeforeMount) { invokeVNodeHook(vnodeHook, parentComponent, vnode); } } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); } const needCallTransitionHooks = needTransition(parentSuspense, transition2); if (needCallTransitionHooks) { transition2.beforeEnter(el2); } hostInsert(el2, container2, anchor2); if ((vnodeHook = props2 && props2.onVnodeMounted) || needCallTransitionHooks || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); needCallTransitionHooks && transition2.enter(el2); dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); }, parentSuspense); } }; const setScopeId = (el2, vnode, scopeId, slotScopeIds, parentComponent) => { if (scopeId) { hostSetScopeId(el2, scopeId); } if (slotScopeIds) { for (let i = 0; i < slotScopeIds.length; i++) { hostSetScopeId(el2, slotScopeIds[i]); } } if (parentComponent) { let subTree = parentComponent.subTree; if (vnode === subTree || isSuspense(subTree.type) && (subTree.ssContent === vnode || subTree.ssFallback === vnode)) { const parentVNode = parentComponent.vnode; setScopeId( el2, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent ); } } }; const mountChildren = (children2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized, start2 = 0) => { for (let i = start2; i < children2.length; i++) { const child2 = children2[i] = optimized ? cloneIfMounted(children2[i]) : normalizeVNode(children2[i]); patch( null, child2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } }; const patchElement = (n1, n2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized) => { const el2 = n2.el = n1.el; let { patchFlag, dynamicChildren, dirs } = n2; patchFlag |= n1.patchFlag & 16; const oldProps = n1.props || EMPTY_OBJ; const newProps = n2.props || EMPTY_OBJ; let vnodeHook; parentComponent && toggleRecurse(parentComponent, false); if (vnodeHook = newProps.onVnodeBeforeUpdate) { invokeVNodeHook(vnodeHook, parentComponent, n2, n1); } if (dirs) { invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); } parentComponent && toggleRecurse(parentComponent, true); if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) { hostSetElementText(el2, ""); } if (dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, el2, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace2), slotScopeIds ); } else if (!optimized) { patchChildren( n1, n2, el2, null, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace2), slotScopeIds, false ); } if (patchFlag > 0) { if (patchFlag & 16) { patchProps(el2, oldProps, newProps, parentComponent, namespace2); } else { if (patchFlag & 2) { if (oldProps.class !== newProps.class) { hostPatchProp(el2, "class", null, newProps.class, namespace2); } } if (patchFlag & 4) { hostPatchProp(el2, "style", oldProps.style, newProps.style, namespace2); } if (patchFlag & 8) { const propsToUpdate = n2.dynamicProps; for (let i = 0; i < propsToUpdate.length; i++) { const key2 = propsToUpdate[i]; const prev = oldProps[key2]; const next2 = newProps[key2]; if (next2 !== prev || key2 === "value") { hostPatchProp(el2, key2, prev, next2, namespace2, parentComponent); } } } } if (patchFlag & 1) { if (n1.children !== n2.children) { hostSetElementText(el2, n2.children); } } } else if (!optimized && dynamicChildren == null) { patchProps(el2, oldProps, newProps, parentComponent, namespace2); } if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); }, parentSuspense); } }; const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace2, slotScopeIds) => { for (let i = 0; i < newChildren.length; i++) { const oldVNode = oldChildren[i]; const newVNode = newChildren[i]; const container2 = ( // oldVNode may be an errored async setup() component inside Suspense // which will not have a mounted element oldVNode.el && // - In the case of a Fragment, we need to provide the actual parent // of the Fragment itself so it can move its children. (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement // which also requires the correct parent container !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : ( // In other cases, the parent container is not actually used so we // just pass the block element here to avoid a DOM parentNode call. fallbackContainer ) ); patch( oldVNode, newVNode, container2, null, parentComponent, parentSuspense, namespace2, slotScopeIds, true ); } }; const patchProps = (el2, oldProps, newProps, parentComponent, namespace2) => { if (oldProps !== newProps) { if (oldProps !== EMPTY_OBJ) { for (const key2 in oldProps) { if (!isReservedProp(key2) && !(key2 in newProps)) { hostPatchProp( el2, key2, oldProps[key2], null, namespace2, parentComponent ); } } } for (const key2 in newProps) { if (isReservedProp(key2)) continue; const next2 = newProps[key2]; const prev = oldProps[key2]; if (next2 !== prev && key2 !== "value") { hostPatchProp(el2, key2, prev, next2, namespace2, parentComponent); } } if ("value" in newProps) { hostPatchProp(el2, "value", oldProps.value, newProps.value, namespace2); } } }; const processFragment = (n1, n2, container2, anchor2, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized) => { const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } if (n1 == null) { hostInsert(fragmentStartAnchor, container2, anchor2); hostInsert(fragmentEndAnchor, container2, anchor2); mountChildren( // #10007 // such fragment like `<>` will be compiled into // a fragment which doesn't have a children. // In this case fallback to an empty array n2.children || [], container2, fragmentEndAnchor, parentComponent, parentSuspense, namespace2, slotScopeIds, optimized ); } else { if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result // of renderSlot() with no valid children n1.dynamicChildren) { patchBlockChildren( n1.dynamicChildren, dynamicChildren, container2, parentComponent, parentSuspense, namespace2, slotScopeIds ); if ( // #2080 if the stable fragment has a key, it's a