@nuxt/devtools-assets 4.0.0-alpha.18 → 4.0.0-alpha.19
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/200.html +1 -1
- package/dist/404.html +1 -1
- package/dist/_nuxt/__blank-o0qgpsoy.js +1 -0
- package/dist/_nuxt/analyze-build-ibf0aq7p.js +1 -0
- package/dist/_nuxt/{assets-cld08ro2.js → assets-lvhp2tl4.js} +2 -2
- package/dist/_nuxt/builds/latest.json +1 -1
- package/dist/_nuxt/builds/meta/9d313d7e-fda4-4ab8-8bb4-617143354912.json +1 -0
- package/dist/_nuxt/{client-cyidxu09.js → client-ntmst1ol.js} +1 -1
- package/dist/_nuxt/{code-diff-pfug60ft.js → code-diff-oywfc2j3.js} +1 -1
- package/dist/_nuxt/code-snippets-cs7lt7fj.js +1 -0
- package/dist/_nuxt/components-cdq9mhao.js +1 -0
- package/dist/_nuxt/composable-item-ofn9wze5.js +1 -0
- package/dist/_nuxt/custom-_name_-dw48cat2.js +1 -0
- package/dist/_nuxt/{data-schema-button-f6b405qw.js → data-schema-button-j853zvqf.js} +1 -1
- package/dist/_nuxt/data-schema-drawer-k1rrym13.js +2 -0
- package/dist/_nuxt/debug-cvhej1nv.js +1 -0
- package/dist/_nuxt/{default-kwc4wduv.js → default-ldzlf2fx.js} +1 -1
- package/dist/_nuxt/{duration-display-cx0hums1.js → duration-display-onn7tvhf.js} +1 -1
- package/dist/_nuxt/{entry.css-ny90blho.css → entry.css-iexn7svi.css} +1 -1
- package/dist/_nuxt/{error-404-jbz5s8g8.js → error-404-bp7wn3rq.js} +1 -1
- package/dist/_nuxt/error-404.css-ab96vr84.css +1 -0
- package/dist/_nuxt/{error-500-cx8lxiju.js → error-500-90vgunip.js} +1 -1
- package/dist/_nuxt/error-500.css-op0okvrt.css +1 -0
- package/dist/_nuxt/{error-hs90qh5b.js → error-fqjrqxb4.js} +2 -2
- package/dist/_nuxt/filepath-item-dsr4cg2r.js +1 -0
- package/dist/_nuxt/full-buzezj6x.js +1 -0
- package/dist/_nuxt/help-fab-g16ukpbx.js +1 -0
- package/dist/_nuxt/hooks-lceee56s.js +1 -0
- package/dist/_nuxt/imports-brunzsdn.js +1 -0
- package/dist/_nuxt/launch-page-jmtt4fiw.js +1 -0
- package/dist/_nuxt/modules-k0ea7dmp.js +1 -0
- package/dist/_nuxt/nbadge-dur5ohri.js +1 -0
- package/dist/_nuxt/ncard-ofixqan4.js +1 -0
- package/dist/_nuxt/ncheckbox-d00e3mcq.js +1 -0
- package/dist/_nuxt/ncode-block-c9trhhkv.js +2 -0
- package/dist/_nuxt/{ndrawer-hxy5nweo.js → ndrawer-cxa5gshi.js} +1 -1
- package/dist/_nuxt/ndropdown-m98xxqbx.js +1 -0
- package/dist/_nuxt/nicon-od7xtdt5.js +6 -0
- package/dist/_nuxt/nicon-title-o4hvncyk.js +1 -0
- package/dist/_nuxt/nlink-n0bo8wj3.js +1 -0
- package/dist/_nuxt/nmarkdown-euf47gi7.js +1 -0
- package/dist/_nuxt/nnavbar-e16oqtyv.js +1 -0
- package/dist/_nuxt/nnmzyyaj.js +4 -0
- package/dist/_nuxt/none-llhka8j6.js +1 -0
- package/dist/_nuxt/npanel-grids-jkuvj3le.js +1 -0
- package/dist/_nuxt/nsection-block-j346m4b1.js +1 -0
- package/dist/_nuxt/nselect-bx1tmfjb.js +1 -0
- package/dist/_nuxt/nselect-tabs-c0uf5n76.js +1 -0
- package/dist/_nuxt/nsplit-pane-ithdysf0.js +1 -0
- package/dist/_nuxt/{ntip-oo98nqyy.js → ntip-lobqdt2k.js} +1 -1
- package/dist/_nuxt/{nuxt-link-d782yzf7.js → nuxt-link-myyy86j7.js} +1 -1
- package/dist/_nuxt/{nuxt-ekhuaqhk.js → nuxt-m20luc7t.js} +1 -1
- package/dist/_nuxt/open-graph-hobs67br.js +3 -0
- package/dist/_nuxt/overview-fremf0e0.js +1 -0
- package/dist/_nuxt/pages-gjpnxbzh.js +1 -0
- package/dist/_nuxt/pages-omp6bqy6.js +1 -0
- package/dist/_nuxt/payload-dfk1yjdq.js +1 -0
- package/dist/_nuxt/plugins-jkccvmy6.js +1 -0
- package/dist/_nuxt/ready-mb7zpfhp.js +2 -0
- package/dist/_nuxt/{runtime-configs-j8ng620p.js → runtime-configs-jkub0908.js} +1 -1
- package/dist/_nuxt/server-route-inputs-044pjx17.js +1 -0
- package/dist/_nuxt/server-routes-ldi0q4mj.js +7 -0
- package/dist/_nuxt/server-tasks-oq9qja7i.js +1 -0
- package/dist/_nuxt/settings-mhffyslr.js +1 -0
- package/dist/_nuxt/stacktrace-list-f3umh95e.js +1 -0
- package/dist/_nuxt/{state-components-f0u4jm29.js → state-components-ehjcg3h7.js} +1 -1
- package/dist/_nuxt/{state-editor-eohzeblc.js → state-editor-kcjybdih.js} +1 -1
- package/dist/_nuxt/state-modules-a0b4e8f4.js +1 -0
- package/dist/_nuxt/state-tabs-c5d4lnrx.js +1 -0
- package/dist/_nuxt/storage-h04tp2gp.js +1 -0
- package/dist/_nuxt/timeline-ko5r86ig.js +31 -0
- package/dist/_nuxt/{unhead.-h-zvkou0-b7ygyvjk.js → unhead.-h-zvkou0-i5poolbq.js} +1 -1
- package/dist/_nuxt/utils-kduvt6jd.js +1 -0
- package/dist/_nuxt/vendor/{json-editor-vue-gdztbg5h.js → json-editor-vue-mnaqievy.js} +95 -95
- package/dist/_nuxt/{virtual-files-gj441pwv.js → virtual-files-d58mnyj8.js} +1 -1
- package/dist/_nuxt/{virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-bkuxbmrx.js → virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-omy0le52.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/manifest.json +480 -480
- package/package.json +1 -1
- package/dist/_nuxt/__blank-duvhi4s0.js +0 -1
- package/dist/_nuxt/analyze-build-dxk7tjiy.js +0 -1
- package/dist/_nuxt/builds/meta/86942b7f-6386-434e-a301-a20a57558faf.json +0 -1
- package/dist/_nuxt/code-snippets-etap53uo.js +0 -1
- package/dist/_nuxt/components-bruexj4a.js +0 -1
- package/dist/_nuxt/composable-item-exu2bqh0.js +0 -1
- package/dist/_nuxt/custom-_name_-fx9q0yyk.js +0 -1
- package/dist/_nuxt/data-schema-drawer-dxgx2sok.js +0 -2
- package/dist/_nuxt/debug-kza8ei0b.js +0 -1
- package/dist/_nuxt/error-404.css-ejpwqziw.css +0 -1
- package/dist/_nuxt/error-500.css-jfxw36zl.css +0 -1
- package/dist/_nuxt/filepath-item-jfkmuag3.js +0 -1
- package/dist/_nuxt/full-pcoyx8ep.js +0 -1
- package/dist/_nuxt/help-fab-husn5zkx.js +0 -1
- package/dist/_nuxt/hooks-k0xbsxx4.js +0 -1
- package/dist/_nuxt/imports-f5rpxqxi.js +0 -1
- package/dist/_nuxt/launch-page-krdr9p9s.js +0 -1
- package/dist/_nuxt/ld8feoqj.js +0 -4
- package/dist/_nuxt/modules-g6lf7tbt.js +0 -1
- package/dist/_nuxt/nbadge-c0z39lwn.js +0 -1
- package/dist/_nuxt/ncard-nledjs9m.js +0 -1
- package/dist/_nuxt/ncheckbox-f45numwj.js +0 -1
- package/dist/_nuxt/ncode-block-lo7bvbmn.js +0 -2
- package/dist/_nuxt/ndropdown-hjlja5vm.js +0 -1
- package/dist/_nuxt/nicon-ed7stj2f.js +0 -6
- package/dist/_nuxt/nicon-title-bc8690za.js +0 -1
- package/dist/_nuxt/nlink-o04f6a2k.js +0 -1
- package/dist/_nuxt/nmarkdown-ibxzh9l6.js +0 -1
- package/dist/_nuxt/nnavbar-m0eev8zc.js +0 -1
- package/dist/_nuxt/none-gtecxc1k.js +0 -1
- package/dist/_nuxt/npanel-grids-d696wmf0.js +0 -1
- package/dist/_nuxt/nsection-block-giwyhvyv.js +0 -1
- package/dist/_nuxt/nselect-flx4akj0.js +0 -1
- package/dist/_nuxt/nselect-tabs-fbhx95rz.js +0 -1
- package/dist/_nuxt/nsplit-pane-wqr6p2la.js +0 -1
- package/dist/_nuxt/open-graph-navpqc2c.js +0 -3
- package/dist/_nuxt/overview-kv0fmfnk.js +0 -1
- package/dist/_nuxt/pages-kew0035o.js +0 -1
- package/dist/_nuxt/pages-mw4ap9gs.js +0 -1
- package/dist/_nuxt/payload-hjp0verv.js +0 -1
- package/dist/_nuxt/plugins-r4yackt3.js +0 -1
- package/dist/_nuxt/ready-nojqt2hc.js +0 -2
- package/dist/_nuxt/server-route-inputs-nejfwmwu.js +0 -1
- package/dist/_nuxt/server-routes-fo5k6yv1.js +0 -7
- package/dist/_nuxt/server-tasks-nchgmtl9.js +0 -1
- package/dist/_nuxt/settings-c4cui6u6.js +0 -1
- package/dist/_nuxt/stacktrace-list-i7wlo6xl.js +0 -1
- package/dist/_nuxt/state-modules-h1enh4jx.js +0 -1
- package/dist/_nuxt/state-tabs-f1nalpue.js +0 -1
- package/dist/_nuxt/storage-l7nk970m.js +0 -1
- package/dist/_nuxt/timeline-ia9tekca.js +0 -31
- package/dist/_nuxt/utils-mae882d9.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-exit-j0g0sjtn.js","./rolldown-runtime-f96lzs6p.js","./vendor/shiki-ebpttx2o.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e,g as t,i as n,v as r,y as i}from"./nuxt-m20luc7t.js";import{C as a,Ct as o,D as s,Et as c,Gt as l,H as u,N as d,O as f,St as p,_t as m,a as h,bt as g,ct as _,d as v,ft as y,gt as b,h as x,ht as S,it as ee,k as C,mt as w,n as T,rt as E,ut as te,vt as ne,w as re,wt as D,xt as ie,yt as ae,z as oe}from"./vendor/json-editor-vue-mnaqievy.js";import{ct as se,lt as ce,yt as le}from"./ready-mb7zpfhp.js";import{h as ue,m as de,p as O}from"./vendor/shiki-ebpttx2o.js";import{t as fe}from"./vendor/unocss-dy47a456.js";function pe(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 me(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 he={blue:me(34,39),cyan:me(36,39),gray:me(90,39),green:me(32,39),red:me(31,39),yellow:me(33,39),bold:me(1,22),dim:me(2,22),reset:me(0,0),underline:me(4,24)},k={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`}},ge=pe(he);function _e(e,{method:t=`warn`}={}){console[t](ge(e))}function ve(e){return r({...e,reporters:[_e,...e.reporters??[]]})}function ye(e){return typeof e==`string`?`'${e}'`:new xe().serialize(e)}var A=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,be=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[A.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function j(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&&be[n]?be[n]:n+128,s=a<128&&be[a]?be[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 xe=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?j(e,t):n===`number`&&r===`number`?e-t:j(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(j),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})(),Se=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Ce=[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],we=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,M=[],Te=class{_data=new Ee;_hash=new Ee([...Se]);_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)M[n]=e[t+n]|0;else{let e=M[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=M[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;M[n]=t+M[n-7]+i+M[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+Ce[n]+M[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=Ee.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 Ee(t,i)}},Ee=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(we.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 De(e){return new Te().finalize(e).toBase64()}function Oe(e){return De(ye(e))}function ke(e){return Oe(e)}function Ae(){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 je=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Me(e=21){let t=``,n=e;for(;n--;)t+=je[Math.random()*64|0];return t}var Ne=Symbol.for(`immer-nothing`),Pe=Symbol.for(`immer-draftable`),N=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 P(e,...t){{let n=Fe[e],r=tt(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var F=Object,Ie=F.getPrototypeOf,Le=`constructor`,Re=`prototype`,ze=`configurable`,Be=`enumerable`,Ve=`writable`,He=`value`,Ue=e=>!!e&&!!e[N];function I(e){return e?Ke(e)||Ze(e)||!!e[Pe]||!!e[Le]?.[Pe]||Qe(e)||$e(e):!1}var We=F[Re][Le].toString(),Ge=new WeakMap;function Ke(e){if(!e||!et(e))return!1;let t=Ie(e);if(t===null||t===F[Re])return!0;let n=F.hasOwnProperty.call(t,Le)&&t[Le];if(n===Object)return!0;if(!tt(n))return!1;let r=Ge.get(n);return r===void 0&&(r=Function.toString.call(n),Ge.set(n,r)),r===We}function qe(e,t,n=!0){Je(e)===0?(n?Reflect.ownKeys(e):F.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Je(e){let t=e[N];return t?t.type_:Ze(e)?1:Qe(e)?2:$e(e)?3:0}var L=(e,t,n=Je(e))=>n===2?e.has(t):F[Re].hasOwnProperty.call(e,t),R=(e,t,n=Je(e))=>n===2?e.get(t):e[t],Ye=(e,t,n,r=Je(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Xe(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ze=Array.isArray,Qe=e=>e instanceof Map,$e=e=>e instanceof Set,et=e=>typeof e==`object`,tt=e=>typeof e==`function`,nt=e=>typeof e==`boolean`;function rt(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var it=e=>et(e)?e?.[N]:null,z=e=>e.copy_||e.base_,at=e=>e.modified_?e.copy_:e.base_;function ot(e,t){if(Qe(e))return new Map(e);if($e(e))return new Set(e);if(Ze(e))return Array[Re].slice.call(e);let n=Ke(e);if(t===!0||t===`class_only`&&!n){let t=F.getOwnPropertyDescriptors(e);delete t[N];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[ze]=!0),(a.get||a.set)&&(t[i]={[ze]:!0,[Ve]:!0,[Be]:a[Be],[He]:e[i]})}return F.create(Ie(e),t)}{let t=Ie(e);if(t!==null&&n)return{...e};let r=F.create(t);return F.assign(r,e)}}function st(e,t=!1){return ut(e)||Ue(e)||!I(e)?e:(Je(e)>1&&F.defineProperties(e,{set:lt,add:lt,clear:lt,delete:lt}),F.freeze(e),t&&qe(e,(e,t)=>{st(t,!0)},!1),e)}function ct(){P(2)}var lt={[He]:ct};function ut(e){return e===null||!et(e)||F.isFrozen(e)}var dt=`MapSet`,ft=`Patches`,pt=`ArrayMethods`,mt={};function B(e){let t=mt[e];return t||P(0,e),t}var ht=e=>!!mt[e];function gt(e,t){mt[e]||(mt[e]=t)}var _t,vt=()=>_t,yt=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ht(dt)?B(dt):void 0,arrayMethodsPlugin_:ht(pt)?B(pt):void 0});function bt(e,t){t&&(e.patchPlugin_=B(ft),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xt(e){St(e),e.drafts_.forEach(wt),e.drafts_=null}function St(e){e===_t&&(_t=e.parent_)}var Ct=e=>_t=yt(_t,e);function wt(e){let t=e[N];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tt(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[N].modified_&&(xt(t),P(4)),I(e)&&(e=Et(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[N].base_,e,t)}else e=Et(t,n);return Dt(t,e,!0),xt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ne?void 0:e}function Et(e,t){if(ut(t))return t;let n=t[N];if(!n)return Pt(t,e.handledSet_,e);if(!V(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);Mt(n,e)}return n.copy_}function Dt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&st(t,n)}function Ot(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var V=(e,t)=>e.scope_===t,kt=[];function At(e,t,n,r){let i=z(e),a=e.type_;if(r!==void 0&&R(i,r,a)===t){Ye(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;qe(i,(e,n)=>{if(Ue(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??kt;for(let e of o)Ye(i,e,n,a)}function jt(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!V(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=at(i);At(e,i.draft_??i,a,n),Mt(i,r)})}function Mt(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)}Ot(e)}}function Nt(e,t,n){let{scope_:r}=e;if(Ue(n)){let i=n[N];V(i,r)&&i.callbacks_.push(function(){Ut(e),At(e,n,at(i),t)})}else I(n)&&e.callbacks_.push(function(){let i=z(e);e.type_===3?i.has(n)&&Pt(n,r.handledSet_,r):R(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Pt(R(e.copy_,t,e.type_),r.handledSet_,r)})}function Pt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ue(e)||t.has(e)||!I(e)||ut(e)?e:(t.add(e),qe(e,(r,i)=>{if(Ue(i)){let t=i[N];V(t,n)&&(Ye(e,r,at(t),e.type_),Ot(t))}else I(i)&&Pt(i,t,n)}),e)}function Ft(e,t){let n=Ze(e),r={type_:+!!n,scope_:t?t.scope_:vt(),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=It;n&&(i=[r],a=Lt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var It={get(e,t){if(t===N)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=z(e);if(!L(i,t,e.type_))return Bt(e,i,t);let a=i[t];if(e.finalized_||!I(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&rt(t))return a;if(a===Rt(e.base_,t)||zt(e,t,a)){Ut(e);let n=e.type_===1?+t:t,r=Gt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in z(e)},ownKeys(e){return Reflect.ownKeys(z(e))},set(e,t,n){let r=Vt(z(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Rt(z(e),t),i=r?.[N];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Xe(n,r)&&(n!==void 0||L(e.base_,t,e.type_)))return!0;Ut(e),Ht(e)}return e.copy_[t]===n&&(n!==void 0||L(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Nt(e,t,n),!0)},deleteProperty(e,t){return Ut(e),Rt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ht(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=z(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ve]:!0,[ze]:e.type_!==1||t!==`length`,[Be]:r[Be],[He]:n[t]}},defineProperty(){P(11)},getPrototypeOf(e){return Ie(e.base_)},setPrototypeOf(){P(12)}},Lt={};for(let e in It){let t=It[e];Lt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Lt.deleteProperty=function(e,t){return isNaN(parseInt(t))&&P(13),Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&P(14),It.set.call(this,e[0],t,n,e[0])};function Rt(e,t){let n=e[N];return(n?z(n):e)[t]}function zt(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!I(n)||n[N]?!1:e.baseRefs_.has(n)}function Bt(e,t,n){let r=Vt(t,n);return r?He in r?r[He]:r.get?.call(e.draft_):void 0}function Vt(e,t){if(!(t in e))return;let n=Ie(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ie(n)}}function Ht(e){e.modified_||(e.modified_=!0,e.parent_&&Ht(e.parent_))}function Ut(e){e.copy_||=(e.assigned_=new Map,ot(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Wt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(tt(e)&&!tt(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}tt(t)||P(6),n!==void 0&&!tt(n)&&P(7);let r;if(I(e)){let i=Ct(this),a=Gt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?xt(i):St(i)}return bt(i,n),Tt(r,i)}if(!e||!et(e)){if(r=t(e),r===void 0&&(r=e),r===Ne&&(r=void 0),this.autoFreeze_&&st(r,!0),n){let t=[],i=[];B(ft).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}P(1,e)},this.produceWithPatches=(e,t)=>{if(tt(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]},nt(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),nt(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),nt(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){I(e)||P(8),Ue(e)&&(e=Kt(e));let t=Ct(this),n=Gt(t,e,void 0);return n[N].isManual_=!0,St(t),n}finishDraft(e,t){let n=e&&e[N];(!n||!n.isManual_)&&P(9);let{scope_:r}=n;return bt(r,t),Tt(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=B(ft).applyPatches_;return Ue(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Gt(e,t,n,r){let[i,a]=Qe(t)?B(dt).proxyMap_(t,n):$e(t)?B(dt).proxySet_(t,n):Ft(t,n);return(n?.scope_??vt()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?jt(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 Ue(e)||P(10,e),qt(e)}function qt(e){if(!I(e)||ut(e))return e;let t=e[N],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ot(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ot(e,!0);return qe(n,(e,t)=>{Ye(n,e,qt(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=it(R(e,n.key_)),i=R(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||L(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=R(n,r),!et(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?.[N];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;qe(e.assigned_,(e,l)=>{let u=R(o,e,c),f=R(s,e,c),p=l?L(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===Ne?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=Je(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Le)&&P(19),tt(o)&&n===Re&&P(19),o=R(o,n),(o===null||!et(o))&&P(18,i.join(`/`))}let s=Je(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:P(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:P(17,a)}}),e}function u(e){if(!I(e))return e;if(Ze(e))return e.map(u);if(Qe(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if($e(e))return new Set(Array.from(e).map(u));let t=Object.create(Ie(e));for(let n in e)t[n]=u(e[n]);return L(e,Pe)&&(t[Pe]=e[Pe]),t}function d(e){return Ue(e)?u(e):e}gt(ft,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Yt=new Wt,Xt=Yt.produce,Zt=Yt.produceWithPatches.bind(Yt),Qt=Yt.applyPatches.bind(Yt),$t=1e3;function en(e,t){if(e.add(t),e.size>$t){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function tn(e){let{enablePatches:t=!1}=e;t&&Jt();let n=Ae(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Me())=>{i.has(t)||(Jt(),r=Qt(r,e),en(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Me())=>{if(!i.has(a)){if(en(i,a),t){let[t,i]=Zt(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=Xt(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var nn=typeof self==`object`?self:globalThis,rn=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),an=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function on(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=rn.has(e)?nn[e]:void 0;return n(new(r??nn.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`&&an.has(a))return n(new nn[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function sn(e){return on(new Map,e)(0)}var cn=``,{toString:ln}={},{keys:un}=Object;function dn(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=ln.call(e).slice(8,-1);switch(n){case`Array`:return[1,cn];case`Object`:return[2,cn];case`Date`:return[3,cn];case`RegExp`:return[4,cn];case`Map`:return[5,cn];case`Set`:return[6,cn];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function fn([e,t]){return e===0&&(t===`function`||t===`symbol`)}function pn(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]=dn(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 un(r))(e||!fn(dn(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||!(fn(dn(n))||fn(dn(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!fn(dn(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function mn(e,t={}){let n=[];return pn(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:hn,stringify:gn}=JSON,_n={json:!0,lossy:!0};function vn(e){return sn(hn(e))}function yn(e){return gn(mn(e,_n))}function bn(e){return sn(e)}function xn(e){return yn(e)}function Sn(e){return vn(e)}var Cn=256,wn=class extends Error{name=`StreamClosedError`};function Tn(e={}){let t=e.id??Me(),n=Math.max(0,e.replayWindow??0),r=Ae(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new wn(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=Dn(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 En(e={}){let t=e.id??Me(),n=Math.max(1,e.highWaterMark??Cn),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 Dn(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)}}}var On=128;function kn(e){return e.replace(/[^\w-]+/g,`_`).slice(0,On)}function An(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var jn=Math.random.bind(Math),Mn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Nn(e=21){let t=``,n=e;for(;n--;)t+=Mn[jn()*64|0];return t}var Pn=6e4,Fn=e=>e,In=Fn,{clearTimeout:Ln,setTimeout:Rn}=globalThis;function zn(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Fn,deserialize:s=In,resolver:c,bind:l=`rpc`,timeout:u=Pn,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}=An(),_=Nn();s.i=_;let v;async function y(n=s){return u>=0&&(v=Rn(()=>{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{Ln(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&&(Ln(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var Bn=`__connection.json`,Vn=`__DEVFRAME_CONNECTION__`,Hn=`x-birpc-session`,Un=`__rpc-dump/index.json`,Wn=`devframe:services`,Gn=`devframe_otp`,Kn=`devframe_auth_token`;k.postMessage.remoteAssetsError;var qn=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>ke(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()}},Jn=ve({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, 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."}}});function Yn(e){if(e.agent&&e.jsonSerializable===!1)throw Jn.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function Xn(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Zn(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 Qn(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 Xn(i,n[r]);if(a.issues)throw Jn.DF0043({name:e,index:r,issues:Zn(a.issues)})}return r}async function $n(e,t,n){if(!t)return n;let r=await Xn(t,n);if(r.issues)throw Jn.DF0044({name:e,issues:Zn(r.issues)});return n}async function er(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 tr(e,t){let n=e.handler;if(!n){let r=await er(e,t);if(!r.handler)throw Jn.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 Qn(e.name,r,t),o=await a(...n);return await $n(e.name,i,o)}}var nr=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 tr(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 Jn.DF0021({name:e.name});Yn(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 Jn.DF0022({name:e.name});Yn(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 tr(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Jn.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 rr(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 ar(t,`undefined`,r,e);return n}return i!==null&&ir(i,r,e,t),n})}function ir(e,t,n,r){if(typeof e==`bigint`)throw ar(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw ar(r,`Map`,t,n);if(e instanceof Set)throw ar(r,`Set`,t,n);if(e instanceof Date)throw ar(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw ar(r,e.constructor?.name??`class instance`,t,n)}function ar(e,t,n,r){let i=or(n,r);return Jn.DF0020({name:e||`<anonymous>`,type:t,path:i})}function or(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var sr=`__DEVFRAME_CONNECTION_META__`,cr=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function lr(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 ur(){return lr(Vn)}function dr(){return lr(sr)}function fr(e){if(e)return e;try{let e=localStorage.getItem(cr);if(e)return e}catch{}return lr(cr)}function pr(e){globalThis[Vn]=e,globalThis[sr]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&mr(e.authToken)}function mr(e){try{localStorage.setItem(cr,e)}catch{}globalThis[cr]=e;let t=ur();t&&(globalThis[Vn]={...t,authToken:e})}function hr(e){let t=se(Bn,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function gr(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function _r(){let e=ur();if(e)return gr(e,fr()??e.authToken??e.connectionMeta.authToken);let t=dr();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??hr(`./`),authToken:fr(t.authToken)}}async function vr(e={}){if(e.connection){let t=gr(e.connection,fr(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return pr(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:hr(t[0]??`./`),authToken:fr(e.authToken??e.connectionMeta.authToken)};return pr(n),n}let n=_r();if(n){let t=gr(n,fr(e.authToken??n.authToken??n.connectionMeta.authToken));return pr(t),t}let r=[];for(let n of t){let t=se(Bn,n),i=hr(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=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:fr(e.authToken??r.authToken)};return pr(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var yr=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function br(e=Gn){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function xr(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 Sr(e=Gn){let t=br(e);return t&&xr(e),t}async function Cr(e,t={}){let n=Sr(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function wr(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Wn,{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 Tr(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:k.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:k.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=tn({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(k.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var Er=new Map;function Dr(e=Er){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?rr(n,r??``):`s:${xn(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?Sn(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function Or(){}function kr(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function Ar(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function jr(e){let{onConnected:t=Or,onError:n=Or,onDisconnected:r=Or,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Kn}=${encodeURIComponent(e.authToken)}`);let s=Dr(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=kr(r);if(!e)break;r=e.rest;let{event:t,data:n}=Ar(e.frame);n.length>0&&_(t,n.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`,[Hn]: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 Mr(e,t){let{channel:n,rpcOptions:r={}}=t;return zn(e,{...n,timeout:-1,...r,proxify:!1})}function Nr(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=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(k.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 yr(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new yr(`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(k.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 yr(`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(k.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(k.client.connectionError,e),m(new yr(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new yr(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=Mr(a.functions,{channel:v,rpcOptions:o});a.register({name:k.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new yr(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(k.client.connectionError,e),m(e),i.emit(k.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$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 yr(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(k.client.connectionError,e)}return i.emit(k.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(k.client.isTrustedUpdated,!0)),t}async function ee(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function C(){return c?!0:x(b??``)}async function w(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:C,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:ee,ensureTrusted:w,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(k.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(k.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(k.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function Pr(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 Fr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Pr(n.sse,r??`./`,location);return Nr({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>jr({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 Ir(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:Lr(r)?Ir(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function Lr(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Rr(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function zr(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Br(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Vr(e){if(e.error)throw Ir(e.error);return e.output}function Hr(e){return e.some(e=>e!=null)}function Ur(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Wr(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?bn(e):e}function a(e,t){return i(Ur(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 Br(r)?Vr(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(Rr(r)){if(Hr(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(zr(r)){let e=ke(n),i=r.records[e];if(i)return Vr(await s(i,r.serialization));if(r.fallback)return Vr(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Hr(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 Gr(e){let t=Wr(await e.fetchJsonFromBases(Un),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},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 Kr=``;function qr(e,t){return`${e}${Kr}${t}`}function Jr(e){let t=new Map,n=new Map;e.client.register({name:k.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(qr(e,n))?._push(r,i)}}),e.client.register({name:k.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=qr(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:k.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=qr(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(k.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Kr);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=qr(n,r),o=t.get(a);if(o)return o;let s=En({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(k.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=qr(t,r),a=n.get(i);if(a)return a;let o=Tn({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 Yr(){}var Xr=new Map;function Zr(e){let t=e.url;e.authToken&&(t=`${t}?${Kn}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Yr,onError:i=Yr,onDisconnected:a=Yr,definitions:o=Xr}=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=Dr(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 Qr(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 ce(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function $r(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Qr(n.websocket,r??`./`,location);return Nr({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 ei(e){return e.includes(`:`)}function ti(e,t){return ei(t)?t:`${e}:${t}`}function ni(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function ri(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return ni(a)}function ii(e,t){return{global:ri(e,t,`global`),project:ri(e,t,`project`)}}function ai(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(ei(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(ti(t,n),...r)),callEvent:((n,...r)=>e.callEvent(ti(t,n),...r)),callOptional:((n,...r)=>e.callOptional(ti(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(ti(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(ti(t,n),r,i),upload:(n,r)=>e.streaming.upload(ti(t,n),r)}},settings:ii(e,t),scope:e.scope}}var oi=Object.freeze({type:`object`,additionalProperties:!0});function si(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return oi}return oi}function ci(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=si(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function li(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function ui(e,t){return li(e,t)??[e]}function di(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function fi(e,t={}){let n=t.modelContext??di();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=kn(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=r.registerTool({name:o,description:n.description,inputSchema:ci(t.args),annotations:{title:n.title??t.name,readOnlyHint:pi(t,n)===`read`,destructiveHint:pi(t,n)===`destructive`},execute:n=>mi(t,e.context,n)},{signal:c.signal});l&&`then`in l&&l.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),l&&`unregister`in l&&typeof l.unregister==`function`&&l.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}function pi(e,t){if(t.safety)return t.safety;let n=e.type??`query`;return n===`static`||n===`query`?`read`:`action`}async function mi(e,t,n){try{let r=ui(n,e.args?.length);return{content:[{type:`text`,text:hi(await(await tr(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:gi(e)}]}}}function hi(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function gi(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function _i(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"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function vi(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=Ae(),a=Array.isArray(t)?t:[t],o=await vr(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new qn({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new nr(f),m=e.webmcp===!1?void 0:fi(p);async function h(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(se(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:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},_=_i(e.transport??`auto`,s),v=_===`static`?await Gr({fetchJsonFromBases:h}):_===`sse`?Fr({...g,sseOptions:e.sseOptions}):$r({...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)))}function ee(){try{m?.()}finally{try{y?.close()}finally{v.close?.()}}}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=>(mr(e),o={...o,authToken:e},v.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await v.requestTrustWithCode(e);if(!t)return!1;mr(t),o={...o,authToken:t};try{y?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>v.requestAuthCode(e),call:S(v.call),callEvent:S(v.callEvent),callOptional:S(v.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:ee};C.sharedState=Tr(C),C.streaming=Jr(C),C.services=wr(C);let w=new Map;C.scope=(e=>{if(!e)return C;let t=w.get(e);return t||(t=ai(C,e),w.set(e,t)),t}),f.rpc=C;function T(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function E(){if(e.simpleAuth!==!1&&T()&&typeof globalThis.prompt==`function`)for(await C.requestAuthCode().catch(()=>{});!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 te(){let t=await v.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Cr(C,{param:n}):!1;t||r||C.isTrusted||await E()}return b=te().then(()=>{x=!0},()=>{x=!0}),y&&(y.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&C.requestTrustWithToken(e.data.authToken)}),C}function yi(e={}){return vi({...e,simpleAuth:!1})}function bi(e,t){return te()?(w(e,t),!0):!1}var xi=new WeakMap,Si=(...e)=>{let t=e[0],n=re()?.proxy??te();if(n==null&&!f())throw Error(`injectLocal must be called in setup`);return n&&xi.has(n)&&t in xi.get(n)?xi.get(n)[t]:C(...e)},Ci=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var wi=e=>e!==void 0,Ti=e=>e!=null,Ei=Object.prototype.toString,Di=e=>Ei.call(e)===`[object Object]`,H=()=>{},Oi=ki();function ki(){var e,t;return Ci&&!!((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 Ai(...e){if(e.length!==1)return p(...e);let t=e[0];return typeof t==`function`?b(_(()=>({get:t,set:H}))):m(t)}function ji(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 Mi=e=>e();function Ni(e,t={}){let n,r,i=H,a=H,o=g(!1),s=e=>{clearTimeout(e),i(),i=H},c;return Object.assign(l=>{let u=D(e),d=D(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=H},flush:()=>{if(o.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),o.value=!1;let e=a;i=H,a=H,e(c())}},isPending:ae(o)})}function Pi(e=Mi,t={}){let{initialState:n=`active`}=t,r=Ai(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:ae(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function Fi(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function Ii(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function Li(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ri(e){return Object.entries(e)}function zi(e){return Array.isArray(e)?e:[e]}function Bi(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var Vi=/-(\w)/g,Hi=Bi(e=>e.replace(Vi,(e,t)=>t?t.toUpperCase():``));function Ui(e){return e||re()}function Wi(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function Gi(e){return y(e)?S(new Proxy({},{get(t,n,r){return c(Reflect.get(e.value,n,r))},set(t,n,r){return y(e.value[n])&&!y(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):S(e)}function Ki(e){return Gi(v(e))}function qi(e,t=200,n={}){return ji(Ni(t,n),e)}function Ji(e,t=200,n={}){let r=m(D(e)),i=qi(()=>{r.value=e.value},t,n);return E(e,()=>i()),ae(r)}var Yi=Ji;function Xi(e,t,n={}){let{eventFilter:r=Mi,...i}=n;return E(e,ji(r,t),i)}function Zi(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=Pi(r,{initialState:i});return{stop:Xi(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Qi(e,t=!0,n){Ui(n)?oe(e,n):t?e():d(e)}function $i(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=[new Promise(a=>{s=E(e,e=>{n(e)!==t&&(s?s():d(()=>s?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&c.push(Fi(a,o).then(()=>D(e)).finally(()=>s?.())),Promise.race(c)}function r(r,i){if(!y(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=[new Promise(n=>{l=E([e,r],([e,r])=>{t!==(e===r)&&(l?l():d(()=>l?.()),n(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&u.push(Fi(s,c).then(()=>D(e)).finally(()=>(l?.(),D(e)))),Promise.race(u)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function c(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(D(e))},t)}function l(e){return u(1,e)}function u(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(D(e))?{toMatch:n,toContains:c,changed:l,changedTimes:u,get not(){return $i(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:l,changedTimes:u,get not(){return $i(e,!t)}}}function ea(e){return $i(e)}var ta=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,na=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function ra(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function ia(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function aa(e,t,n={}){let r=e.getFullYear(),i=e.getMonth(),a=e.getDate(),o=e.getHours(),s=e.getMinutes(),c=e.getSeconds(),l=e.getMilliseconds(),u=e.getDay(),d=n.customMeridiem??ra,f=e=>e.split(` `)[1]??``,p={Yo:()=>ia(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>i+1,Mo:()=>ia(i+1),MM:()=>`${i+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(D(n.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(D(n.locales),{month:`long`}),D:()=>String(a),Do:()=>ia(a),DD:()=>`${a}`.padStart(2,`0`),H:()=>String(o),Ho:()=>ia(o),HH:()=>`${o}`.padStart(2,`0`),h:()=>`${o%12||12}`.padStart(1,`0`),ho:()=>ia(o%12||12),hh:()=>`${o%12||12}`.padStart(2,`0`),m:()=>String(s),mo:()=>ia(s),mm:()=>`${s}`.padStart(2,`0`),s:()=>String(c),so:()=>ia(c),ss:()=>`${c}`.padStart(2,`0`),SSS:()=>`${l}`.padStart(3,`0`),d:()=>u,dd:()=>e.toLocaleDateString(D(n.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(D(n.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(D(n.locales),{weekday:`long`}),A:()=>d(o,s),AA:()=>d(o,s,!1,!0),a:()=>d(o,s,!0),aa:()=>d(o,s,!0,!0),z:()=>f(e.toLocaleDateString(D(n.locales),{timeZoneName:`shortOffset`})),zz:()=>f(e.toLocaleDateString(D(n.locales),{timeZoneName:`shortOffset`})),zzz:()=>f(e.toLocaleDateString(D(n.locales),{timeZoneName:`shortOffset`})),zzzz:()=>f(e.toLocaleDateString(D(n.locales),{timeZoneName:`longOffset`}))};return t.replace(na,(e,t)=>t??p[e]?.call(p)??e)}function oa(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(ta);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function sa(e,t=`HH:mm:ss`,n={}){return v(()=>aa(oa(D(e)),D(t),n))}function ca(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=g(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=D(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&Ci&&l(),(y(t)||typeof t==`function`)&&bi(E(t,()=>{o.value&&Ci&&l()})),bi(c),{isActive:ae(o),pause:c,resume:l}}function la(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=g(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},D(t))}return r&&(a.value=!0,Ci&&l()),bi(c),{isPending:ae(a),start:l,stop:c}}function ua(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Xi(e,t,{...a,eventFilter:Ni(r,{maxWait:i})})}function da(e,t,n){return E(e,t,{...n,immediate:!0})}function fa(e,t,n){let r;r=y(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:o=void 0,shallow:s=!0,onError:c=globalThis.reportError??H}=r,l=g(!i),u=s?g(t):m(t),d=0;return ee(async t=>{if(!l.value)return;d++;let n=d,r=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{let i=await e(e=>{t(()=>{o&&(o.value=!1),r||e()})});n===d&&(u.value=i)}catch(e){c(e)}finally{o&&n===d&&(o.value=!1),r=!0}},{flush:a}),i?v(()=>(l.value=!0,u.value)):u}function pa(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=g(),i=a({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),o=a({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(n,{attrs:i,slots:a}){return()=>{if(!r.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=r.value?.call(r,{...e.props==null?ma(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return Wi({define:i,reuse:o},[i,o])}function ma(e){let t={};for(let n in e)t[Hi(n)]=e[n];return t}function ha(e={}){let t=0,n=m([]);function r(...r){let i=ne({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 o=a((t,{slots:r})=>{let i=()=>n.value.map(e=>s(h,{key:e.key},r.default?.call(r,e)));return e.transition?()=>s(le,e.transition,i):i});return o.start=i,o}var U=Ci?window:void 0,ga=Ci?window.document:void 0,_a=Ci?window.navigator:void 0;Ci&&window.location;function W(e){let t=D(e);return t?.$el??t}function G(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=v(()=>{let t=zi(D(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return da(()=>[n.value?.map(e=>W(e))??[U].filter(e=>e!=null),zi(D(n.value?e[1]:e[0])),zi(c(n.value?e[2]:e[1])),D(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Di(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 va=!1;function ya(e,t,n={}){let{window:r=U,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:H,cancel:H,trigger:H}:H;if(Oi&&!va){va=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,H,e)),r.document.documentElement.addEventListener(`click`,H,e)}let c=!0,l=e=>D(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=W(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=D(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=D(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=W(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=[G(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),G(r,`pointerdown`,t=>{let n=W(e);c=!l(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),o&&G(r,`blur`,n=>{setTimeout(()=>{let i=W(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 ba(){let e=g(!1),t=re();return t&&oe(()=>{e.value=!0},t),e}function xa(e){let t=ba();return v(()=>(t.value,!!e()))}function Sa(e,t,n={}){let{window:r=U,...i}=n,a,o=xa(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=E(v(()=>{let t=zi(D(e)).map(W).filter(Ti);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),l=()=>a?.takeRecords(),u=()=>{c(),s()};return bi(u),{isSupported:o,stop:u,takeRecords:l}}function Ca(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function wa(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=U,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Ca(t);return G(i,a,e=>{e.repeat&&D(s)||c(e)&&n(e)},o)}function Ta(e,t,n={}){return wa(e,t,{...n,eventName:`keydown`})}function Ea(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=U,once:a=!1}=t,o=g(!1),s=v(()=>{let e=D(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(),bi(f),{isActive:ae(o),pause:f,resume:d}}var Da=Symbol(`vueuse-ssr-width`);function Oa(){let e=f()?Si(Da,null):null;return typeof e==`number`?e:void 0}function ka(e,t={}){let{window:n=U,ssrWidth:r=Oa()}=t,i=xa(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=g(typeof r==`number`),o=g(),s=g(!1);return ee(()=>{if(a.value){a.value=!i.value;let t=D(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>=Li(n[1])),i&&a&&(a=r<=Li(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(D(e)),s.value=o.value.matches)}),G(o,`change`,e=>{s.value=e.matches},{passive:!0}),v(()=>s.value)}var Aa=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function ja(e={}){let{window:t=U}=e,n=Object.fromEntries(Aa.map(e=>[e,m()])),r=e=>{var r;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of Aa)n[e].value=t==null||(r=t.location)==null?void 0:r[e];return S({trigger:e,state:i,length:a,origin:o,...n})},i=m(r(`load`));for(let[e,r]of Ri(n))E(r,n=>{t?.location&&t.location[e]!==n&&(t.location[e]=n)});if(t){let e={passive:!0};G(t,`popstate`,()=>i.value=r(`popstate`),e),G(t,`hashchange`,()=>i.value=r(`hashchange`),e)}return i}function Ma(e,t={}){let{controls:n=!1,navigator:r=_a}=t,i=xa(()=>r&&`permissions`in r),a=g(),o=typeof e==`string`?{name:e}:e,s=g(),c=()=>{s.value=a.value?.state??`prompt`};G(a,`change`,c,{passive:!0});let l=Ii(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return ie(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Na(e={}){let{navigator:t=_a,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=xa(()=>t&&`clipboard`in t),s=Ma(`clipboard-read`),c=Ma(`clipboard-write`),l=v(()=>o.value||a),u=g(``),d=g(!1),f=g(!1),p=la(()=>d.value=!1,i,{immediate:!1}),m=0;async function h(){let e=!(o.value&&S(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=x())}l.value&&n&&G([`copy`,`cut`],h,{passive:!0});async function _(e){let n=e??D(r);if(l.value&&n!=null){f.value=!0;let e=!(o.value&&S(c.value));if(!e)try{let e=y(n);await t.clipboard.write([e])}catch{e=!0}if(e){if(typeof n==`string`)u.value=n,b(n);else{let e=++m,t=await n();t!=null&&e===m&&(u.value=t,b(t))}}d.value=!0,p.start(),f.value=!1}}function y(e){return typeof e==`string`?(u.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(u.value=e,new Blob([e],{type:`text/plain`})))})}function b(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function x(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function S(e){return e===`granted`||e===`prompt`}return{copyPending:ae(f),isSupported:l,text:ae(u),copied:ae(d),copy:_}}function Pa(e){return JSON.parse(JSON.stringify(e))}var Fa=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Ia=`__vueuse_ssr_handlers__`,La=Ra();function Ra(){return Ia in Fa||(Fa[Ia]=Fa[Ia]||{}),Fa[Ia]}function za(e,t){return La[e]||t}function Ba(e){return ka(`(prefers-color-scheme: dark)`,e)}function Va(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 Ha={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()}},Ua=`vueuse-storage`;function Wa(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=U,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:h}=r,_=(l?g:m)(typeof t==`function`?t():t),y=v(()=>D(e));if(!n)try{n=za(`getDefaultStorage`,()=>U?.localStorage)()}catch(e){p(e)}if(!n)return _;let b=D(t),x=Va(b),S=r.serializer??Ha[x],{pause:ee,resume:C}=Zi(_,e=>te(e),{flush:i,deep:a,eventFilter:f});E(y,()=>re(),{flush:i});let w=!1;u&&o&&(n instanceof Storage?G(u,`storage`,e=>{(!h||w)&&re(e)},{passive:!0}):G(u,Ua,e=>{(!h||w)&&ie(e)})),h?Qi(()=>{w=!0,re()}):re();function T(e,t){if(u){let r={key:y.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Ua,{detail:r}))}}function te(e){try{let t=n.getItem(y.value);if(e==null)T(t,null),n.removeItem(y.value);else{let r=S.write(e);t!==r&&(n.setItem(y.value,r),T(t,r))}}catch(e){p(e)}}function ne(e){let t=e?e.newValue:n.getItem(y.value);if(t==null)return s&&b!=null&&n.setItem(y.value,S.write(b)),b;if(!e&&c){let e=S.read(t);return typeof c==`function`?c(e,b):x===`object`&&!Array.isArray(e)?{...b,...e}:e}return typeof t==`string`?S.read(t):t}function re(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){_.value=b;return}if(!(e&&e.key!==y.value)){ee();try{let t=S.write(_.value);(e===void 0||e?.newValue!==t)&&(_.value=ne(e))}catch(e){p(e)}finally{e?d(C):C()}}}}function ie(e){re(e.detail)}return _}function Ga(e,t,n={}){let{window:r=U,...i}=n,a,o=xa(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=E(v(()=>{let t=D(e);return Array.isArray(t)?t.map(e=>W(e)):[W(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return bi(l),{isSupported:o,stop:l}}function Ka(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=g(0),c=g(0),l=g(0),u=g(0),d=g(0),f=g(0),p=g(0),m=g(0);function h(){let t=W(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function _(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return Ga(e,_),E(()=>W(e),e=>!e&&_()),Sa(e,_,{attributeFilter:[`style`,`class`]}),i&&G(`scroll`,_,{capture:!0,passive:!0}),r&&G(`resize`,_,{passive:!0}),Qi(()=>{a&&_()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:_}}function qa(e,t={width:0,height:0},n={}){let{window:r=U,box:i=`content-box`}=n,a=v(()=>{var t;return(t=W(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=g(t.width),s=g(t.height),{stop:c}=Ga(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=W(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=zi(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);Qi(()=>{let n=W(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight}else n&&(o.value=t.width,s.value=t.height)});let l=E(()=>W(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}function Ja(e={}){let{initialValue:t=``}=e,n=xa(()=>typeof window<`u`&&`EyeDropper`in window),r=g(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function Ya(e,t,n={}){let{window:r=U}=n;return Wa(e,t,r?.localStorage,n)}function Xa(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>Ea(e,{immediate:n}):n=>ca(n,t,e)}return Ea}function Za(e={}){let{controls:t=!1,scheduler:n=Xa(e)}=e,r=g(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function Qa(e,t,n={}){let{window:r=U}=n;return Wa(e,t,r?.sessionStorage,n)}var $a=0,eo=new WeakMap;function to(e,t={}){let n=g(!1),{document:r=ga,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++$a}`}=t,s=g(e),c=()=>{},l=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(eo.set(e,(eo.get(e)??0)+1),c=E(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},u=()=>{if(!r||!n.value)return;c();let e=r.getElementById(o);if(e){let t=(eo.get(e)??1)-1;t<=0?(eo.delete(e),r.head.removeChild(e)):eo.set(e,t)}n.value=!1};return i&&!a&&Qi(l),a||bi(u),{id:o,css:s,unload:u,load:l,isLoaded:ae(n)}}var no=[{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`}],ro={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 io(e){return e.toISOString().slice(0,10)}function ao(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>ca(e,t)}return e=>ca(e,3e4)}function oo(e,t={}){let{controls:n=!1,scheduler:r=ao(t)}=t,{now:i,...a}=Za({scheduler:r,controls:!0}),o=v(()=>so(new Date(D(e)),t,D(i)));return n?{timeAgo:o,...a}:o}function so(e,t={},n=Date.now()){let{max:r,messages:i=ro,fullDateFormatter:a=io,units:o=no,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}function co(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:f}=r,p=re(),h=n||p?.emit||(p==null||(i=p.$emit)==null?void 0:i.bind(p))||(p==null||(a=p.proxy)==null||(a=a.$emit)==null?void 0:a.bind(p?.proxy)),g=c;t||=`modelValue`,g||=`update:${t.toString()}`;let _=e=>o?typeof o==`function`?o(e):Pa(e):e,y=()=>wi(e[t])?_(e[t]):u,b=e=>{f?f(e)&&h(g,e):h(g,e)};if(s){let n=m(y()),r=!1;return E(()=>e[t],e=>{r||(r=!0,n.value=_(e),d(()=>r=!1))}),E(n,n=>{!r&&(n!==e[t]||l)&&b(n)},{deep:l}),n}return v({get(){return y()},set(e){b(e)}})}var lo=`nuxt:devtools`,uo=2e3,fo=m(!1),po=m(!0),mo=g(),ho=Yi(po,uo),go={},_o=g(),vo=bo(),yo=new Proxy({},{get:(e,t)=>async(...e)=>(_o.value||await vo).call(`${lo}:${t}`,...e)});async function bo(){try{let e=await yi();_o.value=e;for(let[t,n]of Object.entries(go))typeof n==`function`&&So(e,t,n);return console.log(`[nuxt-devtools] Connected to Vite DevTools RPC`),po.value=!1,fo.value=!0,e}catch(e){throw po.value=!0,mo.value=e,console.error(`[Nuxt DevTools] Unable to connect to Vite DevTools RPC`,e),e}}async function xo(){let e=_o.value||await vo;for(let[t,n]of Object.entries(go))typeof n==`function`&&So(e,t,n)}function So(e,t,n){let r={name:t,type:`event`,handler:n};e.client.register(r,!0)}var Co=i({docsBase:t,reporters:e}),wo=`$s`;function To(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[r,i]=e;if(!r||typeof r!=`string`)throw Co.NUXT_E7009({key:r});if(i!==void 0&&typeof i!=`function`)throw Co.NUXT_E7007({type:typeof i});let a=wo+r,o=n(),s=p(o.payload.state,a);if(i&&(o._state[a]??={_default:i}),s.value===void 0&&i){let e=i();if(y(e))return o.payload.state[a]=e,s;s.value=e}return s}var Eo=g(),Do;function Oo(){Do||=(async()=>{let{createMarkdownExit:e}=await T(async()=>{let{createMarkdownExit:e}=await import(`./vendor/markdown-exit-j0g0sjtn.js`).then(e=>e.t);return{createMarkdownExit:e}},__vite__mapDeps([0,1]),import.meta.url);Eo.value=e({html:!0,linkify:!0,breaks:!0})})()}function ko(e){return Oo(),Eo.value?Eo.value.render(e):e}var Ao={json:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.c),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.r),__vite__mapDeps([2,1]),import.meta.url),yml:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.r),__vite__mapDeps([2,1]),import.meta.url),css:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.f),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),js:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),ts:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),cts:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),mts:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),vue:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.i),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.a),__vite__mapDeps([2,1]),import.meta.url),html:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.l),__vite__mapDeps([2,1]),import.meta.url),diff:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.d),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),bash:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),sh:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),shell:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url)},jo={"vitesse-dark":()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.n),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>T(()=>import(`./vendor/shiki-ebpttx2o.js`).then(e=>e.t),__vite__mapDeps([2,1]),import.meta.url)},Mo=de({langs:Ao,themes:jo,engine:()=>O()}),{codeToHtml:No,codeToHast:Po,codeToTokensBase:Fo,codeToTokens:Io,codeToTokensWithThemes:Lo,getSingletonHighlighter:Ro,getLastGrammarState:zo}=ue(Mo),Bo=g(),Vo=null;function Ho(e,t=`text`,n){!Vo&&!Bo.value&&(Vo=Mo({langs:Object.keys(Ao),themes:Object.keys(jo)}).then(e=>{Bo.value=e}));let r=Bo.value?.getLoadedLanguages().includes(t);return r?{code:Bo.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}var Uo=`hub:messages:add`;function Wo(e){return{message:e.message,level:e.level??`info`,description:e.description,labels:e.labels,category:e.category,filePosition:e.filePosition,stacktrace:e.stacktrace,notify:e.notify??!0,autoDismiss:e.autoDismiss,autoDelete:e.autoDelete}}async function Go(e){try{await(_o.value||await vo).call(Uo,Wo(e))}catch(e){console.error(`[nuxt-devtools] Failed to push notification`,e)}}var Ko=!1;function qo(){Ko||(Ko=!0,console.warn("[nuxt-devtools] `extendClientRpc` is deprecated. Use `onDevtoolsReady((kit) => kit.client.register(...))` from `@nuxt/devtools-kit/iframe-client`."))}function Jo(){return To(`devtools-client`)}function Yo(){let e=Jo();return v(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function Xo(){let e=Jo();return v(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function Zo(){let e=Jo();return v(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var Qo=m(!1);setTimeout(()=>{Qo.value=!0},2e3);var $o=v(()=>Qo.value&&!Jo().value),es=m();function ts(e){es.value=e}var ns;function rs(){if(!ns){let e=Ba();ns=v(()=>es.value??(e.value?`dark`:`light`))}return ns}function is(){let e=Jo(),t=rs();return v(()=>({host:e.value,devtools:{rpc:yo,notify:Go,devtoolsKit:_o.value,colorMode:t.value,renderCodeHighlight(e,t){return Ho(e,t)},renderMarkdown(e){return ko(e)},extendClientRpc(e,t){qo();let n=n=>{for(let[r,i]of Object.entries(t))typeof i==`function`&&So(n,`${e}:${r}`,i)};return _o.value?n(_o.value):vo.then(n,()=>{}),new Proxy({},{get(t,n){if(typeof n==`string`)return async(...t)=>(_o.value||await vo).call(`${e}:${n}`,...t)}})}}}))}var as=!1;function os(){return{behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,showExperimentalFeatures:!1,showHelpButtons:!0,scale:1,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[]},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:as,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}}}var ss=new Map;function cs(e){if(ss.has(e))return ss.get(e);let t=S(os()[e]),n=o(t);return ss.set(e,n),yo.getOptions(e).then(n=>{Object.assign(t,n),ua(t,async t=>{yo.updateOptions(e,t).catch(t=>{console.error(`[nuxt-devtools] Failed to persist "${String(e)}" options`,t)})},{deep:!0,flush:`post`,debounce:500,maxWait:1e3})}).catch(t=>{console.error(`[nuxt-devtools] Failed to load "${String(e)}" options`,t)}),n}function ls(e){return cs(e)}function us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ds(e){if(Array.isArray(e))return e}function fs(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ps(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e,t){return ds(e)||fs(e,t)||hs(e,t)||ps()}function hs(e,t){if(e){if(typeof e==`string`)return us(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?us(e,t):void 0}}var gs=Object.entries,_s=Object.setPrototypeOf,vs=Object.isFrozen,ys=Object.getPrototypeOf,bs=Object.getOwnPropertyDescriptor,K=Object.freeze,q=Object.seal,xs=Object.create,Ss=typeof Reflect<`u`&&Reflect,Cs=Ss.apply,ws=Ss.construct;K||=function(e){return e},q||=function(e){return e},Cs||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ws||=function(e){return new e(...[...arguments].slice(1))};var Ts=X(Array.prototype.forEach),Es=X(Array.prototype.lastIndexOf),Ds=X(Array.prototype.pop),Os=X(Array.prototype.push),ks=X(Array.prototype.splice),As=Array.isArray,js=X(String.prototype.toLowerCase),Ms=X(String.prototype.toString),Ns=X(String.prototype.match),Ps=X(String.prototype.replace),Fs=X(String.prototype.indexOf),Is=X(String.prototype.trim),Ls=X(Number.prototype.toString),Rs=X(Boolean.prototype.toString),zs=typeof BigInt>`u`?null:X(BigInt.prototype.toString),Bs=typeof Symbol>`u`?null:X(Symbol.prototype.toString),J=X(Object.prototype.hasOwnProperty),Vs=X(Object.prototype.toString),Y=X(RegExp.prototype.test),Hs=Us(TypeError);function X(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Cs(e,t,n)}}function Us(e){return function(){return ws(e,[...arguments])}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(_s&&_s(e,null),!As(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(vs(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ws(e){for(let t=0;t<e.length;t++)J(e,t)||(e[t]=null);return e}function Q(e){let t=xs(null);for(let r of gs(e)){var n=ms(r,2);let i=n[0],a=n[1];J(e,i)&&(t[i]=As(a)?Ws(a):a&&typeof a==`object`&&a.constructor===Object?Q(a):a)}return t}function Gs(e){switch(typeof e){case`string`:return e;case`number`:return Ls(e);case`boolean`:return Rs(e);case`bigint`:return zs?zs(e):`0`;case`symbol`:return Bs?Bs(e):`Symbol()`;case`undefined`:return Vs(e);case`function`:case`object`:{if(e===null)return Vs(e);let t=e,n=Ks(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Vs(e)}return Vs(e)}default:return Vs(e)}}function Ks(e,t){for(;e!==null;){let n=bs(e,t);if(n){if(n.get)return X(n.get);if(typeof n.value==`function`)return X(n.value)}e=ys(e)}function n(){return null}return n}function qs(e){try{return Y(e,``),!0}catch{return!1}}var Js=K(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ys=K(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Xs=K([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Zs=K([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Qs=K(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),$s=K([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ec=K([`#text`]),tc=K(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),nc=K(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),rc=K(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),ic=K([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ac=q(/{{[\w\W]*|^[\w\W]*}}/g),oc=q(/<%[\w\W]*|^[\w\W]*%>/g),sc=q(/\${[\w\W]*/g),cc=q(/^data-[\-\w.\u00B7-\uFFFF]+$/),lc=q(/^aria-[\-\w]+$/),uc=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dc=q(/^(?:\w+script|data):/i),fc=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pc=q(/^html$/i),mc=q(/^[a-z][.\w]*(-[.\w]+)+$/i),hc=q(/<[/\w!]/g),gc=q(/<[/\w]/g),_c=q(/<\/no(script|embed|frames)/i),vc=q(/\/>/i),$={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yc=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],bc=K(Z({},yc)),xc=function(){let e={};return Ts(yc,t=>{e[t]=q(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),K(e)}(),Sc=function(){return typeof window>`u`?null:window},Cc=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},wc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Tc=function(e,t,n,r){return J(e,t)&&As(e[t])?Z(r.base?Q(r.base):{},e[t],r.transform):n},Ec=function(e,t,n){let r=J(e,t)?e[t]:void 0;return r&&typeof r==`object`?Q(r):n()};function Dc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sc(),t=e=>Dc(e);if(t.version=`3.4.15`,t.removed=[],!e||!e.document||e.document.nodeType!==$.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Ks(d,`cloneNode`),p=Ks(d,`remove`),m=Ks(d,`removeAttributeNode`),h=Ks(d,`nextSibling`),g=Ks(d,`childNodes`),_=Ks(d,`parentNode`),v=Ks(d,`shadowRoot`),y=Ks(d,`attributes`),b=o&&o.prototype?Ks(o.prototype,`nodeType`):null,x=o&&o.prototype?Ks(o.prototype,`nodeName`):null,S=o&&o.prototype?Ks(o.prototype,`ownerDocument`):null,ee=function(e){return b?b(e):e.nodeType},C=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w,T=``,E,te=!1,ne=0,re=function(){if(ne>0)throw Hs(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){re(),ne++;try{return w.createHTML(e)}finally{ne--}},ie=function(e){re(),ne++;try{return w.createScriptURL(e)}finally{ne--}},ae=function(){return te||=(E=Cc(u,i),!0),E},oe=n,se=oe.implementation,ce=oe.createNodeIterator,le=oe.createDocumentFragment,ue=oe.getElementsByTagName,de=r.importNode,O=wc();t.isSupported=typeof gs==`function`&&typeof _==`function`&&se&&se.createHTMLDocument!==void 0;let fe=ac,pe=oc,me=sc,he=cc,k=lc,ge=dc,_e=fc,ve=mc,ye=uc,A=null,be=Z({},[...Js,...Ys,...Xs,...Qs,...ec]),j=null,xe=Z({},[...tc,...nc,...rc,...ic]),Se=Object.seal(xs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,we=null,M=Object.seal(xs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Te=!0,Ee=!0,De=!1,Oe=!0,ke=!1,Ae=!0,je=!1,Me=!1,Ne=null,Pe=null,N=!1,Fe=!1,P=!1,F=!1,Ie=!0,Le=!1,Re=`user-content-`,ze=!0,Be=!1,Ve={},He=null,Ue=Z({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),I=null,We=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ge=null,Ke=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qe=`http://www.w3.org/1998/Math/MathML`,Je=`http://www.w3.org/2000/svg`,L=`http://www.w3.org/1999/xhtml`,R=L,Ye=!1,Xe=null,Ze=Z({},[qe,Je,L],Ms),Qe=K([`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=Z({},Qe),et=K([`annotation-xml`]),tt=Z({},et),nt=Z({},[`title`,`style`,`font`,`a`,`script`]),rt=null,it=[`application/xhtml+xml`,`text/html`],z=null,at=null,ot=n.createElement(`form`),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===e)return;(!e||typeof e!=`object`)&&(e={}),e=Q(e),rt=it.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,z=rt===`application/xhtml+xml`?Ms:js,A=Tc(e,`ALLOWED_TAGS`,be,{transform:z}),j=Tc(e,`ALLOWED_ATTR`,xe,{transform:z}),Xe=Tc(e,`ALLOWED_NAMESPACES`,Ze,{transform:Ms}),Ge=Tc(e,`ADD_URI_SAFE_ATTR`,Ke,{transform:z,base:Ke}),I=Tc(e,`ADD_DATA_URI_TAGS`,We,{transform:z,base:We}),He=Tc(e,`FORBID_CONTENTS`,Ue,{transform:z}),Ce=Tc(e,`FORBID_TAGS`,Q({}),{transform:z}),we=Tc(e,`FORBID_ATTR`,Q({}),{transform:z}),Ve=J(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Q(e.USE_PROFILES):e.USE_PROFILES:!1,Te=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=e.SAFE_FOR_TEMPLATES||!1,Ae=e.SAFE_FOR_XML!==!1,je=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,P=e.RETURN_DOM_FRAGMENT||!1,F=e.RETURN_TRUSTED_TYPE||!1,N=e.FORCE_BODY||!1,Ie=e.SANITIZE_DOM!==!1,Le=e.SANITIZE_NAMED_PROPS||!1,ze=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,ye=qs(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:uc,R=typeof e.NAMESPACE==`string`?e.NAMESPACE:L,$e=Ec(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Z({},Qe)),tt=Ec(e,`HTML_INTEGRATION_POINTS`,()=>Z({},et));let t=Ec(e,`CUSTOM_ELEMENT_HANDLING`,()=>xs(null));if(Se=xs(null),J(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(Se.tagNameCheck=t.tagNameCheck),J(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(Se.attributeNameCheck=t.attributeNameCheck),J(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Se.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),q(Se),ke&&(Ee=!1),P&&(Fe=!0),Ve&&(A=Z({},ec),j=xs(null),Ve.html===!0&&(Z(A,Js),Z(j,tc)),Ve.svg===!0&&(Z(A,Ys),Z(j,nc),Z(j,ic)),Ve.svgFilters===!0&&(Z(A,Xs),Z(j,nc),Z(j,ic)),Ve.mathMl===!0&&(Z(A,Qs),Z(j,rc),Z(j,ic))),M.tagCheck=null,M.attributeCheck=null,J(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?M.tagCheck=e.ADD_TAGS:As(e.ADD_TAGS)&&(A===be&&(A=Q(A)),Z(A,e.ADD_TAGS,z))),J(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?M.attributeCheck=e.ADD_ATTR:As(e.ADD_ATTR)&&(j===xe&&(j=Q(j)),Z(j,e.ADD_ATTR,z))),J(e,`ADD_FORBID_CONTENTS`)&&As(e.ADD_FORBID_CONTENTS)&&(He===Ue&&(He=Q(He)),Z(He,e.ADD_FORBID_CONTENTS,z)),ze&&(A[`#text`]=!0),je&&Z(A,[`html`,`head`,`body`]),A.table&&(Z(A,[`tbody`]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Hs(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Hs(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=w;w=e.TRUSTED_TYPES_POLICY;try{T=D(``)}catch(e){throw w=t,e}}else e.TRUSTED_TYPES_POLICY===null?(w=void 0,T=``):(w===void 0&&(w=ae()),w&&typeof T==`string`&&(T=D(``)));K&&K(e),at=e},lt=Z({},[...Ys,...Xs,...Zs]),ut=Z({},[...Qs,...$s]),dt=function(e,t,n){return t.namespaceURI===L?e===`svg`:t.namespaceURI===qe?e===`svg`&&(n===`annotation-xml`||$e[n]):!!lt[e]},ft=function(e,t,n){return t.namespaceURI===L?e===`math`:t.namespaceURI===Je?e===`math`&&tt[n]:!!ut[e]},pt=function(e,t,n){return t.namespaceURI===Je&&!tt[n]||t.namespaceURI===qe&&!$e[n]?!1:!ut[e]&&(nt[e]||!lt[e])},mt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:R,tagName:`template`});let n=js(e.tagName),r=js(t.tagName);return Xe[e.namespaceURI]?e.namespaceURI===Je?dt(n,t,r):e.namespaceURI===qe?ft(n,t,r):e.namespaceURI===L?pt(n,t,r):!!(rt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},B=function(e){Os(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Hs(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ht=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},gt=function(e){yt(e);let t=g(e);if(t){let e=[];Ts(t,t=>{Os(e,t)}),Ts(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ht(e,r,i)}},_t=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Os(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Fe||P)try{B(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},vt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||j[z(i)]||ht(e,r,i)}},yt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();ee(e)===$.element&&vt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},bt=function(e,t){return Ae?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},xt=function(e){if(!Ae)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ee(e);if(n===$.processingInstruction||n===$.comment&&Y(gc,e.data)){try{p(e)}catch{}continue}if(n===$.element){let t=e,n=z(C(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&bt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},St=function(e){let t=null,r=null;if(N)e=`<remove></remove>`+e;else{let t=Ns(e,/^[\r\n\t ]+/);r=t&&t[0]}rt===`application/xhtml+xml`&&R===L&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=w?D(e):e;if(R===L)try{t=new l().parseFromString(i,rt)}catch{}if(!t||!t.documentElement){t=se.createDocument(R,`template`,null);try{t.documentElement.innerHTML=Ye?T:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),R===L?ue.call(t,je?`html`:`body`)[0]:je?t.documentElement:a},Ct=function(e){let t=S?S(e):e.ownerDocument;return ce.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},wt=function(e){return e=Ps(e,fe,` `),e=Ps(e,pe,` `),e=Ps(e,me,` `),e},Tt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ce.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=wt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Ts(i,e=>{Dt(e.content)&&Tt(e.content)})},Et=function(e){let t=x?x(e):null;return typeof t!=`string`||z(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Dt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===$.documentFragment}catch{return!1}},Ot=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function V(e,n,r){e.length!==0&&Ts(e,e=>{e.call(t,n,r,at)})}let kt=function(e,t){return!!(Ae&&e.hasChildNodes()&&!Ot(e.firstElementChild)&&Y(hc,e.textContent)&&Y(hc,e.innerHTML)||Ae&&e.namespaceURI===L&&bc[t]&&(Ot(e.firstElementChild)||typeof e.textContent==`string`&&Y(xc[t],e.textContent))||e.nodeType===$.processingInstruction||Ae&&e.nodeType===$.comment&&Y(gc,e.data))},At=function(e,t){return e instanceof RegExp?Y(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},jt=function(e,t,n){if(!Ce[t]&&Lt(t)&&At(Se.tagNameCheck,t))return!1;if(ze&&!He[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return B(e),!0},Mt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Q(t):t},Nt=function(e,t){return e===t||_(e)!==null?!1:(Be&&yt(e),!0)},Pt=function(e,n){if(V(O.beforeSanitizeElements,e,null),Nt(e,n))return!0;if(Et(e))return B(e),!0;let r=z(C(e));if(A=Mt(O.uponSanitizeElement,A,be,Ne),V(O.uponSanitizeElement,e,{tagName:r,allowedTags:A}),Nt(e,n))return!0;if(kt(e,r))return B(e),!0;if(Ce[r]||!(M.tagCheck instanceof Function&&M.tagCheck(r))&&!A[r]){let t=jt(e,r,n);return t===!1&&V(O.afterSanitizeElements,e,null),t}if(ee(e)===$.element&&!mt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Y(_c,e.innerHTML))return B(e),!0;if(ke&&e.nodeType===$.text){let n=wt(e.textContent);e.textContent!==n&&(Os(t.removed,{element:e.cloneNode()}),e.textContent=n)}return V(O.afterSanitizeElements,e,null),!1},Ft=function(e,t,r){if(we[t]||bt(t,e)||Ie&&(t===`id`||t===`name`)&&(r in n||r in ot))return!1;let i=j[t]||M.attributeCheck instanceof Function&&M.attributeCheck(t,e);return Ee&&Y(he,t)||Te&&Y(k,t)?!0:i?Ge[t]||Y(ye,Ps(r,_e,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Fs(r,`data:`)===0&&I[e]||De&&!Y(ge,Ps(r,_e,``))?!0:!r:Lt(e)&&At(Se.tagNameCheck,e)&&At(Se.attributeNameCheck,t,e)||t===`is`&&Se.allowCustomizedBuiltInElements&&At(Se.tagNameCheck,r)},It=Z({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Lt=function(e){return!It[js(e)]&&Y(ve,e)},Rt=function(e,t,n,r){if(w&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return ie(r)}return r},zt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Et(e)||(B(e),!1)}catch{return _t(t,e),!1}},Bt=function(e){V(O.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Et(e))return;j=Mt(O.uponSanitizeAttribute,j,xe,Pe);let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},i=n.length,a=z(e.nodeName);for(;i--;){let o=n[i],s=o.name,c=o.namespaceURI,l=o.value,u=z(s),d=l,f=s===`value`?d:Is(d),p=!1;if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,V(O.uponSanitizeAttribute,e,r),f=r.attrValue,Le&&(u===`id`||u===`name`)&&Fs(f,Re)!==0&&(_t(s,e,o),f=Re+f,p=!0),Ae&&Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){_t(s,e,o);continue}if(u===`attributename`&&Ns(f,`href`)){_t(s,e,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr){_t(s,e,o);continue}if(!Oe&&Y(vc,f)){_t(s,e,o);continue}if(ke&&(f=wt(f)),!Ft(a,u,f)){_t(s,e,o);continue}f=Rt(a,u,c,f),f!==d&&zt(e,s,c,f)&&p&&Ds(t.removed)}}V(O.afterSanitizeAttributes,e,null)},Vt=function(e){let t=null,n=Ct(e);for(V(O.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(V(O.uponSanitizeShadowNode,t,null),Pt(t,e),Bt(t),Dt(t.content)&&Vt(t.content),ee(t)===$.element){let e=v(t);Dt(e)&&(Ht(e),Vt(e))}V(O.afterSanitizeShadowDOM,e,null)},Ht=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Vt(e.shadow);continue}let n=e.node,r=ee(n)===$.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&z(e)===`template`){let e=n.content;Dt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Dt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ye=!e,Ye&&(e=`<!-->`),typeof e!=`string`&&!Ot(e)&&(e=Gs(e),typeof e!=`string`))throw Hs(`dirty is not a string, aborting`);if(!t.isSupported)return e;Me?(A=Ne,j=Pe):ct(n),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(A=Q(A)),O.uponSanitizeAttribute.length>0&&(j=Q(j)),t.removed=[];let c=Be&&typeof e!=`string`&&Ot(e);if(c){xt(e);let t=C(e);if(typeof t==`string`){let n=z(t);if(!A[n]||Ce[n])throw gt(e),Hs(`root node is forbidden and cannot be sanitized in-place`)}if(Et(e))throw gt(e),Hs(`root node is clobbered and cannot be sanitized in-place`);try{Ht(e)}catch(t){throw gt(e),t}}else if(Ot(e))i=St(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Ht(i);else{if(!Fe&&!ke&&!je&&e.indexOf(`<`)===-1)return w&&F?D(e):e;if(i=St(e),!i)return Fe?null:F?T:``}i&&N&&B(i.firstChild);let l=c?e:i;try{let e=Ct(l);for(;o=e.nextNode();)Pt(o,l),Bt(o),Dt(o.content)&&Vt(o.content)}catch(n){throw c&&(gt(e),Ts(t.removed,e=>{e.element&&yt(e.element)})),n}if(c)return Ts(t.removed,e=>{e.element&&yt(e.element)}),ke&&Tt(e),e;if(Fe){if(ke&&Tt(i),P)for(s=le.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(j.shadowroot||j.shadowrootmode)&&(s=de.call(r,s,!0)),s}let u=je?i.outerHTML:i.innerHTML;return je&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Y(pc,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
6
|
+
`+u),ke&&(u=wt(u)),w&&F?D(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ct(e),Me=!0,Ne=A,Pe=j},t.clearConfig=function(){at=null,Me=!1,Ne=null,Pe=null,w=E,T=``},t.isValidAttribute=function(e,t,n){at||ct({});let r=z(e),i=z(t);return Ft(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&J(O,e)&&Os(O[e],t)},t.removeHook=function(e,t){if(J(O,e)){if(t!==void 0){let n=Es(O[e],t);return n===-1?void 0:ks(O[e],n,1)[0]}return Ds(O[e])}},t.removeHooks=function(e){J(O,e)&&(O[e]=[])},t.removeAllHooks=function(){O=wc()},t}var Oc=Dc(),kc=new Map;async function Ac(e,t){let n=`https://api.iconify.design/${e}/${t}.svg?color=currentColor&width=1.2em&height=1.2em`;try{let e=await fetch(n,{signal:AbortSignal.timeout(1e4)});return e.ok?Oc.sanitize(await e.text(),{USE_PROFILES:{svg:!0}}):void 0}catch{return}}function jc(e){let t=kc.get(e);if(t)return t;let n=fe(e.replace(/^i-/,``),Ac).then(e=>e?.svg).catch(()=>void 0);return kc.set(e,n),n.then(t=>t===void 0&&kc.delete(e)),n}var Mc=[`innerHTML`],Nc=Object.assign(a({__name:`NIcon`,props:{icon:{}},setup(e){let t=e,n=m();return ee(async()=>{n.value=t.icon?await jc(t.icon):void 0}),(t,r)=>n.value?(u(),x(`div`,{key:0,class:`n-icon`,"inline-block":``,"align-middle":``,innerHTML:n.value},null,8,Mc)):(u(),x(`div`,{key:1,class:l([`n-icon`,e.icon])},null,2))}}),{__name:`NIcon`});export{Na as A,co as B,pa as C,Ta as D,ya as E,Ya as F,ea as G,Ki as H,Za as I,ua as J,sa as K,Qa as L,qa as M,G as N,W as O,Ja as P,to as R,fa as S,so as T,zi as U,Ti as V,bi as W,ke as Y,yo as _,ts as a,ho as b,Zo as c,is as d,Go as f,xo as g,go as h,rs as i,Ka as j,ja as k,Yo as l,uo as m,jc as n,$o as o,To as p,Yi as q,ls as r,Jo as s,Nc as t,Xo as u,fo as v,ha as w,mo as x,po as y,oo as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Gt as t,H as n,Jt as r,K as i,f as a,h as o,m as s}from"./vendor/json-editor-vue-mnaqievy.js";var c={flex:`~ gap-3`,"items-center":``},l=Object.assign(e({__name:`NIconTitle`,props:{icon:{},text:{}},setup(e){return(l,u)=>(n(),o(`div`,c,[e.icon?(n(),o(`div`,{key:0,class:t(e.icon)},null,2)):s(``,!0),i(l.$slots,`default`,{},()=>[a(`div`,null,r(e.text),1)])]))}}),{__name:`NIconTitle`});export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,H as t,K as n,M as r,d as i,h as a,m as o,ot as s,p as c}from"./vendor/json-editor-vue-mnaqievy.js";import{t as l}from"./nuxt-link-myyy86j7.js";var u={key:0,"i-carbon:arrow-up-right":``,"translate-y--1":``,"text-xs":``,op50:``},d=Object.assign(e({__name:`NLink`,props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){let d=e,f=i(()=>d.href||d.to);return(i,d)=>{let p=l;return t(),c(p,r(f.value?{href:f.value,target:e.target,rel:e.target===`_blank`?`noopener noreferrer`:void 0}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":f.value||e.underline}}),{default:s(()=>[n(i.$slots,`default`),f.value&&e.target===`_blank`?(t(),a(`div`,u)):o(``,!0)]),_:3},16,[`class`])}}}),{__name:`NLink`});export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Et as t,H as n,Jt as r,Y as i,p as a}from"./vendor/json-editor-vue-mnaqievy.js";import{t as o}from"./client-ntmst1ol.js";var s=Object.assign(e({__name:`NMarkdown`,props:{markdown:{},tag:{}},setup(e){return(s,c)=>e.markdown&&t(o)?.devtools?.renderMarkdown?(n(),a(i(e.tag||`span`),{key:0,class:`n-markdown`,innerHTML:t(o).devtools.renderMarkdown(e.markdown)},null,8,[`innerHTML`])):(n(),a(i(e.tag||`span`),{key:1,class:`n-markdown`,textContent:r(e.markdown)},null,8,[`textContent`]))}}),{__name:`NMarkdown`});export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Gt as t,H as n,K as r,f as i,h as a,m as o,p as s}from"./vendor/json-editor-vue-mnaqievy.js";import{_ as c}from"#entry";var l={flex:`~ gap4 wrap`,"items-center":``},u=Object.assign(e({__name:`NNavbar`,props:{search:{},noPadding:{type:Boolean}},emits:[`update:search`],setup(e,{emit:u}){let d=u;function f(e){d(`update:search`,e.target.value)}return(u,d)=>{let p=c;return n(),a(`div`,{flex:`~ col gap2 wrap`,border:`b base`,"n-navbar-glass":``,"flex-1":``,class:t([{p4:!e.noPadding}])},[i(`div`,l,[r(u.$slots,`search`,{},()=>[e.search===void 0?o(``,!0):(n(),s(p,{key:0,placeholder:`Search...`,icon:`carbon-search`,n:`primary`,"flex-auto":``,class:t({"px-3 py-2":!e.noPadding}),value:e.search,onInput:f},null,8,[`class`,`value`]))]),r(u.$slots,`actions`)]),r(u.$slots,`default`)],2)}}}),{__name:`NNavbar`});export{u as t};
|