@devframes/hub-ui 0.9.8 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/embedded.js +4455 -4312
- package/dist/client/standalone/assets/DockStandalone-3_CzgPVL.js +3 -0
- package/dist/client/standalone/assets/context-Bt79Y4N5.js +1 -0
- package/dist/client/standalone/assets/index-BGXSUn0A.js +9 -0
- package/dist/client/standalone/assets/popup-B_knQQry.js +4 -0
- package/dist/client/standalone/index.html +1 -1
- package/dist/index.d.mts +21 -21
- package/dist/index.mjs +8 -3
- package/package.json +8 -8
- package/dist/client/standalone/assets/DockStandalone-BvQLDpVN.js +0 -3
- package/dist/client/standalone/assets/context-DWKLPrQY.js +0 -1
- package/dist/client/standalone/assets/index-J9SjVeCp.js +0 -9
- package/dist/client/standalone/assets/keybindings-FIV5nfFs.js +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,D as t,F as n,G as r,K as i,L as a,M as o,N as s,V as c,W as l,d as u,f as d,j as f,k as p,l as m,n as h,p as ee,r as te,s as g,z as _}from"./keybindings-FIV5nfFs.js";import{Ct as v,Dt as y,Et as ne,M as b,Ot as x,St as S,Tt as C,a as re,bt as ie,ct as w,dt as T,i as E,l as ae,n as oe,nt as D,o as se,pt as ce,r as O,rt as k,t as le,ut as A,wt as ue,yt as de}from"./index-J9SjVeCp.js";var j=new WeakMap;async function fe(e,t,n,r){if(j.has(t))return j.get(t);let i=await t.sharedState.get(`devframe:commands`,{initialValue:[]}),a=E(i),o=A(new Map),s=E(n),c=b(()=>s.value.commandShortcuts??{}),u=T(!1),d=ee(),f=()=>r?r():{clientType:e,dockOpen:!1,paletteOpen:u.value,dockSelectedId:``,popupOpen:d.value},p=b(()=>[...a.value,...Array.from(o.values())]),m=b(()=>{let e=f();return te(p.value,e).filter(e=>e.showInPalette!==!1)});function h(e){let t=Array.isArray(e)?e:[e];for(let e of t)o.set(e.id,e);return()=>{for(let e of t)o.delete(e.id)}}function g(e){let t=p.value.find(t=>t.id===e);if(t)return t;for(let t of p.value)if(t.children){let n=t.children.find(t=>t.id===e);if(n)return n}}async function _(e,...n){let r=g(e);if(!r)throw Error(`Command "${e}" not found`);if(r.when){let t=f();if(!l(r.when,t))throw Error(`Command "${e}" is not available in the current context`)}if(r.source===`server`)return t.call(`hub:commands:execute`,e,...n);if(r.action)return r.action(...n);throw Error(`Command "${e}" has no action`)}function v(e){let t=c.value[e];return t===void 0?g(e)?.keybindings??[]:t}typeof window<`u`&&M(f,p,v,_);let y=A({commands:p,paletteCommands:m,register:h,execute:_,getKeybindings:v,settings:w(n),paletteOpen:u});return j.set(t,y),y}function M(e,t,n,r){let i=i=>{let a=g(i);if(!a||a===`Mod`||a===`Shift`||a===`Alt`)return;let o=e(),s=h(t,n);for(let{id:e,keybinding:n}of s){if(n.key!==a)continue;let s=t.value.find(t=>t.id===e)??t.value.flatMap(e=>e.children??[]).find(t=>t.id===e);if(!(s?.when&&!l(s.when,o))){i.preventDefault(),i.stopPropagation(),r(e).catch(console.error);return}}};window.addEventListener(`keydown`,i,{capture:!0}),D(d(),(e,t)=>{t&&t.removeEventListener(`keydown`,i,{capture:!0}),e&&e.addEventListener(`keydown`,i,{capture:!0})})}function pe(e){let t=[],n;async function r(){if(e.isTrusted===!0)return n===void 0&&(n=new Promise(async e=>{for(;t.length>0;)await t.shift()();e()})),n}async function i(n){return e.isTrusted===!0&&t.length!==0&&await r(),e.isTrusted===!0&&t.length===0?await n():new Promise(e=>{t.push(async()=>{e(await n())})})}e.events.on(`rpc:is-trusted:updated`,e=>{e&&t.length>0&&r()});let a={add(t){return i(async()=>{let n=await e.call(`hub:messages:add`,t);return{get entry(){return n},get id(){return n.id},async update(t){let r=await e.call(`hub:messages:update`,n.id,t);return r&&(n=r),r??void 0},async dismiss(){await e.call(`hub:messages:remove`,n.id)}}})},remove(t){return i(()=>e.call(`hub:messages:remove`,t))},clear(){return i(()=>e.call(`hub:messages:clear`))},info:(e,t)=>a.add({...t,message:e,level:`info`}),warn:(e,t)=>a.add({...t,message:e,level:`warn`}),error:(e,t)=>a.add({...t,message:e,level:`error`}),success:(e,t)=>a.add({...t,message:e,level:`success`}),debug:(e,t)=>a.add({...t,message:e,level:`debug`})};return a}function N(e){switch(e.type){case`action`:return e.action;case`custom-render`:return e.renderer;case`iframe`:return e.clientScript;default:return}}async function P(e,t){let n=N(e);if(!n?.importFrom)throw Error(`[@devframes/hub-ui] Dock entry "${e.id}" carries no client script to run`);let a=i(n.importFrom,{template:t.rpc.connectionMeta?.configs?.dock?.clientModuleResolution,metaBaseUrl:t.rpc.connection?.metaBaseUrl});try{let e=(await S(()=>import(a),[],import.meta.url))[n.importName??`default`];if(typeof e!=`function`)throw Error(`[@devframes/hub-ui] "${a}" exports no callable "${n.importName??`default`}"`);await e(t)}catch(e){throw console.error(`[@devframes/hub-ui] Error executing client script from ${a}${r(n.importFrom,a)}`,e),e}}var F=new Map;function me(e,t){if(e.type!==`action`&&F.has(e.id))return F.get(e.id);let n=P(e,t);return e.type!==`action`&&F.set(e.id,n),n}var I=new WeakMap;async function L(r,i,l,d,h=T(!0)){if(I.has(i))return I.get(i);let{entries:te,initialSyncComplete:g}=await re(i),S={},j=await i.sharedState.get(y,{initialValue:S}),M=E(j),N=se(j,S),P=A(new Map),F=b(()=>{let t=te.value,n;if(P.size===0)n=t;else{let e=new Set,r=[];for(let n of t)e.add(n.id),r.push(P.get(n.id)??n);for(let[t,n]of P)e.has(t)||r.push(n);n=r}return n.some(t=>t.id===e.id)?n:[...n,e]});d||=T(oe());let L={...d.value},R=T(L.open&&L.selectedDockId!=null),z=b({get:()=>d.value.selectedDockId,set:e=>{d.value.selectedDockId=e}}),he=b({get:()=>d.value.selectedDockRoute,set:e=>{d.value.selectedDockRoute=e}}),B=b(()=>R.value?null:F.value.find(e=>e.id===z.value)??_.find(e=>e.id===z.value)??null),V=A(new Map);k(()=>{for(let e of F.value){if(V.has(e.id)){V.get(e.id).entryMeta=e;continue}V.set(e.id,O(e,B))}});let H=(e,t=!1)=>{if(P.has(e.id)&&!t)throw Error(`[@devframes/hub-ui] a client dock "${e.id}" is already registered — pass force to overwrite`);return P.set(e.id,e),V.has(e.id)||V.set(e.id,O(e,B)),{update:t=>{if(t.id!=null&&t.id!==e.id)throw Error(`[@devframes/hub-ui] a client dock id is immutable ("${e.id}")`);let n=P.get(e.id);n&&P.set(e.id,{...n,...t})},dispose:()=>{P.delete(e.id)&&(V.delete(e.id),z.value===e.id&&(z.value=null))}}},ge=e=>{if(!P.has(e.id))throw Error(`[@devframes/hub-ui] no client dock "${e.id}" to update — register it first`);P.set(e.id,e)};l||=T(le());let U=v(),W,_e,G=w(await(async()=>(_e||=i.sharedState.get(`devframe:user-settings`,{initialValue:ne()}),_e))()),ve=E(G),K,ye=ee(),q=()=>({clientType:r,dockOpen:d.value.open,paletteOpen:K?.paletteOpen??!1,dockSelectedId:z.value??``,popupOpen:ye.value}),be=new Map,J=async(e=null)=>{if(e==null)return R.value=!1,z.value=null,d.value.open=!1,d.value.selectedDockRoute=null,!0;if(e===`~client-auth-notice`)return R.value=!1,z.value=e,d.value.open=!0,!0;let t=F.value.find(t=>t.id===e);if(!t)return!1;if(t.type===`group`){let e=a(F.value,t,d.value.groupLastChildIds?.[t.id],q())?.id??f(F.value,t.id)[0]?.id;return e?J(e):!1}if(t.type===`iframe`&&t.subTabs){let n=t.frameId??t.id,r=be.get(n);if(r&&r!==e&&F.value.some(e=>e.id===r))return J(r)}if(t.type===`action`&&await u(r,t.id)!=null)return!1;if(R.value=!1,z.value=t.id,d.value.open=!0,t.type===`action`||t.type===`custom-render`||t.type===`iframe`&&t.clientScript){let n=V.get(e),r=pe(i);await me(t,A({...ce(W),current:n,messages:r,logs:r}))}return t.type===`iframe`&&t.frameId&&!t.subTabs&&be.set(t.frameId,t.id),t.groupId&&((d.value.groupLastChildIds??={})[t.groupId]=t.id),t.type!==`iframe`&&(d.value.selectedDockRoute=null),!0},xe=async e=>z.value===e?J(null):J(e),Y=new Map,X=new Map,Se=(e,t)=>{let n=e.frameId??e.id,r=t=>{let r=Y.get(n);if(r){if(r.iframe===t)return;r.dispose(),Y.delete(n)}let i=de({frameId:n,anchor:e,iframe:t,window:t.ownerDocument?.defaultView??globalThis,docks:{register:H,switchEntry:J,getStateById:e=>V.get(e)}});Y.set(n,{iframe:t,dispose:i.dispose})};t.domElements.iframe&&r(t.domElements.iframe),t.events.on(`dom:iframe:mounted`,r)};D(F,e=>{let t=new Set;for(let n of e){if(n.type!==`iframe`||!n.subTabs||(t.add(n.id),X.has(n.id)))continue;let e=V.get(n.id);e&&(X.set(n.id,n.frameId??n.id),Se(n,e))}for(let[e,n]of[...X])t.has(e)||(X.delete(e),Y.get(n)?.dispose(),Y.delete(n))},{immediate:!0}),i.client.register({name:x.broadcast.docksActivate,type:`action`,handler:e=>{e?.dockId&&J(e.dockId)}});let Z=i.connectionMeta.configs?.ui?.dockPreferences?.categoryOrder,Ce=b(()=>t(F.value,ve.value,{whenContext:q(),collapseGroups:!0,categoryOrderOverride:Z}));K=await fe(r,i,G,q),K.register([{id:`devframes:toggle-palette`,source:`client`,title:`Toggle Command Palette`,icon:`ph:magnifying-glass-duotone`,showInPalette:!1,keybindings:[{key:`Mod+K`}],action:()=>{K.paletteOpen=!K.paletteOpen}},{id:`devframes:close-panel`,source:`client`,title:`Close Panel`,icon:`ph:x-circle-duotone`,when:`dockOpen && !paletteOpen`,keybindings:[{key:`Escape`}],action:()=>{d.value.open=!1,z.value=null}},{id:`devframes:open-settings`,source:`client`,title:`Open Settings`,icon:`ph:gear-duotone`,action:()=>{J(`~settings`)}},{id:`devframes:hide`,source:`client`,title:`Hide ${ae().value.productName}`,icon:`ph:eye-slash-duotone`,when:`clientType == embedded`,action:()=>{window.dispatchEvent(new CustomEvent(c))}},{id:`devframes:dock-mode`,source:`client`,title:`Dock Mode`,icon:`ph:layout-duotone`,when:r===`embedded`?`clientType == embedded && !popupOpen`:void 0,children:[{id:`devframes:dock-mode:float`,source:`client`,title:`Float Mode`,icon:`ph:cards-three-duotone`,when:`!popupOpen`,action:()=>{l.value.mode=`float`}},{id:`devframes:dock-mode:edge`,source:`client`,title:`Edge Mode`,icon:`ph:square-half-bottom-duotone`,when:`!popupOpen`,action:()=>{l.value.mode=`edge`}}]}]);let we;k(()=>{we?.();let e=e=>({id:`devframes:docks:${e.id}`,source:`client`,title:e.title,icon:n(e.icon),action:()=>{xe(e.id)}}),t=s(F.value),r=F.value.filter(e=>e.type!==`~builtin`).filter(e=>!(e.groupId&&t.has(e.groupId))).map(t=>{if(t.type!==`group`)return e(t);let n=o(F.value,t.id,ve.value,{whenContext:q()}),r=n.length<=1?(n[0]?.[1]??[]).map(e):n.map(([n,r])=>({id:`devframes:docks:${t.id}:cat:${n}`,source:`client`,title:p(n),children:r.map(e)}));return{...e(t),children:r}});r.length>0&&(we=K.register({id:`devframes:docks`,source:`client`,title:`Docks`,icon:`ph:layout-duotone`,children:r}))});let Q=L.selectedDockId==null?null:L.selectedDockRoute;W=A({panel:{get state(){let e;e=h.value?d.value.open?`open`:`closed`:`hidden`;let t={state:e};return z.value!==null&&(t.selectedDockId=z.value),t},events:w(U),store:l,session:d,isDragging:!1,isResizing:!1,isVertical:b(()=>l.value.position===`left`||l.value.position===`right`),consumeBootRoute:e=>{if(Q!=null&&e===L.selectedDockId){let e=Q;return Q=null,e}return null}},docks:{selectedId:z,selectedRoute:he,selected:B,entries:F,entryToStateMap:w(V),groupedEntries:Ce,categoryOrder:Z?{...C,...Z}:C,settings:G,getStateById:e=>V.get(e),switchEntry:J,toggleEntry:xe,register:H,update:ge},commands:K,when:{get context(){return q()}},connection:{get status(){return i.status},get error(){return i.connectionError},events:i.events},renderers:w(ie({context:()=>W,manifest:()=>M.value})),rpc:w(i),clientType:r}),m(r,async e=>{let t=F.value.find(t=>t.id===e);return!t||t.type!==`action`?!1:J(t.id)});let Te=async()=>{i.isTrusted||await new Promise(e=>{let t=i.events.on(ue.client.isTrustedUpdated,n=>{n&&(t(),e())})})},Ee=async()=>{let e=L.selectedDockId;if(!(!L.open||e==null)&&(await Promise.all([Te(),g,N]),R.value)){if(z.value!==e){R.value=!1;return}R.value=!1,await J(e)}},$=W.panel.state;return D([h,()=>d.value.open,z],()=>{let e=W.panel.state;(e.state!==$.state||e.selectedDockId!==$.selectedDockId)&&($=e,U.emit(x.client.docksPanelStateChanged,e))},{flush:`post`}),Ee(),I.set(i,W),W}export{L as createDocksContext};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./context-DWKLPrQY.js","./keybindings-FIV5nfFs.js","./DockStandalone-BvQLDpVN.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),String.fromCharCode;var e=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,t=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,n=/^([/\\]\s*){2,}[^/\\]/,r=/\/$|\/\?|\/#/,i=/^\.?\//;function a(r,i={}){return typeof i==`boolean`&&(i={acceptRelative:i}),i.strict?e.test(r):t.test(r)||(i.acceptRelative?n.test(r):!1)}function o(e=``,t){return t?r.test(e):e.endsWith(`/`)}function s(e=``,t){if(!t)return(o(e)?e.slice(0,-1):e)||`/`;if(!o(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...s]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(s.length>0?`?${s.join(`?`)}`:``)+r}function c(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(o(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...s]=n.split(`?`);return a+`/`+(s.length>0?`?${s.join(`?`)}`:``)+r}function l(e,t){if(u(t)||a(e))return e;let n=s(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return f(n,e)}function u(e){return!e||e===`/`}function d(e){return e&&e!==`/`}function f(e,...t){let n=e||``;for(let e of t.filter(e=>d(e)))if(n){let t=e.replace(i,``);n=c(n)+t}else n=e;return n}function p(e,n){let r=e.match(t);return r||=e.match(/^\/{2,}/),r?n+e.slice(r[0].length):n+e}var m={bus:{docksEntryUpdated:`docks:entry:updated`,docksActivate:`docks:activate`,terminalsSessionUpdated:`terminals:session:updated`,messagesAdded:`messages:added`,messagesUpdated:`messages:updated`,messagesRemoved:`messages:removed`,messagesCleared:`messages:cleared`,commandsRegistered:`commands:registered`,commandsUnregistered:`commands:unregistered`},rpc:{docksActivate:`hub:docks:activate`,commandsExecute:`hub:commands:execute`,messagesAdd:`hub:messages:add`,messagesUpdate:`hub:messages:update`,messagesRemove:`hub:messages:remove`,messagesClear:`hub:messages:clear`,terminalsWrite:`hub:terminals:write`,terminalsResize:`hub:terminals:resize`,terminalsTerminate:`hub:terminals:terminate`,terminalsRestart:`hub:terminals:restart`,terminalsRemove:`hub:terminals:remove`},client:{docksPanelStateChanged:`panel:state:changed`},broadcast:{docksActivate:`devframe:docks:activate`,terminalsUpdated:`devframe:terminals:updated`,messagesUpdated:`devframe:messages:updated`},sharedState:{docks:`devframe:docks`,docksActive:`devframe:docks:active`,commands:`devframe:commands`,userSettings:`devframe:user-settings`,dockRenderers:`devframe:dock-renderers`},stream:{terminals:`devframe:terminals`},postMessage:{frameNav:`devframe:frame-nav`}},h={framework:-100,default:0,app:100,ui:150,data:250,web:300,performance:350,advanced:400,docs:500,"~builtin":1e3},g=m.sharedState.dockRenderers,_=()=>({docksHidden:[],docksCategoriesHidden:[],docksPinned:[],docksCustomOrder:{},commandShortcuts:{}}),v={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}};function y(e){return typeof e==`string`?`'${e}'`:new C().serialize(e)}var b=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,x=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[b.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function S(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&x[n]?x[n]:n+128,s=a<128&&x[a]?x[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var C=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?S(e,t):n===`number`&&r===`number`?e-t:S(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(S),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),w=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],ee=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,E=[],te=class{_data=new ne;_hash=new ne([...w]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)E[n]=e[t+n]|0;else{let e=E[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=E[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;E[n]=t+E[n-7]+i+E[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+T[n]+E[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ne.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ne(t,i)}},ne=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(ee.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function re(e){return new te().finalize(e).toBase64()}function D(e){return re(y(e))}function ie(e){return D(e)}function ae(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var oe={blue:ae(34,39),cyan:ae(36,39),gray:ae(90,39),green:ae(32,39),red:ae(31,39),yellow:ae(33,39),bold:ae(1,22),dim:ae(2,22),reset:ae(0,0),underline:ae(4,24)};function se(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var ce=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function le(e=21){let t=``,n=e;for(;n--;)t+=ce[Math.random()*64|0];return t}var ue=Symbol.for(`immer-nothing`),de=Symbol.for(`immer-draftable`),O=Symbol.for(`immer-state`),fe=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function k(e,...t){{let n=fe[e],r=Fe(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var A=Object,pe=A.getPrototypeOf,me=`constructor`,he=`prototype`,ge=`configurable`,_e=`enumerable`,ve=`writable`,ye=`value`,be=e=>!!e&&!!e[O];function xe(e){return e?we(e)||je(e)||!!e[de]||!!e[me]?.[de]||Me(e)||Ne(e):!1}var Se=A[he][me].toString(),Ce=new WeakMap;function we(e){if(!e||!Pe(e))return!1;let t=pe(e);if(t===null||t===A[he])return!0;let n=A.hasOwnProperty.call(t,me)&&t[me];if(n===Object)return!0;if(!Fe(n))return!1;let r=Ce.get(n);return r===void 0&&(r=Function.toString.call(n),Ce.set(n,r)),r===Se}function Te(e,t,n=!0){Ee(e)===0?(n?Reflect.ownKeys(e):A.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ee(e){let t=e[O];return t?t.type_:je(e)?1:Me(e)?2:Ne(e)?3:0}var De=(e,t,n=Ee(e))=>n===2?e.has(t):A[he].hasOwnProperty.call(e,t),Oe=(e,t,n=Ee(e))=>n===2?e.get(t):e[t],ke=(e,t,n,r=Ee(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ae(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var je=Array.isArray,Me=e=>e instanceof Map,Ne=e=>e instanceof Set,Pe=e=>typeof e==`object`,Fe=e=>typeof e==`function`,Ie=e=>typeof e==`boolean`;function Le(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Re=e=>Pe(e)?e?.[O]:null,ze=e=>e.copy_||e.base_,Be=e=>e.modified_?e.copy_:e.base_;function Ve(e,t){if(Me(e))return new Map(e);if(Ne(e))return new Set(e);if(je(e))return Array[he].slice.call(e);let n=we(e);if(t===!0||t===`class_only`&&!n){let t=A.getOwnPropertyDescriptors(e);delete t[O];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[ve]===!1&&(a[ve]=!0,a[ge]=!0),(a.get||a.set)&&(t[i]={[ge]:!0,[ve]:!0,[_e]:a[_e],[ye]:e[i]})}return A.create(pe(e),t)}{let t=pe(e);if(t!==null&&n)return{...e};let r=A.create(t);return A.assign(r,e)}}function He(e,t=!1){return Ge(e)||be(e)||!xe(e)?e:(Ee(e)>1&&A.defineProperties(e,{set:We,add:We,clear:We,delete:We}),A.freeze(e),t&&Te(e,(e,t)=>{He(t,!0)},!1),e)}function Ue(){k(2)}var We={[ye]:Ue};function Ge(e){return e===null||!Pe(e)||A.isFrozen(e)}var Ke=`MapSet`,qe=`Patches`,Je=`ArrayMethods`,Ye={};function Xe(e){let t=Ye[e];return t||k(0,e),t}var Ze=e=>!!Ye[e];function Qe(e,t){Ye[e]||(Ye[e]=t)}var $e,et=()=>$e,tt=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ze(Ke)?Xe(Ke):void 0,arrayMethodsPlugin_:Ze(Je)?Xe(Je):void 0});function nt(e,t){t&&(e.patchPlugin_=Xe(qe),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rt(e){it(e),e.drafts_.forEach(ot),e.drafts_=null}function it(e){e===$e&&($e=e.parent_)}var at=e=>$e=tt($e,e);function ot(e){let t=e[O];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function st(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[O].modified_&&(rt(t),k(4)),xe(e)&&(e=ct(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[O].base_,e,t)}else e=ct(t,n);return lt(t,e,!0),rt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ue?void 0:e}function ct(e,t){if(Ge(t))return t;let n=t[O];if(!n)return _t(t,e.handledSet_,e);if(!dt(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ht(n,e)}return n.copy_}function lt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&He(t,n)}function ut(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var dt=(e,t)=>e.scope_===t,ft=[];function pt(e,t,n,r){let i=ze(e),a=e.type_;if(r!==void 0&&Oe(i,r,a)===t){ke(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Te(i,(e,n)=>{if(be(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ft;for(let e of o)ke(i,e,n,a)}function mt(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!dt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Be(i);pt(e,i.draft_??i,a,n),ht(i,r)})}function ht(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ut(e)}}function gt(e,t,n){let{scope_:r}=e;if(be(n)){let i=n[O];dt(i,r)&&i.callbacks_.push(function(){Et(e),pt(e,n,Be(i),t)})}else xe(n)&&e.callbacks_.push(function(){let i=ze(e);e.type_===3?i.has(n)&&_t(n,r.handledSet_,r):Oe(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_t(Oe(e.copy_,t,e.type_),r.handledSet_,r)})}function _t(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||be(e)||t.has(e)||!xe(e)||Ge(e)?e:(t.add(e),Te(e,(r,i)=>{if(be(i)){let t=i[O];dt(t,n)&&(ke(e,r,Be(t),e.type_),ut(t))}else xe(i)&&_t(i,t,n)}),e)}function vt(e,t){let n=je(e),r={type_:+!!n,scope_:t?t.scope_:et(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=yt;n&&(i=[r],a=bt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var yt={get(e,t){if(t===O)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=ze(e);if(!De(i,t,e.type_))return Ct(e,i,t);let a=i[t];if(e.finalized_||!xe(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Le(t))return a;if(a===xt(e.base_,t)||St(e,t,a)){Et(e);let n=e.type_===1?+t:t,r=Ot(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ze(e)},ownKeys(e){return Reflect.ownKeys(ze(e))},set(e,t,n){let r=wt(ze(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=xt(ze(e),t),i=r?.[O];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ae(n,r)&&(n!==void 0||De(e.base_,t,e.type_)))return!0;Et(e),Tt(e)}return e.copy_[t]===n&&(n!==void 0||De(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),gt(e,t,n),!0)},deleteProperty(e,t){return Et(e),xt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Tt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ze(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ve]:!0,[ge]:e.type_!==1||t!==`length`,[_e]:r[_e],[ye]:n[t]}},defineProperty(){k(11)},getPrototypeOf(e){return pe(e.base_)},setPrototypeOf(){k(12)}},bt={};for(let e in yt){let t=yt[e];bt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}bt.deleteProperty=function(e,t){return isNaN(parseInt(t))&&k(13),bt.set.call(this,e,t,void 0)},bt.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&k(14),yt.set.call(this,e[0],t,n,e[0])};function xt(e,t){let n=e[O];return(n?ze(n):e)[t]}function St(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!xe(n)||n[O]?!1:e.baseRefs_.has(n)}function Ct(e,t,n){let r=wt(t,n);return r?ye in r?r[ye]:r.get?.call(e.draft_):void 0}function wt(e,t){if(!(t in e))return;let n=pe(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=pe(n)}}function Tt(e){e.modified_||(e.modified_=!0,e.parent_&&Tt(e.parent_))}function Et(e){e.copy_||=(e.assigned_=new Map,Ve(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Fe(e)&&!Fe(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Fe(t)||k(6),n!==void 0&&!Fe(n)&&k(7);let r;if(xe(e)){let i=at(this),a=Ot(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?rt(i):it(i)}return nt(i,n),st(r,i)}if(!e||!Pe(e)){if(r=t(e),r===void 0&&(r=e),r===ue&&(r=void 0),this.autoFreeze_&&He(r,!0),n){let t=[],i=[];Xe(qe).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}k(1,e)},this.produceWithPatches=(e,t)=>{if(Fe(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Ie(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ie(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ie(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xe(e)||k(8),be(e)&&(e=kt(e));let t=at(this),n=Ot(t,e,void 0);return n[O].isManual_=!0,it(t),n}finishDraft(e,t){let n=e&&e[O];(!n||!n.isManual_)&&k(9);let{scope_:r}=n;return nt(r,t),st(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Xe(qe).applyPatches_;return be(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ot(e,t,n,r){let[i,a]=Me(t)?Xe(Ke).proxyMap_(t,n):Ne(t)?Xe(Ke).proxySet_(t,n):vt(t,n);return(n?.scope_??et()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?mt(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function kt(e){return be(e)||k(10,e),At(e)}function At(e){if(!xe(e)||Ge(e))return e;let t=e[O],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ve(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ve(e,!0);return Te(n,(e,t)=>{ke(n,e,At(t))},r),t&&(t.finalized_=!1),n}function jt(){fe.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Re(Oe(e,n.key_)),i=Oe(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||De(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Oe(n,r),!Pe(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[O];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Te(e.assigned_,(e,l)=>{let u=Oe(o,e,c),f=Oe(s,e,c),p=l?De(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===ue?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=Ee(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===me)&&k(19),Fe(o)&&n===he&&k(19),o=Oe(o,n),(o===null||!Pe(o))&&k(18,i.join(`/`))}let s=Ee(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:k(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:k(17,a)}}),e}function u(e){if(!xe(e))return e;if(je(e))return e.map(u);if(Me(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ne(e))return new Set(Array.from(e).map(u));let t=Object.create(pe(e));for(let n in e)t[n]=u(e[n]);return De(e,de)&&(t[de]=e[de]),t}function d(e){return be(e)?u(e):e}Qe(qe,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Mt=new Dt,Nt=Mt.produce,Pt=Mt.produceWithPatches.bind(Mt),Ft=Mt.applyPatches.bind(Mt),It=1e3;function Lt(e,t){if(e.add(t),e.size>It){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Rt(e){let{enablePatches:t=!1}=e;t&&jt();let n=se(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=le())=>{i.has(t)||(jt(),r=Ft(r,e),Lt(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=le())=>{if(!i.has(a)){if(Lt(i,a),t){let[t,i]=Pt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Nt(r,e),n.emit(`updated`,r,void 0,a)}},syncIds:i}}var zt=typeof self==`object`?self:globalThis,Bt=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Vt=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Ht(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Bt.has(e)?zt[e]:void 0;return n(new(r??zt.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&Vt.has(a))return n(new zt[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Ut(e){return Ht(new Map,e)(0)}var Wt=``,{toString:Gt}={},{keys:Kt}=Object;function qt(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Gt.call(e).slice(8,-1);switch(n){case`Array`:return[1,Wt];case`Object`:return[2,Wt];case`Date`:return[3,Wt];case`RegExp`:return[4,Wt];case`Map`:return[5,Wt];case`Set`:return[6,Wt];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Jt([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Yt(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=qt(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of Kt(r))(e||!Jt(qt(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Jt(qt(n))||Jt(qt(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Jt(qt(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Xt(e,t={}){let n=[];return Yt(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Zt,stringify:Qt}=JSON,$t={json:!0,lossy:!0};function en(e){return Ut(Zt(e))}function tn(e){return Qt(Xt(e,$t))}function nn(e){return Ut(e)}function rn(e){return tn(e)}function an(e){return en(e)}var on=256,sn=class extends Error{name=`StreamClosedError`};function cn(e={}){let t=e.id??le(),n=Math.max(0,e.replayWindow??0),r=se(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new sn(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=un(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function ln(e={}){let t=e.id??le(),n=Math.max(1,e.highWaterMark??on),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function un(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}function dn(e,...t){return typeof e==`function`?e(...t):e}var fn=Error.captureStackTrace,pn=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,fn?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function mn(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function hn(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],o=a.docs===!1?void 0:a.docs||mn(r,i),s=(e={},n={})=>{let r=new pn({code:i,why:dn(a.why,e),fix:dn(a.fix,e),docs:o,cause:e.cause,sources:e.sources},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function gn(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
|
|
3
|
-
`)}}function _n(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var vn=Math.random.bind(Math),yn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function bn(e=21){let t=``,n=e;for(;n--;)t+=yn[vn()*64|0];return t}var xn=6e4,Sn=e=>e,Cn=Sn,{clearTimeout:wn,setTimeout:Tn}=globalThis;function En(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Sn,deserialize:s=Cn,resolver:c,bind:l=`rpc`,timeout:u=xn,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=_n(),_=bn();s.i=_;let v;async function y(n=s){return u>=0&&(v=Tn(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{wn(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(wn(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var Dn=`__connection.json`,On=`__DEVFRAME_CONNECTION__`,kn=`x-birpc-session`,An=`__rpc-dump/index.json`,jn=`devframe:services`,Mn=`devframe_otp`,Nn=`devframe_auth_token`;v.postMessage.remoteAssetsError;var Pn=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>ie(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},Fn=gn(oe);function In(e,{method:t=`warn`}={}){console[t](Fn(e))}function Ln(e){return hn({...e,reporters:[In,...e.reporters??[]]})}var Rn=Ln({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});async function zn(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Bn(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Vn(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await zn(i,n[r]);if(a.issues)throw Rn.DF0043({name:e,index:r,issues:Bn(a.issues)})}return r}async function Hn(e,t,n){if(!t)return n;let r=await zn(t,n);if(r.issues)throw Rn.DF0044({name:e,issues:Bn(r.issues)});return n}async function Un(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function Wn(e,t){let n=e.handler;if(!n){let r=await Un(e,t);if(!r.handler)throw Rn.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Vn(e.name,r,t),o=await a(...n);return await Hn(e.name,i,o)}}var Gn=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Wn(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Rn.DF0021({name:e.name});Kn(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Rn.DF0022({name:e.name});Kn(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Wn(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Rn.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Kn(e){if(e.agent&&e.jsonSerializable!==!0)throw Rn.DF0019({name:e.name})}function qn(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw Jn(t,`undefined`,r,e);return n}if(i===null)return n;if(typeof i==`bigint`)throw Jn(t,`BigInt`,r,e);if(typeof i==`object`){if(i instanceof Map)throw Jn(t,`Map`,r,e);if(i instanceof Set)throw Jn(t,`Set`,r,e);if(i instanceof Date)throw Jn(t,`Date`,r,e);if(Array.isArray(i))return n;let a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw Jn(t,i.constructor?.name??`class instance`,r,e)}return n})}function Jn(e,t,n,r){let i=Yn(n,r);return Rn.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Yn(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var Xn=`__DEVFRAME_CONNECTION_META__`,Zn=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Qn(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function $n(){return Qn(On)}function er(){return Qn(Xn)}function tr(e){if(e)return e;try{let e=localStorage.getItem(Zn);if(e)return e}catch{}return Qn(Zn)}function nr(e){globalThis[On]=e,globalThis[Xn]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&rr(e.authToken)}function rr(e){try{localStorage.setItem(Zn,e)}catch{}globalThis[Zn]=e;let t=$n();t&&(globalThis[On]={...t,authToken:e})}function ir(e){let t=l(Dn,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function ar(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function or(){let e=$n();if(e)return ar(e,tr()??e.authToken??e.connectionMeta.authToken);let t=er();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??ir(`./`),authToken:tr(t.authToken)}}async function sr(e={}){if(e.connection){let t=ar(e.connection,tr(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return nr(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:ir(t[0]??`./`),authToken:tr(e.authToken??e.connectionMeta.authToken)};return nr(n),n}let n=or();if(n){let t=ar(n,tr(e.authToken??n.authToken??n.connectionMeta.authToken));return nr(t),t}let r=[];for(let n of t){let t=l(Dn,n),i=ir(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a={connectionMeta:r,metaBaseUrl:n.url||i,authToken:tr(e.authToken??r.authToken)};return nr(a),a}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var cr=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function lr(e=Mn){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function ur(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function dr(e=Mn){let t=lr(e);return t&&ur(e),t}async function fr(e,t={}){let n=dr(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function pr(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(jn,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function mr(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:v.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>o(e,n),r)}}),e.client.register({name:v.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=Rt({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(v.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var hr=new Map;function gr(e=hr){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?qn(n,r??``):`s:${rn(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?an(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function _r(){}function vr(e){let{onConnected:t=_r,onError:n=_r,onDisconnected:r=_r,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Nn}=${encodeURIComponent(e.authToken)}`);let s=gr(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=r.search(/\n\n|\r\n\r\n/);if(e<0)break;let t=r.slice(0,e);r=r.slice(e+(r[e]===`\r`?4:2));let n=`message`,i=[];for(let e of t.split(/\r?\n/))e.startsWith(`:`)||(e.startsWith(`event:`)?n=e.slice(6).trimStart():e.startsWith(`data:`)&&i.push(e.slice(5).replace(/^ /,``)));i.length>0&&_(n,i.join(`
|
|
4
|
-
`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[kn]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function yr(e,t){let{channel:n,rpcOptions:r={}}=t;return En(e,{...n,timeout:-1,...r,proxify:!1})}function br(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function xr(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=br();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(v.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new cr(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new cr(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(v.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new cr(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(v.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let y=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(v.client.connectionError,e),m(new cr(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new cr(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),b=yr(a.functions,{channel:y,rpcOptions:o});a.register({name:v.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new cr(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(v.client.connectionError,e),m(e),i.emit(v.client.isTrustedUpdated,!1)}});let x=n;async function S(e){x=e;let t=await b.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new cr(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(v.client.connectionError,e)}return i.emit(v.client.isTrustedUpdated,c),t.isTrusted}async function C(e){let t=(await b.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(x=t,c=!0,d.resolve(!0),f(`connected`),i.emit(v.client.isTrustedUpdated,!0)),t}async function w(){return c?!0:S(x??``)}async function T(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t=()=>{};return await Promise.race([d.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),c}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:S,requestTrustWithCode:C,ensureTrusted:T,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(v.client.error,n,t),Promise.reject(n)):g(b.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(v.client.error,t,String(e[0]));return}return b.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(v.client.error,n,t),Promise.reject(n)):g(b.$callOptional(...e),t)},close:()=>{y.close()}}}function Sr(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Cr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Sr(n.sse,r??`./`,location);return xr({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>vr({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function wr(e){let t=e.cause instanceof Error?e.cause:Tr(e.cause)?wr(e.cause):e.cause,n=t===void 0?Error(e.message):Error(e.message,{cause:t});n.name=e.name;for(let t of Object.keys(e))t!==`name`&&t!==`message`&&t!==`cause`&&(n[t]=e[t]);return n}function Tr(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Er(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Dr(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Or(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function kr(e){if(e.error)throw wr(e.error);return e.output}function Ar(e){return e.some(e=>e!=null)}function jr(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Mr(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?nn(e):e}function a(e,t){return i(jr(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return Or(r)?kr(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Er(r)){if(Ar(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(Dr(r)){let e=ie(n),i=r.records[e];if(i)return kr(await s(i,r.serialization));if(r.fallback)return kr(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Ar(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Nr(e){let t=Mr(await e.fetchJsonFromBases(An),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Pr=``;function Fr(e,t){return`${e}${Pr}${t}`}function Ir(e){let t=new Map,n=new Map;e.client.register({name:v.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Fr(e,n))?._push(r,i)}}),e.client.register({name:v.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Fr(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:v.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=Fr(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(v.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Pr);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=Fr(n,r),o=t.get(a);if(o)return o;let s=ln({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(v.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=Fr(t,r),a=n.get(i);if(a)return a;let o=cn({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Lr(){}var Rr=new Map;function zr(e){let t=e.url;e.authToken&&(t=`${t}?${Nn}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Lr,onError:i=Lr,onDisconnected:a=Lr,definitions:o=Rr}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=gr(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Br(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return p(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Vr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Br(n.websocket,r??`./`,location);return xr({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>zr({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Hr(e){return e.includes(`:`)}function Ur(e,t){return Hr(t)?t:`${e}:${t}`}function Wr(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return{async get(e){return(await a()).value()[e]},async set(e,t){(await a()).mutate(n=>{n[e]=t})},async delete(e){(await a()).mutate(t=>{delete t[e]})},async all(){return(await a()).value()},async onChange(e){return(await a()).on(`updated`,t=>e(t))}}}function Gr(e,t){return{global:Wr(e,t,`global`),project:Wr(e,t,`project`)}}function Kr(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Hr(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(Ur(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Ur(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Ur(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Ur(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Ur(t,n),r,i),upload:(n,r)=>e.streaming.upload(Ur(t,n),r)}},settings:Gr(e,t),scope:e.scope}}function qr(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none") — nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function Jr(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=se(),a=Array.isArray(t)?t:[t],o=await sr(e),{connectionMeta:s,metaBaseUrl:c,authToken:u}=o,d=a[0]??`./`;try{d=new URL(`.`,c).href}catch{}let f=new Pn({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),p={rpc:void 0},m=new Gn(p);async function h(e){let t=[d,...a.filter(e=>e!==d)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(l(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let g={authToken:u,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:m,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&f?.validate(e.m)){if(f.has(e.m,e.a))return i(f.cached(e.m,e.a));let n=await t(e);f.apply(e,n)}else await t(e)}}},_=qr(e.transport??`auto`,s),v=_===`static`?await Nr({fetchJsonFromBases:h}):_===`sse`?Cr({...g,sseOptions:e.sseOptions}):Vr({...g,wsOptions:e.wsOptions}),y;try{y=new BroadcastChannel(`devframe-auth`)}catch{}let b,x=!1;function S(e){return((...t)=>x||!b?e(...t):b.then(()=>e(...t)))}let C={events:i,get isTrusted(){return v.isTrusted},get status(){return v.status},get connectionError(){return v.connectionError},get transport(){return v.transport??_},get connection(){return o},connectionMeta:s,ensureTrusted:v.ensureTrusted,requestTrust:v.requestTrust,requestTrustWithToken:async e=>(rr(e),o={...o,authToken:e},v.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await v.requestTrustWithCode(e);if(!t)return!1;rr(t),o={...o,authToken:t};try{y?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},call:S(v.call),callEvent:S(v.callEvent),callOptional:S(v.callOptional),client:m,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:f,scope:void 0,close:()=>v.close?.()};C.sharedState=mr(C),C.streaming=Ir(C),C.services=pr(C);let w=new Map;C.scope=(e=>{if(!e)return C;let t=w.get(e);return t||(t=Kr(C,e),w.set(e,t)),t}),p.rpc=C;function T(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(!(e.simpleAuth===!1||!T())&&typeof globalThis.prompt==`function`)for(;!C.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await C.requestTrustWithCode(t))return}}async function E(){let t=await v.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await fr(C,{param:n}):!1;t||r||C.isTrusted||await ee()}return b=E().then(()=>{x=!0},()=>{x=!0}),y&&(y.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&C.requestTrustWithToken(e.data.authToken)}),C}var Yr=`modulepreload`,Xr=function(e,t){return new URL(e,t).href},Zr={},Qr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Xr(t,n),t=s(t),t in Zr)return;Zr[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Yr,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$r=`__DEVFRAME_HUB_CLIENT_CONTEXT__`;function ei(e){globalThis[$r]=e}function ti(e){let{iframe:t,onChange:n}=e,r=e.initial,i,a=!1;function o(){try{let e=t.contentWindow;return e&&typeof e.location.href==`string`?e:null}catch{return null}}function s(){let e=o()?.location.href;!e||e===`about:blank`||e===r||(r=e,n(e))}function c(){let e=o();if(!e)return;let t=[];e.addEventListener(`popstate`,s),e.addEventListener(`hashchange`,s),t.push(()=>{e.removeEventListener(`popstate`,s),e.removeEventListener(`hashchange`,s)});let{navigation:n,history:r}=e;if(n&&(n.addEventListener(`currententrychange`,s),t.push(()=>n.removeEventListener(`currententrychange`,s))),r){let e={pushState:r.pushState,replaceState:r.replaceState};for(let t of[`pushState`,`replaceState`])r[t]=function(...n){e[t].apply(this,n),s()};t.push(()=>{r.pushState=e.pushState,r.replaceState=e.replaceState})}i=()=>{for(let e of t)e()}}function l(){a||(i?.(),i=void 0,c(),s())}return t.addEventListener(`load`,l),c(),s(),()=>{a||(a=!0,t.removeEventListener(`load`,l),i?.(),i=void 0)}}var ni=m.postMessage.frameNav;function ri(e){let{frameId:t,anchor:n,iframe:r,docks:i}=e,a=e.window??globalThis,o=e.origin??ii(n.url),s=e.handshakeTimeoutMs??n.subTabs?.handshakeTimeoutMs??3e3,c=new Map,l=!1,u=null,d=!1,f;function p(e){r.contentWindow?.postMessage({channel:ni,v:1,frameId:t,from:`host`,...e},o)}function m(e){if(d||o!==`*`&&e.origin!==o)return;let n=e.data;if(!(!n||n.channel!==ni||n.v!==1||n.frameId!==t||n.from!==`frame`))switch(n.type){case`ready`:case`manifest`:h(),v(n.tabs??[],n.current);break;case`navigated`:b(n.tabId)}}function h(){l=!0,f!==void 0&&(clearTimeout(f),f=void 0)}function g(e){return`${t}:${e}`}function _(e){let r={id:g(e.id),type:`iframe`,title:e.title,icon:e.icon??n.icon,frameId:t,url:e.fallbackUrl??ai(n.url,e.navTarget),navTarget:e.navTarget};e.badge!==void 0&&(r.badge=e.badge),e.order!==void 0&&(r.defaultOrder=e.order),e.category!==void 0&&(r.category=e.category),e.when!==void 0&&(r.when=e.when);let i=e.groupId??n.groupId;return i!==void 0&&(r.groupId=i),r}function v(e,t){let n=new Set(e.map(e=>e.id));for(let t of e){let e=_(t),n=c.get(t.id);if(n)n.tab=t,n.handle.update(e);else{let n={tab:t,handle:i.register(e)};n.off=i.getStateById(e.id)?.events.on(`entry:activated`,()=>y(t.id)),c.set(t.id,n)}}for(let[e,t]of[...c])n.has(e)||(t.off?.(),t.handle.dispose(),c.delete(e),u===e&&(u=null));t!==void 0&&t!==u&&c.has(t)&&(u=t,i.switchEntry(g(t)))}function y(e){if(d||e===u)return;let t=c.get(e);t&&(u=e,l?p({type:`navigate`,tabId:e,navTarget:t.tab.navTarget}):x(t.tab))}function b(e){d||!e||!c.has(e)||e===u||(u=e,i.switchEntry(g(e)))}function x(e){r.src=e.fallbackUrl??ai(n.url,e.navTarget)}return a.addEventListener(`message`,m),p({type:`hello`}),f=setTimeout(()=>{f=void 0},s),{get ready(){return l},get currentTabId(){return u},dispose(){if(!d){d=!0,f!==void 0&&clearTimeout(f),a.removeEventListener(`message`,m);for(let e of c.values())e.off?.(),e.handle.dispose();c.clear()}}}}function ii(e){let t=globalThis.location?.href;try{return new URL(e).origin}catch{}if(t)try{return new URL(e,t).origin}catch{}return`*`}function ai(e,t){let n=globalThis.location?.href,r;try{r=new URL(e,n??`http://localhost`)}catch{return e}let i=t.path.startsWith(`#`)?t.path.slice(1):t.path,a=`#${i}`,o=t.query;if(o){let e=new URLSearchParams;for(let[t,n]of Object.entries(o))if(typeof n==`string`)e.set(t,n);else for(let r of n)e.append(t,r);let t=e.toString();t&&(a+=(i.includes(`?`)?`&`:`?`)+t)}return r.hash=a,r.toString()}function oi(e){let t=new Map;for(let[n,r]of Object.entries(e.local??{}))t.set(n,r);let n=new Map,r=t=>e.manifest?.()[t];async function i(e,t){let n=(await Qr(()=>import(t.importFrom),[],import.meta.url))[t.importName??`default`];return typeof n==`function`?n:void 0}async function a(e){let a=t.get(e);if(a)return a;let o=r(e);if(!o)return;let s=n.get(e);s||(s=i(e,o),n.set(e,s),s.catch(()=>n.delete(e)));let c=await s;return c&&!t.has(e)&&t.set(e,c),c}return{register(e,n){return t.set(e,n),()=>{t.get(e)===n&&t.delete(e)}},get:e=>t.get(e),has:e=>t.has(e)||r(e)!==void 0,async mount(t,n){let r;try{r=await a(t.type)}catch(e){return console.error(`[@devframes/hub] failed to load the renderer module for dock type "${t.type}"`,e),{status:`load-error`,error:e}}if(!r)return console.warn(`[@devframes/hub] no renderer registered for dock type "${t.type}" (entry "${t.id}")`),{status:`missing-renderer`};let i;try{i=await r({entry:t,container:n,context:e.context()})}catch(e){return console.error(`[@devframes/hub] renderer for dock type "${t.type}" failed to mount (entry "${t.id}")`,e),{status:`load-error`,error:e}}let o=!1,s,c=()=>{o||(o=!0,s?.(),i.dispose?.())};return s=e.onMounted?.(c,t),{status:`mounted`,dispose:c}}}}m.sharedState.docks,m.sharedState.commands,m.sharedState.userSettings,m.broadcast.docksActivate;function si(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var j={},ci=[],li=()=>{},ui=()=>!1,di=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fi=e=>e.startsWith(`onUpdate:`),M=Object.assign,pi=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},mi=Object.prototype.hasOwnProperty,N=(e,t)=>mi.call(e,t),P=Array.isArray,hi=e=>xi(e)===`[object Map]`,gi=e=>xi(e)===`[object Set]`,_i=e=>xi(e)===`[object Date]`,F=e=>typeof e==`function`,I=e=>typeof e==`string`,vi=e=>typeof e==`symbol`,L=e=>typeof e==`object`&&!!e,yi=e=>(L(e)||F(e))&&F(e.then)&&F(e.catch),bi=Object.prototype.toString,xi=e=>bi.call(e),Si=e=>xi(e).slice(8,-1),Ci=e=>xi(e)===`[object Object]`,wi=e=>I(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,Ti=si(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),Ei=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Di=/-\w/g,R=Ei(e=>e.replace(Di,e=>e.slice(1).toUpperCase())),Oi=/\B([A-Z])/g,ki=Ei(e=>e.replace(Oi,`-$1`).toLowerCase()),Ai=Ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),ji=Ei(e=>e?`on${Ai(e)}`:``),Mi=(e,t)=>!Object.is(e,t),Ni=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Pi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Fi=e=>{let t=parseFloat(e);return isNaN(t)?e:t},Ii=e=>{let t=I(e)?Number(e):NaN;return isNaN(t)?e:t},Li,Ri=()=>Li||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function zi(e){if(P(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=I(r)?Ui(r):zi(r);if(i)for(let e in i)t[e]=i[e]}return t}if(I(e)||L(e))return e}var Bi=/;(?![^(]*\))/g,Vi=/:([^]+)/,Hi=/\/\*[^]*?\*\//g;function Ui(e){let t={};return e.replace(Hi,``).split(Bi).forEach(e=>{if(e){let n=e.split(Vi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Wi(e){let t=``;if(I(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){let r=Wi(e[n]);r&&(t+=r+` `)}else if(L(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Gi(e){if(!e)return null;let{class:t,style:n}=e;return t&&!I(t)&&(e.class=Wi(t)),n&&(e.style=zi(n)),e}var Ki=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,qi=si(Ki);Ki+``;function Ji(e){return!!e||e===``}function Yi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Zi(e[r],t[r]);return n}function Xi(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&Zi(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function Zi(e,t){if(e===t)return!0;let n=_i(e),r=_i(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=vi(e),r=vi(t),n||r)return e===t;if(n=P(e),r=P(t),n||r)return n&&r?Yi(e,t):!1;if(n=L(e),r=L(t),n||r){if(!n||!r)return!1;if(n=hi(e),r=hi(t),n||r||(n=gi(e),r=gi(t),n||r))return n&&r?Xi(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Zi(e[n],t[n]))return!1}}return String(e)===String(t)}function Qi(e,t){return e.findIndex(e=>Zi(e,t))}var $i=e=>!!(e&&e.__v_isRef===!0),ea=e=>I(e)?e:e==null?``:P(e)||L(e)&&(e.toString===bi||!F(e.toString))?$i(e)?ea(e.value):JSON.stringify(e,ta,2):String(e),ta=(e,t)=>$i(t)?ta(e,t.value):hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[na(t,r)+` =>`]=n,e),{})}:gi(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>na(e))}:vi(t)?na(t):L(t)&&!P(t)&&!Ci(t)?String(t):t,na=(e,t=``)=>vi(e)?`Symbol(${e.description??t})`:e,z,ra=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&z&&(z.active?(this.parent=z,this.index=(z.scopes||(z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=z;try{return z=this,e()}finally{z=t}}}on(){++this._on===1&&(this.prevScope=z,z=this)}off(){if(this._on>0&&--this._on===0){if(z===this)z=this.prevScope;else{let e=z;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function ia(){return z}function aa(e,t=!1){z&&z.cleanups.push(e)}var B,oa=new WeakSet,sa=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,z&&(z.active?z.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,oa.has(this)&&(oa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||da(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wa(this),ma(this);let e=B,t=ba;B=this,ba=!0;try{return this.fn()}finally{ha(this),B=e,ba=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)va(e);this.deps=this.depsTail=void 0,wa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?oa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ga(this)&&this.run()}get dirty(){return ga(this)}},ca=0,la,ua;function da(e,t=!1){if(e.flags|=8,t){e.next=ua,ua=e;return}e.next=la,la=e}function fa(){ca++}function pa(){if(--ca>0)return;if(ua){let e=ua;for(ua=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;la;){let t=la;for(la=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function ma(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ha(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),va(r),ya(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ga(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_a(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _a(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ta)||(e.globalVersion=Ta,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ga(e))))return;e.flags|=2;let t=e.dep,n=B,r=ba;B=e,ba=!0;try{ma(e);let n=e.fn(e._value);(t.version===0||Mi(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{B=n,ba=r,ha(e),e.flags&=-3}}function va(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)va(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ya(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var ba=!0,xa=[];function Sa(){xa.push(ba),ba=!1}function Ca(){let e=xa.pop();ba=e===void 0||e}function wa(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=B;B=void 0;try{t()}finally{B=e}}}var Ta=0,Ea=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Da=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!B||!ba||B===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==B)t=this.activeLink=new Ea(B,this),B.deps?(t.prevDep=B.depsTail,B.depsTail.nextDep=t,B.depsTail=t):B.deps=B.depsTail=t,Oa(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=B.depsTail,t.nextDep=void 0,B.depsTail.nextDep=t,B.depsTail=t,B.deps===t&&(B.deps=e)}return t}trigger(e){this.version++,Ta++,this.notify(e)}notify(e){fa();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{pa()}}};function Oa(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oa(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ka=new WeakMap,Aa=Symbol(``),ja=Symbol(``),Ma=Symbol(``);function V(e,t,n){if(ba&&B){let t=ka.get(e);t||ka.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Da),r.map=t,r.key=n),r.track()}}function Na(e,t,n,r,i,a){let o=ka.get(e);if(!o){Ta++;return}let s=e=>{e&&e.trigger()};if(fa(),t===`clear`)o.forEach(s);else{let i=P(e),a=i&&wi(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ma||!vi(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ma)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Aa)),hi(e)&&s(o.get(ja)));break;case`delete`:i||(s(o.get(Aa)),hi(e)&&s(o.get(ja)));break;case`set`:hi(e)&&s(o.get(Aa))}}pa()}function Pa(e,t){let n=ka.get(e);return n&&n.get(t)}function Fa(e){let t=H(e);return t===e?t:(V(t,`iterate`,Ma),wo(e)?t:t.map(Do))}function Ia(e){return V(e=H(e),`iterate`,Ma),e}function La(e,t){return Co(e)?Oo(So(e)?Do(t):t):Do(t)}var Ra={__proto__:null,[Symbol.iterator](){return za(this,Symbol.iterator,e=>La(this,e))},concat(...e){return Fa(this).concat(...e.map(e=>P(e)?Fa(e):e))},entries(){return za(this,`entries`,e=>(e[1]=La(this,e[1]),e))},every(e,t){return Va(this,`every`,e,t,void 0,arguments)},filter(e,t){return Va(this,`filter`,e,t,e=>e.map(e=>La(this,e)),arguments)},find(e,t){return Va(this,`find`,e,t,e=>La(this,e),arguments)},findIndex(e,t){return Va(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Va(this,`findLast`,e,t,e=>La(this,e),arguments)},findLastIndex(e,t){return Va(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Va(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ua(this,`includes`,e)},indexOf(...e){return Ua(this,`indexOf`,e)},join(e){return Fa(this).join(e)},lastIndexOf(...e){return Ua(this,`lastIndexOf`,e)},map(e,t){return Va(this,`map`,e,t,void 0,arguments)},pop(){return Wa(this,`pop`)},push(...e){return Wa(this,`push`,e)},reduce(e,...t){return Ha(this,`reduce`,e,t)},reduceRight(e,...t){return Ha(this,`reduceRight`,e,t)},shift(){return Wa(this,`shift`)},some(e,t){return Va(this,`some`,e,t,void 0,arguments)},splice(...e){return Wa(this,`splice`,e)},toReversed(){return Fa(this).toReversed()},toSorted(e){return Fa(this).toSorted(e)},toSpliced(...e){return Fa(this).toSpliced(...e)},unshift(...e){return Wa(this,`unshift`,e)},values(){return za(this,`values`,e=>La(this,e))}};function za(e,t,n){let r=Ia(e),i=r[t]();return r!==e&&!wo(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Ba=Array.prototype;function Va(e,t,n,r,i,a){let o=Ia(e),s=o!==e&&!wo(e),c=o[t];if(c!==Ba[t]){let t=c.apply(e,a);return s?Do(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,La(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Ha(e,t,n,r){let i=Ia(e),a=i!==e&&!wo(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=La(e,t)),n.call(this,t,La(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?La(e,c):c}function Ua(e,t,n){let r=H(e);V(r,`iterate`,Ma);let i=r[t](...n);return(i===-1||i===!1)&&To(n[0])?(n[0]=H(n[0]),r[t](...n)):i}function Wa(e,t,n=[]){Sa(),fa();let r=H(e)[t].apply(e,n);return pa(),Ca(),r}var Ga=si(`__proto__,__v_isRef,__isVue`),Ka=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(vi));function qa(e){vi(e)||(e=String(e));let t=H(this);return V(t,`has`,e),t.hasOwnProperty(e)}var Ja=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?ho:mo:i?po:fo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=P(e);if(!r){let e;if(a&&(e=Ra[t]))return e;if(t===`hasOwnProperty`)return qa}let o=Reflect.get(e,t,U(e)?e:n);if((vi(t)?Ka.has(t):Ga(t))||(r||V(e,`get`,t),i))return o;if(U(o)){let e=a&&wi(t)?o:o.value;return r&&L(e)?yo(e):e}return L(o)?r?yo(o):_o(o):o}},Ya=class extends Ja{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=P(e)&&wi(t);if(!this._isShallow){let e=Co(i);if(!wo(n)&&!Co(n)&&(i=H(i),n=H(n)),!a&&U(i)&&!U(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:N(e,t),s=Reflect.set(e,t,n,U(e)?e:r);return e===H(r)&&s&&(o?Mi(n,i)&&Na(e,`set`,t,n,i):Na(e,`add`,t,n)),s}deleteProperty(e,t){let n=N(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Na(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!vi(t)||!Ka.has(t))&&V(e,`has`,t),n}ownKeys(e){return V(e,`iterate`,P(e)?`length`:Aa),Reflect.ownKeys(e)}},Xa=class extends Ja{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Za=new Ya,Qa=new Xa,$a=new Ya(!0),eo=new Xa(!0),to=e=>e,no=e=>Reflect.getPrototypeOf(e);function ro(e,t,n){return function(...r){let i=this.__v_raw,a=H(i),o=hi(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?to:t?Oo:Do;return!t&&V(a,`iterate`,c?ja:Aa),M(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function io(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function ao(e,t){let n={get(n){let r=this.__v_raw,i=H(r),a=H(n);e||(Mi(n,a)&&V(i,`get`,n),V(i,`get`,a));let{has:o}=no(i),s=t?to:e?Oo:Do;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&V(H(t),`iterate`,Aa),t.size},has(t){let n=this.__v_raw,r=H(n),i=H(t);return e||(Mi(t,i)&&V(r,`has`,t),V(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=H(a),s=t?to:e?Oo:Do;return!e&&V(o,`iterate`,Aa),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return M(n,e?{add:io(`add`),set:io(`set`),delete:io(`delete`),clear:io(`clear`)}:{add(e){let n=H(this),r=no(n),i=H(e),a=!t&&!wo(e)&&!Co(e)?i:e;return r.has.call(n,a)||Mi(e,a)&&r.has.call(n,e)||Mi(i,a)&&r.has.call(n,i)||(n.add(a),Na(n,`add`,a,a)),this},set(e,n){!t&&!wo(n)&&!Co(n)&&(n=H(n));let r=H(this),{has:i,get:a}=no(r),o=i.call(r,e);o||=(e=H(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?Mi(n,s)&&Na(r,`set`,e,n,s):Na(r,`add`,e,n),this},delete(e){let t=H(this),{has:n,get:r}=no(t),i=n.call(t,e);i||=(e=H(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Na(t,`delete`,e,void 0,a),o},clear(){let e=H(this),t=e.size!==0,n=e.clear();return t&&Na(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=ro(r,e,t)}),n}function oo(e,t){let n=ao(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(N(n,r)&&r in t?n:t,r,i)}var so={get:oo(!1,!1)},co={get:oo(!1,!0)},lo={get:oo(!0,!1)},uo={get:oo(!0,!0)},fo=new WeakMap,po=new WeakMap,mo=new WeakMap,ho=new WeakMap;function go(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function _o(e){return Co(e)?e:xo(e,!1,Za,so,fo)}function vo(e){return xo(e,!1,$a,co,po)}function yo(e){return xo(e,!0,Qa,lo,mo)}function bo(e){return xo(e,!0,eo,uo,ho)}function xo(e,t,n,r,i){if(!L(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=go(Si(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function So(e){return Co(e)?So(e.__v_raw):!!(e&&e.__v_isReactive)}function Co(e){return!!(e&&e.__v_isReadonly)}function wo(e){return!!(e&&e.__v_isShallow)}function To(e){return e?!!e.__v_raw:!1}function H(e){let t=e&&e.__v_raw;return t?H(t):e}function Eo(e){return!N(e,`__v_skip`)&&Object.isExtensible(e)&&Pi(e,`__v_skip`,!0),e}var Do=e=>L(e)?_o(e):e,Oo=e=>L(e)?yo(e):e;function U(e){return e?e.__v_isRef===!0:!1}function ko(e){return jo(e,!1)}function Ao(e){return jo(e,!0)}function jo(e,t){return U(e)?e:new Mo(e,t)}var Mo=class{constructor(e,t){this.dep=new Da,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:H(e),this._value=t?e:Do(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||wo(e)||Co(e);e=n?e:H(e),Mi(e,t)&&(this._rawValue=e,this._value=n?e:Do(e),this.dep.trigger())}};function No(e){return U(e)?e.value:e}function W(e){return F(e)?e():No(e)}var Po={get:(e,t,n)=>t===`__v_raw`?e:No(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return U(i)&&!U(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fo(e){return So(e)?e:new Proxy(e,Po)}var Io=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Da,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Lo(e){return new Io(e)}function Ro(e){let t=P(e)?Array(e.length):{};for(let n in e)t[n]=Ho(e,n);return t}var zo=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=vi(t)?t:String(t),this._raw=H(e);let r=!0,i=e;if(!P(e)||vi(this._key)||!wi(this._key))do r=!To(i)||wo(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=No(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&U(this._raw[this._key])){let t=this._object[this._key];if(U(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Pa(this._raw,this._key)}},Bo=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Vo(e,t,n){return U(e)?e:F(e)?new Bo(e):L(e)&&arguments.length>1?Ho(e,t,n):ko(e)}function Ho(e,t,n){return new zo(e,t,n)}var Uo=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Da(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ta-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&B!==this)return da(this,!0),!0}get value(){let e=this.dep.track();return _a(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Wo(e,t,n=!1){let r,i;return F(e)?r=e:(r=e.get,i=e.set),new Uo(r,i,n)}var Go={},Ko=new WeakMap,qo=void 0;function Jo(e,t=!1,n=qo){if(n){let t=Ko.get(n);t||Ko.set(n,t=[]),t.push(e)}}function Yo(e,t,n=j){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:wo(e)||i===!1||i===0?Xo(e,1):Xo(e),u,d,f,p,m=!1,h=!1;if(U(e)?(d=()=>e.value,m=wo(e)):So(e)?(d=()=>l(e),m=!0):P(e)?(h=!0,m=e.some(e=>So(e)||wo(e)),d=()=>e.map(e=>{if(U(e))return e.value;if(So(e))return l(e);if(F(e))return c?c(e,2):e()})):d=F(e)?t?c?()=>c(e,2):e:()=>{if(f){Sa();try{f()}finally{Ca()}}let t=qo;qo=u;try{return c?c(e,3,[p]):e(p)}finally{qo=t}}:li,t&&i){let e=d,t=i===!0?1/0:i;d=()=>Xo(e(),t)}let g=ia(),_=()=>{u.stop(),g&&g.active&&pi(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return _(),n}}let v=h?Array(e.length).fill(Go):Go,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e)){if(t){let n=u.run();if(e||i||m||(h?n.some((e,t)=>Mi(e,v[t])):Mi(n,v))){f&&f();let e=qo;qo=u;try{let e=[n,v===Go?void 0:h&&v[0]===Go?[]:v,p];v=n,c?c(t,3,e):t(...e)}finally{qo=e}}}else u.run()}};return s&&s(y),u=new sa(d),u.scheduler=o?()=>o(y,!1):y,p=e=>Jo(e,!1,u),f=u.onStop=()=>{let e=Ko.get(u);if(e){if(c)c(e,4);else for(let t of e)t();Ko.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Xo(e,t=1/0,n){if(t<=0||!L(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,U(e))Xo(e.value,t,n);else if(P(e))for(let r=0;r<e.length;r++)Xo(e[r],t,n);else if(gi(e)||hi(e))e.forEach(e=>{Xo(e,t,n)});else if(Ci(e)){for(let r in e)Xo(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xo(e[r],t,n)}return e}function Zo(e,t,n,r){try{return r?e(...r):e()}catch(e){$o(e,t,n)}}function Qo(e,t,n,r){if(F(e)){let i=Zo(e,t,n,r);return i&&yi(i)&&i.catch(e=>{$o(e,t,n)}),i}if(P(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Qo(e[a],t,n,r));return i}}function $o(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||j;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){Sa(),Zo(a,null,10,[e,i,o]),Ca();return}}es(e,n,i,r,o)}function es(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var G=[],ts=-1,ns=[],rs=null,is=0,as=Promise.resolve(),os=null;function ss(e){let t=os||as;return e?t.then(this?e.bind(this):e):t}function cs(e){let t=ts+1,n=G.length;for(;t<n;){let r=t+n>>>1,i=G[r],a=ms(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function ls(e){if(!(e.flags&1)){let t=ms(e),n=G[G.length-1];!n||!(e.flags&2)&&t>=ms(n)?G.push(e):G.splice(cs(t),0,e),e.flags|=1,us()}}function us(){os||=as.then(hs)}function ds(e){if(!P(e))rs&&e.id===-1?rs.splice(is+1,0,e):e.flags&1||(ns.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)ns.push(e[t]);us()}function fs(e,t,n=ts+1){for(;n<G.length;n++){let t=G[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;G.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function ps(e){if(ns.length){let e=[...new Set(ns)].sort((e,t)=>ms(e)-ms(t));if(ns.length=0,rs){for(let t=0;t<e.length;t++)rs.push(e[t]);return}for(rs=e,is=0;is<rs.length;is++){let e=rs[is];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}rs=null,is=0}}var ms=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hs(e){try{for(ts=0;ts<G.length;ts++){let e=G[ts];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Zo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ts<G.length;ts++){let e=G[ts];e&&(e.flags&=-2)}ts=-1,G.length=0,ps(e),os=null,(G.length||ns.length)&&hs(e)}}var K=null,gs=null;function _s(e){let t=K;return K=e,gs=e&&e.type.__scopeId||null,t}function vs(e){gs=e}function ys(){gs=null}var bs=e=>xs;function xs(e,t=K,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&gu(-1);let i=_s(t),a=fu.length,o;try{o=e(...n)}finally{for(let e=fu.length;e>a;e--)mu();_s(i),r._d&&gu(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ss(e,t){if(K===null)return e;let n=Zu(K),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=j]=t[e];i&&(F(i)&&(i={mounted:i,updated:i}),i.deep&&Xo(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Cs(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Sa(),Qo(c,n,8,[e.el,s,e,t]),Ca())}}function ws(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function Ts(e,t,n=!1){let r=Ru();if(r||ll){let i=ll?ll._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&F(t)?t.call(r&&r.proxy):t}}function Es(){return!!(Ru()||ll)}var Ds=Symbol.for(`v-scx`),Os=()=>Ts(Ds);function ks(e,t){return Ms(e,null,t)}function As(e,t){return Ms(e,null,{flush:`post`})}function js(e,t,n){return Ms(e,t,n)}function Ms(e,t,n=j){let{immediate:r,deep:i,flush:a,once:o}=n,s=M({},n),c=t&&r||!t&&a!==`post`,l;if(Wu){if(a===`sync`){let e=Os();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=li,e.resume=li,e.pause=li,e}}let u=$;s.call=(e,t,n)=>Qo(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{J(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():ls(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=Yo(e,t,s);return Wu&&(l?l.push(f):c&&f()),f}function Ns(e,t,n){let r=this.proxy,i=I(e)?e.includes(`.`)?Ps(r,e):()=>r[e]:e.bind(r,r),a;F(t)?a=t:(a=t.handler,n=t);let o=Vu(this),s=Ms(i,a.bind(r),n);return o(),s}function Ps(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Fs=new WeakMap,Is=Symbol(`_vte`),Ls=e=>e.__isTeleport,Rs=e=>e&&(e.disabled||e.disabled===``),zs=e=>e&&(e.defer||e.defer===``),Bs=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Vs=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Hs=(e,t)=>{let n=e&&e.to;return I(n)?t?t(n):null:n},Us={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Rs(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Rs(e.props),r=e.target=Hs(e.props,m),a=Js(r,e,h,p);r&&(o!==`svg`&&Bs(r)?o=`svg`:o!==`mathml`&&Vs(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),qs(e,!1)))},S=e=>{let t=()=>{if(Fs.get(e)===t){if(Fs.delete(e),Rs(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),qs(e,!0)}x(e)}};Fs.set(e,t),J(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),zs(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),qs(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Fs.get(e);if(u){u.flags|=8,Fs.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Rs(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Bs(p)?o=`svg`:(o===`mathml`||Vs(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Kl(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ws(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Hs(t.props,m);e&&(t.target=e,Ws(t,e,null,l,0))}else g&&Ws(t,p,h,l,1);qs(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Rs(f),m=a||!p,h=Fs.get(e);if(h&&(h.flags|=8,Fs.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Ws,hydrate:Gs};function Ws(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Fs.has(e)&&(!d||Rs(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Gs(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Hs(t.props,c),h=Rs(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Js(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Js(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),qs(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Ks=Us;function qs(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Js(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Is]=o,e&&(r(a,e,i),r(o,e,i)),o}var Ys=Symbol(`_leaveCb`),Xs=Symbol(`_enterCb`);function Zs(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Cc(()=>{e.isMounted=!0}),Ec(()=>{e.isUnmounting=!0}),e}var Qs=[Function,Array],$s={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qs,onEnter:Qs,onAfterEnter:Qs,onEnterCancelled:Qs,onBeforeLeave:Qs,onLeave:Qs,onAfterLeave:Qs,onLeaveCancelled:Qs,onBeforeAppear:Qs,onAppear:Qs,onAfterAppear:Qs,onAppearCancelled:Qs};function ec(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==X){t=n;break}}return t}function tc(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nc(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=tc(n,e),S=(e,t)=>{e&&Qo(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),P(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=g||c;else return}t[Ys]&&t[Ys](!0);let i=x[b];i&&xu(e,i)&&i.el[Ys]&&i.el[Ys](),S(r,[t])},enter(t){if(x[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=_||l,i=v||u,o=y||d;else return}let s=!1;t[Xs]=e=>{s||(s=!0,S(e?o:i,[t]),w.delayedLeave&&w.delayedLeave(),t[Xs]=void 0)};let c=t[Xs].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Xs]&&t[Xs](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[Ys]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Ys]=void 0,x[i]===e&&delete x[i])};let o=t[Ys].bind(null,!1);x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=nc(e,t,n,r,i);return i&&i(a),a}};return w}function rc(e){if(!hc(e))return Ls(e.type)&&e.children?ec(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function ic(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;ic(Ls(n.type)&&rc(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ac(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===Y?(o.patchFlag&128&&i++,r=r.concat(ac(o.children,t,s))):(t||o.type!==X)&&r.push(s==null?o:Du(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function oc(e,t){return F(e)?M({name:e.name},t,{setup:e}):e}function sc(){let e=Ru();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function cc(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function lc(e){let t=Ru(),n=Ao(null);if(t){let r=t.refs===j?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function uc(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var dc=new WeakMap;function fc(e,t,n,r,i=!1){if(P(e)){e.forEach((e,a)=>fc(e,t&&(P(t)?t[a]:t),n,r,i));return}if(mc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&fc(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Zu(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===j?s.refs={}:s.refs,d=s.setupState,f=H(d),p=d===j?ui:e=>!uc(u,e)&&N(f,e),m=(e,t)=>!(t&&uc(u,t));if(l!=null&&l!==c){if(pc(t),I(l))u[l]=null,p(l)&&(d[l]=null);else if(U(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(F(c))Zo(c,s,12,[o,u]);else{let t=I(c),r=U(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)P(n)&&pi(n,a);else if(P(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),dc.delete(e)};t.id=-1,dc.set(e,t),J(t,n)}else pc(e),s()}}}function pc(e){let t=dc.get(e);t&&(t.flags|=8,dc.delete(e))}Ri().requestIdleCallback,Ri().cancelIdleCallback;var mc=e=>!!e.type.__asyncLoader,hc=e=>e.type.__isKeepAlive;function gc(e,t){vc(e,`a`,t)}function _c(e,t){vc(e,`da`,t)}function vc(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(bc(t,r,n),n){let e=n.parent;for(;e&&e.parent;)hc(e.parent.vnode)&&yc(r,t,n,e),e=e.parent}}function yc(e,t,n,r){let i=bc(t,e,r,!0);Dc(()=>{pi(r[t],i)},n)}function bc(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Sa();let i=Vu(n),a=Qo(t,n,e,r);return i(),Ca(),a};return r?i.unshift(a):i.push(a),a}}var xc=e=>(t,n=$)=>{(!Wu||e===`sp`)&&bc(e,(...e)=>t(...e),n)},Sc=xc(`bm`),Cc=xc(`m`),wc=xc(`bu`),Tc=xc(`u`),Ec=xc(`bum`),Dc=xc(`um`),Oc=xc(`sp`),kc=xc(`rtg`),Ac=xc(`rtc`);function jc(e,t=$){bc(`ec`,e,t)}var Mc=`components`;function Nc(e,t){return Ic(Mc,e,!0,t)||e}var Pc=Symbol.for(`v-ndc`);function Fc(e){return I(e)?Ic(Mc,e,!1)||e:e||Pc}function Ic(e,t,n=!0,r=!1){let i=K||$;if(i){let n=i.type;if(e===Mc){let e=Qu(n,!1);if(e&&(e===t||e===R(t)||e===Ai(R(t))))return n}let a=Lc(i[e]||n[e],t)||Lc(i.appContext[e],t);return!a&&r?n:a}}function Lc(e,t){return e&&(e[t]||e[R(t)]||e[Ai(R(t))])}function Rc(e,t,n,r){let i,a=n&&n[r],o=P(e);if(o||I(e)){let n=o&&So(e),r=!1,s=!1;n&&(r=!wo(e),s=Co(e),e=Ia(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Oo(Do(e[n])):Do(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(L(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function zc(e,t,n,r,i,a){if(n??={},K.ce||K.parent&&mc(K.parent)&&K.parent.ce){let e=a!=null&&n.key==null?M({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),pu(),yu(Y,null,[Q(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=fu.length;pu();let c;try{let i=o&&Bc(o(n)),s=n.key||a||i&&i.key;c=yu(Y,{key:(s&&!vi(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=fu.length;e>s;e--)mu();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Bc(e){return e.some(e=>!bu(e)||!(e.type===X||e.type===Y&&!Bc(e.children)))?e:null}var Vc=e=>e?Uu(e)?Zu(e):Vc(e.parent):null,Hc=M(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vc(e.parent),$root:e=>Vc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Zc(e),$forceUpdate:e=>e.f||=()=>{ls(e.update)},$nextTick:e=>e.n||=ss.bind(e.proxy),$watch:e=>Ns.bind(e)}),Uc=(e,t)=>e!==j&&!e.__isScriptSetup&&N(e,t),Wc={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Uc(r,t))return o[t]=1,r[t];else if(i!==j&&N(i,t))return o[t]=2,i[t];else if(N(a,t))return o[t]=3,a[t];else if(n!==j&&N(n,t))return o[t]=4,n[t];else Kc&&(o[t]=0)}let l=Hc[t],u,d;if(l)return t===`$attrs`&&V(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==j&&N(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,N(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Uc(i,t)?(i[t]=n,!0):r!==j&&N(r,t)?(r[t]=n,!0):N(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==j&&s[0]!==`$`&&N(e,s)||Uc(t,s)||N(a,s)||N(r,s)||N(Hc,s)||N(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?N(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Gc(e){return P(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Kc=!0;function qc(e){let t=Zc(e),n=e.proxy,r=e.ctx;Kc=!1,t.beforeCreate&&Yc(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:x,renderTracked:S,renderTriggered:C,errorCaptured:w,serverPrefetch:T,expose:ee,inheritAttrs:E,components:te,directives:ne,filters:re}=t;if(l&&Jc(l,r,null),o)for(let e in o){let t=o[e];F(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);L(t)&&(e.data=_o(t))}if(Kc=!0,a)for(let e in a){let t=a[e],i=ed({get:F(t)?t.bind(n,n):F(t.get)?t.get.bind(n,n):li,set:!F(t)&&F(t.set)?t.set.bind(n):li});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)Xc(s[e],r,n,e);if(c){let e=F(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{ws(t,e[t])})}u&&Yc(u,e,`c`);function D(e,t){P(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(D(Sc,d),D(Cc,f),D(wc,p),D(Tc,m),D(gc,h),D(_c,g),D(jc,w),D(Ac,S),D(kc,C),D(Ec,v),D(Dc,b),D(Oc,T),P(ee)){if(ee.length){let t=e.exposed||={};ee.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}x&&e.render===li&&(e.render=x),E!=null&&(e.inheritAttrs=E),te&&(e.components=te),ne&&(e.directives=ne),T&&cc(e)}function Jc(e,t,n=li){P(e)&&(e=nl(e));for(let n in e){let r=e[n],i;i=L(r)?`default`in r?Ts(r.from||n,r.default,!0):Ts(r.from||n):Ts(r),U(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Yc(e,t,n){Qo(P(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xc(e,t,n,r){let i=r.includes(`.`)?Ps(n,r):()=>n[r];if(I(e)){let n=t[e];F(n)&&js(i,n)}else if(F(e))js(i,e.bind(n));else if(L(e)){if(P(e))e.forEach(e=>Xc(e,t,n,r));else{let r=F(e.handler)?e.handler.bind(n):t[e.handler];F(r)&&js(i,r,e)}}}function Zc(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Qc(c,e,o,!0)),Qc(c,t,o)),L(t)&&a.set(t,c),c}function Qc(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qc(e,a,n,!0),i&&i.forEach(t=>Qc(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$c[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var $c={data:el,props:il,emits:il,methods:rl,computed:rl,beforeCreate:q,created:q,beforeMount:q,mounted:q,beforeUpdate:q,updated:q,beforeDestroy:q,beforeUnmount:q,destroyed:q,unmounted:q,activated:q,deactivated:q,errorCaptured:q,serverPrefetch:q,components:rl,directives:rl,watch:al,provide:el,inject:tl};function el(e,t){return t?e?function(){return M(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function tl(e,t){return rl(nl(e),nl(t))}function nl(e){if(P(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function q(e,t){return e?[...new Set([].concat(e,t))]:t}function rl(e,t){return e?M(Object.create(null),e,t):t}function il(e,t){return e?P(e)&&P(t)?[...new Set([...e,...t])]:M(Object.create(null),Gc(e),Gc(t??{})):t}function al(e,t){if(!e)return t;if(!t)return e;let n=M(Object.create(null),e);for(let r in t)n[r]=q(e[r],t[r]);return n}function ol(){return{app:null,config:{isNativeTag:ui,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var sl=0;function cl(e,t){return function(n,r=null){F(n)||(n=M({},n)),r!=null&&!L(r)&&(r=null);let i=ol(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:sl++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:nd,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&F(e.install)?(a.add(e),e.install(c,...t)):F(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||Q(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Zu(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Qo(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=ll;ll=c;try{return e()}finally{ll=t}}};return c}}var ll=null,ul=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${R(t)}Modifiers`]||e[`${ki(t)}Modifiers`];function dl(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||j,i=n,a=t.startsWith(`update:`),o=a&&ul(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>I(e)?e.trim():e)),o.number&&(i=i.map(Fi)));let s,c=r[s=ji(t)]||r[s=ji(R(t))];!c&&a&&(c=r[s=ji(ki(t))]),c&&Qo(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qo(l,e,6,i)}}var fl=new WeakMap;function pl(e,t,n=!1){let r=n?fl:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!F(e)){let r=e=>{let n=pl(e,t,!0);n&&(s=!0,M(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(L(e)&&r.set(e,null),null):(P(a)?a.forEach(e=>o[e]=null):M(o,a),L(e)&&r.set(e,o),o)}function ml(e,t){return!e||!di(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),N(e,t[0].toLowerCase()+t.slice(1))||N(e,ki(t))||N(e,t))}function hl(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=_s(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Au(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Au(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:_l(s)}}catch(t){fu.length=0,$o(t,e,1),_=Q(X)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(fi)&&(v=vl(v,a)),y=Du(y,v,!1,!0))}return n.dirs&&(y=Du(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&ic(Ls(y.type)&&rc(y)||y,n.transition),_=y,_s(g),_}function gl(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(bu(r)){if(r.type!==X||r.children===`v-if`){if(n)return;n=r}}else return}return n}var _l=e=>{let t;for(let n in e)(n===`class`||n===`style`||di(n))&&((t||={})[n]=e[n]);return t},vl=(e,t)=>{let n={};for(let r in e)(!fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function yl(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?bl(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(xl(o,r,n)&&!ml(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||bl(r,o,l):!!o;return!1}function bl(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(xl(t,e,a)&&!ml(n,a))return!0}return!1}function xl(e,t,n){let r=e[n],i=t[n];return n===`style`&&L(r)&&L(i)?!Zi(r,i):r!==i}function Sl({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Cl={},wl=()=>Object.create(Cl),Tl=e=>Object.getPrototypeOf(e)===Cl;function El(e,t,n,r=!1){let i={},a=wl();e.propsDefaults=Object.create(null),Ol(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:vo(i):e.type.props?i:a,e.attrs=a}function Dl(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=H(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ml(e.emitsOptions,o))continue;let u=t[o];if(c){if(N(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=R(o);i[t]=kl(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ol(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!N(t,a)&&((r=ki(a))===a||!N(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=kl(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!N(t,e))&&(delete a[e],l=!0)}l&&Na(e.attrs,`set`,``)}function Ol(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(Ti(c))continue;let l=t[c],u;i&&N(i,u=R(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:ml(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=H(n),r=s||j;for(let o=0;o<a.length;o++){let s=a[o];n[s]=kl(i,t,s,r[s],e,!N(r,s))}}return o}function kl(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=N(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&F(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Vu(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ki(n))&&(r=!0))}return r}var Al=new WeakMap;function jl(e,t,n=!1){let r=n?Al:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!F(e)){let r=e=>{c=!0;let[n,r]=jl(e,t,!0);M(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return L(e)&&r.set(e,ci),ci;if(P(a))for(let e=0;e<a.length;e++){let t=R(a[e]);Ml(t)&&(o[t]=j)}else if(a)for(let e in a){let t=R(e);if(Ml(t)){let n=a[e],r=o[t]=P(n)||F(n)?{type:n}:M({},n),i=r.type,c=!1,l=!0;if(P(i))for(let e=0;e<i.length;++e){let t=i[e],n=F(t)&&t.name;if(n===`Boolean`){c=!0;break}n===`String`&&(l=!1)}else c=F(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||N(r,`default`))&&s.push(t)}}let l=[o,s];return L(e)&&r.set(e,l),l}function Ml(e){return e[0]!==`$`&&!Ti(e)}var Nl=e=>e===`_`||e===`_ctx`||e===`$stable`,Pl=e=>P(e)?e.map(Au):[Au(e)],Fl=(e,t,n)=>{if(t._n)return t;let r=xs((...e)=>Pl(t(...e)),n);return r._c=!1,r},Il=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Nl(n))continue;let i=e[n];if(F(i))t[n]=Fl(n,i,r);else if(i!=null){let e=Pl(i);t[n]=()=>e}}},Ll=(e,t)=>{let n=Pl(t);e.slots.default=()=>n},Rl=(e,t,n)=>{for(let r in t)(n||!Nl(r))&&(e[r]=t[r])},zl=(e,t,n)=>{let r=e.slots=wl();if(e.vnode.shapeFlag&32){let e=t._;e?(Rl(r,t,n),n&&Pi(r,`_`,e,!0)):Il(t,r)}else t&&Ll(e,t)},Bl=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=j;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Rl(i,t,n):(a=!t.$stable,Il(t,i)),o=t}else t&&(Ll(e,t),o={default:1});if(a)for(let e in i)!Nl(e)&&o[e]==null&&delete i[e]},J=su;function Vl(e){return Hl(e)}function Hl(e,t){let n=Ri();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=li,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!xu(e,t)&&(r=A(e),ue(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case uu:g(e,t,n,r);break;case X:_(e,t,n,r);break;case du:e??v(t,n,r,o);break;case Y:te(e,t,n,r,i,a,o,s,c);break;default:d&1?x(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,he)}u!=null&&i?fc(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&fc(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},x=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)S(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),T(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},S=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&w(e.children,f,null,i,s,Ul(e,c),l,d),_&&Cs(e,null,i,`created`),C(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!Ti(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Pu(p,i,e)}_&&Cs(e,null,i,`beforeMount`);let v=Gl(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&J(()=>{try{p&&Pu(p,i,e),v&&g.enter(f),_&&Cs(e,null,i,`mounted`)}finally{}},s)},C=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||Zl(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;C(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},w=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?ju(e[l]):Au(e[l]);h(null,c,t,n,r,i,a,o,s)}},T=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||j,m=t.props||j,h;if(n&&Wl(n,!1),(h=m.onVnodeBeforeUpdate)&&Pu(h,n,t,e),f&&Cs(t,e,n,`beforeUpdate`),n&&Wl(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(l=0,s=!1,d=null),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?ee(e.dynamicChildren,d,c,n,r,Ul(t,i),o):s||oe(e,t,c,null,n,r,Ul(t,i),o,!1),l>0){if(l&16)E(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&d==null&&E(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&J(()=>{h&&Pu(h,n,t,e),f&&Cs(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===Y||!xu(c,l)||c.shapeFlag&198)?d(c.el):n;h(c,l,u,null,r,i,a,o,!0)}},E=(e,t,n,r,i)=>{if(t!==n){if(t!==j)for(let o in t)!Ti(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(Ti(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},te=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),w(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ee(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&Kl(e,t,!0)):oe(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):D(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Lu(e,r,i);if(hc(e)&&(s.ctx.renderer=he),Gu(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=Q(X);_(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},D=(e,t,n)=>{let r=t.component=e.component;if(yl(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Jl(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{J(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;Wl(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&Ni(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Pu(f,s,t,c),Wl(e,!0);let p=hl(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),A(m),e,i,a),t.el=p.el,u===null&&Sl(e,p.el),r&&J(r,i),(f=t.props&&t.props.onVnodeUpdated)&&J(()=>Pu(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=mc(t);if(Wl(e,!1),l&&Ni(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Pu(o,d,t),Wl(e,!0),s&&_e){let t=()=>{e.subTree=hl(e),_e(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=hl(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&J(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;J(()=>Pu(o,d,e),i)}(t.shapeFlag&256||d&&mc(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&J(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new sa(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>ls(u),Wl(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Dl(e,t.props,r,n),Bl(e,t.children,n),Sa(),fs(e),Ca()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ce(l,f,n,r,i,a,o,s,c);return}if(p&256){se(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&k(l,i,a),f!==l&&u(n,f)):d&16?m&16?ce(l,f,n,r,i,a,o,s,c):k(l,i,a,!0):(d&8&&u(n,``),m&16&&w(f,n,r,i,a,o,s,c))},se=(e,t,n,r,i,a,o,s,c)=>{e||=ci,t||=ci;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?ju(t[f]):Au(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?k(e,i,a,!0,!1,d):w(t,n,r,i,a,o,s,c,d)},ce=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?ju(t[l]):Au(t[l]);if(xu(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?ju(t[f]):Au(t[f]);if(xu(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?ju(t[l]):Au(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)ue(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?ju(t[l]):Au(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,x=0,S=Array(y);for(l=0;l<y;l++)S[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){ue(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&xu(r,t[_])){u=_;break}u===void 0?ue(r,i,a,!0):(S[u-m]=l+1,u>=x?x=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let C=b?ql(S):ci;for(_=C.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||Xl(f):r;S[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==C[_]?le(d,n,p,2):_--)}}},le=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){le(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,he);return}if(c===Y){r(s,t,n);for(let e=0;e<u.length;e++)le(u[e],t,n,a);r(e.anchor,t,n);return}if(c===du){y(e,t,n);return}if(a!==2&&d&1&&l){if(a===0)l.persisted&&!s[Ys]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),J(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[Ys];s._isLeaving&&s[Ys](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},ue=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Sa(),fc(s,null,n,e,!0),Ca()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!mc(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Pu(_,t,e),u&6)fe(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cs(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,he,r):l&&!l.hasOnce&&(a!==Y||d>0&&d&64)?k(l,t,n,!1,!0):(a===Y&&d&384||!i&&u&16)&&k(c,t,n),r&&de(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&J(()=>{_&&Pu(_,t,e),h&&Cs(e,null,t,`unmounted`),v&&(e.el=null)},n)},de=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===Y){O(n,r);return}if(t===du){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},O=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},fe=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Yl(c),Yl(l),r&&Ni(r),i.stop(),a&&(a.flags|=8,ue(o,e,t,n)),s&&J(s,t),J(()=>{e.isUnmounted=!0},t)},k=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ue(e[o],t,n,r,i)},A=e=>{if(e.shapeFlag&6)return A(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[Is];return n?f(n):t},pe=!1,me=(e,t,n)=>{let r;e==null?t._vnode&&(ue(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,pe||=(pe=!0,fs(r),ps(),!1)},he={p:h,um:ue,m:le,r:de,mt:re,mc:w,pc:oe,pbc:ee,n:A,o:e},ge,_e;return t&&([ge,_e]=t(he)),{render:me,hydrate:ge,createApp:cl(me,ge)}}function Ul({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Wl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Kl(e,t,n=!1){let r=e.children,i=t.children;if(P(r)&&P(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=ju(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Kl(t,a)),a.type===uu&&(a.patchFlag===-1&&(a=i[e]=ju(a)),a.el=t.el),a.type===X&&!a.el&&(a.el=t.el)}}function ql(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Jl(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jl(t)}function Yl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xl(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Xl(t.subTree):null}var Zl=e=>e.__isSuspense,Ql=0,$l={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)tu(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nu(e,t,n,r,i,o,s,c,l)}},hydrate:iu,normalize:au};function eu(e,t){let n=e.props&&e.props[t];F(n)&&n()}function tu(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ru(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(eu(e,`onPending`),eu(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),cu(f,e.ssFallback)):f.resolve(!1,!0)}function nu(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,xu(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),cu(d,p))):(d.pendingId=Ql++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),cu(d,p))):m&&xu(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&xu(m,f))c(m,f,n,r,i,d,a,o,s),cu(d,f);else if(eu(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Ql++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ru(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=lu(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?Ii(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Ql++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),ds(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&J(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,cu(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&ds(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),eu(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;eu(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),cu(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{$o(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Hu(),e.asyncResolved=!0;let{vnode:s}=e;qu(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),Sl(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function iu(e,t,n,r,i,a,o,s,c){let l=t.suspense=ru(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function au(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ou(r?n.default:n),e.ssFallback=r?ou(n.fallback):Q(X)}function ou(e){let t;if(F(e)){let n=hu&&e._c;n&&(e._d=!1,pu()),e=e(),n&&(e._d=!0,t=Z,mu())}return P(e)&&(e=gl(e)),e=Au(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function su(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):ds(e)}function cu(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Sl(r,i))}function lu(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Y=Symbol.for(`v-fgt`),uu=Symbol.for(`v-txt`),X=Symbol.for(`v-cmt`),du=Symbol.for(`v-stc`),fu=[],Z=null;function pu(e=!1){fu.push(Z=e?null:[])}function mu(){fu.pop(),Z=fu[fu.length-1]||null}var hu=1;function gu(e,t=!1){hu+=e,e<0&&Z&&t&&(Z.hasOnce=!0)}function _u(e){return e.dynamicChildren=hu>0?Z||ci:null,mu(),hu>0&&Z&&Z.push(e),e}function vu(e,t,n,r,i,a){return _u(wu(e,t,n,r,i,a,!0))}function yu(e,t,n,r,i){return _u(Q(e,t,n,r,i,!0))}function bu(e){return e?e.__v_isVNode===!0:!1}function xu(e,t){return e.type===t.type&&e.key===t.key}var Su=({key:e})=>e??null,Cu=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:I(e)||U(e)||F(e)?{i:K,r:e,k:t,f:!!n}:e);function wu(e,t=null,n=null,r=0,i=null,a=e===Y?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Su(t),ref:t&&Cu(t),scopeId:gs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:K};return s?(Mu(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=I(n)?8:16),hu>0&&!o&&Z&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Z.push(c),c}var Q=Tu;function Tu(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Pc)&&(e=X),bu(e)){let r=Du(e,t,!0);return n&&Mu(r,n),hu>0&&!a&&Z&&(r.shapeFlag&6?Z[Z.indexOf(e)]=r:Z.push(r)),r.patchFlag=-2,r}if($u(e)&&(e=e.__vccOpts),t){t=Eu(t);let{class:e,style:n}=t;e&&!I(e)&&(t.class=Wi(e)),L(n)&&(To(n)&&!P(n)&&(n=M({},n)),t.style=zi(n))}let o=I(e)?1:Zl(e)?128:Ls(e)?64:L(e)?4:F(e)?2:0;return wu(e,t,n,r,i,o,a,!0)}function Eu(e){return e?To(e)||Tl(e)?M({},e):e:null}function Du(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Nu(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Su(l),ref:t&&t.ref?n&&a?P(a)?a.concat(Cu(t)):[a,Cu(t)]:Cu(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Du(e.ssContent),ssFallback:e.ssFallback&&Du(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ic(u,c.clone(u)),u}function Ou(e=` `,t=0){return Q(uu,null,e,t)}function ku(e=``,t=!1){return t?(pu(),yu(X,null,e)):Q(X,null,e)}function Au(e){return e==null||typeof e==`boolean`?Q(X):P(e)?Q(Y,null,e.slice()):bu(e)?ju(e):Q(uu,null,String(e))}function ju(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Du(e)}function Mu(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(P(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Mu(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Tl(t)?t._ctx=K:r===3&&K&&(K.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(F(t)){if(r&65){Mu(e,{default:t});return}t={default:t,_ctx:K},n=32}else t=String(t),r&64?(n=16,t=[Ou(t)]):n=8;e.children=t,e.shapeFlag|=n}function Nu(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=Wi([t.class,r.class]));else if(e===`style`)t.style=zi([t.style,r.style]);else if(di(e)){let n=t[e],i=r[e];i&&n!==i&&!(P(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!fi(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Pu(e,t,n,r=null){Qo(e,t,7,[n,r])}var Fu=ol(),Iu=0;function Lu(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Fu,a={uid:Iu++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jl(r,i),emitsOptions:pl(r,i),emit:null,emitted:null,propsDefaults:j,inheritAttrs:r.inheritAttrs,ctx:j,data:j,props:j,attrs:j,slots:j,refs:j,setupState:j,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=dl.bind(null,a),e.ce&&e.ce(a),a}var $=null,Ru=()=>$||K,zu,Bu;{let e=Ri(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};zu=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),Bu=t(`__VUE_SSR_SETTERS__`,e=>Wu=e)}var Vu=e=>{let t=$;return zu(e),e.scope.on(),()=>{e.scope.off(),zu(t)}},Hu=()=>{$&&$.scope.off(),zu(null)};function Uu(e){return e.vnode.shapeFlag&4}var Wu=!1;function Gu(e,t=!1,n=!1){t&&Bu(t);let{props:r,children:i}=e.vnode,a=Uu(e);El(e,r,a,t),zl(e,i,n||t);let o=a?Ku(e,t):void 0;return t&&Bu(!1),o}function Ku(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wc);let{setup:r}=n;if(r){Sa();let n=e.setupContext=r.length>1?Xu(e):null,i=Vu(e),a=Zo(r,e,0,[e.props,n]),o=yi(a);if(Ca(),i(),(o||e.sp)&&!mc(e)&&cc(e),o){if(a.then(Hu,Hu),t)return a.then(n=>{Bu(!0);try{qu(e,n,t)}finally{Bu(!1)}}).catch(t=>{$o(t,e,0)});e.asyncDep=a}else qu(e,a,t)}else Ju(e,t)}function qu(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:L(t)&&(e.setupState=Fo(t)),Ju(e,n)}function Ju(e,t,n){let r=e.type;e.render||=r.render||li;{let t=Vu(e);Sa();try{qc(e)}finally{Ca(),t()}}}var Yu={get(e,t){return V(e,`get`,``),e[t]}};function Xu(e){return{attrs:new Proxy(e.attrs,Yu),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Zu(e){return e.exposed?e.exposeProxy||=new Proxy(Fo(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hc)return Hc[n](e)},has(e,t){return t in e||t in Hc}}):e.proxy}function Qu(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function $u(e){return F(e)&&`__vccOpts`in e}var ed=(e,t)=>Wo(e,t,Wu);function td(e,t,n){try{gu(-1);let r=arguments.length;return r===2?L(t)&&!P(t)?bu(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bu(n)&&(n=[n]),Q(e,t,n))}finally{gu(1)}}var nd=`3.5.42`,rd=void 0,id=typeof window<`u`&&window.trustedTypes;if(id)try{rd=id.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ad=rd?e=>rd.createHTML(e):e=>e,od=`http://www.w3.org/2000/svg`,sd=`http://www.w3.org/1998/Math/MathML`,cd=typeof document<`u`?document:null,ld=cd&&cd.createElement(`template`),ud={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?cd.createElementNS(od,e):t===`mathml`?cd.createElementNS(sd,e):n?cd.createElement(e,{is:n}):cd.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>cd.createTextNode(e),createComment:e=>cd.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cd.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{ld.innerHTML=ad(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=ld.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dd=`transition`,fd=`animation`,pd=Symbol(`_vtc`),md={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hd=M({},$s,md),gd=(e,t=[])=>{P(e)?e.forEach(e=>e(...t)):e&&e(...t)},_d=e=>e?P(e)?e.some(e=>e.length>1):e.length>1:!1;function vd(e){let t={};for(let n in e)n in md||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=yd(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,Sd(e,t?u:s),Sd(e,t?l:o),n&&n()},ee=(e,t)=>{e._isLeaving=!1,Sd(e,d),Sd(e,p),Sd(e,f),t&&t()},E=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);gd(i,[t,o]),Cd(()=>{Sd(t,e?c:a),xd(t,e?u:s),_d(i)||Td(t,r,h,o)})};return M(t,{onBeforeEnter(e){gd(_,[e]),xd(e,a),xd(e,o)},onBeforeAppear(e){gd(S,[e]),xd(e,c),xd(e,l)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ee(e,t);xd(e,d),e._enterCancelled?(xd(e,f),kd(e)):(kd(e),xd(e,f)),Cd(()=>{e._isLeaving&&(Sd(e,d),xd(e,p),_d(b)||Td(e,r,g,n))}),gd(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),gd(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),gd(w,[e])},onLeaveCancelled(e){ee(e),gd(x,[e])}})}function yd(e){if(e==null)return null;if(L(e))return[bd(e.enter),bd(e.leave)];{let t=bd(e);return[t,t]}}function bd(e){return Ii(e)}function xd(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[pd]||(e[pd]=new Set)).add(t)}function Sd(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[pd];n&&(n.delete(t),n.size||(e[pd]=void 0))}function Cd(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var wd=0;function Td(e,t,n,r){let i=e._endId=++wd,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ed(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ed(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${dd}Delay`),a=r(`${dd}Duration`),o=Dd(i,a),s=r(`${fd}Delay`),c=r(`${fd}Duration`),l=Dd(s,c),u=null,d=0,f=0;t===dd?o>0&&(u=dd,d=o,f=a.length):t===fd?l>0&&(u=fd,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?dd:fd:null,f=u?u===dd?a.length:c.length:0);let p=u===dd&&/\b(?:transform|all)(?:,|$)/.test(r(`${dd}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Dd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Od(t)+Od(e[n])))}function Od(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function kd(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ad(e,t,n){let r=e[pd];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var jd=Symbol(`_vod`),Md=Symbol(`_vsh`),Nd={name:`show`,beforeMount(e,{value:t},{transition:n}){e[jd]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Pd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Pd(e,!0),r.enter(e)):r.leave(e,()=>{Pd(e,!1)}):Pd(e,t))},beforeUnmount(e,{value:t}){Pd(e,t)}};function Pd(e,t){e.style.display=t?e[jd]:`none`,e[Md]=!t}var Fd=Symbol(``),Id=/(?:^|;)\s*display\s*:/;function Ld(e,t,n){let r=e.style,i=I(n),a=!1;if(n&&!i){if(t){if(I(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??zd(r,t,``)}else for(let e in t)n[e]??zd(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?zd(r,i,``):Ud(e,i,!I(t)&&t?t[i]:void 0,o)||zd(r,i,o)}}else if(i){if(t!==n){let e=r[Fd];e&&(n+=`;`+e),r.cssText=n,a=Id.test(n)}}else t&&e.removeAttribute(`style`);jd in e&&(e[jd]=a?r.display:``,e[Md]&&(r.display=`none`))}var Rd=/\s*!important$/;function zd(e,t,n){if(P(n))n.forEach(n=>zd(e,t,n));else if(n??=``,t.startsWith(`--`))Rd.test(n)?e.setProperty(t,n.replace(Rd,``),`important`):e.setProperty(t,n);else{let r=Hd(e,t);Rd.test(n)?e.setProperty(ki(r),n.replace(Rd,``),`important`):e[r]=n}}var Bd=[`Webkit`,`Moz`,`ms`],Vd={};function Hd(e,t){let n=Vd[t];if(n)return n;let r=R(t);if(r!==`filter`&&r in e)return Vd[t]=r;r=Ai(r);for(let n=0;n<Bd.length;n++){let i=Bd[n]+r;if(i in e)return Vd[t]=i}return t}function Ud(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&I(r)&&n===r}var Wd=`http://www.w3.org/1999/xlink`;function Gd(e,t,n,r,i,a=qi(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Wd,t.slice(6,t.length)):e.setAttributeNS(Wd,t,n):n==null||a&&!Ji(n)?e.removeAttribute(t):e.setAttribute(t,a?``:vi(n)?String(n):n)}function Kd(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?ad(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ji(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function qd(e,t,n,r){e.addEventListener(t,n,r)}function Jd(e,t,n,r){e.removeEventListener(t,n,r)}var Yd=Symbol(`_vei`);function Xd(e,t,n,r,i=null){let a=e[Yd]||(e[Yd]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=$d(t);r?qd(e,n,a[t]=rf(r,i),s):o&&(Jd(e,n,o,s),a[t]=void 0)}}var Zd=/(Once|Passive|Capture)$/,Qd=/^on:?(?:Once|Passive|Capture)$/;function $d(e){let t,n;for(;(n=e.match(Zd))&&!Qd.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):ki(e.slice(2)),t]}var ef=0,tf=Promise.resolve(),nf=()=>ef||=(tf.then(()=>ef=0),Date.now());function rf(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(P(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Qo(e,t,5,a)}}else Qo(r,t,5,[e])};return n.value=e,n.attached=nf(),n}var af=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,of=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ad(e,r,o):t===`style`?Ld(e,n,r):di(t)?fi(t)||Xd(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):sf(e,t,r,o))?(Kd(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Gd(e,t,r,o,a,t!==`value`)):e._isVueCE&&(cf(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!I(r)))?Kd(e,R(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Gd(e,t,r,o))};function sf(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&af(t)&&F(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return af(t)&&I(n)?!1:t in e}function cf(e,t){let n=e._def.props;if(!n)return!1;let r=R(t);return Array.isArray(n)?n.some(e=>R(e)===r):Object.keys(n).some(e=>R(e)===r)}var lf={};function uf(e,t,n){let r=oc(e,t);Ci(r)&&(r=M({},r,t));class i extends ff{constructor(e){super(r,e,n)}}return i.def=r,i}var df=typeof HTMLElement<`u`?HTMLElement:class{},ff=class e extends df{constructor(e,t={},n=Uf){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Uf?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(M({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ss(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!P(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=Ii(this._props[e])),(i||=Object.create(null))[R(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)N(this,e)||Object.defineProperty(this,e,{get:()=>No(t[e])})}_resolveProps(e){let{props:t}=e,n=P(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(R))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):lf,r=R(e);t&&this._numberProps&&this._numberProps[r]&&(n=Ii(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===lf?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(ki(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(ki(e),t+``):t||this.removeAttribute(ki(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Hf(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Q(this._def,M(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,Ci(t[0])?M({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),ki(e)!==e&&t(ki(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}},pf=new WeakMap,mf=new WeakMap,hf=Symbol(`_moveCb`),gf=Symbol(`_enterCb`),_f=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:M({},hd,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Ru(),r=Zs(),i,a;return Tc(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Sf(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(vf),i.forEach(yf);let r=i.filter(bf);kd(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;xd(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[hf]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[hf]=null,Sd(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=H(e),s=vd(o),c=o.tag||Y;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Md]&&(i.push(t),ic(t,nc(t,s,r,n)),pf.set(t,xf(t.el)))}a=t.default?ac(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ic(t,nc(t,s,r,n))}return Q(c,null,a)}}});function vf(e){let t=e.el;t[hf]&&t[hf](),t[gf]&&t[gf]()}function yf(e){mf.set(e,xf(e.el))}function bf(e){let t=pf.get(e),n=mf.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function xf(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Sf(e,t,n){let r=e.cloneNode(),i=e[pd];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ed(r);return a.removeChild(r),o}var Cf=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return P(t)?e=>Ni(t,e):t};function wf(e){e.target.composing=!0}function Tf(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Ef=Symbol(`_assign`),Df=Symbol(`_initialValue`);function Of(e,t,n){return t&&(e=e.trim()),n&&(e=Fi(e)),e}var kf={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Df]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Df]=e.defaultValue.replace(/\r\n?/g,`
|
|
5
|
-
`))),e[Ef]=Cf(i);let a=r||i.props&&i.props.type===`number`;qd(e,t?`change`:`input`,t=>{t.target.composing||e[Ef](Of(e.value,n,a))}),(n||a)&&qd(e,`change`,()=>{e.value=Of(e.value,n,a)}),t||(qd(e,`compositionstart`,wf),qd(e,`compositionend`,Tf),qd(e,`change`,Tf))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Df];delete e[Df],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Ef](Of(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Ef]=Cf(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Fi(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Af={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,qd(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Fi(Nf(e)):Nf(e)),r=e.multiple,i=r?gi(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?P(i)?t.slice():t:i];try{e[Ef](i)}finally{ss(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Ef]=Cf(r)},mounted(e,{value:t}){Mf(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ef]=Cf(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!jf(t,n[1],n[0]))&&Mf(e,t)}};function jf(e,t,n){if(!n||P(e))return Zi(e,t);if(gi(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Mf(e,t){let n=e.multiple,r=P(t);if(!(n&&!r&&!gi(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Nf(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Qi(t,o)>-1}else a.selected=t.has(o)}else if(Zi(Nf(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nf(e){return`_value`in e?e._value:e.value}var Pf=[`ctrl`,`shift`,`alt`,`meta`],Ff={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Pf.some(n=>e[`${n}Key`]&&!t.includes(n))},If=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ff[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Lf={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Rf=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ki(n.key);if(t.some(e=>e===r||Lf[e]===r))return e(n)}))},zf=M({patchProp:of},ud),Bf;function Vf(){return Bf||=Vl(zf)}var Hf=((...e)=>{Vf().render(...e)}),Uf=((...e)=>{let t=Vf().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Gf(e);if(!r)return;let i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Wf(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Wf(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Gf(e){return I(e)?document.querySelector(e):e}function Kf(e,t){return ia()?(aa(e,t),!0):!1}var qf=new WeakMap,Jf=(...e)=>{let t=e[0],n=Ru()?.proxy??ia();if(n==null&&!Es())throw Error(`injectLocal must be called in setup`);return n&&qf.has(n)&&t in qf.get(n)?qf.get(n)[t]:Ts(...e)},Yf=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Xf=Object.prototype.toString,Zf=e=>Xf.call(e)===`[object Object]`,Qf=()=>{},$f=ep();function ep(){var e,t;return Yf&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function tp(...e){if(e.length!==1)return Vo(...e);let t=e[0];return typeof t==`function`?yo(Lo(()=>({get:t,set:Qf}))):ko(t)}function np(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var rp=e=>e();function ip(e,t={}){let n,r,i=Qf,a=Qf,o=Ao(!1),s=e=>{clearTimeout(e),i(),i=Qf},c;return Object.assign(l=>{let u=W(e),d=W(t.maxWait);return n&&s(n),u<=0||d!==void 0&&d<=0?(r&&=(s(r),void 0),o.value=!1,Promise.resolve(l())):(o.value=!0,new Promise((e,f)=>{i=t.rejectOnCancel?f:e,a=e,c=l,d&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,o.value=!1,e(c())},d)),n=setTimeout(()=>{r&&s(r),r=void 0,o.value=!1,e(l())},u)}))},{cancel:()=>{n&&=(s(n),void 0),r&&=(s(r),void 0),o.value=!1,a=Qf},flush:()=>{if(o.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),o.value=!1;let e=a;i=Qf,a=Qf,e(c())}},isPending:bo(o)})}function ap(e=rp,t={}){let{initialState:n=`active`}=t,r=tp(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:bo(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function op(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function sp(e){return Array.isArray(e)?e:[e]}function cp(e){return e||Ru()}function lp(e,t=200,n={}){return np(ip(t,n),e)}function up(e,t,n={}){let{eventFilter:r=rp,...i}=n;return js(e,np(r,t),i)}function dp(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ap(r,{initialState:i});return{stop:up(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function fp(e,t={}){if(!U(e))return Ro(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=Lo(()=>({get(){return e.value[r]},set(n){if(W(t.replaceRef)??!0){if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}}else e.value[r]=n}}));return n}function pp(e,t=!0,n){cp(n)?Cc(e,n):t?e():ss(e)}function mp(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=Ao(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=W(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&Yf&&l(),(U(t)||typeof t==`function`)&&Kf(js(t,()=>{o.value&&Yf&&l()})),Kf(c),{isActive:bo(o),pause:c,resume:l}}function hp(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return up(e,t,{...a,eventFilter:ip(r,{maxWait:i})})}function gp(e,t,n){return js(e,t,{...n,immediate:!0})}function _p(e={}){let t=0,n=ko([]);function r(...r){let i=vo({key:t++,args:r,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(i),i.promise=new Promise((e,t)=>{i.resolve=t=>(i.isResolving=!0,e(t)),i.reject=t}).finally(()=>{i.promise=void 0;let e=n.value.indexOf(i);e!==-1&&n.value.splice(e,1)}),i.promise}function i(...t){return e.singleton&&n.value.length>0?n.value[0].promise:r(...t)}let a=oc((t,{slots:r})=>{let i=()=>n.value.map(e=>td(Y,{key:e.key},r.default?.call(r,e)));return e.transition?()=>td(_f,e.transition,i):i});return a.start=i,a}var vp=Yf?window:void 0;Yf&&window.document,Yf&&window.navigator,Yf&&window.location;function yp(e){let t=W(e);return t?.$el??t}function bp(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=ed(()=>{let t=sp(W(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return gp(()=>[n.value?.map(e=>yp(e))??[vp].filter(e=>e!=null),sp(W(n.value?e[1]:e[0])),sp(No(n.value?e[2]:e[1])),W(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Zf(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var xp=!1;function Sp(e,t,n={}){let{window:r=vp,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:Qf,cancel:Qf,trigger:Qf}:Qf;if($f&&!xp){xp=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,Qf,e)),r.document.documentElement.addEventListener(`click`,Qf,e)}let c=!0,l=e=>W(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=yp(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=W(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=W(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=yp(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[bp(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),bp(r,`pointerdown`,t=>{let n=yp(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&bp(r,`blur`,n=>{setTimeout(()=>{let i=yp(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),h=()=>m.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:h}function Cp(){let e=Ao(!1),t=Ru();return t&&Cc(()=>{e.value=!0},t),e}function wp(e){let t=Cp();return ed(()=>(t.value,!!e()))}function Tp(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=vp,once:a=!1}=t,o=Ao(!1),s=ed(()=>{let e=W(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),Kf(f),{isActive:bo(o),pause:f,resume:d}}var Ep=Symbol(`vueuse-ssr-width`);function Dp(){let e=Es()?Jf(Ep,null):null;return typeof e==`number`?e:void 0}function Op(e,t={}){let{window:n=vp,ssrWidth:r=Dp()}=t,i=wp(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=Ao(typeof r==`number`),o=Ao(),s=Ao(!1);return ks(()=>{if(a.value){a.value=!i.value;let t=W(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=op(n[1])),i&&a&&(a=r<=op(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(W(e)),s.value=o.value.matches)}),bp(o,`change`,e=>{s.value=e.matches},{passive:!0}),ed(()=>s.value)}var kp=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Ap=`__vueuse_ssr_handlers__`,jp=Mp();function Mp(){return Ap in kp||(kp[Ap]=kp[Ap]||{}),kp[Ap]}function Np(e,t){return jp[e]||t}function Pp(e){return Op(`(prefers-color-scheme: dark)`,e)}function Fp(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Ip={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Lp=`vueuse-storage`;function Rp(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=vp,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?Ao:ko)(typeof t==`function`?t():t),h=ed(()=>W(e));if(!n)try{n=Np(`getDefaultStorage`,()=>vp?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=W(t),_=Fp(g),v=r.serializer??Ip[_],{pause:y,resume:b}=dp(m,e=>C(e),{flush:i,deep:a,eventFilter:d});js(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?bp(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):bp(u,Lp,e=>{p&&!x||ee(e)})),p?pp(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Lp,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}return typeof t==`string`?v.read(t):t}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?ss(b):b()}}}}function ee(e){T(e.detail)}return m}var zp={speed:2,margin:30,direction:`both`};function Bp(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function Vp(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:c,initialValue:l,axis:u=`both`,draggingElement:d=vp,containerElement:f,handle:p=e,buttons:m=[0],restrictInView:h,autoScroll:g=!1}=t,_=ko(W(l)??{x:0,y:0}),v=ko(),y=e=>!n||n.includes(e.pointerType),b=e=>{W(r)&&e.preventDefault(),W(i)&&e.stopPropagation()},x=W(g),S=typeof x==`object`?{speed:W(x.speed)??zp.speed,margin:W(x.margin)??zp.margin,direction:x.direction??zp.direction}:zp,C=e=>typeof e==`number`?[e,e]:[e.x,e.y],w=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=C(S.margin),[d,f]=C(S.speed),p=0,m=0;(S.direction===`x`||S.direction===`both`)&&(n.x<l&&a>0?p=-d:n.x+t.width>r-l&&a<s-r&&(p=d)),(S.direction===`y`||S.direction===`both`)&&(n.y<u&&o>0?m=-f:n.y+t.height>i-u&&o<c-i&&(m=f)),(p||m)&&e.scrollBy({left:p,top:m,behavior:`auto`})},T=null,ee=()=>{let t=W(f);t&&!T&&(T=setInterval(()=>{let n=W(e).getBoundingClientRect(),{x:r,y:i}=_.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(w(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,_.value=a)},1e3/60))},E=()=>{T&&=(clearInterval(T),null)},te=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.x<i||e.x+r.width>o-i||e.y<a||e.y+r.height>s-a};W(g)&&js(_,()=>{if(W(t.disabled)||!v.value)return;let n=W(f);if(!n)return;let r=W(e).getBoundingClientRect(),{x:i,y:a}=_.value,o={x:i-n.scrollLeft,y:a-n.scrollTop};te(o,n,S.margin,r)?ee():E()});let ne=n=>{var r;if(!W(m).includes(n.button)||W(t.disabled)||!y(n)||W(a)&&n.target!==W(e))return;let i=W(f),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=W(e).getBoundingClientRect(),l={x:n.clientX-(i?s.left-o.left+(g?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(g?0:i.scrollTop):s.top)};c?.(l,n)!==!1&&(v.value=l,b(n))},re=n=>{if(W(t.disabled)||!y(n)||!v.value)return;let r=W(f);r instanceof HTMLElement&&Bp(r);let i=W(e).getBoundingClientRect(),{x:a,y:s}=_.value;if((u===`x`||u===`both`)&&(a=n.clientX-v.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(u===`y`||u===`both`)&&(s=n.clientY-v.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),W(g)&&r&&(T===null&&w(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(h||g)){if(u!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(u!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}_.value={x:a,y:s},o?.(_.value,n),b(n)},D=e=>{W(t.disabled)||!y(e)||v.value&&(v.value=void 0,g&&E(),s?.(_.value,e),b(e))};if(Yf){let e=()=>({capture:t.capture??!0,passive:!W(r)});bp(p,`pointerdown`,ne,e),bp(d,`pointermove`,re,e),bp(d,[`pointerup`,`pointercancel`],D,e)}return{...fp(_),position:_,isDragging:ed(()=>!!v.value),style:ed(()=>`
|
|
6
|
-
left: ${_.value.x}px;
|
|
7
|
-
top: ${_.value.y}px;
|
|
8
|
-
${g?`text-wrap: nowrap;`:``}
|
|
9
|
-
`)}}function Hp(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>Tp(e,{immediate:n}):n=>mp(n,t,e)}return Tp}function Up(e={}){let{controls:t=!1,scheduler:n=Hp(e)}=e,r=Ao(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function Wp(e,t,n={}){let{window:r=vp}=n;return Rp(e,t,r?.sessionStorage,n)}var Gp=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Kp={justNow:`just now`,past:e=>/\d/.test(e)?`${e} ago`:e,future:e=>/\d/.test(e)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function qp(e){return e.toISOString().slice(0,10)}function Jp(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>mp(e,t)}return e=>mp(e,3e4)}function Yp(e,t={}){let{controls:n=!1,scheduler:r=Jp(t)}=t,{now:i,...a}=Up({scheduler:r,controls:!0}),o=ed(()=>Xp(new Date(W(e)),t,W(i)));return n?{timeAgo:o,...a}:o}function Xp(e,t={},n=Date.now()){let{max:r,messages:i=Kp,fullDateFormatter:a=qp,units:o=Gp,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=+n-e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}var Zp=Rp(`devframes-color-scheme`,`auto`),Qp=Pp(),$p=ed(()=>Zp.value===`auto`?Qp.value:Zp.value===`dark`);function em(e){Zp.value=e}var tm=`Devframes`;function nm(e){let t=e.productName?.trim()||tm;return{productName:t,logo:e.logo,wordmark:e.wordmark,primaryColor:e.primaryColor,background:e.background,tagline:e.tagline,favicon:e.favicon,windowTitle:e.windowTitle?.trim()||t}}var rm=ko(nm({}));function im(){return rm}function am(e){return rm.value=nm(e),rm.value}function om(e=e=>e.logo){return ed(()=>lm(e(rm.value),$p.value))}function sm(e){return ed(()=>{let t=rm.value.background;if(!cm(t))return lm(t,$p.value);let n=t.standalone;return e===`iframe`&&(n=t.iframe??n),lm(n,$p.value)})}function cm(e){return typeof e==`object`&&!!e&&`standalone`in e}function lm(e,t){if(e)return typeof e==`string`?e:t?e.dark??e.light:e.light}function um(e,t){t&&e.style.setProperty(`--devframe-primary`,t)}function dm(e,t,n){let r=e.head.querySelector(`meta[name="${t}"]`);r||(r=e.createElement(`meta`),r.setAttribute(`name`,t),e.head.appendChild(r)),r.setAttribute(`content`,n)}function fm(e,t){let n=e.head.querySelector(`link[rel~="icon"]`);n||(n=e.createElement(`link`),n.setAttribute(`rel`,`icon`),e.head.appendChild(n)),n.setAttribute(`href`,t)}function pm(e,t){e.title=t.windowTitle,t.tagline&&dm(e,`description`,t.tagline),t.favicon&&fm(e,t.favicon)}function mm(){return{mode:`float`,width:80,height:80,top:0,left:10,position:`bottom`,inactiveTimeout:3e3}}function hm(){return{open:!1,selectedDockId:null,selectedDockRoute:null,recentDockId:null,groupLastChildIds:{}}}function gm(e,t){let n=se(),r=_o({entryMeta:e,get isActive(){return t.value?.id===e.id},domElements:{},events:Eo(n)});return js(()=>t.value?.id,t=>{t===e.id?n.emit(`entry:activated`):n.emit(`entry:deactivated`)},{immediate:!0}),js(()=>r.domElements.iframe,e=>{e&&n.emit(`dom:iframe:mounted`,e)},{immediate:!0}),js(()=>r.domElements.panel,e=>{e&&n.emit(`dom:panel:mounted`,e)},{immediate:!0}),r}function _m(e){let t=Ao(e.value());return e.on(`updated`,e=>{t.value=e}),t}function vm(e,t){return e.value()===t?new Promise(t=>{let n=e.on(`updated`,()=>{n(),t()})}):Promise.resolve()}var ym=new WeakMap;async function bm(e){if(ym.has(e))return ym.get(e);let t=[],n=await e.sharedState.get(`devframe:docks`,{initialValue:t}),r={entries:_m(n),initialSyncComplete:vm(n,t)};return ym.set(e,r),r}function xm(e,t,n=(e,t)=>CSS.supports(e,t)){if(t===void 0||!n(`background`,t)){e.style.removeProperty(`--devframes-viewer-background`);return}e.style.setProperty(`--devframes-viewer-background`,t)}var Sm=sm(window.self===window.top?`standalone`:`iframe`);ks(()=>{let e=document.documentElement;e.classList.toggle(`dark`,$p.value),e.classList.toggle(`light`,!$p.value),xm(e,Sm.value)});async function Cm(){let e=import.meta.url,t=await Jr({baseURL:[`./`,new URL(`./`,e).href],simpleAuth:!1}),n=am(t.connectionMeta.configs?.ui?.branding||{});pm(document,n);let r=Wp(`devframes-dock-session`,hm(),{mergeDefaults:!0}),{createDocksContext:i}=await Qr(async()=>{let{createDocksContext:e}=await import(`./context-DWKLPrQY.js`);return{createDocksContext:e}},__vite__mapDeps([0,1]),import.meta.url),a=await i(`standalone`,t,void 0,r);ei(a);let{DockStandalone:o}=await Qr(async()=>{let{DockStandalone:e}=await import(`./DockStandalone-BvQLDpVN.js`);return{DockStandalone:e}},__vite__mapDeps([2,1]),import.meta.url),s=new o({context:a});um(s,n.primaryColor),document.getElementById(`app`).appendChild(s)}Cm();export{Fc as $,$l as A,Eu as B,uf as C,se as Ct,Rf as D,g as Dt,Nd as E,_ as Et,ku as F,Dc as G,Nu as H,vu as I,ys as J,Tc as K,Ou as L,ed as M,wu as N,If as O,m as Ot,yu as P,Nc as Q,Q as R,Uf as S,Qr as St,kf as T,h as Tt,ss as U,td as V,Cc as W,Rc as X,vs as Y,zc as Z,bp as _,zi as _t,bm as a,xs as at,hp as b,oi as bt,um as c,Eo as ct,Zp as d,ko as dt,sc as et,$p as f,Ao as ft,Vp as g,Gi as gt,Sp as h,Wi as ht,_m as i,As as it,Ks as j,Y as k,im as l,aa as lt,_p as m,No as mt,hm as n,js as nt,vm as o,Ss as ot,em as p,Ro as pt,pu as q,gm as r,ks as rt,pm as s,bs as st,mm as t,lc as tt,om as u,_o as ut,Yp as v,ea as vt,Af as w,v as wt,_f as x,ti as xt,lp as y,ri as yt,oc as z};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DockStandalone-BvQLDpVN.js","./index-J9SjVeCp.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Ct as e,M as t,St as n,Tt as r,c as i,f as a,ft as o,i as s,l as c,nt as l,s as u,wt as d}from"./index-J9SjVeCp.js";var f=`devframe-remote-connection`,p=d.postMessage.remoteAssetsError,m=/^[a-z][a-z\d+.-]*:/i;function h(e){let t=e.trim();return!!t&&!t.startsWith(`/`)&&!t.startsWith(`./`)&&!t.startsWith(`../`)&&!m.test(t)}function g(e,t={}){if(!h(e))return e;let n=t.resolveClientModule?.(e);if(n)return n;if(!t.template)return e;let r=t.template.includes(`{specifier}`)?t.template.replaceAll(`{specifier}`,e):t.template+e;try{return new URL(r,t.metaBaseUrl).href}catch{return r}}function _(e,t){return h(e)?t===e?" — the specifier is a bare npm specifier and this host advertises no client-module resolution (`ConnectionMeta.configs.dock.clientModuleResolution`). Serve the script as a self-contained bundle by URL, pass `resolveClientModule` to this client host, or run under a host that resolves bare specifiers (e.g. Vite: `/@id/{specifier}`).":` — the host resolved the bare specifier "${e}" to this URL but could not serve the module. Check the package is installed and resolvable from the host project's root (and built, if its exports point at build output).`:``}function ee(e){function t(e){let t=e.split(`&`),n=t.filter(e=>e.split(`=`)[0]!==f);return[n.join(`&`),n.length!==t.length]}let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?void 0:e.slice(n+1),a=!1;if(i!==void 0){let e=i.indexOf(`?`);if(e===-1){let[e,n]=t(i);i=e,a||=n}else{let n=i.slice(0,e),[r,o]=t(i.slice(e+1));o&&(i=r?`${n}?${r}`:n,a=!0)}}let o=r.indexOf(`?`);if(o!==-1){let e=r.slice(0,o),[n,i]=t(r.slice(o+1));i&&(r=n?`${e}?${n}`:e,a=!0)}return a?i?`${r}#${i}`:r:e}var te=[`===`,`!==`,`==`,`!=`,`<=`,`>=`,`&&`,`||`,`<`,`>`,`+`,`-`,`*`,`/`,`%`,`!`],ne=/[a-z_$]/i,re=/[\w$.:]/,v=/\d/,ie=/\s/;function ae(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(ie.test(r)){n++;continue}if(r===`(`){t.push({type:`lparen`}),n++;continue}if(r===`)`){t.push({type:`rparen`}),n++;continue}let i=!1;for(let r of te)if(e.startsWith(r,n)){t.push({type:`op`,value:r}),n+=r.length,i=!0;break}if(!i){if(v.test(r)){let r=n;for(;r<e.length&&v.test(e[r]);)r++;if(e[r]===`.`&&r+1<e.length&&v.test(e[r+1]))for(r++;r<e.length&&v.test(e[r]);)r++;t.push({type:`number`,value:Number(e.slice(n,r))}),n=r;continue}if(r===`"`||r===`'`){let i=r,a=n+1,o=``;for(;a<e.length&&e[a]!==i;)if(e[a]===`\\`&&a+1<e.length){let t=e[a+1];o+=t===`n`?`
|
|
3
|
-
`:t===`t`?` `:t,a+=2}else o+=e[a],a++;if(a>=e.length)throw Error(`Unterminated string literal at position ${n}`);a++,t.push({type:`string`,value:o}),n=a;continue}if(ne.test(r)){let r=n;for(;r<e.length&&re.test(e[r]);)r++;let i=e.slice(n,r);i===`true`?t.push({type:`bool`,value:!0}):i===`false`?t.push({type:`bool`,value:!1}):t.push({type:`ident`,value:i}),n=r;continue}throw Error(`Unexpected character "${r}" at position ${n}`)}}return t.push({type:`eof`}),t}function oe(e){let t=ae(e),n=0,r=()=>t[n],i=()=>t[n++],a=e=>{let t=r();return t.type===`op`&&t.value===e},o=()=>{let e=i();if(e.type!==`op`)throw Error(`internal: expected operator token, got ${y(e)}`);return e.value};function s(){let e=c();for(;a(`||`);)i(),e={type:`binary`,op:`||`,left:e,right:c()};return e}function c(){let e=l();for(;a(`&&`);)i(),e={type:`binary`,op:`&&`,left:e,right:l()};return e}function l(){let e=u();for(;a(`===`)||a(`!==`)||a(`==`)||a(`!=`);){let t=o(),n=t===`==`||t===`!=`?h():u();e={type:`binary`,op:t,left:e,right:n}}return e}function u(){let e=d();for(;a(`<=`)||a(`>=`)||a(`<`)||a(`>`);)e={type:`binary`,op:o(),left:e,right:d()};return e}function d(){let e=f();for(;a(`+`)||a(`-`);)e={type:`binary`,op:o(),left:e,right:f()};return e}function f(){let e=p();for(;a(`*`)||a(`/`)||a(`%`);)e={type:`binary`,op:o(),left:e,right:p()};return e}function p(){return a(`!`)||a(`-`)||a(`+`)?{type:`unary`,op:o(),operand:p()}:m()}function m(){let e=r();if(e.type===`number`||e.type===`string`||e.type===`bool`)return i(),{type:`literal`,value:e.value};if(e.type===`ident`)return i(),{type:`key`,key:e.value};if(e.type===`lparen`){i();let e=s(),t=r();if(t.type!==`rparen`)throw Error(`Expected ")" but got ${y(t)}`);return i(),e}throw Error(`Unexpected token: ${y(e)}`)}function h(){let e=r();if(e.type===`string`)return i(),{type:`literal`,value:e.value};if(e.type===`number`||e.type===`bool`)return i(),{type:`literal`,value:String(e.value)};if(e.type===`ident`)return i(),{type:`literal`,value:e.value};throw Error(`Expected value literal or identifier on right side of equality, got ${y(e)}`)}let g=s(),_=r();if(_.type!==`eof`)throw Error(`Unexpected token: ${y(_)}`);return g}function y(e){switch(e.type){case`eof`:return`end of expression`;case`lparen`:return`"("`;case`rparen`:return`")"`;case`op`:case`ident`:case`string`:return`"${e.value}"`;case`number`:case`bool`:return`"${String(e.value)}"`}}function se(e,t,n={}){let{strict:r=!1}=n;return!!b(e,t,r)}function b(e,t,n){switch(e.type){case`literal`:return e.value;case`key`:return de(e.key,t,n);case`unary`:return ce(e.op,b(e.operand,t,n));case`binary`:return le(e,t,n)}}function ce(e,t){switch(e){case`!`:return!t;case`-`:return-t;case`+`:return+t}}function le(e,t,n){let{op:r}=e;if(r===`&&`)return b(e.left,t,n)&&b(e.right,t,n);if(r===`||`)return b(e.left,t,n)||b(e.right,t,n);let i=b(e.left,t,n),a=b(e.right,t,n);switch(r){case`==`:return String(i)===String(a);case`!=`:return String(i)!==String(a);case`===`:return i===a;case`!==`:return i!==a;case`<`:return i<a;case`>`:return i>a;case`<=`:return i<=a;case`>=`:return i>=a;case`+`:return i+a;case`-`:return i-a;case`*`:return i*a;case`/`:return i/a;case`%`:return i%a}}function ue(e,t,n){return se(oe(e),t,n)}function de(e,t,n){let{found:r,value:i}=fe(e,t);if(!r&&n)throw Error(`Unknown context key: "${e}"`);return i}function fe(e,t){if(e in t)return{found:!0,value:t[e]};let n=e.includes(`.`)?`.`:e.includes(`:`)?`:`:null;if(n){let r=e.split(n),i=t;for(let e of r){if(typeof i!=`object`||!i)return{found:!1,value:void 0};let t=i;if(!(e in t))return{found:!1,value:void 0};i=t[e]}return{found:!0,value:i}}return{found:!1,value:void 0}}function x(e,t,n){return ue(e,t,n)}var pe=`devframes:hub-ui:hide`,me=`devframes_plugin_terminals`,he=`devframes_plugin_messages`,ge=Object.freeze({type:`~builtin`,category:`~builtin`,id:`~client-auth-notice`,title:`Unauthorized`,icon:`ph:warning-duotone`}),S=Object.freeze({type:`~builtin`,category:`~builtin`,id:`~settings`,title:`Settings`,icon:`ph:gear-duotone`}),_e=Object.freeze([ge,S]),C=Object.freeze({showIframeAddressBar:!1,closeOnOutsideClick:!1,autoCollapseEdgeToolbar:!0,showDevframeInspector:!1});function ve(e,t){return e?.[t]??C[t]}var w=new WeakMap;function ye(e){let n=w.get(e);if(!n){let r=s(e.docks.settings);n=t(()=>({...C,...r.value})),w.set(e,n)}return n}var T=`~pinned`,be=-1e5;function E(e,t){return e===T?be:t?.[e]??r[e]??0}function xe(e){return typeof e==`string`?e:e?.light??e?.dark}var Se={default:`Default`,app:`App`,framework:`Framework`,web:`Web`,advanced:`Advanced`,"~builtin":`Built-in`,[T]:`Pinned`};function Ce(e){return e!==`~builtin`&&e!==T}function we(e){return Se[e]??e}function Te(e){let t=new Set;for(let n of e)n.type===`group`&&t.add(n.id);return t}function Ee(e,t){if(!t||t.type===`group`||!t.groupId)return;let n=e.find(e=>e.id===t.groupId);return n?.type===`group`?n:void 0}function D(e,t,n,r){let i=e.filter(e=>e.type!==`group`&&e.groupId===t);if(!n)return i.length?[[`default`,i]]:[];let a=e.find(e=>e.type===`group`&&e.id===t);return k(i,n,{...r,ignoreCategoryHidden:!0,categoryOrderOverride:a?.categoryOrder})}function De(e,t,n,r){return D(e,t,n,r).flatMap(([,e])=>e)}function O(e,t,n,r){if(!n)return;let i=e.find(e=>e.type!==`group`&&e.groupId===t&&e.id===n);if(i){if(i.when){if(r){if(!x(i.when,r))return}else if(i.when===`false`)return}return i}}function Oe(e,t,n,r){return O(e,t.id,n,r)??O(e,t.id,t.defaultChildId,r)}function k(e,t,n){let{docksHidden:r,docksCategoriesHidden:i,docksCustomOrder:a,docksPinned:o}=t,{includeHidden:s=!1,whenContext:c,collapseGroups:l=!1,ignoreCategoryHidden:u=!1,categoryOrderOverride:d}=n??{},f=new Map;for(let t of e)t.type===`group`&&f.set(t.id,t.category??`default`);let p=new Map;for(let n of e){let e=n.type!==`group`&&n.groupId?f.get(n.groupId):void 0;if(l&&e!==void 0||n.when&&c&&!x(n.when,c)&&!s||n.when&&!c&&n.when===`false`&&!s||n.visibility&&c&&!x(n.visibility,c)&&!s||n.visibility&&!c&&n.visibility===`false`&&!s||!s&&n.id===`devframes_plugin_inspect`&&!ve(t,`showDevframeInspector`)||!s&&r.includes(n.id))continue;let a=e??n.category??`default`,d=o.includes(n.id)&&e===void 0?T:a;!s&&!u&&i.includes(d)||(p.has(d)||p.set(d,[]),p.get(d).push(n))}let m=Array.from(p.entries()).sort(([e],[t])=>{let n=E(e,d),r=E(t,d);return r===n?t.localeCompare(e):n-r});return m.forEach(([e,t])=>{t.sort((e,t)=>{let n=a[e.id]??0,r=a[t.id]??0;if(n!==r)return n-r;let i=e.defaultOrder??0,o=t.defaultOrder??0;return o===i?t.title.localeCompare(e.title):i-o})}),m}function ke(e){let{availableHeight:t,reservedHeight:n,itemHeight:r,dividerHeight:i,moreButtonHeight:a,dividerCount:o,totalItems:s}=e;if(s<=0||r<=0)return 0;let c=t-n-Math.max(0,o)*i;if(Math.floor(c/r)>=s)return s;let l=Math.floor((c-a)/r);return Math.max(0,l)}function A(e,t){let n=[],r=[],i=t;for(let[t,a]of e)i<=0?r.push([t,a]):a.length>i?(n.push([t,a.slice(0,i)]),r.push([t,a.slice(i)]),i=0):(i-=a.length,n.push([t,a]));return{visible:n,overflow:r}}function Ae(e,t){return e.some(([,e])=>e.some(e=>e.id===t))}function je(e,t,n=null){let r=A(e,t);if(r.overflow.reduce((e,[,t])=>e+t.length,0)===1)return{visible:[...r.visible,...r.overflow],overflow:[],recent:null};if(!n||r.overflow.length===0||Ae(r.visible,n.id))return{...r,recent:null};let i=A(e,Math.max(t-1,0)),a=i.overflow.map(([e,t])=>[e,t.filter(e=>e.id!==n.id)]).filter(([,e])=>e.length>0);return{visible:i.visible,overflow:a,recent:n}}var j=o(null),M=o(null),N=o(null),P=o(null);function Me(e){j.value=e}function Ne(){return j}function F(e){M.value=e}function Pe(){return M}function Fe(e){N.value=e}function Ie(){return N}var I=o(null);function Le(e){I.value=e}function Re(){return I}function L(e){P.value=e}function ze(){return P}var R=o(null);function Be(e){R.value=e}function Ve(){return R}var z=20,B=100,He=320,Ue=240,V=`__DEVFRAMES_TRIGGER_DOCK_ACTION__`,H=`__DEVFRAME_CONNECTION_META__`,U=o(null),W=o(!1),G=e(),K,q,J,Y,We=async()=>await n(()=>import(`./DockStandalone-BvQLDpVN.js`).then(e=>e.DockStandalone),__vite__mapDeps([0,1]),import.meta.url);G.on(`popup:open-requested`,e=>{nt(e)});function X(){if(!(typeof window>`u`))return window.documentPictureInPicture}function Ge(){K?.(),K=void 0,q?.(),q=void 0}function Ke(e){return l(a,t=>{e.document.documentElement?.style.setProperty(`color-scheme`,t?`dark`:`light`)},{immediate:!0})}function qe(){J?.remove(),J=void 0}function Z(){Ge(),qe(),U.value=null,W.value=!1;let e=Y;Y=void 0,e?.docks.switchEntry(null)}function Q(e,t,n){return Math.min(Math.max(e,t),n)}function Je(e,t){window.innerWidth<=0||window.innerHeight<=0||(e.panel.store.width=Q(Math.round(t.innerWidth/window.innerWidth*100),z,B),e.panel.store.height=Q(Math.round(t.innerHeight/window.innerHeight*100),z,B))}async function Ye(e,t){let n=await We(),r=t.document.createElement(`style`);r.textContent=[`html, body {`,` margin: 0;`,` padding: 0;`,` width: 100%;`,` height: 100%;`,` overflow: hidden;`,` background: transparent;`,`}`,`#devframes-popup-root {`,` width: 100vw;`,` height: 100vh;`,`}`,`#devframes-popup-root > devframes-dock-standalone {`,` display: block;`,` width: 100%;`,` height: 100%;`,`}`].join(`
|
|
4
|
-
`),u(t.document,c().value),t.document.head?.appendChild(r),t.document.body.textContent=``,t[H]=globalThis[H]??e.rpc.connectionMeta;let a=t.document.createElement(`div`);a.id=`devframes-popup-root`,t.document.body.appendChild(a);let o=new n({context:e});i(o,c().value.primaryColor),J=o,a.appendChild(o)}function Xe(){return!!X()?.requestWindow}function Ze(e,t){typeof window>`u`||e!==`standalone`&&(window[V]=t)}async function Qe(e,t){if(!(typeof window>`u`)&&e===`standalone`)try{let e=window.opener;if(!e||e.closed)return;let n=e[V];return typeof n==`function`?await n(t):void 0}catch{return}}function $e(){return U}function et(){return W}function tt(e){G.emit(`popup:open-requested`,e)}async function nt(e){F(null);let t=U.value;if(t?.closed)Z();else if(t)return t.focus(),t;let n=X();if(!n?.requestWindow)return null;let r;try{let t=r=await n.requestWindow({width:Math.max(He,Math.round(window.innerWidth*e.panel.store.width/100)),height:Math.max(Ue,Math.round(window.innerHeight*e.panel.store.height/100))});await Ye(e,t),q=Ke(t);let i=()=>Je(e,t),a=()=>{U.value===t&&Z()};return t.addEventListener(`resize`,i),t.addEventListener(`pagehide`,a),K=()=>{t.removeEventListener(`resize`,i),t.removeEventListener(`pagehide`,a)},Y=e,U.value=t,W.value=!0,t}catch{return r&&!r.closed&&r.close(),Z(),null}}var $=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform??``);function rt(e){return e.split(`+`).map(e=>e===`Mod`?$?`⌘`:`Ctrl`:e===`Shift`?$?`⇧`:`Shift`:e===`Alt`?$?`⌥`:`Alt`:e)}function it(e){let t=[];($?e.metaKey:e.ctrlKey)&&t.push(`Mod`),($?e.ctrlKey:e.metaKey)&&t.push($?`Ctrl`:`Meta`),e.altKey&&t.push(`Alt`),e.shiftKey&&t.push(`Shift`);let n=e.key;return n.length===1&&(n=n.toUpperCase()),[`Control`,`Meta`,`Alt`,`Shift`].includes(n)||t.push(n),t.join(`+`)}function at(e,t){let n=e??[],r=t??[];return n.length===r.length&&n.every((e,t)=>e.key===r[t]?.key)}function ot(e,t){return e!==void 0&&!at(e,t)}function st(e,t){let n=e=>!e.when||x(e.when,t),r=[];for(let t of e){if(!n(t))continue;if(!t.children){r.push(t);continue}let e=t.children.filter(n);r.push({...t,children:e})}return r}function ct(e,t){let n=[];for(let r of e.value){for(let e of t(r.id))n.push({id:r.id,keybinding:e});if(r.children)for(let e of r.children)for(let r of t(e.id))n.push({id:e.id,keybinding:r})}return n}var lt={"Mod+T":`Open new tab`,"Mod+W":`Close tab`,"Mod+N":`Open new window`,"Mod+L":`Focus address bar`,"Mod+D":`Bookmark page`,"Mod+Q":`Quit browser`,"Mod+Shift+T":`Reopen closed tab`,"Mod+Shift+N":`Open incognito window`,"Mod+Shift+W":`Close window`,"Mod+Shift+Q":`Quit browser (Chrome)`,"Alt+F4":`Close window (Windows)`,"Mod+R":`Reload page`,"Mod+Shift+R":`Hard reload page`,"Mod+F":`Find in page`};export{Ee as A,S as B,Ie as C,k as D,ke as E,xe as F,_ as G,he as H,O as I,p as J,g as K,Oe as L,D as M,Te as N,je as O,Ce as P,ye as R,Pe as S,Ne as T,me as U,pe as V,x as W,Fe as _,ot as a,ze as b,Xe as c,Qe as d,$e as f,F as g,Le as h,rt as i,De as j,we as k,Ze as l,L as m,ct as n,$ as o,et as p,ee as q,st as r,it as s,lt as t,tt as u,Be as v,Ve as w,Re as x,Me as y,_e as z};
|